@kommerz/ts-client 1.172.0 → 1.173.1
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.
|
@@ -76,6 +76,12 @@ export interface InvoiceItemDto {
|
|
|
76
76
|
* @memberof InvoiceItemDto
|
|
77
77
|
*/
|
|
78
78
|
discountPercent?: number;
|
|
79
|
+
/**
|
|
80
|
+
* reason for the discount in plain text (ZUGFeRD BT-139), mandatory whenever a discount is applied
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof InvoiceItemDto
|
|
83
|
+
*/
|
|
84
|
+
discountReason?: string;
|
|
79
85
|
/**
|
|
80
86
|
* allowance that is substracted from netPrice and calculated as netPrice * discountPercent
|
|
81
87
|
* @type {number}
|
|
@@ -53,6 +53,7 @@ function InvoiceItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'grossPrice': json['grossPrice'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['grossPrice']),
|
|
54
54
|
'grossSum': json['grossSum'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['grossSum']),
|
|
55
55
|
'discountPercent': json['discountPercent'] == null ? undefined : json['discountPercent'],
|
|
56
|
+
'discountReason': json['discountReason'] == null ? undefined : json['discountReason'],
|
|
56
57
|
'allowance': json['allowance'] == null ? undefined : json['allowance'],
|
|
57
58
|
};
|
|
58
59
|
}
|
|
@@ -72,6 +73,7 @@ function InvoiceItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
72
73
|
'quantity': value['quantity'],
|
|
73
74
|
'netPrice': (0, AmountDto_1.AmountDtoToJSON)(value['netPrice']),
|
|
74
75
|
'discountPercent': value['discountPercent'],
|
|
76
|
+
'discountReason': value['discountReason'],
|
|
75
77
|
'allowance': value['allowance'],
|
|
76
78
|
};
|
|
77
79
|
}
|