ShippingMethod
interface ShippingMethod {
id: number;
name: string;
code: string;
originalPrice: Decimal;
price: Decimal;
discountAmount: Decimal;
discountPercentage: Decimal;
hasDiscounts: boolean;
discounts?: Discount[];
}Source: global.ts:1833
The shipping method currently applied to the cart, with fully computed pricing (original price, discount, final price). The runtime counterpart to the campaign's ShippingOption.
Properties
id: number
Shipping method ID.
name: string
Shipping method display name.
code: string
Shipping method code (matches campaign API).
originalPrice: Decimal
Original shipping price before any discount.
price: Decimal
Final shipping price after discount.
discountAmount: Decimal
Absolute discount applied to shipping.
discountPercentage: Decimal
Shipping discount as a percentage of the original price.
hasDiscounts: boolean
true when a shipping discount is applied.
discounts: Discount[]
Detailed shipping discounts applied to the cart.