Skip to content

Commit 4ecdd00

Browse files
committed
build(codegen): updating SDK
1 parent ad04d3b commit 4ecdd00

File tree

56 files changed

+2250
-278
lines changed

Some content is hidden

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

56 files changed

+2250
-278
lines changed

changes.md

Lines changed: 5 additions & 242 deletions
Original file line numberDiff line numberDiff line change
@@ -3,253 +3,16 @@
33
<details>
44
<summary>Added Type(s)</summary>
55

6-
- added type `BusinessUnitAddCustomerGroupAssignmentAction`
7-
- added type `BusinessUnitRemoveCustomerGroupAssignmentAction`
8-
- added type `BusinessUnitSetCustomerGroupAssignmentsAction`
9-
- added type `AddressRole`
10-
- added type `BusinessUnitCustomerGroupAssignmentAddedMessage`
11-
- added type `BusinessUnitCustomerGroupAssignmentRemovedMessage`
12-
- added type `BusinessUnitCustomerGroupAssignmentsSetMessage`
13-
- added type `CustomerBillingAddressAddedMessage`
14-
- added type `CustomerBillingAddressRemovedMessage`
15-
- added type `CustomerExternalIdSetMessage`
16-
- added type `CustomerShippingAddressAddedMessage`
17-
- added type `CustomerShippingAddressRemovedMessage`
18-
- added type `BusinessUnitCustomerGroupAssignmentAddedMessagePayload`
19-
- added type `BusinessUnitCustomerGroupAssignmentRemovedMessagePayload`
20-
- added type `BusinessUnitCustomerGroupAssignmentsSetMessagePayload`
21-
- added type `CustomerBillingAddressAddedMessagePayload`
22-
- added type `CustomerBillingAddressRemovedMessagePayload`
23-
- added type `CustomerExternalIdSetMessagePayload`
24-
- added type `CustomerShippingAddressAddedMessagePayload`
25-
- added type `CustomerShippingAddressRemovedMessagePayload`
26-
</details>
27-
28-
29-
<details>
30-
<summary>MarkDeprecated Type(s)</summary>
31-
32-
- marked type `ProductSearchProjectionParams` as deprecated
33-
</details>
34-
35-
36-
<details>
37-
<summary>Removed Type(s)</summary>
38-
39-
- :warning: removed type `MyCartSetCustomLineItemRecurrenceInfoAction`
40-
- :warning: removed type `MyCartSetLineItemRecurrenceInfoAction`
41-
</details>
42-
43-
44-
<details>
45-
<summary>Added Enum(s)</summary>
46-
47-
- added enum `payment-method` to type `ResourceTypeId`
48-
- added enum `payment-method-info` to type `ResourceTypeId`
49-
</details>
50-
51-
52-
<details>
53-
<summary>MarkDeprecated Property(s)</summary>
54-
55-
- marked property `ProductSearchRequest::productProjectionParameters` as deprecated
56-
- marked property `ProductSearchResult::productProjection` as deprecated
57-
</details>
58-
59-
60-
<details>
61-
<summary>Required Property(s)</summary>
62-
63-
- :warning: changed property `shippingAddressIds` of type `BusinessUnit` to be required
64-
- :warning: changed property `billingAddressIds` of type `BusinessUnit` to be required
65-
- :warning: changed property `shippingAddressIds` of type `Company` to be required
66-
- :warning: changed property `billingAddressIds` of type `Company` to be required
67-
- :warning: changed property `shippingAddressIds` of type `Division` to be required
68-
- :warning: changed property `billingAddressIds` of type `Division` to be required
69-
- :warning: changed property `shippingAddressIds` of type `Customer` to be required
70-
- :warning: changed property `billingAddressIds` of type `Customer` to be required
71-
- :warning: changed property `customerGroupAssignments` of type `Customer` to be required
72-
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessage` to be required
73-
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessagePayload` to be required
74-
</details>
75-
76-
77-
<details>
78-
<summary>Removed Property(s)</summary>
79-
80-
- :warning: removed property `order` from type `RecurringOrderCreatedMessage`
81-
- :warning: removed property `order` from type `RecurringOrderCreatedMessagePayload`
6+
- added type `CartSetPurchaseOrderNumberAction`
7+
- added type `CartPurchaseOrderNumberSetMessage`
8+
- added type `CartPurchaseOrderNumberSetMessagePayload`
829
</details>
8310

8411

8512
<details>
8613
<summary>Added Property(s)</summary>
8714

88-
- added property `customerGroupAssignments` to type `BusinessUnit`
89-
- added property `customerGroupAssignments` to type `BusinessUnitDraft`
90-
- added property `customerGroupAssignments` to type `Company`
91-
- added property `customerGroupAssignments` to type `CompanyDraft`
92-
- added property `customerGroupAssignments` to type `Division`
93-
- added property `customerGroupAssignments` to type `DivisionDraft`
94-
- added property `addressRoles` to type `BusinessUnitAddressChangedMessage`
95-
- added property `addressRoles` to type `BusinessUnitAddressRemovedMessage`
96-
- added property `addressRoles` to type `CustomerAddressChangedMessage`
97-
- added property `addressRoles` to type `CustomerAddressRemovedMessage`
98-
- added property `email` to type `CustomerDeletedMessage`
99-
- added property `oldEmail` to type `CustomerEmailChangedMessage`
100-
- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessage`
101-
- added property `recurringOrder` to type `RecurringOrderCreatedMessage`
102-
- added property `addressRoles` to type `BusinessUnitAddressChangedMessagePayload`
103-
- added property `addressRoles` to type `BusinessUnitAddressRemovedMessagePayload`
104-
- added property `addressRoles` to type `CustomerAddressChangedMessagePayload`
105-
- added property `addressRoles` to type `CustomerAddressRemovedMessagePayload`
106-
- added property `email` to type `CustomerDeletedMessagePayload`
107-
- added property `oldEmail` to type `CustomerEmailChangedMessagePayload`
108-
- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessagePayload`
109-
- added property `recurringOrder` to type `RecurringOrderCreatedMessagePayload`
110-
</details>
111-
112-
**History changes**
113-
114-
<details>
115-
<summary>Added Type(s)</summary>
116-
117-
- added type `DirectDiscount`
118-
- added type `DiscountTypeCombination`
119-
- added type `BestDeal`
120-
- added type `Stacking`
121-
- added type `ShippingMethodLabel`
122-
- added type `ChangeCustomLineItemPriceRoundingModeChange`
123-
- added type `ChangeLineItemPriceRoundingModeChange`
124-
- added type `SetDirectDiscountsChange`
125-
- added type `SetReferencesChange`
126-
- added type `SetShippingInfoDiscountedPriceChange`
127-
- added type `SetShippingMethodTaxCategoryChange`
128-
- added type `SetTaxedShippingPriceChange`
129-
- added type `ShippingMethodAddShippingRateChange`
130-
- added type `ShippingMethodAddZoneChange`
131-
- added type `ShippingMethodChangeActiveChange`
132-
- added type `ShippingMethodChangeIsDefaultChange`
133-
- added type `ShippingMethodChangeNameChange`
134-
- added type `ShippingMethodChangeTaxCategoryChange`
135-
- added type `ShippingMethodRemoveShippingRateChange`
136-
- added type `ShippingMethodRemoveZoneChange`
137-
- added type `ShippingMethodSetCustomFieldChange`
138-
- added type `ShippingMethodSetCustomTypeChange`
139-
- added type `ShippingMethodSetKeyChange`
140-
- added type `ShippingMethodSetLocalizedDescriptionChange`
141-
- added type `ShippingMethodSetLocalizedNameChange`
142-
- added type `ShippingMethodSetPredicateChange`
143-
- added type `ZoneResourceIdentifier`
144-
- added type `ChangeDiscountTypeCombinationChange`
145-
- added type `StandalonePriceChangeActiveChange`
146-
- added type `StandalonePriceChangeValueChange`
147-
- added type `StandalonePriceSetCustomFieldChange`
148-
- added type `StandalonePriceSetCustomTypeChange`
149-
- added type `StandalonePriceSetDiscountedPriceChange`
150-
- added type `StandalonePriceSetKeyChange`
151-
- added type `StandalonePriceSetPriceTiersChange`
152-
- added type `StandalonePriceSetValidFromAndUntilChange`
153-
- added type `StandalonePriceSetValidFromChange`
154-
- added type `StandalonePriceSetValidUntilChange`
155-
- added type `StandalonePriceLabel`
156-
</details>
157-
158-
159-
<details>
160-
<summary>Added Enum(s)</summary>
161-
162-
- added enum `shipping-method` to type `ChangeHistoryResourceType`
163-
- added enum `standalone-price` to type `ChangeHistoryResourceType`
164-
- added enum `addShipping` to type `UpdateType`
165-
- added enum `addShippingRate` to type `UpdateType`
166-
- added enum `addZone` to type `UpdateType`
167-
- added enum `changeActive` to type `UpdateType`
168-
- added enum `changeApprovalRuleMode` to type `UpdateType`
169-
- added enum `changeCustomLineItemPriceRoundingMode` to type `UpdateType`
170-
- added enum `changeCustomer` to type `UpdateType`
171-
- added enum `changeDiscountTypeCombination` to type `UpdateType`
172-
- added enum `changeIncludedInStatistics` to type `UpdateType`
173-
- added enum `changeIsDefault` to type `UpdateType`
174-
- added enum `changeLastVariantId` to type `UpdateType`
175-
- added enum `changeLineItemPriceRoundingMode` to type `UpdateType`
176-
- added enum `changeLineItemPublished` to type `UpdateType`
177-
- added enum `changePriceRoundingMode` to type `UpdateType`
178-
- added enum `changeTaxCategory` to type `UpdateType`
179-
- added enum `changeTopLevelUnit` to type `UpdateType`
180-
- added enum `excludeProduct` to type `UpdateType`
181-
- added enum `removeShipping` to type `UpdateType`
182-
- added enum `removeShippingRate` to type `UpdateType`
183-
- added enum `removeZone` to type `UpdateType`
184-
- added enum `replaceTaxRate` to type `UpdateType`
185-
- added enum `revertStagedChanges` to type `UpdateType`
186-
- added enum `revertStagedVariantChanges` to type `UpdateType`
187-
- added enum `setAncestors` to type `UpdateType`
188-
- added enum `setAssociates` to type `UpdateType`
189-
- added enum `setBillingAddressCustomField` to type `UpdateType`
190-
- added enum `setBillingAddressCustomType` to type `UpdateType`
191-
- added enum `setBusinessUnit` to type `UpdateType`
192-
- added enum `setCustomLineItemDiscountedPrice` to type `UpdateType`
193-
- added enum `setCustomLineItemDiscountedPricePerQuantity` to type `UpdateType`
194-
- added enum `setCustomerGroupAssignments` to type `UpdateType`
195-
- added enum `setDeliveryAddressCustomField` to type `UpdateType`
196-
- added enum `setDeliveryAddressCustomType` to type `UpdateType`
197-
- added enum `setDeliveryCustomField` to type `UpdateType`
198-
- added enum `setDeliveryCustomType` to type `UpdateType`
199-
- added enum `setDirectDiscounts` to type `UpdateType`
200-
- added enum `setDiscountOnTotalPrice` to type `UpdateType`
201-
- added enum `setInheritedAssociates` to type `UpdateType`
202-
- added enum `setInheritedStores` to type `UpdateType`
203-
- added enum `setItemShippingAddressCustomField` to type `UpdateType`
204-
- added enum `setItemShippingAddressCustomType` to type `UpdateType`
205-
- added enum `setLocalizedDescription` to type `UpdateType`
206-
- added enum `setLocalizedName` to type `UpdateType`
207-
- added enum `setMaxCartQuantity` to type `UpdateType`
208-
- added enum `setMinCartQuantity` to type `UpdateType`
209-
- added enum `setParcelCustomField` to type `UpdateType`
210-
- added enum `setParcelCustomType` to type `UpdateType`
211-
- added enum `setPredicate` to type `UpdateType`
212-
- added enum `setPriceKey` to type `UpdateType`
213-
- added enum `setPriceMode` to type `UpdateType`
214-
- added enum `setPriceTiers` to type `UpdateType`
215-
- added enum `setProductAttribute` to type `UpdateType`
216-
- added enum `setReferences` to type `UpdateType`
217-
- added enum `setReturnInfo` to type `UpdateType`
218-
- added enum `setReturnItemCustomField` to type `UpdateType`
219-
- added enum `setReturnItemCustomType` to type `UpdateType`
220-
- added enum `setShippingAddressCustomField` to type `UpdateType`
221-
- added enum `setShippingAddressCustomType` to type `UpdateType`
222-
- added enum `setShippingCustomField` to type `UpdateType`
223-
- added enum `setShippingCustomType` to type `UpdateType`
224-
- added enum `setShippingInfoDiscountedPrice` to type `UpdateType`
225-
- added enum `setShippingMethodTaxCategory` to type `UpdateType`
226-
- added enum `setTaxedShippingPrice` to type `UpdateType`
227-
- added enum `setTransactionCustomField` to type `UpdateType`
228-
- added enum `setTransactionCustomType` to type `UpdateType`
229-
- added enum `setUnitType` to type `UpdateType`
230-
- added enum `setVariantExclusion` to type `UpdateType`
231-
</details>
232-
233-
**Checkout changes**
234-
235-
<details>
236-
<summary>Added Type(s)</summary>
237-
238-
- added type `ExpressContainerNotFound`
239-
- added type `ExpressMultipleContainersFound`
240-
- added type `ExpressPaymentCancelled`
241-
- added type `ExpressPaymentCompleted`
242-
- added type `ExpressPaymentFailed`
243-
- added type `ExpressPaymentIntegrationNotAvailable`
244-
- added type `ExpressPaymentInterrupted`
245-
- added type `ExpressPaymentStarted`
246-
- added type `NoExpressPaymentIntegrations`
247-
</details>
248-
249-
250-
<details>
251-
<summary>Added Enum(s)</summary>
252-
253-
- added enum `Express` to type `PaymentComponentType`
15+
- added property `purchaseOrderNumber` to type `Cart`
16+
- added property `purchaseOrderNumber` to type `CartDraft`
25417
</details>
25518

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1839,6 +1839,7 @@ type Cart implements Versioned & ReferenceExpandable {
18391839
custom: CustomFieldsType
18401840
deleteDaysAfterLastModification: Int
18411841
totalLineItemQuantity: Long
1842+
purchaseOrderNumber: String
18421843
id: String!
18431844
version: Long!
18441845
createdAt: DateTime!
@@ -2091,12 +2092,19 @@ input CartDraft {
20912092
customerGroup: ResourceIdentifierInput
20922093
shippingRateInput: ShippingRateInputDraft
20932094
origin: CartOrigin = Customer
2095+
purchaseOrderNumber: String
20942096
}
20952097

20962098
type CartFrozen implements MessagePayload {
20972099
type: String!
20982100
}
20992101

2102+
type CartPurchaseOrderNumberSet implements MessagePayload {
2103+
purchaseOrderNumber: String
2104+
oldPurchaseOrderNumber: String
2105+
type: String!
2106+
}
2107+
21002108
type CartLimitWithCurrent implements LimitWithCurrent {
21012109
limit: Long
21022110
current: Long!
@@ -2232,6 +2240,7 @@ input CartUpdateAction {
22322240
setLineItemTaxRate: SetCartLineItemTaxRate
22332241
setLineItemTotalPrice: SetCartLineItemTotalPrice
22342242
setLocale: SetCartLocale
2243+
setPurchaseOrderNumber: SetCartPurchaseOrderNumber
22352244
setShippingAddress: SetCartShippingAddress
22362245
setShippingAddressCustomField: SetCartShippingAddressCustomField
22372246
setShippingAddressCustomType: SetCartShippingAddressCustomType
@@ -12698,6 +12707,10 @@ input SetCartLocale {
1269812707
locale: Locale
1269912708
}
1270012709

12710+
input SetCartPurchaseOrderNumber {
12711+
purchaseOrderNumber: String
12712+
}
12713+
1270112714
input SetCartShippingAddress {
1270212715
address: AddressInput
1270312716
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/Cart.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,15 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
415415
@JsonProperty("deleteDaysAfterLastModification")
416416
public Integer getDeleteDaysAfterLastModification();
417417

418+
/**
419+
* <p>User-defined identifier of a purchase order.</p>
420+
* <p>It is typically set by the <a href="https://docs.commercetools.com/apis/ctp:api:type:Buyer" rel="nofollow">Buyer</a> or Merchant to track the purchase order during the <span>quote and order flow</span>.</p>
421+
* @return purchaseOrderNumber
422+
*/
423+
424+
@JsonProperty("purchaseOrderNumber")
425+
public String getPurchaseOrderNumber();
426+
418427
/**
419428
* <p>Date and time (UTC) the Cart was initially created.</p>
420429
* @return createdAt
@@ -803,6 +812,14 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
803812

804813
public void setDeleteDaysAfterLastModification(final Integer deleteDaysAfterLastModification);
805814

815+
/**
816+
* <p>User-defined identifier of a purchase order.</p>
817+
* <p>It is typically set by the <a href="https://docs.commercetools.com/apis/ctp:api:type:Buyer" rel="nofollow">Buyer</a> or Merchant to track the purchase order during the <span>quote and order flow</span>.</p>
818+
* @param purchaseOrderNumber value to be set
819+
*/
820+
821+
public void setPurchaseOrderNumber(final String purchaseOrderNumber);
822+
806823
/**
807824
* <p>Date and time (UTC) the Cart was initially created.</p>
808825
* @param createdAt value to be set
@@ -889,6 +906,7 @@ public static Cart of(final Cart template) {
889906
instance.setCustom(template.getCustom());
890907
instance.setDiscountTypeCombination(template.getDiscountTypeCombination());
891908
instance.setDeleteDaysAfterLastModification(template.getDeleteDaysAfterLastModification());
909+
instance.setPurchaseOrderNumber(template.getPurchaseOrderNumber());
892910
instance.setLastModifiedBy(template.getLastModifiedBy());
893911
instance.setCreatedBy(template.getCreatedBy());
894912
return instance;
@@ -987,6 +1005,7 @@ public static Cart deepCopy(@Nullable final Cart template) {
9871005
instance.setDiscountTypeCombination(
9881006
com.commercetools.api.models.cart.DiscountTypeCombination.deepCopy(template.getDiscountTypeCombination()));
9891007
instance.setDeleteDaysAfterLastModification(template.getDeleteDaysAfterLastModification());
1008+
instance.setPurchaseOrderNumber(template.getPurchaseOrderNumber());
9901009
instance.setLastModifiedBy(
9911010
com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy()));
9921011
instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy()));

0 commit comments

Comments
 (0)