From e985f4b7aa55610705ee49bd3eb645c2fd03eb6c Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:26:39 +0000 Subject: [PATCH] Updated API from documentation release --- api-specs/import/types/discount-code-import.raml | 2 ++ api-specs/import/types/error.raml | 13 +++++++++++++ api-specs/import/types/standalone-price-import.raml | 8 +++++++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/api-specs/import/types/discount-code-import.raml b/api-specs/import/types/discount-code-import.raml index 0abd7838f..f7c904f7e 100644 --- a/api-specs/import/types/discount-code-import.raml +++ b/api-specs/import/types/discount-code-import.raml @@ -31,6 +31,8 @@ types: code: description: | User-defined unique identifier of the DiscountCode that is used by the customer to apply the discount. + + The value cannot be updated. Attempting to update the value will result in an [InvalidFieldsUpdate](/error#invalidfieldsupdateerror) error. type: string cartDiscounts: description: | diff --git a/api-specs/import/types/error.raml b/api-specs/import/types/error.raml index 2d3c2a87a..3c32b7496 100644 --- a/api-specs/import/types/error.raml +++ b/api-specs/import/types/error.raml @@ -129,6 +129,19 @@ types: resourceIndex?: type: integer format: long + InvalidFieldsUpdateError: + description: | + Returned when a field cannot be updated. + type: ErrorObject + discriminatorValue: InvalidFieldUpdate + properties: + message: + type: string + description: | + `"The following fields are currently not supported for changes/updates"` + fields: + description: Fields that cannot be updated. + type: string[] InvalidJsonInput: description: | An invalid JSON input has been sent to the service. diff --git a/api-specs/import/types/standalone-price-import.raml b/api-specs/import/types/standalone-price-import.raml index 86556223c..eb1f9235d 100644 --- a/api-specs/import/types/standalone-price-import.raml +++ b/api-specs/import/types/standalone-price-import.raml @@ -31,14 +31,20 @@ types: country?: description: | Sets the country for which this Price is valid. + + The value cannot be updated. Attempting to update the value will result in an [InvalidFieldsUpdate](/error#invalidfieldsupdateerror) error. type: common.CountryCode customerGroup?: description: | Sets the CustomerGroup for which this Price is valid. + + The value cannot be updated. Attempting to update the value will result in an [InvalidFieldsUpdate](/error#invalidfieldsupdateerror) error. type: common.CustomerGroupKeyReference channel?: description: | - Sets the product distribution Channel for which this Price is valid + Sets the product distribution Channel for which this Price is valid. + + The value cannot be updated. Attempting to update the value will result in an [InvalidFieldsUpdate](/error#invalidfieldsupdateerror) error. type: common.ChannelKeyReference validFrom?: description: |