@dangl/avacloud-client-node 1.60.10-beta0001-avacloud-preview → 1.60.11-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.
package/api.d.ts CHANGED
@@ -1625,26 +1625,32 @@ export declare class XRechnungConversionApi {
1625
1625
  */
1626
1626
  xRechnungConversionConvertInvoiceToXRechnungWithRequestObject(invoice: Invoice, options?: {
1627
1627
  targetFormat?: DestinationXRechnungFormat | undefined;
1628
+ disablePriceRounding?: boolean | undefined;
1628
1629
  }): Promise<SwaggerResponse<FileResponse>>;
1629
1630
  /**
1630
1631
  * This will convert an Invoice object to an XRechnung file
1631
1632
  * @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
1632
1633
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
1634
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1635
+ Otherwise, prices will by default be rounded to two decimal places.
1633
1636
  */
1634
- xRechnungConversionConvertInvoiceToXRechnung(invoice: Invoice, targetFormat?: DestinationXRechnungFormat | undefined): Promise<SwaggerResponse<FileResponse>>;
1637
+ xRechnungConversionConvertInvoiceToXRechnung(invoice: Invoice, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1635
1638
  protected processXRechnungConversionConvertInvoiceToXRechnung(response: Response): Promise<SwaggerResponse<FileResponse>>;
1636
1639
  /**
1637
1640
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
1638
1641
  */
1639
1642
  xRechnungConversionConvertAvaToXRechnungWithRequestObject(avaWrapper: AvaProjectWrapper, options?: {
1640
1643
  targetFormat?: DestinationXRechnungFormat | undefined;
1644
+ disablePriceRounding?: boolean | undefined;
1641
1645
  }): Promise<SwaggerResponse<FileResponse>>;
1642
1646
  /**
1643
1647
  * This will convert an AVA wrapper object to an XRechnung file
1644
1648
  * @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
1645
1649
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
1650
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1651
+ Otherwise, prices will by default be rounded to two decimal places.
1646
1652
  */
1647
- xRechnungConversionConvertAvaToXRechnung(avaWrapper: AvaProjectWrapper, targetFormat?: DestinationXRechnungFormat | undefined): Promise<SwaggerResponse<FileResponse>>;
1653
+ xRechnungConversionConvertAvaToXRechnung(avaWrapper: AvaProjectWrapper, targetFormat?: DestinationXRechnungFormat | undefined, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1648
1654
  protected processXRechnungConversionConvertAvaToXRechnung(response: Response): Promise<SwaggerResponse<FileResponse>>;
1649
1655
  /**
1650
1656
  * This will convert an Invoice object to a PDF file
@@ -2804,8 +2810,6 @@ export declare class SubDescriptionDto implements ISubDescriptionDto {
2804
2810
  /** This is an identifier specific for this description. Some exchange formats, like GAEB XML, use it to identify descriptions. It's different to an elements identifier in that it should only apply to the description component, meaning the text itself. */
2805
2811
  descriptionId?: string | undefined;
2806
2812
  readonly hasBidderCommentInHtmlLongText: boolean;
2807
- elementType?: string | undefined;
2808
- elementTypeDiscriminator?: string | undefined;
2809
2813
  constructor(data?: ISubDescriptionDto);
2810
2814
  init?(_data?: any): void;
2811
2815
  static fromJS(data: any): SubDescriptionDto;
@@ -2854,8 +2858,6 @@ export interface ISubDescriptionDto {
2854
2858
  /** This is an identifier specific for this description. Some exchange formats, like GAEB XML, use it to identify descriptions. It's different to an elements identifier in that it should only apply to the description component, meaning the text itself. */
2855
2859
  descriptionId?: string | undefined;
2856
2860
  hasBidderCommentInHtmlLongText: boolean;
2857
- elementType?: string | undefined;
2858
- elementTypeDiscriminator?: string | undefined;
2859
2861
  }
2860
2862
  /** Indicates the origin of an element. */
2861
2863
  export declare enum AdditionTypeDto {
package/api.js CHANGED
@@ -5545,19 +5545,25 @@ class XRechnungConversionApi {
5545
5545
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5546
5546
  */
5547
5547
  xRechnungConversionConvertInvoiceToXRechnungWithRequestObject(invoice, options) {
5548
- return this.xRechnungConversionConvertInvoiceToXRechnung(invoice, options === null || options === void 0 ? void 0 : options.targetFormat);
5548
+ return this.xRechnungConversionConvertInvoiceToXRechnung(invoice, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5549
5549
  }
5550
5550
  /**
5551
5551
  * This will convert an Invoice object to an XRechnung file
5552
5552
  * @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
5553
5553
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
5554
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5555
+ Otherwise, prices will by default be rounded to two decimal places.
5554
5556
  */
5555
- xRechnungConversionConvertInvoiceToXRechnung(invoice, targetFormat) {
5557
+ xRechnungConversionConvertInvoiceToXRechnung(invoice, targetFormat, disablePriceRounding) {
5556
5558
  let url_ = this.baseUrl + "/conversion/xrechnung/invoice/xrechnung?";
5557
5559
  if (targetFormat === null)
5558
5560
  throw new Error("The parameter 'targetFormat' cannot be null.");
5559
5561
  else if (targetFormat !== undefined)
5560
5562
  url_ += "TargetFormat=" + encodeURIComponent("" + targetFormat) + "&";
5563
+ if (disablePriceRounding === null)
5564
+ throw new Error("The parameter 'disablePriceRounding' cannot be null.");
5565
+ else if (disablePriceRounding !== undefined)
5566
+ url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5561
5567
  url_ = url_.replace(/[?&]$/, "");
5562
5568
  const content_ = JSON.stringify(invoice);
5563
5569
  let options_ = {
@@ -5615,19 +5621,25 @@ class XRechnungConversionApi {
5615
5621
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5616
5622
  */
5617
5623
  xRechnungConversionConvertAvaToXRechnungWithRequestObject(avaWrapper, options) {
5618
- return this.xRechnungConversionConvertAvaToXRechnung(avaWrapper, options === null || options === void 0 ? void 0 : options.targetFormat);
5624
+ return this.xRechnungConversionConvertAvaToXRechnung(avaWrapper, options === null || options === void 0 ? void 0 : options.targetFormat, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5619
5625
  }
5620
5626
  /**
5621
5627
  * This will convert an AVA wrapper object to an XRechnung file
5622
5628
  * @param targetFormat (optional) The target format for the XRechnung export. Defaults to Ubl. Options are:
5623
5629
  Ubl, CrossIndustryInvoice and FacturX (ZUGFerd)
5630
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5631
+ Otherwise, prices will by default be rounded to two decimal places.
5624
5632
  */
5625
- xRechnungConversionConvertAvaToXRechnung(avaWrapper, targetFormat) {
5633
+ xRechnungConversionConvertAvaToXRechnung(avaWrapper, targetFormat, disablePriceRounding) {
5626
5634
  let url_ = this.baseUrl + "/conversion/xrechnung/ava-wrapper/xrechnung?";
5627
5635
  if (targetFormat === null)
5628
5636
  throw new Error("The parameter 'targetFormat' cannot be null.");
5629
5637
  else if (targetFormat !== undefined)
5630
5638
  url_ += "TargetFormat=" + encodeURIComponent("" + targetFormat) + "&";
5639
+ if (disablePriceRounding === null)
5640
+ throw new Error("The parameter 'disablePriceRounding' cannot be null.");
5641
+ else if (disablePriceRounding !== undefined)
5642
+ url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5631
5643
  url_ = url_.replace(/[?&]$/, "");
5632
5644
  const content_ = JSON.stringify(avaWrapper);
5633
5645
  let options_ = {
@@ -7796,8 +7808,6 @@ class SubDescriptionDto {
7796
7808
  }
7797
7809
  this.descriptionId = _data["descriptionId"];
7798
7810
  this.hasBidderCommentInHtmlLongText = _data["hasBidderCommentInHtmlLongText"];
7799
- this.elementType = _data["elementType"];
7800
- this.elementTypeDiscriminator = _data["elementTypeDiscriminator"];
7801
7811
  }
7802
7812
  }
7803
7813
  static fromJS(data) {
@@ -7853,8 +7863,6 @@ class SubDescriptionDto {
7853
7863
  }
7854
7864
  data["descriptionId"] = this.descriptionId;
7855
7865
  data["hasBidderCommentInHtmlLongText"] = this.hasBidderCommentInHtmlLongText;
7856
- data["elementType"] = this.elementType;
7857
- data["elementTypeDiscriminator"] = this.elementTypeDiscriminator;
7858
7866
  return data;
7859
7867
  }
7860
7868
  }