Back to Medusa

CreateShippingOptionRuleDTO

www/apps/resources/references/fulfillment/interfaces/fulfillment.CreateShippingOptionRuleDTO/page.mdx

2.14.21.0 KB
Original Source

import { TypeList } from "docs-ui"

CreateShippingOptionRuleDTO

The shipping option rule to be created.

<TypeList types={[{"name":"attribute","type":"string","description":"The attribute of the shipping option rule.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"operator","type":"RuleOperatorType","description":"The operator of the shipping option rule.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"value","type":"string \| string[]","description":"The value(s) of the shipping option rule.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_option_id","type":"string","description":"The associated shipping option's ID.","optional":false,"defaultValue":"","expandable":false,"children":[]}]} expandUrl="https://docs.medusajs.com/learn/fundamentals/data-models/manage-relationships#retrieve-records-of-relation" sectionTitle="CreateShippingOptionRuleDTO"/>