From 3ee2d9059d870e865b3f92c0088f251dfddbc648 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Tue, 7 Jan 2025 09:23:29 +0000 Subject: [PATCH] Updated API from documentation release --- ...ustomerAddCustomerGroupAssignmentAction.json | 9 +++++++++ .../Customer/CustomerGroupAssignment.json | 6 ++++++ ...omerRemoveCustomerGroupAssignmentAction.json | 7 +++++++ ...stomerSetCustomerGroupAssignmentsAction.json | 17 +++++++++++++++++ api-specs/api/traits/price-selecting.raml | 4 ++++ api-specs/api/types/customer/Customer.raml | 5 +++++ api-specs/api/types/customer/CustomerDraft.raml | 5 +++++ .../types/customer/CustomerGroupAssignment.raml | 13 +++++++++++++ .../customer/CustomerGroupAssignmentDraft.raml | 10 ++++++++++ ...ustomerAddCustomerGroupAssignmentAction.raml | 14 ++++++++++++++ ...omerRemoveCustomerGroupAssignmentAction.raml | 14 ++++++++++++++ ...stomerSetCustomerGroupAssignmentsAction.raml | 14 ++++++++++++++ .../CustomerGroupAssignmentAddedMessage.raml | 13 +++++++++++++ .../CustomerGroupAssignmentRemovedMessage.raml | 13 +++++++++++++ .../CustomerGroupAssignmentsSetMessage.raml | 13 +++++++++++++ ...tomerGroupAssignmentAddedMessagePayload.raml | 13 +++++++++++++ ...merGroupAssignmentRemovedMessagePayload.raml | 13 +++++++++++++ ...stomerGroupAssignmentsSetMessagePayload.raml | 13 +++++++++++++ .../ProductSearchProjectionParams.raml | 4 ++++ api-specs/api/types/types.raml | 11 +++++++++++ api-specs/graphql/schema.sdl | 2 +- api-specs/history/types/GraphQLError.raml | 3 +-- .../history/types/common/PatternComponent.raml | 2 +- api-specs/history/types/types.raml | 2 +- 24 files changed, 215 insertions(+), 5 deletions(-) create mode 100644 api-specs/api/examples/Customer/CustomerAddCustomerGroupAssignmentAction.json create mode 100644 api-specs/api/examples/Customer/CustomerGroupAssignment.json create mode 100644 api-specs/api/examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json create mode 100644 api-specs/api/examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json create mode 100644 api-specs/api/types/customer/CustomerGroupAssignment.raml create mode 100644 api-specs/api/types/customer/CustomerGroupAssignmentDraft.raml create mode 100644 api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.raml create mode 100644 api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml create mode 100644 api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml create mode 100644 api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.raml create mode 100644 api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.raml create mode 100644 api-specs/api/types/message/CustomerGroupAssignmentsSetMessage.raml create mode 100644 api-specs/api/types/message/payload/CustomerGroupAssignmentAddedMessagePayload.raml create mode 100644 api-specs/api/types/message/payload/CustomerGroupAssignmentRemovedMessagePayload.raml create mode 100644 api-specs/api/types/message/payload/CustomerGroupAssignmentsSetMessagePayload.raml diff --git a/api-specs/api/examples/Customer/CustomerAddCustomerGroupAssignmentAction.json b/api-specs/api/examples/Customer/CustomerAddCustomerGroupAssignmentAction.json new file mode 100644 index 000000000..759435959 --- /dev/null +++ b/api-specs/api/examples/Customer/CustomerAddCustomerGroupAssignmentAction.json @@ -0,0 +1,9 @@ +{ + "action": "addCustomerGroupAssignment", + "customerGroupAssignment": { + "customerGroup": { + "id": "{{customer-group-id}}", + "typeId": "customer-group" + } + } +} \ No newline at end of file diff --git a/api-specs/api/examples/Customer/CustomerGroupAssignment.json b/api-specs/api/examples/Customer/CustomerGroupAssignment.json new file mode 100644 index 000000000..8b4f2ce1b --- /dev/null +++ b/api-specs/api/examples/Customer/CustomerGroupAssignment.json @@ -0,0 +1,6 @@ +{ + "customerGroup": { + "typeId": "customer-group", + "id": "customer-group-1" + } +} diff --git a/api-specs/api/examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json b/api-specs/api/examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json new file mode 100644 index 000000000..63c520370 --- /dev/null +++ b/api-specs/api/examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json @@ -0,0 +1,7 @@ +{ + "action": "removeCustomerGroupAssignment", + "customerGroup": { + "id": "{{customer-group-id}}", + "typeId": "customer-group" + } +} diff --git a/api-specs/api/examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json b/api-specs/api/examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json new file mode 100644 index 000000000..32a20eff4 --- /dev/null +++ b/api-specs/api/examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json @@ -0,0 +1,17 @@ +{ + "action": "setCustomerGroupAssignments", + "customerGroupAssignments": [ + { + "customerGroup": { + "id": "{{customer-group-id-1}}", + "typeId": "customer-group" + } + }, + { + "customerGroup": { + "id": "{{customer-group-id-2}}", + "typeId": "customer-group" + } + } + ] +} \ No newline at end of file diff --git a/api-specs/api/traits/price-selecting.raml b/api-specs/api/traits/price-selecting.raml index 063f2554a..c482b0ea8 100644 --- a/api-specs/api/traits/price-selecting.raml +++ b/api-specs/api/traits/price-selecting.raml @@ -15,6 +15,10 @@ queryParameters: required: false description: | `id` of an existing [CustomerGroup](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). Can only be used **in conjunction with** the `priceCurrency` parameter. + priceCustomerGroupAssignments?: + type: string[] + description: | + IDs of existing [CustomerGroups](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection), when using [multiple Customer Groups](/../api/customers-overview#multiple-customer-groups). Can only be used **in conjunction with** the `priceCurrency` parameter. priceChannel: type: string required: false diff --git a/api-specs/api/types/customer/Customer.raml b/api-specs/api/types/customer/Customer.raml index 5d58a511a..9e8e1d6d6 100644 --- a/api-specs/api/types/customer/Customer.raml +++ b/api-specs/api/types/customer/Customer.raml @@ -140,3 +140,8 @@ properties: description: | Indicates whether the `password` is required for the Customer. default: Password + customerGroupAssignments?: + type: CustomerGroupAssignment[] + (beta): true + description: | + Customer Groups of the Customer. diff --git a/api-specs/api/types/customer/CustomerDraft.raml b/api-specs/api/types/customer/CustomerDraft.raml index 15c44e122..a8bda942a 100644 --- a/api-specs/api/types/customer/CustomerDraft.raml +++ b/api-specs/api/types/customer/CustomerDraft.raml @@ -137,3 +137,8 @@ properties: - Set to `Password` to make the `password` field required for the Customer. - Set to `ExternalAuth` when the password is not required for the Customer. default: Password + customerGroupAssignments?: + type: CustomerGroupAssignmentDraft[] + (beta): true + description: | + Customer Groups to assign to the Customer. diff --git a/api-specs/api/types/customer/CustomerGroupAssignment.raml b/api-specs/api/types/customer/CustomerGroupAssignment.raml new file mode 100644 index 000000000..1adb6ec72 --- /dev/null +++ b/api-specs/api/types/customer/CustomerGroupAssignment.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Customer +type: object +(beta): true +displayName: CustomerGroupAssignment +example: !include ../../examples/Customer/CustomerGroupAssignment.json +description: | + Represents an individual Customer Group assignment as a [Reference](ctp:api:type:Reference) to a [CustomerGroup](ctp:api:type:CustomerGroup). +properties: + customerGroup: + type: CustomerGroupReference + description: | + Reference to a Customer Group. diff --git a/api-specs/api/types/customer/CustomerGroupAssignmentDraft.raml b/api-specs/api/types/customer/CustomerGroupAssignmentDraft.raml new file mode 100644 index 000000000..0c22f7a6a --- /dev/null +++ b/api-specs/api/types/customer/CustomerGroupAssignmentDraft.raml @@ -0,0 +1,10 @@ +#%RAML 1.0 DataType +(package): Customer +displayName: CustomerGroupAssignmentDraft +type: object +(beta): true +properties: + customerGroup: + type: CustomerGroupResourceIdentifier + description: | + ResourceIdentifier of a Customer Group. diff --git a/api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.raml b/api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.raml new file mode 100644 index 000000000..97332b787 --- /dev/null +++ b/api-specs/api/types/customer/updates/CustomerAddCustomerGroupAssignmentAction.raml @@ -0,0 +1,14 @@ +#%RAML 1.0 DataType +(package): Customer +type: CustomerUpdateAction +(beta): true +displayName: CustomerAddCustomerGroupAssignmentAction +discriminatorValue: addCustomerGroupAssignment +example: !include ../../../examples/Customer/CustomerAddCustomerGroupAssignmentAction.json +description: | + Adds a single Customer Group to the Customer's list of `customerGroupAssignments`. Adding a Customer Group generates the [CustomerGroupAssignmentAdded](ctp:api:type:CustomerGroupAssignmentAddedMessage) Message. +properties: + customerGroupAssignment: + type: CustomerGroupAssignmentDraft + description: | + Customer Group to assign to the Customer. diff --git a/api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml b/api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml new file mode 100644 index 000000000..a9d1ece10 --- /dev/null +++ b/api-specs/api/types/customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml @@ -0,0 +1,14 @@ +#%RAML 1.0 DataType +(package): Customer +type: CustomerUpdateAction +(beta): true +displayName: CustomerRemoveCustomerGroupAssignmentAction +discriminatorValue: removeCustomerGroupAssignment +example: !include ../../../examples/Customer/CustomerRemoveCustomerGroupAssignmentAction.json +description: | + Unassigns a Customer Group from a Customer. Unassigning a Customer Group generates the [CustomerGroupAssignmentRemoved](ctp:api:type:CustomerGroupAssignmentRemovedMessage) Message. +properties: + customerGroup: + type: CustomerGroupResourceIdentifier + description: | + Customer Group to unassign from the Customer. diff --git a/api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml b/api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml new file mode 100644 index 000000000..d24fcb502 --- /dev/null +++ b/api-specs/api/types/customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml @@ -0,0 +1,14 @@ +#%RAML 1.0 DataType +(package): Customer +type: CustomerUpdateAction +(beta): true +displayName: CustomerSetCustomerGroupAssignmentsAction +discriminatorValue: setCustomerGroupAssignments +example: !include ../../../examples/Customer/CustomerSetCustomerGroupAssignmentsAction.json +description: | + Assigns multiple Customer Groups to a Customer. Assigning Customer Groups generates the [CustomerGroupAssignmentsSetMessage](ctp:api:type:CustomerGroupAssignmentsSetMessage) Message. +properties: + customerGroupAssignments: + type: CustomerGroupAssignmentDraft[] + description: | + Customer Groups to assign to the Customer. diff --git a/api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.raml b/api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.raml new file mode 100644 index 000000000..e6735002a --- /dev/null +++ b/api-specs/api/types/message/CustomerGroupAssignmentAddedMessage.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: Message +(beta): true +displayName: CustomerGroupAssignmentAddedMessage +discriminatorValue: CustomerGroupAssignmentAdded +description: | + Generated after a successful [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. +properties: + customerGroupAssignment: + type: CustomerGroupAssignment + description: | + [CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was added during the [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. diff --git a/api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.raml b/api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.raml new file mode 100644 index 000000000..054a28446 --- /dev/null +++ b/api-specs/api/types/message/CustomerGroupAssignmentRemovedMessage.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: Message +(beta): true +displayName: CustomerGroupAssignmentRemovedMessage +discriminatorValue: CustomerGroupAssignmentRemoved +description: | + Generated after a successful [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. +properties: + customerGroupAssignment: + type: CustomerGroupReference + description: | + [CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was removed during the [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. diff --git a/api-specs/api/types/message/CustomerGroupAssignmentsSetMessage.raml b/api-specs/api/types/message/CustomerGroupAssignmentsSetMessage.raml new file mode 100644 index 000000000..f60383ed3 --- /dev/null +++ b/api-specs/api/types/message/CustomerGroupAssignmentsSetMessage.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: Message +(beta): true +displayName: CustomerGroupAssignmentsSetMessage +discriminatorValue: CustomerGroupAssignmentsSet +description: | + Generated after a successful [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. +properties: + customerGroupAssignments?: + type: CustomerGroupAssignment[] + description: | + List of [CustomerGroupAssignments](ctp:api:type:CustomerGroupAssignment) that were set during the [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. diff --git a/api-specs/api/types/message/payload/CustomerGroupAssignmentAddedMessagePayload.raml b/api-specs/api/types/message/payload/CustomerGroupAssignmentAddedMessagePayload.raml new file mode 100644 index 000000000..9ef30029f --- /dev/null +++ b/api-specs/api/types/message/payload/CustomerGroupAssignmentAddedMessagePayload.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: MessagePayload +(beta): true +displayName: CustomerGroupAssignmentAddedMessagePayload +discriminatorValue: CustomerGroupAssignmentAdded +description: | + Generated after a successful [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. +properties: + customerGroupAssignment: + type: CustomerGroupAssignment + description: | + [CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was added during the [Add CustomerGroupAssignment](ctp:api:type:CustomerAddCustomerGroupAssignmentAction) update action. diff --git a/api-specs/api/types/message/payload/CustomerGroupAssignmentRemovedMessagePayload.raml b/api-specs/api/types/message/payload/CustomerGroupAssignmentRemovedMessagePayload.raml new file mode 100644 index 000000000..418199ecb --- /dev/null +++ b/api-specs/api/types/message/payload/CustomerGroupAssignmentRemovedMessagePayload.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: MessagePayload +(beta): true +displayName: CustomerGroupAssignmentRemovedMessagePayload +discriminatorValue: CustomerGroupAssignmentRemoved +description: | + Generated after a successful [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. +properties: + customerGroupAssignment: + type: CustomerGroupReference + description: | + [CustomerGroupAssignment](ctp:api:type:CustomerGroupAssignment) that was removed during the [Remove CustomerGroupAssignment](ctp:api:type:CustomerRemoveCustomerGroupAssignmentAction) update action. diff --git a/api-specs/api/types/message/payload/CustomerGroupAssignmentsSetMessagePayload.raml b/api-specs/api/types/message/payload/CustomerGroupAssignmentsSetMessagePayload.raml new file mode 100644 index 000000000..52da0f8b0 --- /dev/null +++ b/api-specs/api/types/message/payload/CustomerGroupAssignmentsSetMessagePayload.raml @@ -0,0 +1,13 @@ +#%RAML 1.0 DataType +(package): Message +type: MessagePayload +(beta): true +displayName: CustomerGroupAssignmentsSetMessagePayload +discriminatorValue: CustomerGroupAssignmentsSet +description: | + Generated after a successful [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. +properties: + customerGroupAssignments?: + type: CustomerGroupAssignment[] + description: | + List of [CustomerGroupAssignments](ctp:api:type:CustomerGroupAssignment) that were set during the [Set CustomerGroupAssignments](ctp:api:type:CustomerSetCustomerGroupAssignmentsAction) update action. diff --git a/api-specs/api/types/product-search/ProductSearchProjectionParams.raml b/api-specs/api/types/product-search/ProductSearchProjectionParams.raml index 5eb3968d9..4d0d86208 100644 --- a/api-specs/api/types/product-search/ProductSearchProjectionParams.raml +++ b/api-specs/api/types/product-search/ProductSearchProjectionParams.raml @@ -27,6 +27,10 @@ properties: type: string description: | `id` of an existing [CustomerGroup](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). Can only be used **in conjunction with** the `priceCurrency` parameter. + priceCustomerGroupAssignments?: + type: string[] + description: | + IDs of existing [CustomerGroups](ctp:api:type:CustomerGroup) used for [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection), when using [multiple Customer Groups](/../api/customers-overview#multiple-customer-groups). Can only be used **in conjunction with** the `priceCurrency` parameter. priceChannel?: type: string description: | diff --git a/api-specs/api/types/types.raml b/api-specs/api/types/types.raml index 4bf990219..35a85fcab 100644 --- a/api-specs/api/types/types.raml +++ b/api-specs/api/types/types.raml @@ -434,6 +434,8 @@ CustomerCreatePasswordResetToken: !include customer/CustomerCreatePasswordResetT CustomerDraft: !include customer/CustomerDraft.raml CustomerEmailTokenReference: !include customer/CustomerEmailTokenReference.raml CustomerEmailVerify: !include customer/CustomerEmailVerify.raml +CustomerGroupAssignment: !include customer/CustomerGroupAssignment.raml +CustomerGroupAssignmentDraft: !include customer/CustomerGroupAssignmentDraft.raml CustomerPagedQueryResponse: !include customer/CustomerPagedQueryResponse.raml CustomerPasswordTokenReference: !include customer/CustomerPasswordTokenReference.raml CustomerReference: !include customer/CustomerReference.raml @@ -450,12 +452,14 @@ MyCustomerResetPassword: !include customer/MyCustomerResetPassword.raml MyCustomerSignin: !include customer/MyCustomerSignin.raml CustomerAddAddressAction: !include customer/updates/CustomerAddAddressAction.raml CustomerAddBillingAddressIdAction: !include customer/updates/CustomerAddBillingAddressIdAction.raml +CustomerAddCustomerGroupAssignmentAction: !include customer/updates/CustomerAddCustomerGroupAssignmentAction.raml CustomerAddShippingAddressIdAction: !include customer/updates/CustomerAddShippingAddressIdAction.raml CustomerAddStoreAction: !include customer/updates/CustomerAddStoreAction.raml CustomerChangeAddressAction: !include customer/updates/CustomerChangeAddressAction.raml CustomerChangeEmailAction: !include customer/updates/CustomerChangeEmailAction.raml CustomerRemoveAddressAction: !include customer/updates/CustomerRemoveAddressAction.raml CustomerRemoveBillingAddressIdAction: !include customer/updates/CustomerRemoveBillingAddressIdAction.raml +CustomerRemoveCustomerGroupAssignmentAction: !include customer/updates/CustomerRemoveCustomerGroupAssignmentAction.raml CustomerRemoveShippingAddressIdAction: !include customer/updates/CustomerRemoveShippingAddressIdAction.raml CustomerRemoveStoreAction: !include customer/updates/CustomerRemoveStoreAction.raml CustomerSetAddressCustomFieldAction: !include customer/updates/CustomerSetAddressCustomFieldAction.raml @@ -465,6 +469,7 @@ CustomerSetCompanyNameAction: !include customer/updates/CustomerSetCompanyNameAc CustomerSetCustomFieldAction: !include customer/updates/CustomerSetCustomFieldAction.raml CustomerSetCustomTypeAction: !include customer/updates/CustomerSetCustomTypeAction.raml CustomerSetCustomerGroupAction: !include customer/updates/CustomerSetCustomerGroupAction.raml +CustomerSetCustomerGroupAssignmentsAction: !include customer/updates/CustomerSetCustomerGroupAssignmentsAction.raml CustomerSetCustomerNumberAction: !include customer/updates/CustomerSetCustomerNumberAction.raml CustomerSetDateOfBirthAction: !include customer/updates/CustomerSetDateOfBirthAction.raml CustomerSetDefaultBillingAddressAction: !include customer/updates/CustomerSetDefaultBillingAddressAction.raml @@ -920,6 +925,9 @@ CustomerEmailChangedMessage: !include message/CustomerEmailChangedMessage.raml CustomerEmailTokenCreatedMessage: !include message/CustomerEmailTokenCreatedMessage.raml CustomerEmailVerifiedMessage: !include message/CustomerEmailVerifiedMessage.raml CustomerFirstNameSetMessage: !include message/CustomerFirstNameSetMessage.raml +CustomerGroupAssignmentAddedMessage: !include message/CustomerGroupAssignmentAddedMessage.raml +CustomerGroupAssignmentRemovedMessage: !include message/CustomerGroupAssignmentRemovedMessage.raml +CustomerGroupAssignmentsSetMessage: !include message/CustomerGroupAssignmentsSetMessage.raml CustomerGroupCustomFieldAddedMessage: !include message/CustomerGroupCustomFieldAddedMessage.raml CustomerGroupCustomFieldChangedMessage: !include message/CustomerGroupCustomFieldChangedMessage.raml CustomerGroupCustomFieldRemovedMessage: !include message/CustomerGroupCustomFieldRemovedMessage.raml @@ -1191,6 +1199,9 @@ CustomerEmailChangedMessagePayload: !include message/payload/CustomerEmailChange CustomerEmailTokenCreatedMessagePayload: !include message/payload/CustomerEmailTokenCreatedMessagePayload.raml CustomerEmailVerifiedMessagePayload: !include message/payload/CustomerEmailVerifiedMessagePayload.raml CustomerFirstNameSetMessagePayload: !include message/payload/CustomerFirstNameSetMessagePayload.raml +CustomerGroupAssignmentAddedMessagePayload: !include message/payload/CustomerGroupAssignmentAddedMessagePayload.raml +CustomerGroupAssignmentRemovedMessagePayload: !include message/payload/CustomerGroupAssignmentRemovedMessagePayload.raml +CustomerGroupAssignmentsSetMessagePayload: !include message/payload/CustomerGroupAssignmentsSetMessagePayload.raml CustomerGroupCustomFieldAddedMessagePayload: !include message/payload/CustomerGroupCustomFieldAddedMessagePayload.raml # yamllint disable-line rule:line-length CustomerGroupCustomFieldChangedMessagePayload: !include message/payload/CustomerGroupCustomFieldChangedMessagePayload.raml diff --git a/api-specs/graphql/schema.sdl b/api-specs/graphql/schema.sdl index 2d38eaa30..abdaaa85c 100644 --- a/api-specs/graphql/schema.sdl +++ b/api-specs/graphql/schema.sdl @@ -8924,7 +8924,7 @@ type ProductVariant { prices: [ProductPrice!] "Returns a single price based on the price selection rules." - price(currency: Currency!, country: Country, customerGroupId: String, channelId: String, date: DateTime): ProductPrice + price(currency: Currency!, country: Country, customerGroupId: String, customerGroupAssignmentIds: [String], channelId: String, date: DateTime): ProductPrice images: [Image!]! assets: [Asset!]! availability: ProductVariantAvailabilityWithChannels diff --git a/api-specs/history/types/GraphQLError.raml b/api-specs/history/types/GraphQLError.raml index b8a02dc52..89bbba447 100644 --- a/api-specs/history/types/GraphQLError.raml +++ b/api-specs/history/types/GraphQLError.raml @@ -16,6 +16,5 @@ properties: items: any description: Query fields listed in order from the root of the query response up to the field in which the error occurred. `path` is displayed in the response only if an error is associated with a particular field in the query result. extensions: - type: object - # type: GraphQLErrorObject + type: GraphQLErrorObject description: Dictionary with additional information where applicable. diff --git a/api-specs/history/types/common/PatternComponent.raml b/api-specs/history/types/common/PatternComponent.raml index 69205f2af..262b2c5d6 100644 --- a/api-specs/history/types/common/PatternComponent.raml +++ b/api-specs/history/types/common/PatternComponent.raml @@ -3,7 +3,7 @@ type: object (beta): true displayName: PatternComponent -# discriminator: type +discriminator: type properties: type: type: string diff --git a/api-specs/history/types/types.raml b/api-specs/history/types/types.raml index d87af07ca..0de454759 100644 --- a/api-specs/history/types/types.raml +++ b/api-specs/history/types/types.raml @@ -18,7 +18,7 @@ GraphQLResponse: !include ../../api/types/graphql/GraphQLResponse.raml GraphQLError: !include GraphQLError.raml GraphQLErrorLocation: !include ../../api/types/graphql/GraphQLErrorLocation.raml GraphQLVariablesMap: !include ../../api/types/graphql/GraphQLVariablesMap.raml -# GraphQLErrorObject: !include ../../api/types/error/graphql/GraphQLErrorObject.raml +GraphQLErrorObject: !include ../../api/types/error/graphql/GraphQLErrorObject.raml # Generated types AddAddressChange: !include change/AddAddressChange.raml AddAssetChange: !include change/AddAssetChange.raml