Skip to content

Commit c025bda

Browse files
committed
build(codegen): updating SDK
1 parent 8513900 commit c025bda

File tree

5 files changed

+4
-13
lines changed

5 files changed

+4
-13
lines changed

lib/commercetools-api/src/Models/RecurrencePolicy/DayOfMonthSchedule.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ interface DayOfMonthSchedule extends RecurrencePolicySchedule
1515
{
1616
public const FIELD_DAY = 'day';
1717

18-
/**
19-
20-
* @return null|string
21-
*/
22-
public function getType();
23-
2418
/**
2519
* <p>The day of the month when the <a href="ctp:api:type:RecurringOrder">Recurring Order</a> is created.
2620
* 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>

lib/commercetools-api/src/Models/RecurrencePolicy/DayOfMonthScheduleDraft.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ interface DayOfMonthScheduleDraft extends RecurrencePolicyScheduleDraft
1515
{
1616
public const FIELD_DAY = 'day';
1717

18-
/**
19-
20-
* @return null|string
21-
*/
22-
public function getType();
23-
2418
/**
2519
* <p>The day of the month when the <a href="ctp:api:type:RecurringOrder">Recurring Order</a> should be created.
2620
* 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>

lib/commercetools-api/src/Models/RecurrencePolicy/DayOfMonthScheduleDraftModel.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
*/
2020
final class DayOfMonthScheduleDraftModel extends JsonObjectModel implements DayOfMonthScheduleDraft
2121
{
22+
public const DISCRIMINATOR_VALUE = 'dayOfMonth';
2223
/**
2324
*
2425
* @var ?string
@@ -40,7 +41,7 @@ public function __construct(
4041
?string $type = null
4142
) {
4243
$this->day = $day;
43-
$this->type = $type;
44+
$this->type = $type ?? self::DISCRIMINATOR_VALUE;
4445
}
4546

4647
/**

lib/commercetools-api/src/Models/RecurrencePolicy/RecurrencePolicyScheduleDraftModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ final class RecurrencePolicyScheduleDraftModel extends JsonObjectModel implement
3131
*
3232
*/
3333
private static $discriminatorClasses = [
34+
'dayOfMonth' => DayOfMonthScheduleDraftModel::class,
3435
'standard' => StandardScheduleDraftModel::class,
3536
];
3637

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,3 +469,4 @@ cd07396232802b1c29238fb92214946462f19e5d
469469
5fbe52b85544f26f23c2c0a63cb6081b2d1e5706
470470
a3b3120c87d02dcb4019d8f0dcc6d1f7496725ca
471471
53775bb9cfdee1169d81256fcf9b33ce5718b6e5
472+
0e52ed3672e48fed855eed94497de9b16e7a50fa

0 commit comments

Comments
 (0)