Home > @poq/sdk-sfcc > ProductItem > (constructor)
Constructs a new instance of the ProductItem
class
Signature:
constructor(params?: {
quantity: number;
adjustedTax?: number;
basePrice?: number;
bonusDiscountLineItemId?: string;
bonusProductLineItem?: boolean;
bundledProductItems?: Array<ProductItem>;
cBonusProductLineItemUUID?: string;
cFromStoreId?: string;
cPreOrderUUID?: string;
gift?: boolean;
giftMessage?: string;
inventoryId?: string;
itemId?: string;
itemText?: string;
optionItems?: Array<OptionItem>;
price?: number;
priceAdjustments?: Array<PriceAdjustment>;
priceAfterItemDiscount?: number;
priceAfterOrderDiscount?: number;
productId?: string;
productListItem?: ProductListItemReference;
productName?: string;
shipmentId?: string;
shippingItemId?: string;
tax?: number;
taxBasis?: number;
taxClassId?: string;
taxRate?: number;
});
Parameter | Type | Description |
---|---|---|
params | { quantity: number; adjustedTax?: number; basePrice?: number; bonusDiscountLineItemId?: string; bonusProductLineItem?: boolean; bundledProductItems?: Array<ProductItem>; cBonusProductLineItemUUID?: string; cFromStoreId?: string; cPreOrderUUID?: string; gift?: boolean; giftMessage?: string; inventoryId?: string; itemId?: string; itemText?: string; optionItems?: Array<OptionItem>; price?: number; priceAdjustments?: Array<PriceAdjustment>; priceAfterItemDiscount?: number; priceAfterOrderDiscount?: number; productId?: string; productListItem?: ProductListItemReference; productName?: string; shipmentId?: string; shippingItemId?: string; tax?: number; taxBasis?: number; taxClassId?: string; taxRate?: number; } | (Optional) |