Skip to content

Commit 85ef6a5

Browse files
committed
build(codegen): updating SDK
1 parent f0520da commit 85ef6a5

4 files changed

Lines changed: 23 additions & 22 deletions

File tree

lib/commercetools-api/src/Models/Subscription/SubscriptionSetEventsAction.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313

1414
interface SubscriptionSetEventsAction extends SubscriptionUpdateAction
1515
{
16-
public const FIELD_MESSAGES = 'messages';
16+
public const FIELD_EVENTS = 'events';
1717

1818
/**
1919
* <p>Value to set. Can only be unset if either <code>messages</code> or <code>changes</code> is set.</p>
2020
*
2121
2222
* @return null|EventSubscriptionCollection
2323
*/
24-
public function getMessages();
24+
public function getEvents();
2525

2626
/**
27-
* @param ?EventSubscriptionCollection $messages
27+
* @param ?EventSubscriptionCollection $events
2828
*/
29-
public function setMessages(?EventSubscriptionCollection $messages): void;
29+
public function setEvents(?EventSubscriptionCollection $events): void;
3030
}

lib/commercetools-api/src/Models/Subscription/SubscriptionSetEventsActionBuilder.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,26 @@ final class SubscriptionSetEventsActionBuilder implements Builder
2424
2525
* @var ?EventSubscriptionCollection
2626
*/
27-
private $messages;
27+
private $events;
2828

2929
/**
3030
* <p>Value to set. Can only be unset if either <code>messages</code> or <code>changes</code> is set.</p>
3131
*
3232
3333
* @return null|EventSubscriptionCollection
3434
*/
35-
public function getMessages()
35+
public function getEvents()
3636
{
37-
return $this->messages;
37+
return $this->events;
3838
}
3939

4040
/**
41-
* @param ?EventSubscriptionCollection $messages
41+
* @param ?EventSubscriptionCollection $events
4242
* @return $this
4343
*/
44-
public function withMessages(?EventSubscriptionCollection $messages)
44+
public function withEvents(?EventSubscriptionCollection $events)
4545
{
46-
$this->messages = $messages;
46+
$this->events = $events;
4747

4848
return $this;
4949
}
@@ -52,7 +52,7 @@ public function withMessages(?EventSubscriptionCollection $messages)
5252
public function build(): SubscriptionSetEventsAction
5353
{
5454
return new SubscriptionSetEventsActionModel(
55-
$this->messages
55+
$this->events
5656
);
5757
}
5858

lib/commercetools-api/src/Models/Subscription/SubscriptionSetEventsActionModel.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ final class SubscriptionSetEventsActionModel extends JsonObjectModel implements
3030
*
3131
* @var ?EventSubscriptionCollection
3232
*/
33-
protected $messages;
33+
protected $events;
3434

3535

3636
/**
3737
* @psalm-suppress MissingParamType
3838
*/
3939
public function __construct(
40-
?EventSubscriptionCollection $messages = null,
40+
?EventSubscriptionCollection $events = null,
4141
?string $action = null
4242
) {
43-
$this->messages = $messages;
43+
$this->events = $events;
4444
$this->action = $action ?? self::DISCRIMINATOR_VALUE;
4545
}
4646

@@ -68,26 +68,26 @@ public function getAction()
6868
*
6969
* @return null|EventSubscriptionCollection
7070
*/
71-
public function getMessages()
71+
public function getEvents()
7272
{
73-
if (is_null($this->messages)) {
73+
if (is_null($this->events)) {
7474
/** @psalm-var ?list<stdClass> $data */
75-
$data = $this->raw(self::FIELD_MESSAGES);
75+
$data = $this->raw(self::FIELD_EVENTS);
7676
if (is_null($data)) {
7777
return null;
7878
}
79-
$this->messages = EventSubscriptionCollection::fromArray($data);
79+
$this->events = EventSubscriptionCollection::fromArray($data);
8080
}
8181

82-
return $this->messages;
82+
return $this->events;
8383
}
8484

8585

8686
/**
87-
* @param ?EventSubscriptionCollection $messages
87+
* @param ?EventSubscriptionCollection $events
8888
*/
89-
public function setMessages(?EventSubscriptionCollection $messages): void
89+
public function setEvents(?EventSubscriptionCollection $events): void
9090
{
91-
$this->messages = $messages;
91+
$this->events = $events;
9292
}
9393
}

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,3 +440,4 @@ ed2d65abb425bd5d142630bff5284efdfdc6449f
440440
b3b0734e82abb3a4e20169e403628c592806bc96
441441
db9aff026d30fcbfa10891780096e5fb0c140527
442442
5146ba6cde23ba6b8d5262bf6e064fd1258700ba
443+
c388d876a51d22b2b8a73249fe4694b297db6cd5

0 commit comments

Comments
 (0)