@randock/nameshift-api-client 0.0.220 → 0.0.221
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/.openapi-generator/FILES +7 -1
- package/README.md +3 -3
- package/dist/apis/BankAccountsApi.d.ts +11 -12
- package/dist/apis/BankAccountsApi.js +27 -30
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/models/AccountBankAccountDto.d.ts +20 -5
- package/dist/models/AccountBankAccountDto.js +17 -4
- package/dist/models/AccountBankAccountDtoDetails.d.ts +7 -1
- package/dist/models/AccountBankAccountDtoDetails.js +10 -0
- package/dist/models/AirwallexBankAccountDetailsDto.d.ts +64 -0
- package/dist/models/AirwallexBankAccountDetailsDto.js +67 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.d.ts +50 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.js +63 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.d.ts +39 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.js +56 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.d.ts +38 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.js +55 -0
- package/dist/models/CaBankAccountDetails.d.ts +66 -0
- package/dist/models/CaBankAccountDetails.js +77 -0
- package/dist/models/DomainExchangeRateDto.d.ts +38 -0
- package/dist/models/DomainExchangeRateDto.js +55 -0
- package/dist/models/SepaBankAccountDetails.d.ts +2 -0
- package/dist/models/SepaBankAccountDetails.js +2 -0
- package/dist/models/UkBankAccountDetails.d.ts +2 -0
- package/dist/models/UkBankAccountDetails.js +2 -0
- package/dist/models/UsBankAccountDetails.d.ts +60 -0
- package/dist/models/UsBankAccountDetails.js +73 -0
- package/dist/models/index.d.ts +7 -1
- package/dist/models/index.js +7 -1
- package/package.json +1 -1
- package/src/apis/BankAccountsApi.ts +35 -45
- package/src/apis/DomainsApi.ts +48 -0
- package/src/models/AccountBankAccountDto.ts +29 -8
- package/src/models/AccountBankAccountDtoDetails.ts +23 -1
- package/src/models/AirwallexBankAccountDetailsDto.ts +123 -0
- package/src/models/AirwallexBankAccountDetailsDtoInstitution.ts +93 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts +83 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts +75 -0
- package/src/models/CaBankAccountDetails.ts +115 -0
- package/src/models/DomainExchangeRateDto.ts +75 -0
- package/src/models/SepaBankAccountDetails.ts +2 -0
- package/src/models/UkBankAccountDetails.ts +2 -0
- package/src/models/UsBankAccountDetails.ts +106 -0
- package/src/models/index.ts +7 -1
- package/dist/models/UpdateBankAccountInput.d.ts +0 -38
- package/dist/models/UpdateBankAccountInput.js +0 -55
- package/src/models/UpdateBankAccountInput.ts +0 -75
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,10 @@ src/models/AddressDto.ts
|
|
|
41
41
|
src/models/AdminAccountLoginDto.ts
|
|
42
42
|
src/models/AdminAccountSettingsInput.ts
|
|
43
43
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
44
|
+
src/models/AirwallexBankAccountDetailsDto.ts
|
|
45
|
+
src/models/AirwallexBankAccountDetailsDtoInstitution.ts
|
|
46
|
+
src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts
|
|
47
|
+
src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts
|
|
44
48
|
src/models/BadRequestException.ts
|
|
45
49
|
src/models/BatchDeleteBuyerLeadsInput.ts
|
|
46
50
|
src/models/BatchImportPreviewDto.ts
|
|
@@ -59,6 +63,7 @@ src/models/BuyerSecurityUserDto.ts
|
|
|
59
63
|
src/models/BuyerSessionDto.ts
|
|
60
64
|
src/models/BuyerSubscriptionListItemDto.ts
|
|
61
65
|
src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
|
|
66
|
+
src/models/CaBankAccountDetails.ts
|
|
62
67
|
src/models/ChangeOrderStatusInput.ts
|
|
63
68
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
64
69
|
src/models/ChartDataPoint.ts
|
|
@@ -76,6 +81,7 @@ src/models/CreateSubscriptionBillingPeriodicityInput.ts
|
|
|
76
81
|
src/models/CreateSubscriptionInput.ts
|
|
77
82
|
src/models/DeleteDomainsInput.ts
|
|
78
83
|
src/models/DomainDto.ts
|
|
84
|
+
src/models/DomainExchangeRateDto.ts
|
|
79
85
|
src/models/DomainSalesInformationDto.ts
|
|
80
86
|
src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
|
|
81
87
|
src/models/DomainSellerDto.ts
|
|
@@ -213,7 +219,6 @@ src/models/TaskListLeadDto.ts
|
|
|
213
219
|
src/models/ThrottlerException.ts
|
|
214
220
|
src/models/UkBankAccountDetails.ts
|
|
215
221
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
216
|
-
src/models/UpdateBankAccountInput.ts
|
|
217
222
|
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
218
223
|
src/models/UpdateDomainInput.ts
|
|
219
224
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
@@ -221,6 +226,7 @@ src/models/UpdateLeadInput.ts
|
|
|
221
226
|
src/models/UpdateOrderInput.ts
|
|
222
227
|
src/models/UpdateSubscriptionBillingPeriodicityInput.ts
|
|
223
228
|
src/models/UpdateSubscriptionInput.ts
|
|
229
|
+
src/models/UsBankAccountDetails.ts
|
|
224
230
|
src/models/UserPasswordResetDto.ts
|
|
225
231
|
src/models/ValidationError.ts
|
|
226
232
|
src/models/ValidationException.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.221
|
|
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.221 --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
|
+
5687002a732a4dba570df2940ccbd2a817ded6832833d8428930a5cd6b52b1c2094214438818668712fe97b3a7fd4bf7
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountBankAccountDto,
|
|
13
|
+
import type { AccountBankAccountDto, AirwallexBankAccountDetailsDto, CreateBankAccountInput } from '../models/index';
|
|
14
14
|
export interface BankAccountsApiCreateBankAccountRequest {
|
|
15
15
|
accountId: string;
|
|
16
16
|
createBankAccountInput: CreateBankAccountInput;
|
|
@@ -19,17 +19,16 @@ export interface BankAccountsApiDeleteBankAccountRequest {
|
|
|
19
19
|
accountId: string;
|
|
20
20
|
bankAccountId: string;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
|
|
23
|
+
bankAccountId: string;
|
|
23
24
|
accountId: string;
|
|
24
25
|
}
|
|
25
|
-
export interface
|
|
26
|
+
export interface BankAccountsApiListBankAccountsRequest {
|
|
26
27
|
accountId: string;
|
|
27
|
-
bankAccountId: string;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface BankAccountsApiMakeBankAccountPrimaryRequest {
|
|
30
30
|
accountId: string;
|
|
31
31
|
bankAccountId: string;
|
|
32
|
-
updateBankAccountInput: UpdateBankAccountInput;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
34
|
*
|
|
@@ -54,25 +53,25 @@ export declare class BankAccountsApi extends runtime.BaseAPI {
|
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
55
|
*/
|
|
57
|
-
|
|
56
|
+
getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>>;
|
|
58
57
|
/**
|
|
59
58
|
*
|
|
60
59
|
*/
|
|
61
|
-
|
|
60
|
+
getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto>;
|
|
62
61
|
/**
|
|
63
62
|
*
|
|
64
63
|
*/
|
|
65
|
-
|
|
64
|
+
listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>>;
|
|
66
65
|
/**
|
|
67
66
|
*
|
|
68
67
|
*/
|
|
69
|
-
|
|
68
|
+
listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>>;
|
|
70
69
|
/**
|
|
71
70
|
*
|
|
72
71
|
*/
|
|
73
|
-
|
|
72
|
+
makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
74
73
|
/**
|
|
75
74
|
*
|
|
76
75
|
*/
|
|
77
|
-
|
|
76
|
+
makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
78
77
|
}
|
|
@@ -188,14 +188,17 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
188
188
|
/**
|
|
189
189
|
*
|
|
190
190
|
*/
|
|
191
|
-
BankAccountsApi.prototype.
|
|
191
|
+
BankAccountsApi.prototype.getBankAccountToUseForMicrodepositRaw = function (requestParameters, initOverrides) {
|
|
192
192
|
return __awaiter(this, void 0, void 0, function () {
|
|
193
193
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
194
194
|
return __generator(this, function (_a) {
|
|
195
195
|
switch (_a.label) {
|
|
196
196
|
case 0:
|
|
197
|
+
if (requestParameters['bankAccountId'] == null) {
|
|
198
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
199
|
+
}
|
|
197
200
|
if (requestParameters['accountId'] == null) {
|
|
198
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling
|
|
201
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getBankAccountToUseForMicrodeposit().');
|
|
199
202
|
}
|
|
200
203
|
queryParameters = {};
|
|
201
204
|
headerParameters = {};
|
|
@@ -209,14 +212,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
209
212
|
}
|
|
210
213
|
_a.label = 2;
|
|
211
214
|
case 2: return [4 /*yield*/, this.request({
|
|
212
|
-
path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
215
|
+
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/microdeposit".replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))).replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
213
216
|
method: 'GET',
|
|
214
217
|
headers: headerParameters,
|
|
215
218
|
query: queryParameters,
|
|
216
219
|
}, initOverrides)];
|
|
217
220
|
case 3:
|
|
218
221
|
response = _a.sent();
|
|
219
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return
|
|
222
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AirwallexBankAccountDetailsDtoFromJSON)(jsonValue); })];
|
|
220
223
|
}
|
|
221
224
|
});
|
|
222
225
|
});
|
|
@@ -224,12 +227,12 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
224
227
|
/**
|
|
225
228
|
*
|
|
226
229
|
*/
|
|
227
|
-
BankAccountsApi.prototype.
|
|
230
|
+
BankAccountsApi.prototype.getBankAccountToUseForMicrodeposit = function (requestParameters, initOverrides) {
|
|
228
231
|
return __awaiter(this, void 0, void 0, function () {
|
|
229
232
|
var response;
|
|
230
233
|
return __generator(this, function (_a) {
|
|
231
234
|
switch (_a.label) {
|
|
232
|
-
case 0: return [4 /*yield*/, this.
|
|
235
|
+
case 0: return [4 /*yield*/, this.getBankAccountToUseForMicrodepositRaw(requestParameters, initOverrides)];
|
|
233
236
|
case 1:
|
|
234
237
|
response = _a.sent();
|
|
235
238
|
return [4 /*yield*/, response.value()];
|
|
@@ -241,17 +244,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
241
244
|
/**
|
|
242
245
|
*
|
|
243
246
|
*/
|
|
244
|
-
BankAccountsApi.prototype.
|
|
247
|
+
BankAccountsApi.prototype.listBankAccountsRaw = function (requestParameters, initOverrides) {
|
|
245
248
|
return __awaiter(this, void 0, void 0, function () {
|
|
246
249
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
247
250
|
return __generator(this, function (_a) {
|
|
248
251
|
switch (_a.label) {
|
|
249
252
|
case 0:
|
|
250
253
|
if (requestParameters['accountId'] == null) {
|
|
251
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling
|
|
252
|
-
}
|
|
253
|
-
if (requestParameters['bankAccountId'] == null) {
|
|
254
|
-
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling makeBankAccountPrimary().');
|
|
254
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling listBankAccounts().');
|
|
255
255
|
}
|
|
256
256
|
queryParameters = {};
|
|
257
257
|
headerParameters = {};
|
|
@@ -265,14 +265,14 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
265
265
|
}
|
|
266
266
|
_a.label = 2;
|
|
267
267
|
case 2: return [4 /*yield*/, this.request({
|
|
268
|
-
path: "/private/accounts/{accountId}/bank-accounts
|
|
269
|
-
method: '
|
|
268
|
+
path: "/private/accounts/{accountId}/bank-accounts".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
269
|
+
method: 'GET',
|
|
270
270
|
headers: headerParameters,
|
|
271
271
|
query: queryParameters,
|
|
272
272
|
}, initOverrides)];
|
|
273
273
|
case 3:
|
|
274
274
|
response = _a.sent();
|
|
275
|
-
return [2 /*return*/, new runtime.
|
|
275
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AccountBankAccountDtoFromJSON); })];
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
});
|
|
@@ -280,14 +280,16 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
280
280
|
/**
|
|
281
281
|
*
|
|
282
282
|
*/
|
|
283
|
-
BankAccountsApi.prototype.
|
|
283
|
+
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, initOverrides) {
|
|
284
284
|
return __awaiter(this, void 0, void 0, function () {
|
|
285
|
+
var response;
|
|
285
286
|
return __generator(this, function (_a) {
|
|
286
287
|
switch (_a.label) {
|
|
287
|
-
case 0: return [4 /*yield*/, this.
|
|
288
|
+
case 0: return [4 /*yield*/, this.listBankAccountsRaw(requestParameters, initOverrides)];
|
|
288
289
|
case 1:
|
|
289
|
-
_a.sent();
|
|
290
|
-
return [
|
|
290
|
+
response = _a.sent();
|
|
291
|
+
return [4 /*yield*/, response.value()];
|
|
292
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
291
293
|
}
|
|
292
294
|
});
|
|
293
295
|
});
|
|
@@ -295,24 +297,20 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
295
297
|
/**
|
|
296
298
|
*
|
|
297
299
|
*/
|
|
298
|
-
BankAccountsApi.prototype.
|
|
300
|
+
BankAccountsApi.prototype.makeBankAccountPrimaryRaw = function (requestParameters, initOverrides) {
|
|
299
301
|
return __awaiter(this, void 0, void 0, function () {
|
|
300
302
|
var queryParameters, headerParameters, token, tokenString, response;
|
|
301
303
|
return __generator(this, function (_a) {
|
|
302
304
|
switch (_a.label) {
|
|
303
305
|
case 0:
|
|
304
306
|
if (requestParameters['accountId'] == null) {
|
|
305
|
-
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling
|
|
307
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling makeBankAccountPrimary().');
|
|
306
308
|
}
|
|
307
309
|
if (requestParameters['bankAccountId'] == null) {
|
|
308
|
-
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling
|
|
309
|
-
}
|
|
310
|
-
if (requestParameters['updateBankAccountInput'] == null) {
|
|
311
|
-
throw new runtime.RequiredError('updateBankAccountInput', 'Required parameter "updateBankAccountInput" was null or undefined when calling updateBankAccount().');
|
|
310
|
+
throw new runtime.RequiredError('bankAccountId', 'Required parameter "bankAccountId" was null or undefined when calling makeBankAccountPrimary().');
|
|
312
311
|
}
|
|
313
312
|
queryParameters = {};
|
|
314
313
|
headerParameters = {};
|
|
315
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
316
314
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
317
315
|
token = this.configuration.accessToken;
|
|
318
316
|
return [4 /*yield*/, token("bearer", [])];
|
|
@@ -323,11 +321,10 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
323
321
|
}
|
|
324
322
|
_a.label = 2;
|
|
325
323
|
case 2: return [4 /*yield*/, this.request({
|
|
326
|
-
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
327
|
-
method: '
|
|
324
|
+
path: "/private/accounts/{accountId}/bank-accounts/{bankAccountId}/make-primary".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
|
|
325
|
+
method: 'POST',
|
|
328
326
|
headers: headerParameters,
|
|
329
327
|
query: queryParameters,
|
|
330
|
-
body: (0, index_1.UpdateBankAccountInputToJSON)(requestParameters['updateBankAccountInput']),
|
|
331
328
|
}, initOverrides)];
|
|
332
329
|
case 3:
|
|
333
330
|
response = _a.sent();
|
|
@@ -339,11 +336,11 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
339
336
|
/**
|
|
340
337
|
*
|
|
341
338
|
*/
|
|
342
|
-
BankAccountsApi.prototype.
|
|
339
|
+
BankAccountsApi.prototype.makeBankAccountPrimary = function (requestParameters, initOverrides) {
|
|
343
340
|
return __awaiter(this, void 0, void 0, function () {
|
|
344
341
|
return __generator(this, function (_a) {
|
|
345
342
|
switch (_a.label) {
|
|
346
|
-
case 0: return [4 /*yield*/, this.
|
|
343
|
+
case 0: return [4 /*yield*/, this.makeBankAccountPrimaryRaw(requestParameters, initOverrides)];
|
|
347
344
|
case 1:
|
|
348
345
|
_a.sent();
|
|
349
346
|
return [2 /*return*/];
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
13
|
+
import type { BatchImportPreviewDto, BatchUpdateDomainsInput, DeleteDomainsInput, DomainExchangeRateDto, DomainUrlDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response2, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -36,6 +36,9 @@ export interface DomainsApiGetAllDomainTransfersRequest {
|
|
|
36
36
|
export interface DomainsApiGetDomainRequest {
|
|
37
37
|
domainId: string;
|
|
38
38
|
}
|
|
39
|
+
export interface DomainsApiGetDomainExchangeRateRequest {
|
|
40
|
+
domainId: string;
|
|
41
|
+
}
|
|
39
42
|
export interface DomainsApiGetDomainTransferRequest {
|
|
40
43
|
transferId: string;
|
|
41
44
|
}
|
|
@@ -124,6 +127,14 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
124
127
|
*
|
|
125
128
|
*/
|
|
126
129
|
getDomain(requestParameters: DomainsApiGetDomainRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionDomainDtoWithHijackerDtoWithAccountDto>;
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
*/
|
|
133
|
+
getDomainExchangeRateRaw(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DomainExchangeRateDto>>;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
getDomainExchangeRate(requestParameters: DomainsApiGetDomainExchangeRateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DomainExchangeRateDto>;
|
|
127
138
|
/**
|
|
128
139
|
*
|
|
129
140
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -535,6 +535,59 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
535
535
|
});
|
|
536
536
|
});
|
|
537
537
|
};
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
*/
|
|
541
|
+
DomainsApi.prototype.getDomainExchangeRateRaw = function (requestParameters, initOverrides) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
543
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
544
|
+
return __generator(this, function (_a) {
|
|
545
|
+
switch (_a.label) {
|
|
546
|
+
case 0:
|
|
547
|
+
if (requestParameters['domainId'] == null) {
|
|
548
|
+
throw new runtime.RequiredError('domainId', 'Required parameter "domainId" was null or undefined when calling getDomainExchangeRate().');
|
|
549
|
+
}
|
|
550
|
+
queryParameters = {};
|
|
551
|
+
headerParameters = {};
|
|
552
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
553
|
+
token = this.configuration.accessToken;
|
|
554
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
555
|
+
case 1:
|
|
556
|
+
tokenString = _a.sent();
|
|
557
|
+
if (tokenString) {
|
|
558
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
559
|
+
}
|
|
560
|
+
_a.label = 2;
|
|
561
|
+
case 2: return [4 /*yield*/, this.request({
|
|
562
|
+
path: "/private/domains/{domainId}/exchange-rate".replace("{".concat("domainId", "}"), encodeURIComponent(String(requestParameters['domainId']))),
|
|
563
|
+
method: 'GET',
|
|
564
|
+
headers: headerParameters,
|
|
565
|
+
query: queryParameters,
|
|
566
|
+
}, initOverrides)];
|
|
567
|
+
case 3:
|
|
568
|
+
response = _a.sent();
|
|
569
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.DomainExchangeRateDtoFromJSON)(jsonValue); })];
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
DomainsApi.prototype.getDomainExchangeRate = function (requestParameters, initOverrides) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
579
|
+
var response;
|
|
580
|
+
return __generator(this, function (_a) {
|
|
581
|
+
switch (_a.label) {
|
|
582
|
+
case 0: return [4 /*yield*/, this.getDomainExchangeRateRaw(requestParameters, initOverrides)];
|
|
583
|
+
case 1:
|
|
584
|
+
response = _a.sent();
|
|
585
|
+
return [4 /*yield*/, response.value()];
|
|
586
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
};
|
|
538
591
|
/**
|
|
539
592
|
*
|
|
540
593
|
*/
|
|
@@ -24,23 +24,38 @@ export interface AccountBankAccountDto {
|
|
|
24
24
|
id: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {boolean}
|
|
28
28
|
* @memberof AccountBankAccountDto
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
primary: boolean;
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @type {
|
|
33
|
+
* @type {string}
|
|
34
34
|
* @memberof AccountBankAccountDto
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
currencyCode: string;
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
40
|
* @memberof AccountBankAccountDto
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
verificationStatus: AccountBankAccountDtoVerificationStatusEnum;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {AccountBankAccountDtoDetails}
|
|
46
|
+
* @memberof AccountBankAccountDto
|
|
47
|
+
*/
|
|
48
|
+
details: AccountBankAccountDtoDetails;
|
|
43
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const AccountBankAccountDtoVerificationStatusEnum: {
|
|
54
|
+
readonly PENDING: "pending";
|
|
55
|
+
readonly VERIFIED: "verified";
|
|
56
|
+
readonly REJECTED: "rejected";
|
|
57
|
+
};
|
|
58
|
+
export type AccountBankAccountDtoVerificationStatusEnum = typeof AccountBankAccountDtoVerificationStatusEnum[keyof typeof AccountBankAccountDtoVerificationStatusEnum];
|
|
44
59
|
/**
|
|
45
60
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
46
61
|
*/
|
|
@@ -13,24 +13,35 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountBankAccountDtoVerificationStatusEnum = void 0;
|
|
16
17
|
exports.instanceOfAccountBankAccountDto = instanceOfAccountBankAccountDto;
|
|
17
18
|
exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
18
19
|
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
19
20
|
exports.AccountBankAccountDtoToJSON = AccountBankAccountDtoToJSON;
|
|
20
21
|
exports.AccountBankAccountDtoToJSONTyped = AccountBankAccountDtoToJSONTyped;
|
|
21
22
|
var AccountBankAccountDtoDetails_1 = require("./AccountBankAccountDtoDetails");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AccountBankAccountDtoVerificationStatusEnum = {
|
|
27
|
+
PENDING: 'pending',
|
|
28
|
+
VERIFIED: 'verified',
|
|
29
|
+
REJECTED: 'rejected'
|
|
30
|
+
};
|
|
22
31
|
/**
|
|
23
32
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
24
33
|
*/
|
|
25
34
|
function instanceOfAccountBankAccountDto(value) {
|
|
26
35
|
if (!('id' in value) || value['id'] === undefined)
|
|
27
36
|
return false;
|
|
28
|
-
if (!('details' in value) || value['details'] === undefined)
|
|
29
|
-
return false;
|
|
30
37
|
if (!('primary' in value) || value['primary'] === undefined)
|
|
31
38
|
return false;
|
|
32
39
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
33
40
|
return false;
|
|
41
|
+
if (!('verificationStatus' in value) || value['verificationStatus'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
44
|
+
return false;
|
|
34
45
|
return true;
|
|
35
46
|
}
|
|
36
47
|
function AccountBankAccountDtoFromJSON(json) {
|
|
@@ -42,9 +53,10 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
53
|
}
|
|
43
54
|
return {
|
|
44
55
|
'id': json['id'],
|
|
45
|
-
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsFromJSON)(json['details']),
|
|
46
56
|
'primary': json['primary'],
|
|
47
57
|
'currencyCode': json['currencyCode'],
|
|
58
|
+
'verificationStatus': json['verificationStatus'],
|
|
59
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsFromJSON)(json['details']),
|
|
48
60
|
};
|
|
49
61
|
}
|
|
50
62
|
function AccountBankAccountDtoToJSON(json) {
|
|
@@ -57,8 +69,9 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
69
|
}
|
|
58
70
|
return {
|
|
59
71
|
'id': value['id'],
|
|
60
|
-
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsToJSON)(value['details']),
|
|
61
72
|
'primary': value['primary'],
|
|
62
73
|
'currencyCode': value['currencyCode'],
|
|
74
|
+
'verificationStatus': value['verificationStatus'],
|
|
75
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsToJSON)(value['details']),
|
|
63
76
|
};
|
|
64
77
|
}
|
|
@@ -9,18 +9,24 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { CaBankAccountDetails } from './CaBankAccountDetails';
|
|
12
13
|
import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
|
|
13
14
|
import type { UkBankAccountDetails } from './UkBankAccountDetails';
|
|
15
|
+
import type { UsBankAccountDetails } from './UsBankAccountDetails';
|
|
14
16
|
/**
|
|
15
17
|
* @type AccountBankAccountDtoDetails
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
18
20
|
*/
|
|
19
21
|
export type AccountBankAccountDtoDetails = {
|
|
22
|
+
type: 'CaBankAccountDetails';
|
|
23
|
+
} & CaBankAccountDetails | {
|
|
20
24
|
type: 'SepaBankAccountDetails';
|
|
21
25
|
} & SepaBankAccountDetails | {
|
|
22
26
|
type: 'UkBankAccountDetails';
|
|
23
|
-
} & UkBankAccountDetails
|
|
27
|
+
} & UkBankAccountDetails | {
|
|
28
|
+
type: 'UsBankAccountDetails';
|
|
29
|
+
} & UsBankAccountDetails;
|
|
24
30
|
export declare function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails;
|
|
25
31
|
export declare function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDtoDetails;
|
|
26
32
|
export declare function AccountBankAccountDtoDetailsToJSON(json: any): any;
|
|
@@ -17,8 +17,10 @@ exports.AccountBankAccountDtoDetailsFromJSON = AccountBankAccountDtoDetailsFromJ
|
|
|
17
17
|
exports.AccountBankAccountDtoDetailsFromJSONTyped = AccountBankAccountDtoDetailsFromJSONTyped;
|
|
18
18
|
exports.AccountBankAccountDtoDetailsToJSON = AccountBankAccountDtoDetailsToJSON;
|
|
19
19
|
exports.AccountBankAccountDtoDetailsToJSONTyped = AccountBankAccountDtoDetailsToJSONTyped;
|
|
20
|
+
var CaBankAccountDetails_1 = require("./CaBankAccountDetails");
|
|
20
21
|
var SepaBankAccountDetails_1 = require("./SepaBankAccountDetails");
|
|
21
22
|
var UkBankAccountDetails_1 = require("./UkBankAccountDetails");
|
|
23
|
+
var UsBankAccountDetails_1 = require("./UsBankAccountDetails");
|
|
22
24
|
function AccountBankAccountDtoDetailsFromJSON(json) {
|
|
23
25
|
return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
|
|
24
26
|
}
|
|
@@ -27,10 +29,14 @@ function AccountBankAccountDtoDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
29
|
return json;
|
|
28
30
|
}
|
|
29
31
|
switch (json['type']) {
|
|
32
|
+
case 'CaBankAccountDetails':
|
|
33
|
+
return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsFromJSONTyped)(json, true), { type: 'CaBankAccountDetails' });
|
|
30
34
|
case 'SepaBankAccountDetails':
|
|
31
35
|
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsFromJSONTyped)(json, true), { type: 'SepaBankAccountDetails' });
|
|
32
36
|
case 'UkBankAccountDetails':
|
|
33
37
|
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsFromJSONTyped)(json, true), { type: 'UkBankAccountDetails' });
|
|
38
|
+
case 'UsBankAccountDetails':
|
|
39
|
+
return Object.assign({}, (0, UsBankAccountDetails_1.UsBankAccountDetailsFromJSONTyped)(json, true), { type: 'UsBankAccountDetails' });
|
|
34
40
|
default:
|
|
35
41
|
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(json['type'], "'"));
|
|
36
42
|
}
|
|
@@ -44,10 +50,14 @@ function AccountBankAccountDtoDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
|
44
50
|
return value;
|
|
45
51
|
}
|
|
46
52
|
switch (value['type']) {
|
|
53
|
+
case 'CaBankAccountDetails':
|
|
54
|
+
return Object.assign({}, (0, CaBankAccountDetails_1.CaBankAccountDetailsToJSON)(value), { type: 'CaBankAccountDetails' });
|
|
47
55
|
case 'SepaBankAccountDetails':
|
|
48
56
|
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsToJSON)(value), { type: 'SepaBankAccountDetails' });
|
|
49
57
|
case 'UkBankAccountDetails':
|
|
50
58
|
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsToJSON)(value), { type: 'UkBankAccountDetails' });
|
|
59
|
+
case 'UsBankAccountDetails':
|
|
60
|
+
return Object.assign({}, (0, UsBankAccountDetails_1.UsBankAccountDetailsToJSON)(value), { type: 'UsBankAccountDetails' });
|
|
51
61
|
default:
|
|
52
62
|
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(value['type'], "'"));
|
|
53
63
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AirwallexBankAccountDetailsDtoInstitution } from './AirwallexBankAccountDetailsDtoInstitution';
|
|
13
|
+
import type { AirwallexBankAccountDetailsDtoLocalMethod } from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AirwallexBankAccountDetailsDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AirwallexBankAccountDetailsDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
24
|
+
*/
|
|
25
|
+
name: string;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
30
|
+
*/
|
|
31
|
+
iban?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
36
|
+
*/
|
|
37
|
+
number?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
42
|
+
*/
|
|
43
|
+
swiftBic?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {AirwallexBankAccountDetailsDtoInstitution}
|
|
47
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
48
|
+
*/
|
|
49
|
+
institution: AirwallexBankAccountDetailsDtoInstitution;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<AirwallexBankAccountDetailsDtoLocalMethod>}
|
|
53
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
54
|
+
*/
|
|
55
|
+
localMethods: Array<AirwallexBankAccountDetailsDtoLocalMethod>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the AirwallexBankAccountDetailsDto interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfAirwallexBankAccountDetailsDto(value: object): value is AirwallexBankAccountDetailsDto;
|
|
61
|
+
export declare function AirwallexBankAccountDetailsDtoFromJSON(json: any): AirwallexBankAccountDetailsDto;
|
|
62
|
+
export declare function AirwallexBankAccountDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexBankAccountDetailsDto;
|
|
63
|
+
export declare function AirwallexBankAccountDetailsDtoToJSON(json: any): AirwallexBankAccountDetailsDto;
|
|
64
|
+
export declare function AirwallexBankAccountDetailsDtoToJSONTyped(value?: AirwallexBankAccountDetailsDto | null, ignoreDiscriminator?: boolean): any;
|