Skip to content

Commit 0837cd5

Browse files
committed
build(codegen): updating SDK
1 parent e97e626 commit 0837cd5

File tree

38 files changed

+1808
-100
lines changed

38 files changed

+1808
-100
lines changed

changes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
- added type `GraphQLRecurringOrderFailureError`
1010
- added type `CartFrozenMessage`
1111
- added type `CartUnfrozenMessage`
12+
- added type `OrderPaymentRemovedMessage`
1213
- added type `RecurringOrderFailedMessage`
1314
- added type `CartFrozenMessagePayload`
1415
- added type `CartUnfrozenMessagePayload`
16+
- added type `OrderPaymentRemovedMessagePayload`
1517
- added type `RecurringOrderFailedMessagePayload`
1618
- added type `DiscountCombinationMode`
1719
- added type `DiscountsConfiguration`
@@ -30,6 +32,8 @@
3032
<details>
3133
<summary>Removed Property(s)</summary>
3234

35+
- :warning: removed property `payment` from type `OrderPaymentAddedMessage`
36+
- :warning: removed property `payment` from type `OrderPaymentAddedMessagePayload`
3337
- :warning: removed property `skipConfiguration` from type `RecurringOrderSetOrderSkipConfigurationAction`
3438
</details>
3539

@@ -38,7 +42,9 @@
3842
<summary>Added Property(s)</summary>
3943

4044
- added property `sku` to type `InventoryEntryQuantitySetMessage`
45+
- added property `paymentRef` to type `OrderPaymentAddedMessage`
4146
- added property `sku` to type `InventoryEntryQuantitySetMessagePayload`
47+
- added property `paymentRef` to type `OrderPaymentAddedMessagePayload`
4248
- added property `discounts` to type `Project`
4349
- added property `skipConfigurationInputDraft` to type `RecurringOrderSetOrderSkipConfigurationAction`
4450
</details>

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,6 +1445,14 @@ public static com.commercetools.api.models.message.OrderPaymentAddedMessageBuild
14451445
return com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder.of();
14461446
}
14471447

1448+
/**
1449+
* builder for orderPaymentRemoved subtype
1450+
* @return builder
1451+
*/
1452+
public static com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder orderPaymentRemovedBuilder() {
1453+
return com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder.of();
1454+
}
1455+
14481456
/**
14491457
* builder for orderPaymentStateChanged subtype
14501458
* @return builder

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ public com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder orde
615615
return com.commercetools.api.models.message.OrderPaymentAddedMessageBuilder.of();
616616
}
617617

618+
public com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder orderPaymentRemovedBuilder() {
619+
return com.commercetools.api.models.message.OrderPaymentRemovedMessageBuilder.of();
620+
}
621+
618622
public com.commercetools.api.models.message.OrderPaymentStateChangedMessageBuilder orderPaymentStateChangedBuilder() {
619623
return com.commercetools.api.models.message.OrderPaymentStateChangedMessageBuilder.of();
620624
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,14 @@ public static com.commercetools.api.models.message.OrderPaymentAddedMessagePaylo
12691269
return com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuilder.of();
12701270
}
12711271

1272+
/**
1273+
* builder for orderPaymentRemoved subtype
1274+
* @return builder
1275+
*/
1276+
public static com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder orderPaymentRemovedBuilder() {
1277+
return com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder.of();
1278+
}
1279+
12721280
/**
12731281
* builder for orderPaymentStateChanged subtype
12741282
* @return builder

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,10 @@ public com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuild
615615
return com.commercetools.api.models.message.OrderPaymentAddedMessagePayloadBuilder.of();
616616
}
617617

618+
public com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder orderPaymentRemovedBuilder() {
619+
return com.commercetools.api.models.message.OrderPaymentRemovedMessagePayloadBuilder.of();
620+
}
621+
618622
public com.commercetools.api.models.message.OrderPaymentStateChangedMessagePayloadBuilder orderPaymentStateChangedBuilder() {
619623
return com.commercetools.api.models.message.OrderPaymentStateChangedMessagePayloadBuilder.of();
620624
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessage.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* .sequenceNumber(0.3)
3232
* .resource(resourceBuilder -> resourceBuilder)
3333
* .resourceVersion(0.3)
34-
* .payment(paymentBuilder -> paymentBuilder)
34+
* .paymentRef(paymentRefBuilder -> paymentRefBuilder)
3535
* .build()
3636
* </code></pre>
3737
* </div>
@@ -48,19 +48,19 @@ public interface OrderPaymentAddedMessage extends Message {
4848

4949
/**
5050
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
51-
* @return payment
51+
* @return paymentRef
5252
*/
5353
@NotNull
5454
@Valid
55-
@JsonProperty("payment")
56-
public PaymentReference getPayment();
55+
@JsonProperty("paymentRef")
56+
public PaymentReference getPaymentRef();
5757

5858
/**
5959
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
60-
* @param payment value to be set
60+
* @param paymentRef value to be set
6161
*/
6262

63-
public void setPayment(final PaymentReference payment);
63+
public void setPaymentRef(final PaymentReference paymentRef);
6464

6565
/**
6666
* factory method
@@ -87,7 +87,7 @@ public static OrderPaymentAddedMessage of(final OrderPaymentAddedMessage templat
8787
instance.setResource(template.getResource());
8888
instance.setResourceVersion(template.getResourceVersion());
8989
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers());
90-
instance.setPayment(template.getPayment());
90+
instance.setPaymentRef(template.getPaymentRef());
9191
return instance;
9292
}
9393

@@ -116,7 +116,8 @@ public static OrderPaymentAddedMessage deepCopy(@Nullable final OrderPaymentAdde
116116
instance.setResourceVersion(template.getResourceVersion());
117117
instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers
118118
.deepCopy(template.getResourceUserProvidedIdentifiers()));
119-
instance.setPayment(com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPayment()));
119+
instance.setPaymentRef(
120+
com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPaymentRef()));
120121
return instance;
121122
}
122123

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageBuilder.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* .sequenceNumber(0.3)
2424
* .resource(resourceBuilder -> resourceBuilder)
2525
* .resourceVersion(0.3)
26-
* .payment(paymentBuilder -> paymentBuilder)
26+
* .paymentRef(paymentRefBuilder -> paymentRefBuilder)
2727
* .build()
2828
* </code></pre>
2929
* </div>
@@ -54,7 +54,7 @@ public class OrderPaymentAddedMessageBuilder implements Builder<OrderPaymentAdde
5454
@Nullable
5555
private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers;
5656

57-
private com.commercetools.api.models.payment.PaymentReference payment;
57+
private com.commercetools.api.models.payment.PaymentReference paymentRef;
5858

5959
/**
6060
* <p>Unique identifier of the Message. Can be used to track which Messages have been processed.</p>
@@ -258,37 +258,37 @@ public OrderPaymentAddedMessageBuilder resourceUserProvidedIdentifiers(
258258

259259
/**
260260
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
261-
* @param builder function to build the payment value
261+
* @param builder function to build the paymentRef value
262262
* @return Builder
263263
*/
264264

265-
public OrderPaymentAddedMessageBuilder payment(
265+
public OrderPaymentAddedMessageBuilder paymentRef(
266266
Function<com.commercetools.api.models.payment.PaymentReferenceBuilder, com.commercetools.api.models.payment.PaymentReferenceBuilder> builder) {
267-
this.payment = builder.apply(com.commercetools.api.models.payment.PaymentReferenceBuilder.of()).build();
267+
this.paymentRef = builder.apply(com.commercetools.api.models.payment.PaymentReferenceBuilder.of()).build();
268268
return this;
269269
}
270270

271271
/**
272272
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
273-
* @param builder function to build the payment value
273+
* @param builder function to build the paymentRef value
274274
* @return Builder
275275
*/
276276

277-
public OrderPaymentAddedMessageBuilder withPayment(
277+
public OrderPaymentAddedMessageBuilder withPaymentRef(
278278
Function<com.commercetools.api.models.payment.PaymentReferenceBuilder, com.commercetools.api.models.payment.PaymentReference> builder) {
279-
this.payment = builder.apply(com.commercetools.api.models.payment.PaymentReferenceBuilder.of());
279+
this.paymentRef = builder.apply(com.commercetools.api.models.payment.PaymentReferenceBuilder.of());
280280
return this;
281281
}
282282

283283
/**
284284
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
285-
* @param payment value to be set
285+
* @param paymentRef value to be set
286286
* @return Builder
287287
*/
288288

289-
public OrderPaymentAddedMessageBuilder payment(
290-
final com.commercetools.api.models.payment.PaymentReference payment) {
291-
this.payment = payment;
289+
public OrderPaymentAddedMessageBuilder paymentRef(
290+
final com.commercetools.api.models.payment.PaymentReference paymentRef) {
291+
this.paymentRef = paymentRef;
292292
return this;
293293
}
294294

@@ -387,11 +387,11 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU
387387

388388
/**
389389
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
390-
* @return payment
390+
* @return paymentRef
391391
*/
392392

393-
public com.commercetools.api.models.payment.PaymentReference getPayment() {
394-
return this.payment;
393+
public com.commercetools.api.models.payment.PaymentReference getPaymentRef() {
394+
return this.paymentRef;
395395
}
396396

397397
/**
@@ -406,9 +406,9 @@ public OrderPaymentAddedMessage build() {
406406
Objects.requireNonNull(sequenceNumber, OrderPaymentAddedMessage.class + ": sequenceNumber is missing");
407407
Objects.requireNonNull(resource, OrderPaymentAddedMessage.class + ": resource is missing");
408408
Objects.requireNonNull(resourceVersion, OrderPaymentAddedMessage.class + ": resourceVersion is missing");
409-
Objects.requireNonNull(payment, OrderPaymentAddedMessage.class + ": payment is missing");
409+
Objects.requireNonNull(paymentRef, OrderPaymentAddedMessage.class + ": paymentRef is missing");
410410
return new OrderPaymentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy,
411-
sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, payment);
411+
sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, paymentRef);
412412
}
413413

414414
/**
@@ -417,7 +417,7 @@ public OrderPaymentAddedMessage build() {
417417
*/
418418
public OrderPaymentAddedMessage buildUnchecked() {
419419
return new OrderPaymentAddedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy,
420-
sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, payment);
420+
sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, paymentRef);
421421
}
422422

423423
/**
@@ -445,7 +445,7 @@ public static OrderPaymentAddedMessageBuilder of(final OrderPaymentAddedMessage
445445
builder.resource = template.getResource();
446446
builder.resourceVersion = template.getResourceVersion();
447447
builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers();
448-
builder.payment = template.getPayment();
448+
builder.paymentRef = template.getPaymentRef();
449449
return builder;
450450
}
451451

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessageImpl.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M
4444

4545
private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers;
4646

47-
private com.commercetools.api.models.payment.PaymentReference payment;
47+
private com.commercetools.api.models.payment.PaymentReference paymentRef;
4848

4949
/**
5050
* create instance with all properties
@@ -59,7 +59,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M
5959
@JsonProperty("resource") final com.commercetools.api.models.common.Reference resource,
6060
@JsonProperty("resourceVersion") final Long resourceVersion,
6161
@JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers,
62-
@JsonProperty("payment") final com.commercetools.api.models.payment.PaymentReference payment) {
62+
@JsonProperty("paymentRef") final com.commercetools.api.models.payment.PaymentReference paymentRef) {
6363
this.id = id;
6464
this.version = version;
6565
this.createdAt = createdAt;
@@ -70,7 +70,7 @@ public class OrderPaymentAddedMessageImpl implements OrderPaymentAddedMessage, M
7070
this.resource = resource;
7171
this.resourceVersion = resourceVersion;
7272
this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers;
73-
this.payment = payment;
73+
this.paymentRef = paymentRef;
7474
this.type = ORDER_PAYMENT_ADDED;
7575
}
7676

@@ -173,8 +173,8 @@ public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceU
173173
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
174174
*/
175175

176-
public com.commercetools.api.models.payment.PaymentReference getPayment() {
177-
return this.payment;
176+
public com.commercetools.api.models.payment.PaymentReference getPaymentRef() {
177+
return this.paymentRef;
178178
}
179179

180180
public void setId(final String id) {
@@ -218,8 +218,8 @@ public void setResourceUserProvidedIdentifiers(
218218
this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers;
219219
}
220220

221-
public void setPayment(final com.commercetools.api.models.payment.PaymentReference payment) {
222-
this.payment = payment;
221+
public void setPaymentRef(final com.commercetools.api.models.payment.PaymentReference paymentRef) {
222+
this.paymentRef = paymentRef;
223223
}
224224

225225
@Override
@@ -243,7 +243,7 @@ public boolean equals(Object o) {
243243
.append(resourceVersion, that.resourceVersion)
244244
.append(type, that.type)
245245
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
246-
.append(payment, that.payment)
246+
.append(paymentRef, that.paymentRef)
247247
.append(id, that.id)
248248
.append(version, that.version)
249249
.append(createdAt, that.createdAt)
@@ -255,7 +255,7 @@ public boolean equals(Object o) {
255255
.append(resourceVersion, that.resourceVersion)
256256
.append(type, that.type)
257257
.append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers)
258-
.append(payment, that.payment)
258+
.append(paymentRef, that.paymentRef)
259259
.isEquals();
260260
}
261261

@@ -272,7 +272,7 @@ public int hashCode() {
272272
.append(resourceVersion)
273273
.append(type)
274274
.append(resourceUserProvidedIdentifiers)
275-
.append(payment)
275+
.append(paymentRef)
276276
.toHashCode();
277277
}
278278

@@ -289,7 +289,7 @@ public String toString() {
289289
.append("resourceVersion", resourceVersion)
290290
.append("type", type)
291291
.append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers)
292-
.append("payment", payment)
292+
.append("paymentRef", paymentRef)
293293
.build();
294294
}
295295

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderPaymentAddedMessagePayload.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* <div class=code-example>
2525
* <pre><code class='java'>
2626
* OrderPaymentAddedMessagePayload orderPaymentAddedMessagePayload = OrderPaymentAddedMessagePayload.builder()
27-
* .payment(paymentBuilder -> paymentBuilder)
27+
* .paymentRef(paymentRefBuilder -> paymentRefBuilder)
2828
* .build()
2929
* </code></pre>
3030
* </div>
@@ -41,19 +41,19 @@ public interface OrderPaymentAddedMessagePayload extends MessagePayload {
4141

4242
/**
4343
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
44-
* @return payment
44+
* @return paymentRef
4545
*/
4646
@NotNull
4747
@Valid
48-
@JsonProperty("payment")
49-
public PaymentReference getPayment();
48+
@JsonProperty("paymentRef")
49+
public PaymentReference getPaymentRef();
5050

5151
/**
5252
* <p><a href="https://docs.commercetools.com/apis/ctp:api:type:Payment" rel="nofollow">Payment</a> that was added to the <a href="https://docs.commercetools.com/apis/ctp:api:type:Order" rel="nofollow">Order</a>.</p>
53-
* @param payment value to be set
53+
* @param paymentRef value to be set
5454
*/
5555

56-
public void setPayment(final PaymentReference payment);
56+
public void setPaymentRef(final PaymentReference paymentRef);
5757

5858
/**
5959
* factory method
@@ -70,7 +70,7 @@ public static OrderPaymentAddedMessagePayload of() {
7070
*/
7171
public static OrderPaymentAddedMessagePayload of(final OrderPaymentAddedMessagePayload template) {
7272
OrderPaymentAddedMessagePayloadImpl instance = new OrderPaymentAddedMessagePayloadImpl();
73-
instance.setPayment(template.getPayment());
73+
instance.setPaymentRef(template.getPaymentRef());
7474
return instance;
7575
}
7676

@@ -87,7 +87,8 @@ public static OrderPaymentAddedMessagePayload deepCopy(@Nullable final OrderPaym
8787
return null;
8888
}
8989
OrderPaymentAddedMessagePayloadImpl instance = new OrderPaymentAddedMessagePayloadImpl();
90-
instance.setPayment(com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPayment()));
90+
instance.setPaymentRef(
91+
com.commercetools.api.models.payment.PaymentReference.deepCopy(template.getPaymentRef()));
9192
return instance;
9293
}
9394

0 commit comments

Comments
 (0)