Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ interface DayOfMonthSchedule extends RecurrencePolicySchedule
{
public const FIELD_DAY = 'day';

/**

* @return null|string
*/
public function getType();

/**
* <p>The day of the month when the <a href="ctp:api:type:RecurringOrder">Recurring Order</a> is created.
* If the value is greater than the number of days in a given month, the order is created on the last day of the month.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ interface DayOfMonthScheduleDraft extends RecurrencePolicyScheduleDraft
{
public const FIELD_DAY = 'day';

/**

* @return null|string
*/
public function getType();

/**
* <p>The day of the month when the <a href="ctp:api:type:RecurringOrder">Recurring Order</a> should be created.
* If the value is greater than the number of days in a given month, the order will be created on the last day of the month.</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
*/
final class DayOfMonthScheduleDraftModel extends JsonObjectModel implements DayOfMonthScheduleDraft
{
public const DISCRIMINATOR_VALUE = 'dayOfMonth';
/**
*
* @var ?string
Expand All @@ -40,7 +41,7 @@ public function __construct(
?string $type = null
) {
$this->day = $day;
$this->type = $type;
$this->type = $type ?? self::DISCRIMINATOR_VALUE;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ final class RecurrencePolicyScheduleDraftModel extends JsonObjectModel implement
*
*/
private static $discriminatorClasses = [
'dayOfMonth' => DayOfMonthScheduleDraftModel::class,
'standard' => StandardScheduleDraftModel::class,
];

Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -469,3 +469,4 @@ cd07396232802b1c29238fb92214946462f19e5d
5fbe52b85544f26f23c2c0a63cb6081b2d1e5706
a3b3120c87d02dcb4019d8f0dcc6d1f7496725ca
53775bb9cfdee1169d81256fcf9b33ce5718b6e5
0e52ed3672e48fed855eed94497de9b16e7a50fa