{"version":3,"file":"static/js/6a1e2b666966feec9a27.bundle.js","mappings":"mNAssBM,MAAOA,EAsBTC,YAAYC,GAgBR,GAfAA,EAAcA,GAAe,GAE7BC,KAAKC,QAAUF,EAAYE,QAAUC,SAASH,EAAYE,QAAS,IAAM,EAGzED,KAAKG,MAAQJ,EAAYI,MAGzBH,KAAKI,KAAOL,EAAYK,KAGxBJ,KAAKK,aAAeN,EAAYM,aAAeC,WAAWP,EAAYM,cAAgB,EAGtFL,KAAKO,gBAAaC,EACdT,EAAYQ,WAAY,CACxBP,KAAKO,WAAa,GAClB,IAAK,IAAIE,EAAI,EAAGA,EAAIV,EAAYQ,WAAWG,OAAQD,IAC/C,GAAIV,EAAYQ,WAAWE,GACvB,GAAIV,EAAYQ,WAAWE,GAAG,eAAgB,CAC1C,IAAIE,EAAoBZ,EAAYQ,WAAWE,GAAG,eAClDE,EAAYA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAChEC,EAAcJ,KACdX,KAAKO,WAAWE,GAAK,IAAIM,EAAcJ,GAAWZ,EAAYQ,WAAWE,UAG7ET,KAAKO,WAAWE,GAAK,IAAIM,EAAAA,oBAAkChB,EAAYQ,WAAWE,SAItFT,KAAKO,WAAWE,QAAKD,IAUnC,MAAOQ,EAyBTlB,YAAYC,GACRA,EAAcA,GAAe,GAE7BC,KAAKiB,cAAgBlB,EAAYkB,cAAgBf,SAASH,EAAYkB,cAAe,IAAM,EAG3FjB,KAAKkB,IAAMnB,EAAYmB,IAGvBlB,KAAKmB,QAAUpB,EAAYoB,QAG3BnB,KAAKoB,aAAerB,EAAYqB,aAGhCpB,KAAKqB,iBAAmBtB,EAAYsB,iBAGpCrB,KAAKsB,WAAavB,EAAYuB,YAOhC,MAAOC,EAgBTzB,YAAYC,GACRA,EAAcA,GAAe,GAE7BC,KAAKiB,cAAgBlB,EAAYkB,cAAgBf,SAASH,EAAYkB,cAAe,IAAM,EAG3FjB,KAAKkB,IAAMnB,EAAYmB,IAGvBlB,KAAKwB,cAAgBzB,EAAYyB,eAOnC,MAAOC,EAmBT3B,YAAYC,GACRA,EAAcA,GAAe,GAE7BC,KAAK0B,cAAgB3B,EAAY2B,cAGjC1B,KAAK2B,cAAgB5B,EAAY4B,cAGjC3B,KAAK4B,SAAW7B,EAAY6B,SAG5B5B,KAAK6B,QAAU9B,EAAY8B,SAO7B,MAAOC,EAmBThC,YAAYC,GAUR,GATAA,EAAcA,GAAe,GAE7BC,KAAK+B,QAAUhC,EAAYgC,QAG3B/B,KAAKI,KAAOL,EAAYK,KAGxBJ,KAAKgC,gBAAaxB,EACdT,EAAYiC,WAAY,CACxBhC,KAAKgC,WAAa,GAClB,IAAK,IAAIvB,EAAI,EAAGA,EAAIV,EAAYiC,WAAWtB,OAAQD,IAC3CV,EAAYiC,WAAWvB,GAEvBT,KAAKgC,WAAWvB,GAAKP,SAASH,EAAYiC,WAAWvB,GAAI,IAGzDT,KAAKgC,WAAWvB,QAAKD,EAKjC,GAAiC,OAA7BT,EAAYkC,aAEZjC,KAAKiC,kBAAezB,OACjB,GAA+C,MAA3CT,EAAYkC,aAAa,eAChCjC,KAAKiC,aAAe,IAAIR,EAA2B1B,EAAYkC,kBAC5D,CACH,IAAItB,EAAoBZ,EAAYkC,aAAa,eACjDtB,EAAYA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAChEC,EAAcJ,KACdX,KAAKiC,aAAe,IAAIlB,EAAcJ,GAAWZ,EAAYkC,iBA8cvE,MAAOC,EAaTpC,YAAYC,GAIR,GAHAA,EAAcA,GAAe,GAE7BC,KAAKmC,gBAAa3B,EACdT,EAAYoC,WAAY,CACxBnC,KAAKmC,WAAa,GAClB,IAAK,IAAI1B,EAAI,EAAGA,EAAIV,EAAYoC,WAAWzB,OAAQD,IAC/C,GAAIV,EAAYoC,WAAW1B,GACvB,GAAIV,EAAYoC,WAAW1B,GAAG,eAAgB,CAC1C,IAAIE,EAAoBZ,EAAYoC,WAAW1B,GAAG,eAClDE,EAAYA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAChEC,EAAcJ,KACdX,KAAKmC,WAAW1B,GAAK,IAAIM,EAAcJ,GAAWZ,EAAYoC,WAAW1B,UAG7ET,KAAKmC,WAAW1B,GAAK,IAAIqB,EAA+B/B,EAAYoC,WAAW1B,SAInFT,KAAKmC,WAAW1B,QAAKD,EAOjC,GADAR,KAAKoC,wBAAqB5B,EACtBT,EAAYqC,mBAAoB,CAChCpC,KAAKoC,mBAAqB,GAC1B,IAAS3B,EAAI,EAAGA,EAAIV,EAAYqC,mBAAmB1B,OAAQD,IACnDV,EAAYqC,mBAAmB3B,GAE/BT,KAAKoC,mBAAmB3B,GAAKP,SAASH,EAAYqC,mBAAmB3B,GAAI,IAGzET,KAAKoC,mBAAmB3B,QAAKD,ICh0C3C,SAAU6B,EACZC,EACAC,EACAC,EACAC,GAGA,OAVO,IAAIC,EAAAA,kBAS+BC,eAAeL,GAC5CM,qCACT,wBACA,EACAC,EACA,OACA,CAAEC,YAAa,MAAOC,aAAc,8CACpC,CACIR,UAAWA,EACXC,UAAWA,EACXC,UAAWA,IAKjB,SAAUO,EACZC,EACAV,EACAC,EACAC,GAEA,MAAMS,EAAUb,EAA0BY,EAAQX,qBAAuB,GAAIC,EAAWC,EAAWC,GACnG,OAAOU,EAAAA,EAAAA,qBAAkED,EAASD,EAAQG,eAsMxF,SAAUC,EAAoBC,GAEhC,OALO,IAAIZ,EAAAA,kBAKEE,qCACT,kBACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,oCACpC,CACIO,IAAKA,IAcX,SAAUC,EAAoBD,GAEhC,OALO,IAAIZ,EAAAA,kBAKEE,qCACT,kBACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,oCACpC,CACIO,IAAKA,IA8CX,SAAUE,EAA4BC,EAAkBC,GAE1D,OALO,IAAIhB,EAAAA,kBAKEE,qCACT,0BACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,oDACpC,CACIU,SAAUA,EACVC,yBAA0BA,IAkBhC,SAAUC,EAAsBC,GAElC,OALO,IAAIlB,EAAAA,kBAKEE,qCACT,oBACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,qCACpC,CACIa,KAAMA,IAKZ,SAAUC,EAAsBZ,EAAmBW,GACrD,MAAMV,EAAUS,EAAsBC,GACtC,OAAOT,EAAAA,EAAAA,qBAAuDD,EAASD,EAAQG","sources":["webpack://henrys-ecommerce/./src/actions/DataServiceEntities.g.ts?6c17","webpack://henrys-ecommerce/./src/actions/DataActionExtension.g.ts?ff78"],"sourcesContent":["// @ts-ignore -- Unused import\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\n// @ts-ignore -- Unused import\r\nimport { jsonLightReadStringPropertyValue } from '@msdyn365-commerce/retail-proxy/dist/externals';\r\n\r\n/**\r\n * NetworkInventoryAvailableQuantity entity interface.\r\n */\r\nexport interface INetworkInventoryAvailableQuantity {\r\n BundleId: number;\r\n PhysicalInventory: number;\r\n PhysicalReserved: number;\r\n PhysicalAvailable: number;\r\n OrderedInTotal: number;\r\n TotalAvailable: number;\r\n UnprocessedQuantity: number;\r\n ProductId: number;\r\n LocationId?: string;\r\n IsShippingLocation: boolean;\r\n InventCheck: boolean;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * FlexitiTransactions entity interface.\r\n */\r\nexport interface IFlexitiTransactions {\r\n term?: string;\r\n transactionId: string;\r\n transactionStatus?: string;\r\n customerName?: string;\r\n transactionBalance?: string;\r\n transactionDate?: string;\r\n}\r\n\r\n/**\r\n * NetworkInventoryLabelInput entity interface.\r\n */\r\nexport interface INetworkInventoryLabelInput {\r\n RecId: number;\r\n Quantity: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * NetworkInventoryLabel entity interface.\r\n */\r\nexport interface INetworkInventoryLabel {\r\n UpperBoundInclusive: number;\r\n Label?: string;\r\n LanguageId?: string;\r\n Txt?: string;\r\n ProductId: number;\r\n Code?: string;\r\n Quantity: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * CustomerSignature entity interface.\r\n */\r\nexport interface ICustomerSignature {\r\n Succeed: boolean;\r\n Id: number;\r\n ErrorCode?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SignItem entity interface.\r\n */\r\nexport interface ISignItem {\r\n ItemId?: string;\r\n Description?: string;\r\n Price: number;\r\n}\r\n\r\n/**\r\n * DemoStore entity interface.\r\n */\r\nexport interface IDemoStore {\r\n Store?: string;\r\n StoreLocationId?: string;\r\n DefaultCustAccount?: string;\r\n}\r\n\r\n/**\r\n * FlexitiPaymentCustomer entity interface.\r\n */\r\nexport interface IFlexitiPaymentCustomer {\r\n transactionStatus?: string;\r\n FirstName?: string;\r\n LastName?: string;\r\n PostalCode?: string;\r\n Birthday?: string;\r\n}\r\n\r\n/**\r\n * ProductAttributeGroup entity interface.\r\n */\r\nexport interface IProductAttributeGroup {\r\n GroupId: number;\r\n Group?: string;\r\n Name?: string;\r\n DisplayOrder: number;\r\n Attributes?: Entities.AttributeValue[];\r\n}\r\n\r\n/**\r\n * ProductInfo entity interface.\r\n */\r\nexport interface IProductInfo {\r\n ProductInfoId: number;\r\n Sku?: string;\r\n WebText?: string;\r\n IncludedHtml?: string;\r\n DownloadInfoHtml?: string;\r\n RebateHtml?: string;\r\n}\r\n\r\n/**\r\n * WhatisinBox entity interface.\r\n */\r\nexport interface IWhatisinBox {\r\n ProductInfoId: number;\r\n Sku?: string;\r\n WhatsIntheBox?: string;\r\n}\r\n\r\n/**\r\n * DiscountInfo entity interface.\r\n */\r\nexport interface IDiscountInfo {\r\n MarketingHtml?: string;\r\n MarketingName?: string;\r\n CartHtml?: string;\r\n Expired: boolean;\r\n}\r\n\r\n/**\r\n * ProductPromotion entity interface.\r\n */\r\nexport interface IProductPromotion {\r\n OfferId?: string;\r\n Name?: string;\r\n ProductIds?: number[];\r\n DiscountInfo?: IDiscountInfo;\r\n}\r\n\r\n/**\r\n * ProductInventoryInfo entity interface.\r\n */\r\nexport interface IProductInventoryInfo {\r\n Sku?: string;\r\n MasterSku?: string;\r\n Location?: string;\r\n AvaliablePhysical: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ProductPromotion entity interface.\r\n */\r\nexport interface IProductPromotion {\r\n OfferId?: string;\r\n Name?: string;\r\n ProductIds?: number[];\r\n DiscountInfo?: IDiscountInfo;\r\n IsImportant?: boolean;\r\n}\r\n\r\n/**\r\n * ProductInventoryInfo entity interface.\r\n */\r\nexport interface IProductInventoryInfo {\r\n Sku?: string;\r\n MasterSku?: string;\r\n Location?: string;\r\n AvaliablePhysical: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ProductPriceInfo entity interface.\r\n */\r\nexport interface IProductPriceInfo {\r\n Price?: Entities.ProductPrice;\r\n RecId: number;\r\n MasterRecId: number;\r\n Sku?: string;\r\n MasterSku?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * FlatOrMasterProductInfo entity interface.\r\n */\r\nexport interface IFlatOrMasterProductInfo {\r\n RecId?: number;\r\n TitleEn?: string;\r\n TitleFr?: string;\r\n ChannelId?: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ProductFeedInfo entity interface.\r\n */\r\nexport interface IProductFeedInfo {\r\n FlatProduct: boolean;\r\n ColorId?: string;\r\n StyleId?: string;\r\n SizeId?: string;\r\n Mpn?: string;\r\n BreadcrumbEn?: string;\r\n BreadcrumbFr?: string;\r\n TotalAvaliable: number;\r\n AvaliablePhysical: number;\r\n InventoryCode?: string;\r\n Brand?: string;\r\n AdWordsGroup?: string;\r\n AdWordsLabel?: string;\r\n AdWordsCategory?: string;\r\n ProductType?: string;\r\n TitleEn?: string;\r\n TitleFr?: string;\r\n Price: number;\r\n SalePrice: number;\r\n StyleEn?: string;\r\n StyleFr?: string;\r\n ColorEn?: string;\r\n ColorFr?: string;\r\n SizeEn?: string;\r\n SizeFr?: string;\r\n Barcode?: string;\r\n CategoryRecId: number;\r\n ProductLifecycleStateId?: string;\r\n InventoryLevelProfile?: string;\r\n PreOrderDate: Date;\r\n RecId: number;\r\n MasterRecId: number;\r\n Sku?: string;\r\n MasterSku?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * GetProductPromotionResponse entity interface.\r\n */\r\nexport interface IGetProductPromotionResponse {\r\n Promotions?: IProductPromotion[];\r\n FreeItemProductIds?: number[];\r\n}\r\n\r\n/**\r\n * NetworkInventoryAvailableQuantity entity class.\r\n */\r\nexport class NetworkInventoryAvailableQuantityExtensionClass implements INetworkInventoryAvailableQuantity {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BundleId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PhysicalInventory: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PhysicalReserved: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PhysicalAvailable: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OrderedInTotal: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TotalAvailable: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public UnprocessedQuantity: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LocationId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IsShippingLocation: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InventCheck: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BundleId = odataObject.BundleId ? parseInt(odataObject.BundleId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PhysicalInventory = odataObject.PhysicalInventory ? parseFloat(odataObject.PhysicalInventory) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PhysicalReserved = odataObject.PhysicalReserved ? parseFloat(odataObject.PhysicalReserved) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PhysicalAvailable = odataObject.PhysicalAvailable ? parseFloat(odataObject.PhysicalAvailable) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrderedInTotal = odataObject.OrderedInTotal ? parseFloat(odataObject.OrderedInTotal) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TotalAvailable = odataObject.TotalAvailable ? parseFloat(odataObject.TotalAvailable) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.UnprocessedQuantity = odataObject.UnprocessedQuantity ? parseFloat(odataObject.UnprocessedQuantity) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductId = odataObject.ProductId ? parseInt(odataObject.ProductId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LocationId = odataObject.LocationId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IsShippingLocation = odataObject.IsShippingLocation;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventCheck = odataObject.InventCheck;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * FlexitiTransactions entity class.\r\n */\r\nexport class FlexitiTransactionsExtensionClass implements IFlexitiTransactions {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public term: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public transactionId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public transactionStatus: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public customerName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public transactionBalance: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public transactionDate: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.term = odataObject.term;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.transactionId = odataObject.transactionId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.transactionStatus = odataObject.transactionStatus;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.customerName = odataObject.customerName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.transactionBalance = odataObject.transactionBalance;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.transactionDate = odataObject.transactionDate;\r\n }\r\n}\r\n\r\n/**\r\n * NetworkInventoryLabelInput entity class.\r\n */\r\nexport class NetworkInventoryLabelInputExtensionClass implements INetworkInventoryLabelInput {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Quantity: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = odataObject.RecId ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Quantity = odataObject.Quantity ? parseFloat(odataObject.Quantity) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * NetworkInventoryLabel entity class.\r\n */\r\nexport class NetworkInventoryLabelExtensionClass implements INetworkInventoryLabel {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public UpperBoundInclusive: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Label: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LanguageId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Txt: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Code: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Quantity: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.UpperBoundInclusive = odataObject.UpperBoundInclusive ? parseFloat(odataObject.UpperBoundInclusive) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Label = odataObject.Label;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LanguageId = odataObject.LanguageId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Txt = odataObject.Txt;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductId = odataObject.ProductId ? parseInt(odataObject.ProductId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Code = odataObject.Code;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Quantity = odataObject.Quantity ? parseFloat(odataObject.Quantity) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * CustomerSignature entity class.\r\n */\r\nexport class CustomerSignatureExtensionClass implements ICustomerSignature {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Succeed: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ErrorCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Succeed = odataObject.Succeed;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Id = odataObject.Id ? parseInt(odataObject.Id, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ErrorCode = odataObject.ErrorCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * SignItem entity class.\r\n */\r\nexport class SignItemExtensionClass implements ISignItem {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ItemId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Description: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Price: number;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ItemId = odataObject.ItemId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Description = odataObject.Description;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Price = odataObject.Price ? parseFloat(odataObject.Price) : 0;\r\n }\r\n}\r\n\r\n/**\r\n * DemoStore entity class.\r\n */\r\nexport class DemoStoreExtensionClass implements IDemoStore {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Store: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StoreLocationId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DefaultCustAccount: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Store = odataObject.Store;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StoreLocationId = odataObject.StoreLocationId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DefaultCustAccount = odataObject.DefaultCustAccount;\r\n }\r\n}\r\n\r\n/**\r\n * FlexitiPaymentCustomer entity class.\r\n */\r\nexport class FlexitiPaymentCustomerExtensionClass implements IFlexitiPaymentCustomer {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public transactionStatus: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FirstName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public LastName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PostalCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Birthday: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.transactionStatus = odataObject.transactionStatus;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FirstName = odataObject.FirstName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.LastName = odataObject.LastName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PostalCode = odataObject.PostalCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Birthday = odataObject.Birthday;\r\n }\r\n}\r\n\r\n/**\r\n * ProductAttributeGroup entity class.\r\n */\r\nexport class ProductAttributeGroupExtensionClass implements IProductAttributeGroup {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public GroupId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Group: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Name: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DisplayOrder: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Attributes: Entities.AttributeValue[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.GroupId = odataObject.GroupId ? parseInt(odataObject.GroupId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Group = odataObject.Group;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Name = odataObject.Name;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DisplayOrder = odataObject.DisplayOrder ? parseFloat(odataObject.DisplayOrder) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Attributes = undefined;\r\n if (odataObject.Attributes) {\r\n this.Attributes = [];\r\n for (var i = 0; i < odataObject.Attributes.length; i++) {\r\n if (odataObject.Attributes[i]) {\r\n if (odataObject.Attributes[i]['@odata.type']) {\r\n var className: string = odataObject.Attributes[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.Attributes[i] = new EntityClasses[className](odataObject.Attributes[i]);\r\n }\r\n } else {\r\n this.Attributes[i] = new EntityClasses.AttributeValueClass(odataObject.Attributes[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Attributes[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * ProductInfo entity class.\r\n */\r\nexport class ProductInfoExtensionClass implements IProductInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductInfoId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public WebText: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IncludedHtml: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DownloadInfoHtml: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RebateHtml: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductInfoId = odataObject.ProductInfoId ? parseInt(odataObject.ProductInfoId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sku = odataObject.Sku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.WebText = odataObject.WebText;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IncludedHtml = odataObject.IncludedHtml;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DownloadInfoHtml = odataObject.DownloadInfoHtml;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RebateHtml = odataObject.RebateHtml;\r\n }\r\n}\r\n\r\n/**\r\n * WhatisinBox entity class.\r\n */\r\nexport class WhatisinBoxExtensionClass implements IWhatisinBox {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductInfoId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public WhatsIntheBox: string;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductInfoId = odataObject.ProductInfoId ? parseInt(odataObject.ProductInfoId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sku = odataObject.Sku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.WhatsIntheBox = odataObject.WhatsIntheBox;\r\n }\r\n}\r\n\r\n/**\r\n * DiscountInfo entity class.\r\n */\r\nexport class DiscountInfoExtensionClass implements IDiscountInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MarketingHtml: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MarketingName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CartHtml: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Expired: boolean;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MarketingHtml = odataObject.MarketingHtml;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MarketingName = odataObject.MarketingName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CartHtml = odataObject.CartHtml;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Expired = odataObject.Expired;\r\n }\r\n}\r\n\r\n/**\r\n * ProductPromotion entity class.\r\n */\r\nexport class ProductPromotionExtensionClass implements IProductPromotion {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public OfferId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Name: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductIds: number[];\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public DiscountInfo: IDiscountInfo;\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OfferId = odataObject.OfferId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Name = odataObject.Name;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds = undefined;\r\n if (odataObject.ProductIds) {\r\n this.ProductIds = [];\r\n for (var i = 0; i < odataObject.ProductIds.length; i++) {\r\n if (odataObject.ProductIds[i]) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds[i] = parseInt(odataObject.ProductIds[i], 10);\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductIds[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n if (odataObject.DiscountInfo === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DiscountInfo = undefined;\r\n } else if (odataObject.DiscountInfo['@odata.type'] == null) {\r\n this.DiscountInfo = new DiscountInfoExtensionClass(odataObject.DiscountInfo);\r\n } else {\r\n var className: string = odataObject.DiscountInfo['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.DiscountInfo = new EntityClasses[className](odataObject.DiscountInfo);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * ProductInventoryInfo entity class.\r\n */\r\nexport class ProductInventoryInfoExtensionClass implements IProductInventoryInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MasterSku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Location: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AvaliablePhysical: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sku = odataObject.Sku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MasterSku = odataObject.MasterSku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Location = odataObject.Location;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AvaliablePhysical = odataObject.AvaliablePhysical ? parseFloat(odataObject.AvaliablePhysical) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * ProductPriceInfo entity class.\r\n */\r\nexport class ProductPriceInfoExtensionClass implements IProductPriceInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Price: Entities.ProductPrice;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MasterRecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MasterSku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n if (odataObject.Price === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Price = undefined;\r\n } else if (odataObject.Price['@odata.type'] == null) {\r\n this.Price = new EntityClasses.ProductPriceClass(odataObject.Price);\r\n } else {\r\n var className: string = odataObject.Price['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.Price = new EntityClasses[className](odataObject.Price);\r\n }\r\n }\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = odataObject.RecId ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MasterRecId = odataObject.MasterRecId ? parseInt(odataObject.MasterRecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sku = odataObject.Sku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MasterSku = odataObject.MasterSku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * FlatOrMasterProductInfo entity class.\r\n */\r\nexport class FlatOrMasterProductInfoExtensionClass implements IFlatOrMasterProductInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TitleEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TitleFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ChannelId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = odataObject.RecId ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TitleEn = odataObject.TitleEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TitleFr = odataObject.TitleFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ChannelId = odataObject.ChannelId ? parseInt(odataObject.ChannelId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * ProductFeedInfo entity class.\r\n */\r\nexport class ProductFeedInfoExtensionClass implements IProductFeedInfo {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FlatProduct: boolean;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ColorId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StyleId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizeId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Mpn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BreadcrumbEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public BreadcrumbFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TotalAvaliable: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AvaliablePhysical: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InventoryCode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Brand: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AdWordsGroup: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AdWordsLabel: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AdWordsCategory: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductType: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TitleEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public TitleFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Price: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SalePrice: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StyleEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public StyleFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ColorEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ColorFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizeEn: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SizeFr: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Barcode: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CategoryRecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductLifecycleStateId: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InventoryLevelProfile: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PreOrderDate: Date;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MasterRecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Sku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MasterSku: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ExtensionProperties: Entities.CommerceProperty[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FlatProduct = odataObject.FlatProduct;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ColorId = odataObject.ColorId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StyleId = odataObject.StyleId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizeId = odataObject.SizeId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Mpn = odataObject.Mpn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BreadcrumbEn = odataObject.BreadcrumbEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BreadcrumbFr = odataObject.BreadcrumbFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TotalAvaliable = odataObject.TotalAvaliable ? parseFloat(odataObject.TotalAvaliable) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AvaliablePhysical = odataObject.AvaliablePhysical ? parseFloat(odataObject.AvaliablePhysical) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventoryCode = odataObject.InventoryCode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Brand = odataObject.Brand;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AdWordsGroup = odataObject.AdWordsGroup;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AdWordsLabel = odataObject.AdWordsLabel;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AdWordsCategory = odataObject.AdWordsCategory;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductType = odataObject.ProductType;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TitleEn = odataObject.TitleEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TitleFr = odataObject.TitleFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Price = odataObject.Price ? parseFloat(odataObject.Price) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SalePrice = odataObject.SalePrice ? parseFloat(odataObject.SalePrice) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StyleEn = odataObject.StyleEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.StyleFr = odataObject.StyleFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ColorEn = odataObject.ColorEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ColorFr = odataObject.ColorFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizeEn = odataObject.SizeEn;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SizeFr = odataObject.SizeFr;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Barcode = odataObject.Barcode;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CategoryRecId = odataObject.CategoryRecId ? parseInt(odataObject.CategoryRecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ProductLifecycleStateId = odataObject.ProductLifecycleStateId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventoryLevelProfile = odataObject.InventoryLevelProfile;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PreOrderDate =\r\n odataObject.PreOrderDate instanceof Date\r\n ? odataObject.PreOrderDate\r\n : odataObject.PreOrderDate\r\n ? jsonLightReadStringPropertyValue(odataObject.PreOrderDate, 'Edm.DateTimeOffset', false)\r\n : undefined;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.RecId = odataObject.RecId ? parseInt(odataObject.RecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MasterRecId = odataObject.MasterRecId ? parseInt(odataObject.MasterRecId, 10) : 0;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Sku = odataObject.Sku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MasterSku = odataObject.MasterSku;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * GetProductPromotionResponse entity class.\r\n */\r\nexport class GetProductPromotionResponseExtensionClass implements IGetProductPromotionResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Promotions: IProductPromotion[];\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FreeItemProductIds: number[];\r\n\r\n // Navigation properties names\r\n\r\n /**\r\n * Construct an object from odata response.\r\n * @param {any} odataObject The odata result object.\r\n */\r\n constructor(odataObject?: any) {\r\n odataObject = odataObject || {};\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Promotions = undefined;\r\n if (odataObject.Promotions) {\r\n this.Promotions = [];\r\n for (var i = 0; i < odataObject.Promotions.length; i++) {\r\n if (odataObject.Promotions[i]) {\r\n if (odataObject.Promotions[i]['@odata.type']) {\r\n var className: string = odataObject.Promotions[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.Promotions[i] = new EntityClasses[className](odataObject.Promotions[i]);\r\n }\r\n } else {\r\n this.Promotions[i] = new ProductPromotionExtensionClass(odataObject.Promotions[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Promotions[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FreeItemProductIds = undefined;\r\n if (odataObject.FreeItemProductIds) {\r\n this.FreeItemProductIds = [];\r\n for (var i = 0; i < odataObject.FreeItemProductIds.length; i++) {\r\n if (odataObject.FreeItemProductIds[i]) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FreeItemProductIds[i] = parseInt(odataObject.FreeItemProductIds[i], 10);\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.FreeItemProductIds[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","/*!\r\n * Copyright (c) Microsoft Corporation.\r\n * All rights reserved. See LICENSE in the project root for license information.\r\n * THIS FILE IS AN AUTOGENERATED TYPESCRIPT PROXY EXTENSION.\r\n * TO USE THIS FILE, IT MUST BE ADDED TO A D365COMMERCE APPLICATION\r\n */\r\nimport {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings,\r\n // @ts-ignore -- Unused import\r\n NullResult\r\n} from '@msdyn365-commerce/retail-proxy';\r\n// @ts-ignore -- Unused import\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n// @ts-ignore -- Unused import\r\nimport * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as DataServiceEntities from './DataServiceEntities.g';\r\n\r\nfunction promptCustomerSignatureQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function promptCustomerSignatureInput(poiId: string, saleId: string, serviceId: string): IDataServiceRequest {\r\n const query = promptCustomerSignatureQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'PromptCustomerSignature',\r\n true,\r\n DataServiceEntities.CustomerSignatureExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ICustomerSignature' },\r\n {\r\n poiId: poiId,\r\n saleId: saleId,\r\n serviceId: serviceId\r\n }\r\n );\r\n}\r\n\r\nexport function promptCustomerSignatureAsync(\r\n context: IContext,\r\n poiId: string,\r\n saleId: string,\r\n serviceId: string\r\n): AsyncResult {\r\n const request = promptCustomerSignatureInput(poiId, saleId, serviceId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getDemoProductsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getDemoProductsInput(\r\n queryResultSettings: IQueryResultSettings,\r\n locationId: string,\r\n languageId: string\r\n): IDataServiceRequest {\r\n const query = getDemoProductsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetDemoProducts',\r\n true,\r\n DataServiceEntities.SignItemExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISignItem' },\r\n {\r\n locationId: locationId,\r\n languageId: languageId\r\n }\r\n );\r\n}\r\n\r\nexport function getDemoProductsAsync(\r\n context: IContext,\r\n locationId: string,\r\n languageId: string\r\n): AsyncResult {\r\n const request = getDemoProductsInput(context.queryResultSettings || {}, locationId, languageId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getDemoStoresQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getDemoStoresInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = getDemoStoresQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetDemoStores',\r\n true,\r\n DataServiceEntities.DemoStoreExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IDemoStore' },\r\n {}\r\n );\r\n}\r\n\r\nexport function getDemoStoresAsync(context: IContext): AsyncResult {\r\n const request = getDemoStoresInput(context.queryResultSettings || {});\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getGroupedAttributesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getGroupedAttributesInput(\r\n queryResultSettings: IQueryResultSettings,\r\n channelId: number,\r\n catalogId: number,\r\n productId: number\r\n): IDataServiceRequest {\r\n const query = getGroupedAttributesQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetGroupedAttributes',\r\n true,\r\n DataServiceEntities.ProductAttributeGroupExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductAttributeGroup' },\r\n {\r\n channelId: channelId,\r\n catalogId: catalogId,\r\n productId: productId\r\n }\r\n );\r\n}\r\n\r\nexport function getGroupedAttributesAsync(\r\n context: IContext,\r\n channelId: number,\r\n catalogId: number,\r\n productId: number\r\n): AsyncResult {\r\n const request = getGroupedAttributesInput(context.queryResultSettings || {}, channelId, catalogId, productId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportProductInventoriesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportProductInventoriesInput(queryResultSettings: IQueryResultSettings, skip: number, top: number): IDataServiceRequest {\r\n const query = exportProductInventoriesQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportProductInventories',\r\n true,\r\n DataServiceEntities.ProductInventoryInfoExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductInventoryInfo' },\r\n {\r\n skip: skip,\r\n top: top\r\n }\r\n );\r\n}\r\n\r\nexport function exportProductInventoriesAsync(\r\n context: IContext,\r\n skip: number,\r\n top: number\r\n): AsyncResult {\r\n const request = exportProductInventoriesInput(context.queryResultSettings || {}, skip, top);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportProductInventoriesForSkuQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportProductInventoriesForSkuInput(queryResultSettings: IQueryResultSettings, sku: string): IDataServiceRequest {\r\n const query = exportProductInventoriesForSkuQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportProductInventoriesForSku',\r\n true,\r\n DataServiceEntities.ProductInventoryInfoExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductInventoryInfo' },\r\n {\r\n sku: sku\r\n }\r\n );\r\n}\r\n\r\nexport function exportProductInventoriesForSkuAsync(\r\n context: IContext,\r\n sku: string\r\n): AsyncResult {\r\n const request = exportProductInventoriesForSkuInput(context.queryResultSettings || {}, sku);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportProductPricesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportProductPricesInput(queryResultSettings: IQueryResultSettings, skip: number, top: number): IDataServiceRequest {\r\n const query = exportProductPricesQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportProductPrices',\r\n true,\r\n DataServiceEntities.ProductPriceInfoExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductPriceInfo' },\r\n {\r\n skip: skip,\r\n top: top\r\n }\r\n );\r\n}\r\n\r\nexport function exportProductPricesAsync(\r\n context: IContext,\r\n skip: number,\r\n top: number\r\n): AsyncResult {\r\n const request = exportProductPricesInput(context.queryResultSettings || {}, skip, top);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportMasterProductsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportMasterProductsInput(queryResultSettings: IQueryResultSettings, skip: number, top: number): IDataServiceRequest {\r\n const query = exportMasterProductsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportMasterProducts',\r\n true,\r\n DataServiceEntities.FlatOrMasterProductInfoExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IFlatOrMasterProductInfo' },\r\n {\r\n skip: skip,\r\n top: top\r\n }\r\n );\r\n}\r\n\r\nexport function exportMasterProductsAsync(\r\n context: IContext,\r\n skip: number,\r\n top: number\r\n): AsyncResult {\r\n const request = exportMasterProductsInput(context.queryResultSettings || {}, skip, top);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportProductFeedLogQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportProductFeedLogInput(skip: number, top: number, sku: string): IDataServiceRequest {\r\n const query = exportProductFeedLogQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportProductFeedLog',\r\n true,\r\n '',\r\n 'false',\r\n { bypassCache: 'get', returnEntity: '' },\r\n {\r\n skip: skip,\r\n top: top,\r\n sku: sku\r\n }\r\n );\r\n}\r\n\r\nexport function exportProductFeedLogAsync(context: IContext, skip: number, top: number, sku: string): AsyncResult {\r\n const request = exportProductFeedLogInput(skip, top, sku);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction exportProductFeedQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function exportProductFeedInput(\r\n queryResultSettings: IQueryResultSettings,\r\n skip: number,\r\n top: number,\r\n sku: string\r\n): IDataServiceRequest {\r\n const query = exportProductFeedQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'ExportProductFeed',\r\n true,\r\n DataServiceEntities.ProductFeedInfoExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductFeedInfo' },\r\n {\r\n skip: skip,\r\n top: top,\r\n sku: sku\r\n }\r\n );\r\n}\r\n\r\nexport function exportProductFeedAsync(\r\n context: IContext,\r\n skip: number,\r\n top: number,\r\n sku: string\r\n): AsyncResult {\r\n const request = exportProductFeedInput(context.queryResultSettings || {}, skip, top, sku);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction refreshProductFeedQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function refreshProductFeedInput(): IDataServiceRequest {\r\n const query = refreshProductFeedQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'RefreshProductFeed',\r\n true,\r\n '',\r\n 'false',\r\n { bypassCache: 'get', returnEntity: '' },\r\n {}\r\n );\r\n}\r\n\r\nexport function refreshProductFeedAsync(context: IContext): AsyncResult {\r\n const request = refreshProductFeedInput();\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getProductInfoQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getProductInfoInput(sku: string): IDataServiceRequest {\r\n const query = getProductInfoQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetProductInfo',\r\n true,\r\n DataServiceEntities.ProductInfoExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductInfo' },\r\n {\r\n sku: sku\r\n }\r\n );\r\n}\r\n\r\nexport function getProductInfoAsync(context: IContext, sku: string): AsyncResult {\r\n const request = getProductInfoInput(sku);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getWhatisinBoxQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getWhatisinBoxInput(sku: string): IDataServiceRequest {\r\n const query = getWhatisinBoxQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetWhatisinBox',\r\n true,\r\n DataServiceEntities.WhatisinBoxExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IWhatisinBox' },\r\n {\r\n sku: sku\r\n }\r\n );\r\n}\r\n\r\nexport function getWhatisinBoxAsync(context: IContext, sku: string): AsyncResult {\r\n const request = getWhatisinBoxInput(sku);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getProductPromotionsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getProductPromotionsInput(\r\n queryResultSettings: IQueryResultSettings,\r\n recordId: number,\r\n distinctProductVariantId: number\r\n): IDataServiceRequest {\r\n const query = getProductPromotionsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetProductPromotions',\r\n true,\r\n DataServiceEntities.ProductPromotionExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductPromotion' },\r\n {\r\n recordId: recordId,\r\n distinctProductVariantId: distinctProductVariantId\r\n }\r\n );\r\n}\r\n\r\nexport function getProductPromotionsAsync(\r\n context: IContext,\r\n recordId: number,\r\n distinctProductVariantId: number\r\n): AsyncResult {\r\n const request = getProductPromotionsInput(context.queryResultSettings || {}, recordId, distinctProductVariantId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getProductPromotionsV2Query(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getProductPromotionsV2Input(recordId: number, distinctProductVariantId: number): IDataServiceRequest {\r\n const query = getProductPromotionsV2Query();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetProductPromotionsV2',\r\n true,\r\n DataServiceEntities.GetProductPromotionResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IGetProductPromotionResponse' },\r\n {\r\n recordId: recordId,\r\n distinctProductVariantId: distinctProductVariantId\r\n }\r\n );\r\n}\r\n\r\nexport function getProductPromotionsV2Async(\r\n context: IContext,\r\n recordId: number,\r\n distinctProductVariantId: number\r\n): AsyncResult {\r\n const request = getProductPromotionsV2Input(recordId, distinctProductVariantId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getPromotionInfoQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getPromotionInfoInput(code: string): IDataServiceRequest {\r\n const query = getPromotionInfoQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetPromotionInfo',\r\n true,\r\n DataServiceEntities.DiscountInfoExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IDiscountInfo' },\r\n {\r\n code: code\r\n }\r\n );\r\n}\r\n\r\nexport function getPromotionInfoAsync(context: IContext, code: string): AsyncResult {\r\n const request = getPromotionInfoInput(code);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction networkInventoryQuery(productId?: number): DataServiceQuery {\r\n const key = productId ? { ProductId: productId } : null;\r\n return new DataServiceQuery(\r\n 'NetworkInventory',\r\n 'NetworkInventoryAvailableQuantity',\r\n DataServiceEntities.NetworkInventoryAvailableQuantityExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createCheckInventoryInput(\r\n queryResultSettings: IQueryResultSettings,\r\n itemIds: number[],\r\n shouldCheckAttribute: boolean\r\n): IDataServiceRequest {\r\n const query = networkInventoryQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'CheckInventory',\r\n true,\r\n DataServiceEntities.NetworkInventoryAvailableQuantityExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.INetworkInventoryAvailableQuantity' },\r\n { itemIds: itemIds, shouldCheckAttribute: shouldCheckAttribute }\r\n );\r\n}\r\n\r\nexport function checkInventoryAsync(\r\n context: IContext,\r\n itemIds: number[],\r\n shouldCheckAttribute: boolean\r\n): AsyncResult {\r\n const request = createCheckInventoryInput(context.queryResultSettings || {}, itemIds, shouldCheckAttribute);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createGetInventoryLabelInput(\r\n queryResultSettings: IQueryResultSettings,\r\n availabilities: DataServiceEntities.INetworkInventoryLabelInput[],\r\n channelId: number\r\n): IDataServiceRequest {\r\n const query = networkInventoryQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetInventoryLabel',\r\n true,\r\n DataServiceEntities.NetworkInventoryLabelExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.INetworkInventoryLabel' },\r\n { availabilities: availabilities, channelId: channelId }\r\n );\r\n}\r\n\r\nexport function getInventoryLabelAsync(\r\n context: IContext,\r\n availabilities: DataServiceEntities.INetworkInventoryLabelInput[],\r\n channelId: number\r\n): AsyncResult {\r\n const request = createGetInventoryLabelInput(context.queryResultSettings || {}, availabilities, channelId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createTestInput(itemIds: number[]): IDataServiceRequest {\r\n const query = networkInventoryQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'Test',\r\n true,\r\n '',\r\n 'false',\r\n { bypassCache: 'get', returnEntity: '' },\r\n { itemIds: itemIds }\r\n );\r\n}\r\n\r\nexport function testAsync(context: IContext, itemIds: number[]): AsyncResult {\r\n const request = createTestInput(itemIds);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction flexitiPaymentQuery(transactionId?: string): DataServiceQuery {\r\n const key = transactionId ? { transactionId: transactionId } : null;\r\n return new DataServiceQuery('FlexitiPayment', 'FlexitiTransactions', DataServiceEntities.FlexitiTransactionsExtensionClass, key);\r\n}\r\n\r\nexport function createGetFlexitiPaymentTransactionsInput(\r\n queryResultSettings: IQueryResultSettings,\r\n flexitiPaymentCustomer: DataServiceEntities.IFlexitiPaymentCustomer\r\n): IDataServiceRequest {\r\n const query = flexitiPaymentQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetFlexitiPaymentTransactions',\r\n true,\r\n DataServiceEntities.FlexitiTransactionsExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IFlexitiTransactions' },\r\n { flexitiPaymentCustomer: flexitiPaymentCustomer }\r\n );\r\n}\r\n\r\nexport function getFlexitiPaymentTransactionsAsync(\r\n context: IContext,\r\n flexitiPaymentCustomer: DataServiceEntities.IFlexitiPaymentCustomer\r\n): AsyncResult {\r\n const request = createGetFlexitiPaymentTransactionsInput(context.queryResultSettings || {}, flexitiPaymentCustomer);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n"],"names":["ProductAttributeGroupExtensionClass","constructor","odataObject","this","GroupId","parseInt","Group","Name","DisplayOrder","parseFloat","Attributes","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","ProductInfoExtensionClass","ProductInfoId","Sku","WebText","IncludedHtml","DownloadInfoHtml","RebateHtml","WhatisinBoxExtensionClass","WhatsIntheBox","DiscountInfoExtensionClass","MarketingHtml","MarketingName","CartHtml","Expired","ProductPromotionExtensionClass","OfferId","ProductIds","DiscountInfo","GetProductPromotionResponseExtensionClass","Promotions","FreeItemProductIds","getGroupedAttributesInput","queryResultSettings","channelId","catalogId","productId","DataServiceQuery","resultSettings","createDataServiceRequestForOperation","DataServiceEntities","bypassCache","returnEntity","getGroupedAttributesAsync","context","request","callActionOrExecute","callerContext","getProductInfoInput","sku","getWhatisinBoxInput","getProductPromotionsV2Input","recordId","distinctProductVariantId","getPromotionInfoInput","code","getPromotionInfoAsync"],"sourceRoot":""}