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C,aAAc,4CACpC,CAAEJ,WAAYA,IAKFK,CAA8BL,GAC9C,OAAOM,EAAAA,EAAAA,qBAA8DL,EAASF,EAAQQ,eAepF,SAAUC,EACZT,EACAC,GAEA,MAAMC,EAhBJ,SAAgDD,GAElD,OADcP,IACDS,qCACT,8BACA,EACAL,EACA,QACA,CAAEM,YAAa,MAAOC,aAAc,gDACpC,CAAEJ,WAAYA,IAQFS,CAAsCT,GACtD,OAAOM,EAAAA,EAAAA,qBAAkEL,EAASF,EAAQQ,eAqExF,SAAUG,EACZX,EACAY,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAEA,MAAMnC,EA/FJ,SACFU,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,GAGA,OADc3C,IACDS,qCACT,yBACA,EACAL,EACA,QACA,CAAEM,YAAa,MAAOC,aAAc,oDACpC,CACIO,cAAeA,EACfC,WAAYA,EACZC,KAAMA,EACNC,cAAeA,EACfC,kBAAmBA,EACnBC,SAAUA,EACVC,WAAYA,EACZC,UAAWA,EACXC,gBAAiBA,EACjBC,WAAYA,EACZC,mBAAoBA,EACpBC,cAAeA,EACfC,qBAAsBA,EACtBC,gBAAiBA,EACjBC,mBAAoBA,EACpBC,cAAeA,EACfC,aAAcA,EACdC,YAAaA,EACbC,cAAeA,EACfC,YAAaA,EACbC,WAAYA,EACZC,mBAAoBA,EACpBC,mBAAoBA,EACpBC,oBAAqBA,EACrBC,oBAAqBA,EACrBC,yBAA0BA,IAkClBC,CACZ1B,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,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QAASA,EACTC,QAASA,EACTG,YAAaA,EACbF,UAAWA,EACXlH,aAAcA,EACdmH,YAAaA,EACbpH,oBAAqBA,OAMzC,iDCjHD,MAAMyN,EAAgB9R,IAKzB,GAAIqS,EAAAA,GAASC,WAAaC,OAAOC,WAAY,CACzC,MAAMC,EAAezS,EAAQE,QAAQuS,aACrC,GAAIA,EACA,OAAIA,EAAaC,IAAMH,OAAOC,YAAcC,EAAaC,GAAGC,EACjD,KACAF,EAAaG,IAAML,OAAOC,YAAcC,EAAaG,GAAGD,EACxD,KACAF,EAAaI,IAAMN,OAAOC,YAAcC,EAAaI,GAAGF,EACxD,KACAF,EAAaK,IAAMP,OAAOC,YAAcC,EAAaK,GAAGH,EACxD,KAEJ,KAIf,MAAO","sources":["webpack://suedwolle/./src/custom-proxy/RetailExtension/DataServiceEntities.g.ts?28a0","webpack://suedwolle/./src/custom-proxy/RetailExtension/DataActionExtension.g.ts?e047","webpack://suedwolle/./src/themes/suedwolle/views/components/sw-modal.component.tsx?1f76","webpack://suedwolle/./src/themes/suedwolle/views/components/sw-returnorder-stepper.component.tsx?7964","webpack://suedwolle/./src/utilities/get-viewport.ts?6aa6"],"sourcesContent":["/* eslint-disable security/detect-object-injection */\r\n\r\n// tslint:disable\r\n// import * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n// import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\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// import { jsonLightReadStringPropertyValue } from '@msdyn365-commerce/retail-proxy/dist/externals';\r\n\r\n/**\r\n * SWGCustomerDataView entity interface.\r\n */\r\nexport interface ISWGCustomerDataView {\r\n ID: number;\r\n MailField1?: string;\r\n AdrNumber?: string;\r\n CompName?: string;\r\n SW_CountryIntex?: string;\r\n Street1?: string;\r\n Town1?: string;\r\n Zip1?: string;\r\n TurnOverTaxID?: string;\r\n Currency?: string;\r\n Payment?: string;\r\n DelTerm?: string;\r\n BKNOOTCODE?: string;\r\n MailField2?: string;\r\n Email?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGCustomerDataEditable entity interface.\r\n */\r\nexport interface ISWGCustomerDataEditable {\r\n ID?: number;\r\n Salutation?: string[];\r\n FirstName?: string;\r\n PersonProfessionalTitle?: string;\r\n DateOfBirth?: string;\r\n PrimaryContactFax?: string;\r\n PrimaryContactFaxRecId?: string;\r\n OrgPrimaryFax?: string;\r\n OrgPrimaryFaxRecId?: string;\r\n OrgPrimaryPhone?: string;\r\n OrgPrimaryPhoneRecId?: string;\r\n OrgPrimaryURL?: string;\r\n OrgPrimaryURLRecId?: string;\r\n DeliveryName?: string;\r\n DeliveryStreet?: string;\r\n DeliveryCountry?: string;\r\n DeliveryZip?: string;\r\n DeliveryCity?: string;\r\n DilveryContactNumber?: string;\r\n PartyRecId?: string;\r\n AddressRecId?: string;\r\n DeliveryPhoneRecId?: string;\r\n PersonalTitle?: string;\r\n PrimaryContactPhone?: string;\r\n PrimaryContactPhoneRecId?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGUpdateCustomerDataEntity entity interface.\r\n */\r\nexport interface ISWGUpdateCustomerDataEntity {\r\n ID: number;\r\n IsSuccess: boolean;\r\n Message?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGCustomerDataView entity class.\r\n */\r\nexport class SWGCustomerDataViewExtensionClass implements ISWGCustomerDataView {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ID: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public MailField1: 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 AdrNumber: 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 CompName: 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 SW_CountryIntex: 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 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 Town1: 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 Zip1: 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 TurnOverTaxID: 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 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 Payment: 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 DelTerm: 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 BKNOOTCODE: 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 MailField2: 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 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.ID = odataObject.ID;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MailField1 = odataObject.MailField1;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AdrNumber = odataObject.AdrNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.CompName = odataObject.CompName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.SW_CountryIntex = odataObject.SW_CountryIntex;\r\n\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.Town1 = odataObject.Town1;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Zip1 = odataObject.Zip1;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.TurnOverTaxID = odataObject.TurnOverTaxID;\r\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.Payment = odataObject.Payment;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DelTerm = odataObject.DelTerm;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BKNOOTCODE = odataObject.BKNOOTCODE;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.MailField2 = odataObject.MailField2;\r\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.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * SWGCustomerDataEditable entity class.\r\n */\r\nexport class SWGCustomerDataEditableExtensionClass implements ISWGCustomerDataEditable {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ID: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Salutation: string[];\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public FirstName: string;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public PersonProfessionalTitle: 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 DateOfBirth: 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 PrimaryContactFax: 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 PrimaryContactFaxRecId: 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 OrgPrimaryFax: 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 OrgPrimaryFaxRecId: 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 OrgPrimaryPhone: 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 OrgPrimaryPhoneRecId: 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 OrgPrimaryURL: 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 OrgPrimaryURLRecId: 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 DeliveryName: 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 DeliveryStreet: 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 DeliveryCountry: 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 DeliveryZip: 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 DeliveryCity: 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 DilveryContactNumber: 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 PartyRecId: 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 AddressRecId: 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 DeliveryPhoneRecId: 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 PersonalTitle: 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 PrimaryContactPhone: 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 PrimaryContactPhoneRecId: 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.ID = odataObject.ID;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Salutation = undefined;\r\n if (odataObject.Salutation) {\r\n this.Salutation = [];\r\n for (var i = 0; i < odataObject.Salutation.length; i++) {\r\n if (odataObject.Salutation[i]) {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.Salutation[i] = odataObject.Salutation[i];\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.Salutation[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.FirstName = odataObject.FirstName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PersonProfessionalTitle = odataObject.PersonProfessionalTitle;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DateOfBirth = odataObject.DateOfBirth;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactFax = odataObject.PrimaryContactFax;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactFaxRecId = odataObject.PrimaryContactFaxRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryFax = odataObject.OrgPrimaryFax;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryFaxRecId = odataObject.OrgPrimaryFaxRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryPhone = odataObject.OrgPrimaryPhone;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryPhoneRecId = odataObject.OrgPrimaryPhoneRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryURL = odataObject.OrgPrimaryURL;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.OrgPrimaryURLRecId = odataObject.OrgPrimaryURLRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryName = odataObject.DeliveryName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryStreet = odataObject.DeliveryStreet;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryCountry = odataObject.DeliveryCountry;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryZip = odataObject.DeliveryZip;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryCity = odataObject.DeliveryCity;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DilveryContactNumber = odataObject.DilveryContactNumber;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PartyRecId = odataObject.PartyRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.AddressRecId = odataObject.AddressRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.DeliveryPhoneRecId = odataObject.DeliveryPhoneRecId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PersonalTitle = odataObject.PersonalTitle;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactPhone = odataObject.PrimaryContactPhone;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PrimaryContactPhoneRecId = odataObject.PrimaryContactPhoneRecId;\r\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 var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * SWGUpdateCustomerDataEntity entity class.\r\n */\r\nexport class SWGUpdateCustomerDataEntityExtensionClass implements ISWGUpdateCustomerDataEntity {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ID: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public IsSuccess: 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 // @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.ID = odataObject.ID;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.IsSuccess = odataObject.IsSuccess;\r\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 // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * SWGInventoryData entity interface.\r\n */\r\nexport interface ISWGInventoryData {\r\n Id: number;\r\n ItemRecId: number;\r\n ProductId: number;\r\n AvailPhysical: number;\r\n PackingType?: string;\r\n PackingTypeName?: string;\r\n BusinessModeId?: string;\r\n BusinessModeValue?: string;\r\n InventBatchId?: string;\r\n BatchProdDate?: string;\r\n InventQualityId?: string;\r\n InventQualityName?: string;\r\n ConsumedQuantity?: string;\r\n ExtensionProperties?: Entities.CommerceProperty[];\r\n}\r\n\r\n/**\r\n * SWGInventoryData entity class.\r\n */\r\nexport class SWGInventoryDataExtensionClass implements ISWGInventoryData {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public Id: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ItemRecId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public ProductId: number;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n public AvailPhysical: 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 PackingType: 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 PackingTypeName: 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 BusinessModeId: 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 BusinessModeValue: 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 InventBatchId: 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 BatchProdDate: 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 InventQualityId: 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 InventQualityName: 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 ConsumedQuantity: 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.Id = odataObject.Id;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ItemRecId = odataObject.ItemRecId ? parseInt(odataObject.ItemRecId, 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.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.AvailPhysical = odataObject.AvailPhysical ? parseFloat(odataObject.AvailPhysical) : 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.PackingType = odataObject.PackingType;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.PackingTypeName = odataObject.PackingTypeName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BusinessModeId = odataObject.BusinessModeId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BusinessModeValue = odataObject.BusinessModeValue;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventBatchId = odataObject.InventBatchId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.BatchProdDate = odataObject.BatchProdDate;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventQualityId = odataObject.InventQualityId;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.InventQualityName = odataObject.InventQualityName;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ConsumedQuantity = odataObject.ConsumedQuantity;\r\n\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties = undefined;\r\n if (odataObject.ExtensionProperties) {\r\n this.ExtensionProperties = [];\r\n for (var i = 0; i < odataObject.ExtensionProperties.length; i++) {\r\n if (odataObject.ExtensionProperties[i]) {\r\n if (odataObject.ExtensionProperties[i]['@odata.type']) {\r\n var className: string = odataObject.ExtensionProperties[i]['@odata.type'];\r\n className = className.substr(className.lastIndexOf('.') + 1).concat('Class');\r\n if (EntityClasses[className]) {\r\n this.ExtensionProperties[i] = new EntityClasses[className](odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n this.ExtensionProperties[i] = new EntityClasses.CommercePropertyClass(odataObject.ExtensionProperties[i]);\r\n }\r\n } else {\r\n // @ts-ignore - TODO bug fix #23427261 - remove ts-ignore - https://microsoft.visualstudio.com/DefaultCollection/OSGS/_workitems/edit/23427261/\r\n this.ExtensionProperties[i] = undefined;\r\n }\r\n }\r\n }\r\n }\r\n}\r\n","/*!\r\n * 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\n// tslint:disable\r\n// import {\r\n// AsyncResult,\r\n// callActionOrExecute,\r\n// DataServiceQuery,\r\n// IContext,\r\n// IDataServiceRequest,\r\n// IQueryResultSettings\r\n// // IQueryResultSettings,\r\n// // NullResult\r\n// } from '@msdyn365-commerce/retail-proxy';\r\nimport {\r\n AsyncResult,\r\n callActionOrExecute,\r\n DataServiceQuery,\r\n IContext,\r\n IDataServiceRequest,\r\n IQueryResultSettings\r\n // IQueryResultSettings,\r\n // NullResult\r\n} from '@msdyn365-commerce/retail-proxy';\r\n// @ts-ignore\r\nimport * as EntityClasses from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceModels.g';\r\n// import * as Entities from '@msdyn365-commerce/retail-proxy/dist/Entities/CommerceTypes.g';\r\nimport * as DataServiceEntities from './DataServiceEntities.g';\r\n\r\n// @ts-ignore\r\nfunction sWGCustomerDataQuery(iD?: number): DataServiceQuery {\r\n const key = iD ? { ID: iD } : null;\r\n return new DataServiceQuery('SWGCustomerData', 'SWGCustomerDataView', DataServiceEntities.SWGCustomerDataViewExtensionClass, key);\r\n}\r\n\r\nexport function createSWGGetCustomerDataInput(customerId: string): IDataServiceRequest {\r\n const query = sWGCustomerDataQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'SWGGetCustomerData',\r\n true,\r\n DataServiceEntities.SWGCustomerDataViewExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGCustomerDataView' },\r\n { customerId: customerId }\r\n );\r\n}\r\n\r\nexport function sWGGetCustomerDataAsync(context: IContext, customerId: string): AsyncResult {\r\n const request = createSWGGetCustomerDataInput(customerId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createSWGGetCustomerEditableDataInput(customerId: string): IDataServiceRequest {\r\n const query = sWGCustomerDataQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'SWGGetCustomerEditableData',\r\n true,\r\n DataServiceEntities.SWGCustomerDataEditableExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGCustomerDataEditable' },\r\n { customerId: customerId }\r\n );\r\n}\r\n\r\nexport function sWGGetCustomerEditableDataAsync(\r\n context: IContext,\r\n customerId: string\r\n): AsyncResult {\r\n const request = createSWGGetCustomerEditableDataInput(customerId);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\nexport function createSWGUpdateCustomerDataInput(\r\n accountNumber: string,\r\n partyRecID: string,\r\n name: string,\r\n personalTitle: string,\r\n professionalTitle: string,\r\n birthDay: string,\r\n birthMonth: string,\r\n birthYear: string,\r\n primaryFaxRecId: string,\r\n primaryFax: string,\r\n orgPrimaryFaxRecId: string,\r\n orgPrimaryFax: string,\r\n orgPrimaryPhoneRecId: string,\r\n orgPrimaryPhone: string,\r\n orgPrimaryUrlRecId: string,\r\n orgPrimaryUrl: string,\r\n addressRecId: string,\r\n addressName: string,\r\n addressStreet: string,\r\n addressCity: string,\r\n addressZip: string,\r\n addressCountryCode: string,\r\n deliveryPhoneRecId: string,\r\n deliveryPhoneNumber: string,\r\n primaryContactPhone: string,\r\n primaryContactPhoneRecId: string\r\n): IDataServiceRequest {\r\n const query = sWGCustomerDataQuery();\r\n return query.createDataServiceRequestForOperation(\r\n 'SWGUpdateCustomerData',\r\n true,\r\n DataServiceEntities.SWGUpdateCustomerDataEntityExtensionClass,\r\n 'false',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGUpdateCustomerDataEntity' },\r\n {\r\n accountNumber: accountNumber,\r\n partyRecID: partyRecID,\r\n name: name,\r\n personalTitle: personalTitle,\r\n professionalTitle: professionalTitle,\r\n birthDay: birthDay,\r\n birthMonth: birthMonth,\r\n birthYear: birthYear,\r\n primaryFaxRecId: primaryFaxRecId,\r\n primaryFax: primaryFax,\r\n orgPrimaryFaxRecId: orgPrimaryFaxRecId,\r\n orgPrimaryFax: orgPrimaryFax,\r\n orgPrimaryPhoneRecId: orgPrimaryPhoneRecId,\r\n orgPrimaryPhone: orgPrimaryPhone,\r\n orgPrimaryUrlRecId: orgPrimaryUrlRecId,\r\n orgPrimaryUrl: orgPrimaryUrl,\r\n addressRecId: addressRecId,\r\n addressName: addressName,\r\n addressStreet: addressStreet,\r\n addressCity: addressCity,\r\n addressZip: addressZip,\r\n addressCountryCode: addressCountryCode,\r\n deliveryPhoneRecId: deliveryPhoneRecId,\r\n deliveryPhoneNumber: deliveryPhoneNumber,\r\n primaryContactPhone: primaryContactPhone,\r\n primaryContactPhoneRecId: primaryContactPhoneRecId\r\n }\r\n );\r\n}\r\n\r\nexport function sWGUpdateCustomerDataAsync(\r\n context: IContext,\r\n accountNumber: string,\r\n partyRecID: string,\r\n name: string,\r\n personalTitle: string,\r\n professionalTitle: string,\r\n birthDay: string,\r\n birthMonth: string,\r\n birthYear: string,\r\n primaryFaxRecId: string,\r\n primaryFax: string,\r\n orgPrimaryFaxRecId: string,\r\n orgPrimaryFax: string,\r\n orgPrimaryPhoneRecId: string,\r\n orgPrimaryPhone: string,\r\n orgPrimaryUrlRecId: string,\r\n orgPrimaryUrl: string,\r\n addressRecId: string,\r\n addressName: string,\r\n addressStreet: string,\r\n addressCity: string,\r\n addressZip: string,\r\n addressCountryCode: string,\r\n deliveryPhoneRecId: string,\r\n deliveryPhoneNumber: string,\r\n primaryContactPhone: string,\r\n primaryContactPhoneRecId: string\r\n): AsyncResult {\r\n const request = createSWGUpdateCustomerDataInput(\r\n accountNumber,\r\n partyRecID,\r\n name,\r\n personalTitle,\r\n professionalTitle,\r\n birthDay,\r\n birthMonth,\r\n birthYear,\r\n primaryFaxRecId,\r\n primaryFax,\r\n orgPrimaryFaxRecId,\r\n orgPrimaryFax,\r\n orgPrimaryPhoneRecId,\r\n orgPrimaryPhone,\r\n orgPrimaryUrlRecId,\r\n orgPrimaryUrl,\r\n addressRecId,\r\n addressName,\r\n addressStreet,\r\n addressCity,\r\n addressZip,\r\n addressCountryCode,\r\n deliveryPhoneRecId,\r\n deliveryPhoneNumber,\r\n primaryContactPhone,\r\n primaryContactPhoneRecId\r\n );\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n\r\n// @ts-ignore\r\nfunction sWGInventoryDataQuery(id?: number): DataServiceQuery {\r\n const key = id ? { Id: id } : null;\r\n return new DataServiceQuery('SWGInventoryData', 'SWGInventoryData', DataServiceEntities.SWGInventoryDataExtensionClass, key);\r\n}\r\n\r\nexport function createSWGGetInventoryDataInput(\r\n queryResultSettings: IQueryResultSettings,\r\n productId: number,\r\n requestedQuantity: number\r\n): IDataServiceRequest {\r\n const query = sWGInventoryDataQuery().resultSettings(queryResultSettings);\r\n return query.createDataServiceRequestForOperation(\r\n 'SWGGetInventoryData',\r\n true,\r\n DataServiceEntities.SWGInventoryDataExtensionClass,\r\n 'true',\r\n { bypassCache: 'get', returnEntity: 'DataServiceEntities.ISWGInventoryData' },\r\n { productId: productId, requestedQuantity: requestedQuantity }\r\n );\r\n}\r\n\r\nexport function sWGGetInventoryDataAsync(\r\n context: IContext,\r\n productId: number,\r\n requestedQuantity: number\r\n): AsyncResult {\r\n const request = createSWGGetInventoryDataInput(context.queryResultSettings || {}, productId, requestedQuantity);\r\n return callActionOrExecute(request, context.callerContext);\r\n}\r\n","import React from 'react';\r\nimport { Modal, ModalBody, ModalFooter, ModalHeader } from '@msdyn365-commerce-modules/utilities';\r\n\r\ninterface ISWModalProps {\r\n isOpen: boolean;\r\n onModalToggle: () => void;\r\n className: string;\r\n modalTitle?: React.ReactNode;\r\n modalBody?: React.ReactNode;\r\n modalFooter?: React.ReactNode;\r\n}\r\n\r\nexport default function SWModal(props: ISWModalProps) {\r\n const { isOpen, onModalToggle, className, modalTitle, modalBody, modalFooter } = props;\r\n\r\n return (\r\n \r\n {modalTitle && {modalTitle}}\r\n {modalBody && {modalBody}}\r\n {modalFooter && {modalFooter}}\r\n \r\n );\r\n}\r\n","import React from 'react';\r\nimport Stepper, { Step } from 'react-material-stepper';\r\nimport { IAny, ICoreContext, IGeneric } from '@msdyn365-commerce/core-internal';\r\nimport { StepperAction, StepperContent, StepperContext } from 'react-material-stepper';\r\nimport Label from 'reactstrap/lib/Label';\r\nimport html2canvas from 'html2canvas';\r\nimport { ISalesLine, IOrderInformation, IOrderSummary } from '@msdyn365-commerce-modules/order-management';\r\nimport { IOrderDetailsResources, IReturnReasonOptionsData } from './../../definition-extensions/order-details.ext.props.autogenerated';\r\nimport { _getViewPort } from '../../../../utilities/get-viewport';\r\nimport { ISWGCustomerDataView } from '../../../../custom-proxy/RetailExtension/DataServiceEntities.g';\r\nimport 'react-material-stepper/dist/react-stepper.css';\r\nimport { PDFDocument, PDFFont, RGB, rgb, StandardFonts } from 'pdf-lib';\r\n\r\ninterface IReturnOrderSalesLine extends ISalesLine {\r\n returnQuantity?: number;\r\n returnPrice?: number;\r\n returnRemarks?: string;\r\n returnRemarksPlaceholder?: string;\r\n returnReason?: string;\r\n}\r\ninterface ReturnOrderStepperProps {\r\n salesLines?: ISalesLine[];\r\n context: ICoreContext>;\r\n orderInformation?: IOrderInformation;\r\n orderId?: string;\r\n orderSummary?: IOrderSummary;\r\n resources: IOrderDetailsResources;\r\n returnReasonOptions: IReturnReasonOptionsData[];\r\n logoUrl?: string;\r\n statement?: string;\r\n companyEmail?: string;\r\n companyData?: ISWGCustomerDataView;\r\n returnModalInfoText?: string;\r\n toggleModal: () => void;\r\n}\r\ninterface StepProps {\r\n vertical?: boolean;\r\n resources: IOrderDetailsResources;\r\n context: ICoreContext>;\r\n returnModalInfoText?: string;\r\n companyEmail?: string;\r\n}\r\n\r\ninterface ProductDetailsStepProps extends StepProps {\r\n salesLines: IReturnOrderSalesLine[];\r\n returnReasonOptions: IReturnReasonOptionsData[];\r\n}\r\n\r\ninterface SummaryStepProps extends StepProps {\r\n orderInformation: IOrderInformation;\r\n orderSummary: IOrderSummary;\r\n orderId?: string;\r\n logoUrl?: string;\r\n statement?: string;\r\n companyData?: ISWGCustomerDataView;\r\n toggleModal: () => void;\r\n}\r\n\r\nconst ReturnOrderStepper: React.FunctionComponent = ({\r\n salesLines,\r\n orderInformation,\r\n orderSummary,\r\n context,\r\n orderId,\r\n resources,\r\n logoUrl,\r\n statement,\r\n companyEmail,\r\n companyData,\r\n returnModalInfoText,\r\n returnReasonOptions,\r\n toggleModal\r\n}) => {\r\n const viewPort = _getViewPort(context);\r\n const isMobile = viewPort === 'sm' || viewPort === 'xs';\r\n return salesLines ? (\r\n
\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n {orderInformation && orderSummary && (\r\n \r\n \r\n \r\n )}\r\n \r\n
\r\n ) : null;\r\n};\r\n\r\nexport const ProductDetailStep: React.FunctionComponent = ({\r\n salesLines,\r\n vertical,\r\n context,\r\n resources,\r\n returnReasonOptions,\r\n returnModalInfoText,\r\n companyEmail\r\n}) => {\r\n const [selectedProducts, setSelectedProducts] = React.useState([]);\r\n\r\n React.useEffect(() => {\r\n const previouslySelectedProducts: IReturnOrderSalesLine[] = getData('product-detail');\r\n if (previouslySelectedProducts && previouslySelectedProducts.length !== 0) {\r\n setSelectedProducts(selectedProducts => [...previouslySelectedProducts]);\r\n }\r\n }, []);\r\n\r\n const { resolve, reject, getData } = React.useContext(StepperContext);\r\n const onSubmit = (event: React.FormEvent) => {\r\n event.preventDefault();\r\n if (selectedProducts.length === 0 || validateReturnReasonAndRemarks()) {\r\n reject(resources.selectProductsStepLabel);\r\n } else {\r\n resolve(selectedProducts);\r\n }\r\n };\r\n\r\n const validateReturnReasonAndRemarks = () => {\r\n const emptyDataProducts = selectedProducts.filter(product => {\r\n return !product.returnRemarks || product.returnRemarks === '' || !product.returnReason || product.returnReason === '';\r\n });\r\n return emptyDataProducts.length > 0;\r\n };\r\n\r\n const handleQuantityChange = (event: React.ChangeEvent, selectedLine: IReturnOrderSalesLine) => {\r\n selectedLine.returnQuantity = Number(event.target.value);\r\n selectedLine.returnPrice = (selectedLine.data.salesLine.Price || 0) * selectedLine.returnQuantity;\r\n };\r\n\r\n const handleOnChange = (event: React.ChangeEvent, selectedLine: IReturnOrderSalesLine) => {\r\n const selectedProduct = selectedProducts.find(salesLine => {\r\n return salesLine.data.salesLine.ProductId === selectedLine.data.salesLine.ProductId;\r\n });\r\n\r\n if (selectedProduct) {\r\n const filteredProducts = selectedProducts.filter(product => {\r\n return selectedProduct.data.salesLine.ProductId !== product.data.salesLine.ProductId;\r\n });\r\n setSelectedProducts(filteredProducts);\r\n } else {\r\n setSelectedProducts(selectedProducts => [...selectedProducts, selectedLine]);\r\n }\r\n };\r\n\r\n const handleRemarksChange = (event: React.ChangeEvent, selectedLine: IReturnOrderSalesLine) => {\r\n const { value } = event.target;\r\n selectedLine.returnRemarks = value;\r\n };\r\n const handleReasonChange = (event: React.ChangeEvent, selectedLine: IReturnOrderSalesLine) => {\r\n event.persist();\r\n const updatedSelectedProducts = [...selectedProducts];\r\n const selectedProductIndex = selectedProducts.findIndex(salesLine => {\r\n return salesLine.data.salesLine.ProductId === selectedLine.data.salesLine.ProductId;\r\n });\r\n if (selectedProductIndex < 0) {\r\n return;\r\n }\r\n const selectedProduct = selectedProducts[selectedProductIndex];\r\n const selectedOption = event.target.selectedOptions[0];\r\n const inputPlaceholder = selectedOption.getAttribute('data-option-placeholder');\r\n\r\n if (inputPlaceholder && selectedProduct) {\r\n selectedProduct.returnRemarksPlaceholder = inputPlaceholder;\r\n } else {\r\n selectedProduct.returnRemarksPlaceholder = '';\r\n }\r\n const { value } = event.target;\r\n selectedProduct.returnReason = value;\r\n updatedSelectedProducts[selectedProductIndex] = selectedProduct;\r\n setSelectedProducts(updatedSelectedProducts);\r\n };\r\n\r\n return (\r\n \r\n

\r\n \r\n {returnModalInfoText} {companyEmail}\r\n

\r\n \r\n
\r\n {resources.continueButtonLabel}\r\n
\r\n
\r\n \r\n }\r\n >\r\n
\r\n {salesLines &&\r\n salesLines.map((salesLine, index) => {\r\n const isSalesLineExists = selectedProducts.find(product => {\r\n return product.data.salesLine.ProductId === salesLine.data.salesLine.ProductId;\r\n });\r\n return (\r\n
\r\n ) => handleOnChange(e, salesLine)}\r\n />\r\n
\r\n
\r\n
\r\n \r\n
\r\n {resources.priceLabel}:{' '}\r\n {context.cultureFormatter.formatCurrency(salesLine.data.salesLine.TotalAmount!)}\r\n
\r\n
\r\n {resources.productDimensionTypeColor}:{' '}\r\n {salesLine.data.product?.Dimensions &&\r\n salesLine.data.product?.Dimensions.length &&\r\n salesLine.data.product?.Dimensions[0].DimensionValue?.Value}\r\n
\r\n
\r\n \r\n handleQuantityChange(event, salesLine)}\r\n >\r\n {Array.from(Array(salesLine.data.salesLine.Quantity), (value, i) => {\r\n return (\r\n \r\n );\r\n })}\r\n \r\n
\r\n
\r\n\r\n
\r\n \r\n handleReasonChange(event, salesLine)}\r\n >\r\n {!salesLine.returnReason && }\r\n {returnReasonOptions.map((reason, i) => {\r\n return (\r\n \r\n {reason.optionText}\r\n \r\n );\r\n })}\r\n \r\n
\r\n
\r\n \r\n handleRemarksChange(event, salesLine)}\r\n />\r\n
\r\n
\r\n
\r\n
\r\n );\r\n })}\r\n
\r\n \r\n );\r\n};\r\n\r\nexport const CommentsAndBankAccountStep: React.FunctionComponent = ({\r\n vertical,\r\n resources,\r\n returnModalInfoText,\r\n companyEmail\r\n}) => {\r\n const { resolve, reject, getData, goAt } = React.useContext(StepperContext);\r\n // const commentsField = React.useRef();\r\n const bankAccountField = React.useRef();\r\n // const SwiftCodeField = React.useRef();\r\n // const accountHolderField = React.useRef();\r\n // const commentsRef = React.useRef();\r\n const bankAccountRef = React.useRef();\r\n const SwiftCodeRef = React.useRef();\r\n const accountHolderRef = React.useRef();\r\n const data = getData('comments-and-bankaccount') || {};\r\n\r\n const back = () => goAt('product-detail');\r\n const onSubmit = (event: React.FormEvent) => {\r\n event.preventDefault();\r\n // const comments: string = commentsRef.current?.value!;\r\n const bankAccount: string = bankAccountRef.current?.value!;\r\n const accountHolder: string = accountHolderRef.current?.value!;\r\n const swiftCode: string = SwiftCodeRef.current?.value!;\r\n if (bankAccount.length === 0 || accountHolder.length===0) {\r\n reject(resources.additionalInfoStepLabel);\r\n } else {\r\n resolve({\r\n // comments,\r\n bankAccount,\r\n accountHolder,\r\n swiftCode\r\n });\r\n }\r\n };\r\n\r\n return (\r\n \r\n

\r\n \r\n {returnModalInfoText} {companyEmail}\r\n

\r\n \r\n
\r\n \r\n {resources.previousButtonLabel}\r\n \r\n {resources.continueButtonLabel}\r\n
\r\n
\r\n \r\n }\r\n >\r\n
}>\r\n \r\n }\r\n defaultValue={data.accountHolder}\r\n type='text'\r\n />\r\n \r\n }\r\n defaultValue={data.bankAccount}\r\n type='text'\r\n />\r\n \r\n }\r\n defaultValue={data.swiftCode}\r\n type='text'\r\n />\r\n
\r\n {/*
}>\r\n \r\n