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 Mar 18, 2024
1 parent 79653b4 commit 774adcf
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ properties:
type: ProductReference
description: |
Reference to a Product.
A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.
variantId:
type: number
format: int64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ properties:
type: ProductResourceIdentifier
description: |
ResourceIdentifier of a Product.
A Gift Line Item is added to a Cart even if the referenced Product is unpublished.
variantId:
type: number
format: int64
Expand Down
8 changes: 4 additions & 4 deletions api-specs/api/types/cart/LineItemMode.raml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
displayName: LineItemMode
type: string
description: |
Indicates how a Line Item is added to a Cart.
Indicates how a Line Item was added to a Cart.
enum:
- Standard
- GiftLineItem
(enumDescriptions):
Standard: |
The Line Item is added during [Cart creation](ctp:api:endpoint:/{projectKey}/carts:POST) or using the [Add LineItem](ctp:api:type:CartAddLineItemAction) update action.
The Line Item was added during [Cart creation](ctp:api:endpoint:/{projectKey}/carts:POST) or the [Add LineItem](ctp:api:type:CartAddLineItemAction) update action.
The Line Item quantity can be changed without restriction.
GiftLineItem: |
The Line Item is added automatically by a Cart Discount with [CartDiscountValueGiftLineItem](ctp:api:type:CartDiscountValueGiftLineItem).
One Line Item was added automatically to a Cart by a Cart Discount with [CartDiscountValueGiftLineItemDraft](ctp:api:type:CartDiscountValueGiftLineItemDraft).
The quantity cannot be [increased](ctp:api:type:CartChangeLineItemQuantityAction), and it won't be merged when the same Line Item is [added](ctp:api:type:CartAddLineItemAction) to the Cart.
The quantity cannot be [increased](ctp:api:type:CartChangeLineItemQuantityAction), and it won't be merged when [adding](ctp:api:type:CartAddLineItemAction) the same Line Item to the Cart.
If the gift is [removed](ctp:api:type:CartRemoveLineItemAction), an entry is added to the `refusedGifts` array and the discount won't be applied to the Cart.
The price cannot be changed [externally](ctp:api:type:CartSetLineItemTotalPriceAction).
Expand Down

0 comments on commit 774adcf

Please sign in to comment.