/* Options: Date: 2024-12-03 18:32:01 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: EAccountingCustomerQuery.* //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 EAccountingPagination { /** @description Page number that will be fetched to e-accounting client; Default 1 */ // @DataMember(Order=1) // @ApiMember(Description="Page number that will be fetched to e-accounting client; Default 1") public PageNumber?: number; /** @description Page size that will be fetched to e-accounting client; Default 75~ */ // @DataMember(Order=2) // @ApiMember(Description="Page size that will be fetched to e-accounting client; Default 75~") public PageSize?: number; 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", "GET") export class EAccountingCustomerQuery extends EAccountingPagination implements IReturn, ICompany { public CompanyId?: string; public constructor(init?: Partial) { super(init); (Object as any).assign(this, init); } public getTypeName() { return 'EAccountingCustomerQuery'; } public getMethod() { return 'GET'; } public createResponse() { return new EAccountingCustomerResponse(); } }