Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminShippingOptionPriceRule.yaml
Shahed Nasser 91ebf6d61c docs-util: add publishable api key header parameter to store routes OAS (#10747)
* docs-util: add publishable api key header parameter to store routes OAS

* fix oas
2024-12-26 16:27:55 +02:00

67 lines
1.4 KiB
YAML

type: object
description: The details of a shipping option price's rule.
x-schemaName: AdminShippingOptionPriceRule
required:
- id
- value
- operator
- attribute
- price_id
- priority
- created_at
- updated_at
- deleted_at
properties:
id:
type: string
title: id
description: The price rule's ID.
value:
oneOf:
- type: string
title: value
description: The price rule's value.
- type: number
title: value
description: The price rule's value.
description: The price rule's value.
operator:
type: string
description: The price rule's operator.
enum:
- gt
- lt
- eq
- ne
- in
- lte
- gte
- nin
attribute:
type: string
title: attribute
description: The price rule's attribute.
price_id:
type: string
title: price_id
description: The ID of the price this rule applies to.
priority:
type: number
title: priority
description: The price rule's priority.
created_at:
type: string
format: date-time
title: created_at
description: The date the price rule was created.
updated_at:
type: string
format: date-time
title: updated_at
description: The date the price rule was updated.
deleted_at:
type: string
format: date-time
title: deleted_at
description: The date the price rule was deleted.