Skip to content

Commit 9c2a831

Browse files
committed
build(codegen): updating SDK
1 parent 005708c commit 9c2a831

File tree

112 files changed

+9445
-26
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

+9445
-26
lines changed

changes.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,45 @@
1414
</details>
1515

1616

17+
<details>
18+
<summary>Added QueryParameter(s)</summary>
19+
20+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products`
21+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products`
22+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections`
23+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/key={key}`
24+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/key={key}`
25+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/key={key}`
26+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/products/{ID}`
27+
- added query parameter `priceCustomerGroupAssignments` to method `post /{projectKey}/products/{ID}`
28+
- added query parameter `priceCustomerGroupAssignments` to method `delete /{projectKey}/products/{ID}`
29+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/search`
30+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/key={key}`
31+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/product-projections/{ID}`
32+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}`
33+
- added query parameter `priceCustomerGroupAssignments` to method `get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}`
34+
</details>
35+
36+
1737
<details>
1838
<summary>Added Type(s)</summary>
1939

2040
- added type `BusinessUnitAssociateResponse`
2141
- added type `BestDeal`
2242
- added type `DiscountTypeCombination`
2343
- added type `Stacking`
44+
- added type `CustomerGroupAssignment`
45+
- added type `CustomerGroupAssignmentDraft`
46+
- added type `CustomerAddCustomerGroupAssignmentAction`
47+
- added type `CustomerRemoveCustomerGroupAssignmentAction`
48+
- added type `CustomerSetCustomerGroupAssignmentsAction`
49+
- added type `CustomerGroupAssignmentAddedMessage`
50+
- added type `CustomerGroupAssignmentRemovedMessage`
51+
- added type `CustomerGroupAssignmentsSetMessage`
2452
- added type `OrderBusinessUnitSetMessage`
53+
- added type `CustomerGroupAssignmentAddedMessagePayload`
54+
- added type `CustomerGroupAssignmentRemovedMessagePayload`
55+
- added type `CustomerGroupAssignmentsSetMessagePayload`
2556
- added type `OrderBusinessUnitSetMessagePayload`
2657
- added type `StagedOrderSetBusinessUnitAction`
2758
- added type `OrderSetBusinessUnitAction`
@@ -66,8 +97,11 @@
6697
<summary>Added Property(s)</summary>
6798

6899
- added property `discountTypeCombination` to type `Cart`
100+
- added property `customerGroupAssignments` to type `Customer`
101+
- added property `customerGroupAssignments` to type `CustomerDraft`
69102
- added property `discountTypeCombination` to type `StagedOrder`
70103
- added property `discountTypeCombination` to type `Order`
104+
- added property `priceCustomerGroupAssignments` to type `ProductSearchProjectionParams`
71105
</details>
72106

73107

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

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ 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"
202+
input AddCustomerGroupAssignment {
203+
customerGroupAssignment: CustomerGroupAssignmentDraft!
204+
}
205+
201206
input AddCustomerShippingAddressId {
202207
addressId: String
203208
addressKey: String
@@ -3521,6 +3526,9 @@ type Customer implements Versioned & ReferenceExpandable {
35213526
billingAddresses: [Address!]!
35223527
storesRef: [KeyReference!]!
35233528
stores: [Store!]!
3529+
3530+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3531+
customerGroupAssignments: [CustomerGroupAssignment!]
35243532
custom: CustomFieldsType
35253533
id: String!
35263534
version: Long!
@@ -3677,6 +3685,35 @@ type CustomerGroup implements Versioned & ReferenceExpandable {
36773685
lastModifiedBy: Initiator
36783686
}
36793687

3688+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3689+
type CustomerGroupAssignment {
3690+
customerGroupRef: Reference
3691+
customerGroup: CustomerGroup
3692+
}
3693+
3694+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3695+
type CustomerGroupAssignmentAdded implements MessagePayload {
3696+
customerGroupAssignment: CustomerGroupAssignment!
3697+
type: String!
3698+
}
3699+
3700+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3701+
input CustomerGroupAssignmentDraft {
3702+
customerGroup: ResourceIdentifierInput!
3703+
}
3704+
3705+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3706+
type CustomerGroupAssignmentRemoved implements MessagePayload {
3707+
customerGroupAssignment: CustomerGroupAssignment!
3708+
type: String!
3709+
}
3710+
3711+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3712+
type CustomerGroupAssignmentsSet implements MessagePayload {
3713+
customerGroupAssignments: [CustomerGroupAssignment!]!
3714+
type: String!
3715+
}
3716+
36803717
type CustomerGroupCustomFieldAdded implements MessagePayload {
36813718
name: String!
36823719
value: Json!
@@ -3910,6 +3947,9 @@ input CustomerSignUpDraft {
39103947
anonymousCart: ResourceIdentifierInput
39113948
externalId: String
39123949
customerGroup: ResourceIdentifierInput
3950+
3951+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3952+
customerGroupAssignments: [CustomerGroupAssignmentDraft!]
39133953
isEmailVerified: Boolean
39143954
anonymousId: String
39153955
authenticationMode: AuthenticationMode
@@ -3923,12 +3963,18 @@ type CustomerTitleSet implements MessagePayload {
39233963
input CustomerUpdateAction {
39243964
addAddress: AddCustomerAddress
39253965
addBillingAddressId: AddCustomerBillingAddressId
3966+
3967+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3968+
addCustomerGroupAssignment: AddCustomerGroupAssignment
39263969
addShippingAddressId: AddCustomerShippingAddressId
39273970
addStore: AddCustomerStore
39283971
changeAddress: ChangeCustomerAddress
39293972
changeEmail: ChangeCustomerEmail
39303973
removeAddress: RemoveCustomerAddress
39313974
removeBillingAddressId: RemoveCustomerBillingAddressId
3975+
3976+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3977+
removeCustomerGroupAssignment: RemoveCustomerGroupAssignment
39323978
removeShippingAddressId: RemoveCustomerShippingAddressId
39333979
removeStore: RemoveCustomerStore
39343980
setCompanyName: SetCustomerCompanyName
@@ -3938,6 +3984,9 @@ input CustomerUpdateAction {
39383984
setCustomField: SetCustomerCustomField
39393985
setCustomType: SetCustomerCustomType
39403986
setCustomerGroup: SetCustomerGroup
3987+
3988+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
3989+
setCustomerGroupAssignments: SetCustomerGroupAssignments
39413990
setKey: SetCustomerKey
39423991
setLocale: SetCustomerLocale
39433992
setCustomerNumber: SetCustomerNumber
@@ -8999,7 +9048,7 @@ type ProductVariant {
89999048
prices: [ProductPrice!]
90009049

90019050
"Returns a single price based on the price selection rules."
9002-
price(currency: Currency!, country: Country, customerGroupId: String, channelId: String, date: DateTime): ProductPrice
9051+
price(currency: Currency!, country: Country, customerGroupId: String, customerGroupAssignmentIds: [String!], channelId: String, date: DateTime): ProductPrice
90039052
images: [Image!]!
90049053
assets: [Asset!]!
90059054
availability: ProductVariantAvailabilityWithChannels
@@ -10050,6 +10099,11 @@ input RemoveCustomerBillingAddressId {
1005010099
addressKey: String
1005110100
}
1005210101

10102+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
10103+
input RemoveCustomerGroupAssignment {
10104+
customerGroup: ResourceIdentifierInput!
10105+
}
10106+
1005310107
input RemoveCustomerShippingAddressId {
1005410108
addressId: String
1005510109
addressKey: String
@@ -11289,6 +11343,11 @@ input SetCustomerGroup {
1128911343
customerGroup: ResourceIdentifierInput
1129011344
}
1129111345

11346+
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
11347+
input SetCustomerGroupAssignments {
11348+
customerGroupAssignments: [CustomerGroupAssignmentDraft!]!
11349+
}
11350+
1129211351
input SetCustomerGroupCustomField {
1129311352
name: String!
1129411353
value: String

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
@@ -126,6 +126,10 @@ public List<String> getPriceCustomerGroup() {
126126
return this.getQueryParam("priceCustomerGroup");
127127
}
128128

129+
public List<String> getPriceCustomerGroupAssignments() {
130+
return this.getQueryParam("priceCustomerGroupAssignments");
131+
}
132+
129133
public List<String> getPriceChannel() {
130134
return this.getQueryParam("priceChannel");
131135
}
@@ -497,6 +501,95 @@ public <TValue> ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDGet addPri
497501
.collect(Collectors.toList()));
498502
}
499503

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

0 commit comments

Comments
 (0)