ShippingOption
A Shipping Option represents a way in which an Order or Return can be shipped. Shipping Options have an associated Fulfillment Provider that will be used when the fulfillment of an Order is initiated. Shipping Options themselves cannot be added to Carts, but serve as a template for Shipping Methods. This distinction makes it possible to customize individual Shipping Methods with additional information.
Constructors
constructor
**new ShippingOption**()
A Shipping Option represents a way in which an Order or Return can be shipped. Shipping Options have an associated Fulfillment Provider that will be used when the fulfillment of an Order is initiated. Shipping Options themselves cannot be added to Carts, but serve as a template for Shipping Methods. This distinction makes it possible to customize individual Shipping Methods with additional information.
Properties
admin_only
booleanRequiredDefault: false
amount
null | numberRequiredflat\_rate
.created_at
DateRequireddata
Record<string, unknown>Requireddeleted_at
null | DateRequiredid
stringRequiredincludes_tax
booleanRequiredDefault: false
is_return
booleanRequiredDefault: false
metadata
Record<string, unknown>Requiredname
stringRequiredflat\_rate
for fixed prices or calculated
if the Fulfillment Provider can provide price calulations.profile_id
stringRequiredprovider_id
stringRequiredregion_id
stringRequiredupdated_at
DateRequiredMethods
beforeInsert
Private **beforeInsert**(): void
Returns
void
void
void