Skip to content

Commit 4194eb8

Browse files
committed
build(codegen): updating SDK
1 parent 2030589 commit 4194eb8

File tree

10 files changed

+60
-40
lines changed

10 files changed

+60
-40
lines changed

changes.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@
4444
<details>
4545
<summary>Required Property(s)</summary>
4646

47+
- :warning: changed property `shippingAddressIds` of type `BusinessUnit` to be required
48+
- :warning: changed property `billingAddressIds` of type `BusinessUnit` to be required
49+
- :warning: changed property `shippingAddressIds` of type `Company` to be required
50+
- :warning: changed property `billingAddressIds` of type `Company` to be required
51+
- :warning: changed property `shippingAddressIds` of type `Division` to be required
52+
- :warning: changed property `billingAddressIds` of type `Division` to be required
53+
- :warning: changed property `shippingAddressIds` of type `Customer` to be required
54+
- :warning: changed property `billingAddressIds` of type `Customer` to be required
55+
- :warning: changed property `customerGroupAssignments` of type `Customer` to be required
4756
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessage` to be required
4857
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessagePayload` to be required
4958
</details>

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3683,7 +3683,7 @@ type Customer implements Versioned & ReferenceExpandable {
36833683
billingAddresses: [Address!]!
36843684
storesRef: [KeyReference!]!
36853685
stores: [Store!]!
3686-
customerGroupAssignments: [CustomerGroupAssignment!]
3686+
customerGroupAssignments: [CustomerGroupAssignment!]!
36873687
custom: CustomFieldsType
36883688
id: String!
36893689
version: Long!

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
* storeMode(BusinessUnitStoreMode.EXPLICIT)
4242
* name("{name}")
4343
* plusAddresses(addressesBuilder -> addressesBuilder)
44+
* plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
45+
* plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
4446
* associateMode(BusinessUnitAssociateMode.EXPLICIT)
4547
* plusAssociates(associatesBuilder -> associatesBuilder)
4648
* topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
@@ -198,7 +200,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models
198200
* <p>Unique identifiers of addresses used as shipping addresses.</p>
199201
* @return shippingAddressIds
200202
*/
201-
203+
@NotNull
202204
@JsonProperty("shippingAddressIds")
203205
public List<String> getShippingAddressIds();
204206

@@ -214,7 +216,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models
214216
* <p>Unique identifiers of addresses used as billing addresses.</p>
215217
* @return billingAddressIds
216218
*/
217-
219+
@NotNull
218220
@JsonProperty("billingAddressIds")
219221
public List<String> getBillingAddressIds();
220222

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Company.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
* .storeMode(BusinessUnitStoreMode.EXPLICIT)
3333
* .name("{name}")
3434
* .plusAddresses(addressesBuilder -> addressesBuilder)
35+
* .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
36+
* .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
3537
* .associateMode(BusinessUnitAssociateMode.EXPLICIT)
3638
* .plusAssociates(associatesBuilder -> associatesBuilder)
3739
* .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* .storeMode(BusinessUnitStoreMode.EXPLICIT)
2626
* .name("{name}")
2727
* .plusAddresses(addressesBuilder -> addressesBuilder)
28+
* .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
29+
* .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
2830
* .associateMode(BusinessUnitAssociateMode.EXPLICIT)
2931
* .plusAssociates(associatesBuilder -> associatesBuilder)
3032
* .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
@@ -75,13 +77,11 @@ public class CompanyBuilder implements Builder<Company> {
7577

7678
private java.util.List<com.commercetools.api.models.common.Address> addresses;
7779

78-
@Nullable
7980
private java.util.List<String> shippingAddressIds;
8081

8182
@Nullable
8283
private String defaultShippingAddressId;
8384

84-
@Nullable
8585
private java.util.List<String> billingAddressIds;
8686

8787
@Nullable
@@ -690,7 +690,7 @@ public CompanyBuilder setAddresses(
690690
* @return Builder
691691
*/
692692

693-
public CompanyBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) {
693+
public CompanyBuilder shippingAddressIds(final String... shippingAddressIds) {
694694
this.shippingAddressIds = new ArrayList<>(Arrays.asList(shippingAddressIds));
695695
return this;
696696
}
@@ -701,7 +701,7 @@ public CompanyBuilder shippingAddressIds(@Nullable final String... shippingAddre
701701
* @return Builder
702702
*/
703703

704-
public CompanyBuilder shippingAddressIds(@Nullable final java.util.List<String> shippingAddressIds) {
704+
public CompanyBuilder shippingAddressIds(final java.util.List<String> shippingAddressIds) {
705705
this.shippingAddressIds = shippingAddressIds;
706706
return this;
707707
}
@@ -712,7 +712,7 @@ public CompanyBuilder shippingAddressIds(@Nullable final java.util.List<String>
712712
* @return Builder
713713
*/
714714

715-
public CompanyBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) {
715+
public CompanyBuilder plusShippingAddressIds(final String... shippingAddressIds) {
716716
if (this.shippingAddressIds == null) {
717717
this.shippingAddressIds = new ArrayList<>();
718718
}
@@ -737,7 +737,7 @@ public CompanyBuilder defaultShippingAddressId(@Nullable final String defaultShi
737737
* @return Builder
738738
*/
739739

740-
public CompanyBuilder billingAddressIds(@Nullable final String... billingAddressIds) {
740+
public CompanyBuilder billingAddressIds(final String... billingAddressIds) {
741741
this.billingAddressIds = new ArrayList<>(Arrays.asList(billingAddressIds));
742742
return this;
743743
}
@@ -748,7 +748,7 @@ public CompanyBuilder billingAddressIds(@Nullable final String... billingAddress
748748
* @return Builder
749749
*/
750750

751-
public CompanyBuilder billingAddressIds(@Nullable final java.util.List<String> billingAddressIds) {
751+
public CompanyBuilder billingAddressIds(final java.util.List<String> billingAddressIds) {
752752
this.billingAddressIds = billingAddressIds;
753753
return this;
754754
}
@@ -759,7 +759,7 @@ public CompanyBuilder billingAddressIds(@Nullable final java.util.List<String> b
759759
* @return Builder
760760
*/
761761

762-
public CompanyBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) {
762+
public CompanyBuilder plusBillingAddressIds(final String... billingAddressIds) {
763763
if (this.billingAddressIds == null) {
764764
this.billingAddressIds = new ArrayList<>();
765765
}
@@ -1218,7 +1218,6 @@ public java.util.List<com.commercetools.api.models.common.Address> getAddresses(
12181218
* @return shippingAddressIds
12191219
*/
12201220

1221-
@Nullable
12221221
public java.util.List<String> getShippingAddressIds() {
12231222
return this.shippingAddressIds;
12241223
}
@@ -1238,7 +1237,6 @@ public String getDefaultShippingAddressId() {
12381237
* @return billingAddressIds
12391238
*/
12401239

1241-
@Nullable
12421240
public java.util.List<String> getBillingAddressIds() {
12431241
return this.billingAddressIds;
12441242
}
@@ -1323,6 +1321,8 @@ public Company build() {
13231321
Objects.requireNonNull(storeMode, Company.class + ": storeMode is missing");
13241322
Objects.requireNonNull(name, Company.class + ": name is missing");
13251323
Objects.requireNonNull(addresses, Company.class + ": addresses is missing");
1324+
Objects.requireNonNull(shippingAddressIds, Company.class + ": shippingAddressIds is missing");
1325+
Objects.requireNonNull(billingAddressIds, Company.class + ": billingAddressIds is missing");
13261326
Objects.requireNonNull(associateMode, Company.class + ": associateMode is missing");
13271327
Objects.requireNonNull(associates, Company.class + ": associates is missing");
13281328
Objects.requireNonNull(topLevelUnit, Company.class + ": topLevelUnit is missing");

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/Division.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
* .storeMode(BusinessUnitStoreMode.EXPLICIT)
3434
* .name("{name}")
3535
* .plusAddresses(addressesBuilder -> addressesBuilder)
36+
* .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
37+
* .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
3638
* .associateMode(BusinessUnitAssociateMode.EXPLICIT)
3739
* .plusAssociates(associatesBuilder -> associatesBuilder)
3840
* .parentUnit(parentUnitBuilder -> parentUnitBuilder)

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* .storeMode(BusinessUnitStoreMode.EXPLICIT)
2626
* .name("{name}")
2727
* .plusAddresses(addressesBuilder -> addressesBuilder)
28+
* .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
29+
* .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
2830
* .associateMode(BusinessUnitAssociateMode.EXPLICIT)
2931
* .plusAssociates(associatesBuilder -> associatesBuilder)
3032
* .parentUnit(parentUnitBuilder -> parentUnitBuilder)
@@ -76,13 +78,11 @@ public class DivisionBuilder implements Builder<Division> {
7678

7779
private java.util.List<com.commercetools.api.models.common.Address> addresses;
7880

79-
@Nullable
8081
private java.util.List<String> shippingAddressIds;
8182

8283
@Nullable
8384
private String defaultShippingAddressId;
8485

85-
@Nullable
8686
private java.util.List<String> billingAddressIds;
8787

8888
@Nullable
@@ -690,7 +690,7 @@ public DivisionBuilder setAddresses(
690690
* @return Builder
691691
*/
692692

693-
public DivisionBuilder shippingAddressIds(@Nullable final String... shippingAddressIds) {
693+
public DivisionBuilder shippingAddressIds(final String... shippingAddressIds) {
694694
this.shippingAddressIds = new ArrayList<>(Arrays.asList(shippingAddressIds));
695695
return this;
696696
}
@@ -701,7 +701,7 @@ public DivisionBuilder shippingAddressIds(@Nullable final String... shippingAddr
701701
* @return Builder
702702
*/
703703

704-
public DivisionBuilder shippingAddressIds(@Nullable final java.util.List<String> shippingAddressIds) {
704+
public DivisionBuilder shippingAddressIds(final java.util.List<String> shippingAddressIds) {
705705
this.shippingAddressIds = shippingAddressIds;
706706
return this;
707707
}
@@ -712,7 +712,7 @@ public DivisionBuilder shippingAddressIds(@Nullable final java.util.List<String>
712712
* @return Builder
713713
*/
714714

715-
public DivisionBuilder plusShippingAddressIds(@Nullable final String... shippingAddressIds) {
715+
public DivisionBuilder plusShippingAddressIds(final String... shippingAddressIds) {
716716
if (this.shippingAddressIds == null) {
717717
this.shippingAddressIds = new ArrayList<>();
718718
}
@@ -737,7 +737,7 @@ public DivisionBuilder defaultShippingAddressId(@Nullable final String defaultSh
737737
* @return Builder
738738
*/
739739

740-
public DivisionBuilder billingAddressIds(@Nullable final String... billingAddressIds) {
740+
public DivisionBuilder billingAddressIds(final String... billingAddressIds) {
741741
this.billingAddressIds = new ArrayList<>(Arrays.asList(billingAddressIds));
742742
return this;
743743
}
@@ -748,7 +748,7 @@ public DivisionBuilder billingAddressIds(@Nullable final String... billingAddres
748748
* @return Builder
749749
*/
750750

751-
public DivisionBuilder billingAddressIds(@Nullable final java.util.List<String> billingAddressIds) {
751+
public DivisionBuilder billingAddressIds(final java.util.List<String> billingAddressIds) {
752752
this.billingAddressIds = billingAddressIds;
753753
return this;
754754
}
@@ -759,7 +759,7 @@ public DivisionBuilder billingAddressIds(@Nullable final java.util.List<String>
759759
* @return Builder
760760
*/
761761

762-
public DivisionBuilder plusBillingAddressIds(@Nullable final String... billingAddressIds) {
762+
public DivisionBuilder plusBillingAddressIds(final String... billingAddressIds) {
763763
if (this.billingAddressIds == null) {
764764
this.billingAddressIds = new ArrayList<>();
765765
}
@@ -1218,7 +1218,6 @@ public java.util.List<com.commercetools.api.models.common.Address> getAddresses(
12181218
* @return shippingAddressIds
12191219
*/
12201220

1221-
@Nullable
12221221
public java.util.List<String> getShippingAddressIds() {
12231222
return this.shippingAddressIds;
12241223
}
@@ -1238,7 +1237,6 @@ public String getDefaultShippingAddressId() {
12381237
* @return billingAddressIds
12391238
*/
12401239

1241-
@Nullable
12421240
public java.util.List<String> getBillingAddressIds() {
12431241
return this.billingAddressIds;
12441242
}
@@ -1322,6 +1320,8 @@ public Division build() {
13221320
Objects.requireNonNull(storeMode, Division.class + ": storeMode is missing");
13231321
Objects.requireNonNull(name, Division.class + ": name is missing");
13241322
Objects.requireNonNull(addresses, Division.class + ": addresses is missing");
1323+
Objects.requireNonNull(shippingAddressIds, Division.class + ": shippingAddressIds is missing");
1324+
Objects.requireNonNull(billingAddressIds, Division.class + ": billingAddressIds is missing");
13251325
Objects.requireNonNull(associateMode, Division.class + ": associateMode is missing");
13261326
Objects.requireNonNull(associates, Division.class + ": associates is missing");
13271327
Objects.requireNonNull(parentUnit, Division.class + ": parentUnit is missing");

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/customer/Customer.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@
3939
* .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
4040
* .email("{email}")
4141
* .plusAddresses(addressesBuilder -> addressesBuilder)
42+
* .plusShippingAddressIds(shippingAddressIdsBuilder -> shippingAddressIdsBuilder)
43+
* .plusBillingAddressIds(billingAddressIdsBuilder -> billingAddressIdsBuilder)
4244
* .isEmailVerified(true)
45+
* .plusCustomerGroupAssignments(customerGroupAssignmentsBuilder -> customerGroupAssignmentsBuilder)
4346
* .plusStores(storesBuilder -> storesBuilder)
4447
* .authenticationMode(AuthenticationMode.PASSWORD)
4548
* .build()
@@ -219,7 +222,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
219222
* <p>IDs of addresses in <code>addresses</code> used as shipping addresses.</p>
220223
* @return shippingAddressIds
221224
*/
222-
225+
@NotNull
223226
@JsonProperty("shippingAddressIds")
224227
public List<String> getShippingAddressIds();
225228

@@ -235,7 +238,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
235238
* <p>IDs of addresses in <code>addresses</code> used as billing addresses.</p>
236239
* @return billingAddressIds
237240
*/
238-
241+
@NotNull
239242
@JsonProperty("billingAddressIds")
240243
public List<String> getBillingAddressIds();
241244

@@ -260,6 +263,7 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
260263
* <p>Used for <span>Line Item price selection</span>.</p>
261264
* @return customerGroupAssignments
262265
*/
266+
@NotNull
263267
@Valid
264268
@JsonProperty("customerGroupAssignments")
265269
public List<CustomerGroupAssignment> getCustomerGroupAssignments();

0 commit comments

Comments
 (0)