Home > @poq/sdk-sfcc > Basket > (constructor)
Constructs a new instance of the Basket
class
Signature:
constructor(params?: {
adjustedMerchandizeTotalTax?: number;
adjustedShippingTotalTax?: number;
agentBasket?: boolean;
basketId?: string;
billingAddress?: OrderAddress;
bonusDiscountLineItems?: Array<BonusDiscountLineItem>;
cSessionAddressBook?: string;
channelType?: BasketChannelTypeEnum;
couponItems?: Array<CouponItem>;
creationDate?: string;
currency?: string;
customerInfo?: CustomerInfo;
giftCertificateItems?: Array<GiftCertificateItem>;
inventoryReservationExpiry?: string;
lastModified?: string;
merchandizeTotalTax?: number;
notes?: SimpleLink;
orderPriceAdjustments?: Array<PriceAdjustment>;
orderTotal?: number;
paymentInstruments?: Array<OrderPaymentInstrument>;
productItems?: Array<ProductItem>;
productSubTotal?: number;
productTotal?: number;
shipments?: Array<Shipment>;
shippingItems?: Array<ShippingItem>;
shippingTotal?: number;
shippingTotalTax?: number;
sourceCode?: string;
taxTotal?: number;
taxation?: BasketTaxationEnum;
});
Parameter | Type | Description |
---|---|---|
params | { adjustedMerchandizeTotalTax?: number; adjustedShippingTotalTax?: number; agentBasket?: boolean; basketId?: string; billingAddress?: OrderAddress; bonusDiscountLineItems?: Array<BonusDiscountLineItem>; cSessionAddressBook?: string; channelType?: BasketChannelTypeEnum; couponItems?: Array<CouponItem>; creationDate?: string; currency?: string; customerInfo?: CustomerInfo; giftCertificateItems?: Array<GiftCertificateItem>; inventoryReservationExpiry?: string; lastModified?: string; merchandizeTotalTax?: number; notes?: SimpleLink; orderPriceAdjustments?: Array<PriceAdjustment>; orderTotal?: number; paymentInstruments?: Array<OrderPaymentInstrument>; productItems?: Array<ProductItem>; productSubTotal?: number; productTotal?: number; shipments?: Array<Shipment>; shippingItems?: Array<ShippingItem>; shippingTotal?: number; shippingTotalTax?: number; sourceCode?: string; taxTotal?: number; taxation?: BasketTaxationEnum; } | (Optional) |