Skip to content

Commit bba089a

Browse files
committed
build(codegen): updating SDK
1 parent d0eceaa commit bba089a

File tree

112 files changed

+9376
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+9376
-11
lines changed

changes.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,48 @@
1010
<details>
1111
<summary>Added Type(s)</summary>
1212

13+
- added type `CustomerGroupAssignment`
14+
- added type `CustomerGroupAssignmentDraft`
15+
- added type `CustomerAddCustomerGroupAssignmentAction`
16+
- added type `CustomerRemoveCustomerGroupAssignmentAction`
17+
- added type `CustomerSetCustomerGroupAssignmentsAction`
18+
- added type `CustomerGroupAssignmentAddedMessage`
19+
- added type `CustomerGroupAssignmentRemovedMessage`
20+
- added type `CustomerGroupAssignmentsSetMessage`
21+
- added type `CustomerGroupAssignmentAddedMessagePayload`
22+
- added type `CustomerGroupAssignmentRemovedMessagePayload`
23+
- added type `CustomerGroupAssignmentsSetMessagePayload`
1324
- added type `ShoppingListSetBusinessUnitAction`
1425
</details>
1526

1627

1728
<details>
1829
<summary>Added Property(s)</summary>
1930

31+
- added property `customerGroupAssignments` to type `Customer`
32+
- added property `customerGroupAssignments` to type `CustomerDraft`
33+
- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
2034
- added property `businessUnit` to type `ShoppingList`
2135
- added property `businessUnit` to type `ShoppingListDraft`
2236
</details>
2337

38+
39+
<details>
40+
<summary>Added QueryParameter(s)</summary>
41+
42+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products`
43+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products`
44+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections`
45+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}`
46+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}`
47+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}`
48+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}`
49+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}`
50+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}`
51+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search`
52+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}`
53+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}`
54+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
55+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
56+
</details>
57+

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8947,7 +8947,7 @@ type ProductVariant {
89478947
prices: [ProductPrice!]
89488948

89498949
"Returns a single price based on the price selection rules."
8950-
price(currency: Currency!, country: Country, customerGroupId: String, channelId: String, date: DateTime): ProductPrice
8950+
price(currency: Currency!, country: Country, customerGroupId: String, customerGroupAssignmentIds: [String], channelId: String, date: DateTime): ProductPrice
89518951
images: [Image!]!
89528952
assets: [Asset!]!
89538953
availability: ProductVariantAvailabilityWithChannels

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet.java

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public List<String> getPriceCustomerGroup() {
125125
return this.getQueryParam("priceCustomerGroup");
126126
}
127127

128+
public List<String> getPriceCustomerGroupAssignments() {
129+
return this.getQueryParam("priceCustomerGroupAssignments");
130+
}
131+
128132
public List<String> getPriceChannel() {
129133
return this.getQueryParam("priceChannel");
130134
}
@@ -496,6 +500,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPri
496500
.collect(Collectors.toList()));
497501
}
498502

503+
/**
504+
* set priceCustomerGroupAssignments with the specified value
505+
* @param priceCustomerGroupAssignments value to be set
506+
* @param <TValue> value type
507+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
508+
*/
509+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
510+
final TValue priceCustomerGroupAssignments) {
511+
return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
512+
}
513+
514+
/**
515+
* add additional priceCustomerGroupAssignments query parameter
516+
* @param priceCustomerGroupAssignments value to be added
517+
* @param <TValue> value type
518+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
519+
*/
520+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
521+
final TValue priceCustomerGroupAssignments) {
522+
return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
523+
}
524+
525+
/**
526+
* set priceCustomerGroupAssignments with the specified value
527+
* @param supplier supplier for the value to be set
528+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
529+
*/
530+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
531+
final Supplier<String> supplier) {
532+
return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get());
533+
}
534+
535+
/**
536+
* add additional priceCustomerGroupAssignments query parameter
537+
* @param supplier supplier for the value to be added
538+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
539+
*/
540+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
541+
final Supplier<String> supplier) {
542+
return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get());
543+
}
544+
545+
/**
546+
* set priceCustomerGroupAssignments with the specified value
547+
* @param op builder for the value to be set
548+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
549+
*/
550+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
551+
final Function<StringBuilder, StringBuilder> op) {
552+
return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
553+
}
554+
555+
/**
556+
* add additional priceCustomerGroupAssignments query parameter
557+
* @param op builder for the value to be added
558+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
559+
*/
560+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
561+
final Function<StringBuilder, StringBuilder> op) {
562+
return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
563+
}
564+
565+
/**
566+
* set priceCustomerGroupAssignments with the specified values
567+
* @param priceCustomerGroupAssignments values to be set
568+
* @param <TValue> value type
569+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
570+
*/
571+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
572+
final Collection<TValue> priceCustomerGroupAssignments) {
573+
return copy().withoutQueryParam("priceCustomerGroupAssignments")
574+
.addQueryParams(priceCustomerGroupAssignments.stream()
575+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
576+
.collect(Collectors.toList()));
577+
}
578+
579+
/**
580+
* add additional priceCustomerGroupAssignments query parameters
581+
* @param priceCustomerGroupAssignments values to be added
582+
* @param <TValue> value type
583+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet
584+
*/
585+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
586+
final Collection<TValue> priceCustomerGroupAssignments) {
587+
return copy().addQueryParams(priceCustomerGroupAssignments.stream()
588+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
589+
.collect(Collectors.toList()));
590+
}
591+
499592
/**
500593
* set priceChannel with the specified value
501594
* @param priceChannel value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet.java

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ public List<String> getPriceCustomerGroup() {
125125
return this.getQueryParam("priceCustomerGroup");
126126
}
127127

128+
public List<String> getPriceCustomerGroupAssignments() {
129+
return this.getQueryParam("priceCustomerGroupAssignments");
130+
}
131+
128132
public List<String> getPriceChannel() {
129133
return this.getQueryParam("priceChannel");
130134
}
@@ -499,6 +503,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet ad
499503
.collect(Collectors.toList()));
500504
}
501505

506+
/**
507+
* set priceCustomerGroupAssignments with the specified value
508+
* @param priceCustomerGroupAssignments value to be set
509+
* @param <TValue> value type
510+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
511+
*/
512+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments(
513+
final TValue priceCustomerGroupAssignments) {
514+
return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
515+
}
516+
517+
/**
518+
* add additional priceCustomerGroupAssignments query parameter
519+
* @param priceCustomerGroupAssignments value to be added
520+
* @param <TValue> value type
521+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
522+
*/
523+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments(
524+
final TValue priceCustomerGroupAssignments) {
525+
return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
526+
}
527+
528+
/**
529+
* set priceCustomerGroupAssignments with the specified value
530+
* @param supplier supplier for the value to be set
531+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
532+
*/
533+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments(
534+
final Supplier<String> supplier) {
535+
return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get());
536+
}
537+
538+
/**
539+
* add additional priceCustomerGroupAssignments query parameter
540+
* @param supplier supplier for the value to be added
541+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
542+
*/
543+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments(
544+
final Supplier<String> supplier) {
545+
return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get());
546+
}
547+
548+
/**
549+
* set priceCustomerGroupAssignments with the specified value
550+
* @param op builder for the value to be set
551+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
552+
*/
553+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments(
554+
final Function<StringBuilder, StringBuilder> op) {
555+
return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
556+
}
557+
558+
/**
559+
* add additional priceCustomerGroupAssignments query parameter
560+
* @param op builder for the value to be added
561+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
562+
*/
563+
public ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments(
564+
final Function<StringBuilder, StringBuilder> op) {
565+
return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
566+
}
567+
568+
/**
569+
* set priceCustomerGroupAssignments with the specified values
570+
* @param priceCustomerGroupAssignments values to be set
571+
* @param <TValue> value type
572+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
573+
*/
574+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet withPriceCustomerGroupAssignments(
575+
final Collection<TValue> priceCustomerGroupAssignments) {
576+
return copy().withoutQueryParam("priceCustomerGroupAssignments")
577+
.addQueryParams(priceCustomerGroupAssignments.stream()
578+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
579+
.collect(Collectors.toList()));
580+
}
581+
582+
/**
583+
* add additional priceCustomerGroupAssignments query parameters
584+
* @param priceCustomerGroupAssignments values to be added
585+
* @param <TValue> value type
586+
* @return ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet
587+
*/
588+
public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyGet addPriceCustomerGroupAssignments(
589+
final Collection<TValue> priceCustomerGroupAssignments) {
590+
return copy().addQueryParams(priceCustomerGroupAssignments.stream()
591+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
592+
.collect(Collectors.toList()));
593+
}
594+
502595
/**
503596
* set priceChannel with the specified value
504597
* @param priceChannel value to be set

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDGet.java

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ public List<String> getPriceCustomerGroup() {
114114
return this.getQueryParam("priceCustomerGroup");
115115
}
116116

117+
public List<String> getPriceCustomerGroupAssignments() {
118+
return this.getQueryParam("priceCustomerGroupAssignments");
119+
}
120+
117121
public List<String> getPriceChannel() {
118122
return this.getQueryParam("priceChannel");
119123
}
@@ -464,6 +468,93 @@ public <TValue> ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroup(
464468
.collect(Collectors.toList()));
465469
}
466470

471+
/**
472+
* set priceCustomerGroupAssignments with the specified value
473+
* @param priceCustomerGroupAssignments value to be set
474+
* @param <TValue> value type
475+
* @return ByProjectKeyProductProjectionsByIDGet
476+
*/
477+
public <TValue> ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
478+
final TValue priceCustomerGroupAssignments) {
479+
return copy().withQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
480+
}
481+
482+
/**
483+
* add additional priceCustomerGroupAssignments query parameter
484+
* @param priceCustomerGroupAssignments value to be added
485+
* @param <TValue> value type
486+
* @return ByProjectKeyProductProjectionsByIDGet
487+
*/
488+
public <TValue> ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
489+
final TValue priceCustomerGroupAssignments) {
490+
return copy().addQueryParam("priceCustomerGroupAssignments", priceCustomerGroupAssignments);
491+
}
492+
493+
/**
494+
* set priceCustomerGroupAssignments with the specified value
495+
* @param supplier supplier for the value to be set
496+
* @return ByProjectKeyProductProjectionsByIDGet
497+
*/
498+
public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(final Supplier<String> supplier) {
499+
return copy().withQueryParam("priceCustomerGroupAssignments", supplier.get());
500+
}
501+
502+
/**
503+
* add additional priceCustomerGroupAssignments query parameter
504+
* @param supplier supplier for the value to be added
505+
* @return ByProjectKeyProductProjectionsByIDGet
506+
*/
507+
public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(final Supplier<String> supplier) {
508+
return copy().addQueryParam("priceCustomerGroupAssignments", supplier.get());
509+
}
510+
511+
/**
512+
* set priceCustomerGroupAssignments with the specified value
513+
* @param op builder for the value to be set
514+
* @return ByProjectKeyProductProjectionsByIDGet
515+
*/
516+
public ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
517+
final Function<StringBuilder, StringBuilder> op) {
518+
return copy().withQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
519+
}
520+
521+
/**
522+
* add additional priceCustomerGroupAssignments query parameter
523+
* @param op builder for the value to be added
524+
* @return ByProjectKeyProductProjectionsByIDGet
525+
*/
526+
public ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
527+
final Function<StringBuilder, StringBuilder> op) {
528+
return copy().addQueryParam("priceCustomerGroupAssignments", op.apply(new StringBuilder()));
529+
}
530+
531+
/**
532+
* set priceCustomerGroupAssignments with the specified values
533+
* @param priceCustomerGroupAssignments values to be set
534+
* @param <TValue> value type
535+
* @return ByProjectKeyProductProjectionsByIDGet
536+
*/
537+
public <TValue> ByProjectKeyProductProjectionsByIDGet withPriceCustomerGroupAssignments(
538+
final Collection<TValue> priceCustomerGroupAssignments) {
539+
return copy().withoutQueryParam("priceCustomerGroupAssignments")
540+
.addQueryParams(priceCustomerGroupAssignments.stream()
541+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
542+
.collect(Collectors.toList()));
543+
}
544+
545+
/**
546+
* add additional priceCustomerGroupAssignments query parameters
547+
* @param priceCustomerGroupAssignments values to be added
548+
* @param <TValue> value type
549+
* @return ByProjectKeyProductProjectionsByIDGet
550+
*/
551+
public <TValue> ByProjectKeyProductProjectionsByIDGet addPriceCustomerGroupAssignments(
552+
final Collection<TValue> priceCustomerGroupAssignments) {
553+
return copy().addQueryParams(priceCustomerGroupAssignments.stream()
554+
.map(s -> new ParamEntry<>("priceCustomerGroupAssignments", s.toString()))
555+
.collect(Collectors.toList()));
556+
}
557+
467558
/**
468559
* set priceChannel with the specified value
469560
* @param priceChannel value to be set

0 commit comments

Comments
 (0)