/* Options: Date: 2024-06-17 01:07:50 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: UpdateEaccountingCustomer.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class InvoiceAddress { public CorporateIdentityNumber: string; public InvoiceAddress1: string; public InvoiceAddress2: string; public InvoiceCity: string; public InvoicePostalCode: string; public InvoiceCountryCode: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class EAccountingTermsOfPayment { public Id: string; public Name: string; public NameEnglish: string; public NumberOfDays: number; public TermsOfPaymentTypeId: number; public TermsOfPaymentTypeText: string; public AvailableForSales: boolean; public AvailableForPurchase: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CustomerLabel { public Id: string; public Name: string; public Description: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class DirectDebitCustomerSettings { public MandateId: string; public MandateType: number; public SequenceType: number; public SigningDate: string; public EndDate: string; public LatestDirectDebit: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class CreateEAccountingCustomer extends InvoiceAddress { public CustomerNumber: string; public ContactPersonEmail: string; public ContactPersonMobile: string; public ContactPersonName: string; public ContactPersonPhone: string; public CurrencyCode: string; public GLN: string; public EmailAddress: string; public EmailAddressOrder: string; public EmailAddressQuote: string; public DeliveryCustomerName: string; public DeliveryAddress1: string; public DeliveryAddress2: string; public DeliveryCity: string; public DeliveryCountryCode: string; public DeliveryPostalCode: string; public DeliveryMethodId: string; public DeliveryTermId: string; public PayToAccountId: string; public Name: string; public Note: string; public ReverseChargeOnConstructionServices: boolean; public WebshopCustomerNumber?: number; public MobilePhone: string; public Telephone: string; public TermsOfPaymentId: string; public EAccountingTermsOfPayment: EAccountingTermsOfPayment; public VatNumber: string; public WwwAddress: string; public LastInvoiceDate: string; public IsPrivatePerson: boolean; public IsNorthernIreland: boolean; public DiscountPercentage: number; public ChangedUtc?: string; public IsActive: boolean; public ForceBookkeepVat: boolean; public EdiGlnNumber: string; public SalesDocumentLanguage: string; public ElectronicAddress: string; public ElectronicReference: string; public EdiServiceDelivererId: string; public AutoInvoiceActivationEmailSentDate?: string; public AutoInvoiceRegistrationRequestSentDate?: string; public EmailAddresses: string[]; public CustomerLabels: CustomerLabel[]; public MessageThreads: string[]; public Notes: string[]; public IsFutureInvoiceDateAllowed: boolean; public DeliveryBasedVat: boolean; public SalesPriceListId: string; public Iban: string; public DirectDebitCustomerSettings: DirectDebitCustomerSettings; public DiscountAgreementId: string; public UnpaidInvoicesAmount: number; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } export class EAccountingCustomerResponse extends CreateEAccountingCustomer { public Id: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } } // @Route("/eaccounting/customers", "PUT") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class UpdateEaccountingCustomer implements IReturn, ICompany { /** @description Customer Id in e-accounting. */ // @ApiMember(Description="Customer Id in e-accounting.", IsRequired=true) public Id: string; /** @description */ // @ApiMember(Description="") public InvoiceCity: string; /** @description Max length: 10 characters */ // @ApiMember(Description="Max length: 10 characters") public InvoicePostalCode: string; /** @description Max length: 50 characters */ // @ApiMember(Description="Max length: 50 characters") public Name: string; /** @description */ // @ApiMember(Description="") public TermsOfPaymentId: string; /** @description */ // @ApiMember(Description="") public IsPrivatePerson: boolean; /** @description */ // @ApiMember(Description="") public IsActive: boolean; /** @description */ // @ApiMember(Description="") public Telephone: string; /** @description */ // @ApiMember(Description="") public EmailAddress: string; /** @description */ // @ApiMember(Description="") public MobilePhone: string; /** @description The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.") public CompanyId?: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'UpdateEaccountingCustomer'; } public getMethod() { return 'PUT'; } public createResponse() { return new EAccountingCustomerResponse(); } }