Skip to content

Commit c162dc6

Browse files
Merge pull request #372 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 22a4cf4 + f060fd6 commit c162dc6

File tree

7 files changed

+159
-158
lines changed

7 files changed

+159
-158
lines changed

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ interface Subscription extends BaseResource
1919
{
2020
public const FIELD_LAST_MODIFIED_BY = 'lastModifiedBy';
2121
public const FIELD_CREATED_BY = 'createdBy';
22-
public const FIELD_CHANGES = 'changes';
2322
public const FIELD_DESTINATION = 'destination';
2423
public const FIELD_KEY = 'key';
2524
public const FIELD_MESSAGES = 'messages';
25+
public const FIELD_CHANGES = 'changes';
2626
public const FIELD_EVENTS = 'events';
2727
public const FIELD_FORMAT = 'format';
2828
public const FIELD_STATUS = 'status';
@@ -75,14 +75,6 @@ public function getLastModifiedBy();
7575
*/
7676
public function getCreatedBy();
7777

78-
/**
79-
* <p>Changes subscribed to.</p>
80-
*
81-
82-
* @return null|ChangeSubscriptionCollection
83-
*/
84-
public function getChanges();
85-
8678
/**
8779
* <p>Messaging service to which the notifications are sent.</p>
8880
*
@@ -107,6 +99,14 @@ public function getKey();
10799
*/
108100
public function getMessages();
109101

102+
/**
103+
* <p>Changes subscribed to.</p>
104+
*
105+
106+
* @return null|ChangeSubscriptionCollection
107+
*/
108+
public function getChanges();
109+
110110
/**
111111
* <p>Events subscribed to.</p>
112112
*
@@ -161,11 +161,6 @@ public function setLastModifiedBy(?LastModifiedBy $lastModifiedBy): void;
161161
*/
162162
public function setCreatedBy(?CreatedBy $createdBy): void;
163163

164-
/**
165-
* @param ?ChangeSubscriptionCollection $changes
166-
*/
167-
public function setChanges(?ChangeSubscriptionCollection $changes): void;
168-
169164
/**
170165
* @param ?Destination $destination
171166
*/
@@ -181,6 +176,11 @@ public function setKey(?string $key): void;
181176
*/
182177
public function setMessages(?MessageSubscriptionCollection $messages): void;
183178

179+
/**
180+
* @param ?ChangeSubscriptionCollection $changes
181+
*/
182+
public function setChanges(?ChangeSubscriptionCollection $changes): void;
183+
184184
/**
185185
* @param ?EventSubscriptionCollection $events
186186
*/

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ final class SubscriptionBuilder implements Builder
6363
*/
6464
private $createdBy;
6565

66-
/**
67-
68-
* @var ?ChangeSubscriptionCollection
69-
*/
70-
private $changes;
71-
7266
/**
7367
7468
* @var null|Destination|DestinationBuilder
@@ -87,6 +81,12 @@ final class SubscriptionBuilder implements Builder
8781
*/
8882
private $messages;
8983

84+
/**
85+
86+
* @var ?ChangeSubscriptionCollection
87+
*/
88+
private $changes;
89+
9090
/**
9191
9292
* @var ?EventSubscriptionCollection
@@ -171,17 +171,6 @@ public function getCreatedBy()
171171
return $this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy;
172172
}
173173

174-
/**
175-
* <p>Changes subscribed to.</p>
176-
*
177-
178-
* @return null|ChangeSubscriptionCollection
179-
*/
180-
public function getChanges()
181-
{
182-
return $this->changes;
183-
}
184-
185174
/**
186175
* <p>Messaging service to which the notifications are sent.</p>
187176
*
@@ -215,6 +204,17 @@ public function getMessages()
215204
return $this->messages;
216205
}
217206

207+
/**
208+
* <p>Changes subscribed to.</p>
209+
*
210+
211+
* @return null|ChangeSubscriptionCollection
212+
*/
213+
public function getChanges()
214+
{
215+
return $this->changes;
216+
}
217+
218218
/**
219219
* <p>Events subscribed to.</p>
220220
*
@@ -314,17 +314,6 @@ public function withCreatedBy(?CreatedBy $createdBy)
314314
return $this;
315315
}
316316

317-
/**
318-
* @param ?ChangeSubscriptionCollection $changes
319-
* @return $this
320-
*/
321-
public function withChanges(?ChangeSubscriptionCollection $changes)
322-
{
323-
$this->changes = $changes;
324-
325-
return $this;
326-
}
327-
328317
/**
329318
* @param ?Destination $destination
330319
* @return $this
@@ -358,6 +347,17 @@ public function withMessages(?MessageSubscriptionCollection $messages)
358347
return $this;
359348
}
360349

350+
/**
351+
* @param ?ChangeSubscriptionCollection $changes
352+
* @return $this
353+
*/
354+
public function withChanges(?ChangeSubscriptionCollection $changes)
355+
{
356+
$this->changes = $changes;
357+
358+
return $this;
359+
}
360+
361361
/**
362362
* @param ?EventSubscriptionCollection $events
363363
* @return $this
@@ -444,10 +444,10 @@ public function build(): Subscription
444444
$this->lastModifiedAt,
445445
$this->lastModifiedBy instanceof LastModifiedByBuilder ? $this->lastModifiedBy->build() : $this->lastModifiedBy,
446446
$this->createdBy instanceof CreatedByBuilder ? $this->createdBy->build() : $this->createdBy,
447-
$this->changes,
448447
$this->destination instanceof DestinationBuilder ? $this->destination->build() : $this->destination,
449448
$this->key,
450449
$this->messages,
450+
$this->changes,
451451
$this->events,
452452
$this->format instanceof DeliveryFormatBuilder ? $this->format->build() : $this->format,
453453
$this->status

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

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

1414
interface SubscriptionDraft extends JsonObject
1515
{
16-
public const FIELD_CHANGES = 'changes';
1716
public const FIELD_DESTINATION = 'destination';
1817
public const FIELD_KEY = 'key';
1918
public const FIELD_MESSAGES = 'messages';
19+
public const FIELD_CHANGES = 'changes';
2020
public const FIELD_EVENTS = 'events';
2121
public const FIELD_FORMAT = 'format';
2222

23-
/**
24-
* <p>Changes to be subscribed to.</p>
25-
*
26-
27-
* @return null|ChangeSubscriptionCollection
28-
*/
29-
public function getChanges();
30-
3123
/**
3224
* <p>Messaging service to which the notifications are sent.</p>
3325
*
@@ -52,6 +44,14 @@ public function getKey();
5244
*/
5345
public function getMessages();
5446

47+
/**
48+
* <p>Changes to be subscribed to.</p>
49+
*
50+
51+
* @return null|ChangeSubscriptionCollection
52+
*/
53+
public function getChanges();
54+
5555
/**
5656
* <p>Events to be subscribed to.</p>
5757
*
@@ -68,11 +68,6 @@ public function getEvents();
6868
*/
6969
public function getFormat();
7070

71-
/**
72-
* @param ?ChangeSubscriptionCollection $changes
73-
*/
74-
public function setChanges(?ChangeSubscriptionCollection $changes): void;
75-
7671
/**
7772
* @param ?Destination $destination
7873
*/
@@ -88,6 +83,11 @@ public function setKey(?string $key): void;
8883
*/
8984
public function setMessages(?MessageSubscriptionCollection $messages): void;
9085

86+
/**
87+
* @param ?ChangeSubscriptionCollection $changes
88+
*/
89+
public function setChanges(?ChangeSubscriptionCollection $changes): void;
90+
9191
/**
9292
* @param ?EventSubscriptionCollection $events
9393
*/

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

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@
2020
*/
2121
final class SubscriptionDraftBuilder implements Builder
2222
{
23-
/**
24-
25-
* @var ?ChangeSubscriptionCollection
26-
*/
27-
private $changes;
28-
2923
/**
3024
3125
* @var null|Destination|DestinationBuilder
@@ -46,26 +40,21 @@ final class SubscriptionDraftBuilder implements Builder
4640

4741
/**
4842
49-
* @var ?EventSubscriptionCollection
43+
* @var ?ChangeSubscriptionCollection
5044
*/
51-
private $events;
45+
private $changes;
5246

5347
/**
5448
55-
* @var null|DeliveryFormat|DeliveryFormatBuilder
49+
* @var ?EventSubscriptionCollection
5650
*/
57-
private $format;
51+
private $events;
5852

5953
/**
60-
* <p>Changes to be subscribed to.</p>
61-
*
6254
63-
* @return null|ChangeSubscriptionCollection
55+
* @var null|DeliveryFormat|DeliveryFormatBuilder
6456
*/
65-
public function getChanges()
66-
{
67-
return $this->changes;
68-
}
57+
private $format;
6958

7059
/**
7160
* <p>Messaging service to which the notifications are sent.</p>
@@ -100,6 +89,17 @@ public function getMessages()
10089
return $this->messages;
10190
}
10291

92+
/**
93+
* <p>Changes to be subscribed to.</p>
94+
*
95+
96+
* @return null|ChangeSubscriptionCollection
97+
*/
98+
public function getChanges()
99+
{
100+
return $this->changes;
101+
}
102+
103103
/**
104104
* <p>Events to be subscribed to.</p>
105105
*
@@ -122,17 +122,6 @@ public function getFormat()
122122
return $this->format instanceof DeliveryFormatBuilder ? $this->format->build() : $this->format;
123123
}
124124

125-
/**
126-
* @param ?ChangeSubscriptionCollection $changes
127-
* @return $this
128-
*/
129-
public function withChanges(?ChangeSubscriptionCollection $changes)
130-
{
131-
$this->changes = $changes;
132-
133-
return $this;
134-
}
135-
136125
/**
137126
* @param ?Destination $destination
138127
* @return $this
@@ -166,6 +155,17 @@ public function withMessages(?MessageSubscriptionCollection $messages)
166155
return $this;
167156
}
168157

158+
/**
159+
* @param ?ChangeSubscriptionCollection $changes
160+
* @return $this
161+
*/
162+
public function withChanges(?ChangeSubscriptionCollection $changes)
163+
{
164+
$this->changes = $changes;
165+
166+
return $this;
167+
}
168+
169169
/**
170170
* @param ?EventSubscriptionCollection $events
171171
* @return $this
@@ -213,10 +213,10 @@ public function withFormatBuilder(?DeliveryFormatBuilder $format)
213213
public function build(): SubscriptionDraft
214214
{
215215
return new SubscriptionDraftModel(
216-
$this->changes,
217216
$this->destination instanceof DestinationBuilder ? $this->destination->build() : $this->destination,
218217
$this->key,
219218
$this->messages,
219+
$this->changes,
220220
$this->events,
221221
$this->format instanceof DeliveryFormatBuilder ? $this->format->build() : $this->format
222222
);

0 commit comments

Comments
 (0)