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AMW,EAAU6C,EAAuB9C,EAAQ+C,qBAAuB,GAAIzD,GAC1E,OAAOY,EAAAA,EAAAA,qBAAyED,EAASD,EAAQG,eAS/F,SAAUiD,EAAkCL,GAE9C,OAPJ,SAA8BM,GAC1B,MAAMvB,EAAMuB,EAAQ,CAAEjG,MAAOiG,GAAU,KACvC,OAAO,IAAI3D,EAAAA,iBAAiB,kBAAmB,wBAAyBE,EAAyDkC,GAInHwB,GAAuBJ,eAAeH,GACvCpD,qCACT,0BACA,EACAC,EACA,OACA,CAAEC,YAAa,OAAQC,aAAc,8CACrC,IAIF,SAAUyD,EAA4BvD,GACxC,MAAMC,EAAUmD,EAAkCpD,EAAQ+C,qBAAuB,IACjF,OAAO7C,EAAAA,EAAAA,qBAAkED,EAASD,EAAQG","sources":["webpack://Msdyn365.Commerce.Online/./src/custom-actions/DataServiceEntities.g.ts?f9fe","webpack://Msdyn365.Commerce.Online/./src/custom-actions/DataActionExtension.g.ts?3b61"],"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 * TaxFormPreFilledFieldsEntity entity interface.\r\n */\r\nexport interface ITaxFormPreFilledFieldsEntity {\r\n PhoneNumber?: string;\r\n AddressPurchaser?: string;\r\n CityPurchaser?: string;\r\n StatePurchaser?: string;\r\n ZipCodePurchaser?: string;\r\n FullName?: string;\r\n StyleOfBusiness?: string;\r\n NameOfPurchaser?: string;\r\n Email: string;\r\n TaxId?: string;\r\n Title?: string;\r\n Seller?: string;\r\n AddressSeller?: string;\r\n CitySeller?: string;\r\n StateSeller?: string;\r\n ZipCodeSeller?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * PreferredStoreEntity entity interface.\r\n */\r\nexport interface IPreferredStoreEntity {\r\n CustomerAccountNumber: string;\r\n StoreId?: string;\r\n StoreName?: string;\r\n Latitude: number;\r\n Longitude: number;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * PurchaseHistoryProductEntity entity interface.\r\n */\r\nexport interface IPurchaseHistoryProductEntity {\r\n RecID: number;\r\n ProductRecID: number;\r\n ItemID?: string;\r\n ProductID?: string;\r\n InvoiceDate: Date;\r\n SalesID?: string;\r\n ProductName?: string;\r\n Price: number;\r\n Quantity: number;\r\n CWQuantity: number;\r\n UnitID?: string;\r\n InvoiceID?: string;\r\n CustInvTransRecID: number;\r\n CustomerAccount?: string;\r\n CustJourInvoiceID?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * StyleOfBusinessEntity entity interface.\r\n */\r\nexport interface IStyleOfBusinessEntity {\r\n RECID: number;\r\n StyleOfBusinessName?: string;\r\n StyleOfBusinessClaim?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * GetAzureBlobStorageSASTokenResponse entity interface.\r\n */\r\nexport interface IGetAzureBlobStorageSASTokenResponse {\r\n SASToken?: string;\r\n StorageURL?: string;\r\n ContainerName?: string;\r\n FolderName?: string;\r\n StorageAccountName?: string;\r\n}\r\n\r\n/**\r\n * RefreshWebFormInstanceTokenResponse entity interface.\r\n */\r\nexport interface IRefreshWebFormInstanceTokenResponse {\r\n InstanceID?: string;\r\n FormURL?: string;\r\n FormInstanceToken?: string;\r\n TokenExpiry?: Date;\r\n IntegrationKey?: string;\r\n}\r\n\r\n/**\r\n * CreateWebFormInstanceTokenResponse entity interface.\r\n */\r\nexport interface ICreateWebFormInstanceTokenResponse {\r\n InstanceID?: string;\r\n FormURL?: string;\r\n FormInstanceToken?: string;\r\n TokenExpiry?: Date;\r\n Status?: string;\r\n IntegrationKey?: string;\r\n WebFormID?: string;\r\n}\r\n\r\n/**\r\n * ValidateOrganizationResponse entity interface.\r\n */\r\nexport interface IValidateOrganizationResponse {\r\n ValidationResult: boolean;\r\n OrganizationName?: string;\r\n IsAccountFound: boolean;\r\n AccountValidation: boolean;\r\n EmailAlreadyExists: boolean;\r\n}\r\n\r\n/**\r\n * ExistingCustomerUserCreationResponse entity interface.\r\n */\r\nexport interface IExistingCustomerUserCreationResponse {\r\n Success: boolean;\r\n}\r\n\r\n/**\r\n * GetOrgTypeCustomerResponse entity interface.\r\n */\r\nexport interface IGetOrgTypeCustomerResponse {\r\n CustomerAccountNum?: string;\r\n CustomerOrganization?: string;\r\n CustomerAttributes?: Entities.CustomerAttribute[];\r\n}\r\n\r\n/**\r\n * AddPreferredStoreResponse entity interface.\r\n */\r\nexport interface IAddPreferredStoreResponse {\r\n Success?: boolean;\r\n}\r\n\r\n/**\r\n * CustBlobFileNameAttachmentResponse entity interface.\r\n */\r\nexport interface ICustBlobFileNameAttachmentResponse {\r\n CustAccountNum?: string;\r\n}\r\n\r\n/**\r\n * CustDocusignAttachmentResponse entity interface.\r\n */\r\nexport interface ICustDocusignAttachmentResponse {\r\n CustAccountNum?: string;\r\n}\r\n\r\n/**\r\n * TaxExemptionCheckResponse entity interface.\r\n */\r\nexport interface ITaxExemptionCheckResponse {\r\n ApplicableForTaxExemption?: boolean;\r\n DocuSignWebFormFound?: boolean;\r\n}\r\n\r\n/**\r\n * GetUOMDefinitionResponse entity interface.\r\n */\r\nexport interface IGetUOMDefinitionResponse {\r\n Factor?: number;\r\n ConversionDefinition?: string;\r\n}\r\n\r\n/**\r\n * TaxFormPreFilledFieldsEntity entity class.\r\n */\r\nexport class TaxFormPreFilledFieldsEntityExtensionClass implements ITaxFormPreFilledFieldsEntity {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PhoneNumber: 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 AddressPurchaser: 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 CityPurchaser: 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 StatePurchaser: 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 ZipCodePurchaser: 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 FullName: 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 StyleOfBusiness: 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 NameOfPurchaser: 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 Email: 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 TaxId: 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 Title: 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 Seller: 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 AddressSeller: 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 CitySeller: 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 StateSeller: 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 ZipCodeSeller: 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.PhoneNumber = odataObject.PhoneNumber;\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.AddressPurchaser = odataObject.AddressPurchaser;\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.CityPurchaser = odataObject.CityPurchaser;\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.StatePurchaser = odataObject.StatePurchaser;\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.ZipCodePurchaser = odataObject.ZipCodePurchaser;\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.FullName = odataObject.FullName;\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.StyleOfBusiness = odataObject.StyleOfBusiness;\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.NameOfPurchaser = odataObject.NameOfPurchaser;\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.Email = odataObject.Email;\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.TaxId = odataObject.TaxId;\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.Title = odataObject.Title;\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.Seller = odataObject.Seller;\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.AddressSeller = odataObject.AddressSeller;\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.CitySeller = odataObject.CitySeller;\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.StateSeller = odataObject.StateSeller;\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.ZipCodeSeller = odataObject.ZipCodeSeller;\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 // @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 * PreferredStoreEntity entity class.\r\n */\r\nexport class PreferredStoreEntityExtensionClass implements IPreferredStoreEntity {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerAccountNumber: 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 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 Latitude: 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 Longitude: 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.CustomerAccountNumber = odataObject.CustomerAccountNumber;\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.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 // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Latitude = odataObject.Latitude ? parseInt(odataObject.Latitude, 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.Longitude = odataObject.Longitude ? parseInt(odataObject.Longitude, 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 // @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 * PurchaseHistoryProductEntity entity class.\r\n */\r\nexport class PurchaseHistoryProductEntityExtensionClass implements IPurchaseHistoryProductEntity {\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 ProductRecID: 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 // @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 InvoiceDate: 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 SalesID: 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 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 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 CWQuantity: 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 UnitID: 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 InvoiceID: 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 CustInvTransRecID: 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 CustomerAccount: 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 CustJourInvoiceID: 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.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.ProductRecID = odataObject.ProductRecID ? parseInt(odataObject.ProductRecID, 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.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.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.InvoiceDate =\r\n odataObject.InvoiceDate instanceof Date\r\n ? odataObject.InvoiceDate\r\n : odataObject.InvoiceDate\r\n ? jsonLightReadStringPropertyValue(odataObject.InvoiceDate, '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.SalesID = odataObject.SalesID;\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.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.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.CWQuantity = odataObject.CWQuantity ? parseFloat(odataObject.CWQuantity) : 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.UnitID = odataObject.UnitID;\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.InvoiceID = odataObject.InvoiceID;\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.CustInvTransRecID = odataObject.CustInvTransRecID ? parseInt(odataObject.CustInvTransRecID, 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.CustomerAccount = odataObject.CustomerAccount;\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.CustJourInvoiceID = odataObject.CustJourInvoiceID;\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 // @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 * StyleOfBusinessEntity entity class.\r\n */\r\nexport class StyleOfBusinessEntityExtensionClass implements IStyleOfBusinessEntity {\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 StyleOfBusinessName: 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 StyleOfBusinessClaim: 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.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.StyleOfBusinessName = odataObject.StyleOfBusinessName;\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.StyleOfBusinessClaim = odataObject.StyleOfBusinessClaim;\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 // @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 * GetAzureBlobStorageSASTokenResponse entity class.\r\n */\r\nexport class GetAzureBlobStorageSASTokenResponseExtensionClass implements IGetAzureBlobStorageSASTokenResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public SASToken: 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 StorageURL: 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 ContainerName: 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 FolderName: 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 StorageAccountName: 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.SASToken = odataObject.SASToken;\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.StorageURL = odataObject.StorageURL;\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.ContainerName = odataObject.ContainerName;\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.FolderName = odataObject.FolderName;\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.StorageAccountName = odataObject.StorageAccountName;\r\n }\r\n}\r\n\r\n/**\r\n * RefreshWebFormInstanceTokenResponse entity class.\r\n */\r\nexport class RefreshWebFormInstanceTokenResponseExtensionClass implements IRefreshWebFormInstanceTokenResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InstanceID: 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 FormURL: 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 FormInstanceToken: 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 TokenExpiry: 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 IntegrationKey: 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.InstanceID = odataObject.InstanceID;\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.FormURL = odataObject.FormURL;\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.FormInstanceToken = odataObject.FormInstanceToken;\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.TokenExpiry =\r\n odataObject.TokenExpiry instanceof Date\r\n ? odataObject.TokenExpiry\r\n : odataObject.TokenExpiry\r\n ? jsonLightReadStringPropertyValue(odataObject.TokenExpiry, '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.IntegrationKey = odataObject.IntegrationKey;\r\n }\r\n}\r\n\r\n/**\r\n * CreateWebFormInstanceTokenResponse entity class.\r\n */\r\nexport class CreateWebFormInstanceTokenResponseExtensionClass implements ICreateWebFormInstanceTokenResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public InstanceID: 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 FormURL: 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 FormInstanceToken: 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 TokenExpiry: 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 Status: 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 IntegrationKey: 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 WebFormID: 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.InstanceID = odataObject.InstanceID;\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.FormURL = odataObject.FormURL;\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.FormInstanceToken = odataObject.FormInstanceToken;\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.TokenExpiry =\r\n odataObject.TokenExpiry instanceof Date\r\n ? odataObject.TokenExpiry\r\n : odataObject.TokenExpiry\r\n ? jsonLightReadStringPropertyValue(odataObject.TokenExpiry, '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.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.IntegrationKey = odataObject.IntegrationKey;\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.WebFormID = odataObject.WebFormID;\r\n }\r\n}\r\n\r\n/**\r\n * ValidateOrganizationResponse entity class.\r\n */\r\nexport class ValidateOrganizationResponseExtensionClass implements IValidateOrganizationResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ValidationResult: 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 OrganizationName: 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 IsAccountFound: 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 AccountValidation: 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 EmailAlreadyExists: 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.ValidationResult = odataObject.ValidationResult;\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.OrganizationName = odataObject.OrganizationName;\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.IsAccountFound = odataObject.IsAccountFound;\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.AccountValidation = odataObject.AccountValidation;\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.EmailAlreadyExists = odataObject.EmailAlreadyExists;\r\n }\r\n}\r\n\r\n/**\r\n * ExistingCustomerUserCreationResponse entity class.\r\n */\r\nexport class ExistingCustomerUserCreationResponseExtensionClass implements IExistingCustomerUserCreationResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: 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.Success = odataObject.Success;\r\n }\r\n}\r\n\r\n/**\r\n * GetOrgTypeCustomerResponse entity class.\r\n */\r\nexport class GetOrgTypeCustomerResponseExtensionClass implements IGetOrgTypeCustomerResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustomerAccountNum: 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 CustomerOrganization: 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 CustomerAttributes: Entities.CustomerAttribute[];\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.CustomerAccountNum = odataObject.CustomerAccountNum;\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.CustomerOrganization = odataObject.CustomerOrganization;\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.CustomerAttributes = undefined;\r\n if (odataObject.CustomerAttributes) {\r\n this.CustomerAttributes = [];\r\n for (var i = 0; i < odataObject.CustomerAttributes.length; i++) {\r\n if (odataObject.CustomerAttributes[i]) {\r\n if (odataObject.CustomerAttributes[i]['@odata.type']) {\r\n var className: string = odataObject.CustomerAttributes[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n // @ts-ignore\r\n if (EntityClasses[className]) {\r\n // @ts-ignore\r\n this.CustomerAttributes[i] = new EntityClasses[className](odataObject.CustomerAttributes[i]);\r\n }\r\n } else {\r\n this.CustomerAttributes[i] = new EntityClasses.CustomerAttributeClass(odataObject.CustomerAttributes[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.CustomerAttributes[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * AddPreferredStoreResponse entity class.\r\n */\r\nexport class AddPreferredStoreResponseExtensionClass implements IAddPreferredStoreResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Success: 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.Success = odataObject.Success;\r\n }\r\n}\r\n\r\n/**\r\n * CustBlobFileNameAttachmentResponse entity class.\r\n */\r\nexport class CustBlobFileNameAttachmentResponseExtensionClass implements ICustBlobFileNameAttachmentResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustAccountNum: 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.CustAccountNum = odataObject.CustAccountNum;\r\n }\r\n}\r\n\r\n/**\r\n * CustDocusignAttachmentResponse entity class.\r\n */\r\nexport class CustDocusignAttachmentResponseExtensionClass implements ICustDocusignAttachmentResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public CustAccountNum: 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.CustAccountNum = odataObject.CustAccountNum;\r\n }\r\n}\r\n\r\n/**\r\n * TaxExemptionCheckResponse entity class.\r\n */\r\nexport class TaxExemptionCheckResponseExtensionClass implements ITaxExemptionCheckResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ApplicableForTaxExemption: 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 DocuSignWebFormFound: 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.ApplicableForTaxExemption = odataObject.ApplicableForTaxExemption;\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.DocuSignWebFormFound = odataObject.DocuSignWebFormFound;\r\n }\r\n}\r\n\r\n/**\r\n * GetUOMDefinitionResponse entity class.\r\n */\r\nexport class GetUOMDefinitionResponseExtensionClass implements IGetUOMDefinitionResponse {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Factor: 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 ConversionDefinition: 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.Factor = odataObject.Factor ? parseFloat(odataObject.Factor) : 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.ConversionDefinition = odataObject.ConversionDefinition;\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 getAzureBlobStorageSASTokenQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getAzureBlobStorageSASTokenInput(): IDataServiceRequest {\r\n const query = getAzureBlobStorageSASTokenQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetAzureBlobStorageSASToken',\r\n false,\r\n DataServiceEntities.GetAzureBlobStorageSASTokenResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IGetAzureBlobStorageSASTokenResponse' },\r\n {}\r\n );\r\n}\r\n\r\nexport function getAzureBlobStorageSASTokenAsync(context: IContext): AsyncResult {\r\n const request = getAzureBlobStorageSASTokenInput();\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction validateOrganizationQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function validateOrganizationInput(accountNum: string, email: string, zipCode: string, street: string): IDataServiceRequest {\r\n const query = validateOrganizationQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'ValidateOrganization',\r\n true,\r\n DataServiceEntities.ValidateOrganizationResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IValidateOrganizationResponse' },\r\n {\r\n accountNum: accountNum,\r\n email: email,\r\n zipCode: zipCode,\r\n street: street\r\n }\r\n );\r\n}\r\n\r\nexport function validateOrganizationAsync(\r\n context: IContext,\r\n accountNum: string,\r\n email: string,\r\n zipCode: string,\r\n street: string\r\n): AsyncResult {\r\n const request = validateOrganizationInput(accountNum, email, zipCode, street);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction createExistingCustomerUserQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function createExistingCustomerUserInput(\r\n accountNum: string,\r\n firstName: string,\r\n lastName: string,\r\n businessEmailAddress: string,\r\n marketingOptInPhone: boolean,\r\n marketingOptInEmail: boolean\r\n): IDataServiceRequest {\r\n const query = createExistingCustomerUserQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'CreateExistingCustomerUser',\r\n true,\r\n DataServiceEntities.ExistingCustomerUserCreationResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IExistingCustomerUserCreationResponse' },\r\n {\r\n accountNum: accountNum,\r\n firstName: firstName,\r\n lastName: lastName,\r\n businessEmailAddress: businessEmailAddress,\r\n marketingOptInPhone: marketingOptInPhone,\r\n marketingOptInEmail: marketingOptInEmail\r\n }\r\n );\r\n}\r\n\r\nexport function createExistingCustomerUserAsync(\r\n context: IContext,\r\n accountNum: string,\r\n firstName: string,\r\n lastName: string,\r\n businessEmailAddress: string,\r\n marketingOptInPhone: boolean,\r\n marketingOptInEmail: boolean\r\n): AsyncResult {\r\n const request = createExistingCustomerUserInput(\r\n accountNum,\r\n firstName,\r\n lastName,\r\n businessEmailAddress,\r\n marketingOptInPhone,\r\n marketingOptInEmail\r\n );\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getOrgTypeCustomerQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getOrgTypeCustomerInput(businessPartnerID: string): IDataServiceRequest {\r\n const query = getOrgTypeCustomerQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetOrgTypeCustomer',\r\n true,\r\n DataServiceEntities.GetOrgTypeCustomerResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IGetOrgTypeCustomerResponse' },\r\n {\r\n businessPartnerID: businessPartnerID\r\n }\r\n );\r\n}\r\n\r\nexport function getOrgTypeCustomerAsync(\r\n context: IContext,\r\n businessPartnerID: string\r\n): AsyncResult {\r\n const request = getOrgTypeCustomerInput(businessPartnerID);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction custBlobFileNameAttachmentQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function custBlobFileNameAttachmentInput(accountNum: string, taxStatus: string, blobFileName: string): IDataServiceRequest {\r\n const query = custBlobFileNameAttachmentQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'CustBlobFileNameAttachment',\r\n true,\r\n DataServiceEntities.CustBlobFileNameAttachmentResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ICustBlobFileNameAttachmentResponse' },\r\n {\r\n accountNum: accountNum,\r\n taxStatus: taxStatus,\r\n blobFileName: blobFileName\r\n }\r\n );\r\n}\r\n\r\nexport function custBlobFileNameAttachmentAsync(\r\n context: IContext,\r\n accountNum: string,\r\n taxStatus: string,\r\n blobFileName: string\r\n): AsyncResult {\r\n const request = custBlobFileNameAttachmentInput(accountNum, taxStatus, blobFileName);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction custDocusignAttachmentQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function custDocusignAttachmentInput(\r\n accountNum: string,\r\n taxStatus: string,\r\n webFormID: string,\r\n webFormInstanceID: string\r\n): IDataServiceRequest {\r\n const query = custDocusignAttachmentQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'CustDocusignAttachment',\r\n true,\r\n DataServiceEntities.CustDocusignAttachmentResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ICustDocusignAttachmentResponse' },\r\n {\r\n accountNum: accountNum,\r\n taxStatus: taxStatus,\r\n webFormID: webFormID,\r\n webFormInstanceID: webFormInstanceID\r\n }\r\n );\r\n}\r\n\r\nexport function custDocusignAttachmentAsync(\r\n context: IContext,\r\n accountNum: string,\r\n taxStatus: string,\r\n webFormID: string,\r\n webFormInstanceID: string\r\n): AsyncResult {\r\n const request = custDocusignAttachmentInput(accountNum, taxStatus, webFormID, webFormInstanceID);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction taxExemptionCheckQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function taxExemptionCheckInput(state: string, styleOfBusiness: string): IDataServiceRequest {\r\n const query = taxExemptionCheckQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'TaxExemptionCheck',\r\n true,\r\n DataServiceEntities.TaxExemptionCheckResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ITaxExemptionCheckResponse' },\r\n {\r\n state: state,\r\n styleOfBusiness: styleOfBusiness\r\n }\r\n );\r\n}\r\n\r\nexport function taxExemptionCheckAsync(\r\n context: IContext,\r\n state: string,\r\n styleOfBusiness: string\r\n): AsyncResult {\r\n const request = taxExemptionCheckInput(state, styleOfBusiness);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nfunction getUOMDefinitionQuery(): DataServiceQuery {\r\n return new DataServiceQuery();\r\n}\r\n\r\nexport function getUOMDefinitionInput(itemID: string, productRECID: number, fromUnit: string, toUnit: string): IDataServiceRequest {\r\n const query = getUOMDefinitionQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetUOMDefinition',\r\n true,\r\n DataServiceEntities.GetUOMDefinitionResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IGetUOMDefinitionResponse' },\r\n {\r\n itemID: itemID,\r\n productRECID: productRECID,\r\n fromUnit: fromUnit,\r\n toUnit: toUnit\r\n }\r\n );\r\n}\r\n\r\nexport function getUOMDefinitionAsync(\r\n context: IContext,\r\n itemID: string,\r\n productRECID: number,\r\n fromUnit: string,\r\n toUnit: string\r\n): AsyncResult {\r\n const request = getUOMDefinitionInput(itemID, productRECID, fromUnit, toUnit);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction docuSignQuery(email?: string): DataServiceQuery {\r\n const key = email ? { Email: email } : null;\r\n return new DataServiceQuery(\r\n 'DocuSign',\r\n 'TaxFormPreFilledFieldsEntity',\r\n DataServiceEntities.TaxFormPreFilledFieldsEntityExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createRefreshWebFormInstanceTokenInput(formID: string, formInstanceID: string): IDataServiceRequest {\r\n const query = docuSignQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'RefreshWebFormInstanceToken',\r\n true,\r\n DataServiceEntities.RefreshWebFormInstanceTokenResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IRefreshWebFormInstanceTokenResponse' },\r\n { formID: formID, formInstanceID: formInstanceID }\r\n );\r\n}\r\n\r\nexport function refreshWebFormInstanceTokenAsync(\r\n context: IContext,\r\n formID: string,\r\n formInstanceID: string\r\n): AsyncResult {\r\n const request = createRefreshWebFormInstanceTokenInput(formID, formInstanceID);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createCreateWebFormInstanceTokenInput(\r\n preFilledFields: DataServiceEntities.ITaxFormPreFilledFieldsEntity\r\n): IDataServiceRequest {\r\n const query = docuSignQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'CreateWebFormInstanceToken',\r\n true,\r\n DataServiceEntities.CreateWebFormInstanceTokenResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ICreateWebFormInstanceTokenResponse' },\r\n { preFilledFields: preFilledFields }\r\n );\r\n}\r\n\r\nexport function createWebFormInstanceTokenAsync(\r\n context: IContext,\r\n preFilledFields: DataServiceEntities.ITaxFormPreFilledFieldsEntity\r\n): AsyncResult {\r\n const request = createCreateWebFormInstanceTokenInput(preFilledFields);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction storeSelectionQuery(customerAccountNumber?: string): DataServiceQuery {\r\n const key = customerAccountNumber ? { CustomerAccountNumber: customerAccountNumber } : null;\r\n return new DataServiceQuery('StoreSelection', 'PreferredStoreEntity', DataServiceEntities.PreferredStoreEntityExtensionClass, key);\r\n}\r\n\r\nexport function createGetPreferredStoreInput(custAccNumber: string): IDataServiceRequest {\r\n const query = storeSelectionQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'GetPreferredStore',\r\n true,\r\n DataServiceEntities.PreferredStoreEntityExtensionClass,\r\n 'false',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IPreferredStoreEntity' },\r\n { custAccNumber: custAccNumber }\r\n );\r\n}\r\n\r\nexport function getPreferredStoreAsync(context: IContext, custAccNumber: string): AsyncResult {\r\n const request = createGetPreferredStoreInput(custAccNumber);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createAddPreferredStoreInput(preferredStore: DataServiceEntities.IPreferredStoreEntity): IDataServiceRequest {\r\n const query = storeSelectionQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'AddPreferredStore',\r\n true,\r\n DataServiceEntities.AddPreferredStoreResponseExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.IAddPreferredStoreResponse' },\r\n { preferredStore: preferredStore }\r\n );\r\n}\r\n\r\nexport function addPreferredStoreAsync(\r\n context: IContext,\r\n preferredStore: DataServiceEntities.IPreferredStoreEntity\r\n): AsyncResult {\r\n const request = createAddPreferredStoreInput(preferredStore);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction purchaseHistoryQuery(recID?: number): DataServiceQuery {\r\n const key = recID ? { RecID: recID } : null;\r\n return new DataServiceQuery(\r\n 'PurchaseHistory',\r\n 'PurchaseHistoryProductEntity',\r\n DataServiceEntities.PurchaseHistoryProductEntityExtensionClass,\r\n key\r\n );\r\n}\r\n\r\nexport function createGetProductsInput(queryResultSettings: IQueryResultSettings, accountNum: string): IDataServiceRequest {\r\n const query = purchaseHistoryQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetProducts',\r\n true,\r\n DataServiceEntities.PurchaseHistoryProductEntityExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IPurchaseHistoryProductEntity' },\r\n { accountNum: accountNum }\r\n );\r\n}\r\n\r\nexport function getProductsAsync(context: IContext, accountNum: string): AsyncResult {\r\n const request = createGetProductsInput(context.queryResultSettings || {}, accountNum);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction styleOfBusinessQuery(rECID?: number): DataServiceQuery {\r\n const key = rECID ? { RECID: rECID } : null;\r\n return new DataServiceQuery('StyleOfBusiness', 'StyleOfBusinessEntity', DataServiceEntities.StyleOfBusinessEntityExtensionClass, key);\r\n}\r\n\r\nexport function createGetAllStylesOfBusinessInput(queryResultSettings: IQueryResultSettings): IDataServiceRequest {\r\n const query = styleOfBusinessQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'GetAllStylesOfBusiness',\r\n false,\r\n DataServiceEntities.StyleOfBusinessEntityExtensionClass,\r\n 'true',\r\n { bypassCache: 'none', returnEntity: 'DataServiceEntities.IStyleOfBusinessEntity' },\r\n {}\r\n );\r\n}\r\n\r\nexport function getAllStylesOfBusinessAsync(context: IContext): AsyncResult {\r\n const request = createGetAllStylesOfBusinessInput(context.queryResultSettings || {});\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n"],"names":["TaxFormPreFilledFieldsEntityExtensionClass","constructor","odataObject","this","PhoneNumber","AddressPurchaser","CityPurchaser","StatePurchaser","ZipCodePurchaser","FullName","StyleOfBusiness","NameOfPurchaser","Email","TaxId","Title","Seller","AddressSeller","CitySeller","StateSeller","ZipCodeSeller","ExtensionProperties","undefined","i","length","className","substr","lastIndexOf","concat","EntityClasses","PreferredStoreEntityExtensionClass","CustomerAccountNumber","StoreId","StoreName","Latitude","parseInt","Longitude","PurchaseHistoryProductEntityExtensionClass","RecID","ProductRecID","ItemID","ProductID","InvoiceDate","Date","jsonLightReadStringPropertyValue","SalesID","ProductName","Price","parseFloat","Quantity","CWQuantity","UnitID","InvoiceID","CustInvTransRecID","CustomerAccount","CustJourInvoiceID","StyleOfBusinessEntityExtensionClass","RECID","StyleOfBusinessName","StyleOfBusinessClaim","RefreshWebFormInstanceTokenResponseExtensionClass","InstanceID","FormURL","FormInstanceToken","TokenExpiry","IntegrationKey","CreateWebFormInstanceTokenResponseExtensionClass","Status","WebFormID","ValidateOrganizationResponseExtensionClass","ValidationResult","OrganizationName","IsAccountFound","AccountValidation","EmailAlreadyExists","ExistingCustomerUserCreationResponseExtensionClass","Success","GetOrgTypeCustomerResponseExtensionClass","CustomerAccountNum","CustomerOrganization","CustomerAttributes","AddPreferredStoreResponseExtensionClass","CustDocusignAttachmentResponseExtensionClass","CustAccountNum","TaxExemptionCheckResponseExtensionClass","ApplicableForTaxExemption","DocuSignWebFormFound","GetUOMDefinitionResponseExtensionClass","Factor","ConversionDefinition","validateOrganizationInput","accountNum","email","zipCode","street","DataServiceQuery","createDataServiceRequestForOperation","DataServiceEntities","bypassCache","returnEntity","validateOrganizationAsync","context","request","callActionOrExecute","callerContext","createExistingCustomerUserInput","firstName","lastName","businessEmailAddress","marketingOptInPhone","marketingOptInEmail","createExistingCustomerUserAsync","getOrgTypeCustomerInput","businessPartnerID","getOrgTypeCustomerAsync","custDocusignAttachmentInput","taxStatus","webFormID","webFormInstanceID","custDocusignAttachmentAsync","taxExemptionCheckInput","state","styleOfBusiness","taxExemptionCheckAsync","getUOMDefinitionInput","itemID","productRECID","fromUnit","toUnit","getUOMDefinitionAsync","docuSignQuery","key","refreshWebFormInstanceTokenAsync","formID","formInstanceID","createRefreshWebFormInstanceTokenInput","createWebFormInstanceTokenAsync","preFilledFields","createCreateWebFormInstanceTokenInput","storeSelectionQuery","customerAccountNumber","getPreferredStoreAsync","custAccNumber","createGetPreferredStoreInput","addPreferredStoreAsync","preferredStore","createAddPreferredStoreInput","createGetProductsInput","queryResultSettings","recID","purchaseHistoryQuery","resultSettings","getProductsAsync","createGetAllStylesOfBusinessInput","rECID","styleOfBusinessQuery","getAllStylesOfBusinessAsync"],"sourceRoot":""}