Skip to content

Commit

Permalink
Updated API from documentation release
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Jun 6, 2024
1 parent 525125f commit 8385b7a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
3 changes: 1 addition & 2 deletions api-specs/api/types/common/CentPrecisionMoney.raml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
displayName: CentPrecisionMoney
type: TypedMoney
discriminatorValue: centPrecision
description: |
Object that stores cent amounts in a specific currency.
description: Object that stores money in cent amounts of a specific currency.
example: !include ../../examples/Common/CentPrecisionMoney.json
properties:
fractionDigits:
Expand Down
2 changes: 1 addition & 1 deletion api-specs/api/types/common/HighPrecisionMoney.raml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
displayName: HighPrecisionMoney
type: TypedMoney
discriminatorValue: highPrecision
description: Money object that stores an amount of a fraction of the smallest indivisible unit of the specified currency.
description: Object that stores money as a fraction of the smallest indivisible unit of a specific currency.
example: !include ../../examples/Common/HighPrecisionMoney.json
properties:
preciseAmount:
Expand Down
2 changes: 1 addition & 1 deletion api-specs/api/types/common/HighPrecisionMoneyDraft.raml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
displayName: HighPrecisionMoneyDraft
type: TypedMoneyDraft
discriminatorValue: highPrecision
description: Money draft object to store an amount of a fraction of the smallest indivisible unit of the specified currency.
description: Draft object to store money as a fraction of the smallest indivisible unit for a specific currency.
example: !include ../../examples/Common/HighPrecisionMoneyDraft.json
properties:
fractionDigits:
Expand Down
3 changes: 1 addition & 2 deletions api-specs/api/types/common/Money.raml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
(package): Common
displayName: Money
type: object
description: |
Draft type that stores amounts only in cent precision for the specified currency.
description: Draft object to store money in cent amounts for a specific currency.
example: !include ../../examples/Common/Money.json
(ignoreValidators): [PolymorphicSubtypesRule]
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ properties:
description: |
Array of [DiscountedLineItemPriceForQuantity](ctp:api:type:DiscountedLineItemPriceForQuantity) after the Discount recalculation.
totalPrice:
type: Money
type: CentPrecisionMoney
description: |
Total Price of the [Line Item](ctp:api:type:LineItem) after the Discount recalculation.
taxedPrice?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
Generated after a successful [Change Value](ctp:api:type:StandalonePriceChangeValueAction) update action.
properties:
value:
type: Money
type: TypedMoney
description: |
The new value of the updated [StandalonePrice](ctp:api:type:StandalonePrice).
staged:
Expand All @@ -16,7 +16,7 @@ properties:
description: |
Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the [StagedStandalonePrice](ctp:api:type:StagedStandalonePrice).
oldValue?:
type: Money
type: TypedMoney
description: |
The old value of the updated [StandalonePrice](ctp:api:type:StandalonePrice).
Present on Messages created after 3 February 2023. Optional for backwards compatibility.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ properties:
description: |
Array of [DiscountedLineItemPriceForQuantity](ctp:api:type:DiscountedLineItemPriceForQuantity) after the Discount recalculation.
totalPrice:
type: Money
type: CentPrecisionMoney
description: |
Total Price of the [Line Item](ctp:api:type:LineItem) after the Discount recalculation.
taxedPrice?:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: |
Generated after a successful [Change Value](ctp:api:type:StandalonePriceChangeValueAction) update action.
properties:
value:
type: Money
type: TypedMoney
description: |
The new value of the updated [StandalonePrice](ctp:api:type:StandalonePrice).
staged:
Expand All @@ -16,7 +16,7 @@ properties:
description: |
Whether the new value was applied to the current or the staged representation of the StandalonePrice. Staged changes are stored on the [StagedStandalonePrice](ctp:api:type:StagedStandalonePrice).
oldValue?:
type: Money
type: TypedMoney
description: |
The old value of the updated [StandalonePrice](ctp:api:type:StandalonePrice).
Present on Messages created after 3 February 2023. Optional for backwards compatibility.
4 changes: 2 additions & 2 deletions api-specs/api/types/shipping-method/ShippingRate.raml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ displayName: ShippingRate
type: object
properties:
price:
type: TypedMoney
type: CentPrecisionMoney
description: Currency amount of the ShippingRate.
freeAbove?:
type: TypedMoney
type: CentPrecisionMoney
description: |-
[Free shipping](/../api/shipping-delivery-overview#free-shipping) is applied if the sum of the (Custom) Line Item Prices reaches the specified value.
isMatching?:
Expand Down

0 comments on commit 8385b7a

Please sign in to comment.