@dangl/avacloud-client-node 1.60.11-beta0001-avacloud-preview → 1.60.12-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
@@ -2531,6 +2537,8 @@ export declare class PositionDto extends IElementDto implements IPositionDto {
2531
2537
  priceCatalogueData?: PriceCatalogueDataDto | undefined;
2532
2538
  /** If this is set to true, the ProjectCatalogues property will not be propagated to child elements. This is useful in mapping scenarios, where you want to disable propagation for multiple changes, and only enable it once you have mapped all properties. */
2533
2539
  ignoreProjectCataloguePropagation: boolean;
2540
+ /** A main position means that this position is important and should be highlighted in the user interface. Important meaning that is is usually a bigger part of the total sum of the services, or it needs special attention in another way. */
2541
+ isMainPosition: boolean;
2534
2542
  constructor(data?: IPositionDto);
2535
2543
  init?(_data?: any): void;
2536
2544
  static fromJS(data: any): PositionDto;
@@ -2658,6 +2666,8 @@ export interface IPositionDto extends IIElementDto {
2658
2666
  priceCatalogueData?: IPriceCatalogueDataDto | undefined;
2659
2667
  /** If this is set to true, the ProjectCatalogues property will not be propagated to child elements. This is useful in mapping scenarios, where you want to disable propagation for multiple changes, and only enable it once you have mapped all properties. */
2660
2668
  ignoreProjectCataloguePropagation: boolean;
2669
+ /** A main position means that this position is important and should be highlighted in the user interface. Important meaning that is is usually a bigger part of the total sum of the services, or it needs special attention in another way. */
2670
+ isMainPosition: boolean;
2661
2671
  }
2662
2672
  /** Based on the PriceComponent, this class is responsible for labour time components. */
2663
2673
  export declare class LabourPriceComponentDto implements ILabourPriceComponentDto {
@@ -3181,7 +3191,7 @@ export declare class OenormPositionPropertiesDto implements IOenormPositionPrope
3181
3191
  originCode: OenormOriginCodeDto;
3182
3192
  /** This marks if the opening texts within this element are considered free text. It corresponds to 'vorbemerkungskennzeichen' in ÖNorm. */
3183
3193
  openingTextIsFreeText: boolean;
3184
- /** This indicates if the ÖNorm 'wesentliche position' mark is set */
3194
+ /** This indicates if the ÖNorm 'wesentliche position' mark is set. This should no longer be used, please use the IsMainPosition property on the parent position instead. */
3185
3195
  isMainPosition: boolean;
3186
3196
  /** This indicates if the ÖNorm position was a 'ungeteilteposition' (undivided position). This will only be taken into account when the position is also the sole element inside it's parent group */
3187
3197
  isUndividedPosition: boolean;
@@ -3200,7 +3210,7 @@ export interface IOenormPositionPropertiesDto {
3200
3210
  originCode: OenormOriginCodeDto;
3201
3211
  /** This marks if the opening texts within this element are considered free text. It corresponds to 'vorbemerkungskennzeichen' in ÖNorm. */
3202
3212
  openingTextIsFreeText: boolean;
3203
- /** This indicates if the ÖNorm 'wesentliche position' mark is set */
3213
+ /** This indicates if the ÖNorm 'wesentliche position' mark is set. This should no longer be used, please use the IsMainPosition property on the parent position instead. */
3204
3214
  isMainPosition: boolean;
3205
3215
  /** This indicates if the ÖNorm position was a 'ungeteilteposition' (undivided position). This will only be taken into account when the position is also the sole element inside it's parent group */
3206
3216
  isUndividedPosition: boolean;
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_ = {
@@ -7303,6 +7315,7 @@ class PositionDto extends IElementDto {
7303
7315
  this.estimatedQuantity = _data["estimatedQuantity"];
7304
7316
  this.priceCatalogueData = _data["priceCatalogueData"] ? PriceCatalogueDataDto.fromJS(_data["priceCatalogueData"]) : undefined;
7305
7317
  this.ignoreProjectCataloguePropagation = _data["ignoreProjectCataloguePropagation"];
7318
+ this.isMainPosition = _data["isMainPosition"];
7306
7319
  }
7307
7320
  }
7308
7321
  static fromJS(data) {
@@ -7503,6 +7516,7 @@ class PositionDto extends IElementDto {
7503
7516
  data["priceCatalogueData"] = undefined;
7504
7517
  }
7505
7518
  data["ignoreProjectCataloguePropagation"] = this.ignoreProjectCataloguePropagation;
7519
+ data["isMainPosition"] = this.isMainPosition;
7506
7520
  if (typeof super.toJSON !== "undefined") {
7507
7521
  super.toJSON(data);
7508
7522
  }