Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
247 changes: 5 additions & 242 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,253 +3,16 @@
<details>
<summary>Added Type(s)</summary>

- added type `BusinessUnitAddCustomerGroupAssignmentAction`
- added type `BusinessUnitRemoveCustomerGroupAssignmentAction`
- added type `BusinessUnitSetCustomerGroupAssignmentsAction`
- added type `AddressRole`
- added type `BusinessUnitCustomerGroupAssignmentAddedMessage`
- added type `BusinessUnitCustomerGroupAssignmentRemovedMessage`
- added type `BusinessUnitCustomerGroupAssignmentsSetMessage`
- added type `CustomerBillingAddressAddedMessage`
- added type `CustomerBillingAddressRemovedMessage`
- added type `CustomerExternalIdSetMessage`
- added type `CustomerShippingAddressAddedMessage`
- added type `CustomerShippingAddressRemovedMessage`
- added type `BusinessUnitCustomerGroupAssignmentAddedMessagePayload`
- added type `BusinessUnitCustomerGroupAssignmentRemovedMessagePayload`
- added type `BusinessUnitCustomerGroupAssignmentsSetMessagePayload`
- added type `CustomerBillingAddressAddedMessagePayload`
- added type `CustomerBillingAddressRemovedMessagePayload`
- added type `CustomerExternalIdSetMessagePayload`
- added type `CustomerShippingAddressAddedMessagePayload`
- added type `CustomerShippingAddressRemovedMessagePayload`
</details>


<details>
<summary>MarkDeprecated Type(s)</summary>

- marked type `ProductSearchProjectionParams` as deprecated
</details>


<details>
<summary>Removed Type(s)</summary>

- :warning: removed type `MyCartSetCustomLineItemRecurrenceInfoAction`
- :warning: removed type `MyCartSetLineItemRecurrenceInfoAction`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `payment-method` to type `ResourceTypeId`
- added enum `payment-method-info` to type `ResourceTypeId`
</details>


<details>
<summary>MarkDeprecated Property(s)</summary>

- marked property `ProductSearchRequest::productProjectionParameters` as deprecated
- marked property `ProductSearchResult::productProjection` as deprecated
</details>


<details>
<summary>Required Property(s)</summary>

- :warning: changed property `shippingAddressIds` of type `BusinessUnit` to be required
- :warning: changed property `billingAddressIds` of type `BusinessUnit` to be required
- :warning: changed property `shippingAddressIds` of type `Company` to be required
- :warning: changed property `billingAddressIds` of type `Company` to be required
- :warning: changed property `shippingAddressIds` of type `Division` to be required
- :warning: changed property `billingAddressIds` of type `Division` to be required
- :warning: changed property `shippingAddressIds` of type `Customer` to be required
- :warning: changed property `billingAddressIds` of type `Customer` to be required
- :warning: changed property `customerGroupAssignments` of type `Customer` to be required
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessage` to be required
- :warning: changed property `customerGroupAssignments` of type `CustomerGroupAssignmentsSetMessagePayload` to be required
</details>


<details>
<summary>Removed Property(s)</summary>

- :warning: removed property `order` from type `RecurringOrderCreatedMessage`
- :warning: removed property `order` from type `RecurringOrderCreatedMessagePayload`
- added type `CartSetPurchaseOrderNumberAction`
- added type `CartPurchaseOrderNumberSetMessage`
- added type `CartPurchaseOrderNumberSetMessagePayload`
</details>


<details>
<summary>Added Property(s)</summary>

- added property `customerGroupAssignments` to type `BusinessUnit`
- added property `customerGroupAssignments` to type `BusinessUnitDraft`
- added property `customerGroupAssignments` to type `Company`
- added property `customerGroupAssignments` to type `CompanyDraft`
- added property `customerGroupAssignments` to type `Division`
- added property `customerGroupAssignments` to type `DivisionDraft`
- added property `addressRoles` to type `BusinessUnitAddressChangedMessage`
- added property `addressRoles` to type `BusinessUnitAddressRemovedMessage`
- added property `addressRoles` to type `CustomerAddressChangedMessage`
- added property `addressRoles` to type `CustomerAddressRemovedMessage`
- added property `email` to type `CustomerDeletedMessage`
- added property `oldEmail` to type `CustomerEmailChangedMessage`
- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessage`
- added property `recurringOrder` to type `RecurringOrderCreatedMessage`
- added property `addressRoles` to type `BusinessUnitAddressChangedMessagePayload`
- added property `addressRoles` to type `BusinessUnitAddressRemovedMessagePayload`
- added property `addressRoles` to type `CustomerAddressChangedMessagePayload`
- added property `addressRoles` to type `CustomerAddressRemovedMessagePayload`
- added property `email` to type `CustomerDeletedMessagePayload`
- added property `oldEmail` to type `CustomerEmailChangedMessagePayload`
- added property `oldCustomerGroupAssignments` to type `CustomerGroupAssignmentsSetMessagePayload`
- added property `recurringOrder` to type `RecurringOrderCreatedMessagePayload`
</details>

**History changes**

<details>
<summary>Added Type(s)</summary>

- added type `DirectDiscount`
- added type `DiscountTypeCombination`
- added type `BestDeal`
- added type `Stacking`
- added type `ShippingMethodLabel`
- added type `ChangeCustomLineItemPriceRoundingModeChange`
- added type `ChangeLineItemPriceRoundingModeChange`
- added type `SetDirectDiscountsChange`
- added type `SetReferencesChange`
- added type `SetShippingInfoDiscountedPriceChange`
- added type `SetShippingMethodTaxCategoryChange`
- added type `SetTaxedShippingPriceChange`
- added type `ShippingMethodAddShippingRateChange`
- added type `ShippingMethodAddZoneChange`
- added type `ShippingMethodChangeActiveChange`
- added type `ShippingMethodChangeIsDefaultChange`
- added type `ShippingMethodChangeNameChange`
- added type `ShippingMethodChangeTaxCategoryChange`
- added type `ShippingMethodRemoveShippingRateChange`
- added type `ShippingMethodRemoveZoneChange`
- added type `ShippingMethodSetCustomFieldChange`
- added type `ShippingMethodSetCustomTypeChange`
- added type `ShippingMethodSetKeyChange`
- added type `ShippingMethodSetLocalizedDescriptionChange`
- added type `ShippingMethodSetLocalizedNameChange`
- added type `ShippingMethodSetPredicateChange`
- added type `ZoneResourceIdentifier`
- added type `ChangeDiscountTypeCombinationChange`
- added type `StandalonePriceChangeActiveChange`
- added type `StandalonePriceChangeValueChange`
- added type `StandalonePriceSetCustomFieldChange`
- added type `StandalonePriceSetCustomTypeChange`
- added type `StandalonePriceSetDiscountedPriceChange`
- added type `StandalonePriceSetKeyChange`
- added type `StandalonePriceSetPriceTiersChange`
- added type `StandalonePriceSetValidFromAndUntilChange`
- added type `StandalonePriceSetValidFromChange`
- added type `StandalonePriceSetValidUntilChange`
- added type `StandalonePriceLabel`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `shipping-method` to type `ChangeHistoryResourceType`
- added enum `standalone-price` to type `ChangeHistoryResourceType`
- added enum `addShipping` to type `UpdateType`
- added enum `addShippingRate` to type `UpdateType`
- added enum `addZone` to type `UpdateType`
- added enum `changeActive` to type `UpdateType`
- added enum `changeApprovalRuleMode` to type `UpdateType`
- added enum `changeCustomLineItemPriceRoundingMode` to type `UpdateType`
- added enum `changeCustomer` to type `UpdateType`
- added enum `changeDiscountTypeCombination` to type `UpdateType`
- added enum `changeIncludedInStatistics` to type `UpdateType`
- added enum `changeIsDefault` to type `UpdateType`
- added enum `changeLastVariantId` to type `UpdateType`
- added enum `changeLineItemPriceRoundingMode` to type `UpdateType`
- added enum `changeLineItemPublished` to type `UpdateType`
- added enum `changePriceRoundingMode` to type `UpdateType`
- added enum `changeTaxCategory` to type `UpdateType`
- added enum `changeTopLevelUnit` to type `UpdateType`
- added enum `excludeProduct` to type `UpdateType`
- added enum `removeShipping` to type `UpdateType`
- added enum `removeShippingRate` to type `UpdateType`
- added enum `removeZone` to type `UpdateType`
- added enum `replaceTaxRate` to type `UpdateType`
- added enum `revertStagedChanges` to type `UpdateType`
- added enum `revertStagedVariantChanges` to type `UpdateType`
- added enum `setAncestors` to type `UpdateType`
- added enum `setAssociates` to type `UpdateType`
- added enum `setBillingAddressCustomField` to type `UpdateType`
- added enum `setBillingAddressCustomType` to type `UpdateType`
- added enum `setBusinessUnit` to type `UpdateType`
- added enum `setCustomLineItemDiscountedPrice` to type `UpdateType`
- added enum `setCustomLineItemDiscountedPricePerQuantity` to type `UpdateType`
- added enum `setCustomerGroupAssignments` to type `UpdateType`
- added enum `setDeliveryAddressCustomField` to type `UpdateType`
- added enum `setDeliveryAddressCustomType` to type `UpdateType`
- added enum `setDeliveryCustomField` to type `UpdateType`
- added enum `setDeliveryCustomType` to type `UpdateType`
- added enum `setDirectDiscounts` to type `UpdateType`
- added enum `setDiscountOnTotalPrice` to type `UpdateType`
- added enum `setInheritedAssociates` to type `UpdateType`
- added enum `setInheritedStores` to type `UpdateType`
- added enum `setItemShippingAddressCustomField` to type `UpdateType`
- added enum `setItemShippingAddressCustomType` to type `UpdateType`
- added enum `setLocalizedDescription` to type `UpdateType`
- added enum `setLocalizedName` to type `UpdateType`
- added enum `setMaxCartQuantity` to type `UpdateType`
- added enum `setMinCartQuantity` to type `UpdateType`
- added enum `setParcelCustomField` to type `UpdateType`
- added enum `setParcelCustomType` to type `UpdateType`
- added enum `setPredicate` to type `UpdateType`
- added enum `setPriceKey` to type `UpdateType`
- added enum `setPriceMode` to type `UpdateType`
- added enum `setPriceTiers` to type `UpdateType`
- added enum `setProductAttribute` to type `UpdateType`
- added enum `setReferences` to type `UpdateType`
- added enum `setReturnInfo` to type `UpdateType`
- added enum `setReturnItemCustomField` to type `UpdateType`
- added enum `setReturnItemCustomType` to type `UpdateType`
- added enum `setShippingAddressCustomField` to type `UpdateType`
- added enum `setShippingAddressCustomType` to type `UpdateType`
- added enum `setShippingCustomField` to type `UpdateType`
- added enum `setShippingCustomType` to type `UpdateType`
- added enum `setShippingInfoDiscountedPrice` to type `UpdateType`
- added enum `setShippingMethodTaxCategory` to type `UpdateType`
- added enum `setTaxedShippingPrice` to type `UpdateType`
- added enum `setTransactionCustomField` to type `UpdateType`
- added enum `setTransactionCustomType` to type `UpdateType`
- added enum `setUnitType` to type `UpdateType`
- added enum `setVariantExclusion` to type `UpdateType`
</details>

**Checkout changes**

<details>
<summary>Added Type(s)</summary>

- added type `ExpressContainerNotFound`
- added type `ExpressMultipleContainersFound`
- added type `ExpressPaymentCancelled`
- added type `ExpressPaymentCompleted`
- added type `ExpressPaymentFailed`
- added type `ExpressPaymentIntegrationNotAvailable`
- added type `ExpressPaymentInterrupted`
- added type `ExpressPaymentStarted`
- added type `NoExpressPaymentIntegrations`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `Express` to type `PaymentComponentType`
- added property `purchaseOrderNumber` to type `Cart`
- added property `purchaseOrderNumber` to type `CartDraft`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,7 @@ type Cart implements Versioned & ReferenceExpandable {
custom: CustomFieldsType
deleteDaysAfterLastModification: Int
totalLineItemQuantity: Long
purchaseOrderNumber: String
id: String!
version: Long!
createdAt: DateTime!
Expand Down Expand Up @@ -2091,12 +2092,19 @@ input CartDraft {
customerGroup: ResourceIdentifierInput
shippingRateInput: ShippingRateInputDraft
origin: CartOrigin = Customer
purchaseOrderNumber: String
}

type CartFrozen implements MessagePayload {
type: String!
}

type CartPurchaseOrderNumberSet implements MessagePayload {
purchaseOrderNumber: String
oldPurchaseOrderNumber: String
type: String!
}

type CartLimitWithCurrent implements LimitWithCurrent {
limit: Long
current: Long!
Expand Down Expand Up @@ -2232,6 +2240,7 @@ input CartUpdateAction {
setLineItemTaxRate: SetCartLineItemTaxRate
setLineItemTotalPrice: SetCartLineItemTotalPrice
setLocale: SetCartLocale
setPurchaseOrderNumber: SetCartPurchaseOrderNumber
setShippingAddress: SetCartShippingAddress
setShippingAddressCustomField: SetCartShippingAddressCustomField
setShippingAddressCustomType: SetCartShippingAddressCustomType
Expand Down Expand Up @@ -12698,6 +12707,10 @@ input SetCartLocale {
locale: Locale
}

input SetCartPurchaseOrderNumber {
purchaseOrderNumber: String
}

input SetCartShippingAddress {
address: AddressInput
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,15 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod
@JsonProperty("deleteDaysAfterLastModification")
public Integer getDeleteDaysAfterLastModification();

/**
* <p>User-defined identifier of a purchase order.</p>
* <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>
* @return purchaseOrderNumber
*/

@JsonProperty("purchaseOrderNumber")
public String getPurchaseOrderNumber();

/**
* <p>Date and time (UTC) the Cart was initially created.</p>
* @return createdAt
Expand Down Expand Up @@ -803,6 +812,14 @@ public interface Cart extends BaseResource, CartMixin, com.commercetools.api.mod

public void setDeleteDaysAfterLastModification(final Integer deleteDaysAfterLastModification);

/**
* <p>User-defined identifier of a purchase order.</p>
* <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>
* @param purchaseOrderNumber value to be set
*/

public void setPurchaseOrderNumber(final String purchaseOrderNumber);

/**
* <p>Date and time (UTC) the Cart was initially created.</p>
* @param createdAt value to be set
Expand Down Expand Up @@ -889,6 +906,7 @@ public static Cart of(final Cart template) {
instance.setCustom(template.getCustom());
instance.setDiscountTypeCombination(template.getDiscountTypeCombination());
instance.setDeleteDaysAfterLastModification(template.getDeleteDaysAfterLastModification());
instance.setPurchaseOrderNumber(template.getPurchaseOrderNumber());
instance.setLastModifiedBy(template.getLastModifiedBy());
instance.setCreatedBy(template.getCreatedBy());
return instance;
Expand Down Expand Up @@ -987,6 +1005,7 @@ public static Cart deepCopy(@Nullable final Cart template) {
instance.setDiscountTypeCombination(
com.commercetools.api.models.cart.DiscountTypeCombination.deepCopy(template.getDiscountTypeCombination()));
instance.setDeleteDaysAfterLastModification(template.getDeleteDaysAfterLastModification());
instance.setPurchaseOrderNumber(template.getPurchaseOrderNumber());
instance.setLastModifiedBy(
com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy()));
instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy()));
Expand Down
Loading