From 2a6133ced8340790359d8dadd3a4a467180a38ac Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 10:02:27 +0200 Subject: [PATCH] Updated api-reference from documentation release (#1840) Co-authored-by: Auto Mation Co-authored-by: Timon Rey Turak <31767369+timonrey@users.noreply.github.com> --- api-specs/api/api.raml | 4 +- .../api/examples/approval-flows.example.json | 169 ++++++++++++++++++ .../api/examples/approval-rules.example.json | 61 +++++++ api-specs/api/resources/as-associate.raml | 16 ++ api-specs/api/types/annotations.raml | 6 + .../ApprovalFlowPagedQueryResponse.raml | 35 ++++ .../ApprovalRulePagedQueryResponse.raml | 35 ++++ .../CartDiscountTotalPriceTarget.raml | 8 + api-specs/api/types/cart/Cart.raml | 8 + .../api/types/cart/DiscountOnTotalPrice.raml | 25 +++ .../cart/DiscountedTotalPricePortion.raml | 15 ++ ...roductSelectionProductExcludedMessage.raml | 1 - ...lectionVariantExclusionChangedMessage.raml | 1 - ...electionProductExcludedMessagePayload.raml | 1 - ...VariantExclusionChangedMessagePayload.raml | 1 - api-specs/api/types/order/Order.raml | 9 + .../AssignedProductReference.raml | 1 - .../AssignedProductSelection.raml | 1 - .../ProductSelectionAssignment.raml | 3 +- .../ProductVariantExclusion.raml | 1 - .../ProductSelectionExcludeProductAction.raml | 1 - ...uctSelectionSetVariantExclusionAction.raml | 1 - api-specs/api/types/types.raml | 5 + 23 files changed, 396 insertions(+), 12 deletions(-) create mode 100644 api-specs/api/examples/approval-flows.example.json create mode 100644 api-specs/api/examples/approval-rules.example.json create mode 100644 api-specs/api/types/approval-flow/ApprovalFlowPagedQueryResponse.raml create mode 100644 api-specs/api/types/approval-rule/ApprovalRulePagedQueryResponse.raml create mode 100644 api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.raml create mode 100644 api-specs/api/types/cart/DiscountOnTotalPrice.raml create mode 100644 api-specs/api/types/cart/DiscountedTotalPricePortion.raml diff --git a/api-specs/api/api.raml b/api-specs/api/api.raml index 860a3bd99e..a8652419b5 100644 --- a/api-specs/api/api.raml +++ b/api-specs/api/api.raml @@ -1,6 +1,8 @@ #%RAML 1.0 --- -title: commercetools Composable Commerce +title: commercetools Composable Commerce API +(products): + - Composable Commerce baseUri: https://api.{region}.commercetools.com (sdkBaseUri): https://api.europe-west1.gcp.commercetools.com baseUriParameters: diff --git a/api-specs/api/examples/approval-flows.example.json b/api-specs/api/examples/approval-flows.example.json new file mode 100644 index 0000000000..6238e46910 --- /dev/null +++ b/api-specs/api/examples/approval-flows.example.json @@ -0,0 +1,169 @@ +{ + "limit": 20, + "offset": 0, + "count": 1, + "total": 1, + "results": [ + { + "id": "0bd46ab0-ab12-4191-be2a-749e4f0453ef", + "version": 2, + "createdAt": "2023-06-12T14:43:46.096Z", + "lastModifiedAt": "2023-06-12T14:43:46.202Z", + "lastModifiedBy": { + "clientId": "EH-PdRPKst38wygJuKChVlBS", + "isPlatformClient": false + }, + "createdBy": { + "clientId": "EH-PdRPKst38wygJuKChVlBS", + "isPlatformClient": false + }, + "order": { + "typeId": "order", + "id": "f6c6cd95-0a09-4dd6-9253-1cd27c70b184" + }, + "businessUnit": { + "typeId": "business-unit", + "key": "bu-key" + }, + "rules": [ + { + "id": "ff806a85-1457-4cef-929a-79aefe85f02d", + "version": 1, + "lastMessageSequenceNumber": 1, + "createdAt": "2023-06-12T14:43:45.732Z", + "lastModifiedAt": "2023-06-12T14:43:45.732Z", + "lastModifiedBy": { + "clientId": "EH-PdRPKst38wygJuKChVlBS", + "isPlatformClient": false + }, + "createdBy": { + "clientId": "EH-PdRPKst38wygJuKChVlBS", + "isPlatformClient": false + }, + "key": "ar-key", + "name": "name", + "description": "description", + "status": "Active", + "predicate": "customer.email = \"example@example.org\"", + "approvers": { + "tiers": [ + { + "and": [ + { + "or": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver0" + } + } + ] + }, + { + "or": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver1" + } + } + ] + } + ] + }, + { + "and": [ + { + "or": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver2" + } + } + ] + } + ] + } + ] + }, + "requesters": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "requester" + } + } + ], + "businessUnit": { + "typeId": "business-unit", + "key": "bu-key" + } + } + ], + "status": "Pending", + "approvals": [ + { + "approver": { + "customer": { + "typeId": "customer", + "id": "9c95aece-ccfa-4cc2-98c5-6b7a5e474361" + }, + "associateRoleAssignments": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver0" + }, + "inheritance": "Disabled" + } + ] + }, + "approvedAt": "2023-04-06T17:41:28.123Z" + } + ], + "eligibleApprovers": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver0" + } + }, + { + "associateRole": { + "typeId": "associate-role", + "key": "approver1" + } + }, + { + "associateRole": { + "typeId": "associate-role", + "key": "approver2" + } + } + ], + "pendingApprovers": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver1" + } + }, + { + "associateRole": { + "typeId": "associate-role", + "key": "approver2" + } + } + ], + "currentTierPendingApprovers": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "approver1" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/api-specs/api/examples/approval-rules.example.json b/api-specs/api/examples/approval-rules.example.json new file mode 100644 index 0000000000..ac4ad1b6e9 --- /dev/null +++ b/api-specs/api/examples/approval-rules.example.json @@ -0,0 +1,61 @@ +{ + "limit": 20, + "offset": 0, + "count": 1, + "total": 1, + "results": [ + { + "id": "aba82d3f-ee7d-4a86-a4ca-adf0b2d711d0", + "version": 1, + "createdAt": "2023-02-20T16:15:51.043Z", + "lastModifiedAt": "2023-02-20T16:15:51.043Z", + "lastModifiedBy": { + "clientId": "U3r9iqphXgPkoWTrIsTiKAl1", + "isPlatformClient": false + }, + "createdBy": { + "clientId": "U3r9iqphXgPkoWTrIsTiKAl1", + "isPlatformClient": false + }, + "name": "my approval rule", + "status": "Inactive", + "predicate": "totalPrice.centAmount >= 100000", + "approvers": { + "tiers": [ + { + "and": [ + { + "or": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "project-team-lead" + } + }, + { + "associateRole": { + "typeId": "associate-role", + "key": "project-team-lead-substitute" + } + } + ] + } + ] + } + ] + }, + "requesters": [ + { + "associateRole": { + "typeId": "associate-role", + "key": "project-manager" + } + } + ], + "businessUnit": { + "typeId": "business-unit", + "key": "commercetools" + } + } + ] +} \ No newline at end of file diff --git a/api-specs/api/resources/as-associate.raml b/api-specs/api/resources/as-associate.raml index 3afe8642d6..9999fe36e1 100644 --- a/api-specs/api/resources/as-associate.raml +++ b/api-specs/api/resources/as-associate.raml @@ -95,10 +95,18 @@ type: base type: baseDomain: resourceType: ApprovalRule + resourceQueryType: ApprovalRulePagedQueryResponse resourceDraft: ApprovalRuleDraft (createable): ApprovalRuleDraft (updateable): ApprovalRule description: 'An Approval Rule describes the conditions determining whether an Order that matches the predicate needs approval by an approver before it can be ordered by an requester within a Business Unit.' + get: + securedBy: [oauth_2_0: { scopes: ['view_approval_rules:{projectKey}'] }] + responses: + 200: + body: + application/json: + example: !include ../examples/approval-rules.example.json post: securedBy: [oauth_2_0: { scopes: ['manage_approval_rules:{projectKey}'] }] @@ -166,11 +174,19 @@ type: base type: baseDomain: resourceType: ApprovalFlow + resourceQueryType: ApprovalFlowPagedQueryResponse resourceDraft: ApprovalFlowDraft (updateable): ApprovalFlow description: | Approval Flows connect Orders that require approval with the Approval Rules that initiate the approval requirement. They represent the approval process by including information about approvals, rejections, and all involved parties. + get: + securedBy: [oauth_2_0: { scopes: ['view_approval_flows:{projectKey}'] }] + responses: + 200: + body: + application/json: + example: !include ../examples/approval-flows.example.json /{ID}: (methodName): withId type: diff --git a/api-specs/api/types/annotations.raml b/api-specs/api/types/annotations.raml index bbf521bfb2..0ba48f5333 100644 --- a/api-specs/api/types/annotations.raml +++ b/api-specs/api/types/annotations.raml @@ -71,6 +71,12 @@ sdkBaseUri: allowedTargets: - API type: string +products: + allowedTargets: + - API + type: array + items: + type: string docsBaseUri: allowedTargets: - API diff --git a/api-specs/api/types/approval-flow/ApprovalFlowPagedQueryResponse.raml b/api-specs/api/types/approval-flow/ApprovalFlowPagedQueryResponse.raml new file mode 100644 index 0000000000..a3f6574d68 --- /dev/null +++ b/api-specs/api/types/approval-flow/ApprovalFlowPagedQueryResponse.raml @@ -0,0 +1,35 @@ +#%RAML 1.0 DataType +(package): ApprovalFlow +displayName: ApprovalFlowPagedQueryResponse +type: object +description: | + [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ApprovalFlow](ctp:api:type:ApprovalFlow). +properties: + limit: + type: number + format: int64 + description: | + Number of [results requested](/../api/general-concepts#limit). + offset: + type: number + format: int64 + description: | + Number of [elements skipped](/../api/general-concepts#offset). + count: + type: number + format: int64 + description: | + Actual number of results returned. + total?: + type: number + format: int64 + description: | + Total number of results matching the query. + This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). + This field is returned by default. + For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. + When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). + results: + type: ApprovalFlow[] + description: | + Approval Flows matching the query. diff --git a/api-specs/api/types/approval-rule/ApprovalRulePagedQueryResponse.raml b/api-specs/api/types/approval-rule/ApprovalRulePagedQueryResponse.raml new file mode 100644 index 0000000000..8f6a0350b6 --- /dev/null +++ b/api-specs/api/types/approval-rule/ApprovalRulePagedQueryResponse.raml @@ -0,0 +1,35 @@ +#%RAML 1.0 DataType +(package): ApprovalRule +displayName: ApprovalRulePagedQueryResponse +type: object +description: | + [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [ApprovalRule](ctp:api:type:ApprovalRule). +properties: + limit: + type: number + format: int64 + description: | + Number of [results requested](/../api/general-concepts#limit). + offset: + type: number + format: int64 + description: | + Number of [elements skipped](/../api/general-concepts#offset). + count: + type: number + format: int64 + description: | + Actual number of results returned. + total?: + type: number + format: int64 + description: | + Total number of results matching the query. + This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency). + This field is returned by default. + For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`. + When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries). + results: + type: ApprovalRule[] + description: | + Approval Rules matching the query. diff --git a/api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.raml b/api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.raml new file mode 100644 index 0000000000..2aa08443c3 --- /dev/null +++ b/api-specs/api/types/cart-discount/CartDiscountTotalPriceTarget.raml @@ -0,0 +1,8 @@ +#%RAML 1.0 DataType +(package): CartDiscount +(beta): true +type: CartDiscountTarget +displayName: CartDiscountTotalPriceTarget +discriminatorValue: totalPrice +description: | + Discount is applied to the total price of the [Cart](ctp:api:type:Cart). diff --git a/api-specs/api/types/cart/Cart.raml b/api-specs/api/types/cart/Cart.raml index 90812b50b2..a441d38be1 100644 --- a/api-specs/api/types/cart/Cart.raml +++ b/api-specs/api/types/cart/Cart.raml @@ -63,6 +63,7 @@ properties: type: CentPrecisionMoney description: | Sum of the `totalPrice` field of all [LineItems](ctp:api:type:LineItem) and [CustomLineItems](ctp:api:type:CustomLineItem), and if available, the `price` field of [ShippingInfo](ctp:api:type:ShippingInfo). + If a discount applies on `totalPrice`, this field holds the discounted value. Taxes are included if [TaxRate](ctp:api:type:TaxRate) `includedInPrice` is `true` for each price. taxedPrice?: @@ -70,10 +71,17 @@ properties: description: | - For a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:CartSetShippingAddressAction). - For a Cart with `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when the external Tax Rate for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. + + If a discount applies on `totalPrice`, this field holds the discounted values. taxedShippingPrice?: type: TaxedPrice description: |- Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods. + discountOnTotalPrice?: + type: DiscountOnTotalPrice + (beta): true + description: |- + Discounts that apply on the Cart `totalPrice`. taxMode: type: TaxMode description: | diff --git a/api-specs/api/types/cart/DiscountOnTotalPrice.raml b/api-specs/api/types/cart/DiscountOnTotalPrice.raml new file mode 100644 index 0000000000..c0ab264336 --- /dev/null +++ b/api-specs/api/types/cart/DiscountOnTotalPrice.raml @@ -0,0 +1,25 @@ +#%RAML 1.0 DataType +(package): Cart +(beta): true +(docs-uri): https://docs.commercetools.com/api/projects/carts#discountontotalprice +displayName: DiscountOnTotalPrice +type: object +properties: + discountedAmount: + type: TypedMoney + description: | + Money value of the discount on the total price of the Cart or Order. + includedDiscounts: + type: DiscountedTotalPricePortion[] + description: | + Discounts that impact the total price of the Cart or Order. + discountedNetAmount?: + type: TypedMoney + description: | + Money value of the discount on the total net price of the Cart or Order. + Present only when `taxedPrice` of the Cart or Order exists. + discountedGrossAmount?: + type: TypedMoney + description: | + Money value of the discount on the total gross price of the Cart or Order. + Present only when `taxedPrice` of the Cart or Order exists. diff --git a/api-specs/api/types/cart/DiscountedTotalPricePortion.raml b/api-specs/api/types/cart/DiscountedTotalPricePortion.raml new file mode 100644 index 0000000000..a32530dd0c --- /dev/null +++ b/api-specs/api/types/cart/DiscountedTotalPricePortion.raml @@ -0,0 +1,15 @@ +#%RAML 1.0 DataType +(package): Cart +(beta): true +(docs-uri): https://docs.commercetools.com/api/projects/carts#discountedtotalpriceportion +displayName: DiscountedTotalPricePortion +type: object +properties: + discount: + type: CartDiscountReference + description: | + Cart Discount related to the discounted price. + discountedAmount: + type: TypedMoney + description: | + Money value of the discount. diff --git a/api-specs/api/types/message/ProductSelectionProductExcludedMessage.raml b/api-specs/api/types/message/ProductSelectionProductExcludedMessage.raml index 311c988309..68723bf11d 100644 --- a/api-specs/api/types/message/ProductSelectionProductExcludedMessage.raml +++ b/api-specs/api/types/message/ProductSelectionProductExcludedMessage.raml @@ -1,7 +1,6 @@ #%RAML 1.0 DataType (package): Message (docs-uri): https://docs.commercetools.com/http-api-projects-messages.html#product-selection-product-excluded -(beta): true type: Message displayName: ProductSelectionProductExcludedMessage discriminatorValue: ProductSelectionProductExcluded diff --git a/api-specs/api/types/message/ProductSelectionVariantExclusionChangedMessage.raml b/api-specs/api/types/message/ProductSelectionVariantExclusionChangedMessage.raml index b05d6fe6da..c875606ce6 100644 --- a/api-specs/api/types/message/ProductSelectionVariantExclusionChangedMessage.raml +++ b/api-specs/api/types/message/ProductSelectionVariantExclusionChangedMessage.raml @@ -1,6 +1,5 @@ #%RAML 1.0 DataType (package): Message -(beta): true type: Message displayName: ProductSelectionVariantExclusionChangedMessage discriminatorValue: ProductSelectionVariantExclusionChanged diff --git a/api-specs/api/types/message/payload/ProductSelectionProductExcludedMessagePayload.raml b/api-specs/api/types/message/payload/ProductSelectionProductExcludedMessagePayload.raml index e5340f0fd2..8207e7c249 100644 --- a/api-specs/api/types/message/payload/ProductSelectionProductExcludedMessagePayload.raml +++ b/api-specs/api/types/message/payload/ProductSelectionProductExcludedMessagePayload.raml @@ -1,7 +1,6 @@ #%RAML 1.0 DataType (package): Message (docs-uri): https://docs.commercetools.com/http-api-projects-messages.html#product-selection-product-excluded -(beta): true type: MessagePayload displayName: ProductSelectionProductExcludedMessagePayload discriminatorValue: ProductSelectionProductExcluded diff --git a/api-specs/api/types/message/payload/ProductSelectionVariantExclusionChangedMessagePayload.raml b/api-specs/api/types/message/payload/ProductSelectionVariantExclusionChangedMessagePayload.raml index b5ef9f7247..f58bec5ad3 100644 --- a/api-specs/api/types/message/payload/ProductSelectionVariantExclusionChangedMessagePayload.raml +++ b/api-specs/api/types/message/payload/ProductSelectionVariantExclusionChangedMessagePayload.raml @@ -1,6 +1,5 @@ #%RAML 1.0 DataType (package): Message -(beta): true type: MessagePayload displayName: ProductSelectionVariantExclusionChangedMessagePayload discriminatorValue: ProductSelectionVariantExclusionChanged diff --git a/api-specs/api/types/order/Order.raml b/api-specs/api/types/order/Order.raml index e34abeddf7..eb279dba27 100644 --- a/api-specs/api/types/order/Order.raml +++ b/api-specs/api/types/order/Order.raml @@ -62,16 +62,25 @@ properties: type: TypedMoney description: | Sum of the `totalPrice` field of all [LineItems](ctp:api:type:LineItem) and [CustomLineItems](ctp:api:type:CustomLineItem), and if available, the `price` field of [ShippingInfo](ctp:api:type:ShippingInfo). + If a discount applies on `totalPrice`, this field holds the discounted value. + Taxes are included if [TaxRate](ctp:api:type:TaxRate) `includedInPrice` is `true` for each price. taxedPrice?: type: TaxedPrice description: | - For `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:OrderSetShippingAddressAction). - For `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when the external Tax Rate for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. + + If a discount applies on `totalPrice`, this field holds the discounted values. taxedShippingPrice?: type: TaxedPrice description: | Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods. + discountOnTotalPrice?: + type: DiscountOnTotalPrice + (beta): true + description: |- + Discounts that apply on the total price of the Order. taxMode?: type: TaxMode description: | diff --git a/api-specs/api/types/product-selection/AssignedProductReference.raml b/api-specs/api/types/product-selection/AssignedProductReference.raml index abf0960769..81856e47f7 100644 --- a/api-specs/api/types/product-selection/AssignedProductReference.raml +++ b/api-specs/api/types/product-selection/AssignedProductReference.raml @@ -15,7 +15,6 @@ properties: This field may exist only in Product Selections with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode). In absence of this field, all Variants are deemed to be included. variantExclusion?: - (beta): true type: ProductVariantExclusion description: | The Variants of the Product that are excluded from the Product Selection. diff --git a/api-specs/api/types/product-selection/AssignedProductSelection.raml b/api-specs/api/types/product-selection/AssignedProductSelection.raml index b3c81be6bb..4137beab12 100644 --- a/api-specs/api/types/product-selection/AssignedProductSelection.raml +++ b/api-specs/api/types/product-selection/AssignedProductSelection.raml @@ -14,7 +14,6 @@ properties: This field is only available for assignments to a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode). variantExclusion?: - (beta): true type: ProductVariantExclusion description: | Defines which Variants of the Product will be excluded from the Product Selection. diff --git a/api-specs/api/types/product-selection/ProductSelectionAssignment.raml b/api-specs/api/types/product-selection/ProductSelectionAssignment.raml index 3ebeed0f0d..f93a1ea3c1 100644 --- a/api-specs/api/types/product-selection/ProductSelectionAssignment.raml +++ b/api-specs/api/types/product-selection/ProductSelectionAssignment.raml @@ -8,7 +8,7 @@ description: |- Given the mode of Product Selection, this assignment refers to, it may contain: - `variantSelection` field for a Product Selection with `Individual` [ProductSelectionMode](ctp:api:type:ProductSelectionMode). - - `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode) ([BETA](/../offering/api-contract#public-beta)). + - `variantExclusion` field for a Product Selection with `IndividualExclusion` [ProductSelectionMode](ctp:api:type:ProductSelectionMode). properties: product: @@ -26,7 +26,6 @@ properties: The list of SKUs will be updated automatically on any change of those performed on the respective Product itself. variantExclusion?: type: ProductVariantExclusion - (beta): true description: | Defines which Variants of the Product will be excluded from the Product Selection. diff --git a/api-specs/api/types/product-selection/ProductVariantExclusion.raml b/api-specs/api/types/product-selection/ProductVariantExclusion.raml index 60a579fcf5..af9abef03c 100644 --- a/api-specs/api/types/product-selection/ProductVariantExclusion.raml +++ b/api-specs/api/types/product-selection/ProductVariantExclusion.raml @@ -1,7 +1,6 @@ #%RAML 1.0 DataType (package): ProductSelection (docs-uri): https://docs.commercetools.com/api/projects/product-selections#productvariantexclusion -(beta): true type: object displayName: ProductVariantExclusion description: | diff --git a/api-specs/api/types/product-selection/updates/ProductSelectionExcludeProductAction.raml b/api-specs/api/types/product-selection/updates/ProductSelectionExcludeProductAction.raml index d9ec075294..c7a1412951 100644 --- a/api-specs/api/types/product-selection/updates/ProductSelectionExcludeProductAction.raml +++ b/api-specs/api/types/product-selection/updates/ProductSelectionExcludeProductAction.raml @@ -1,7 +1,6 @@ #%RAML 1.0 DataType (package): ProductSelection (docs-uri): https://docs.commercetools.com/api/projects/product-selections#exclude-product -(beta): true type: ProductSelectionUpdateAction displayName: ProductSelectionExcludeProductAction discriminatorValue: excludeProduct diff --git a/api-specs/api/types/product-selection/updates/ProductSelectionSetVariantExclusionAction.raml b/api-specs/api/types/product-selection/updates/ProductSelectionSetVariantExclusionAction.raml index b843e70939..ae24adcd0b 100644 --- a/api-specs/api/types/product-selection/updates/ProductSelectionSetVariantExclusionAction.raml +++ b/api-specs/api/types/product-selection/updates/ProductSelectionSetVariantExclusionAction.raml @@ -1,7 +1,6 @@ #%RAML 1.0 DataType (package): ProductSelection (docs-uri): https://docs.commercetools.com/api/projects/product-selections#set-variant-exclusion -(beta): true type: ProductSelectionUpdateAction displayName: ProductSelectionSetVariantExclusionAction discriminatorValue: setVariantExclusion diff --git a/api-specs/api/types/types.raml b/api-specs/api/types/types.raml index 993fed113c..cc38c11a9a 100644 --- a/api-specs/api/types/types.raml +++ b/api-specs/api/types/types.raml @@ -7,6 +7,7 @@ ApiClientPagedQueryResponse: !include api-client/ApiClientPagedQueryResponse.ram ApprovalFlow: !include approval-flow/ApprovalFlow.raml ApprovalFlowApproval: !include approval-flow/ApprovalFlowApproval.raml ApprovalFlowApproveAction: !include approval-flow/ApprovalFlowApproveAction.raml +ApprovalFlowPagedQueryResponse: !include approval-flow/ApprovalFlowPagedQueryResponse.raml ApprovalFlowRejectAction: !include approval-flow/ApprovalFlowRejectAction.raml ApprovalFlowRejection: !include approval-flow/ApprovalFlowRejection.raml ApprovalFlowStatus: !include approval-flow/ApprovalFlowStatus.raml @@ -14,6 +15,7 @@ ApprovalFlowUpdate: !include approval-flow/ApprovalFlowUpdate.raml ApprovalFlowUpdateAction: !include approval-flow/ApprovalFlowUpdateAction.raml ApprovalRule: !include approval-rule/ApprovalRule.raml ApprovalRuleDraft: !include approval-rule/ApprovalRuleDraft.raml +ApprovalRulePagedQueryResponse: !include approval-rule/ApprovalRulePagedQueryResponse.raml ApprovalRuleSetApproversAction: !include approval-rule/ApprovalRuleSetApproversAction.raml ApprovalRuleSetDescriptionAction: !include approval-rule/ApprovalRuleSetDescriptionAction.raml ApprovalRuleSetKeyAction: !include approval-rule/ApprovalRuleSetKeyAction.raml @@ -125,6 +127,7 @@ CartDiscountReference: !include cart-discount/CartDiscountReference.raml CartDiscountResourceIdentifier: !include cart-discount/CartDiscountResourceIdentifier.raml CartDiscountShippingCostTarget: !include cart-discount/CartDiscountShippingCostTarget.raml CartDiscountTarget: !include cart-discount/CartDiscountTarget.raml +CartDiscountTotalPriceTarget: !include cart-discount/CartDiscountTotalPriceTarget.raml CartDiscountUpdate: !include cart-discount/CartDiscountUpdate.raml CartDiscountUpdateAction: !include cart-discount/CartDiscountUpdateAction.raml CartDiscountValue: !include cart-discount/CartDiscountValue.raml @@ -180,9 +183,11 @@ DirectDiscountDraft: !include cart/DirectDiscountDraft.raml DirectDiscountReference: !include cart/DirectDiscountReference.raml DiscountCodeInfo: !include cart/DiscountCodeInfo.raml DiscountCodeState: !include cart/DiscountCodeState.raml +DiscountOnTotalPrice: !include cart/DiscountOnTotalPrice.raml DiscountedLineItemPortion: !include cart/DiscountedLineItemPortion.raml DiscountedLineItemPrice: !include cart/DiscountedLineItemPrice.raml DiscountedLineItemPriceForQuantity: !include cart/DiscountedLineItemPriceForQuantity.raml +DiscountedTotalPricePortion: !include cart/DiscountedTotalPricePortion.raml ExternalLineItemTotalPrice: !include cart/ExternalLineItemTotalPrice.raml ExternalTaxAmountDraft: !include cart/ExternalTaxAmountDraft.raml ExternalTaxRateDraft: !include cart/ExternalTaxRateDraft.raml