CustomShippingOption
Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option.
Constructors
constructor
**new CustomShippingOption**()
Custom Shipping Options are overridden Shipping Options. Admins can attach a Custom Shipping Option to a cart in order to set a custom price for a particular Shipping Option.
Properties
The details of the cart this shipping option belongs to.
cart_idstringRequiredThe ID of the Cart that the custom shipping option is attached to
created_atDateRequiredThe date with timezone at which the resource was created.
deleted_atnull | DateRequiredThe date with timezone at which the resource was deleted.
idstringRequiredThe custom shipping option's ID
metadataRecord<string, unknown>RequiredAn optional key-value map with additional details
pricenumberRequiredThe custom price set that will override the shipping option's original price
The details of the overridden shipping options.
shipping_option_idstringRequiredThe ID of the Shipping Option that the custom shipping option overrides
updated_atDateRequiredThe date with timezone at which the resource was updated.
Methods
beforeInsert
Private **beforeInsert**(): void
Returns
void
voidvoidWas this section helpful?