@dangl/avacloud-client-node 1.63.4-beta0002-avacloud-preview → 1.63.5-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 +88 -60
- package/api.js +114 -1
- package/api.js.map +1 -1
- package/api.ts +192 -60
- package/package.json +1 -1
package/api.d.ts
CHANGED
|
@@ -2513,17 +2513,9 @@ export declare class PositionDto extends IElementDto implements IPositionDto {
|
|
|
2513
2513
|
serviceType: ServiceTypeDto;
|
|
2514
2514
|
/** This property describes additional information about a product being used within this Position. For example, a pipe position, per length unit, could be composed of different pipe segments, fitting and other accessory articles. */
|
|
2515
2515
|
productData?: ProductDataDto | undefined;
|
|
2516
|
-
/** Short description for this DescriptionBase element.
|
|
2517
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
2518
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
2519
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
2520
|
-
*/
|
|
2516
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
2521
2517
|
shortText?: string | undefined;
|
|
2522
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
2523
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
2524
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
2525
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
2526
|
-
*/
|
|
2518
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
2527
2519
|
htmlShortText?: string | undefined;
|
|
2528
2520
|
/** Detailed description for this DescriptionBase element. When the HtmlLongText is set, this is automatically overwritten and filled with the appropriate plain text representation of the Html text. Vice versa, setting this property overrides the HtmlLongText. */
|
|
2529
2521
|
longText?: string | undefined;
|
|
@@ -2642,17 +2634,9 @@ export interface IPositionDto extends IIElementDto {
|
|
|
2642
2634
|
serviceType: ServiceTypeDto;
|
|
2643
2635
|
/** This property describes additional information about a product being used within this Position. For example, a pipe position, per length unit, could be composed of different pipe segments, fitting and other accessory articles. */
|
|
2644
2636
|
productData?: IProductDataDto | undefined;
|
|
2645
|
-
/** Short description for this DescriptionBase element.
|
|
2646
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
2647
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
2648
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
2649
|
-
*/
|
|
2637
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
2650
2638
|
shortText?: string | undefined;
|
|
2651
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
2652
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
2653
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
2654
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
2655
|
-
*/
|
|
2639
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
2656
2640
|
htmlShortText?: string | undefined;
|
|
2657
2641
|
/** Detailed description for this DescriptionBase element. When the HtmlLongText is set, this is automatically overwritten and filled with the appropriate plain text representation of the Html text. Vice versa, setting this property overrides the HtmlLongText. */
|
|
2658
2642
|
longText?: string | undefined;
|
|
@@ -2821,17 +2805,9 @@ export declare class SubDescriptionDto implements ISubDescriptionDto {
|
|
|
2821
2805
|
amountToBeEnteredByBidder: boolean;
|
|
2822
2806
|
/** Identifier for this SubDescription. */
|
|
2823
2807
|
identifier?: string | undefined;
|
|
2824
|
-
/** Short description for this DescriptionBase element.
|
|
2825
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
2826
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
2827
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
2828
|
-
*/
|
|
2808
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
2829
2809
|
shortText?: string | undefined;
|
|
2830
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
2831
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
2832
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
2833
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
2834
|
-
*/
|
|
2810
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
2835
2811
|
htmlShortText?: string | undefined;
|
|
2836
2812
|
/** Detailed description for this DescriptionBase element. When the HtmlLongText is set, this is automatically overwritten and filled with the appropriate plain text representation of the Html text. Vice versa, setting this property overrides the HtmlLongText. */
|
|
2837
2813
|
longText?: string | undefined;
|
|
@@ -2869,17 +2845,9 @@ export interface ISubDescriptionDto {
|
|
|
2869
2845
|
amountToBeEnteredByBidder: boolean;
|
|
2870
2846
|
/** Identifier for this SubDescription. */
|
|
2871
2847
|
identifier?: string | undefined;
|
|
2872
|
-
/** Short description for this DescriptionBase element.
|
|
2873
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
2874
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
2875
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
2876
|
-
*/
|
|
2848
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
2877
2849
|
shortText?: string | undefined;
|
|
2878
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
2879
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
2880
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
2881
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
2882
|
-
*/
|
|
2850
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
2883
2851
|
htmlShortText?: string | undefined;
|
|
2884
2852
|
/** Detailed description for this DescriptionBase element. When the HtmlLongText is set, this is automatically overwritten and filled with the appropriate plain text representation of the Html text. Vice versa, setting this property overrides the HtmlLongText. */
|
|
2885
2853
|
longText?: string | undefined;
|
|
@@ -3394,17 +3362,9 @@ export declare class NoteTextDto extends IElementDto implements INoteTextDto {
|
|
|
3394
3362
|
isOpeningText: boolean;
|
|
3395
3363
|
/** If this is set to true, this text is meant to not be seen as part of the regular elements hierarchy but as a special closing text at the end of the project. For Example, in GAEB XML, this would map to the GAEB.AddText. Typically, such texts are used to describe project wide finishing descriptions. If this is set to true, this NoteText should be placed at the top of the elements hierarchy directly in the ServiceSpecification.Elements group, otherwise it will likely not be treated correctly when exporting to GAEB. You can only set IsOpeningText or IsClosingText to true. */
|
|
3396
3364
|
isClosingText: boolean;
|
|
3397
|
-
/** Short description for this DescriptionBase element.
|
|
3398
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
3399
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
3400
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
3401
|
-
*/
|
|
3365
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
3402
3366
|
shortText?: string | undefined;
|
|
3403
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
3404
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
3405
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
3406
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
3407
|
-
*/
|
|
3367
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
3408
3368
|
htmlShortText?: string | undefined;
|
|
3409
3369
|
/** Indicates if this DescriptionBase element contains Buyer or Bidder additions to the text. */
|
|
3410
3370
|
additionType: AdditionTypeDto;
|
|
@@ -3433,17 +3393,9 @@ export interface INoteTextDto extends IIElementDto {
|
|
|
3433
3393
|
isOpeningText: boolean;
|
|
3434
3394
|
/** If this is set to true, this text is meant to not be seen as part of the regular elements hierarchy but as a special closing text at the end of the project. For Example, in GAEB XML, this would map to the GAEB.AddText. Typically, such texts are used to describe project wide finishing descriptions. If this is set to true, this NoteText should be placed at the top of the elements hierarchy directly in the ServiceSpecification.Elements group, otherwise it will likely not be treated correctly when exporting to GAEB. You can only set IsOpeningText or IsClosingText to true. */
|
|
3435
3395
|
isClosingText: boolean;
|
|
3436
|
-
/** Short description for this DescriptionBase element.
|
|
3437
|
-
Please note that by default, this property takes precedence over the `HtmlShortText`
|
|
3438
|
-
property. If you want to convert from DTO objects, and you want to work with the
|
|
3439
|
-
`HtmlShortText` property, you need to set this property to null.
|
|
3440
|
-
*/
|
|
3396
|
+
/** Short description for this DescriptionBase element. Please note that by default, this property takes precedence over the `HtmlShortText` property. If you want to convert from DTO objects, and you want to work with the `HtmlShortText` property, you need to set this property to null. */
|
|
3441
3397
|
shortText?: string | undefined;
|
|
3442
|
-
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts.
|
|
3443
|
-
This property is used to store the short text in HTML format. If you want to convert
|
|
3444
|
-
from DTO objects, and you want to use this property, then you need to ensure that
|
|
3445
|
-
`ShortText` is set to null, otherwise the plain text takes precedence over the HTML text.
|
|
3446
|
-
*/
|
|
3398
|
+
/** This contains the Html representation of the Shorttext. When the ShortText is set, this property will be set to contain the plain text representation of the Html text and vice versa. In practice, it's recommended to always use the plain text representations for short texts. This property is used to store the short text in HTML format. If you want to convert from DTO objects, and you want to use this property, then you need to ensure that `ShortText` is set to null, otherwise the plain text takes precedence over the HTML text. */
|
|
3447
3399
|
htmlShortText?: string | undefined;
|
|
3448
3400
|
/** Indicates if this DescriptionBase element contains Buyer or Bidder additions to the text. */
|
|
3449
3401
|
additionType: AdditionTypeDto;
|
|
@@ -4431,6 +4383,9 @@ Single line items in the invoice */
|
|
|
4431
4383
|
lineItems?: InvoiceLineItem[] | undefined;
|
|
4432
4384
|
/** The source type from which the invoice was created */
|
|
4433
4385
|
sourceType: SourceType;
|
|
4386
|
+
/** In case the original invoice document was in Factur-X / ZUGFeRD format, this property can hold
|
|
4387
|
+
additional Factur-X specific data that is not part of the XRechnung specification */
|
|
4388
|
+
facturXData?: FacturXData | undefined;
|
|
4434
4389
|
constructor(data?: IInvoice);
|
|
4435
4390
|
init?(_data?: any): void;
|
|
4436
4391
|
static fromJS(data: any): Invoice;
|
|
@@ -4510,6 +4465,9 @@ Single line items in the invoice */
|
|
|
4510
4465
|
lineItems?: IInvoiceLineItem[] | undefined;
|
|
4511
4466
|
/** The source type from which the invoice was created */
|
|
4512
4467
|
sourceType: SourceType;
|
|
4468
|
+
/** In case the original invoice document was in Factur-X / ZUGFeRD format, this property can hold
|
|
4469
|
+
additional Factur-X specific data that is not part of the XRechnung specification */
|
|
4470
|
+
facturXData?: IFacturXData | undefined;
|
|
4513
4471
|
}
|
|
4514
4472
|
/** Type of the invoice */
|
|
4515
4473
|
export declare enum InvoiceType {
|
|
@@ -5532,6 +5490,7 @@ export declare enum PaymentType {
|
|
|
5532
5490
|
ClearingBetweenPartners = "ClearingBetweenPartners",
|
|
5533
5491
|
JPElectronicallyRecordedMonetaryClaims = "JPElectronicallyRecordedMonetaryClaims"
|
|
5534
5492
|
}
|
|
5493
|
+
/** BG-16, BG-17 & BG-18 Represents a payment means for an invoice */
|
|
5535
5494
|
export declare class PaymentMeans implements IPaymentMeans {
|
|
5536
5495
|
/** BT-84
|
|
5537
5496
|
This is typically the IBAN or account number
|
|
@@ -5577,6 +5536,7 @@ https://github.com/itplr-kosit/validator-configuration-xrechnung/issues/53 */
|
|
|
5577
5536
|
static fromJS(data: any): PaymentMeans;
|
|
5578
5537
|
toJSON?(data?: any): any;
|
|
5579
5538
|
}
|
|
5539
|
+
/** BG-16, BG-17 & BG-18 Represents a payment means for an invoice */
|
|
5580
5540
|
export interface IPaymentMeans {
|
|
5581
5541
|
/** BT-84
|
|
5582
5542
|
This is typically the IBAN or account number
|
|
@@ -6541,6 +6501,74 @@ export declare enum SourceType {
|
|
|
6541
6501
|
Cii = "Cii",
|
|
6542
6502
|
FacturX = "FacturX"
|
|
6543
6503
|
}
|
|
6504
|
+
/** Represents data related to Factur-X, including additional payment terms. */
|
|
6505
|
+
export declare class FacturXData implements IFacturXData {
|
|
6506
|
+
/** The field BT-20 in XRechnung can only hold one payment term, but Factur-X / ZUGFeRD
|
|
6507
|
+
allows multiple payment terms. If the invoice was originally created in Factur-X / ZUGFeRD format,
|
|
6508
|
+
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;
|
|
6513
|
+
constructor(data?: IFacturXData);
|
|
6514
|
+
init?(_data?: any): void;
|
|
6515
|
+
static fromJS(data: any): FacturXData;
|
|
6516
|
+
toJSON?(data?: any): any;
|
|
6517
|
+
}
|
|
6518
|
+
/** Represents data related to Factur-X, including additional payment terms. */
|
|
6519
|
+
export interface IFacturXData {
|
|
6520
|
+
/** The field BT-20 in XRechnung can only hold one payment term, but Factur-X / ZUGFeRD
|
|
6521
|
+
allows multiple payment terms. If the invoice was originally created in Factur-X / ZUGFeRD format,
|
|
6522
|
+
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;
|
|
6527
|
+
}
|
|
6528
|
+
/** 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;
|
|
6535
|
+
/** The base amount unto which the discount applies. */
|
|
6536
|
+
baseAmount?: number | undefined;
|
|
6537
|
+
/** The actual discount amount that will be deducted if the payment is done within the specified period. */
|
|
6538
|
+
actualDiscountAmount?: number | undefined;
|
|
6539
|
+
/** The base date for calculating the discount period. This is typically the invoice date. */
|
|
6540
|
+
baseDate?: Date | undefined;
|
|
6541
|
+
/** The duration of the discount period, e.g. "30" for 30 days. */
|
|
6542
|
+
periodMeasure?: number | undefined;
|
|
6543
|
+
/** The unit in which the period is specified, e.g. "DAY". */
|
|
6544
|
+
periodMeasureUnitCode?: string | undefined;
|
|
6545
|
+
/** The percentage of the discount, e.g. ".02" for 2%. */
|
|
6546
|
+
calculationPercent?: number | undefined;
|
|
6547
|
+
constructor(data?: IFacturXPaymentDiscountTerm);
|
|
6548
|
+
init?(_data?: any): void;
|
|
6549
|
+
static fromJS(data: any): FacturXPaymentDiscountTerm;
|
|
6550
|
+
toJSON?(data?: any): any;
|
|
6551
|
+
}
|
|
6552
|
+
/** 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;
|
|
6559
|
+
/** The base amount unto which the discount applies. */
|
|
6560
|
+
baseAmount?: number | undefined;
|
|
6561
|
+
/** The actual discount amount that will be deducted if the payment is done within the specified period. */
|
|
6562
|
+
actualDiscountAmount?: number | undefined;
|
|
6563
|
+
/** The base date for calculating the discount period. This is typically the invoice date. */
|
|
6564
|
+
baseDate?: Date | undefined;
|
|
6565
|
+
/** The duration of the discount period, e.g. "30" for 30 days. */
|
|
6566
|
+
periodMeasure?: number | undefined;
|
|
6567
|
+
/** The unit in which the period is specified, e.g. "DAY". */
|
|
6568
|
+
periodMeasureUnitCode?: string | undefined;
|
|
6569
|
+
/** The percentage of the discount, e.g. ".02" for 2%. */
|
|
6570
|
+
calculationPercent?: number | undefined;
|
|
6571
|
+
}
|
|
6544
6572
|
/** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
|
|
6545
6573
|
export declare class AvaProjectWrapper implements IAvaProjectWrapper {
|
|
6546
6574
|
/** The Dangl.AVA.Project from which to convert */
|
package/api.js
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
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.
|
|
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;
|
|
11
|
+
exports.ApiException = exports.SwaggerResponse = void 0;
|
|
11
12
|
/* tslint:disable */
|
|
12
13
|
/* eslint-disable */
|
|
13
14
|
// ReSharper disable InconsistentNaming
|
|
@@ -10159,6 +10160,7 @@ class Invoice {
|
|
|
10159
10160
|
this.lineItems[i] = item && !item.toJSON ? new InvoiceLineItem(item) : item;
|
|
10160
10161
|
}
|
|
10161
10162
|
}
|
|
10163
|
+
this.facturXData = data.facturXData && !data.facturXData.toJSON ? new FacturXData(data.facturXData) : this.facturXData;
|
|
10162
10164
|
}
|
|
10163
10165
|
}
|
|
10164
10166
|
init(_data) {
|
|
@@ -10219,6 +10221,7 @@ class Invoice {
|
|
|
10219
10221
|
this.lineItems.push(InvoiceLineItem.fromJS(item));
|
|
10220
10222
|
}
|
|
10221
10223
|
this.sourceType = _data["sourceType"];
|
|
10224
|
+
this.facturXData = _data["facturXData"] ? FacturXData.fromJS(_data["facturXData"]) : undefined;
|
|
10222
10225
|
}
|
|
10223
10226
|
}
|
|
10224
10227
|
static fromJS(data) {
|
|
@@ -10415,6 +10418,17 @@ class Invoice {
|
|
|
10415
10418
|
}
|
|
10416
10419
|
}
|
|
10417
10420
|
data["sourceType"] = this.sourceType;
|
|
10421
|
+
if (this.facturXData) {
|
|
10422
|
+
if (typeof this.facturXData.toJSON !== "undefined") {
|
|
10423
|
+
data["facturXData"] = this.facturXData.toJSON();
|
|
10424
|
+
}
|
|
10425
|
+
else {
|
|
10426
|
+
data["facturXData"] = this.facturXData;
|
|
10427
|
+
}
|
|
10428
|
+
}
|
|
10429
|
+
else {
|
|
10430
|
+
data["facturXData"] = undefined;
|
|
10431
|
+
}
|
|
10418
10432
|
return data;
|
|
10419
10433
|
}
|
|
10420
10434
|
}
|
|
@@ -11338,6 +11352,7 @@ var PaymentType;
|
|
|
11338
11352
|
PaymentType["ClearingBetweenPartners"] = "ClearingBetweenPartners";
|
|
11339
11353
|
PaymentType["JPElectronicallyRecordedMonetaryClaims"] = "JPElectronicallyRecordedMonetaryClaims";
|
|
11340
11354
|
})(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
|
|
11355
|
+
/** BG-16, BG-17 & BG-18 Represents a payment means for an invoice */
|
|
11341
11356
|
class PaymentMeans {
|
|
11342
11357
|
constructor(data) {
|
|
11343
11358
|
if (data) {
|
|
@@ -12270,6 +12285,104 @@ var SourceType;
|
|
|
12270
12285
|
SourceType["Cii"] = "Cii";
|
|
12271
12286
|
SourceType["FacturX"] = "FacturX";
|
|
12272
12287
|
})(SourceType = exports.SourceType || (exports.SourceType = {}));
|
|
12288
|
+
/** Represents data related to Factur-X, including additional payment terms. */
|
|
12289
|
+
class FacturXData {
|
|
12290
|
+
constructor(data) {
|
|
12291
|
+
if (data) {
|
|
12292
|
+
for (var property in data) {
|
|
12293
|
+
if (data.hasOwnProperty(property))
|
|
12294
|
+
this[property] = data[property];
|
|
12295
|
+
}
|
|
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;
|
|
12301
|
+
}
|
|
12302
|
+
}
|
|
12303
|
+
}
|
|
12304
|
+
}
|
|
12305
|
+
init(_data) {
|
|
12306
|
+
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));
|
|
12316
|
+
}
|
|
12317
|
+
}
|
|
12318
|
+
}
|
|
12319
|
+
static fromJS(data) {
|
|
12320
|
+
data = typeof data === 'object' ? data : {};
|
|
12321
|
+
let result = new FacturXData();
|
|
12322
|
+
result.init(data);
|
|
12323
|
+
return result;
|
|
12324
|
+
}
|
|
12325
|
+
toJSON(data) {
|
|
12326
|
+
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)
|
|
12335
|
+
if (typeof item.toJSON !== "undefined") {
|
|
12336
|
+
data["facturXPaymentDiscountTerms"].push(item.toJSON());
|
|
12337
|
+
}
|
|
12338
|
+
else {
|
|
12339
|
+
data["facturXPaymentDiscountTerms"].push(item);
|
|
12340
|
+
}
|
|
12341
|
+
}
|
|
12342
|
+
return data;
|
|
12343
|
+
}
|
|
12344
|
+
}
|
|
12345
|
+
exports.FacturXData = FacturXData;
|
|
12346
|
+
/** 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 {
|
|
12348
|
+
constructor(data) {
|
|
12349
|
+
if (data) {
|
|
12350
|
+
for (var property in data) {
|
|
12351
|
+
if (data.hasOwnProperty(property))
|
|
12352
|
+
this[property] = data[property];
|
|
12353
|
+
}
|
|
12354
|
+
}
|
|
12355
|
+
}
|
|
12356
|
+
init(_data) {
|
|
12357
|
+
if (_data) {
|
|
12358
|
+
this.index = _data["index"];
|
|
12359
|
+
this.baseAmount = _data["baseAmount"];
|
|
12360
|
+
this.actualDiscountAmount = _data["actualDiscountAmount"];
|
|
12361
|
+
this.baseDate = _data["baseDate"] ? new Date(_data["baseDate"].toString()) : undefined;
|
|
12362
|
+
this.periodMeasure = _data["periodMeasure"];
|
|
12363
|
+
this.periodMeasureUnitCode = _data["periodMeasureUnitCode"];
|
|
12364
|
+
this.calculationPercent = _data["calculationPercent"];
|
|
12365
|
+
}
|
|
12366
|
+
}
|
|
12367
|
+
static fromJS(data) {
|
|
12368
|
+
data = typeof data === 'object' ? data : {};
|
|
12369
|
+
let result = new FacturXPaymentDiscountTerm();
|
|
12370
|
+
result.init(data);
|
|
12371
|
+
return result;
|
|
12372
|
+
}
|
|
12373
|
+
toJSON(data) {
|
|
12374
|
+
data = typeof data === 'object' ? data : {};
|
|
12375
|
+
data["index"] = this.index;
|
|
12376
|
+
data["baseAmount"] = this.baseAmount;
|
|
12377
|
+
data["actualDiscountAmount"] = this.actualDiscountAmount;
|
|
12378
|
+
data["baseDate"] = this.baseDate ? this.baseDate.toISOString() : undefined;
|
|
12379
|
+
data["periodMeasure"] = this.periodMeasure;
|
|
12380
|
+
data["periodMeasureUnitCode"] = this.periodMeasureUnitCode;
|
|
12381
|
+
data["calculationPercent"] = this.calculationPercent;
|
|
12382
|
+
return data;
|
|
12383
|
+
}
|
|
12384
|
+
}
|
|
12385
|
+
exports.FacturXPaymentDiscountTerm = FacturXPaymentDiscountTerm;
|
|
12273
12386
|
/** This is a wrapper class that maps Dangl.AVA projects along with additional required information to create invoices */
|
|
12274
12387
|
class AvaProjectWrapper {
|
|
12275
12388
|
constructor(data) {
|