@randock/nameshift-api-client 0.0.378 → 0.0.380
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/README.md +3 -3
- package/dist/models/AccountNotificationDto.d.ts +1 -0
- package/dist/models/AccountNotificationDto.js +2 -1
- package/dist/models/CreateOrderInput.d.ts +6 -0
- package/dist/models/CreateOrderInput.js +2 -0
- package/dist/models/CreateSubscriptionInput.d.ts +6 -0
- package/dist/models/CreateSubscriptionInput.js +2 -0
- package/dist/models/OrderDto.d.ts +12 -0
- package/dist/models/OrderDto.js +8 -0
- package/dist/models/SubscriptionDto.d.ts +12 -0
- package/dist/models/SubscriptionDto.js +8 -0
- package/dist/models/UpdateOrderInput.d.ts +6 -0
- package/dist/models/UpdateOrderInput.js +2 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +6 -0
- package/dist/models/UpdateSubscriptionInput.js +2 -0
- package/package.json +1 -1
- package/src/models/AccountNotificationDto.ts +2 -1
- package/src/models/CreateOrderInput.ts +8 -0
- package/src/models/CreateSubscriptionInput.ts +8 -0
- package/src/models/OrderDto.ts +18 -0
- package/src/models/SubscriptionDto.ts +18 -0
- package/src/models/UpdateOrderInput.ts +8 -0
- package/src/models/UpdateSubscriptionInput.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.380
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.380 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
df135fe5c42b50e0992d8c294701bd29ca42ec78566608dc4e0f3878150703eea0b82e1440b43f4f7d55cecb248e5376
|
|
@@ -59,6 +59,7 @@ export declare const AccountNotificationDtoTypeEnum: {
|
|
|
59
59
|
readonly ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: "account.payment_provider.not_active";
|
|
60
60
|
readonly ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: "account.payment_provider.was_changed";
|
|
61
61
|
readonly ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: "account.bank_account.verification_required";
|
|
62
|
+
readonly ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: "account.bank_account.required_to_receive_payouts";
|
|
62
63
|
};
|
|
63
64
|
export type AccountNotificationDtoTypeEnum = typeof AccountNotificationDtoTypeEnum[keyof typeof AccountNotificationDtoTypeEnum];
|
|
64
65
|
/**
|
|
@@ -36,7 +36,8 @@ exports.AccountNotificationDtoTypeEnum = {
|
|
|
36
36
|
ACCOUNT_PAYMENT_PROVIDER_NOT_CONFIGURED: 'account.payment_provider.not_configured',
|
|
37
37
|
ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
|
|
38
38
|
ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed',
|
|
39
|
-
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required'
|
|
39
|
+
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required',
|
|
40
|
+
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts'
|
|
40
41
|
};
|
|
41
42
|
/**
|
|
42
43
|
* Check if a given object implements the AccountNotificationDto interface.
|
|
@@ -100,6 +100,12 @@ export interface CreateOrderInput {
|
|
|
100
100
|
* @memberof CreateOrderInput
|
|
101
101
|
*/
|
|
102
102
|
companyInfo?: OrderCompanyInfoDto | null;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof CreateOrderInput
|
|
107
|
+
*/
|
|
108
|
+
selfDeclaredTaxCountry?: string;
|
|
103
109
|
}
|
|
104
110
|
/**
|
|
105
111
|
* Check if a given object implements the CreateOrderInput interface.
|
|
@@ -53,6 +53,7 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
54
54
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
55
55
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
56
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
function CreateOrderInputToJSON(json) {
|
|
@@ -78,5 +79,6 @@ function CreateOrderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
78
79
|
'addressPostalCode': value['addressPostalCode'],
|
|
79
80
|
'addressCity': value['addressCity'],
|
|
80
81
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
82
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
81
83
|
};
|
|
82
84
|
}
|
|
@@ -113,6 +113,12 @@ export interface CreateSubscriptionInput {
|
|
|
113
113
|
* @memberof CreateSubscriptionInput
|
|
114
114
|
*/
|
|
115
115
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof CreateSubscriptionInput
|
|
120
|
+
*/
|
|
121
|
+
selfDeclaredTaxCountry?: string;
|
|
116
122
|
}
|
|
117
123
|
/**
|
|
118
124
|
* @export
|
|
@@ -68,6 +68,7 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
68
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
69
69
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
70
70
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
71
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
74
|
function CreateSubscriptionInputToJSON(json) {
|
|
@@ -95,5 +96,6 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
95
96
|
'addressPostalCode': value['addressPostalCode'],
|
|
96
97
|
'addressCity': value['addressCity'],
|
|
97
98
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
99
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
98
100
|
};
|
|
99
101
|
}
|
|
@@ -32,6 +32,18 @@ export interface OrderDto {
|
|
|
32
32
|
* @memberof OrderDto
|
|
33
33
|
*/
|
|
34
34
|
status: OrderDtoStatusEnum;
|
|
35
|
+
/**
|
|
36
|
+
* Self-declared tax country code (ISO 3166-1 alpha-2).
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof OrderDto
|
|
39
|
+
*/
|
|
40
|
+
selfDeclaredTaxCountry: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Decided tax country code (ISO 3166-1 alpha-2).
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof OrderDto
|
|
45
|
+
*/
|
|
46
|
+
decidedCountry: string;
|
|
35
47
|
/**
|
|
36
48
|
*
|
|
37
49
|
* @type {MoneyDto}
|
package/dist/models/OrderDto.js
CHANGED
|
@@ -48,6 +48,10 @@ function instanceOfOrderDto(value) {
|
|
|
48
48
|
return false;
|
|
49
49
|
if (!('status' in value) || value['status'] === undefined)
|
|
50
50
|
return false;
|
|
51
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
|
|
54
|
+
return false;
|
|
51
55
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
52
56
|
return false;
|
|
53
57
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined)
|
|
@@ -88,6 +92,8 @@ function OrderDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
88
92
|
return {
|
|
89
93
|
'id': json['id'],
|
|
90
94
|
'status': json['status'],
|
|
95
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
96
|
+
'decidedCountry': json['decidedCountry'],
|
|
91
97
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
92
98
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
93
99
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalTaxPrice']),
|
|
@@ -115,6 +121,8 @@ function OrderDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
115
121
|
return {
|
|
116
122
|
'id': value['id'],
|
|
117
123
|
'status': value['status'],
|
|
124
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
125
|
+
'decidedCountry': value['decidedCountry'],
|
|
118
126
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
119
127
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
120
128
|
'totalTaxPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalTaxPrice']),
|
|
@@ -41,6 +41,18 @@ export interface SubscriptionDto {
|
|
|
41
41
|
* @memberof SubscriptionDto
|
|
42
42
|
*/
|
|
43
43
|
status: SubscriptionDtoStatusEnum;
|
|
44
|
+
/**
|
|
45
|
+
* Self-declared tax country code (ISO 3166-1 alpha-2).
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof SubscriptionDto
|
|
48
|
+
*/
|
|
49
|
+
selfDeclaredTaxCountry: string | null;
|
|
50
|
+
/**
|
|
51
|
+
* Decided tax country code (ISO 3166-1 alpha-2).
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof SubscriptionDto
|
|
54
|
+
*/
|
|
55
|
+
decidedCountry: string;
|
|
44
56
|
/**
|
|
45
57
|
*
|
|
46
58
|
* @type {MoneyDto}
|
|
@@ -64,6 +64,10 @@ function instanceOfSubscriptionDto(value) {
|
|
|
64
64
|
return false;
|
|
65
65
|
if (!('status' in value) || value['status'] === undefined)
|
|
66
66
|
return false;
|
|
67
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
|
|
68
|
+
return false;
|
|
69
|
+
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined)
|
|
70
|
+
return false;
|
|
67
71
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
68
72
|
return false;
|
|
69
73
|
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined)
|
|
@@ -121,6 +125,8 @@ function SubscriptionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
121
125
|
'id': json['id'],
|
|
122
126
|
'invoiceId': json['invoiceId'],
|
|
123
127
|
'status': json['status'],
|
|
128
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
129
|
+
'decidedCountry': json['decidedCountry'],
|
|
124
130
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
125
131
|
'recurringPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringPrice']),
|
|
126
132
|
'totalPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['totalPrice']),
|
|
@@ -157,6 +163,8 @@ function SubscriptionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
157
163
|
'id': value['id'],
|
|
158
164
|
'invoiceId': value['invoiceId'],
|
|
159
165
|
'status': value['status'],
|
|
166
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
167
|
+
'decidedCountry': value['decidedCountry'],
|
|
160
168
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
161
169
|
'recurringPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringPrice']),
|
|
162
170
|
'totalPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['totalPrice']),
|
|
@@ -82,6 +82,12 @@ export interface UpdateOrderInput {
|
|
|
82
82
|
* @memberof UpdateOrderInput
|
|
83
83
|
*/
|
|
84
84
|
companyInfo?: OrderCompanyInfoDto | null;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateOrderInput
|
|
89
|
+
*/
|
|
90
|
+
selfDeclaredTaxCountry?: string;
|
|
85
91
|
}
|
|
86
92
|
/**
|
|
87
93
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
@@ -44,6 +44,7 @@ function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
45
45
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
46
46
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
47
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
function UpdateOrderInputToJSON(json) {
|
|
@@ -66,5 +67,6 @@ function UpdateOrderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
66
67
|
'addressPostalCode': value['addressPostalCode'],
|
|
67
68
|
'addressCity': value['addressCity'],
|
|
68
69
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
70
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
69
71
|
};
|
|
70
72
|
}
|
|
@@ -95,6 +95,12 @@ export interface UpdateSubscriptionInput {
|
|
|
95
95
|
* @memberof UpdateSubscriptionInput
|
|
96
96
|
*/
|
|
97
97
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof UpdateSubscriptionInput
|
|
102
|
+
*/
|
|
103
|
+
selfDeclaredTaxCountry?: string;
|
|
98
104
|
}
|
|
99
105
|
/**
|
|
100
106
|
* Check if a given object implements the UpdateSubscriptionInput interface.
|
|
@@ -47,6 +47,7 @@ function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
47
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
48
48
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
49
49
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
50
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
function UpdateSubscriptionInputToJSON(json) {
|
|
@@ -71,5 +72,6 @@ function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
71
72
|
'addressPostalCode': value['addressPostalCode'],
|
|
72
73
|
'addressCity': value['addressCity'],
|
|
73
74
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
75
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
74
76
|
};
|
|
75
77
|
}
|
package/package.json
CHANGED
|
@@ -72,7 +72,8 @@ export const AccountNotificationDtoTypeEnum = {
|
|
|
72
72
|
ACCOUNT_PAYMENT_PROVIDER_NOT_CONFIGURED: 'account.payment_provider.not_configured',
|
|
73
73
|
ACCOUNT_PAYMENT_PROVIDER_NOT_ACTIVE: 'account.payment_provider.not_active',
|
|
74
74
|
ACCOUNT_PAYMENT_PROVIDER_WAS_CHANGED: 'account.payment_provider.was_changed',
|
|
75
|
-
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required'
|
|
75
|
+
ACCOUNT_BANK_ACCOUNT_VERIFICATION_REQUIRED: 'account.bank_account.verification_required',
|
|
76
|
+
ACCOUNT_BANK_ACCOUNT_REQUIRED_TO_RECEIVE_PAYOUTS: 'account.bank_account.required_to_receive_payouts'
|
|
76
77
|
} as const;
|
|
77
78
|
export type AccountNotificationDtoTypeEnum = typeof AccountNotificationDtoTypeEnum[keyof typeof AccountNotificationDtoTypeEnum];
|
|
78
79
|
|
|
@@ -111,6 +111,12 @@ export interface CreateOrderInput {
|
|
|
111
111
|
* @memberof CreateOrderInput
|
|
112
112
|
*/
|
|
113
113
|
companyInfo?: OrderCompanyInfoDto | null;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof CreateOrderInput
|
|
118
|
+
*/
|
|
119
|
+
selfDeclaredTaxCountry?: string;
|
|
114
120
|
}
|
|
115
121
|
|
|
116
122
|
/**
|
|
@@ -147,6 +153,7 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
147
153
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
148
154
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
149
155
|
'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
156
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
150
157
|
};
|
|
151
158
|
}
|
|
152
159
|
|
|
@@ -175,6 +182,7 @@ export function CreateOrderInputToJSONTyped(value?: CreateOrderInput | null, ign
|
|
|
175
182
|
'addressPostalCode': value['addressPostalCode'],
|
|
176
183
|
'addressCity': value['addressCity'],
|
|
177
184
|
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
185
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
178
186
|
};
|
|
179
187
|
}
|
|
180
188
|
|
|
@@ -130,6 +130,12 @@ export interface CreateSubscriptionInput {
|
|
|
130
130
|
* @memberof CreateSubscriptionInput
|
|
131
131
|
*/
|
|
132
132
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof CreateSubscriptionInput
|
|
137
|
+
*/
|
|
138
|
+
selfDeclaredTaxCountry?: string;
|
|
133
139
|
}
|
|
134
140
|
|
|
135
141
|
|
|
@@ -181,6 +187,7 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
181
187
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
182
188
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
183
189
|
'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
190
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
184
191
|
};
|
|
185
192
|
}
|
|
186
193
|
|
|
@@ -211,6 +218,7 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
|
|
|
211
218
|
'addressPostalCode': value['addressPostalCode'],
|
|
212
219
|
'addressCity': value['addressCity'],
|
|
213
220
|
'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
|
|
221
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
214
222
|
};
|
|
215
223
|
}
|
|
216
224
|
|
package/src/models/OrderDto.ts
CHANGED
|
@@ -67,6 +67,18 @@ export interface OrderDto {
|
|
|
67
67
|
* @memberof OrderDto
|
|
68
68
|
*/
|
|
69
69
|
status: OrderDtoStatusEnum;
|
|
70
|
+
/**
|
|
71
|
+
* Self-declared tax country code (ISO 3166-1 alpha-2).
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof OrderDto
|
|
74
|
+
*/
|
|
75
|
+
selfDeclaredTaxCountry: string | null;
|
|
76
|
+
/**
|
|
77
|
+
* Decided tax country code (ISO 3166-1 alpha-2).
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof OrderDto
|
|
80
|
+
*/
|
|
81
|
+
decidedCountry: string;
|
|
70
82
|
/**
|
|
71
83
|
*
|
|
72
84
|
* @type {MoneyDto}
|
|
@@ -181,6 +193,8 @@ export type OrderDtoEnabledPaymentMethodsEnum = typeof OrderDtoEnabledPaymentMet
|
|
|
181
193
|
export function instanceOfOrderDto(value: object): value is OrderDto {
|
|
182
194
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
183
195
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
196
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
197
|
+
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
|
|
184
198
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
185
199
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
186
200
|
if (!('totalTaxPrice' in value) || value['totalTaxPrice'] === undefined) return false;
|
|
@@ -210,6 +224,8 @@ export function OrderDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
210
224
|
|
|
211
225
|
'id': json['id'],
|
|
212
226
|
'status': json['status'],
|
|
227
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
228
|
+
'decidedCountry': json['decidedCountry'],
|
|
213
229
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
214
230
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
215
231
|
'totalTaxPrice': MoneyDtoFromJSON(json['totalTaxPrice']),
|
|
@@ -240,6 +256,8 @@ export function OrderDtoToJSONTyped(value?: OrderDto | null, ignoreDiscriminator
|
|
|
240
256
|
|
|
241
257
|
'id': value['id'],
|
|
242
258
|
'status': value['status'],
|
|
259
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
260
|
+
'decidedCountry': value['decidedCountry'],
|
|
243
261
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
244
262
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
245
263
|
'totalTaxPrice': MoneyDtoToJSON(value['totalTaxPrice']),
|
|
@@ -94,6 +94,18 @@ export interface SubscriptionDto {
|
|
|
94
94
|
* @memberof SubscriptionDto
|
|
95
95
|
*/
|
|
96
96
|
status: SubscriptionDtoStatusEnum;
|
|
97
|
+
/**
|
|
98
|
+
* Self-declared tax country code (ISO 3166-1 alpha-2).
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof SubscriptionDto
|
|
101
|
+
*/
|
|
102
|
+
selfDeclaredTaxCountry: string | null;
|
|
103
|
+
/**
|
|
104
|
+
* Decided tax country code (ISO 3166-1 alpha-2).
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof SubscriptionDto
|
|
107
|
+
*/
|
|
108
|
+
decidedCountry: string;
|
|
97
109
|
/**
|
|
98
110
|
*
|
|
99
111
|
* @type {MoneyDto}
|
|
@@ -270,6 +282,8 @@ export function instanceOfSubscriptionDto(value: object): value is SubscriptionD
|
|
|
270
282
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
271
283
|
if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
|
|
272
284
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
285
|
+
if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined) return false;
|
|
286
|
+
if (!('decidedCountry' in value) || value['decidedCountry'] === undefined) return false;
|
|
273
287
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
274
288
|
if (!('recurringPrice' in value) || value['recurringPrice'] === undefined) return false;
|
|
275
289
|
if (!('totalPrice' in value) || value['totalPrice'] === undefined) return false;
|
|
@@ -308,6 +322,8 @@ export function SubscriptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
308
322
|
'id': json['id'],
|
|
309
323
|
'invoiceId': json['invoiceId'],
|
|
310
324
|
'status': json['status'],
|
|
325
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
|
|
326
|
+
'decidedCountry': json['decidedCountry'],
|
|
311
327
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
312
328
|
'recurringPrice': MoneyDtoFromJSON(json['recurringPrice']),
|
|
313
329
|
'totalPrice': MoneyDtoFromJSON(json['totalPrice']),
|
|
@@ -347,6 +363,8 @@ export function SubscriptionDtoToJSONTyped(value?: SubscriptionDto | null, ignor
|
|
|
347
363
|
'id': value['id'],
|
|
348
364
|
'invoiceId': value['invoiceId'],
|
|
349
365
|
'status': value['status'],
|
|
366
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
367
|
+
'decidedCountry': value['decidedCountry'],
|
|
350
368
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
351
369
|
'recurringPrice': MoneyDtoToJSON(value['recurringPrice']),
|
|
352
370
|
'totalPrice': MoneyDtoToJSON(value['totalPrice']),
|
|
@@ -93,6 +93,12 @@ export interface UpdateOrderInput {
|
|
|
93
93
|
* @memberof UpdateOrderInput
|
|
94
94
|
*/
|
|
95
95
|
companyInfo?: OrderCompanyInfoDto | null;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof UpdateOrderInput
|
|
100
|
+
*/
|
|
101
|
+
selfDeclaredTaxCountry?: string;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
/**
|
|
@@ -123,6 +129,7 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
123
129
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
124
130
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
125
131
|
'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
132
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
126
133
|
};
|
|
127
134
|
}
|
|
128
135
|
|
|
@@ -148,6 +155,7 @@ export function UpdateOrderInputToJSONTyped(value?: UpdateOrderInput | null, ign
|
|
|
148
155
|
'addressPostalCode': value['addressPostalCode'],
|
|
149
156
|
'addressCity': value['addressCity'],
|
|
150
157
|
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
158
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
151
159
|
};
|
|
152
160
|
}
|
|
153
161
|
|
|
@@ -112,6 +112,12 @@ export interface UpdateSubscriptionInput {
|
|
|
112
112
|
* @memberof UpdateSubscriptionInput
|
|
113
113
|
*/
|
|
114
114
|
companyInfo?: SubscriptionCompanyInfoDto | null;
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @type {string}
|
|
118
|
+
* @memberof UpdateSubscriptionInput
|
|
119
|
+
*/
|
|
120
|
+
selfDeclaredTaxCountry?: string;
|
|
115
121
|
}
|
|
116
122
|
|
|
117
123
|
/**
|
|
@@ -144,6 +150,7 @@ export function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
144
150
|
'addressPostalCode': json['addressPostalCode'] == null ? undefined : json['addressPostalCode'],
|
|
145
151
|
'addressCity': json['addressCity'] == null ? undefined : json['addressCity'],
|
|
146
152
|
'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
153
|
+
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
147
154
|
};
|
|
148
155
|
}
|
|
149
156
|
|
|
@@ -171,6 +178,7 @@ export function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInp
|
|
|
171
178
|
'addressPostalCode': value['addressPostalCode'],
|
|
172
179
|
'addressCity': value['addressCity'],
|
|
173
180
|
'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
|
|
181
|
+
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
174
182
|
};
|
|
175
183
|
}
|
|
176
184
|
|