@randock/nameshift-api-client 0.0.451 → 0.0.453
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/apis/DomainsApi.d.ts +1 -0
- package/dist/apis/DomainsApi.js +3 -0
- package/dist/models/CreateOrderInput.d.ts +12 -0
- package/dist/models/CreateOrderInput.js +4 -0
- package/dist/models/CreateSubscriptionInput.d.ts +12 -0
- package/dist/models/CreateSubscriptionInput.js +4 -0
- package/dist/models/OrderCompanyTaxIdDto.d.ts +7 -1
- package/dist/models/OrderCompanyTaxIdDto.js +1 -0
- package/dist/models/SubscriptionCompanyTaxIdDto.d.ts +7 -1
- package/dist/models/SubscriptionCompanyTaxIdDto.js +1 -0
- package/dist/models/UpdateOrderInput.d.ts +12 -0
- package/dist/models/UpdateOrderInput.js +4 -0
- package/dist/models/UpdateSubscriptionInput.d.ts +12 -0
- package/dist/models/UpdateSubscriptionInput.js +4 -0
- package/package.json +1 -1
- package/src/apis/DomainsApi.ts +5 -0
- package/src/models/CreateOrderInput.ts +16 -0
- package/src/models/CreateSubscriptionInput.ts +16 -0
- package/src/models/OrderCompanyTaxIdDto.ts +8 -1
- package/src/models/SubscriptionCompanyTaxIdDto.ts +8 -1
- package/src/models/UpdateOrderInput.ts +16 -0
- package/src/models/UpdateSubscriptionInput.ts +16 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.453
|
|
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.453 --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
|
+
5c83e48458add2c088b418d8c10140d1aa55a4ea6d39c1570fc3b43e3d9b0d48dffc34bf8bf1409cb03e3a909ad5fa42
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -1224,6 +1224,9 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
1224
1224
|
if (requestParameters['filterPointingDnsStatus'] != null) {
|
|
1225
1225
|
queryParameters['filter[pointingDnsStatus]'] = requestParameters['filterPointingDnsStatus'];
|
|
1226
1226
|
}
|
|
1227
|
+
if (requestParameters['filterMarketplace'] != null) {
|
|
1228
|
+
queryParameters['filter[marketplace]'] = requestParameters['filterMarketplace'];
|
|
1229
|
+
}
|
|
1227
1230
|
if (requestParameters['filterCurrencyCode'] != null) {
|
|
1228
1231
|
queryParameters['filter[currencyCode]'] = requestParameters['filterCurrencyCode'];
|
|
1229
1232
|
}
|
|
@@ -94,6 +94,18 @@ export interface CreateOrderInput {
|
|
|
94
94
|
* @memberof CreateOrderInput
|
|
95
95
|
*/
|
|
96
96
|
forceUpdatePaymentMethods?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof CreateOrderInput
|
|
101
|
+
*/
|
|
102
|
+
forceValidateVatId?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof CreateOrderInput
|
|
107
|
+
*/
|
|
108
|
+
payAction?: boolean;
|
|
97
109
|
/**
|
|
98
110
|
* Full domain name to purchase
|
|
99
111
|
* @type {string}
|
|
@@ -48,6 +48,8 @@ function CreateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
49
49
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
50
50
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
51
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
52
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
51
53
|
'domainName': json['domainName'],
|
|
52
54
|
'leadId': json['leadId'] == null ? undefined : json['leadId'],
|
|
53
55
|
'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
|
|
@@ -75,6 +77,8 @@ function CreateOrderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
77
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
76
78
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
77
79
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
80
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
81
|
+
'payAction': value['payAction'],
|
|
78
82
|
'domainName': value['domainName'],
|
|
79
83
|
'leadId': value['leadId'],
|
|
80
84
|
'affiliateId': value['affiliateId'],
|
|
@@ -107,6 +107,18 @@ export interface CreateSubscriptionInput {
|
|
|
107
107
|
* @memberof CreateSubscriptionInput
|
|
108
108
|
*/
|
|
109
109
|
forceUpdatePaymentMethods?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof CreateSubscriptionInput
|
|
114
|
+
*/
|
|
115
|
+
forceValidateVatId?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof CreateSubscriptionInput
|
|
120
|
+
*/
|
|
121
|
+
payAction?: boolean;
|
|
110
122
|
/**
|
|
111
123
|
* Full domain name for the subscription
|
|
112
124
|
* @type {string}
|
|
@@ -61,6 +61,8 @@ function CreateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
61
61
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
62
62
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
63
63
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
64
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
65
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
64
66
|
'domainName': json['domainName'],
|
|
65
67
|
'subscriptionType': json['subscriptionType'],
|
|
66
68
|
'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
|
|
@@ -90,6 +92,8 @@ function CreateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
90
92
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
91
93
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
92
94
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
95
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
96
|
+
'payAction': value['payAction'],
|
|
93
97
|
'domainName': value['domainName'],
|
|
94
98
|
'subscriptionType': value['subscriptionType'],
|
|
95
99
|
'affiliateId': value['affiliateId'],
|
|
@@ -33,6 +33,12 @@ export interface OrderCompanyTaxIdDto {
|
|
|
33
33
|
* @memberof OrderCompanyTaxIdDto
|
|
34
34
|
*/
|
|
35
35
|
countryCode: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the tax ID passed validation.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof OrderCompanyTaxIdDto
|
|
40
|
+
*/
|
|
41
|
+
readonly isValid?: boolean | null;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the OrderCompanyTaxIdDto interface.
|
|
@@ -41,4 +47,4 @@ export declare function instanceOfOrderCompanyTaxIdDto(value: object): value is
|
|
|
41
47
|
export declare function OrderCompanyTaxIdDtoFromJSON(json: any): OrderCompanyTaxIdDto;
|
|
42
48
|
export declare function OrderCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderCompanyTaxIdDto;
|
|
43
49
|
export declare function OrderCompanyTaxIdDtoToJSON(json: any): OrderCompanyTaxIdDto;
|
|
44
|
-
export declare function OrderCompanyTaxIdDtoToJSONTyped(value?: OrderCompanyTaxIdDto | null, ignoreDiscriminator?: boolean): any;
|
|
50
|
+
export declare function OrderCompanyTaxIdDtoToJSONTyped(value?: Omit<OrderCompanyTaxIdDto, 'isValid'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -41,6 +41,7 @@ function OrderCompanyTaxIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'value': json['value'],
|
|
42
42
|
'type': json['type'],
|
|
43
43
|
'countryCode': json['countryCode'],
|
|
44
|
+
'isValid': json['isValid'] == null ? undefined : json['isValid'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
function OrderCompanyTaxIdDtoToJSON(json) {
|
|
@@ -33,6 +33,12 @@ export interface SubscriptionCompanyTaxIdDto {
|
|
|
33
33
|
* @memberof SubscriptionCompanyTaxIdDto
|
|
34
34
|
*/
|
|
35
35
|
countryCode: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the tax ID passed validation.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof SubscriptionCompanyTaxIdDto
|
|
40
|
+
*/
|
|
41
|
+
readonly isValid?: boolean | null;
|
|
36
42
|
}
|
|
37
43
|
/**
|
|
38
44
|
* Check if a given object implements the SubscriptionCompanyTaxIdDto interface.
|
|
@@ -41,4 +47,4 @@ export declare function instanceOfSubscriptionCompanyTaxIdDto(value: object): va
|
|
|
41
47
|
export declare function SubscriptionCompanyTaxIdDtoFromJSON(json: any): SubscriptionCompanyTaxIdDto;
|
|
42
48
|
export declare function SubscriptionCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscriptionCompanyTaxIdDto;
|
|
43
49
|
export declare function SubscriptionCompanyTaxIdDtoToJSON(json: any): SubscriptionCompanyTaxIdDto;
|
|
44
|
-
export declare function SubscriptionCompanyTaxIdDtoToJSONTyped(value?: SubscriptionCompanyTaxIdDto | null, ignoreDiscriminator?: boolean): any;
|
|
50
|
+
export declare function SubscriptionCompanyTaxIdDtoToJSONTyped(value?: Omit<SubscriptionCompanyTaxIdDto, 'isValid'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -41,6 +41,7 @@ function SubscriptionCompanyTaxIdDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'value': json['value'],
|
|
42
42
|
'type': json['type'],
|
|
43
43
|
'countryCode': json['countryCode'],
|
|
44
|
+
'isValid': json['isValid'] == null ? undefined : json['isValid'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
47
|
function SubscriptionCompanyTaxIdDtoToJSON(json) {
|
|
@@ -94,6 +94,18 @@ export interface UpdateOrderInput {
|
|
|
94
94
|
* @memberof UpdateOrderInput
|
|
95
95
|
*/
|
|
96
96
|
forceUpdatePaymentMethods?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof UpdateOrderInput
|
|
101
|
+
*/
|
|
102
|
+
forceValidateVatId?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof UpdateOrderInput
|
|
107
|
+
*/
|
|
108
|
+
payAction?: boolean;
|
|
97
109
|
}
|
|
98
110
|
/**
|
|
99
111
|
* Check if a given object implements the UpdateOrderInput interface.
|
|
@@ -46,6 +46,8 @@ function UpdateOrderInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
47
47
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
48
48
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
49
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
50
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
49
51
|
};
|
|
50
52
|
}
|
|
51
53
|
function UpdateOrderInputToJSON(json) {
|
|
@@ -70,5 +72,7 @@ function UpdateOrderInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
70
72
|
'companyInfo': (0, OrderCompanyInfoDto_1.OrderCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
71
73
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
72
74
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
75
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
76
|
+
'payAction': value['payAction'],
|
|
73
77
|
};
|
|
74
78
|
}
|
|
@@ -107,6 +107,18 @@ export interface UpdateSubscriptionInput {
|
|
|
107
107
|
* @memberof UpdateSubscriptionInput
|
|
108
108
|
*/
|
|
109
109
|
forceUpdatePaymentMethods?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
* @memberof UpdateSubscriptionInput
|
|
114
|
+
*/
|
|
115
|
+
forceValidateVatId?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
118
|
+
* @type {boolean}
|
|
119
|
+
* @memberof UpdateSubscriptionInput
|
|
120
|
+
*/
|
|
121
|
+
payAction?: boolean;
|
|
110
122
|
}
|
|
111
123
|
/**
|
|
112
124
|
* Check if a given object implements the UpdateSubscriptionInput interface.
|
|
@@ -49,6 +49,8 @@ function UpdateSubscriptionInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'companyInfo': json['companyInfo'] == null ? undefined : (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoFromJSON)(json['companyInfo']),
|
|
50
50
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
51
51
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
52
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
53
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
52
54
|
};
|
|
53
55
|
}
|
|
54
56
|
function UpdateSubscriptionInputToJSON(json) {
|
|
@@ -75,5 +77,7 @@ function UpdateSubscriptionInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
75
77
|
'companyInfo': (0, SubscriptionCompanyInfoDto_1.SubscriptionCompanyInfoDtoToJSON)(value['companyInfo']),
|
|
76
78
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
77
79
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
80
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
81
|
+
'payAction': value['payAction'],
|
|
78
82
|
};
|
|
79
83
|
}
|
package/package.json
CHANGED
package/src/apis/DomainsApi.ts
CHANGED
|
@@ -157,6 +157,7 @@ export interface DomainsApiListRequest {
|
|
|
157
157
|
filterSold?: string;
|
|
158
158
|
filterHijacked?: string;
|
|
159
159
|
filterPointingDnsStatus?: string;
|
|
160
|
+
filterMarketplace?: string;
|
|
160
161
|
filterCurrencyCode?: string;
|
|
161
162
|
filterVerified?: string;
|
|
162
163
|
filterName?: string;
|
|
@@ -1066,6 +1067,10 @@ export class DomainsApi extends runtime.BaseAPI {
|
|
|
1066
1067
|
queryParameters['filter[pointingDnsStatus]'] = requestParameters['filterPointingDnsStatus'];
|
|
1067
1068
|
}
|
|
1068
1069
|
|
|
1070
|
+
if (requestParameters['filterMarketplace'] != null) {
|
|
1071
|
+
queryParameters['filter[marketplace]'] = requestParameters['filterMarketplace'];
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1069
1074
|
if (requestParameters['filterCurrencyCode'] != null) {
|
|
1070
1075
|
queryParameters['filter[currencyCode]'] = requestParameters['filterCurrencyCode'];
|
|
1071
1076
|
}
|
|
@@ -105,6 +105,18 @@ export interface CreateOrderInput {
|
|
|
105
105
|
* @memberof CreateOrderInput
|
|
106
106
|
*/
|
|
107
107
|
forceUpdatePaymentMethods?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof CreateOrderInput
|
|
112
|
+
*/
|
|
113
|
+
forceValidateVatId?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof CreateOrderInput
|
|
118
|
+
*/
|
|
119
|
+
payAction?: boolean;
|
|
108
120
|
/**
|
|
109
121
|
* Full domain name to purchase
|
|
110
122
|
* @type {string}
|
|
@@ -156,6 +168,8 @@ export function CreateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
156
168
|
'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
157
169
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
158
170
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
171
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
172
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
159
173
|
'domainName': json['domainName'],
|
|
160
174
|
'leadId': json['leadId'] == null ? undefined : json['leadId'],
|
|
161
175
|
'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
|
|
@@ -186,6 +200,8 @@ export function CreateOrderInputToJSONTyped(value?: CreateOrderInput | null, ign
|
|
|
186
200
|
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
187
201
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
188
202
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
203
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
204
|
+
'payAction': value['payAction'],
|
|
189
205
|
'domainName': value['domainName'],
|
|
190
206
|
'leadId': value['leadId'],
|
|
191
207
|
'affiliateId': value['affiliateId'],
|
|
@@ -124,6 +124,18 @@ export interface CreateSubscriptionInput {
|
|
|
124
124
|
* @memberof CreateSubscriptionInput
|
|
125
125
|
*/
|
|
126
126
|
forceUpdatePaymentMethods?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof CreateSubscriptionInput
|
|
131
|
+
*/
|
|
132
|
+
forceValidateVatId?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
135
|
+
* @type {boolean}
|
|
136
|
+
* @memberof CreateSubscriptionInput
|
|
137
|
+
*/
|
|
138
|
+
payAction?: boolean;
|
|
127
139
|
/**
|
|
128
140
|
* Full domain name for the subscription
|
|
129
141
|
* @type {string}
|
|
@@ -189,6 +201,8 @@ export function CreateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
189
201
|
'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
190
202
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
191
203
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
204
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
205
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
192
206
|
'domainName': json['domainName'],
|
|
193
207
|
'subscriptionType': json['subscriptionType'],
|
|
194
208
|
'affiliateId': json['affiliateId'] == null ? undefined : json['affiliateId'],
|
|
@@ -221,6 +235,8 @@ export function CreateSubscriptionInputToJSONTyped(value?: CreateSubscriptionInp
|
|
|
221
235
|
'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
|
|
222
236
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
223
237
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
238
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
239
|
+
'payAction': value['payAction'],
|
|
224
240
|
'domainName': value['domainName'],
|
|
225
241
|
'subscriptionType': value['subscriptionType'],
|
|
226
242
|
'affiliateId': value['affiliateId'],
|
|
@@ -37,6 +37,12 @@ export interface OrderCompanyTaxIdDto {
|
|
|
37
37
|
* @memberof OrderCompanyTaxIdDto
|
|
38
38
|
*/
|
|
39
39
|
countryCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the tax ID passed validation.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof OrderCompanyTaxIdDto
|
|
44
|
+
*/
|
|
45
|
+
readonly isValid?: boolean | null;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -62,6 +68,7 @@ export function OrderCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
62
68
|
'value': json['value'],
|
|
63
69
|
'type': json['type'],
|
|
64
70
|
'countryCode': json['countryCode'],
|
|
71
|
+
'isValid': json['isValid'] == null ? undefined : json['isValid'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -69,7 +76,7 @@ export function OrderCompanyTaxIdDtoToJSON(json: any): OrderCompanyTaxIdDto {
|
|
|
69
76
|
return OrderCompanyTaxIdDtoToJSONTyped(json, false);
|
|
70
77
|
}
|
|
71
78
|
|
|
72
|
-
export function OrderCompanyTaxIdDtoToJSONTyped(value?: OrderCompanyTaxIdDto | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
export function OrderCompanyTaxIdDtoToJSONTyped(value?: Omit<OrderCompanyTaxIdDto, 'isValid'> | null, ignoreDiscriminator: boolean = false): any {
|
|
73
80
|
if (value == null) {
|
|
74
81
|
return value;
|
|
75
82
|
}
|
|
@@ -37,6 +37,12 @@ export interface SubscriptionCompanyTaxIdDto {
|
|
|
37
37
|
* @memberof SubscriptionCompanyTaxIdDto
|
|
38
38
|
*/
|
|
39
39
|
countryCode: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the tax ID passed validation.
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof SubscriptionCompanyTaxIdDto
|
|
44
|
+
*/
|
|
45
|
+
readonly isValid?: boolean | null;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
/**
|
|
@@ -62,6 +68,7 @@ export function SubscriptionCompanyTaxIdDtoFromJSONTyped(json: any, ignoreDiscri
|
|
|
62
68
|
'value': json['value'],
|
|
63
69
|
'type': json['type'],
|
|
64
70
|
'countryCode': json['countryCode'],
|
|
71
|
+
'isValid': json['isValid'] == null ? undefined : json['isValid'],
|
|
65
72
|
};
|
|
66
73
|
}
|
|
67
74
|
|
|
@@ -69,7 +76,7 @@ export function SubscriptionCompanyTaxIdDtoToJSON(json: any): SubscriptionCompan
|
|
|
69
76
|
return SubscriptionCompanyTaxIdDtoToJSONTyped(json, false);
|
|
70
77
|
}
|
|
71
78
|
|
|
72
|
-
export function SubscriptionCompanyTaxIdDtoToJSONTyped(value?: SubscriptionCompanyTaxIdDto | null, ignoreDiscriminator: boolean = false): any {
|
|
79
|
+
export function SubscriptionCompanyTaxIdDtoToJSONTyped(value?: Omit<SubscriptionCompanyTaxIdDto, 'isValid'> | null, ignoreDiscriminator: boolean = false): any {
|
|
73
80
|
if (value == null) {
|
|
74
81
|
return value;
|
|
75
82
|
}
|
|
@@ -105,6 +105,18 @@ export interface UpdateOrderInput {
|
|
|
105
105
|
* @memberof UpdateOrderInput
|
|
106
106
|
*/
|
|
107
107
|
forceUpdatePaymentMethods?: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof UpdateOrderInput
|
|
112
|
+
*/
|
|
113
|
+
forceValidateVatId?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof UpdateOrderInput
|
|
118
|
+
*/
|
|
119
|
+
payAction?: boolean;
|
|
108
120
|
}
|
|
109
121
|
|
|
110
122
|
/**
|
|
@@ -137,6 +149,8 @@ export function UpdateOrderInputFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
137
149
|
'companyInfo': json['companyInfo'] == null ? undefined : OrderCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
138
150
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
139
151
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
152
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
153
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
140
154
|
};
|
|
141
155
|
}
|
|
142
156
|
|
|
@@ -164,6 +178,8 @@ export function UpdateOrderInputToJSONTyped(value?: UpdateOrderInput | null, ign
|
|
|
164
178
|
'companyInfo': OrderCompanyInfoDtoToJSON(value['companyInfo']),
|
|
165
179
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
166
180
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
181
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
182
|
+
'payAction': value['payAction'],
|
|
167
183
|
};
|
|
168
184
|
}
|
|
169
185
|
|
|
@@ -124,6 +124,18 @@ export interface UpdateSubscriptionInput {
|
|
|
124
124
|
* @memberof UpdateSubscriptionInput
|
|
125
125
|
*/
|
|
126
126
|
forceUpdatePaymentMethods?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Controls VAT ID validation for business buyers. true: force validation even if business status and tax ID did not change. false: never validate VAT ID on this update. omit/undefined: validate only when business status or tax ID changed.
|
|
129
|
+
* @type {boolean}
|
|
130
|
+
* @memberof UpdateSubscriptionInput
|
|
131
|
+
*/
|
|
132
|
+
forceValidateVatId?: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* When true, invalid VAT ID validation errors are treated as blocking (throws). When omitted/false, invalid VAT is stored as validated=false and the update continues.
|
|
135
|
+
* @type {boolean}
|
|
136
|
+
* @memberof UpdateSubscriptionInput
|
|
137
|
+
*/
|
|
138
|
+
payAction?: boolean;
|
|
127
139
|
}
|
|
128
140
|
|
|
129
141
|
/**
|
|
@@ -158,6 +170,8 @@ export function UpdateSubscriptionInputFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
158
170
|
'companyInfo': json['companyInfo'] == null ? undefined : SubscriptionCompanyInfoDtoFromJSON(json['companyInfo']),
|
|
159
171
|
'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'] == null ? undefined : json['selfDeclaredTaxCountry'],
|
|
160
172
|
'forceUpdatePaymentMethods': json['forceUpdatePaymentMethods'] == null ? undefined : json['forceUpdatePaymentMethods'],
|
|
173
|
+
'forceValidateVatId': json['forceValidateVatId'] == null ? undefined : json['forceValidateVatId'],
|
|
174
|
+
'payAction': json['payAction'] == null ? undefined : json['payAction'],
|
|
161
175
|
};
|
|
162
176
|
}
|
|
163
177
|
|
|
@@ -187,6 +201,8 @@ export function UpdateSubscriptionInputToJSONTyped(value?: UpdateSubscriptionInp
|
|
|
187
201
|
'companyInfo': SubscriptionCompanyInfoDtoToJSON(value['companyInfo']),
|
|
188
202
|
'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
|
|
189
203
|
'forceUpdatePaymentMethods': value['forceUpdatePaymentMethods'],
|
|
204
|
+
'forceValidateVatId': value['forceValidateVatId'],
|
|
205
|
+
'payAction': value['payAction'],
|
|
190
206
|
};
|
|
191
207
|
}
|
|
192
208
|
|