@kommerz/ts-client 1.171.3 → 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.
- package/dist/apis/PaymentProductsApi.d.ts +5 -5
- package/dist/apis/PaymentProductsApi.js +6 -6
- package/dist/apis/ProductsApi.d.ts +75 -0
- package/dist/apis/ProductsApi.js +321 -0
- package/dist/apis/UsersApi.d.ts +11 -0
- package/dist/apis/UsersApi.js +44 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/EntityType.d.ts +1 -0
- package/dist/models/EntityType.js +1 -0
- package/dist/models/GetAllProducts200Response.d.ts +50 -0
- package/dist/models/GetAllProducts200Response.js +59 -0
- package/dist/models/PaymentProductDto.d.ts +152 -0
- package/dist/models/PaymentProductDto.js +110 -0
- package/dist/models/ProductDto.d.ts +17 -71
- package/dist/models/ProductDto.js +19 -56
- package/dist/models/SubscriptionDto.d.ts +3 -3
- package/dist/models/SubscriptionDto.js +3 -3
- package/dist/models/UiModule.d.ts +1 -0
- package/dist/models/UiModule.js +1 -0
- package/dist/models/UnitCode.d.ts +42 -0
- package/dist/models/UnitCode.js +68 -0
- package/dist/models/UnitDto.d.ts +5 -23
- package/dist/models/UnitDto.js +8 -24
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfGetAllProducts200Response = instanceOfGetAllProducts200Response;
|
|
16
|
+
exports.GetAllProducts200ResponseFromJSON = GetAllProducts200ResponseFromJSON;
|
|
17
|
+
exports.GetAllProducts200ResponseFromJSONTyped = GetAllProducts200ResponseFromJSONTyped;
|
|
18
|
+
exports.GetAllProducts200ResponseToJSON = GetAllProducts200ResponseToJSON;
|
|
19
|
+
exports.GetAllProducts200ResponseToJSONTyped = GetAllProducts200ResponseToJSONTyped;
|
|
20
|
+
var ProductDto_1 = require("./ProductDto");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetAllProducts200Response interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetAllProducts200Response(value) {
|
|
25
|
+
if (!('totalElements' in value) || value['totalElements'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function GetAllProducts200ResponseFromJSON(json) {
|
|
32
|
+
return GetAllProducts200ResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function GetAllProducts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
|
|
40
|
+
'pageSize': json['pageSize'] == null ? undefined : json['pageSize'],
|
|
41
|
+
'totalElements': json['totalElements'],
|
|
42
|
+
'content': (json['content'].map(ProductDto_1.ProductDtoFromJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function GetAllProducts200ResponseToJSON(json) {
|
|
46
|
+
return GetAllProducts200ResponseToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function GetAllProducts200ResponseToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'pageNumber': value['pageNumber'],
|
|
55
|
+
'pageSize': value['pageSize'],
|
|
56
|
+
'totalElements': value['totalElements'],
|
|
57
|
+
'content': (value['content'].map(ProductDto_1.ProductDtoToJSON)),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -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 {
|
|
26
|
+
* @type {number}
|
|
27
27
|
* @memberof ProductDto
|
|
28
28
|
*/
|
|
29
|
-
version?:
|
|
29
|
+
version?: number;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof ProductDto
|
|
34
34
|
*/
|
|
35
|
-
name
|
|
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
|
-
|
|
47
|
+
netPrice?: AmountDto;
|
|
54
48
|
/**
|
|
55
49
|
*
|
|
56
|
-
* @type {
|
|
50
|
+
* @type {AmountDto}
|
|
57
51
|
* @memberof ProductDto
|
|
58
52
|
*/
|
|
59
|
-
|
|
53
|
+
purchasePrice?: AmountDto;
|
|
60
54
|
/**
|
|
61
|
-
*
|
|
55
|
+
* tax rate in percent
|
|
62
56
|
* @type {number}
|
|
63
57
|
* @memberof ProductDto
|
|
64
58
|
*/
|
|
65
|
-
|
|
59
|
+
taxRate?: number;
|
|
66
60
|
/**
|
|
67
61
|
*
|
|
68
62
|
* @type {string}
|
|
69
63
|
* @memberof ProductDto
|
|
70
64
|
*/
|
|
71
|
-
|
|
65
|
+
articleNumber?: string;
|
|
72
66
|
/**
|
|
73
67
|
*
|
|
74
68
|
* @type {string}
|
|
75
69
|
* @memberof ProductDto
|
|
76
70
|
*/
|
|
77
|
-
|
|
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
|
-
|
|
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
|
-
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
* @type {number}
|
|
99
|
-
* @memberof ProductDto
|
|
100
|
-
*/
|
|
101
|
-
productOrder?: number;
|
|
83
|
+
unitId?: string;
|
|
102
84
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {Array<
|
|
85
|
+
* images of the product
|
|
86
|
+
* @type {Array<string>}
|
|
105
87
|
* @memberof ProductDto
|
|
106
88
|
*/
|
|
107
|
-
|
|
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']
|
|
39
|
+
'name': json['name'],
|
|
71
40
|
'description': json['description'] == null ? undefined : json['description'],
|
|
72
|
-
'
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
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
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
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 {
|
|
101
|
+
* @type {PaymentProductDto}
|
|
102
102
|
* @memberof SubscriptionDto
|
|
103
103
|
*/
|
|
104
|
-
product?:
|
|
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,
|
|
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,
|
|
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";
|
package/dist/models/UiModule.js
CHANGED
|
@@ -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',
|