@kommerz/ts-client 1.171.4 → 1.172.0

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.
@@ -0,0 +1,152 @@
1
+ /**
2
+ * Kommerz API Specification
3
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
4
+ *
5
+ * Contact: info@kommerz.app
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ import type { AmountDto } from './AmountDto';
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PaymentProductDto
16
+ */
17
+ export interface PaymentProductDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PaymentProductDto
22
+ */
23
+ id?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PaymentProductDto
28
+ */
29
+ version?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof PaymentProductDto
34
+ */
35
+ name?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PaymentProductDto
40
+ */
41
+ description?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof PaymentProductDto
46
+ */
47
+ imageLink?: string;
48
+ /**
49
+ *
50
+ * @type {AmountDto}
51
+ * @memberof PaymentProductDto
52
+ */
53
+ price?: AmountDto;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof PaymentProductDto
58
+ */
59
+ taxIncluded?: boolean;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof PaymentProductDto
64
+ */
65
+ taxRatePercentage?: number;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof PaymentProductDto
70
+ */
71
+ usageType?: PaymentProductDtoUsageTypeEnum;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof PaymentProductDto
76
+ */
77
+ paymentType?: PaymentProductDtoPaymentTypeEnum;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof PaymentProductDto
82
+ */
83
+ paymentInterval?: PaymentProductDtoPaymentIntervalEnum;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof PaymentProductDto
88
+ */
89
+ paymentIntervalLength?: number;
90
+ /**
91
+ *
92
+ * @type {string}
93
+ * @memberof PaymentProductDto
94
+ */
95
+ productType?: PaymentProductDtoProductTypeEnum;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof PaymentProductDto
100
+ */
101
+ productOrder?: number;
102
+ /**
103
+ *
104
+ * @type {Array<PaymentProductDto>}
105
+ * @memberof PaymentProductDto
106
+ */
107
+ addOns?: Array<PaymentProductDto>;
108
+ }
109
+ /**
110
+ * @export
111
+ */
112
+ export declare const PaymentProductDtoUsageTypeEnum: {
113
+ readonly Recurring: "RECURRING";
114
+ readonly Metered: "METERED";
115
+ readonly Licensed: "LICENSED";
116
+ readonly Quantity: "QUANTITY";
117
+ };
118
+ export type PaymentProductDtoUsageTypeEnum = typeof PaymentProductDtoUsageTypeEnum[keyof typeof PaymentProductDtoUsageTypeEnum];
119
+ /**
120
+ * @export
121
+ */
122
+ export declare const PaymentProductDtoPaymentTypeEnum: {
123
+ readonly OneTime: "ONE-TIME";
124
+ readonly Recurring: "RECURRING";
125
+ };
126
+ export type PaymentProductDtoPaymentTypeEnum = typeof PaymentProductDtoPaymentTypeEnum[keyof typeof PaymentProductDtoPaymentTypeEnum];
127
+ /**
128
+ * @export
129
+ */
130
+ export declare const PaymentProductDtoPaymentIntervalEnum: {
131
+ readonly Day: "DAY";
132
+ readonly Week: "WEEK";
133
+ readonly Month: "MONTH";
134
+ readonly Year: "YEAR";
135
+ };
136
+ export type PaymentProductDtoPaymentIntervalEnum = typeof PaymentProductDtoPaymentIntervalEnum[keyof typeof PaymentProductDtoPaymentIntervalEnum];
137
+ /**
138
+ * @export
139
+ */
140
+ export declare const PaymentProductDtoProductTypeEnum: {
141
+ readonly Base: "BASE";
142
+ readonly Addon: "ADDON";
143
+ };
144
+ export type PaymentProductDtoProductTypeEnum = typeof PaymentProductDtoProductTypeEnum[keyof typeof PaymentProductDtoProductTypeEnum];
145
+ /**
146
+ * Check if a given object implements the PaymentProductDto interface.
147
+ */
148
+ export declare function instanceOfPaymentProductDto(value: object): value is PaymentProductDto;
149
+ export declare function PaymentProductDtoFromJSON(json: any): PaymentProductDto;
150
+ export declare function PaymentProductDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentProductDto;
151
+ export declare function PaymentProductDtoToJSON(json: any): PaymentProductDto;
152
+ export declare function PaymentProductDtoToJSONTyped(value?: PaymentProductDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Kommerz API Specification
6
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
7
+ *
8
+ * Contact: info@kommerz.app
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PaymentProductDtoProductTypeEnum = exports.PaymentProductDtoPaymentIntervalEnum = exports.PaymentProductDtoPaymentTypeEnum = exports.PaymentProductDtoUsageTypeEnum = void 0;
16
+ exports.instanceOfPaymentProductDto = instanceOfPaymentProductDto;
17
+ exports.PaymentProductDtoFromJSON = PaymentProductDtoFromJSON;
18
+ exports.PaymentProductDtoFromJSONTyped = PaymentProductDtoFromJSONTyped;
19
+ exports.PaymentProductDtoToJSON = PaymentProductDtoToJSON;
20
+ exports.PaymentProductDtoToJSONTyped = PaymentProductDtoToJSONTyped;
21
+ var AmountDto_1 = require("./AmountDto");
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PaymentProductDtoUsageTypeEnum = {
26
+ Recurring: 'RECURRING',
27
+ Metered: 'METERED',
28
+ Licensed: 'LICENSED',
29
+ Quantity: 'QUANTITY'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.PaymentProductDtoPaymentTypeEnum = {
35
+ OneTime: 'ONE-TIME',
36
+ Recurring: 'RECURRING'
37
+ };
38
+ /**
39
+ * @export
40
+ */
41
+ exports.PaymentProductDtoPaymentIntervalEnum = {
42
+ Day: 'DAY',
43
+ Week: 'WEEK',
44
+ Month: 'MONTH',
45
+ Year: 'YEAR'
46
+ };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.PaymentProductDtoProductTypeEnum = {
51
+ Base: 'BASE',
52
+ Addon: 'ADDON'
53
+ };
54
+ /**
55
+ * Check if a given object implements the PaymentProductDto interface.
56
+ */
57
+ function instanceOfPaymentProductDto(value) {
58
+ return true;
59
+ }
60
+ function PaymentProductDtoFromJSON(json) {
61
+ return PaymentProductDtoFromJSONTyped(json, false);
62
+ }
63
+ function PaymentProductDtoFromJSONTyped(json, ignoreDiscriminator) {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+ 'id': json['id'] == null ? undefined : json['id'],
69
+ 'version': json['version'] == null ? undefined : json['version'],
70
+ 'name': json['name'] == null ? undefined : json['name'],
71
+ 'description': json['description'] == null ? undefined : json['description'],
72
+ 'imageLink': json['imageLink'] == null ? undefined : json['imageLink'],
73
+ 'price': json['price'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['price']),
74
+ 'taxIncluded': json['tax_included'] == null ? undefined : json['tax_included'],
75
+ 'taxRatePercentage': json['tax_rate_percentage'] == null ? undefined : json['tax_rate_percentage'],
76
+ 'usageType': json['usage_type'] == null ? undefined : json['usage_type'],
77
+ 'paymentType': json['payment_type'] == null ? undefined : json['payment_type'],
78
+ 'paymentInterval': json['payment_interval'] == null ? undefined : json['payment_interval'],
79
+ 'paymentIntervalLength': json['payment_interval_length'] == null ? undefined : json['payment_interval_length'],
80
+ 'productType': json['product_type'] == null ? undefined : json['product_type'],
81
+ 'productOrder': json['product_order'] == null ? undefined : json['product_order'],
82
+ 'addOns': json['addOns'] == null ? undefined : (json['addOns'].map(PaymentProductDtoFromJSON)),
83
+ };
84
+ }
85
+ function PaymentProductDtoToJSON(json) {
86
+ return PaymentProductDtoToJSONTyped(json, false);
87
+ }
88
+ function PaymentProductDtoToJSONTyped(value, ignoreDiscriminator) {
89
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+ 'id': value['id'],
95
+ 'version': value['version'],
96
+ 'name': value['name'],
97
+ 'description': value['description'],
98
+ 'imageLink': value['imageLink'],
99
+ 'price': (0, AmountDto_1.AmountDtoToJSON)(value['price']),
100
+ 'tax_included': value['taxIncluded'],
101
+ 'tax_rate_percentage': value['taxRatePercentage'],
102
+ 'usage_type': value['usageType'],
103
+ 'payment_type': value['paymentType'],
104
+ 'payment_interval': value['paymentInterval'],
105
+ 'payment_interval_length': value['paymentIntervalLength'],
106
+ 'product_type': value['productType'],
107
+ 'product_order': value['productOrder'],
108
+ 'addOns': value['addOns'] == null ? undefined : (value['addOns'].map(PaymentProductDtoToJSON)),
109
+ };
110
+ }
@@ -23,125 +23,71 @@ export interface ProductDto {
23
23
  id?: string;
24
24
  /**
25
25
  *
26
- * @type {string}
26
+ * @type {number}
27
27
  * @memberof ProductDto
28
28
  */
29
- version?: string;
29
+ version?: number;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof ProductDto
34
34
  */
35
- name?: string;
35
+ name: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof ProductDto
40
40
  */
41
41
  description?: string;
42
- /**
43
- *
44
- * @type {string}
45
- * @memberof ProductDto
46
- */
47
- imageLink?: string;
48
42
  /**
49
43
  *
50
44
  * @type {AmountDto}
51
45
  * @memberof ProductDto
52
46
  */
53
- price?: AmountDto;
47
+ netPrice?: AmountDto;
54
48
  /**
55
49
  *
56
- * @type {boolean}
50
+ * @type {AmountDto}
57
51
  * @memberof ProductDto
58
52
  */
59
- taxIncluded?: boolean;
53
+ purchasePrice?: AmountDto;
60
54
  /**
61
- *
55
+ * tax rate in percent
62
56
  * @type {number}
63
57
  * @memberof ProductDto
64
58
  */
65
- taxRatePercentage?: number;
59
+ taxRate?: number;
66
60
  /**
67
61
  *
68
62
  * @type {string}
69
63
  * @memberof ProductDto
70
64
  */
71
- usageType?: ProductDtoUsageTypeEnum;
65
+ articleNumber?: string;
72
66
  /**
73
67
  *
74
68
  * @type {string}
75
69
  * @memberof ProductDto
76
70
  */
77
- paymentType?: ProductDtoPaymentTypeEnum;
71
+ manufacturer?: string;
78
72
  /**
79
- *
73
+ * legal entity the product is purchased from
80
74
  * @type {string}
81
75
  * @memberof ProductDto
82
76
  */
83
- paymentInterval?: ProductDtoPaymentIntervalEnum;
84
- /**
85
- *
86
- * @type {number}
87
- * @memberof ProductDto
88
- */
89
- paymentIntervalLength?: number;
77
+ supplierId?: string;
90
78
  /**
91
- *
79
+ * unit the product is sold in
92
80
  * @type {string}
93
81
  * @memberof ProductDto
94
82
  */
95
- productType?: ProductDtoProductTypeEnum;
96
- /**
97
- *
98
- * @type {number}
99
- * @memberof ProductDto
100
- */
101
- productOrder?: number;
83
+ unitId?: string;
102
84
  /**
103
- *
104
- * @type {Array<ProductDto>}
85
+ * images of the product
86
+ * @type {Array<string>}
105
87
  * @memberof ProductDto
106
88
  */
107
- addOns?: Array<ProductDto>;
89
+ imageIds?: Array<string>;
108
90
  }
109
- /**
110
- * @export
111
- */
112
- export declare const ProductDtoUsageTypeEnum: {
113
- readonly Recurring: "RECURRING";
114
- readonly Metered: "METERED";
115
- readonly Licensed: "LICENSED";
116
- readonly Quantity: "QUANTITY";
117
- };
118
- export type ProductDtoUsageTypeEnum = typeof ProductDtoUsageTypeEnum[keyof typeof ProductDtoUsageTypeEnum];
119
- /**
120
- * @export
121
- */
122
- export declare const ProductDtoPaymentTypeEnum: {
123
- readonly OneTime: "ONE-TIME";
124
- readonly Recurring: "RECURRING";
125
- };
126
- export type ProductDtoPaymentTypeEnum = typeof ProductDtoPaymentTypeEnum[keyof typeof ProductDtoPaymentTypeEnum];
127
- /**
128
- * @export
129
- */
130
- export declare const ProductDtoPaymentIntervalEnum: {
131
- readonly Day: "DAY";
132
- readonly Week: "WEEK";
133
- readonly Month: "MONTH";
134
- readonly Year: "YEAR";
135
- };
136
- export type ProductDtoPaymentIntervalEnum = typeof ProductDtoPaymentIntervalEnum[keyof typeof ProductDtoPaymentIntervalEnum];
137
- /**
138
- * @export
139
- */
140
- export declare const ProductDtoProductTypeEnum: {
141
- readonly Base: "BASE";
142
- readonly Addon: "ADDON";
143
- };
144
- export type ProductDtoProductTypeEnum = typeof ProductDtoProductTypeEnum[keyof typeof ProductDtoProductTypeEnum];
145
91
  /**
146
92
  * Check if a given object implements the ProductDto interface.
147
93
  */
@@ -12,49 +12,18 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ProductDtoProductTypeEnum = exports.ProductDtoPaymentIntervalEnum = exports.ProductDtoPaymentTypeEnum = exports.ProductDtoUsageTypeEnum = void 0;
16
15
  exports.instanceOfProductDto = instanceOfProductDto;
17
16
  exports.ProductDtoFromJSON = ProductDtoFromJSON;
18
17
  exports.ProductDtoFromJSONTyped = ProductDtoFromJSONTyped;
19
18
  exports.ProductDtoToJSON = ProductDtoToJSON;
20
19
  exports.ProductDtoToJSONTyped = ProductDtoToJSONTyped;
21
20
  var AmountDto_1 = require("./AmountDto");
22
- /**
23
- * @export
24
- */
25
- exports.ProductDtoUsageTypeEnum = {
26
- Recurring: 'RECURRING',
27
- Metered: 'METERED',
28
- Licensed: 'LICENSED',
29
- Quantity: 'QUANTITY'
30
- };
31
- /**
32
- * @export
33
- */
34
- exports.ProductDtoPaymentTypeEnum = {
35
- OneTime: 'ONE-TIME',
36
- Recurring: 'RECURRING'
37
- };
38
- /**
39
- * @export
40
- */
41
- exports.ProductDtoPaymentIntervalEnum = {
42
- Day: 'DAY',
43
- Week: 'WEEK',
44
- Month: 'MONTH',
45
- Year: 'YEAR'
46
- };
47
- /**
48
- * @export
49
- */
50
- exports.ProductDtoProductTypeEnum = {
51
- Base: 'BASE',
52
- Addon: 'ADDON'
53
- };
54
21
  /**
55
22
  * Check if a given object implements the ProductDto interface.
56
23
  */
57
24
  function instanceOfProductDto(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
58
27
  return true;
59
28
  }
60
29
  function ProductDtoFromJSON(json) {
@@ -67,19 +36,16 @@ function ProductDtoFromJSONTyped(json, ignoreDiscriminator) {
67
36
  return {
68
37
  'id': json['id'] == null ? undefined : json['id'],
69
38
  'version': json['version'] == null ? undefined : json['version'],
70
- 'name': json['name'] == null ? undefined : json['name'],
39
+ 'name': json['name'],
71
40
  'description': json['description'] == null ? undefined : json['description'],
72
- 'imageLink': json['imageLink'] == null ? undefined : json['imageLink'],
73
- 'price': json['price'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['price']),
74
- 'taxIncluded': json['tax_included'] == null ? undefined : json['tax_included'],
75
- 'taxRatePercentage': json['tax_rate_percentage'] == null ? undefined : json['tax_rate_percentage'],
76
- 'usageType': json['usage_type'] == null ? undefined : json['usage_type'],
77
- 'paymentType': json['payment_type'] == null ? undefined : json['payment_type'],
78
- 'paymentInterval': json['payment_interval'] == null ? undefined : json['payment_interval'],
79
- 'paymentIntervalLength': json['payment_interval_length'] == null ? undefined : json['payment_interval_length'],
80
- 'productType': json['product_type'] == null ? undefined : json['product_type'],
81
- 'productOrder': json['product_order'] == null ? undefined : json['product_order'],
82
- 'addOns': json['addOns'] == null ? undefined : (json['addOns'].map(ProductDtoFromJSON)),
41
+ 'netPrice': json['netPrice'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['netPrice']),
42
+ 'purchasePrice': json['purchasePrice'] == null ? undefined : (0, AmountDto_1.AmountDtoFromJSON)(json['purchasePrice']),
43
+ 'taxRate': json['taxRate'] == null ? undefined : json['taxRate'],
44
+ 'articleNumber': json['articleNumber'] == null ? undefined : json['articleNumber'],
45
+ 'manufacturer': json['manufacturer'] == null ? undefined : json['manufacturer'],
46
+ 'supplierId': json['supplierId'] == null ? undefined : json['supplierId'],
47
+ 'unitId': json['unitId'] == null ? undefined : json['unitId'],
48
+ 'imageIds': json['imageIds'] == null ? undefined : json['imageIds'],
83
49
  };
84
50
  }
85
51
  function ProductDtoToJSON(json) {
@@ -95,16 +61,13 @@ function ProductDtoToJSONTyped(value, ignoreDiscriminator) {
95
61
  'version': value['version'],
96
62
  'name': value['name'],
97
63
  'description': value['description'],
98
- 'imageLink': value['imageLink'],
99
- 'price': (0, AmountDto_1.AmountDtoToJSON)(value['price']),
100
- 'tax_included': value['taxIncluded'],
101
- 'tax_rate_percentage': value['taxRatePercentage'],
102
- 'usage_type': value['usageType'],
103
- 'payment_type': value['paymentType'],
104
- 'payment_interval': value['paymentInterval'],
105
- 'payment_interval_length': value['paymentIntervalLength'],
106
- 'product_type': value['productType'],
107
- 'product_order': value['productOrder'],
108
- 'addOns': value['addOns'] == null ? undefined : (value['addOns'].map(ProductDtoToJSON)),
64
+ 'netPrice': (0, AmountDto_1.AmountDtoToJSON)(value['netPrice']),
65
+ 'purchasePrice': (0, AmountDto_1.AmountDtoToJSON)(value['purchasePrice']),
66
+ 'taxRate': value['taxRate'],
67
+ 'articleNumber': value['articleNumber'],
68
+ 'manufacturer': value['manufacturer'],
69
+ 'supplierId': value['supplierId'],
70
+ 'unitId': value['unitId'],
71
+ 'imageIds': value['imageIds'],
109
72
  };
110
73
  }
@@ -8,8 +8,8 @@
8
8
  * https://openapi-generator.tech
9
9
  * Do not edit the class manually.
10
10
  */
11
+ import type { PaymentProductDto } from './PaymentProductDto';
11
12
  import type { SubscriptionChangeDto } from './SubscriptionChangeDto';
12
- import type { ProductDto } from './ProductDto';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -98,10 +98,10 @@ export interface SubscriptionDto {
98
98
  trialEndDate?: Date;
99
99
  /**
100
100
  *
101
- * @type {ProductDto}
101
+ * @type {PaymentProductDto}
102
102
  * @memberof SubscriptionDto
103
103
  */
104
- product?: ProductDto;
104
+ product?: PaymentProductDto;
105
105
  /**
106
106
  *
107
107
  * @type {Array<SubscriptionChangeDto>}
@@ -18,8 +18,8 @@ exports.SubscriptionDtoFromJSON = SubscriptionDtoFromJSON;
18
18
  exports.SubscriptionDtoFromJSONTyped = SubscriptionDtoFromJSONTyped;
19
19
  exports.SubscriptionDtoToJSON = SubscriptionDtoToJSON;
20
20
  exports.SubscriptionDtoToJSONTyped = SubscriptionDtoToJSONTyped;
21
+ var PaymentProductDto_1 = require("./PaymentProductDto");
21
22
  var SubscriptionChangeDto_1 = require("./SubscriptionChangeDto");
22
- var ProductDto_1 = require("./ProductDto");
23
23
  /**
24
24
  * @export
25
25
  */
@@ -59,7 +59,7 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
59
59
  'currentPeriodEndDate': json['currentPeriodEndDate'] == null ? undefined : (new Date(json['currentPeriodEndDate'])),
60
60
  'trialStartDate': json['trialStartDate'] == null ? undefined : (new Date(json['trialStartDate'])),
61
61
  'trialEndDate': json['trialEndDate'] == null ? undefined : (new Date(json['trialEndDate'])),
62
- 'product': json['product'] == null ? undefined : (0, ProductDto_1.ProductDtoFromJSON)(json['product']),
62
+ 'product': json['product'] == null ? undefined : (0, PaymentProductDto_1.PaymentProductDtoFromJSON)(json['product']),
63
63
  'changes': json['changes'] == null ? undefined : (json['changes'].map(SubscriptionChangeDto_1.SubscriptionChangeDtoFromJSON)),
64
64
  };
65
65
  }
@@ -84,7 +84,7 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
84
84
  'currentPeriodEndDate': value['currentPeriodEndDate'] == null ? value['currentPeriodEndDate'] : value['currentPeriodEndDate'].toISOString(),
85
85
  'trialStartDate': value['trialStartDate'] == null ? value['trialStartDate'] : value['trialStartDate'].toISOString(),
86
86
  'trialEndDate': value['trialEndDate'] == null ? value['trialEndDate'] : value['trialEndDate'].toISOString(),
87
- 'product': (0, ProductDto_1.ProductDtoToJSON)(value['product']),
87
+ 'product': (0, PaymentProductDto_1.PaymentProductDtoToJSON)(value['product']),
88
88
  'changes': value['changes'] == null ? undefined : (value['changes'].map(SubscriptionChangeDto_1.SubscriptionChangeDtoToJSON)),
89
89
  };
90
90
  }
@@ -19,6 +19,7 @@ export declare const UiModule: {
19
19
  readonly InvoiceOffer: "Invoice.Offer";
20
20
  readonly InvoiceDeliveryNote: "Invoice.DeliveryNote";
21
21
  readonly InvoiceDunningLetter: "Invoice.DunningLetter";
22
+ readonly InvoiceProduct: "Invoice.Product";
22
23
  readonly InvoiceReceipt: "Invoice.Receipt";
23
24
  readonly InvoiceLedger: "Invoice.Ledger";
24
25
  readonly InvoiceBanking: "Invoice.Banking";
@@ -29,6 +29,7 @@ exports.UiModule = {
29
29
  InvoiceOffer: 'Invoice.Offer',
30
30
  InvoiceDeliveryNote: 'Invoice.DeliveryNote',
31
31
  InvoiceDunningLetter: 'Invoice.DunningLetter',
32
+ InvoiceProduct: 'Invoice.Product',
32
33
  InvoiceReceipt: 'Invoice.Receipt',
33
34
  InvoiceLedger: 'Invoice.Ledger',
34
35
  InvoiceBanking: 'Invoice.Banking',
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Kommerz API Specification
3
+ * API specification for Kommerz Services. - /ui/ for services consumed by the frontend - /intern/ for internal administration endpoints - /extern/ for services consumed by external services - /stats/ for monitoring endpoints - /actuator/ for health endpoints (e.g. /actuator/health ) All endpoints are postfixed with a version number.
4
+ *
5
+ * Contact: info@kommerz.app
6
+ *
7
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
8
+ * https://openapi-generator.tech
9
+ * Do not edit the class manually.
10
+ */
11
+ /**
12
+ * unit of measure according to UN/ECE Recommendation 20 as required by EN 16931
13
+ * @export
14
+ */
15
+ export declare const UnitCode: {
16
+ readonly P1: "P1";
17
+ readonly Nar: "NAR";
18
+ readonly Kgm: "KGM";
19
+ readonly Kmt: "KMT";
20
+ readonly Kwh: "KWH";
21
+ readonly Ltr: "LTR";
22
+ readonly Mtr: "MTR";
23
+ readonly Mtk: "MTK";
24
+ readonly Mtq: "MTQ";
25
+ readonly Min: "MIN";
26
+ readonly Mmt: "MMT";
27
+ readonly Mmk: "MMK";
28
+ readonly Ls: "LS";
29
+ readonly Npr: "NPR";
30
+ readonly Set: "SET";
31
+ readonly Hur: "HUR";
32
+ readonly C62: "C62";
33
+ readonly Tne: "TNE";
34
+ readonly Day: "DAY";
35
+ readonly Wee: "WEE";
36
+ };
37
+ export type UnitCode = typeof UnitCode[keyof typeof UnitCode];
38
+ export declare function instanceOfUnitCode(value: any): boolean;
39
+ export declare function UnitCodeFromJSON(json: any): UnitCode;
40
+ export declare function UnitCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitCode;
41
+ export declare function UnitCodeToJSON(value?: UnitCode | null): any;
42
+ export declare function UnitCodeToJSONTyped(value: any, ignoreDiscriminator: boolean): UnitCode;