docs: generate OAS after cart promotion fixes (#11351)
This commit is contained in:
@@ -2,6 +2,7 @@ type: object
|
||||
description: The cart's details.
|
||||
x-schemaName: StoreCart
|
||||
required:
|
||||
- promotions
|
||||
- currency_code
|
||||
- id
|
||||
- original_item_total
|
||||
@@ -175,3 +176,8 @@ properties:
|
||||
type: number
|
||||
title: original_shipping_tax_total
|
||||
description: The total taxes applied on the cart's shipping amount.
|
||||
promotions:
|
||||
type: array
|
||||
description: The cart's promotions.
|
||||
items:
|
||||
$ref: ./StoreCartPromotion.yaml
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
type: object
|
||||
description: The promotion's details.
|
||||
required:
|
||||
- promo_codes
|
||||
properties:
|
||||
promo_codes:
|
||||
type: array
|
||||
description: Promotion codes to add to the cart.
|
||||
items:
|
||||
type: string
|
||||
title: promo_codes
|
||||
description: A promotion code.
|
||||
x-schemaName: StoreCartAddPromotion
|
||||
@@ -0,0 +1,40 @@
|
||||
type: object
|
||||
description: The promotion's promotions.
|
||||
x-schemaName: StoreCartPromotion
|
||||
required:
|
||||
- id
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
title: id
|
||||
description: The promotion's ID.
|
||||
code:
|
||||
type: string
|
||||
title: code
|
||||
description: The promotion's code.
|
||||
is_automatic:
|
||||
type: boolean
|
||||
title: is_automatic
|
||||
description: The promotion's is automatic.
|
||||
application_method:
|
||||
type: object
|
||||
description: The promotion's application method.
|
||||
required:
|
||||
- value
|
||||
- type
|
||||
- currency_code
|
||||
properties:
|
||||
value:
|
||||
type: string
|
||||
title: value
|
||||
description: The application method's value.
|
||||
type:
|
||||
type: string
|
||||
description: The application method's type.
|
||||
enum:
|
||||
- fixed
|
||||
- percentage
|
||||
currency_code:
|
||||
type: string
|
||||
title: currency_code
|
||||
description: The application method's currency code.
|
||||
Reference in New Issue
Block a user