From 67d3b7a0760d16b674ecd7c8b805e897e6320171 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:14:03 +0000 Subject: [PATCH] Updated API from documentation release --- .../api/types/product/updates/ProductUnpublishAction.raml | 5 ++++- api-specs/api/types/standalone-price/StandalonePrice.raml | 2 +- .../api/types/standalone-price/StandalonePriceDraft.raml | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/api-specs/api/types/product/updates/ProductUnpublishAction.raml b/api-specs/api/types/product/updates/ProductUnpublishAction.raml index 06e7c3f5d..4d5c37369 100644 --- a/api-specs/api/types/product/updates/ProductUnpublishAction.raml +++ b/api-specs/api/types/product/updates/ProductUnpublishAction.raml @@ -7,4 +7,7 @@ example: !include ../../../examples/Product/ProductUnpublishAction.json description: | Removes the current [projection](/../api/projects/productProjections#current--staged) of the Product. The staged projection is unaffected. To retrieve unpublished Products, the `staged` parameter must be set to `false` when [querying](ctp:api:endpoint:/{projectKey}/product-projections:GET)/[searching](/projects/products-search#product-projection-search) Product Projections. Produces the [ProductUnpublished](ctp:api:type:ProductUnpublishedMessage) Message. - Unpublished Products cannot be added to a Cart. However, if a Cart contains Line Items for Products that were added before the Product was unpublished, the Cart is unaffected and can still be used to create an Order. To prevent this, in addition to unpublishing the Product you should remove the Prices from the Product using [Remove Price](ctp:api:type:ProductRemovePriceAction) for Embedded Prices or [Delete StandalonePrice](/projects/standalone-prices#delete-standaloneprice) for Standalone Prices. + When a Product is unpublished, any associated Line Items already present in a Cart remain unaffected and can still be ordered. To prevent this, do the following: + + - If the Product uses Embedded Prices, [remove the Embedded Prices](ctp:api:type:ProductRemovePriceAction) from the unpublished Product. + - If the Product uses Standalone Prices, [inactivate](ctp:api:type:StandalonePriceChangeActiveAction) or [delete](/projects/standalone-prices#delete-standaloneprice) the Standalone Prices. diff --git a/api-specs/api/types/standalone-price/StandalonePrice.raml b/api-specs/api/types/standalone-price/StandalonePrice.raml index 91f5737d7..5c6d2d906 100644 --- a/api-specs/api/types/standalone-price/StandalonePrice.raml +++ b/api-specs/api/types/standalone-price/StandalonePrice.raml @@ -91,4 +91,4 @@ properties: default: true description: | If set to `true`, the StandalonePrice is considered during [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). - If set to `false`, the StandalonePrice is not considered during [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection). + If set to `false`, the StandalonePrice is not considered during [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection) and any associated Line Items in a Cart cannot be ordered. diff --git a/api-specs/api/types/standalone-price/StandalonePriceDraft.raml b/api-specs/api/types/standalone-price/StandalonePriceDraft.raml index 60eff524a..8d288c133 100644 --- a/api-specs/api/types/standalone-price/StandalonePriceDraft.raml +++ b/api-specs/api/types/standalone-price/StandalonePriceDraft.raml @@ -61,4 +61,4 @@ properties: type: boolean default: true description: | - Set to `false`, if the StandalonePrice should not be considered during [Prodct price selection](/../api/pricing-and-discounts-overview#product-price-selection). + Set to `false`, if the StandalonePrice should not be considered during [Product price selection](/../api/pricing-and-discounts-overview#product-price-selection).