Migrate omsorgapp to browser SPA, add Docker/CI build setup
Docker-Images bauen und veröffentlichen / build (, omsorgCore/Dockerfile, omsorgcore) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgWeb/Dockerfile, omsorgweb) (push) Failing after 4s
Docker-Images bauen und veröffentlichen / build (VITE_OMSORG_CORE_URL=${{ vars.OMSORG_CORE_PUBLIC_URL }}, omsorgapp/Dockerfile, omsorgapp) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgCore/Dockerfile, omsorgcore) (push) Successful in 3s
Docker-Images bauen und veröffentlichen / build (, omsorgWeb/Dockerfile, omsorgweb) (push) Failing after 4s
Docker-Images bauen und veröffentlichen / build (VITE_OMSORG_CORE_URL=${{ vars.OMSORG_CORE_PUBLIC_URL }}, omsorgapp/Dockerfile, omsorgapp) (push) Successful in 3s
- omsorgapp: drop Electron, run as a plain Vite/React browser app; refresh token moves to an HttpOnly cookie (omsorgCore), CORS added for the new browser origin, document download/preview switched to Blob-based browser APIs. - Add Dockerfiles for omsorgCore, omsorgapp, and omsorgWeb, a docker-compose.yml wiring Postgres/MySQL/all three apps together, and a Gitea Actions workflow that builds and pushes images to the repo's container registry on push to main and on version tags. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
e9e96a57dc
commit
598dfcd38a
@@ -61,6 +61,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => 'string',
|
||||
'crm_status' => 'string',
|
||||
'facility_type' => 'string',
|
||||
'website' => 'string',
|
||||
'street' => 'string',
|
||||
'postal_code' => 'string',
|
||||
'city' => 'string',
|
||||
@@ -68,7 +69,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => 'string',
|
||||
'billing_postal_code' => 'string',
|
||||
'billing_city' => 'string',
|
||||
'billing_country' => 'string'
|
||||
'billing_country' => 'string',
|
||||
'follow_up_due_date' => '\DateTime',
|
||||
'billing_rate' => 'float',
|
||||
'night_surcharge_percent' => 'float',
|
||||
'saturday_surcharge_percent' => 'float',
|
||||
'sunday_surcharge_percent' => 'float',
|
||||
'holiday_surcharge_percent' => 'float',
|
||||
'travel_cost_rate' => 'float',
|
||||
'minimum_hours' => 'float',
|
||||
'break_policy' => 'string',
|
||||
'billing_interval' => 'string',
|
||||
'payment_term_days' => 'int',
|
||||
'individual_agreements' => 'string'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -83,6 +96,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => null,
|
||||
'crm_status' => null,
|
||||
'facility_type' => null,
|
||||
'website' => null,
|
||||
'street' => null,
|
||||
'postal_code' => null,
|
||||
'city' => null,
|
||||
@@ -90,7 +104,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => null,
|
||||
'billing_postal_code' => null,
|
||||
'billing_city' => null,
|
||||
'billing_country' => null
|
||||
'billing_country' => null,
|
||||
'follow_up_due_date' => 'date-time',
|
||||
'billing_rate' => 'double',
|
||||
'night_surcharge_percent' => 'double',
|
||||
'saturday_surcharge_percent' => 'double',
|
||||
'sunday_surcharge_percent' => 'double',
|
||||
'holiday_surcharge_percent' => 'double',
|
||||
'travel_cost_rate' => 'double',
|
||||
'minimum_hours' => 'double',
|
||||
'break_policy' => null,
|
||||
'billing_interval' => null,
|
||||
'payment_term_days' => 'int32',
|
||||
'individual_agreements' => null
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -103,6 +129,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => true,
|
||||
'crm_status' => true,
|
||||
'facility_type' => true,
|
||||
'website' => true,
|
||||
'street' => true,
|
||||
'postal_code' => true,
|
||||
'city' => true,
|
||||
@@ -110,7 +137,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => true,
|
||||
'billing_postal_code' => true,
|
||||
'billing_city' => true,
|
||||
'billing_country' => true
|
||||
'billing_country' => true,
|
||||
'follow_up_due_date' => true,
|
||||
'billing_rate' => true,
|
||||
'night_surcharge_percent' => true,
|
||||
'saturday_surcharge_percent' => true,
|
||||
'sunday_surcharge_percent' => true,
|
||||
'holiday_surcharge_percent' => true,
|
||||
'travel_cost_rate' => true,
|
||||
'minimum_hours' => true,
|
||||
'break_policy' => true,
|
||||
'billing_interval' => true,
|
||||
'payment_term_days' => true,
|
||||
'individual_agreements' => true
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -203,6 +242,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => 'name',
|
||||
'crm_status' => 'crmStatus',
|
||||
'facility_type' => 'facilityType',
|
||||
'website' => 'website',
|
||||
'street' => 'street',
|
||||
'postal_code' => 'postalCode',
|
||||
'city' => 'city',
|
||||
@@ -210,7 +250,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => 'billingStreet',
|
||||
'billing_postal_code' => 'billingPostalCode',
|
||||
'billing_city' => 'billingCity',
|
||||
'billing_country' => 'billingCountry'
|
||||
'billing_country' => 'billingCountry',
|
||||
'follow_up_due_date' => 'followUpDueDate',
|
||||
'billing_rate' => 'billingRate',
|
||||
'night_surcharge_percent' => 'nightSurchargePercent',
|
||||
'saturday_surcharge_percent' => 'saturdaySurchargePercent',
|
||||
'sunday_surcharge_percent' => 'sundaySurchargePercent',
|
||||
'holiday_surcharge_percent' => 'holidaySurchargePercent',
|
||||
'travel_cost_rate' => 'travelCostRate',
|
||||
'minimum_hours' => 'minimumHours',
|
||||
'break_policy' => 'breakPolicy',
|
||||
'billing_interval' => 'billingInterval',
|
||||
'payment_term_days' => 'paymentTermDays',
|
||||
'individual_agreements' => 'individualAgreements'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -223,6 +275,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => 'setName',
|
||||
'crm_status' => 'setCrmStatus',
|
||||
'facility_type' => 'setFacilityType',
|
||||
'website' => 'setWebsite',
|
||||
'street' => 'setStreet',
|
||||
'postal_code' => 'setPostalCode',
|
||||
'city' => 'setCity',
|
||||
@@ -230,7 +283,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => 'setBillingStreet',
|
||||
'billing_postal_code' => 'setBillingPostalCode',
|
||||
'billing_city' => 'setBillingCity',
|
||||
'billing_country' => 'setBillingCountry'
|
||||
'billing_country' => 'setBillingCountry',
|
||||
'follow_up_due_date' => 'setFollowUpDueDate',
|
||||
'billing_rate' => 'setBillingRate',
|
||||
'night_surcharge_percent' => 'setNightSurchargePercent',
|
||||
'saturday_surcharge_percent' => 'setSaturdaySurchargePercent',
|
||||
'sunday_surcharge_percent' => 'setSundaySurchargePercent',
|
||||
'holiday_surcharge_percent' => 'setHolidaySurchargePercent',
|
||||
'travel_cost_rate' => 'setTravelCostRate',
|
||||
'minimum_hours' => 'setMinimumHours',
|
||||
'break_policy' => 'setBreakPolicy',
|
||||
'billing_interval' => 'setBillingInterval',
|
||||
'payment_term_days' => 'setPaymentTermDays',
|
||||
'individual_agreements' => 'setIndividualAgreements'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -243,6 +308,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'name' => 'getName',
|
||||
'crm_status' => 'getCrmStatus',
|
||||
'facility_type' => 'getFacilityType',
|
||||
'website' => 'getWebsite',
|
||||
'street' => 'getStreet',
|
||||
'postal_code' => 'getPostalCode',
|
||||
'city' => 'getCity',
|
||||
@@ -250,7 +316,19 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
'billing_street' => 'getBillingStreet',
|
||||
'billing_postal_code' => 'getBillingPostalCode',
|
||||
'billing_city' => 'getBillingCity',
|
||||
'billing_country' => 'getBillingCountry'
|
||||
'billing_country' => 'getBillingCountry',
|
||||
'follow_up_due_date' => 'getFollowUpDueDate',
|
||||
'billing_rate' => 'getBillingRate',
|
||||
'night_surcharge_percent' => 'getNightSurchargePercent',
|
||||
'saturday_surcharge_percent' => 'getSaturdaySurchargePercent',
|
||||
'sunday_surcharge_percent' => 'getSundaySurchargePercent',
|
||||
'holiday_surcharge_percent' => 'getHolidaySurchargePercent',
|
||||
'travel_cost_rate' => 'getTravelCostRate',
|
||||
'minimum_hours' => 'getMinimumHours',
|
||||
'break_policy' => 'getBreakPolicy',
|
||||
'billing_interval' => 'getBillingInterval',
|
||||
'payment_term_days' => 'getPaymentTermDays',
|
||||
'individual_agreements' => 'getIndividualAgreements'
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -314,6 +392,7 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
$this->setIfExists('name', $data ?? [], null);
|
||||
$this->setIfExists('crm_status', $data ?? [], null);
|
||||
$this->setIfExists('facility_type', $data ?? [], null);
|
||||
$this->setIfExists('website', $data ?? [], null);
|
||||
$this->setIfExists('street', $data ?? [], null);
|
||||
$this->setIfExists('postal_code', $data ?? [], null);
|
||||
$this->setIfExists('city', $data ?? [], null);
|
||||
@@ -322,6 +401,18 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
$this->setIfExists('billing_postal_code', $data ?? [], null);
|
||||
$this->setIfExists('billing_city', $data ?? [], null);
|
||||
$this->setIfExists('billing_country', $data ?? [], null);
|
||||
$this->setIfExists('follow_up_due_date', $data ?? [], null);
|
||||
$this->setIfExists('billing_rate', $data ?? [], null);
|
||||
$this->setIfExists('night_surcharge_percent', $data ?? [], null);
|
||||
$this->setIfExists('saturday_surcharge_percent', $data ?? [], null);
|
||||
$this->setIfExists('sunday_surcharge_percent', $data ?? [], null);
|
||||
$this->setIfExists('holiday_surcharge_percent', $data ?? [], null);
|
||||
$this->setIfExists('travel_cost_rate', $data ?? [], null);
|
||||
$this->setIfExists('minimum_hours', $data ?? [], null);
|
||||
$this->setIfExists('break_policy', $data ?? [], null);
|
||||
$this->setIfExists('billing_interval', $data ?? [], null);
|
||||
$this->setIfExists('payment_term_days', $data ?? [], null);
|
||||
$this->setIfExists('individual_agreements', $data ?? [], null);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -495,6 +586,40 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets website
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getWebsite()
|
||||
{
|
||||
return $this->container['website'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets website
|
||||
*
|
||||
* @param string|null $website website
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setWebsite($website)
|
||||
{
|
||||
if (is_null($website)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'website');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('website', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['website'] = $website;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets street
|
||||
*
|
||||
@@ -766,6 +891,414 @@ class FacilityResponse implements ModelInterface, ArrayAccess, \JsonSerializable
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets follow_up_due_date
|
||||
*
|
||||
* @return \DateTime|null
|
||||
*/
|
||||
public function getFollowUpDueDate()
|
||||
{
|
||||
return $this->container['follow_up_due_date'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets follow_up_due_date
|
||||
*
|
||||
* @param \DateTime|null $follow_up_due_date follow_up_due_date
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setFollowUpDueDate($follow_up_due_date)
|
||||
{
|
||||
if (is_null($follow_up_due_date)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'follow_up_due_date');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('follow_up_due_date', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['follow_up_due_date'] = $follow_up_due_date;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets billing_rate
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getBillingRate()
|
||||
{
|
||||
return $this->container['billing_rate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing_rate
|
||||
*
|
||||
* @param float|null $billing_rate billing_rate
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setBillingRate($billing_rate)
|
||||
{
|
||||
if (is_null($billing_rate)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'billing_rate');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('billing_rate', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['billing_rate'] = $billing_rate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets night_surcharge_percent
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getNightSurchargePercent()
|
||||
{
|
||||
return $this->container['night_surcharge_percent'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets night_surcharge_percent
|
||||
*
|
||||
* @param float|null $night_surcharge_percent night_surcharge_percent
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setNightSurchargePercent($night_surcharge_percent)
|
||||
{
|
||||
if (is_null($night_surcharge_percent)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'night_surcharge_percent');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('night_surcharge_percent', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['night_surcharge_percent'] = $night_surcharge_percent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets saturday_surcharge_percent
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getSaturdaySurchargePercent()
|
||||
{
|
||||
return $this->container['saturday_surcharge_percent'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets saturday_surcharge_percent
|
||||
*
|
||||
* @param float|null $saturday_surcharge_percent saturday_surcharge_percent
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setSaturdaySurchargePercent($saturday_surcharge_percent)
|
||||
{
|
||||
if (is_null($saturday_surcharge_percent)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'saturday_surcharge_percent');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('saturday_surcharge_percent', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['saturday_surcharge_percent'] = $saturday_surcharge_percent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets sunday_surcharge_percent
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getSundaySurchargePercent()
|
||||
{
|
||||
return $this->container['sunday_surcharge_percent'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sunday_surcharge_percent
|
||||
*
|
||||
* @param float|null $sunday_surcharge_percent sunday_surcharge_percent
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setSundaySurchargePercent($sunday_surcharge_percent)
|
||||
{
|
||||
if (is_null($sunday_surcharge_percent)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'sunday_surcharge_percent');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('sunday_surcharge_percent', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['sunday_surcharge_percent'] = $sunday_surcharge_percent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets holiday_surcharge_percent
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getHolidaySurchargePercent()
|
||||
{
|
||||
return $this->container['holiday_surcharge_percent'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets holiday_surcharge_percent
|
||||
*
|
||||
* @param float|null $holiday_surcharge_percent holiday_surcharge_percent
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setHolidaySurchargePercent($holiday_surcharge_percent)
|
||||
{
|
||||
if (is_null($holiday_surcharge_percent)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'holiday_surcharge_percent');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('holiday_surcharge_percent', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['holiday_surcharge_percent'] = $holiday_surcharge_percent;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets travel_cost_rate
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getTravelCostRate()
|
||||
{
|
||||
return $this->container['travel_cost_rate'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets travel_cost_rate
|
||||
*
|
||||
* @param float|null $travel_cost_rate travel_cost_rate
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setTravelCostRate($travel_cost_rate)
|
||||
{
|
||||
if (is_null($travel_cost_rate)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'travel_cost_rate');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('travel_cost_rate', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['travel_cost_rate'] = $travel_cost_rate;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets minimum_hours
|
||||
*
|
||||
* @return float|null
|
||||
*/
|
||||
public function getMinimumHours()
|
||||
{
|
||||
return $this->container['minimum_hours'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets minimum_hours
|
||||
*
|
||||
* @param float|null $minimum_hours minimum_hours
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setMinimumHours($minimum_hours)
|
||||
{
|
||||
if (is_null($minimum_hours)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'minimum_hours');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('minimum_hours', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['minimum_hours'] = $minimum_hours;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets break_policy
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getBreakPolicy()
|
||||
{
|
||||
return $this->container['break_policy'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets break_policy
|
||||
*
|
||||
* @param string|null $break_policy break_policy
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setBreakPolicy($break_policy)
|
||||
{
|
||||
if (is_null($break_policy)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'break_policy');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('break_policy', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['break_policy'] = $break_policy;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets billing_interval
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getBillingInterval()
|
||||
{
|
||||
return $this->container['billing_interval'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets billing_interval
|
||||
*
|
||||
* @param string|null $billing_interval billing_interval
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setBillingInterval($billing_interval)
|
||||
{
|
||||
if (is_null($billing_interval)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'billing_interval');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('billing_interval', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['billing_interval'] = $billing_interval;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets payment_term_days
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getPaymentTermDays()
|
||||
{
|
||||
return $this->container['payment_term_days'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets payment_term_days
|
||||
*
|
||||
* @param int|null $payment_term_days payment_term_days
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setPaymentTermDays($payment_term_days)
|
||||
{
|
||||
if (is_null($payment_term_days)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'payment_term_days');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('payment_term_days', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['payment_term_days'] = $payment_term_days;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets individual_agreements
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIndividualAgreements()
|
||||
{
|
||||
return $this->container['individual_agreements'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets individual_agreements
|
||||
*
|
||||
* @param string|null $individual_agreements individual_agreements
|
||||
*
|
||||
* @return self
|
||||
*/
|
||||
public function setIndividualAgreements($individual_agreements)
|
||||
{
|
||||
if (is_null($individual_agreements)) {
|
||||
array_push($this->openAPINullablesSetToNull, 'individual_agreements');
|
||||
} else {
|
||||
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
|
||||
$index = array_search('individual_agreements', $nullablesSetToNull);
|
||||
if ($index !== FALSE) {
|
||||
unset($nullablesSetToNull[$index]);
|
||||
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
|
||||
}
|
||||
}
|
||||
$this->container['individual_agreements'] = $individual_agreements;
|
||||
|
||||
return $this;
|
||||
}
|
||||
/**
|
||||
* Returns true if offset exists. False otherwise.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user