Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion model/PeriodType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
* PeriodType Class Doc Comment
*
* @category Class
* @description The subscription period type. Valid values are: WEEK: indicates that the subscription period is measured in weeks. MONTH: indicates that the subscription period is measured in months. QUARTER: indicates that the subscription period is measured in quarters. HALF_YEAR: indicates that the subscription period is measured in half years. YEAR: indicates that the subscription period is measured in years.
* @description The subscription period type. Valid values are: DAY: indicates that the subscription period is measured in days. WEEK: indicates that the subscription period is measured in weeks. MONTH: indicates that the subscription period is measured in months. QUARTER: indicates that the subscription period is measured in quarters. HALF_YEAR: indicates that the subscription period is measured in half years. YEAR: indicates that the subscription period is measured in years.
* @package request
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/

class PeriodType
{
public const DAY = 'DAY';
public const WEEK = 'WEEK';
public const MONTH = 'MONTH';
public const QUARTER = 'QUARTER';
Expand All @@ -40,6 +41,10 @@ private function __construct(string $value)
$this->value = $value;
}

public static function DAY(): self
{
return new self(self::DAY);
}
public static function WEEK(): self
{
return new self(self::WEEK);
Expand Down
8 changes: 4 additions & 4 deletions model/ProrationSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ public function getModelName()
return self::$openAPIModelName;
}

public const PRORATION_MODE_PAY_CUSTOM_AMOUNT = 'IMMEDIATE_PAY_CUSTOM_AMOUNT';
public const PRORATION_MODE_REFUND_CUSTOM_AMOUNT = 'IMMEDIATE_REFUND_CUSTOM_AMOUNT';
public const PRORATION_MODE_IMMEDIATE_PAY_CUSTOM_AMOUNT = 'IMMEDIATE_PAY_CUSTOM_AMOUNT';
public const PRORATION_MODE_IMMEDIATE_REFUND_CUSTOM_AMOUNT = 'IMMEDIATE_REFUND_CUSTOM_AMOUNT';

/**
* Gets allowable values of the enum
Expand All @@ -234,8 +234,8 @@ public function getModelName()
public function getProrationModeAllowableValues()
{
return [
self::PRORATION_MODE_PAY_CUSTOM_AMOUNT,
self::PRORATION_MODE_REFUND_CUSTOM_AMOUNT,
self::PRORATION_MODE_IMMEDIATE_PAY_CUSTOM_AMOUNT,
self::PRORATION_MODE_IMMEDIATE_REFUND_CUSTOM_AMOUNT,
];
}
/**
Expand Down