@dangl/avacloud-client-node 1.63.5-avacloud-preview → 1.63.6-beta0002-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 +40 -25
  2. package/api.js +46 -36
  3. package/api.js.map +1 -1
  4. package/api.ts +74 -58
  5. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -1646,6 +1646,7 @@ export declare class XRechnungConversionApi {
1646
1646
  xRechnungConversionConvertInvoiceToXRechnungWithRequestObject(invoice: Invoice, options?: {
1647
1647
  targetFormat?: DestinationXRechnungFormat | undefined;
1648
1648
  disablePriceRounding?: boolean | undefined;
1649
+ disableBrandingComment?: boolean | undefined;
1649
1650
  }): Promise<SwaggerResponse<FileResponse>>;
1650
1651
  /**
1651
1652
  * This will convert an Invoice object to an XRechnung file
@@ -1653,8 +1654,10 @@ export declare class XRechnungConversionApi {
1653
1654
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
1654
1655
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1655
1656
  Otherwise, prices will by default be rounded to two decimal places.
1657
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
1658
+ indicating their origin. This is false by default, meaning the comment will be included.
1656
1659
  */
1657
- xRechnungConversionConvertInvoiceToXRechnung(invoice: Invoice, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1660
+ xRechnungConversionConvertInvoiceToXRechnung(invoice: Invoice, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined, disableBrandingComment?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1658
1661
  protected processXRechnungConversionConvertInvoiceToXRechnung(response: Response): Promise<SwaggerResponse<FileResponse>>;
1659
1662
  /**
1660
1663
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
@@ -1662,6 +1665,7 @@ export declare class XRechnungConversionApi {
1662
1665
  xRechnungConversionConvertAvaToXRechnungWithRequestObject(avaWrapper: AvaProjectWrapper, options?: {
1663
1666
  targetFormat?: DestinationXRechnungFormat | undefined;
1664
1667
  disablePriceRounding?: boolean | undefined;
1668
+ disableBrandingComment?: boolean | undefined;
1665
1669
  }): Promise<SwaggerResponse<FileResponse>>;
1666
1670
  /**
1667
1671
  * This will convert an AVA wrapper object to an XRechnung file
@@ -1669,8 +1673,10 @@ export declare class XRechnungConversionApi {
1669
1673
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
1670
1674
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1671
1675
  Otherwise, prices will by default be rounded to two decimal places.
1676
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
1677
+ indicating their origin. This is false by default, meaning the comment will be included.
1672
1678
  */
1673
- xRechnungConversionConvertAvaToXRechnung(avaWrapper: AvaProjectWrapper, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1679
+ xRechnungConversionConvertAvaToXRechnung(avaWrapper: AvaProjectWrapper, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined, disableBrandingComment?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1674
1680
  protected processXRechnungConversionConvertAvaToXRechnung(response: Response): Promise<SwaggerResponse<FileResponse>>;
1675
1681
  /**
1676
1682
  * This will convert an Invoice object to a PDF file
@@ -1688,6 +1694,7 @@ export declare class XRechnungConversionApi {
1688
1694
  xRechnungConversionMergeInvoiceIntoPdfFileWithRequestObject(pdfEmbeddModel: PostXRechnungPdfEmbedd, options?: {
1689
1695
  targetFormat?: DestinationXRechnungFormat | undefined;
1690
1696
  disablePriceRounding?: boolean | undefined;
1697
+ disableBrandingComment?: boolean | undefined;
1691
1698
  }): Promise<SwaggerResponse<FileResponse>>;
1692
1699
  /**
1693
1700
  * This will embedd an XRechnung file into an existing PDF file as an attachment.
@@ -1695,8 +1702,10 @@ export declare class XRechnungConversionApi {
1695
1702
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
1696
1703
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1697
1704
  Otherwise, prices will by default be rounded to two decimal places.
1705
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
1706
+ indicating their origin. This is false by default, meaning the comment will be included.
1698
1707
  */
1699
- xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel: PostXRechnungPdfEmbedd, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1708
+ xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel: PostXRechnungPdfEmbedd, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined, disableBrandingComment?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1700
1709
  protected processXRechnungConversionMergeInvoiceIntoPdfFile(response: Response): Promise<SwaggerResponse<FileResponse>>;
1701
1710
  }
1702
1711
  export declare class DanglIdentityApi {
@@ -6506,10 +6515,12 @@ export declare class FacturXData implements IFacturXData {
6506
6515
  /** The field BT-20 in XRechnung can only hold one payment term, but Factur-X / ZUGFeRD
6507
6516
  allows multiple payment terms. If the invoice was originally created in Factur-X / ZUGFeRD format,
6508
6517
  then this property holds all additional payment terms except the first one. Similar,
6509
- on export, this property is used to export additional payment terms to Factur-X / ZUGFeRD. */
6510
- additionalPaymentTerms?: string[] | undefined;
6511
- /** Factur-X / ZUGFeRD allows a more detailled representation of payment discount terms. */
6512
- facturXPaymentDiscountTerms?: FacturXPaymentDiscountTerm[] | undefined;
6518
+ on export, this property is used to export additional payment terms to Factur-X / ZUGFeRD.
6519
+ Factur-X / ZUGFeRD also allows a more detailled representation of payment terms,
6520
+ so they are given in a special object instead of just a string.
6521
+ If those are present, the regular PaymentTerms will be ignored on export
6522
+ to the CII / Factur-X format, as the information in this object is more detailled. */
6523
+ facturXPaymentTerms?: FacturXPaymentTerm[] | undefined;
6513
6524
  constructor(data?: IFacturXData);
6514
6525
  init?(_data?: any): void;
6515
6526
  static fromJS(data: any): FacturXData;
@@ -6520,18 +6531,21 @@ export interface IFacturXData {
6520
6531
  /** The field BT-20 in XRechnung can only hold one payment term, but Factur-X / ZUGFeRD
6521
6532
  allows multiple payment terms. If the invoice was originally created in Factur-X / ZUGFeRD format,
6522
6533
  then this property holds all additional payment terms except the first one. Similar,
6523
- on export, this property is used to export additional payment terms to Factur-X / ZUGFeRD. */
6524
- additionalPaymentTerms?: string[] | undefined;
6525
- /** Factur-X / ZUGFeRD allows a more detailled representation of payment discount terms. */
6526
- facturXPaymentDiscountTerms?: IFacturXPaymentDiscountTerm[] | undefined;
6534
+ on export, this property is used to export additional payment terms to Factur-X / ZUGFeRD.
6535
+ Factur-X / ZUGFeRD also allows a more detailled representation of payment terms,
6536
+ so they are given in a special object instead of just a string.
6537
+ If those are present, the regular PaymentTerms will be ignored on export
6538
+ to the CII / Factur-X format, as the information in this object is more detailled. */
6539
+ facturXPaymentTerms?: IFacturXPaymentTerm[] | undefined;
6527
6540
  }
6528
6541
  /** Factur-X / ZUGFeRD allows a more detailled representation of payment discount terms. If those are present in the invoice, they will be stored in this object. */
6529
- export declare class FacturXPaymentDiscountTerm implements IFacturXPaymentDiscountTerm {
6530
- /** Such payment terms are usually an additional, machine-readable representation of a given payment term,
6531
- so they usually are linked to a specific payment term by its index. Please note that the index is 0-based,
6532
- so the first payment term will refer PaymentTerms, subsequent ones
6533
- will refer to AdditionalPaymentTerms. */
6534
- index?: number | undefined;
6542
+ export declare class FacturXPaymentTerm implements IFacturXPaymentTerm {
6543
+ /** A text description of the payment discount term. BT-20 in XRechnung,
6544
+ but this parent object is only used for Factur-X / ZUGFeRD and holds
6545
+ more detailled information about the payment term. */
6546
+ description?: string | undefined;
6547
+ /** The date until which the payment term applies. */
6548
+ dueDate?: Date | undefined;
6535
6549
  /** The base amount unto which the discount applies. */
6536
6550
  baseAmount?: number | undefined;
6537
6551
  /** The actual discount amount that will be deducted if the payment is done within the specified period. */
@@ -6544,18 +6558,19 @@ will refer to AdditionalPaymentTerms. */
6544
6558
  periodMeasureUnitCode?: string | undefined;
6545
6559
  /** The percentage of the discount, e.g. ".02" for 2%. */
6546
6560
  calculationPercent?: number | undefined;
6547
- constructor(data?: IFacturXPaymentDiscountTerm);
6561
+ constructor(data?: IFacturXPaymentTerm);
6548
6562
  init?(_data?: any): void;
6549
- static fromJS(data: any): FacturXPaymentDiscountTerm;
6563
+ static fromJS(data: any): FacturXPaymentTerm;
6550
6564
  toJSON?(data?: any): any;
6551
6565
  }
6552
6566
  /** Factur-X / ZUGFeRD allows a more detailled representation of payment discount terms. If those are present in the invoice, they will be stored in this object. */
6553
- export interface IFacturXPaymentDiscountTerm {
6554
- /** Such payment terms are usually an additional, machine-readable representation of a given payment term,
6555
- so they usually are linked to a specific payment term by its index. Please note that the index is 0-based,
6556
- so the first payment term will refer PaymentTerms, subsequent ones
6557
- will refer to AdditionalPaymentTerms. */
6558
- index?: number | undefined;
6567
+ export interface IFacturXPaymentTerm {
6568
+ /** A text description of the payment discount term. BT-20 in XRechnung,
6569
+ but this parent object is only used for Factur-X / ZUGFeRD and holds
6570
+ more detailled information about the payment term. */
6571
+ description?: string | undefined;
6572
+ /** The date until which the payment term applies. */
6573
+ dueDate?: Date | undefined;
6559
6574
  /** The base amount unto which the discount applies. */
6560
6575
  baseAmount?: number | undefined;
6561
6576
  /** The actual discount amount that will be deducted if the payment is done within the specified period. */
package/api.js CHANGED
@@ -7,7 +7,7 @@
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
8
  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.AvaMergeApi = exports.AvaConversionApi = exports.AslvConversionApi = void 0;
9
9
  exports.PostAvaProjectValidationSourceOptions = exports.FileValidationSourceType = exports.ValidationType = exports.ProjectValidationCheckDetails = exports.XmlSchemaValidationCheckDetails = exports.ObjectValidationCheckDetails = exports.ValidationCheckType = exports.ValidationSeverity = exports.ValidationCheckResult = exports.ValidationResult = exports.GetStatus = exports.PostAvaProjectMerge = exports.GetProjectMergeResult = 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 = exports.ArticleDataDto = void 0;
10
- exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.PostXRechnungPdfEmbedd = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.FacturXPaymentDiscountTerm = exports.FacturXData = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.ChargeReasonType = exports.InvoiceCharge = exports.AllowanceReasonType = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentType = exports.PaymentInstructions = exports.InvoiceTotals = exports.DeliveryAddress = exports.DeliveryInformation = exports.InvoicePeriod = exports.ShortTextType = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.PaymentTerm = exports.References = exports.InvoiceType = exports.Invoice = exports.PostGaebDestinationOptions = exports.PostOenormDestinationOptions = exports.PostAvaSourceOptions = void 0;
10
+ exports.ClaimGet = exports.UserInfoGet = exports.ForgotPasswordPost = exports.RegisterPost = exports.TokenRefreshPost = exports.TokenLoginPost = exports.ResponseErrorType = exports.HttpStatusCode = exports.TokenResponseGet = exports.LoginPost = exports.PostXRechnungPdfEmbedd = exports.DestinationXRechnungFormat = exports.AvaProjectWrapper = exports.FacturXPaymentTerm = exports.FacturXData = exports.SourceType = exports.LineItemAttribute = exports.LineItemInformation = exports.LineItemVatInformation = exports.LineItemPriceDetail = exports.LineItemCharge = exports.LineItemAllowance = exports.InvoiceLineItem = exports.ChargeReasonType = exports.InvoiceCharge = exports.AllowanceReasonType = exports.InvoiceAllowance = exports.VatCategory = exports.VatBreakdown = exports.AttachmentMimeType = exports.SupportingDocument = exports.PaymentMeans = exports.PaymentType = exports.PaymentInstructions = exports.InvoiceTotals = exports.DeliveryAddress = exports.DeliveryInformation = exports.InvoicePeriod = exports.ShortTextType = exports.InvoiceNote = exports.Payee = exports.Organization = exports.PreviousInvoice = exports.PaymentTerm = exports.References = exports.InvoiceType = exports.Invoice = exports.PostGaebDestinationOptions = exports.PostOenormDestinationOptions = exports.PostAvaSourceOptions = void 0;
11
11
  exports.ApiException = exports.SwaggerResponse = void 0;
12
12
  /* tslint:disable */
13
13
  /* eslint-disable */
@@ -5620,7 +5620,7 @@ class XRechnungConversionApi {
5620
5620
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5621
5621
  */
5622
5622
  xRechnungConversionConvertInvoiceToXRechnungWithRequestObject(invoice, options) {
5623
- return this.xRechnungConversionConvertInvoiceToXRechnung(invoice, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5623
+ return this.xRechnungConversionConvertInvoiceToXRechnung(invoice, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding, options === null || options === void 0 ? void 0 : options.disableBrandingComment);
5624
5624
  }
5625
5625
  /**
5626
5626
  * This will convert an Invoice object to an XRechnung file
@@ -5628,8 +5628,10 @@ class XRechnungConversionApi {
5628
5628
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
5629
5629
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5630
5630
  Otherwise, prices will by default be rounded to two decimal places.
5631
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
5632
+ indicating their origin. This is false by default, meaning the comment will be included.
5631
5633
  */
5632
- xRechnungConversionConvertInvoiceToXRechnung(invoice, targetFormat, disablePriceRounding) {
5634
+ xRechnungConversionConvertInvoiceToXRechnung(invoice, targetFormat, disablePriceRounding, disableBrandingComment) {
5633
5635
  let url_ = this.baseUrl + "/conversion/xrechnung/invoice/xrechnung?";
5634
5636
  if (targetFormat === null)
5635
5637
  throw new Error("The parameter 'targetFormat' cannot be null.");
@@ -5639,6 +5641,10 @@ class XRechnungConversionApi {
5639
5641
  throw new Error("The parameter 'disablePriceRounding' cannot be null.");
5640
5642
  else if (disablePriceRounding !== undefined)
5641
5643
  url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5644
+ if (disableBrandingComment === null)
5645
+ throw new Error("The parameter 'disableBrandingComment' cannot be null.");
5646
+ else if (disableBrandingComment !== undefined)
5647
+ url_ += "DisableBrandingComment=" + encodeURIComponent("" + disableBrandingComment) + "&";
5642
5648
  url_ = url_.replace(/[?&]$/, "");
5643
5649
  const content_ = JSON.stringify(invoice);
5644
5650
  let options_ = {
@@ -5696,7 +5702,7 @@ class XRechnungConversionApi {
5696
5702
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5697
5703
  */
5698
5704
  xRechnungConversionConvertAvaToXRechnungWithRequestObject(avaWrapper, options) {
5699
- return this.xRechnungConversionConvertAvaToXRechnung(avaWrapper, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5705
+ return this.xRechnungConversionConvertAvaToXRechnung(avaWrapper, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding, options === null || options === void 0 ? void 0 : options.disableBrandingComment);
5700
5706
  }
5701
5707
  /**
5702
5708
  * This will convert an AVA wrapper object to an XRechnung file
@@ -5704,8 +5710,10 @@ class XRechnungConversionApi {
5704
5710
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
5705
5711
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5706
5712
  Otherwise, prices will by default be rounded to two decimal places.
5713
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
5714
+ indicating their origin. This is false by default, meaning the comment will be included.
5707
5715
  */
5708
- xRechnungConversionConvertAvaToXRechnung(avaWrapper, targetFormat, disablePriceRounding) {
5716
+ xRechnungConversionConvertAvaToXRechnung(avaWrapper, targetFormat, disablePriceRounding, disableBrandingComment) {
5709
5717
  let url_ = this.baseUrl + "/conversion/xrechnung/ava-wrapper/xrechnung?";
5710
5718
  if (targetFormat === null)
5711
5719
  throw new Error("The parameter 'targetFormat' cannot be null.");
@@ -5715,6 +5723,10 @@ class XRechnungConversionApi {
5715
5723
  throw new Error("The parameter 'disablePriceRounding' cannot be null.");
5716
5724
  else if (disablePriceRounding !== undefined)
5717
5725
  url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5726
+ if (disableBrandingComment === null)
5727
+ throw new Error("The parameter 'disableBrandingComment' cannot be null.");
5728
+ else if (disableBrandingComment !== undefined)
5729
+ url_ += "DisableBrandingComment=" + encodeURIComponent("" + disableBrandingComment) + "&";
5718
5730
  url_ = url_.replace(/[?&]$/, "");
5719
5731
  const content_ = JSON.stringify(avaWrapper);
5720
5732
  let options_ = {
@@ -5888,7 +5900,7 @@ class XRechnungConversionApi {
5888
5900
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5889
5901
  */
5890
5902
  xRechnungConversionMergeInvoiceIntoPdfFileWithRequestObject(pdfEmbeddModel, options) {
5891
- return this.xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5903
+ return this.xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding, options === null || options === void 0 ? void 0 : options.disableBrandingComment);
5892
5904
  }
5893
5905
  /**
5894
5906
  * This will embedd an XRechnung file into an existing PDF file as an attachment.
@@ -5896,8 +5908,10 @@ class XRechnungConversionApi {
5896
5908
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
5897
5909
  * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5898
5910
  Otherwise, prices will by default be rounded to two decimal places.
5911
+ * @param disableBrandingComment (optional) If this is set to true, exported XRechnung files will not contain an XML comment
5912
+ indicating their origin. This is false by default, meaning the comment will be included.
5899
5913
  */
5900
- xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, targetFormat, disablePriceRounding) {
5914
+ xRechnungConversionMergeInvoiceIntoPdfFile(pdfEmbeddModel, targetFormat, disablePriceRounding, disableBrandingComment) {
5901
5915
  let url_ = this.baseUrl + "/conversion/xrechnung/merge?";
5902
5916
  if (targetFormat === null)
5903
5917
  throw new Error("The parameter 'targetFormat' cannot be null.");
@@ -5907,6 +5921,10 @@ class XRechnungConversionApi {
5907
5921
  throw new Error("The parameter 'disablePriceRounding' cannot be null.");
5908
5922
  else if (disablePriceRounding !== undefined)
5909
5923
  url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5924
+ if (disableBrandingComment === null)
5925
+ throw new Error("The parameter 'disableBrandingComment' cannot be null.");
5926
+ else if (disableBrandingComment !== undefined)
5927
+ url_ += "DisableBrandingComment=" + encodeURIComponent("" + disableBrandingComment) + "&";
5910
5928
  url_ = url_.replace(/[?&]$/, "");
5911
5929
  const content_ = JSON.stringify(pdfEmbeddModel);
5912
5930
  let options_ = {
@@ -12293,26 +12311,21 @@ class FacturXData {
12293
12311
  if (data.hasOwnProperty(property))
12294
12312
  this[property] = data[property];
12295
12313
  }
12296
- if (data.facturXPaymentDiscountTerms) {
12297
- this.facturXPaymentDiscountTerms = [];
12298
- for (let i = 0; i < data.facturXPaymentDiscountTerms.length; i++) {
12299
- let item = data.facturXPaymentDiscountTerms[i];
12300
- this.facturXPaymentDiscountTerms[i] = item && !item.toJSON ? new FacturXPaymentDiscountTerm(item) : item;
12314
+ if (data.facturXPaymentTerms) {
12315
+ this.facturXPaymentTerms = [];
12316
+ for (let i = 0; i < data.facturXPaymentTerms.length; i++) {
12317
+ let item = data.facturXPaymentTerms[i];
12318
+ this.facturXPaymentTerms[i] = item && !item.toJSON ? new FacturXPaymentTerm(item) : item;
12301
12319
  }
12302
12320
  }
12303
12321
  }
12304
12322
  }
12305
12323
  init(_data) {
12306
12324
  if (_data) {
12307
- if (Array.isArray(_data["additionalPaymentTerms"])) {
12308
- this.additionalPaymentTerms = [];
12309
- for (let item of _data["additionalPaymentTerms"])
12310
- this.additionalPaymentTerms.push(item);
12311
- }
12312
- if (Array.isArray(_data["facturXPaymentDiscountTerms"])) {
12313
- this.facturXPaymentDiscountTerms = [];
12314
- for (let item of _data["facturXPaymentDiscountTerms"])
12315
- this.facturXPaymentDiscountTerms.push(FacturXPaymentDiscountTerm.fromJS(item));
12325
+ if (Array.isArray(_data["facturXPaymentTerms"])) {
12326
+ this.facturXPaymentTerms = [];
12327
+ for (let item of _data["facturXPaymentTerms"])
12328
+ this.facturXPaymentTerms.push(FacturXPaymentTerm.fromJS(item));
12316
12329
  }
12317
12330
  }
12318
12331
  }
@@ -12324,19 +12337,14 @@ class FacturXData {
12324
12337
  }
12325
12338
  toJSON(data) {
12326
12339
  data = typeof data === 'object' ? data : {};
12327
- if (Array.isArray(this.additionalPaymentTerms)) {
12328
- data["additionalPaymentTerms"] = [];
12329
- for (let item of this.additionalPaymentTerms)
12330
- data["additionalPaymentTerms"].push(item);
12331
- }
12332
- if (Array.isArray(this.facturXPaymentDiscountTerms)) {
12333
- data["facturXPaymentDiscountTerms"] = [];
12334
- for (let item of this.facturXPaymentDiscountTerms)
12340
+ if (Array.isArray(this.facturXPaymentTerms)) {
12341
+ data["facturXPaymentTerms"] = [];
12342
+ for (let item of this.facturXPaymentTerms)
12335
12343
  if (typeof item.toJSON !== "undefined") {
12336
- data["facturXPaymentDiscountTerms"].push(item.toJSON());
12344
+ data["facturXPaymentTerms"].push(item.toJSON());
12337
12345
  }
12338
12346
  else {
12339
- data["facturXPaymentDiscountTerms"].push(item);
12347
+ data["facturXPaymentTerms"].push(item);
12340
12348
  }
12341
12349
  }
12342
12350
  return data;
@@ -12344,7 +12352,7 @@ class FacturXData {
12344
12352
  }
12345
12353
  exports.FacturXData = FacturXData;
12346
12354
  /** Factur-X / ZUGFeRD allows a more detailled representation of payment discount terms. If those are present in the invoice, they will be stored in this object. */
12347
- class FacturXPaymentDiscountTerm {
12355
+ class FacturXPaymentTerm {
12348
12356
  constructor(data) {
12349
12357
  if (data) {
12350
12358
  for (var property in data) {
@@ -12355,7 +12363,8 @@ class FacturXPaymentDiscountTerm {
12355
12363
  }
12356
12364
  init(_data) {
12357
12365
  if (_data) {
12358
- this.index = _data["index"];
12366
+ this.description = _data["description"];
12367
+ this.dueDate = _data["dueDate"] ? new Date(_data["dueDate"].toString()) : undefined;
12359
12368
  this.baseAmount = _data["baseAmount"];
12360
12369
  this.actualDiscountAmount = _data["actualDiscountAmount"];
12361
12370
  this.baseDate = _data["baseDate"] ? new Date(_data["baseDate"].toString()) : undefined;
@@ -12366,13 +12375,14 @@ class FacturXPaymentDiscountTerm {
12366
12375
  }
12367
12376
  static fromJS(data) {
12368
12377
  data = typeof data === 'object' ? data : {};
12369
- let result = new FacturXPaymentDiscountTerm();
12378
+ let result = new FacturXPaymentTerm();
12370
12379
  result.init(data);
12371
12380
  return result;
12372
12381
  }
12373
12382
  toJSON(data) {
12374
12383
  data = typeof data === 'object' ? data : {};
12375
- data["index"] = this.index;
12384
+ data["description"] = this.description;
12385
+ data["dueDate"] = this.dueDate ? this.dueDate.toISOString() : undefined;
12376
12386
  data["baseAmount"] = this.baseAmount;
12377
12387
  data["actualDiscountAmount"] = this.actualDiscountAmount;
12378
12388
  data["baseDate"] = this.baseDate ? this.baseDate.toISOString() : undefined;
@@ -12382,7 +12392,7 @@ class FacturXPaymentDiscountTerm {
12382
12392
  return data;
12383
12393
  }
12384
12394
  }
12385
- exports.FacturXPaymentDiscountTerm = FacturXPaymentDiscountTerm;
12395
+ exports.FacturXPaymentTerm = FacturXPaymentTerm;
12386
12396
  /** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
12387
12397
  class AvaProjectWrapper {
12388
12398
  constructor(data) {