{"version":3,"sources":["estore/cart/interfaces/temp-order-line-product-contract.ts"],"names":["GroupPosition","FactorPurchaseType"],"mappings":"AAgFA,IAAYA,cAMAC,mBANZ,CAAA,SAAYD,GACRA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,KAAA,MACH,EAJWA,cAAAA,eAAa,EAAA,EAMzB,SAAYC,GACRA,EAAAA,EAAA,KAAA,GAAA,OACAA,EAAAA,EAAA,KAAA,GAAA,OACAA,EAAAA,EAAA,OAAA,GAAA,SACAA,EAAAA,EAAA,QAAA,GAAA,SACH,EALWA,mBAAAA,oBAAkB,EAAA,SANlBD,cAMAC,kBAAkB","file":"temp-order-line-product-contract.js","sourcesContent":["import { OrderLineSubType } from \"../../../../components-shared/enums/order-line-sub-type.js\";\r\nimport { OrderLineType } from \"../../../../components-shared/enums/order-line-type.js\";\r\nimport { ProductStatusTextType } from \"../../../../components-shared/enums/product-status-text-type.js\";\r\n\r\nexport interface TempOrderLineProductContract {\r\n tempOrderLineID: number;\r\n productID: number;\r\n productNo: string;\r\n productName: string;\r\n quantity: number;\r\n lockQuantity: boolean;\r\n price: number;\r\n linePrice: number;\r\n lineDiscount: number;\r\n lineDiscountPercent: number;\r\n imageID: number;\r\n parentID: number;\r\n preventBuyWhenOutOfStock: boolean;\r\n canBuyWhenOutOfStock: boolean;\r\n quantityInStock: number;\r\n itemID: number;\r\n productImageID: number;\r\n imageWidth: number;\r\n currencyCode: string;\r\n exchangeRate: number;\r\n published: boolean;\r\n formattedPrice: string;\r\n formattedOriginalPrice: string;\r\n formattedLinePrice: string;\r\n formattedOriginalLinePrice: string;\r\n formattedDiscount: string;\r\n factor: number;\r\n publishedPageID: number;\r\n isMainProduct: boolean;\r\n imageFullWidth: number;\r\n imageFullHeight: number;\r\n imageDisplayWidth: number;\r\n imageDisplayHeight: number;\r\n imageUrl: string;\r\n productUrl: string;\r\n cantBeRemoved: boolean;\r\n stockText: string;\r\n stockColor: string;\r\n stockCssClass: string;\r\n productStatusTextType: ProductStatusTextType;\r\n hideStockInfo: boolean; // do we need it? Only for child products?\r\n minQuantity: number;\r\n allowedQuantities: number[];\r\n unit: string;\r\n isFractional: boolean;\r\n factorPurchaseType: FactorPurchaseType;\r\n lineType: OrderLineType;\r\n lineSubType?: OrderLineSubType;\r\n offerID?: number;\r\n supplierOrderLines?: string[];\r\n supplierDeliveryTime?: number;\r\n customFields: CustomFieldValueCartItem[];\r\n //sellingRules: SellingRules //Alex D. recommended to group selling rules\r\n}\r\n\r\nexport interface CustomFieldValueCartItem {\r\n fieldID: number;\r\n fieldLabel: string;\r\n fieldValue: string;\r\n sortOrder: number;\r\n}\r\n\r\nexport interface TempOrderLineProductContractUiHelper extends TempOrderLineProductContract{\r\n grouping?:{\r\n id: number;\r\n position: GroupPosition;\r\n isChild: boolean;\r\n }\r\n}\r\n\r\n//public class SellingRules {\r\n // allowedQuantities { get; set; }\r\n // minQuantity { get; set; }\r\n//}\r\n\r\nexport enum GroupPosition {\r\n First = 'first',\r\n Middle = 'middle',\r\n Last = 'last',\r\n}\r\n\r\nexport enum FactorPurchaseType{\r\n None = 0, // Non factor product\r\n Both = 1, // Can be bought a single product and a pack of products\r\n Single = 2, // Only single product can be bought\r\n Package = 3 // Only package of products can be bought\r\n}"]}