--- displayed_sidebar: servicesSidebar --- import ParameterTypes from "@site/src/components/ParameterTypes" # 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 `", "description": "An optional key-value map with additional details", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "price", "type": "`number`", "description": "The custom price set that will override the shipping option's original price", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "shipping_option", "type": "[ShippingOption](ShippingOption.mdx)", "description": "The details of the overridden shipping options.", "optional": false, "defaultValue": "", "expandable": true, "children": [] }, { "name": "shipping_option_id", "type": "`string`", "description": "The ID of the Shipping Option that the custom shipping option overrides", "optional": false, "defaultValue": "", "expandable": false, "children": [] }, { "name": "updated_at", "type": "`Date`", "description": "The date with timezone at which the resource was updated.", "optional": false, "defaultValue": "", "expandable": false, "children": [] } ]} /> ## Methods ### beforeInsert `Private **beforeInsert**(): void` #### Returns `void`