@dangl/avacloud-client-node 1.67.0-beta0052-avacloud-preview → 1.67.1-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.
package/api.d.ts CHANGED
@@ -1759,10 +1759,18 @@ export declare class XRechnungConversionApi {
1759
1759
  */
1760
1760
  xRechnungConversionConvertInvoiceToPdfInvoice(invoice: Invoice): Promise<SwaggerResponse<FileResponse>>;
1761
1761
  protected processXRechnungConversionConvertInvoiceToPdfInvoice(response: Response): Promise<SwaggerResponse<FileResponse>>;
1762
+ /**
1763
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
1764
+ */
1765
+ xRechnungConversionConvertAvaToPdfInvoiceWithRequestObject(avaWrapper: AvaProjectWrapper, options?: {
1766
+ disablePriceRounding?: boolean | undefined;
1767
+ }): Promise<SwaggerResponse<FileResponse>>;
1762
1768
  /**
1763
1769
  * This will convert an AVA wrapper object to a PDF file
1770
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
1771
+ Otherwise, prices will by default be rounded to two decimal places.
1764
1772
  */
1765
- xRechnungConversionConvertAvaToPdfInvoice(avaWrapper: AvaProjectWrapper): Promise<SwaggerResponse<FileResponse>>;
1773
+ xRechnungConversionConvertAvaToPdfInvoice(avaWrapper: AvaProjectWrapper, disablePriceRounding?: boolean | undefined): Promise<SwaggerResponse<FileResponse>>;
1766
1774
  protected processXRechnungConversionConvertAvaToPdfInvoice(response: Response): Promise<SwaggerResponse<FileResponse>>;
1767
1775
  /**
1768
1776
  * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
package/api.js CHANGED
@@ -5969,11 +5969,23 @@ class XRechnungConversionApi {
5969
5969
  }
5970
5970
  return Promise.resolve(new SwaggerResponse(status, _headers, null));
5971
5971
  }
5972
+ /**
5973
+ * This is a generated method that accepts an options object, it simply calls the generated method with the parameter list
5974
+ */
5975
+ xRechnungConversionConvertAvaToPdfInvoiceWithRequestObject(avaWrapper, options) {
5976
+ return this.xRechnungConversionConvertAvaToPdfInvoice(avaWrapper, options === null || options === void 0 ? void 0 : options.disablePriceRounding);
5977
+ }
5972
5978
  /**
5973
5979
  * This will convert an AVA wrapper object to a PDF file
5980
+ * @param disablePriceRounding (optional) If this is enabled, then the price values in the XRechnung export will not be rounded.
5981
+ Otherwise, prices will by default be rounded to two decimal places.
5974
5982
  */
5975
- xRechnungConversionConvertAvaToPdfInvoice(avaWrapper) {
5976
- let url_ = this.baseUrl + "/conversion/xrechnung/ava-wrapper/pdf";
5983
+ xRechnungConversionConvertAvaToPdfInvoice(avaWrapper, disablePriceRounding) {
5984
+ let url_ = this.baseUrl + "/conversion/xrechnung/ava-wrapper/pdf?";
5985
+ if (disablePriceRounding === null)
5986
+ throw new globalThis.Error("The parameter 'disablePriceRounding' cannot be null.");
5987
+ else if (disablePriceRounding !== undefined)
5988
+ url_ += "DisablePriceRounding=" + encodeURIComponent("" + disablePriceRounding) + "&";
5977
5989
  url_ = url_.replace(/[?&]$/, "");
5978
5990
  const content_ = JSON.stringify(avaWrapper);
5979
5991
  let options_ = {