@dangl/avacloud-client-node 1.54.13-beta0001-avacloud-preview → 1.54.14-avacloud-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/api.d.ts +178 -48
  2. package/api.js +81 -1
  3. package/api.js.map +1 -1
  4. package/api.ts +254 -48
  5. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -4168,14 +4168,16 @@ about the invoice. */
4168
4168
  invoiceNotes?: InvoiceNote[] | undefined;
4169
4169
  /** The period during which the services or goods were delivered */
4170
4170
  invoicePeriod?: InvoicePeriod | undefined;
4171
+ /** Information about the delivery
4172
+ BG-13 in XRechnung */
4173
+ deliveryInformation?: DeliveryInformation | undefined;
4171
4174
  /** Totals for the invoice */
4172
4175
  totals?: InvoiceTotals | undefined;
4173
4176
  /** Instructions how to perform the payment */
4174
4177
  paymentInstructions?: PaymentInstructions | undefined;
4175
4178
  /** Attached documents to the invoice */
4176
4179
  documents?: SupportingDocument[] | undefined;
4177
- /** This is used to list VAT by category, e.g. for invoices
4178
- where parts are in different VAT categories */
4180
+ /** This is used to list VAT by category, e.g. for invoices where parts are in different VAT categories */
4179
4181
  vatBreakdown?: VatBreakdown[] | undefined;
4180
4182
  /** Allowances / deductions on the invoice */
4181
4183
  allowances?: InvoiceAllowance[] | undefined;
@@ -4219,14 +4221,16 @@ about the invoice. */
4219
4221
  invoiceNotes?: IInvoiceNote[] | undefined;
4220
4222
  /** The period during which the services or goods were delivered */
4221
4223
  invoicePeriod?: IInvoicePeriod | undefined;
4224
+ /** Information about the delivery
4225
+ BG-13 in XRechnung */
4226
+ deliveryInformation?: IDeliveryInformation | undefined;
4222
4227
  /** Totals for the invoice */
4223
4228
  totals?: IInvoiceTotals | undefined;
4224
4229
  /** Instructions how to perform the payment */
4225
4230
  paymentInstructions?: IPaymentInstructions | undefined;
4226
4231
  /** Attached documents to the invoice */
4227
4232
  documents?: ISupportingDocument[] | undefined;
4228
- /** This is used to list VAT by category, e.g. for invoices
4229
- where parts are in different VAT categories */
4233
+ /** This is used to list VAT by category, e.g. for invoices where parts are in different VAT categories */
4230
4234
  vatBreakdown?: IVatBreakdown[] | undefined;
4231
4235
  /** Allowances / deductions on the invoice */
4232
4236
  allowances?: IInvoiceAllowance[] | undefined;
@@ -4251,25 +4255,38 @@ export declare enum InvoiceType {
4251
4255
  /** This class holds typical references used in an invoice */
4252
4256
  export declare class References implements IReferences {
4253
4257
  /** An internal reference used by the buyer, this can also be used as the
4254
- 'Leitweg-ID' in Germany */
4258
+ 'Leitweg-ID' in Germany
4259
+ BT-10 in XRechnung. */
4255
4260
  buyerReference?: string | undefined;
4256
- /** Reference to a project */
4261
+ /** Reference to a project
4262
+ BT-11 in XRechnung. */
4257
4263
  projectReference?: string | undefined;
4258
- /** Reference to a contract */
4264
+ /** Reference to a contract
4265
+ BT-12 in XRechnung. */
4259
4266
  contractReference?: string | undefined;
4260
- /** Reference to a purchase order created by the buyer */
4267
+ /** Reference to a purchase order created by the buyer
4268
+ BT-13 in XRechnung. */
4261
4269
  purchaseOrderReference?: string | undefined;
4262
- /** Reference to a sales order created by the seller */
4270
+ /** Reference to a sales order created by the seller
4271
+ BT-14 in XRechnung. */
4263
4272
  salesOrderReference?: string | undefined;
4264
- /** Reference to a delivery note */
4273
+ /** Reference to a delivery note
4274
+ BT-15 in XRechnung. */
4265
4275
  receivingAdviceReference?: string | undefined;
4266
- /** Reference to a dispatch advice */
4276
+ /** Reference to a dispatch advice
4277
+ BT-16 in XRechnung. */
4267
4278
  dispatchAdviceReference?: string | undefined;
4268
- /** Reference to a tender or lot */
4279
+ /** Reference to a tender or lot
4280
+ BT-17 in XRechnung. */
4269
4281
  tenderOrLotReference?: string | undefined;
4270
4282
  /** Reference to a custom item, e.g. a phone number, person,
4271
- contract or anything that would identify the invoice in the buyer's system */
4283
+ contract or anything that would identify the invoice in the buyer's system
4284
+ BT-18 in XRechnung. */
4272
4285
  invoicedObjectIdentifier?: string | undefined;
4286
+ /** This is a reference for accounting, like a cost center or similar. In German,
4287
+ this would be a "Kostenstelle".
4288
+ BT-19 in XRechnung. */
4289
+ accountingReference?: string | undefined;
4273
4290
  constructor(data?: IReferences);
4274
4291
  init(_data?: any): void;
4275
4292
  static fromJS(data: any): References;
@@ -4278,25 +4295,38 @@ contract or anything that would identify the invoice in the buyer's system */
4278
4295
  /** This class holds typical references used in an invoice */
4279
4296
  export interface IReferences {
4280
4297
  /** An internal reference used by the buyer, this can also be used as the
4281
- 'Leitweg-ID' in Germany */
4298
+ 'Leitweg-ID' in Germany
4299
+ BT-10 in XRechnung. */
4282
4300
  buyerReference?: string | undefined;
4283
- /** Reference to a project */
4301
+ /** Reference to a project
4302
+ BT-11 in XRechnung. */
4284
4303
  projectReference?: string | undefined;
4285
- /** Reference to a contract */
4304
+ /** Reference to a contract
4305
+ BT-12 in XRechnung. */
4286
4306
  contractReference?: string | undefined;
4287
- /** Reference to a purchase order created by the buyer */
4307
+ /** Reference to a purchase order created by the buyer
4308
+ BT-13 in XRechnung. */
4288
4309
  purchaseOrderReference?: string | undefined;
4289
- /** Reference to a sales order created by the seller */
4310
+ /** Reference to a sales order created by the seller
4311
+ BT-14 in XRechnung. */
4290
4312
  salesOrderReference?: string | undefined;
4291
- /** Reference to a delivery note */
4313
+ /** Reference to a delivery note
4314
+ BT-15 in XRechnung. */
4292
4315
  receivingAdviceReference?: string | undefined;
4293
- /** Reference to a dispatch advice */
4316
+ /** Reference to a dispatch advice
4317
+ BT-16 in XRechnung. */
4294
4318
  dispatchAdviceReference?: string | undefined;
4295
- /** Reference to a tender or lot */
4319
+ /** Reference to a tender or lot
4320
+ BT-17 in XRechnung. */
4296
4321
  tenderOrLotReference?: string | undefined;
4297
4322
  /** Reference to a custom item, e.g. a phone number, person,
4298
- contract or anything that would identify the invoice in the buyer's system */
4323
+ contract or anything that would identify the invoice in the buyer's system
4324
+ BT-18 in XRechnung. */
4299
4325
  invoicedObjectIdentifier?: string | undefined;
4326
+ /** This is a reference for accounting, like a cost center or similar. In German,
4327
+ this would be a "Kostenstelle".
4328
+ BT-19 in XRechnung. */
4329
+ accountingReference?: string | undefined;
4300
4330
  }
4301
4331
  /** References to previous invoices */
4302
4332
  export declare class PreviousInvoice implements IPreviousInvoice {
@@ -4346,6 +4376,9 @@ export declare class Organization implements IOrganization {
4346
4376
  countryCode?: string | undefined;
4347
4377
  /** The state of the organization, e.g. a federal state in Germany */
4348
4378
  state?: string | undefined;
4379
+ /** This provides some additional legal information.
4380
+ BT-33 in XRechnung, and this is only used for the seller. */
4381
+ additionalLegalInformation?: string | undefined;
4349
4382
  constructor(data?: IOrganization);
4350
4383
  init(_data?: any): void;
4351
4384
  static fromJS(data: any): Organization;
@@ -4381,6 +4414,9 @@ export interface IOrganization {
4381
4414
  countryCode?: string | undefined;
4382
4415
  /** The state of the organization, e.g. a federal state in Germany */
4383
4416
  state?: string | undefined;
4417
+ /** This provides some additional legal information.
4418
+ BT-33 in XRechnung, and this is only used for the seller. */
4419
+ additionalLegalInformation?: string | undefined;
4384
4420
  }
4385
4421
  /** Represents a payee, meaning someone that receives the payment */
4386
4422
  export declare class Payee implements IPayee {
@@ -4442,27 +4478,91 @@ export interface IInvoicePeriod {
4442
4478
  /** The end date */
4443
4479
  end?: Date | undefined;
4444
4480
  }
4481
+ /** Information about the delivery */
4482
+ export declare class DeliveryInformation implements IDeliveryInformation {
4483
+ /** BT-70 in XRechnung */
4484
+ deliverToName?: string | undefined;
4485
+ /** BT-71 in XRechnung */
4486
+ deliverToLocationIdentifier?: string | undefined;
4487
+ /** BT-72 in XRechnung */
4488
+ deliveryDate?: Date | undefined;
4489
+ /** BG-15 in XRechnung */
4490
+ deliveryAddress?: DeliveryAddress | undefined;
4491
+ constructor(data?: IDeliveryInformation);
4492
+ init(_data?: any): void;
4493
+ static fromJS(data: any): DeliveryInformation;
4494
+ toJSON(data?: any): any;
4495
+ }
4496
+ /** Information about the delivery */
4497
+ export interface IDeliveryInformation {
4498
+ /** BT-70 in XRechnung */
4499
+ deliverToName?: string | undefined;
4500
+ /** BT-71 in XRechnung */
4501
+ deliverToLocationIdentifier?: string | undefined;
4502
+ /** BT-72 in XRechnung */
4503
+ deliveryDate?: Date | undefined;
4504
+ /** BG-15 in XRechnung */
4505
+ deliveryAddress?: IDeliveryAddress | undefined;
4506
+ }
4507
+ /** Address for deliveries */
4508
+ export declare class DeliveryAddress implements IDeliveryAddress {
4509
+ /** The address. BT-75, BT-76 and BT-165 in XRechnung. */
4510
+ address?: string | undefined;
4511
+ /** The city. BT-77 in XRechnung. */
4512
+ city?: string | undefined;
4513
+ /** The zip code. BT-78 in XRechnung. */
4514
+ zipCode?: string | undefined;
4515
+ /** The ISO 3166-1 2 letter country code. BT-80 in XRechnung. */
4516
+ countryCode?: string | undefined;
4517
+ constructor(data?: IDeliveryAddress);
4518
+ init(_data?: any): void;
4519
+ static fromJS(data: any): DeliveryAddress;
4520
+ toJSON(data?: any): any;
4521
+ }
4522
+ /** Address for deliveries */
4523
+ export interface IDeliveryAddress {
4524
+ /** The address. BT-75, BT-76 and BT-165 in XRechnung. */
4525
+ address?: string | undefined;
4526
+ /** The city. BT-77 in XRechnung. */
4527
+ city?: string | undefined;
4528
+ /** The zip code. BT-78 in XRechnung. */
4529
+ zipCode?: string | undefined;
4530
+ /** The ISO 3166-1 2 letter country code. BT-80 in XRechnung. */
4531
+ countryCode?: string | undefined;
4532
+ }
4445
4533
  /** Totals for the invoice */
4446
4534
  export declare class InvoiceTotals implements IInvoiceTotals {
4447
- /** Sum of all invoice items in net. */
4535
+ /** Sum of all invoice items in net.
4536
+ BT-106 in XRechnung. */
4448
4537
  totalNet?: number | undefined;
4449
- /** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice */
4538
+ /** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice
4539
+ BT-107 in XRechnung. */
4450
4540
  totalAllowances?: number | undefined;
4451
4541
  /** This is the sum of all charges in the invoice, except VAT. For example, late
4452
- fees or surcharges. */
4542
+ fees or surcharges.
4543
+ BT-108 in XRechnung. */
4453
4544
  totalCharges?: number | undefined;
4454
4545
  /** This is the total net value of the invoice after applied allowances and charges,
4455
- meaning the actual net sum to be paid. */
4546
+ meaning the actual net sum to be paid.
4547
+ BT-109 in XRechnung. */
4456
4548
  totalAfterDeductions?: number | undefined;
4457
- /** The total amount of VAT in the invoice. */
4549
+ /** The total amount of VAT in the invoice.
4550
+ BT-110 in XRechnung. */
4458
4551
  totalVatAmount?: number | undefined;
4459
- /** The total gross amount of the invoice, including all taxes and deductions. */
4552
+ /** The total gross amount of the invoice, including all taxes and deductions.
4553
+ BT-112 in XRechnung. */
4460
4554
  totalGross?: number | undefined;
4461
4555
  /** The total amount that has already been paid for this invoice, e.g. used when
4462
- previous invoice sums are included here that have already been paid. */
4556
+ previous invoice sums are included here that have already been paid.
4557
+ BT-113 in XRechnung. */
4463
4558
  alreadyPaidTotal?: number | undefined;
4559
+ /** If this is given, this specifies if any rounding amount is applied to the invoice,
4560
+ before calculating the TotalToBePaid value.
4561
+ BT-114 in XRechnung. */
4562
+ payableRoundingAmount?: number | undefined;
4464
4563
  /** The sum that needs to be paid for this invoice. This is the total gross amount
4465
- minus the already paid amount. */
4564
+ minus the already paid amount.
4565
+ BT-115 in XRechnung. */
4466
4566
  totalToBePaid?: number | undefined;
4467
4567
  constructor(data?: IInvoiceTotals);
4468
4568
  init(_data?: any): void;
@@ -4471,25 +4571,37 @@ minus the already paid amount. */
4471
4571
  }
4472
4572
  /** Totals for the invoice */
4473
4573
  export interface IInvoiceTotals {
4474
- /** Sum of all invoice items in net. */
4574
+ /** Sum of all invoice items in net.
4575
+ BT-106 in XRechnung. */
4475
4576
  totalNet?: number | undefined;
4476
- /** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice */
4577
+ /** This is the sum of all allowances (e.g. deductions or withheld tax) in the invoice
4578
+ BT-107 in XRechnung. */
4477
4579
  totalAllowances?: number | undefined;
4478
4580
  /** This is the sum of all charges in the invoice, except VAT. For example, late
4479
- fees or surcharges. */
4581
+ fees or surcharges.
4582
+ BT-108 in XRechnung. */
4480
4583
  totalCharges?: number | undefined;
4481
4584
  /** This is the total net value of the invoice after applied allowances and charges,
4482
- meaning the actual net sum to be paid. */
4585
+ meaning the actual net sum to be paid.
4586
+ BT-109 in XRechnung. */
4483
4587
  totalAfterDeductions?: number | undefined;
4484
- /** The total amount of VAT in the invoice. */
4588
+ /** The total amount of VAT in the invoice.
4589
+ BT-110 in XRechnung. */
4485
4590
  totalVatAmount?: number | undefined;
4486
- /** The total gross amount of the invoice, including all taxes and deductions. */
4591
+ /** The total gross amount of the invoice, including all taxes and deductions.
4592
+ BT-112 in XRechnung. */
4487
4593
  totalGross?: number | undefined;
4488
4594
  /** The total amount that has already been paid for this invoice, e.g. used when
4489
- previous invoice sums are included here that have already been paid. */
4595
+ previous invoice sums are included here that have already been paid.
4596
+ BT-113 in XRechnung. */
4490
4597
  alreadyPaidTotal?: number | undefined;
4598
+ /** If this is given, this specifies if any rounding amount is applied to the invoice,
4599
+ before calculating the TotalToBePaid value.
4600
+ BT-114 in XRechnung. */
4601
+ payableRoundingAmount?: number | undefined;
4491
4602
  /** The sum that needs to be paid for this invoice. This is the total gross amount
4492
- minus the already paid amount. */
4603
+ minus the already paid amount.
4604
+ BT-115 in XRechnung. */
4493
4605
  totalToBePaid?: number | undefined;
4494
4606
  }
4495
4607
  /** Instructions how payment for an invoice should be provided. */
@@ -4528,18 +4640,27 @@ Field BT-90 in XRechnung. */
4528
4640
  }
4529
4641
  /** Represents a payment means for an invoice */
4530
4642
  export declare class PaymentMeans implements IPaymentMeans {
4531
- /** This is typically the IBAN or account number */
4643
+ /** This is typically the IBAN or account number
4644
+ BT-84 in XRechnung. */
4532
4645
  accountIdentifier?: string | undefined;
4533
4646
  /** The name for the account, typically the name of the owner for
4534
- a bank account. */
4647
+ a bank account.
4648
+ BT-85 in XRechnung. */
4535
4649
  accountName?: string | undefined;
4536
- /** This can be the BIC */
4650
+ /** This can be the BIC
4651
+ BT-86 in XRechnung. */
4537
4652
  serviceProviderIdentifier?: string | undefined;
4538
4653
  /** If used, this is the mandate id for direct debit under which
4539
- the direct debit will be performed */
4654
+ the direct debit will be performed
4655
+ BT-89 in XRechnung. */
4540
4656
  directDebitMandateId?: string | undefined;
4541
- /** If used, this is the IBAN for direct debit */
4657
+ /** If used, this is the IBAN for direct debit
4658
+ BT-91 in XRechnung. */
4542
4659
  directDebitIban?: string | undefined;
4660
+ /** The payment id, e.g. a reference number for the payment. In German,
4661
+ this would be called "Verwendungszweck".
4662
+ BT-83 in XRechnung. */
4663
+ paymentId?: string | undefined;
4543
4664
  constructor(data?: IPaymentMeans);
4544
4665
  init(_data?: any): void;
4545
4666
  static fromJS(data: any): PaymentMeans;
@@ -4547,18 +4668,27 @@ the direct debit will be performed */
4547
4668
  }
4548
4669
  /** Represents a payment means for an invoice */
4549
4670
  export interface IPaymentMeans {
4550
- /** This is typically the IBAN or account number */
4671
+ /** This is typically the IBAN or account number
4672
+ BT-84 in XRechnung. */
4551
4673
  accountIdentifier?: string | undefined;
4552
4674
  /** The name for the account, typically the name of the owner for
4553
- a bank account. */
4675
+ a bank account.
4676
+ BT-85 in XRechnung. */
4554
4677
  accountName?: string | undefined;
4555
- /** This can be the BIC */
4678
+ /** This can be the BIC
4679
+ BT-86 in XRechnung. */
4556
4680
  serviceProviderIdentifier?: string | undefined;
4557
4681
  /** If used, this is the mandate id for direct debit under which
4558
- the direct debit will be performed */
4682
+ the direct debit will be performed
4683
+ BT-89 in XRechnung. */
4559
4684
  directDebitMandateId?: string | undefined;
4560
- /** If used, this is the IBAN for direct debit */
4685
+ /** If used, this is the IBAN for direct debit
4686
+ BT-91 in XRechnung. */
4561
4687
  directDebitIban?: string | undefined;
4688
+ /** The payment id, e.g. a reference number for the payment. In German,
4689
+ this would be called "Verwendungszweck".
4690
+ BT-83 in XRechnung. */
4691
+ paymentId?: string | undefined;
4562
4692
  }
4563
4693
  /** Represents a document / attachment that is included with the invoice */
4564
4694
  export declare class SupportingDocument implements ISupportingDocument {
package/api.js CHANGED
@@ -7,7 +7,7 @@
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  exports.ArticleDataDto = exports.ProductDataDto = exports.ServiceTypeDto = exports.PriceTypeDto = exports.PositionTypeDto = exports.ItemNumberDto = exports.ComissionStatusDto = exports.STLBKeyDto = exports.STLBReferenceDto = exports.StandardReferenceTypeDto = exports.StandardizedDescriptionDto = exports.AdditionTypeDto = exports.SubDescriptionDto = exports.PriceComponentDto = exports.CalculationDto = exports.LabourPriceComponentDto = exports.PositionDto = exports.CatalogueReferenceDto = exports.CatalogueTypeDto = exports.CatalogueDto = exports.IElementDto = exports.ServiceSpecificationDto = exports.SpecialAwardKindDto = exports.AwardTypeDto = exports.PriceComponentTypeDto = exports.ItemNumberSchemaTierTypeDto = exports.ItemNumberSchemaTierAlignmentDto = exports.ItemNumberTypeDto = exports.ItemNumberSchemaTierDto = exports.ItemNumberSchemaDto = exports.BankingInformationDto = exports.PartyInformationDto = exports.ProjectInformationDto = exports.PriceRoundingModeDto = exports.ProjectDto = exports.DanglIdentityApi = exports.XRechnungConversionApi = exports.ValidationApi = exports.UglConversionApi = exports.StatusApi = exports.SiaConversionApi = exports.RebConversionApi = exports.OenormConversionApi = exports.IdsConnectConversionApi = exports.GaebConversionApi = exports.FlatAvaConversionApi = exports.ExcelConversionApi = exports.DatanormConversionApi = exports.AvaConversionApi = exports.AslvConversionApi = void 0;
9
9
  exports.PostGaebDestinationOptions = exports.PostOenormDestinationOptions = exports.PostAvaSourceOptions = exports.PostAvaProjectValidationSourceOptions = exports.FileValidationSourceType = exports.ValidationType = exports.ProjectValidationCheckDetails = exports.XmlSchemaValidationCheckDetails = exports.ObjectValidationCheckDetails = exports.ValidationCheckType = exports.ValidationSeverity = exports.ValidationCheckResult = exports.ValidationResult = exports.GetStatus = exports.IdsConnectVersion = exports.UglDestinationVersion = exports.DatanormDestinationVersion = exports.SiaDestinationType = exports.DestinationRebType = exports.DestinationOenormType = exports.DestinationGaebExchangePhase = exports.DestinationGaebType = exports.FlatElementDto = exports.FlatAvaProject = exports.ApiError = exports.CommerceInquiryTypeDto = exports.ServiceSpecificationCommercePropertiesDto = exports.DurationUnitDto = exports.WarrantyDurationDto = exports.TradeDiscountDto = exports.PriceInformationDto = exports.OriginDto = exports.ExchangePhaseDto = exports.OenormPropertiesDto = exports.GrossPriceComponentDto = exports.ServiceSpecificationGroupDto = exports.OenormNoteTextPropertiesDto = exports.NoteTextDto = exports.ExecutionDescriptionDto = exports.PriceCatalogueDataDto = exports.HoldOutDurationUnitDto = exports.HoldOutTypeDto = exports.PositionHoldOutPropertiesDto = exports.PositionComplementingTypeDto = exports.AddendumStatusDto = exports.OenormOriginCodeDto = exports.OenormPositionPropertiesDto = exports.ComplementedByQuantityDto = exports.CommercePropertiesDto = exports.QuantityAssignmentDto = void 0;
10
- exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.AvaProjectWrapper = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.InvoiceCharge = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentInstructions = exports.InvoiceTotals = exports.InvoicePeriod = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.References = exports.InvoiceType = exports.Invoice = void 0;
10
+ exports.ApiException = exports.SwaggerResponse = exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.AvaProjectWrapper = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.InvoiceCharge = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentInstructions = exports.InvoiceTotals = exports.DeliveryAddress = exports.DeliveryInformation = exports.InvoicePeriod = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.References = exports.InvoiceType = exports.Invoice = void 0;
11
11
  /* tslint:disable */
12
12
  /* eslint-disable */
13
13
  // ReSharper disable InconsistentNaming
@@ -9068,6 +9068,7 @@ class Invoice {
9068
9068
  }
9069
9069
  }
9070
9070
  this.invoicePeriod = data.invoicePeriod && !data.invoicePeriod.toJSON ? new InvoicePeriod(data.invoicePeriod) : this.invoicePeriod;
9071
+ this.deliveryInformation = data.deliveryInformation && !data.deliveryInformation.toJSON ? new DeliveryInformation(data.deliveryInformation) : this.deliveryInformation;
9071
9072
  this.totals = data.totals && !data.totals.toJSON ? new InvoiceTotals(data.totals) : this.totals;
9072
9073
  this.paymentInstructions = data.paymentInstructions && !data.paymentInstructions.toJSON ? new PaymentInstructions(data.paymentInstructions) : this.paymentInstructions;
9073
9074
  if (data.documents) {
@@ -9130,6 +9131,7 @@ class Invoice {
9130
9131
  this.invoiceNotes.push(InvoiceNote.fromJS(item));
9131
9132
  }
9132
9133
  this.invoicePeriod = _data["invoicePeriod"] ? InvoicePeriod.fromJS(_data["invoicePeriod"]) : undefined;
9134
+ this.deliveryInformation = _data["deliveryInformation"] ? DeliveryInformation.fromJS(_data["deliveryInformation"]) : undefined;
9133
9135
  this.totals = _data["totals"] ? InvoiceTotals.fromJS(_data["totals"]) : undefined;
9134
9136
  this.paymentInstructions = _data["paymentInstructions"] ? PaymentInstructions.fromJS(_data["paymentInstructions"]) : undefined;
9135
9137
  if (Array.isArray(_data["documents"])) {
@@ -9189,6 +9191,7 @@ class Invoice {
9189
9191
  data["invoiceNotes"].push(item.toJSON());
9190
9192
  }
9191
9193
  data["invoicePeriod"] = this.invoicePeriod ? this.invoicePeriod.toJSON() : undefined;
9194
+ data["deliveryInformation"] = this.deliveryInformation ? this.deliveryInformation.toJSON() : undefined;
9192
9195
  data["totals"] = this.totals ? this.totals.toJSON() : undefined;
9193
9196
  data["paymentInstructions"] = this.paymentInstructions ? this.paymentInstructions.toJSON() : undefined;
9194
9197
  if (Array.isArray(this.documents)) {
@@ -9254,6 +9257,7 @@ class References {
9254
9257
  this.dispatchAdviceReference = _data["dispatchAdviceReference"];
9255
9258
  this.tenderOrLotReference = _data["tenderOrLotReference"];
9256
9259
  this.invoicedObjectIdentifier = _data["invoicedObjectIdentifier"];
9260
+ this.accountingReference = _data["accountingReference"];
9257
9261
  }
9258
9262
  }
9259
9263
  static fromJS(data) {
@@ -9273,6 +9277,7 @@ class References {
9273
9277
  data["dispatchAdviceReference"] = this.dispatchAdviceReference;
9274
9278
  data["tenderOrLotReference"] = this.tenderOrLotReference;
9275
9279
  data["invoicedObjectIdentifier"] = this.invoicedObjectIdentifier;
9280
+ data["accountingReference"] = this.accountingReference;
9276
9281
  return data;
9277
9282
  }
9278
9283
  }
@@ -9333,6 +9338,7 @@ class Organization {
9333
9338
  this.zipCode = _data["zipCode"];
9334
9339
  this.countryCode = _data["countryCode"];
9335
9340
  this.state = _data["state"];
9341
+ this.additionalLegalInformation = _data["additionalLegalInformation"];
9336
9342
  }
9337
9343
  }
9338
9344
  static fromJS(data) {
@@ -9357,6 +9363,7 @@ class Organization {
9357
9363
  data["zipCode"] = this.zipCode;
9358
9364
  data["countryCode"] = this.countryCode;
9359
9365
  data["state"] = this.state;
9366
+ data["additionalLegalInformation"] = this.additionalLegalInformation;
9360
9367
  return data;
9361
9368
  }
9362
9369
  }
@@ -9453,6 +9460,75 @@ class InvoicePeriod {
9453
9460
  }
9454
9461
  }
9455
9462
  exports.InvoicePeriod = InvoicePeriod;
9463
+ /** Information about the delivery */
9464
+ class DeliveryInformation {
9465
+ constructor(data) {
9466
+ if (data) {
9467
+ for (var property in data) {
9468
+ if (data.hasOwnProperty(property))
9469
+ this[property] = data[property];
9470
+ }
9471
+ this.deliveryAddress = data.deliveryAddress && !data.deliveryAddress.toJSON ? new DeliveryAddress(data.deliveryAddress) : this.deliveryAddress;
9472
+ }
9473
+ }
9474
+ init(_data) {
9475
+ if (_data) {
9476
+ this.deliverToName = _data["deliverToName"];
9477
+ this.deliverToLocationIdentifier = _data["deliverToLocationIdentifier"];
9478
+ this.deliveryDate = _data["deliveryDate"] ? new Date(_data["deliveryDate"].toString()) : undefined;
9479
+ this.deliveryAddress = _data["deliveryAddress"] ? DeliveryAddress.fromJS(_data["deliveryAddress"]) : undefined;
9480
+ }
9481
+ }
9482
+ static fromJS(data) {
9483
+ data = typeof data === 'object' ? data : {};
9484
+ let result = new DeliveryInformation();
9485
+ result.init(data);
9486
+ return result;
9487
+ }
9488
+ toJSON(data) {
9489
+ data = typeof data === 'object' ? data : {};
9490
+ data["deliverToName"] = this.deliverToName;
9491
+ data["deliverToLocationIdentifier"] = this.deliverToLocationIdentifier;
9492
+ data["deliveryDate"] = this.deliveryDate ? this.deliveryDate.toISOString() : undefined;
9493
+ data["deliveryAddress"] = this.deliveryAddress ? this.deliveryAddress.toJSON() : undefined;
9494
+ return data;
9495
+ }
9496
+ }
9497
+ exports.DeliveryInformation = DeliveryInformation;
9498
+ /** Address for deliveries */
9499
+ class DeliveryAddress {
9500
+ constructor(data) {
9501
+ if (data) {
9502
+ for (var property in data) {
9503
+ if (data.hasOwnProperty(property))
9504
+ this[property] = data[property];
9505
+ }
9506
+ }
9507
+ }
9508
+ init(_data) {
9509
+ if (_data) {
9510
+ this.address = _data["address"];
9511
+ this.city = _data["city"];
9512
+ this.zipCode = _data["zipCode"];
9513
+ this.countryCode = _data["countryCode"];
9514
+ }
9515
+ }
9516
+ static fromJS(data) {
9517
+ data = typeof data === 'object' ? data : {};
9518
+ let result = new DeliveryAddress();
9519
+ result.init(data);
9520
+ return result;
9521
+ }
9522
+ toJSON(data) {
9523
+ data = typeof data === 'object' ? data : {};
9524
+ data["address"] = this.address;
9525
+ data["city"] = this.city;
9526
+ data["zipCode"] = this.zipCode;
9527
+ data["countryCode"] = this.countryCode;
9528
+ return data;
9529
+ }
9530
+ }
9531
+ exports.DeliveryAddress = DeliveryAddress;
9456
9532
  /** Totals for the invoice */
9457
9533
  class InvoiceTotals {
9458
9534
  constructor(data) {
@@ -9472,6 +9548,7 @@ class InvoiceTotals {
9472
9548
  this.totalVatAmount = _data["totalVatAmount"];
9473
9549
  this.totalGross = _data["totalGross"];
9474
9550
  this.alreadyPaidTotal = _data["alreadyPaidTotal"];
9551
+ this.payableRoundingAmount = _data["payableRoundingAmount"];
9475
9552
  this.totalToBePaid = _data["totalToBePaid"];
9476
9553
  }
9477
9554
  }
@@ -9490,6 +9567,7 @@ class InvoiceTotals {
9490
9567
  data["totalVatAmount"] = this.totalVatAmount;
9491
9568
  data["totalGross"] = this.totalGross;
9492
9569
  data["alreadyPaidTotal"] = this.alreadyPaidTotal;
9570
+ data["payableRoundingAmount"] = this.payableRoundingAmount;
9493
9571
  data["totalToBePaid"] = this.totalToBePaid;
9494
9572
  return data;
9495
9573
  }
@@ -9561,6 +9639,7 @@ class PaymentMeans {
9561
9639
  this.serviceProviderIdentifier = _data["serviceProviderIdentifier"];
9562
9640
  this.directDebitMandateId = _data["directDebitMandateId"];
9563
9641
  this.directDebitIban = _data["directDebitIban"];
9642
+ this.paymentId = _data["paymentId"];
9564
9643
  }
9565
9644
  }
9566
9645
  static fromJS(data) {
@@ -9576,6 +9655,7 @@ class PaymentMeans {
9576
9655
  data["serviceProviderIdentifier"] = this.serviceProviderIdentifier;
9577
9656
  data["directDebitMandateId"] = this.directDebitMandateId;
9578
9657
  data["directDebitIban"] = this.directDebitIban;
9658
+ data["paymentId"] = this.paymentId;
9579
9659
  return data;
9580
9660
  }
9581
9661
  }