Skip to content
Open
  •  
  •  
  •  
897 changes: 174 additions & 723 deletions changes.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,11 @@ input AddressInput {
custom: CustomFieldsDraft
}

enum AddressRole {
Billing
Shipping
}

enum AnonymousCartSignInMode {
"""
`LineItem`s of the anonymous cart will be copied to the customer’s active cart that has been modified most recently.
Expand Down Expand Up @@ -1400,6 +1405,9 @@ type BusinessUnit implements Versioned & ReferenceExpandable {
topLevelUnitRef: KeyReference
topLevelUnit: BusinessUnit!
approvalRuleMode: BusinessUnitApprovalRuleMode!

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
customerGroupAssignments: [CustomerGroupAssignment!]
id: String!
version: Long!
createdAt: DateTime!
Expand All @@ -1415,45 +1423,47 @@ type BusinessUnitAddressAdded implements MessagePayload {

type BusinessUnitAddressChanged implements MessagePayload {
address: Address!
addressRoles: [AddressRole!]!
type: String!
}

type BusinessUnitAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
addressId: String!
type: String!
}

type BusinessUnitAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
oldValue: Json
addressId: String
addressId: String!
type: String!
}

type BusinessUnitAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
addressId: String!
type: String!
}

type BusinessUnitAddressCustomTypeRemoved implements MessagePayload {
oldTypeId: String
addressId: String
addressId: String!
type: String!
}

type BusinessUnitAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
oldTypeId: String
addressId: String
addressId: String!
type: String!
}

type BusinessUnitAddressRemoved implements MessagePayload {
address: Address!
addressRoles: [AddressRole!]!
type: String!
}

Expand Down Expand Up @@ -1563,6 +1573,25 @@ type BusinessUnitCustomTypeSet implements MessagePayload {
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type BusinessUnitCustomerGroupAssignmentAdded implements MessagePayload {
customerGroupAssignment: CustomerGroupAssignment!
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type BusinessUnitCustomerGroupAssignmentRemoved implements MessagePayload {
customerGroupAssignment: CustomerGroupAssignment!
type: String!
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type BusinessUnitCustomerGroupAssignmentsSet implements MessagePayload {
customerGroupAssignments: [CustomerGroupAssignment!]
oldCustomerGroupAssignments: [CustomerGroupAssignment!]
type: String!
}

type BusinessUnitDefaultBillingAddressSet implements MessagePayload {
address: Address
type: String!
Expand Down Expand Up @@ -1602,6 +1631,9 @@ input BusinessUnitDraft {
associates: [AssociateDraft!]
associateMode: BusinessUnitAssociateMode
approvalRuleMode: BusinessUnitApprovalRuleMode

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
customerGroupAssignments: [CustomerGroupAssignmentDraft!]
}

type BusinessUnitNameChanged implements MessagePayload {
Expand Down Expand Up @@ -1667,8 +1699,12 @@ type BusinessUnitStoreModeChanged implements MessagePayload {
oldStoreMode: String!
stores: [Store!]
oldStores: [Store!]
inheritedStores: [Store!]
oldInheritedStores: [Store!]
storesRef: [KeyReference!]
oldStoresRef: [KeyReference!]
inheritedStoresRef: [KeyReference!]
oldInheritedStoresRef: [KeyReference!]
type: String!
}

Expand Down Expand Up @@ -1740,6 +1776,15 @@ input BusinessUnitUpdateAction {

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setUnitType: SetBusinessUnitUnitType

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
addCustomerGroupAssignment: AddCustomerGroupAssignment

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
removeCustomerGroupAssignment: RemoveCustomerGroupAssignment

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setCustomerGroupAssignments: SetCustomerGroupAssignments
}

input CancelQuoteRequest {
Expand Down Expand Up @@ -3638,7 +3683,7 @@ type Customer implements Versioned & ReferenceExpandable {
billingAddresses: [Address!]!
storesRef: [KeyReference!]!
stores: [Store!]!
customerGroupAssignments: [CustomerGroupAssignment!]
customerGroupAssignments: [CustomerGroupAssignment!]!
custom: CustomFieldsType
id: String!
version: Long!
Expand All @@ -3660,44 +3705,56 @@ type CustomerAddressAdded implements MessagePayload {

type CustomerAddressChanged implements MessagePayload {
address: Address!
addressRoles: [AddressRole!]!
type: String!
}

type CustomerAddressCustomFieldAdded implements MessagePayload {
name: String!
value: Json!
addressId: String
addressId: String!
type: String!
}

type CustomerAddressCustomFieldChanged implements MessagePayload {
name: String!
value: Json!
previousValue: Json
addressId: String
addressId: String!
type: String!
}

type CustomerAddressCustomFieldRemoved implements MessagePayload {
name: String!
addressId: String
addressId: String!
type: String!
}

type CustomerAddressCustomTypeRemoved implements MessagePayload {
previousTypeId: String
addressId: String
addressId: String!
type: String!
}

type CustomerAddressCustomTypeSet implements MessagePayload {
customFields: CustomFieldsType!
previousTypeId: String
addressId: String
addressId: String!
type: String!
}

type CustomerAddressRemoved implements MessagePayload {
address: Address!
addressRoles: [AddressRole!]!
type: String!
}

type CustomerBillingAddressAdded implements MessagePayload {
address: Address!
type: String!
}

type CustomerBillingAddressRemoved implements MessagePayload {
address: Address!
type: String!
}
Expand Down Expand Up @@ -3757,11 +3814,13 @@ type CustomerDefaultShippingAddressSet implements MessagePayload {
}

type CustomerDeleted implements MessagePayload {
email: String
type: String!
}

type CustomerEmailChanged implements MessagePayload {
email: String!
oldEmail: String!
type: String!
}

Expand Down Expand Up @@ -3790,6 +3849,11 @@ type CustomerEmailVerified implements MessagePayload {
type: String!
}

type CustomerExternalIdSet implements MessagePayload {
externalId: String
type: String!
}

type CustomerFirstNameSet implements MessagePayload {
firstName: String
type: String!
Expand Down Expand Up @@ -3829,6 +3893,7 @@ type CustomerGroupAssignmentRemoved implements MessagePayload {

type CustomerGroupAssignmentsSet implements MessagePayload {
customerGroupAssignments: [CustomerGroupAssignment!]!
oldCustomerGroupAssignments: [CustomerGroupAssignment!]!
type: String!
}

Expand Down Expand Up @@ -3979,6 +4044,16 @@ enum CustomerSearchStatus {
Deactivated
}

type CustomerShippingAddressAdded implements MessagePayload {
address: Address!
type: String!
}

type CustomerShippingAddressRemoved implements MessagePayload {
address: Address!
type: String!
}

input CustomerSignInDraft {
email: String!
password: String!
Expand Down Expand Up @@ -5435,7 +5510,6 @@ type KeyReference {
"A key that references a resource."
scalar KeyReferenceInput

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
enum Level {
"The attribute can be used on the variant level"
Variant
Expand Down Expand Up @@ -8669,7 +8743,6 @@ type ProductData {
key: String): ProductVariant
skus: [String!]!

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributesRaw: [RawProductAttribute!]!
}

Expand Down Expand Up @@ -8796,8 +8869,6 @@ input ProductDraft {
metaDescription: [LocalizedStringItemInputType!]
metaKeywords: [LocalizedStringItemInputType!]
masterVariant: ProductVariantInput

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributes: [ProductAttributeInput!] = []
variants: [ProductVariantInput!] = []
taxCategory: ResourceIdentifierInput
Expand Down Expand Up @@ -9163,8 +9234,6 @@ type ProductProjectionMessagePayload {
published: Boolean!
masterVariant: ProductVariant!
variants: [ProductVariant!]!

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributes: [RawProductAttribute!]!
taxCategoryRef: Reference
taxCategory: TaxCategory
Expand Down Expand Up @@ -9731,8 +9800,6 @@ input ProductTailoringDraft {
metaKeywords: [LocalizedStringItemInputType!]
publish: Boolean
variants: [ProductVariantTailoringInput!] = []

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributes: [ProductAttributeInput!] = []
}

Expand Down Expand Up @@ -9825,8 +9892,6 @@ input ProductTailoringUpdateAction {
removeVariant: RemoveProductVariantTailoring
publish: PublishTailoring
unpublish: UnpublishTailoring

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setProductAttribute: SetProductLevelTailoringAttribute
addAsset: AddProductTailoringAsset
addExternalImage: AddProductTailoringExternalImage
Expand Down Expand Up @@ -9936,8 +10001,6 @@ input ProductUpdateAction {
revertStagedChanges: RevertStagedChanges
revertStagedVariantChanges: RevertStagedVariantChanges
publish: PublishProduct

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setProductAttribute: ProductLevelAttributeInput
unpublish: UnpublishProduct
transitionState: TransitionProductState
Expand Down Expand Up @@ -10921,7 +10984,6 @@ type RawProductAttribute {
name: String!
value: Json!

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributesRaw: [RawProductAttribute!]
attributeDefinition: AttributeDefinition
referencedResource: ReferenceExpandable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
* <p>Retrieves a QuoteRequest with the provided <code>id</code> in a BusinessUnit. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if a QuoteRequest exists with the provided <code>id</code>. Returns a <code>200</code> status if the QuoteRequest exists, or a <code>404</code> status otherwise.</p>
* <p>Checks if a QuoteRequest exists with the provided <code>id</code> in a BusinessUnit. Returns a <code>200 OK</code> status if the QuoteRequest exists or a <span>Not Found</span> error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
* <p>Updates a QuoteRequest in a BusinessUnit using one or more <span>update actions</span>. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
* <p>Updates a QuoteRequest in a BusinessUnit using one or more <span>update actions</span>. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
*
* <p>Retrieves all QuoteRequests in a BusinessUnit.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Checks if one or more QuoteRequests exist for the provided query predicate. Returns a <code>200</code> status if any QuoteRequests match the query predicate, or a <code>404</code> status otherwise.</p>
* <p>Checks if one or more QuoteRequests exist for the provided query predicate in a BusinessUnit. Returns a <code>200 OK</code> status if any QuoteRequests match the query predicate, or a <span>Not Found</span> error otherwise.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
* <p>Retrieves a QuoteRequest with the provided <code>key</code> in a BusinessUnit. If the QuoteRequest exists in the <a href="https://docs.commercetools.com/apis/ctp:api:type:Project" rel="nofollow">Project</a> but does not reference the requested <a href="https://docs.commercetools.com/apis/ctp:api:type:BusinessUnit" rel="nofollow">BusinessUnit</a>, this method returns an <a href="https://docs.commercetools.com/apis/ctp:api:type:InvalidOperationError" rel="nofollow">InvalidOperation</a> error.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Loading
Loading