@@ -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