Skip to content

Commit 9fe3a30

Browse files
committed
build(codegen): updating SDK
1 parent a16ba34 commit 9fe3a30

File tree

64 files changed

+10265
-47
lines changed

Some content is hidden

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

64 files changed

+10265
-47
lines changed

changes.md

Lines changed: 57 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,10 @@
11
**Api changes**
22

33
<details>
4-
<summary>Added Property(s)</summary>
5-
6-
- added property `approvalRuleMode` to type `BusinessUnit`
7-
- added property `approvalRuleMode` to type `BusinessUnitDraft`
8-
- added property `approvalRuleMode` to type `Company`
9-
- added property `approvalRuleMode` to type `CompanyDraft`
10-
- added property `approvalRuleMode` to type `Division`
11-
- added property `approvalRuleMode` to type `DivisionDraft`
12-
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
13-
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
14-
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
15-
- added property `variants` to type `ProductTailoringCreatedMessage`
16-
- added property `metaTitle` to type `ProductTailoringCreatedMessagePayload`
17-
- added property `metaDescription` to type `ProductTailoringCreatedMessagePayload`
18-
- added property `metaKeywords` to type `ProductTailoringCreatedMessagePayload`
19-
- added property `variants` to type `ProductTailoringCreatedMessagePayload`
20-
- added property `variants` to type `ProductTailoringData`
21-
- added property `variants` to type `ProductTailoringDraft`
22-
- added property `variants` to type `ProductTailoringInStoreDraft`
23-
- added property `store` to type `StagedQuote`
24-
</details>
25-
26-
27-
<details>
28-
<summary>Added Resource(s)</summary>
4+
<summary>Added Enum(s)</summary>
295

30-
- added resource `/{projectKey}/customers/search`
31-
- added resource `/{projectKey}/customers/search/indexing-status`
32-
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
33-
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
34-
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
35-
- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes`
36-
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images`
37-
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images`
38-
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}`
39-
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}`
40-
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}`
41-
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}`
42-
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}`
43-
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}`
6+
- added enum `attribute-group` to type `ChangeSubscriptionResourceTypeId`
7+
- added enum `product-tailoring` to type `ChangeSubscriptionResourceTypeId`
448
</details>
459

4610

@@ -51,14 +15,6 @@
5115
</details>
5216

5317

54-
<details>
55-
<summary>Added Enum(s)</summary>
56-
57-
- added enum `attribute-group` to type `ChangeSubscriptionResourceTypeId`
58-
- added enum `product-tailoring` to type `ChangeSubscriptionResourceTypeId`
59-
</details>
60-
61-
6218
<details>
6319
<summary>Added Method(s)</summary>
6420

@@ -104,6 +60,30 @@
10460
</details>
10561

10662

63+
<details>
64+
<summary>Added Property(s)</summary>
65+
66+
- added property `approvalRuleMode` to type `BusinessUnit`
67+
- added property `approvalRuleMode` to type `BusinessUnitDraft`
68+
- added property `approvalRuleMode` to type `Company`
69+
- added property `approvalRuleMode` to type `CompanyDraft`
70+
- added property `approvalRuleMode` to type `Division`
71+
- added property `approvalRuleMode` to type `DivisionDraft`
72+
- added property `metaTitle` to type `ProductTailoringCreatedMessage`
73+
- added property `metaDescription` to type `ProductTailoringCreatedMessage`
74+
- added property `metaKeywords` to type `ProductTailoringCreatedMessage`
75+
- added property `variants` to type `ProductTailoringCreatedMessage`
76+
- added property `metaTitle` to type `ProductTailoringCreatedMessagePayload`
77+
- added property `metaDescription` to type `ProductTailoringCreatedMessagePayload`
78+
- added property `metaKeywords` to type `ProductTailoringCreatedMessagePayload`
79+
- added property `variants` to type `ProductTailoringCreatedMessagePayload`
80+
- added property `variants` to type `ProductTailoringData`
81+
- added property `variants` to type `ProductTailoringDraft`
82+
- added property `variants` to type `ProductTailoringInStoreDraft`
83+
- added property `store` to type `StagedQuote`
84+
</details>
85+
86+
10787
<details>
10888
<summary>Added Type(s)</summary>
10989

@@ -116,11 +96,21 @@
11696
- added type `CustomerSearchRequest`
11797
- added type `CustomerSearchResult`
11898
- added type `BusinessUnitApprovalRuleModeChangedMessage`
99+
- added type `ProductPriceCustomFieldAddedMessage`
100+
- added type `ProductPriceCustomFieldChangedMessage`
101+
- added type `ProductPriceCustomFieldRemovedMessage`
102+
- added type `ProductPriceCustomFieldsRemovedMessage`
103+
- added type `ProductPriceCustomFieldsSetMessage`
119104
- added type `ProductTailoringImageAddedMessage`
120105
- added type `ProductTailoringImagesSetMessage`
121106
- added type `ProductVariantTailoringAddedMessage`
122107
- added type `ProductVariantTailoringRemovedMessage`
123108
- added type `BusinessUnitApprovalRuleModeChangedMessagePayload`
109+
- added type `ProductPriceCustomFieldAddedMessagePayload`
110+
- added type `ProductPriceCustomFieldChangedMessagePayload`
111+
- added type `ProductPriceCustomFieldRemovedMessagePayload`
112+
- added type `ProductPriceCustomFieldsRemovedMessagePayload`
113+
- added type `ProductPriceCustomFieldsSetMessagePayload`
124114
- added type `ProductTailoringImageAddedMessagePayload`
125115
- added type `ProductTailoringImagesSetMessagePayload`
126116
- added type `ProductVariantTailoringAddedMessagePayload`
@@ -162,3 +152,23 @@
162152
- :warning: removed query parameter `localeProjection` from method `delete /{projectKey}/products/{ID}`
163153
</details>
164154

155+
156+
<details>
157+
<summary>Added Resource(s)</summary>
158+
159+
- added resource `/{projectKey}/customers/search`
160+
- added resource `/{projectKey}/customers/search/indexing-status`
161+
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests`
162+
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes`
163+
- added resource `/{projectKey}/in-store/key={storeKey}/quotes`
164+
- added resource `/{projectKey}/in-store/key={storeKey}/orders/quotes`
165+
- added resource `/{projectKey}/in-store/key={storeKey}/products/{productID}/product-tailoring/images`
166+
- added resource `/{projectKey}/in-store/key={storeKey}/products/key={productKey}/product-tailoring/images`
167+
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/key={key}`
168+
- added resource `/{projectKey}/in-store/key={storeKey}/quote-requests/{ID}`
169+
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/key={key}`
170+
- added resource `/{projectKey}/in-store/key={storeKey}/staged-quotes/{ID}`
171+
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/key={key}`
172+
- added resource `/{projectKey}/in-store/key={storeKey}/quotes/{ID}`
173+
</details>
174+

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

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7828,6 +7828,48 @@ type ProductPriceChanged implements MessagePayload {
78287828
type: String!
78297829
}
78307830

7831+
type ProductPriceCustomFieldAdded implements MessagePayload {
7832+
priceId: String!
7833+
variantId: Int!
7834+
staged: Boolean!
7835+
name: String!
7836+
value: Json!
7837+
type: String!
7838+
}
7839+
7840+
type ProductPriceCustomFieldChanged implements MessagePayload {
7841+
priceId: String!
7842+
variantId: Int!
7843+
staged: Boolean!
7844+
name: String!
7845+
value: Json!
7846+
type: String!
7847+
}
7848+
7849+
type ProductPriceCustomFieldRemoved implements MessagePayload {
7850+
priceId: String!
7851+
variantId: Int!
7852+
staged: Boolean!
7853+
name: String!
7854+
type: String!
7855+
}
7856+
7857+
type ProductPriceCustomFieldsRemoved implements MessagePayload {
7858+
priceId: String!
7859+
variantId: Int!
7860+
staged: Boolean!
7861+
type: String!
7862+
}
7863+
7864+
type ProductPriceCustomFieldsSet implements MessagePayload {
7865+
priceId: String!
7866+
variantId: Int!
7867+
staged: Boolean!
7868+
customField: CustomFieldsType!
7869+
oldTypeId: String
7870+
type: String!
7871+
}
7872+
78317873
input ProductPriceDataInput {
78327874
value: BaseMoneyInput!
78337875
key: String

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@
198198
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductImageAddedMessageImpl.class, name = ProductImageAddedMessage.PRODUCT_IMAGE_ADDED),
199199
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceAddedMessageImpl.class, name = ProductPriceAddedMessage.PRODUCT_PRICE_ADDED),
200200
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceChangedMessageImpl.class, name = ProductPriceChangedMessage.PRODUCT_PRICE_CHANGED),
201+
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessageImpl.class, name = ProductPriceCustomFieldAddedMessage.PRODUCT_PRICE_CUSTOM_FIELD_ADDED),
202+
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessageImpl.class, name = ProductPriceCustomFieldChangedMessage.PRODUCT_PRICE_CUSTOM_FIELD_CHANGED),
203+
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessageImpl.class, name = ProductPriceCustomFieldRemovedMessage.PRODUCT_PRICE_CUSTOM_FIELD_REMOVED),
204+
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessageImpl.class, name = ProductPriceCustomFieldsRemovedMessage.PRODUCT_PRICE_CUSTOM_FIELDS_REMOVED),
205+
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessageImpl.class, name = ProductPriceCustomFieldsSetMessage.PRODUCT_PRICE_CUSTOM_FIELDS_SET),
201206
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceDiscountsSetMessageImpl.class, name = ProductPriceDiscountsSetMessage.PRODUCT_PRICE_DISCOUNTS_SET),
202207
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceExternalDiscountSetMessageImpl.class, name = ProductPriceExternalDiscountSetMessage.PRODUCT_PRICE_EXTERNAL_DISCOUNT_SET),
203208
@JsonSubTypes.Type(value = com.commercetools.api.models.message.ProductPriceKeySetMessageImpl.class, name = ProductPriceKeySetMessage.PRODUCT_PRICE_KEY_SET),
@@ -897,6 +902,26 @@ public static Message deepCopy(@Nullable final Message template) {
897902
return com.commercetools.api.models.message.ProductPriceChangedMessage
898903
.deepCopy((com.commercetools.api.models.message.ProductPriceChangedMessage) template);
899904
}
905+
if (template instanceof com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessage) {
906+
return com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessage
907+
.deepCopy((com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessage) template);
908+
}
909+
if (template instanceof com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessage) {
910+
return com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessage
911+
.deepCopy((com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessage) template);
912+
}
913+
if (template instanceof com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessage) {
914+
return com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessage
915+
.deepCopy((com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessage) template);
916+
}
917+
if (template instanceof com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessage) {
918+
return com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessage
919+
.deepCopy((com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessage) template);
920+
}
921+
if (template instanceof com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessage) {
922+
return com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessage
923+
.deepCopy((com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessage) template);
924+
}
900925
if (template instanceof com.commercetools.api.models.message.ProductPriceDiscountsSetMessage) {
901926
return com.commercetools.api.models.message.ProductPriceDiscountsSetMessage
902927
.deepCopy((com.commercetools.api.models.message.ProductPriceDiscountsSetMessage) template);
@@ -2461,6 +2486,46 @@ public static com.commercetools.api.models.message.ProductPriceChangedMessageBui
24612486
return com.commercetools.api.models.message.ProductPriceChangedMessageBuilder.of();
24622487
}
24632488

2489+
/**
2490+
* builder for productPriceCustomFieldAdded subtype
2491+
* @return builder
2492+
*/
2493+
public static com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessageBuilder productPriceCustomFieldAddedBuilder() {
2494+
return com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessageBuilder.of();
2495+
}
2496+
2497+
/**
2498+
* builder for productPriceCustomFieldChanged subtype
2499+
* @return builder
2500+
*/
2501+
public static com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessageBuilder productPriceCustomFieldChangedBuilder() {
2502+
return com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessageBuilder.of();
2503+
}
2504+
2505+
/**
2506+
* builder for productPriceCustomFieldRemoved subtype
2507+
* @return builder
2508+
*/
2509+
public static com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessageBuilder productPriceCustomFieldRemovedBuilder() {
2510+
return com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessageBuilder.of();
2511+
}
2512+
2513+
/**
2514+
* builder for productPriceCustomFieldsRemoved subtype
2515+
* @return builder
2516+
*/
2517+
public static com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessageBuilder productPriceCustomFieldsRemovedBuilder() {
2518+
return com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessageBuilder.of();
2519+
}
2520+
2521+
/**
2522+
* builder for productPriceCustomFieldsSet subtype
2523+
* @return builder
2524+
*/
2525+
public static com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessageBuilder productPriceCustomFieldsSetBuilder() {
2526+
return com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessageBuilder.of();
2527+
}
2528+
24642529
/**
24652530
* builder for productPriceDiscountsSet subtype
24662531
* @return builder

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,26 @@ public com.commercetools.api.models.message.ProductPriceChangedMessageBuilder pr
635635
return com.commercetools.api.models.message.ProductPriceChangedMessageBuilder.of();
636636
}
637637

638+
public com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessageBuilder productPriceCustomFieldAddedBuilder() {
639+
return com.commercetools.api.models.message.ProductPriceCustomFieldAddedMessageBuilder.of();
640+
}
641+
642+
public com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessageBuilder productPriceCustomFieldChangedBuilder() {
643+
return com.commercetools.api.models.message.ProductPriceCustomFieldChangedMessageBuilder.of();
644+
}
645+
646+
public com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessageBuilder productPriceCustomFieldRemovedBuilder() {
647+
return com.commercetools.api.models.message.ProductPriceCustomFieldRemovedMessageBuilder.of();
648+
}
649+
650+
public com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessageBuilder productPriceCustomFieldsRemovedBuilder() {
651+
return com.commercetools.api.models.message.ProductPriceCustomFieldsRemovedMessageBuilder.of();
652+
}
653+
654+
public com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessageBuilder productPriceCustomFieldsSetBuilder() {
655+
return com.commercetools.api.models.message.ProductPriceCustomFieldsSetMessageBuilder.of();
656+
}
657+
638658
public com.commercetools.api.models.message.ProductPriceDiscountsSetMessageBuilder productPriceDiscountsSetBuilder() {
639659
return com.commercetools.api.models.message.ProductPriceDiscountsSetMessageBuilder.of();
640660
}

0 commit comments

Comments
 (0)