import type { DeliveryWindow } from './DeliveryWindow'; import type { ShippingPromotion } from './ShippingPromotion'; /** * @type ShippingMethod: Document representing a shipping method. * * @property deliveryWindow: The estimated delivery window for this shipping method. The sfcc.app.shipping.quote hook populates this value. The response omits this field if the hook doesn\'t return a delivery window. * * @property description: The localized description of the shipping method. * * @property externalShippingMethod: The external shipping method. * * @property id: The shipping method ID. * - **Max Length:** 256 * * @property name: The localized name of the shipping method. * * @property orderCutoffAt: The timestamp by which an order must be placed for the deliveryWindow to apply, as an RFC 3339 date-time. The sfcc.app.shipping.quote hook populates this value. The response omits this field if the hook doesn\'t return a cutoff time. * * @property price: The shipping cost total, including shipment level costs, product level fix, and surcharge costs. It is read only. * * @property shippingPromotions: The array of active customer shipping promotions for this shipping method. This array can be empty. * */ export type ShippingMethod = { deliveryWindow?: DeliveryWindow; description?: string; externalShippingMethod?: string; id: string; name?: string; orderCutoffAt?: string; price?: number; shippingPromotions?: Array; } & { [key: string]: any; };