{"version":3,"file":"static/js/ccdf65c9b204ebe67d4f.bundle.js","mappings":"oMAkrCM,MAAOA,EAOTC,YAAYC,GACRA,EAAcA,GAAe,IAQ/B,MAAOC,EAOTF,YAAYC,GACRA,EAAcA,GAAe,IAQ/B,MAAOE,EAOTH,YAAYC,GACRA,EAAcA,GAAe,IAO/B,MAAOG,EAqCTJ,YAAYC,GAiBR,GAhBAA,EAAcA,GAAe,GAE7BI,KAAKC,UAAYL,EAAYK,UAG7BD,KAAKE,YAAcN,EAAYM,YAG/BF,KAAKG,qBAAuBP,EAAYO,qBAGxCH,KAAKI,cAAgBR,EAAYQ,cAGjCJ,KAAKK,WAAaT,EAAYS,WAEE,OAA5BT,EAAYU,YAEZN,KAAKM,iBAAcC,OAChB,GAA+C,OAA3CX,EAAYU,YAAY,eAC/BN,KAAKM,YAAc,IAAIZ,EAA0BE,EAAYU,iBAC1D,CACH,IAAIE,EAAoBZ,EAAYU,YAAY,eAChDE,EAAYA,GAAaA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAE7EC,EAAcJ,KAEdR,KAAKM,YAAc,IAAIM,EAAcJ,GAAWZ,EAAYU,cAIpE,GAAuC,OAAnCV,EAAYiB,mBAEZb,KAAKa,wBAAqBN,OACvB,GAAsD,OAAlDX,EAAYiB,mBAAmB,eACtCb,KAAKa,mBAAqB,IAAIhB,EAAiCD,EAAYiB,wBACxE,CACH,IAAIL,EAAoBZ,EAAYiB,mBAAmB,eACvDL,EAAYA,GAAaA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAE7EC,EAAcJ,KAEdR,KAAKa,mBAAqB,IAAID,EAAcJ,GAAWZ,EAAYiB,qBAO3E,GAFAb,KAAKc,mBAAqBlB,EAAYkB,mBAED,OAAjClB,EAAYmB,iBAEZf,KAAKe,sBAAmBR,OACrB,GAAoD,OAAhDX,EAAYmB,iBAAiB,eACpCf,KAAKe,iBAAmB,IAAIjB,EAA+BF,EAAYmB,sBACpE,CACH,IAAIP,EAAoBZ,EAAYmB,iBAAiB,eACrDP,EAAYA,GAAaA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAE7EC,EAAcJ,KAEdR,KAAKe,iBAAmB,IAAIH,EAAcJ,GAAWZ,EAAYmB,mBAKzEf,KAAKgB,WAAapB,EAAYoB,YAOhC,MAAOC,EAUTtB,YAAYC,GAER,GAAkC,QADlCA,EAAcA,GAAe,IACbsB,cAEZlB,KAAKkB,mBAAgBX,OAClB,GACHX,GACAA,EAAYsB,qBACkCX,IAA7CX,EAAYsB,cAAc,gBAA6E,OAA7CtB,EAAYsB,cAAc,gBAErFlB,KAAKkB,cAAgB,IAAInB,EAA4BH,EAAYsB,mBAC9D,CACH,IAAIV,EAAoBZ,GAAeA,EAAYsB,eAAiBtB,EAAYsB,cAAc,eAC9FV,EAAYA,GAAaA,EAAUC,OAAOD,EAAUE,YAAY,KAAO,GAAGC,OAAO,SAE7EC,EAAcJ,KAEdR,KAAKkB,cAAgB,IAAIN,EAAcJ,GAAWZ,EAAYsB,kBASxE,MAAOC,EAUTxB,YAAYC,GACRA,EAAcA,GAAe,GAE7BI,KAAKoB,OAASxB,EAAYwB,QAgI5B,MAAOC,EAaT1B,YAAYC,GACRA,EAAcA,GAAe,GAE7BI,KAAKoB,OAASxB,EAAYwB,OAG1BpB,KAAKsB,QAAU1B,EAAY0B,SCz/C7B,SAAUC,EAA8BC,GAE1C,OALO,IAAIC,EAAAA,kBAKEC,qCACT,4BACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,gDACpC,CACIL,QAASA,IAKf,SAAUM,EACZC,EACAP,GAEA,MAAMQ,EAAqBT,EAA8BC,GACzD,OAAOS,EAAAA,EAAAA,qBAAkED,EAAoBD,EAAQG,eAwDnG,SAAUC,EAA2BC,EAAkBC,GAEzD,OALO,IAAIZ,EAAAA,kBAKEC,qCACT,yBACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,sDACpC,CACIO,SAAUA,EACVC,SAAUA,IAKhB,SAAUC,EACZP,EACAK,EACAC,GAEA,MAAMb,EAAUW,EAA2BC,EAAUC,GACrD,OAAOJ,EAAAA,EAAAA,qBAAwET,EAASO,EAAQG,eAO9F,SAAUK,EACZC,EACAC,EACAC,GAGA,OATO,IAAIjB,EAAAA,kBASEC,qCACT,sCACA,EACAC,EACA,QACA,CAAEC,YAAa,MAAOC,aAAc,+DACpC,CACIW,aAAcA,EACdC,eAAgBA,EAChBC,eAAgBA,IAKtB,SAAUC,EACZZ,EACAS,EACAC,EACAC,GAEA,MAAMlB,EAAUe,EAAwCC,EAAcC,EAAgBC,GACtF,OAAOT,EAAAA,EAAAA,qBAAiFT,EAASO,EAAQG","sources":["webpack://illumina-commerce/./src/proxy/DataServiceEntities.g.ts?5afe","webpack://illumina-commerce/./src/proxy/DataActionExtension.g.ts?4799"],"sourcesContent":["/* eslint-disable security/detect-object-injection */\r\n// @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 * CCHLog entity interface.\r\n */\r\nexport interface ICCHLog {\r\n Message?: string;\r\n Timestamp: Date;\r\n ReplicationCounter: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * User entity interface.\r\n */\r\nexport interface IUser {\r\n userId?: string;\r\n creationDate?: Date;\r\n updateDate?: Date;\r\n country?: string;\r\n zipCode?: string;\r\n profileType?: string;\r\n authenticationProvider?: string;\r\n}\r\n\r\n/**\r\n * DeviceContext entity interface.\r\n */\r\nexport interface IDeviceContext {\r\n deviceContextId?: string;\r\n provider?: string;\r\n externalDeviceId?: string;\r\n externalDeviceType?: string;\r\n ipAddress?: string;\r\n}\r\n\r\n/**\r\n * BillingAddress entity interface.\r\n */\r\nexport interface IBillingAddress {\r\n street1?: string;\r\n street2?: string;\r\n street3?: string;\r\n city?: string;\r\n state?: string;\r\n district?: string;\r\n zipCode?: string;\r\n country?: string;\r\n}\r\n\r\n/**\r\n * PaymentInstrumentList entity interface.\r\n */\r\nexport interface IPaymentInstrumentList {\r\n merchantPaymentInstrumentId?: string;\r\n type?: string;\r\n creationDate?: Date;\r\n updateDate?: Date;\r\n isLowLiabilityPIType?: boolean;\r\n state?: string;\r\n cardType?: string;\r\n payerId?: string;\r\n payerStatus?: string;\r\n addressStatus?: string;\r\n imei?: string;\r\n encryptedCreditCardNumber?: string;\r\n purchaseAmount?: number;\r\n billingAddress?: IBillingAddress;\r\n}\r\n\r\n/**\r\n * ProductList entity interface.\r\n */\r\nexport interface IProductList {\r\n productId?: string;\r\n productName?: string;\r\n type?: string;\r\n sku?: string;\r\n category?: string;\r\n merchantProductCategory?: string;\r\n market?: string;\r\n salesPrice?: number;\r\n currency?: string;\r\n cogs?: number;\r\n isRecurring?: boolean;\r\n isFree?: boolean;\r\n language?: string;\r\n purchasePrice?: number;\r\n margin?: number;\r\n quantity?: number;\r\n isPreorder?: boolean;\r\n shippingMethod?: string;\r\n}\r\n\r\n/**\r\n * ShippingAddress entity interface.\r\n */\r\nexport interface IShippingAddress {\r\n street1?: string;\r\n street2?: string;\r\n street3?: string;\r\n city?: string;\r\n state?: string;\r\n district?: string;\r\n zipCode?: string;\r\n country?: string;\r\n}\r\n\r\n/**\r\n * Address entity interface.\r\n */\r\nexport interface IAddress {\r\n street1?: string;\r\n street2?: string;\r\n street3?: string;\r\n city?: string;\r\n state?: string;\r\n district?: string;\r\n zipCode?: string;\r\n country?: string;\r\n}\r\n\r\n/**\r\n * Store entity interface.\r\n */\r\nexport interface IStore {\r\n storeId?: string;\r\n storeName?: string;\r\n address?: IAddress;\r\n}\r\n\r\n/**\r\n * _Metadata entity interface.\r\n */\r\nexport interface I_Metadata {\r\n trackingId?: string;\r\n merchantTimeStamp?: Date;\r\n}\r\n\r\n/**\r\n * FraudProtectionRequest entity interface.\r\n */\r\nexport interface IFraudProtectionRequest {\r\n purchaseId?: string;\r\n assessmentType?: string;\r\n originalOrderId?: string;\r\n customerLocalDate?: Date;\r\n merchantLocalDate?: Date;\r\n merchantIdentifier?: string;\r\n merchantCategoryCode?: string;\r\n merchantBusinessType?: string;\r\n isTest?: boolean;\r\n isFreeProductIncluded?: boolean;\r\n isPostpaid?: boolean;\r\n totalItemCount?: number;\r\n orderType?: string;\r\n totalAmount?: number;\r\n salesTax?: number;\r\n currency?: string;\r\n shippingMethod?: string;\r\n user?: IUser;\r\n deviceContext?: IDeviceContext;\r\n paymentInstrumentList?: IPaymentInstrumentList[];\r\n productList?: IProductList[];\r\n shippingAddress?: IShippingAddress;\r\n store?: IStore;\r\n _metadata?: I_Metadata;\r\n}\r\n\r\n/**\r\n * Diagnostics entity interface.\r\n */\r\nexport interface IDiagnostics {}\r\n\r\n/**\r\n * Merchantruleoutput entity interface.\r\n */\r\nexport interface IMerchantruleoutput {}\r\n\r\n/**\r\n * Deviceattributes entity interface.\r\n */\r\nexport interface IDeviceattributes {}\r\n\r\n/**\r\n * ResultDetails entity interface.\r\n */\r\nexport interface IResultDetails {\r\n RiskScore: number;\r\n ReasonCodes?: string;\r\n MerchantRuleDecision?: string;\r\n PolicyApplied?: string;\r\n ClauseName?: string;\r\n Diagnostics?: IDiagnostics;\r\n MerchantRuleOutput?: IMerchantruleoutput;\r\n MerchantRuleReason?: string;\r\n DeviceAttributes?: IDeviceattributes;\r\n PurchaseId?: string;\r\n}\r\n\r\n/**\r\n * FraudProtectionResponse entity interface.\r\n */\r\nexport interface IFraudProtectionResponse {\r\n resultDetails?: IResultDetails;\r\n}\r\n\r\n/**\r\n * RecaptchaVerificationResponse entity interface.\r\n */\r\nexport interface IRecaptchaVerificationResponse {\r\n Status?: boolean;\r\n}\r\n\r\n/**\r\n * ProductTransportationCode entity interface.\r\n */\r\nexport interface IProductTransportationCode {\r\n HarmonizedCode?: string;\r\n NmfcCode?: string;\r\n StccCode?: string;\r\n ProductId: number;\r\n RecId: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * ItemData entity interface.\r\n */\r\nexport interface IItemData {\r\n GrossHeight?: number;\r\n GrossWidth?: number;\r\n GrossDepth?: number;\r\n NetWeight?: number;\r\n GrossWeight?: number;\r\n ItemId?: string;\r\n}\r\n\r\n/**\r\n * UpdateSalesOrderApprovalStatusResponse entity interface.\r\n */\r\nexport interface IUpdateSalesOrderApprovalStatusResponse {\r\n Status?: boolean;\r\n Message?: string;\r\n}\r\n\r\n/**\r\n * CCHLog entity class.\r\n */\r\nexport class CCHLogExtensionClass implements ICCHLog {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Message: 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 Timestamp: 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 ReplicationCounter: 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.Message = odataObject.Message;\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.Timestamp =\r\n odataObject.Timestamp instanceof Date\r\n ? odataObject.Timestamp\r\n : odataObject.Timestamp\r\n ? jsonLightReadStringPropertyValue(odataObject.Timestamp, '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.ReplicationCounter = odataObject.ReplicationCounter ? parseInt(odataObject.ReplicationCounter, 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 (let i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n let className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\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 * User entity class.\r\n */\r\nexport class UserExtensionClass implements IUser {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public userId: 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 creationDate: 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 updateDate: 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 country: 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 zipCode: 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 profileType: 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 authenticationProvider: 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.userId = odataObject.userId;\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.creationDate =\r\n odataObject.creationDate instanceof Date\r\n ? odataObject.creationDate\r\n : odataObject.creationDate\r\n ? jsonLightReadStringPropertyValue(odataObject.creationDate, '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.updateDate =\r\n odataObject.updateDate instanceof Date\r\n ? odataObject.updateDate\r\n : odataObject.updateDate\r\n ? jsonLightReadStringPropertyValue(odataObject.updateDate, '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.country = odataObject.country;\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.zipCode = odataObject.zipCode;\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.profileType = odataObject.profileType;\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.authenticationProvider = odataObject.authenticationProvider;\r\n }\r\n}\r\n\r\n/**\r\n * DeviceContext entity class.\r\n */\r\nexport class DeviceContextExtensionClass implements IDeviceContext {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public deviceContextId: 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 provider: 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 externalDeviceId: 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 externalDeviceType: 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 ipAddress: 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.deviceContextId = odataObject.deviceContextId;\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.provider = odataObject.provider;\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.externalDeviceId = odataObject.externalDeviceId;\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.externalDeviceType = odataObject.externalDeviceType;\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.ipAddress = odataObject.ipAddress;\r\n }\r\n}\r\n\r\n/**\r\n * BillingAddress entity class.\r\n */\r\nexport class BillingAddressExtensionClass implements IBillingAddress {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public street1: 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 street2: 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 street3: 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 city: 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 state: 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 district: 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 zipCode: 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 country: 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.street1 = odataObject.street1;\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.street2 = odataObject.street2;\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.street3 = odataObject.street3;\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.city = odataObject.city;\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.state = odataObject.state;\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.district = odataObject.district;\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.zipCode = odataObject.zipCode;\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.country = odataObject.country;\r\n }\r\n}\r\n\r\n/**\r\n * PaymentInstrumentList entity class.\r\n */\r\nexport class PaymentInstrumentListExtensionClass implements IPaymentInstrumentList {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public merchantPaymentInstrumentId: 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 type: 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 creationDate: 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 updateDate: 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 isLowLiabilityPIType: 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 state: 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 cardType: 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 payerId: 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 payerStatus: 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 addressStatus: 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 imei: 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 encryptedCreditCardNumber: 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 purchaseAmount: 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 billingAddress: IBillingAddress;\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.merchantPaymentInstrumentId = odataObject.merchantPaymentInstrumentId;\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.type = odataObject.type;\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.creationDate =\r\n odataObject.creationDate instanceof Date\r\n ? odataObject.creationDate\r\n : odataObject.creationDate\r\n ? jsonLightReadStringPropertyValue(odataObject.creationDate, '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.updateDate =\r\n odataObject.updateDate instanceof Date\r\n ? odataObject.updateDate\r\n : odataObject.updateDate\r\n ? jsonLightReadStringPropertyValue(odataObject.updateDate, '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.isLowLiabilityPIType = odataObject.isLowLiabilityPIType;\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.state = odataObject.state;\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.cardType = odataObject.cardType;\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.payerId = odataObject.payerId;\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.payerStatus = odataObject.payerStatus;\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.addressStatus = odataObject.addressStatus;\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.imei = odataObject.imei;\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.encryptedCreditCardNumber = odataObject.encryptedCreditCardNumber;\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.purchaseAmount = odataObject.purchaseAmount ? parseFloat(odataObject.purchaseAmount) : 0;\r\n\r\n if (odataObject.billingAddress === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.billingAddress = undefined;\r\n } else if (odataObject.billingAddress['@odata.type'] === null) {\r\n this.billingAddress = new BillingAddressExtensionClass(odataObject.billingAddress);\r\n } else {\r\n let className: string = odataObject.billingAddress['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.billingAddress = new EntityClasses[className](odataObject.billingAddress);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * ProductList entity class.\r\n */\r\nexport class ProductListExtensionClass implements IProductList {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public productId: 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 productName: 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 type: 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 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 category: 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 merchantProductCategory: 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 market: 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 salesPrice: 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 currency: 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 cogs: 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 isRecurring: 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 isFree: 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 language: 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 purchasePrice: 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 margin: 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 isPreorder: 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 shippingMethod: 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.productId = odataObject.productId;\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.productName = odataObject.productName;\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.type = odataObject.type;\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.category = odataObject.category;\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.merchantProductCategory = odataObject.merchantProductCategory;\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.market = odataObject.market;\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.salesPrice = odataObject.salesPrice ? parseFloat(odataObject.salesPrice) : 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.currency = odataObject.currency;\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.cogs = odataObject.cogs ? parseFloat(odataObject.cogs) : 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.isRecurring = odataObject.isRecurring;\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.isFree = odataObject.isFree;\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.language = odataObject.language;\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.purchasePrice = odataObject.purchasePrice ? parseFloat(odataObject.purchasePrice) : 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.margin = odataObject.margin ? parseFloat(odataObject.margin) : 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;\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.isPreorder = odataObject.isPreorder;\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.shippingMethod = odataObject.shippingMethod;\r\n }\r\n}\r\n\r\n/**\r\n * ShippingAddress entity class.\r\n */\r\nexport class ShippingAddressExtensionClass implements IShippingAddress {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public street1: 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 street2: 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 street3: 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 city: 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 state: 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 district: 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 zipCode: 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 country: 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.street1 = odataObject.street1;\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.street2 = odataObject.street2;\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.street3 = odataObject.street3;\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.city = odataObject.city;\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.state = odataObject.state;\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.district = odataObject.district;\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.zipCode = odataObject.zipCode;\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.country = odataObject.country;\r\n }\r\n}\r\n\r\n/**\r\n * Address entity class.\r\n */\r\nexport class AddressExtensionClass implements IAddress {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public street1: 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 street2: 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 street3: 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 city: 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 state: 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 district: 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 zipCode: 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 country: 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.street1 = odataObject.street1;\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.street2 = odataObject.street2;\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.street3 = odataObject.street3;\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.city = odataObject.city;\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.state = odataObject.state;\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.district = odataObject.district;\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.zipCode = odataObject.zipCode;\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.country = odataObject.country;\r\n }\r\n}\r\n\r\n/**\r\n * Store entity class.\r\n */\r\nexport class StoreExtensionClass implements IStore {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public storeId: 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 storeName: 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 address: IAddress;\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.storeId = odataObject.storeId;\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.storeName = odataObject.storeName;\r\n\r\n if (odataObject.address === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.address = undefined;\r\n } else if (odataObject.address['@odata.type'] === null) {\r\n this.address = new AddressExtensionClass(odataObject.address);\r\n } else {\r\n let className: string = odataObject.address['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.address = new EntityClasses[className](odataObject.address);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * _Metadata entity class.\r\n */\r\nexport class _MetadataExtensionClass implements I_Metadata {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public trackingId: 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 merchantTimeStamp: Date;\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.trackingId = odataObject.trackingId;\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.merchantTimeStamp =\r\n odataObject.merchantTimeStamp instanceof Date\r\n ? odataObject.merchantTimeStamp\r\n : odataObject.merchantTimeStamp\r\n ? jsonLightReadStringPropertyValue(odataObject.merchantTimeStamp, 'Edm.DateTimeOffset', false)\r\n : undefined;\r\n }\r\n}\r\n\r\n/**\r\n * FraudProtectionRequest entity class.\r\n */\r\nexport class FraudProtectionRequestExtensionClass implements IFraudProtectionRequest {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public purchaseId: 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 assessmentType: 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 originalOrderId: 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 customerLocalDate: 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 merchantLocalDate: 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 merchantIdentifier: 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 merchantCategoryCode: 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 merchantBusinessType: 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 isTest: 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 isFreeProductIncluded: 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 isPostpaid: 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 totalItemCount: 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 orderType: 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 totalAmount: 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 salesTax: 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 currency: 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 shippingMethod: 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 user: IUser;\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 deviceContext: IDeviceContext;\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 paymentInstrumentList: IPaymentInstrumentList[];\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 productList: IProductList[];\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 shippingAddress: IShippingAddress;\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 store: IStore;\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 _metadata: I_Metadata;\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.purchaseId = odataObject.purchaseId;\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.assessmentType = odataObject.assessmentType;\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.originalOrderId = odataObject.originalOrderId;\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.customerLocalDate =\r\n odataObject.customerLocalDate instanceof Date\r\n ? odataObject.customerLocalDate\r\n : odataObject.customerLocalDate\r\n ? jsonLightReadStringPropertyValue(odataObject.customerLocalDate, '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.merchantLocalDate =\r\n odataObject.merchantLocalDate instanceof Date\r\n ? odataObject.merchantLocalDate\r\n : odataObject.merchantLocalDate\r\n ? jsonLightReadStringPropertyValue(odataObject.merchantLocalDate, '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.merchantIdentifier = odataObject.merchantIdentifier;\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.merchantCategoryCode = odataObject.merchantCategoryCode;\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.merchantBusinessType = odataObject.merchantBusinessType;\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.isTest = odataObject.isTest;\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.isFreeProductIncluded = odataObject.isFreeProductIncluded;\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.isPostpaid = odataObject.isPostpaid;\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.totalItemCount = odataObject.totalItemCount;\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.orderType = odataObject.orderType;\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.totalAmount = odataObject.totalAmount ? parseFloat(odataObject.totalAmount) : 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.salesTax = odataObject.salesTax ? parseFloat(odataObject.salesTax) : 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.currency = odataObject.currency;\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.shippingMethod = odataObject.shippingMethod;\r\n\r\n if (odataObject.user === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.user = undefined;\r\n } else if (odataObject.user['@odata.type'] === null) {\r\n this.user = new UserExtensionClass(odataObject.user);\r\n } else {\r\n let className: string = odataObject.user['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.user = new EntityClasses[className](odataObject.user);\r\n }\r\n }\r\n\r\n if (odataObject.deviceContext === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.deviceContext = undefined;\r\n } else if (odataObject.deviceContext['@odata.type'] === null) {\r\n this.deviceContext = new DeviceContextExtensionClass(odataObject.deviceContext);\r\n } else {\r\n let className: string = odataObject.deviceContext['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.deviceContext = new EntityClasses[className](odataObject.deviceContext);\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.paymentInstrumentList = undefined;\r\n if (odataObject.paymentInstrumentList) {\r\n this.paymentInstrumentList = [];\r\n for (let i = 0; i < odataObject.paymentInstrumentList.length; i++) {\r\n if (odataObject.paymentInstrumentList[i]) {\r\n if (odataObject.paymentInstrumentList[i]['@odata.type']) {\r\n let className: string = odataObject.paymentInstrumentList[i]['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.paymentInstrumentList[i] = new EntityClasses[className](odataObject.paymentInstrumentList[i]);\r\n }\r\n } else {\r\n this.paymentInstrumentList[i] = new PaymentInstrumentListExtensionClass(odataObject.paymentInstrumentList[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.paymentInstrumentList[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.productList = undefined;\r\n if (odataObject.productList) {\r\n this.productList = [];\r\n for (let i = 0; i < odataObject.productList.length; i++) {\r\n if (odataObject.productList[i]) {\r\n if (odataObject.productList[i]['@odata.type']) {\r\n let className: string = odataObject.productList[i]['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.productList[i] = new EntityClasses[className](odataObject.productList[i]);\r\n }\r\n } else {\r\n this.productList[i] = new ProductListExtensionClass(odataObject.productList[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.productList[i] = undefined;\r\n }\r\n }\r\n }\r\n\r\n if (odataObject.shippingAddress === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.shippingAddress = undefined;\r\n } else if (odataObject.shippingAddress['@odata.type'] === null) {\r\n this.shippingAddress = new ShippingAddressExtensionClass(odataObject.shippingAddress);\r\n } else {\r\n let className: string = odataObject.shippingAddress['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.shippingAddress = new EntityClasses[className](odataObject.shippingAddress);\r\n }\r\n }\r\n\r\n if (odataObject.store === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.store = undefined;\r\n } else if (odataObject.store['@odata.type'] === null) {\r\n this.store = new StoreExtensionClass(odataObject.store);\r\n } else {\r\n let className: string = odataObject.store['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.store = new EntityClasses[className](odataObject.store);\r\n }\r\n }\r\n\r\n if (odataObject._metadata === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this._metadata = undefined;\r\n } else if (odataObject._metadata['@odata.type'] === null) {\r\n this._metadata = new _MetadataExtensionClass(odataObject._metadata);\r\n } else {\r\n let className: string = odataObject._metadata['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this._metadata = new EntityClasses[className](odataObject._metadata);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Diagnostics entity class.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\r\nexport class DiagnosticsExtensionClass implements IDiagnostics {\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 }\r\n}\r\n\r\n/**\r\n * Merchantruleoutput entity class.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\r\nexport class MerchantruleoutputExtensionClass implements IMerchantruleoutput {\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 }\r\n}\r\n\r\n/**\r\n * Deviceattributes entity class.\r\n */\r\n// eslint-disable-next-line @typescript-eslint/no-extraneous-class\r\nexport class DeviceattributesExtensionClass implements IDeviceattributes {\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 }\r\n}\r\n\r\n/**\r\n * ResultDetails entity class.\r\n */\r\nexport class ResultDetailsExtensionClass implements IResultDetails {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public RiskScore: 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 ReasonCodes: 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 MerchantRuleDecision: 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 PolicyApplied: 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 ClauseName: 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 Diagnostics: IDiagnostics;\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 MerchantRuleOutput: IMerchantruleoutput;\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 MerchantRuleReason: 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 DeviceAttributes: IDeviceattributes;\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 PurchaseId: 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.RiskScore = odataObject.RiskScore;\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.ReasonCodes = odataObject.ReasonCodes;\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.MerchantRuleDecision = odataObject.MerchantRuleDecision;\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.PolicyApplied = odataObject.PolicyApplied;\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.ClauseName = odataObject.ClauseName;\r\n\r\n if (odataObject.Diagnostics === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Diagnostics = undefined;\r\n } else if (odataObject.Diagnostics['@odata.type'] === null) {\r\n this.Diagnostics = new DiagnosticsExtensionClass(odataObject.Diagnostics);\r\n } else {\r\n let className: string = odataObject.Diagnostics['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.Diagnostics = new EntityClasses[className](odataObject.Diagnostics);\r\n }\r\n }\r\n\r\n if (odataObject.MerchantRuleOutput === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MerchantRuleOutput = undefined;\r\n } else if (odataObject.MerchantRuleOutput['@odata.type'] === null) {\r\n this.MerchantRuleOutput = new MerchantruleoutputExtensionClass(odataObject.MerchantRuleOutput);\r\n } else {\r\n let className: string = odataObject.MerchantRuleOutput['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.MerchantRuleOutput = new EntityClasses[className](odataObject.MerchantRuleOutput);\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.MerchantRuleReason = odataObject.MerchantRuleReason;\r\n\r\n if (odataObject.DeviceAttributes === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeviceAttributes = undefined;\r\n } else if (odataObject.DeviceAttributes['@odata.type'] === null) {\r\n this.DeviceAttributes = new DeviceattributesExtensionClass(odataObject.DeviceAttributes);\r\n } else {\r\n let className: string = odataObject.DeviceAttributes['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.DeviceAttributes = new EntityClasses[className](odataObject.DeviceAttributes);\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.PurchaseId = odataObject.PurchaseId;\r\n }\r\n}\r\n\r\n/**\r\n * FraudProtectionResponse entity class.\r\n */\r\nexport class FraudProtectionResponseExtensionClass implements IFraudProtectionResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public resultDetails: IResultDetails;\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.resultDetails === null) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.resultDetails = undefined;\r\n } else if (\r\n odataObject &&\r\n odataObject.resultDetails &&\r\n (odataObject.resultDetails['@odata.type'] === undefined || odataObject.resultDetails['@odata.type'] === null)\r\n ) {\r\n this.resultDetails = new ResultDetailsExtensionClass(odataObject.resultDetails);\r\n } else {\r\n let className: string = odataObject && odataObject.resultDetails && odataObject.resultDetails['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.resultDetails = new EntityClasses[className](odataObject.resultDetails);\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * RecaptchaVerificationResponse entity class.\r\n */\r\nexport class RecaptchaVerificationResponseExtensionClass implements IRecaptchaVerificationResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Status: 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.Status = odataObject.Status;\r\n }\r\n}\r\n\r\n/**\r\n * ProductTransportationCode entity class.\r\n */\r\nexport class ProductTransportationCodeExtensionClass implements IProductTransportationCode {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public HarmonizedCode: 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 NmfcCode: 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 StccCode: 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 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 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.HarmonizedCode = odataObject.HarmonizedCode;\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.NmfcCode = odataObject.NmfcCode;\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.StccCode = odataObject.StccCode;\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.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.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (let i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n let className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className && className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\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 * ItemData entity class.\r\n */\r\nexport class ItemDataExtensionClass implements IItemData {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public GrossHeight: 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 GrossWidth: 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 GrossDepth: 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 NetWeight: 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 GrossWeight: 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 ItemId: 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.GrossHeight = odataObject.GrossHeight ? parseFloat(odataObject.GrossHeight) : 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.GrossWidth = odataObject.GrossWidth ? parseFloat(odataObject.GrossWidth) : 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.GrossDepth = odataObject.GrossDepth ? parseFloat(odataObject.GrossDepth) : 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.NetWeight = odataObject.NetWeight ? parseFloat(odataObject.NetWeight) : 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.GrossWeight = odataObject.GrossWeight ? parseFloat(odataObject.GrossWeight) : 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.ItemId = odataObject.ItemId;\r\n }\r\n}\r\n\r\n/**\r\n * UpdateSalesOrderApprovalStatusResponse entity class.\r\n */\r\nexport class UpdateSalesOrderApprovalStatusResponseExtensionClass implements IUpdateSalesOrderApprovalStatusResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Status: 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 Message: 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.Status = odataObject.Status;\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.Message = odataObject.Message;\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 fraudProtectionRiskScoreQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function fraudProtectionRiskScoreInput(request: DataServiceEntities.IFraudProtectionRequest): IDataServiceRequest {\r\n const query = fraudProtectionRiskScoreQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'FraudProtectionRiskScore',\r\n true,\r\n DataServiceEntities.FraudProtectionResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IFraudProtectionResponse' },\r\n {\r\n request: request\r\n }\r\n );\r\n}\r\n\r\nexport function fraudProtectionRiskScoreAsync(\r\n context: IContext,\r\n request: DataServiceEntities.IFraudProtectionRequest\r\n): AsyncResult {\r\n const dataServiceRequest = fraudProtectionRiskScoreInput(request);\r\n return callActionOrExecute(dataServiceRequest, context.callerContext);\r\n}\r\n\r\nfunction getItemDimensionsQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getItemDimensionsInput(queryResultSettings: IQueryResultSettings, itemIds: string[]): IDataServiceRequest {\r\n const query = getItemDimensionsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetItemDimensions',\r\n true,\r\n DataServiceEntities.ItemDataExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IItemData' },\r\n {\r\n itemIds: itemIds\r\n }\r\n );\r\n}\r\n\r\nexport function getItemDimensionsAsync(context: IContext, itemIds: string[]): AsyncResult {\r\n const request = getItemDimensionsInput(context.queryResultSettings || {}, itemIds);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getItemTransportationCodesQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getItemTransportationCodesInput(queryResultSettings: IQueryResultSettings, productIds: number[]): IDataServiceRequest {\r\n const query = getItemTransportationCodesQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetItemTransportationCodes',\r\n true,\r\n DataServiceEntities.ProductTransportationCodeExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IProductTransportationCode' },\r\n {\r\n productIds: productIds\r\n }\r\n );\r\n}\r\n\r\nexport function getItemTransportationCodesAsync(\r\n context: IContext,\r\n productIds: number[]\r\n): AsyncResult {\r\n const request = getItemTransportationCodesInput(context.queryResultSettings || {}, productIds);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction recaptchaVerificationQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function recaptchaVerificationInput(response: string, remoteIp: string): IDataServiceRequest {\r\n const query = recaptchaVerificationQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'RecaptchaVerification',\r\n true,\r\n DataServiceEntities.RecaptchaVerificationResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IRecaptchaVerificationResponse' },\r\n {\r\n response: response,\r\n remoteIp: remoteIp\r\n }\r\n );\r\n}\r\n\r\nexport function recaptchaVerificationAsync(\r\n context: IContext,\r\n response: string,\r\n remoteIp: string\r\n): AsyncResult {\r\n const request = recaptchaVerificationInput(response, remoteIp);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction nSS_UpdateSalesOrderApprovalStatusQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function nSS_UpdateSalesOrderApprovalStatusInput(\r\n salesOrderId: string,\r\n approvalStatus: string,\r\n rejectComments: string\r\n): IDataServiceRequest {\r\n const query = nSS_UpdateSalesOrderApprovalStatusQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'NSS_UpdateSalesOrderApprovalStatus',\r\n true,\r\n DataServiceEntities.UpdateSalesOrderApprovalStatusResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IUpdateSalesOrderApprovalStatusResponse' },\r\n {\r\n salesOrderId: salesOrderId,\r\n approvalStatus: approvalStatus,\r\n rejectComments: rejectComments\r\n }\r\n );\r\n}\r\n\r\nexport function nSS_UpdateSalesOrderApprovalStatusAsync(\r\n context: IContext,\r\n salesOrderId: string,\r\n approvalStatus: string,\r\n rejectComments: string\r\n): AsyncResult {\r\n const request = nSS_UpdateSalesOrderApprovalStatusInput(salesOrderId, approvalStatus, rejectComments);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction cCHLogsQuery(replicationCounter?: number): DataServiceQuery {\r\n const key = replicationCounter ? { ReplicationCounter: replicationCounter } : null;\r\n return new DataServiceQuery('CCHLogs', 'CCHLog', DataServiceEntities.CCHLogExtensionClass, key);\r\n}\r\n\r\nexport function createGetCCHLogsInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = cCHLogsQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetCCHLogs',\r\n true,\r\n DataServiceEntities.CCHLogExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.ICCHLog' },\r\n {}\r\n );\r\n}\r\n\r\nexport function getCCHLogsAsync(context: IContext): AsyncResult {\r\n const request = createGetCCHLogsInput(context.queryResultSettings || {});\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n"],"names":["DiagnosticsExtensionClass","constructor","odataObject","MerchantruleoutputExtensionClass","DeviceattributesExtensionClass","ResultDetailsExtensionClass","this","RiskScore","ReasonCodes","MerchantRuleDecision","PolicyApplied","ClauseName","Diagnostics","undefined","className","substr","lastIndexOf","concat","EntityClasses","MerchantRuleOutput","MerchantRuleReason","DeviceAttributes","PurchaseId","FraudProtectionResponseExtensionClass","resultDetails","RecaptchaVerificationResponseExtensionClass","Status","UpdateSalesOrderApprovalStatusResponseExtensionClass","Message","fraudProtectionRiskScoreInput","request","DataServiceQuery","createDataServiceRequestForOperation","DataServiceEntities","bypassCache","returnEntity","fraudProtectionRiskScoreAsync","context","dataServiceRequest","callActionOrExecute","callerContext","recaptchaVerificationInput","response","remoteIp","recaptchaVerificationAsync","nSS_UpdateSalesOrderApprovalStatusInput","salesOrderId","approvalStatus","rejectComments","nSS_UpdateSalesOrderApprovalStatusAsync"],"sourceRoot":""}