Skip to content

Commit b28d793

Browse files
committed
build(codegen): updating SDK
1 parent 7cf17f6 commit b28d793

File tree

12 files changed

+425
-410
lines changed

12 files changed

+425
-410
lines changed

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

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ input AddCustomerBillingAddressId {
198198
addressKey: String
199199
}
200200

201-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
202201
input AddCustomerGroupAssignment {
203202
customerGroupAssignment: CustomerGroupAssignmentDraft!
204203
}
@@ -3544,7 +3543,6 @@ type Customer implements Versioned & ReferenceExpandable {
35443543
storesRef: [KeyReference!]!
35453544
stores: [Store!]!
35463545

3547-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
35483546
customerGroupAssignments: [CustomerGroupAssignment!]
35493547
custom: CustomFieldsType
35503548
id: String!
@@ -3705,30 +3703,25 @@ type CustomerGroup implements Versioned & ReferenceExpandable {
37053703
lastModifiedBy: Initiator
37063704
}
37073705

3708-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
37093706
type CustomerGroupAssignment {
37103707
customerGroupRef: Reference
37113708
customerGroup: CustomerGroup
37123709
}
37133710

3714-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
37153711
type CustomerGroupAssignmentAdded implements MessagePayload {
37163712
customerGroupAssignment: CustomerGroupAssignment!
37173713
type: String!
37183714
}
37193715

3720-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
37213716
input CustomerGroupAssignmentDraft {
37223717
customerGroup: ResourceIdentifierInput!
37233718
}
37243719

3725-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
37263720
type CustomerGroupAssignmentRemoved implements MessagePayload {
37273721
customerGroupAssignment: CustomerGroupAssignment!
37283722
type: String!
37293723
}
37303724

3731-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
37323725
type CustomerGroupAssignmentsSet implements MessagePayload {
37333726
customerGroupAssignments: [CustomerGroupAssignment!]!
37343727
type: String!
@@ -3970,8 +3963,6 @@ input CustomerSignUpDraft {
39703963
anonymousCart: ResourceIdentifierInput
39713964
externalId: String
39723965
customerGroup: ResourceIdentifierInput
3973-
3974-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
39753966
customerGroupAssignments: [CustomerGroupAssignmentDraft!]
39763967
isEmailVerified: Boolean
39773968
anonymousId: String
@@ -3986,17 +3977,13 @@ type CustomerTitleSet implements MessagePayload {
39863977
input CustomerUpdateAction {
39873978
addAddress: AddCustomerAddress
39883979
addBillingAddressId: AddCustomerBillingAddressId
3989-
3990-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
39913980
addCustomerGroupAssignment: AddCustomerGroupAssignment
39923981
addShippingAddressId: AddCustomerShippingAddressId
39933982
addStore: AddCustomerStore
39943983
changeAddress: ChangeCustomerAddress
39953984
changeEmail: ChangeCustomerEmail
39963985
removeAddress: RemoveCustomerAddress
39973986
removeBillingAddressId: RemoveCustomerBillingAddressId
3998-
3999-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
40003987
removeCustomerGroupAssignment: RemoveCustomerGroupAssignment
40013988
removeShippingAddressId: RemoveCustomerShippingAddressId
40023989
removeStore: RemoveCustomerStore
@@ -4007,8 +3994,6 @@ input CustomerUpdateAction {
40073994
setCustomField: SetCustomerCustomField
40083995
setCustomType: SetCustomerCustomType
40093996
setCustomerGroup: SetCustomerGroup
4010-
4011-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
40123997
setCustomerGroupAssignments: SetCustomerGroupAssignments
40133998
setKey: SetCustomerKey
40143999
setLocale: SetCustomerLocale
@@ -10235,7 +10220,6 @@ input RemoveCustomerBillingAddressId {
1023510220
addressKey: String
1023610221
}
1023710222

10238-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1023910223
input RemoveCustomerGroupAssignment {
1024010224
customerGroup: ResourceIdentifierInput!
1024110225
}
@@ -11488,7 +11472,6 @@ input SetCustomerGroup {
1148811472
customerGroup: ResourceIdentifierInput
1148911473
}
1149011474

11491-
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
1149211475
input SetCustomerGroupAssignments {
1149311476
customerGroupAssignments: [CustomerGroupAssignmentDraft!]!
1149411477
}

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

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,15 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
255255
@JsonProperty("customerGroup")
256256
public CustomerGroupReference getCustomerGroup();
257257

258+
/**
259+
* <p>Customer Groups that the Customer belongs to.</p>
260+
* <p>Used for Line Item price selection.</p>
261+
* @return customerGroupAssignments
262+
*/
263+
@Valid
264+
@JsonProperty("customerGroupAssignments")
265+
public List<CustomerGroupAssignment> getCustomerGroupAssignments();
266+
258267
/**
259268
* <p>Custom Fields for the Customer.</p>
260269
* @return custom
@@ -300,14 +309,6 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
300309
@JsonProperty("authenticationMode")
301310
public AuthenticationMode getAuthenticationMode();
302311

303-
/**
304-
* <p>Customer Groups that the Customer belongs to.</p>
305-
* @return customerGroupAssignments
306-
*/
307-
@Valid
308-
@JsonProperty("customerGroupAssignments")
309-
public List<CustomerGroupAssignment> getCustomerGroupAssignments();
310-
311312
/**
312313
* <p>Unique identifier of the Customer.</p>
313314
* @param id value to be set
@@ -508,6 +509,23 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
508509

509510
public void setCustomerGroup(final CustomerGroupReference customerGroup);
510511

512+
/**
513+
* <p>Customer Groups that the Customer belongs to.</p>
514+
* <p>Used for Line Item price selection.</p>
515+
* @param customerGroupAssignments values to be set
516+
*/
517+
518+
@JsonIgnore
519+
public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments);
520+
521+
/**
522+
* <p>Customer Groups that the Customer belongs to.</p>
523+
* <p>Used for Line Item price selection.</p>
524+
* @param customerGroupAssignments values to be set
525+
*/
526+
527+
public void setCustomerGroupAssignments(final List<CustomerGroupAssignment> customerGroupAssignments);
528+
511529
/**
512530
* <p>Custom Fields for the Customer.</p>
513531
* @param custom value to be set
@@ -559,21 +577,6 @@ public interface Customer extends BaseResource, CustomerMixin, com.commercetools
559577

560578
public void setAuthenticationMode(final AuthenticationMode authenticationMode);
561579

562-
/**
563-
* <p>Customer Groups that the Customer belongs to.</p>
564-
* @param customerGroupAssignments values to be set
565-
*/
566-
567-
@JsonIgnore
568-
public void setCustomerGroupAssignments(final CustomerGroupAssignment... customerGroupAssignments);
569-
570-
/**
571-
* <p>Customer Groups that the Customer belongs to.</p>
572-
* @param customerGroupAssignments values to be set
573-
*/
574-
575-
public void setCustomerGroupAssignments(final List<CustomerGroupAssignment> customerGroupAssignments);
576-
577580
/**
578581
* factory method
579582
* @return instance of Customer
@@ -614,12 +617,12 @@ public static Customer of(final Customer template) {
614617
instance.setBillingAddressIds(template.getBillingAddressIds());
615618
instance.setIsEmailVerified(template.getIsEmailVerified());
616619
instance.setCustomerGroup(template.getCustomerGroup());
620+
instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments());
617621
instance.setCustom(template.getCustom());
618622
instance.setLocale(template.getLocale());
619623
instance.setSalutation(template.getSalutation());
620624
instance.setStores(template.getStores());
621625
instance.setAuthenticationMode(template.getAuthenticationMode());
622-
instance.setCustomerGroupAssignments(template.getCustomerGroupAssignments());
623626
return instance;
624627
}
625628

@@ -669,6 +672,11 @@ public static Customer deepCopy(@Nullable final Customer template) {
669672
instance.setIsEmailVerified(template.getIsEmailVerified());
670673
instance.setCustomerGroup(
671674
com.commercetools.api.models.customer_group.CustomerGroupReference.deepCopy(template.getCustomerGroup()));
675+
instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments())
676+
.map(t -> t.stream()
677+
.map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy)
678+
.collect(Collectors.toList()))
679+
.orElse(null));
672680
instance.setCustom(com.commercetools.api.models.type.CustomFields.deepCopy(template.getCustom()));
673681
instance.setLocale(template.getLocale());
674682
instance.setSalutation(template.getSalutation());
@@ -678,11 +686,6 @@ public static Customer deepCopy(@Nullable final Customer template) {
678686
.collect(Collectors.toList()))
679687
.orElse(null));
680688
instance.setAuthenticationMode(template.getAuthenticationMode());
681-
instance.setCustomerGroupAssignments(Optional.ofNullable(template.getCustomerGroupAssignments())
682-
.map(t -> t.stream()
683-
.map(com.commercetools.api.models.customer.CustomerGroupAssignment::deepCopy)
684-
.collect(Collectors.toList()))
685-
.orElse(null));
686689
return instance;
687690
}
688691

0 commit comments

Comments
 (0)