43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
type: object
|
|
required:
|
|
- requirements
|
|
properties:
|
|
name:
|
|
description: The name of the Shipping Option
|
|
type: string
|
|
amount:
|
|
description: The amount to charge for the Shipping Option.
|
|
type: integer
|
|
admin_only:
|
|
description: If true, the option can be used for draft orders
|
|
type: boolean
|
|
metadata:
|
|
description: An optional set of key-value pairs with additional information.
|
|
type: object
|
|
requirements:
|
|
description: >-
|
|
The requirements that must be satisfied for the Shipping Option to be
|
|
available.
|
|
type: array
|
|
items:
|
|
type: object
|
|
required:
|
|
- type
|
|
- amount
|
|
properties:
|
|
id:
|
|
description: The ID of the requirement
|
|
type: string
|
|
type:
|
|
description: The type of the requirement
|
|
type: string
|
|
enum:
|
|
- max_subtotal
|
|
- min_subtotal
|
|
amount:
|
|
description: The amount to compare with.
|
|
type: integer
|
|
includes_tax:
|
|
description: '[EXPERIMENTAL] Tax included in prices of shipping option'
|
|
type: boolean
|