@dangl/avacloud-client-node 1.30.0 → 1.31.0

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 +406 -2
  2. package/api.js +30 -2
  3. package/api.js.map +1 -1
  4. package/api.ts +410 -4
  5. package/package.json +1 -1
package/api.js CHANGED
@@ -6247,6 +6247,7 @@ class ItemNumberSchemaDto {
6247
6247
  this.skippedTiersFiller = _data["skippedTiersFiller"];
6248
6248
  this.schemaIsCorrectlyDefined = _data["schemaIsCorrectlyDefined"];
6249
6249
  this.allowUpperCaseLettering = _data["allowUpperCaseLettering"];
6250
+ this.disableLeftPaddingTiersWithFiller = _data["disableLeftPaddingTiersWithFiller"];
6250
6251
  }
6251
6252
  }
6252
6253
  static fromJS(data) {
@@ -6270,6 +6271,7 @@ class ItemNumberSchemaDto {
6270
6271
  data["skippedTiersFiller"] = this.skippedTiersFiller;
6271
6272
  data["schemaIsCorrectlyDefined"] = this.schemaIsCorrectlyDefined;
6272
6273
  data["allowUpperCaseLettering"] = this.allowUpperCaseLettering;
6274
+ data["disableLeftPaddingTiersWithFiller"] = this.disableLeftPaddingTiersWithFiller;
6273
6275
  return data;
6274
6276
  }
6275
6277
  }
@@ -8976,6 +8978,7 @@ class PostGaebDestinationOptions {
8976
8978
  }
8977
8979
  }
8978
8980
  exports.PostGaebDestinationOptions = PostGaebDestinationOptions;
8981
+ /** This class represents an invoice */
8979
8982
  class Invoice {
8980
8983
  constructor(data) {
8981
8984
  if (data) {
@@ -9155,6 +9158,7 @@ class Invoice {
9155
9158
  }
9156
9159
  }
9157
9160
  exports.Invoice = Invoice;
9161
+ /** Type of the invoice */
9158
9162
  var InvoiceType;
9159
9163
  (function (InvoiceType) {
9160
9164
  InvoiceType["PartialInvoice"] = "PartialInvoice";
@@ -9166,6 +9170,7 @@ var InvoiceType;
9166
9170
  InvoiceType["PartialFinalConstructionInvoice"] = "PartialFinalConstructionInvoice";
9167
9171
  InvoiceType["FinalConstructionInvoice"] = "FinalConstructionInvoice";
9168
9172
  })(InvoiceType = exports.InvoiceType || (exports.InvoiceType = {}));
9173
+ /** This class holds typical references used in an invoice */
9169
9174
  class References {
9170
9175
  constructor(data) {
9171
9176
  if (data) {
@@ -9209,6 +9214,7 @@ class References {
9209
9214
  }
9210
9215
  }
9211
9216
  exports.References = References;
9217
+ /** References to previous invoices */
9212
9218
  class PreviousInvoice {
9213
9219
  constructor(data) {
9214
9220
  if (data) {
@@ -9238,6 +9244,7 @@ class PreviousInvoice {
9238
9244
  }
9239
9245
  }
9240
9246
  exports.PreviousInvoice = PreviousInvoice;
9247
+ /** Represents an organization, e.g. a buyer or a seller */
9241
9248
  class Organization {
9242
9249
  constructor(data) {
9243
9250
  if (data) {
@@ -9285,6 +9292,7 @@ class Organization {
9285
9292
  }
9286
9293
  }
9287
9294
  exports.Organization = Organization;
9295
+ /** Represents a payee, meaning someone that receives the payment */
9288
9296
  class Payee {
9289
9297
  constructor(data) {
9290
9298
  if (data) {
@@ -9316,6 +9324,7 @@ class Payee {
9316
9324
  }
9317
9325
  }
9318
9326
  exports.Payee = Payee;
9327
+ /** Represents a note / text in an invoice */
9319
9328
  class InvoiceNote {
9320
9329
  constructor(data) {
9321
9330
  if (data) {
@@ -9345,6 +9354,7 @@ class InvoiceNote {
9345
9354
  }
9346
9355
  }
9347
9356
  exports.InvoiceNote = InvoiceNote;
9357
+ /** Represents an invoice period with start and end dates */
9348
9358
  class InvoicePeriod {
9349
9359
  constructor(data) {
9350
9360
  if (data) {
@@ -9374,6 +9384,7 @@ class InvoicePeriod {
9374
9384
  }
9375
9385
  }
9376
9386
  exports.InvoicePeriod = InvoicePeriod;
9387
+ /** Totals for the invoice */
9377
9388
  class InvoiceTotals {
9378
9389
  constructor(data) {
9379
9390
  if (data) {
@@ -9415,6 +9426,7 @@ class InvoiceTotals {
9415
9426
  }
9416
9427
  }
9417
9428
  exports.InvoiceTotals = InvoiceTotals;
9429
+ /** Instructions how payment for an invoice should be provided. */
9418
9430
  class PaymentInstructions {
9419
9431
  constructor(data) {
9420
9432
  if (data) {
@@ -9461,6 +9473,7 @@ class PaymentInstructions {
9461
9473
  }
9462
9474
  }
9463
9475
  exports.PaymentInstructions = PaymentInstructions;
9476
+ /** Represents a payment means for an invoice */
9464
9477
  class PaymentMeans {
9465
9478
  constructor(data) {
9466
9479
  if (data) {
@@ -9492,6 +9505,7 @@ class PaymentMeans {
9492
9505
  }
9493
9506
  }
9494
9507
  exports.PaymentMeans = PaymentMeans;
9508
+ /** Represents a document / attachment that is included with the invoice */
9495
9509
  class SupportingDocument {
9496
9510
  constructor(data) {
9497
9511
  if (data) {
@@ -9529,6 +9543,7 @@ class SupportingDocument {
9529
9543
  }
9530
9544
  }
9531
9545
  exports.SupportingDocument = SupportingDocument;
9546
+ /** Describes a mimne type of a document */
9532
9547
  var AttachmentMimeType;
9533
9548
  (function (AttachmentMimeType) {
9534
9549
  AttachmentMimeType["Unknown"] = "Unknown";
@@ -9539,6 +9554,7 @@ var AttachmentMimeType;
9539
9554
  AttachmentMimeType["Excel"] = "Excel";
9540
9555
  AttachmentMimeType["OpenOfficeSpreadsheet"] = "OpenOfficeSpreadsheet";
9541
9556
  })(AttachmentMimeType = exports.AttachmentMimeType || (exports.AttachmentMimeType = {}));
9557
+ /** Describes the VAT breakdown for an invoice in a single VAT category */
9542
9558
  class VatBreakdown {
9543
9559
  constructor(data) {
9544
9560
  if (data) {
@@ -9576,6 +9592,7 @@ class VatBreakdown {
9576
9592
  }
9577
9593
  }
9578
9594
  exports.VatBreakdown = VatBreakdown;
9595
+ /** The category used in a VatBreakdown"/> */
9579
9596
  var VatCategory;
9580
9597
  (function (VatCategory) {
9581
9598
  VatCategory["Unknown"] = "Unknown";
@@ -9589,6 +9606,7 @@ var VatCategory;
9589
9606
  VatCategory["CanaryIslandsGeneralIndirectTax"] = "CanaryIslandsGeneralIndirectTax";
9590
9607
  VatCategory["TaxInCeutaAndMelilla"] = "TaxInCeutaAndMelilla";
9591
9608
  })(VatCategory = exports.VatCategory || (exports.VatCategory = {}));
9609
+ /** This describes an allowance in an invoice, which is a deduction from the total amount */
9592
9610
  class InvoiceAllowance {
9593
9611
  constructor(data) {
9594
9612
  if (data) {
@@ -9628,6 +9646,7 @@ class InvoiceAllowance {
9628
9646
  }
9629
9647
  }
9630
9648
  exports.InvoiceAllowance = InvoiceAllowance;
9649
+ /** This describes an charge in an invoice, which is a surcharge to the total amount */
9631
9650
  class InvoiceCharge {
9632
9651
  constructor(data) {
9633
9652
  if (data) {
@@ -9667,6 +9686,7 @@ class InvoiceCharge {
9667
9686
  }
9668
9687
  }
9669
9688
  exports.InvoiceCharge = InvoiceCharge;
9689
+ /** Represents a single invoice line item */
9670
9690
  class InvoiceLineItem {
9671
9691
  constructor(data) {
9672
9692
  if (data) {
@@ -9783,6 +9803,7 @@ class InvoiceLineItem {
9783
9803
  }
9784
9804
  }
9785
9805
  exports.InvoiceLineItem = InvoiceLineItem;
9806
+ /** Allowance for a single line item */
9786
9807
  class LineItemAllowance {
9787
9808
  constructor(data) {
9788
9809
  if (data) {
@@ -9818,6 +9839,7 @@ class LineItemAllowance {
9818
9839
  }
9819
9840
  }
9820
9841
  exports.LineItemAllowance = LineItemAllowance;
9842
+ /** Charge for a single line item */
9821
9843
  class LineItemCharge {
9822
9844
  constructor(data) {
9823
9845
  if (data) {
@@ -9853,6 +9875,7 @@ class LineItemCharge {
9853
9875
  }
9854
9876
  }
9855
9877
  exports.LineItemCharge = LineItemCharge;
9878
+ /** Price details about a line item */
9856
9879
  class LineItemPriceDetail {
9857
9880
  constructor(data) {
9858
9881
  if (data) {
@@ -9865,7 +9888,7 @@ class LineItemPriceDetail {
9865
9888
  init(_data) {
9866
9889
  if (_data) {
9867
9890
  this.netPrice = _data["netPrice"];
9868
- this.discount = _data["discount"];
9891
+ this.absoluteDiscountPerItem = _data["absoluteDiscountPerItem"];
9869
9892
  this.grossPrice = _data["grossPrice"];
9870
9893
  this.baseQuantity = _data["baseQuantity"];
9871
9894
  this.baseQuantityUnitCode = _data["baseQuantityUnitCode"];
@@ -9880,7 +9903,7 @@ class LineItemPriceDetail {
9880
9903
  toJSON(data) {
9881
9904
  data = typeof data === 'object' ? data : {};
9882
9905
  data["netPrice"] = this.netPrice;
9883
- data["discount"] = this.discount;
9906
+ data["absoluteDiscountPerItem"] = this.absoluteDiscountPerItem;
9884
9907
  data["grossPrice"] = this.grossPrice;
9885
9908
  data["baseQuantity"] = this.baseQuantity;
9886
9909
  data["baseQuantityUnitCode"] = this.baseQuantityUnitCode;
@@ -9888,6 +9911,7 @@ class LineItemPriceDetail {
9888
9911
  }
9889
9912
  }
9890
9913
  exports.LineItemPriceDetail = LineItemPriceDetail;
9914
+ /** VAT information for a single line item */
9891
9915
  class LineItemVatInformation {
9892
9916
  constructor(data) {
9893
9917
  if (data) {
@@ -9917,6 +9941,7 @@ class LineItemVatInformation {
9917
9941
  }
9918
9942
  }
9919
9943
  exports.LineItemVatInformation = LineItemVatInformation;
9944
+ /** Information about a single line item */
9920
9945
  class LineItemInformation {
9921
9946
  constructor(data) {
9922
9947
  if (data) {
@@ -9981,6 +10006,7 @@ class LineItemInformation {
9981
10006
  }
9982
10007
  }
9983
10008
  exports.LineItemInformation = LineItemInformation;
10009
+ /** A key-value pair for additional information */
9984
10010
  class LineItemAttribute {
9985
10011
  constructor(data) {
9986
10012
  if (data) {
@@ -10010,12 +10036,14 @@ class LineItemAttribute {
10010
10036
  }
10011
10037
  }
10012
10038
  exports.LineItemAttribute = LineItemAttribute;
10039
+ /** This enum represents the source of an invoice, e.g. from which format it was imported */
10013
10040
  var SourceType;
10014
10041
  (function (SourceType) {
10015
10042
  SourceType["Self"] = "Self";
10016
10043
  SourceType["Ubl"] = "Ubl";
10017
10044
  SourceType["Cii"] = "Cii";
10018
10045
  })(SourceType = exports.SourceType || (exports.SourceType = {}));
10046
+ /** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
10019
10047
  class AvaProjectWrapper {
10020
10048
  constructor(data) {
10021
10049
  if (data) {