Skip to content

Commit abe6170

Browse files
committed
build(codegen): updating SDK
1 parent 4817fdd commit abe6170

File tree

11 files changed

+387
-386
lines changed

11 files changed

+387
-386
lines changed

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
* .version(0.3)
3333
* .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
3434
* .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
35-
* .plusChanges(changesBuilder -> changesBuilder)
3635
* .destination(destinationBuilder -> destinationBuilder)
3736
* .plusMessages(messagesBuilder -> messagesBuilder)
37+
* .plusChanges(changesBuilder -> changesBuilder)
3838
* .plusEvents(eventsBuilder -> eventsBuilder)
3939
* .format(formatBuilder -> formatBuilder)
4040
* .status(SubscriptionHealthStatus.HEALTHY)
@@ -95,15 +95,6 @@ public interface Subscription extends BaseResource, com.commercetools.api.models
9595
@JsonProperty("createdBy")
9696
public CreatedBy getCreatedBy();
9797

98-
/**
99-
* <p>Changes subscribed to.</p>
100-
* @return changes
101-
*/
102-
@NotNull
103-
@Valid
104-
@JsonProperty("changes")
105-
public List<ChangeSubscription> getChanges();
106-
10798
/**
10899
* <p>Messaging service to which the notifications are sent.</p>
109100
* @return destination
@@ -130,6 +121,15 @@ public interface Subscription extends BaseResource, com.commercetools.api.models
130121
@JsonProperty("messages")
131122
public List<MessageSubscription> getMessages();
132123

124+
/**
125+
* <p>Changes subscribed to.</p>
126+
* @return changes
127+
*/
128+
@NotNull
129+
@Valid
130+
@JsonProperty("changes")
131+
public List<ChangeSubscription> getChanges();
132+
133133
/**
134134
* <p>Events subscribed to.</p>
135135
* @return events
@@ -198,21 +198,6 @@ public interface Subscription extends BaseResource, com.commercetools.api.models
198198

199199
public void setCreatedBy(final CreatedBy createdBy);
200200

201-
/**
202-
* <p>Changes subscribed to.</p>
203-
* @param changes values to be set
204-
*/
205-
206-
@JsonIgnore
207-
public void setChanges(final ChangeSubscription... changes);
208-
209-
/**
210-
* <p>Changes subscribed to.</p>
211-
* @param changes values to be set
212-
*/
213-
214-
public void setChanges(final List<ChangeSubscription> changes);
215-
216201
/**
217202
* <p>Messaging service to which the notifications are sent.</p>
218203
* @param destination value to be set
@@ -242,6 +227,21 @@ public interface Subscription extends BaseResource, com.commercetools.api.models
242227

243228
public void setMessages(final List<MessageSubscription> messages);
244229

230+
/**
231+
* <p>Changes subscribed to.</p>
232+
* @param changes values to be set
233+
*/
234+
235+
@JsonIgnore
236+
public void setChanges(final ChangeSubscription... changes);
237+
238+
/**
239+
* <p>Changes subscribed to.</p>
240+
* @param changes values to be set
241+
*/
242+
243+
public void setChanges(final List<ChangeSubscription> changes);
244+
245245
/**
246246
* <p>Events subscribed to.</p>
247247
* @param events values to be set
@@ -292,10 +292,10 @@ public static Subscription of(final Subscription template) {
292292
instance.setLastModifiedAt(template.getLastModifiedAt());
293293
instance.setLastModifiedBy(template.getLastModifiedBy());
294294
instance.setCreatedBy(template.getCreatedBy());
295-
instance.setChanges(template.getChanges());
296295
instance.setDestination(template.getDestination());
297296
instance.setKey(template.getKey());
298297
instance.setMessages(template.getMessages());
298+
instance.setChanges(template.getChanges());
299299
instance.setEvents(template.getEvents());
300300
instance.setFormat(template.getFormat());
301301
instance.setStatus(template.getStatus());
@@ -320,11 +320,6 @@ public static Subscription deepCopy(@Nullable final Subscription template) {
320320
instance.setLastModifiedBy(
321321
com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy()));
322322
instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy()));
323-
instance.setChanges(Optional.ofNullable(template.getChanges())
324-
.map(t -> t.stream()
325-
.map(com.commercetools.api.models.subscription.ChangeSubscription::deepCopy)
326-
.collect(Collectors.toList()))
327-
.orElse(null));
328323
instance.setDestination(
329324
com.commercetools.api.models.subscription.Destination.deepCopy(template.getDestination()));
330325
instance.setKey(template.getKey());
@@ -333,6 +328,11 @@ public static Subscription deepCopy(@Nullable final Subscription template) {
333328
.map(com.commercetools.api.models.subscription.MessageSubscription::deepCopy)
334329
.collect(Collectors.toList()))
335330
.orElse(null));
331+
instance.setChanges(Optional.ofNullable(template.getChanges())
332+
.map(t -> t.stream()
333+
.map(com.commercetools.api.models.subscription.ChangeSubscription::deepCopy)
334+
.collect(Collectors.toList()))
335+
.orElse(null));
336336
instance.setEvents(Optional.ofNullable(template.getEvents())
337337
.map(t -> t.stream()
338338
.map(com.commercetools.api.models.subscription.EventSubscription::deepCopy)

0 commit comments

Comments
 (0)