Files
medusa-store/www/apps/api-reference/specs/admin/components/schemas/AdminShippingOptionRule.yaml
github-actions[bot] 21badd069d chore(docs): Updated API Reference (v2) (#9437)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2024-10-03 07:48:54 +00:00

60 lines
1.4 KiB
YAML

type: object
description: The shipping option rule's details.
x-schemaName: AdminShippingOptionRule
required:
- id
- attribute
- operator
- value
- shipping_option_id
- created_at
- updated_at
- deleted_at
properties:
id:
type: string
title: id
description: The shipping option rule's ID.
attribute:
type: string
title: attribute
description: The shipping option rule's attribute.
example: is_return
operator:
type: string
title: operator
description: The shipping option rule's operator.
example: eq
value:
oneOf:
- type: string
title: value
description: The rule's value.
example: '"true"'
- type: array
description: The rule's values.
items:
type: string
title: value
description: A rule's value
example: '"true"'
shipping_option_id:
type: string
title: shipping_option_id
description: The ID of the shipping option this rule is for.
created_at:
type: string
format: date-time
title: created_at
description: The date the shipping option rule was created.
updated_at:
type: string
format: date-time
title: updated_at
description: The date the shipping option rule was updated.
deleted_at:
type: string
format: date-time
title: deleted_at
description: The date the shipping option rule was deleted.