@randock/nameshift-api-client 0.0.220 → 0.0.222

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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +10 -1
  2. package/README.md +3 -3
  3. package/dist/apis/BankAccountsApi.d.ts +11 -12
  4. package/dist/apis/BankAccountsApi.js +27 -30
  5. package/dist/apis/DefaultApi.d.ts +14 -0
  6. package/dist/apis/DefaultApi.js +53 -0
  7. package/dist/apis/DomainsApi.d.ts +12 -1
  8. package/dist/apis/DomainsApi.js +53 -0
  9. package/dist/apis/TaxPublicApi.d.ts +29 -0
  10. package/dist/apis/TaxPublicApi.js +126 -0
  11. package/dist/apis/index.d.ts +1 -0
  12. package/dist/apis/index.js +1 -0
  13. package/dist/models/AccountBankAccountDto.d.ts +20 -5
  14. package/dist/models/AccountBankAccountDto.js +17 -4
  15. package/dist/models/AccountBankAccountDtoDetails.d.ts +7 -1
  16. package/dist/models/AccountBankAccountDtoDetails.js +10 -0
  17. package/dist/models/AccountDto.d.ts +1 -1
  18. package/dist/models/AccountOnboardingDto.d.ts +3 -1
  19. package/dist/models/AccountOnboardingDto.js +4 -2
  20. package/dist/models/AirwallexBankAccountDetailsDto.d.ts +64 -0
  21. package/dist/models/AirwallexBankAccountDetailsDto.js +67 -0
  22. package/dist/models/AirwallexBankAccountDetailsDtoInstitution.d.ts +50 -0
  23. package/dist/models/AirwallexBankAccountDetailsDtoInstitution.js +63 -0
  24. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.d.ts +39 -0
  25. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.js +56 -0
  26. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.d.ts +38 -0
  27. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.js +55 -0
  28. package/dist/models/BillingInformationDto.d.ts +1 -1
  29. package/dist/models/CaBankAccountDetails.d.ts +66 -0
  30. package/dist/models/CaBankAccountDetails.js +77 -0
  31. package/dist/models/DomainExchangeRateDto.d.ts +38 -0
  32. package/dist/models/DomainExchangeRateDto.js +55 -0
  33. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -1
  34. package/dist/models/SepaBankAccountDetails.d.ts +2 -0
  35. package/dist/models/SepaBankAccountDetails.js +2 -0
  36. package/dist/models/UkBankAccountDetails.d.ts +2 -0
  37. package/dist/models/UkBankAccountDetails.js +2 -0
  38. package/dist/models/UsBankAccountDetails.d.ts +60 -0
  39. package/dist/models/UsBankAccountDetails.js +73 -0
  40. package/dist/models/ValidateTaxNumberDto.d.ts +56 -0
  41. package/dist/models/ValidateTaxNumberDto.js +67 -0
  42. package/dist/models/ValidateTaxNumberInput.d.ts +44 -0
  43. package/dist/models/ValidateTaxNumberInput.js +59 -0
  44. package/dist/models/index.d.ts +9 -1
  45. package/dist/models/index.js +9 -1
  46. package/package.json +1 -1
  47. package/src/apis/BankAccountsApi.ts +35 -45
  48. package/src/apis/DefaultApi.ts +54 -0
  49. package/src/apis/DomainsApi.ts +48 -0
  50. package/src/apis/TaxPublicApi.ts +76 -0
  51. package/src/apis/index.ts +1 -0
  52. package/src/models/AccountBankAccountDto.ts +29 -8
  53. package/src/models/AccountBankAccountDtoDetails.ts +23 -1
  54. package/src/models/AccountDto.ts +1 -1
  55. package/src/models/AccountOnboardingDto.ts +5 -3
  56. package/src/models/AirwallexBankAccountDetailsDto.ts +123 -0
  57. package/src/models/AirwallexBankAccountDetailsDtoInstitution.ts +93 -0
  58. package/src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts +83 -0
  59. package/src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts +75 -0
  60. package/src/models/BillingInformationDto.ts +1 -1
  61. package/src/models/CaBankAccountDetails.ts +115 -0
  62. package/src/models/DomainExchangeRateDto.ts +75 -0
  63. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +1 -1
  64. package/src/models/SepaBankAccountDetails.ts +2 -0
  65. package/src/models/UkBankAccountDetails.ts +2 -0
  66. package/src/models/UsBankAccountDetails.ts +106 -0
  67. package/src/models/ValidateTaxNumberDto.ts +102 -0
  68. package/src/models/ValidateTaxNumberInput.ts +84 -0
  69. package/src/models/index.ts +9 -1
  70. package/dist/models/UpdateBankAccountInput.d.ts +0 -38
  71. package/dist/models/UpdateBankAccountInput.js +0 -55
  72. package/src/models/UpdateBankAccountInput.ts +0 -75
@@ -20,6 +20,7 @@ src/apis/StripePublicApi.ts
20
20
  src/apis/SubscriptionsApi.ts
21
21
  src/apis/SubscriptionsPublicApi.ts
22
22
  src/apis/TasksApi.ts
23
+ src/apis/TaxPublicApi.ts
23
24
  src/apis/UsersApi.ts
24
25
  src/apis/UsersPublicApi.ts
25
26
  src/apis/index.ts
@@ -41,6 +42,10 @@ src/models/AddressDto.ts
41
42
  src/models/AdminAccountLoginDto.ts
42
43
  src/models/AdminAccountSettingsInput.ts
43
44
  src/models/AdminGetAllDomainTransfers200Response.ts
45
+ src/models/AirwallexBankAccountDetailsDto.ts
46
+ src/models/AirwallexBankAccountDetailsDtoInstitution.ts
47
+ src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts
48
+ src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts
44
49
  src/models/BadRequestException.ts
45
50
  src/models/BatchDeleteBuyerLeadsInput.ts
46
51
  src/models/BatchImportPreviewDto.ts
@@ -59,6 +64,7 @@ src/models/BuyerSecurityUserDto.ts
59
64
  src/models/BuyerSessionDto.ts
60
65
  src/models/BuyerSubscriptionListItemDto.ts
61
66
  src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
67
+ src/models/CaBankAccountDetails.ts
62
68
  src/models/ChangeOrderStatusInput.ts
63
69
  src/models/ChangeSubscriptionStatusInput.ts
64
70
  src/models/ChartDataPoint.ts
@@ -76,6 +82,7 @@ src/models/CreateSubscriptionBillingPeriodicityInput.ts
76
82
  src/models/CreateSubscriptionInput.ts
77
83
  src/models/DeleteDomainsInput.ts
78
84
  src/models/DomainDto.ts
85
+ src/models/DomainExchangeRateDto.ts
79
86
  src/models/DomainSalesInformationDto.ts
80
87
  src/models/DomainSalesInformationLeaseToOwnConfigurationDto.ts
81
88
  src/models/DomainSellerDto.ts
@@ -213,7 +220,6 @@ src/models/TaskListLeadDto.ts
213
220
  src/models/ThrottlerException.ts
214
221
  src/models/UkBankAccountDetails.ts
215
222
  src/models/UpdateAccountBillingInformationInput.ts
216
- src/models/UpdateBankAccountInput.ts
217
223
  src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
218
224
  src/models/UpdateDomainInput.ts
219
225
  src/models/UpdateDomainTransferAuthCodeInput.ts
@@ -221,7 +227,10 @@ src/models/UpdateLeadInput.ts
221
227
  src/models/UpdateOrderInput.ts
222
228
  src/models/UpdateSubscriptionBillingPeriodicityInput.ts
223
229
  src/models/UpdateSubscriptionInput.ts
230
+ src/models/UsBankAccountDetails.ts
224
231
  src/models/UserPasswordResetDto.ts
232
+ src/models/ValidateTaxNumberDto.ts
233
+ src/models/ValidateTaxNumberInput.ts
225
234
  src/models/ValidationError.ts
226
235
  src/models/ValidationException.ts
227
236
  src/models/VerifyLeadInput.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.220
1
+ ## @randock/nameshift-api-client@0.0.222
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.220 --save
39
+ npm install @randock/nameshift-api-client@0.0.222 --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
- 3f18e984db15c7a9cc4e2511bed2182e9aaf22f97128649c06fd921a355e2e8d0cb4c54a49301a8ec6750c1fc26b4f28
47
+ 452950bd6384b4e8c360af8762d48dc68a5fb7e219a53ddb2037c80b95dc7d75c14ba2dd0a3765f332cc16d215ae07a5
@@ -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, CreateBankAccountInput, UpdateBankAccountInput } from '../models/index';
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 BankAccountsApiListBankAccountsRequest {
22
+ export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
23
+ bankAccountId: string;
23
24
  accountId: string;
24
25
  }
25
- export interface BankAccountsApiMakeBankAccountPrimaryRequest {
26
+ export interface BankAccountsApiListBankAccountsRequest {
26
27
  accountId: string;
27
- bankAccountId: string;
28
28
  }
29
- export interface BankAccountsApiUpdateBankAccountRequest {
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
- listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>>;
56
+ getBankAccountToUseForMicrodepositRaw(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AirwallexBankAccountDetailsDto>>;
58
57
  /**
59
58
  *
60
59
  */
61
- listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>>;
60
+ getBankAccountToUseForMicrodeposit(requestParameters: BankAccountsApiGetBankAccountToUseForMicrodepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AirwallexBankAccountDetailsDto>;
62
61
  /**
63
62
  *
64
63
  */
65
- makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
64
+ listBankAccountsRaw(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBankAccountDto>>>;
66
65
  /**
67
66
  *
68
67
  */
69
- makeBankAccountPrimary(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
68
+ listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBankAccountDto>>;
70
69
  /**
71
70
  *
72
71
  */
73
- updateBankAccountRaw(requestParameters: BankAccountsApiUpdateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
72
+ makeBankAccountPrimaryRaw(requestParameters: BankAccountsApiMakeBankAccountPrimaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
74
73
  /**
75
74
  *
76
75
  */
77
- updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
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.listBankAccountsRaw = function (requestParameters, initOverrides) {
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 listBankAccounts().');
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 jsonValue.map(index_1.AccountBankAccountDtoFromJSON); })];
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.listBankAccounts = function (requestParameters, initOverrides) {
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.listBankAccountsRaw(requestParameters, initOverrides)];
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.makeBankAccountPrimaryRaw = function (requestParameters, initOverrides) {
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 makeBankAccountPrimary().');
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/{bankAccountId}/make-primary".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))).replace("{".concat("bankAccountId", "}"), encodeURIComponent(String(requestParameters['bankAccountId']))),
269
- method: 'POST',
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.VoidApiResponse(response)];
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.makeBankAccountPrimary = function (requestParameters, initOverrides) {
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.makeBankAccountPrimaryRaw(requestParameters, initOverrides)];
288
+ case 0: return [4 /*yield*/, this.listBankAccountsRaw(requestParameters, initOverrides)];
288
289
  case 1:
289
- _a.sent();
290
- return [2 /*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.updateBankAccountRaw = function (requestParameters, initOverrides) {
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 updateBankAccount().');
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 updateBankAccount().');
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: 'PATCH',
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.updateBankAccount = function (requestParameters, initOverrides) {
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.updateBankAccountRaw(requestParameters, initOverrides)];
343
+ case 0: return [4 /*yield*/, this.makeBankAccountPrimaryRaw(requestParameters, initOverrides)];
347
344
  case 1:
348
345
  _a.sent();
349
346
  return [2 /*return*/];
@@ -16,6 +16,10 @@ export interface DefaultApiPublicAdsControllerAdwordsConversionExportRequest {
16
16
  timezone: string;
17
17
  conversion: string;
18
18
  }
19
+ export interface DefaultApiPublicSumsubControllerHandleWebhookRequest {
20
+ xPayloadDigest: string;
21
+ xPayloadDigestAlg: string;
22
+ }
19
23
  /**
20
24
  *
21
25
  */
@@ -26,4 +30,14 @@ export declare class DefaultApi extends runtime.BaseAPI {
26
30
  /**
27
31
  */
28
32
  publicAdsControllerAdwordsConversionExport(requestParameters: DefaultApiPublicAdsControllerAdwordsConversionExportRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
33
+ /**
34
+ * Handles incoming webhook events from SumSub.
35
+ *
36
+ */
37
+ publicSumsubControllerHandleWebhookRaw(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
38
+ /**
39
+ * Handles incoming webhook events from SumSub.
40
+ *
41
+ */
42
+ publicSumsubControllerHandleWebhook(requestParameters: DefaultApiPublicSumsubControllerHandleWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
29
43
  }
@@ -129,6 +129,59 @@ var DefaultApi = /** @class */ (function (_super) {
129
129
  });
130
130
  });
131
131
  };
132
+ /**
133
+ * Handles incoming webhook events from SumSub.
134
+ *
135
+ */
136
+ DefaultApi.prototype.publicSumsubControllerHandleWebhookRaw = function (requestParameters, initOverrides) {
137
+ return __awaiter(this, void 0, void 0, function () {
138
+ var queryParameters, headerParameters, response;
139
+ return __generator(this, function (_a) {
140
+ switch (_a.label) {
141
+ case 0:
142
+ if (requestParameters['xPayloadDigest'] == null) {
143
+ throw new runtime.RequiredError('xPayloadDigest', 'Required parameter "xPayloadDigest" was null or undefined when calling publicSumsubControllerHandleWebhook().');
144
+ }
145
+ if (requestParameters['xPayloadDigestAlg'] == null) {
146
+ throw new runtime.RequiredError('xPayloadDigestAlg', 'Required parameter "xPayloadDigestAlg" was null or undefined when calling publicSumsubControllerHandleWebhook().');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ if (requestParameters['xPayloadDigest'] != null) {
151
+ headerParameters['x-payload-digest'] = String(requestParameters['xPayloadDigest']);
152
+ }
153
+ if (requestParameters['xPayloadDigestAlg'] != null) {
154
+ headerParameters['x-payload-digest-alg'] = String(requestParameters['xPayloadDigestAlg']);
155
+ }
156
+ return [4 /*yield*/, this.request({
157
+ path: "/sumsub/webhook",
158
+ method: 'POST',
159
+ headers: headerParameters,
160
+ query: queryParameters,
161
+ }, initOverrides)];
162
+ case 1:
163
+ response = _a.sent();
164
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
165
+ }
166
+ });
167
+ });
168
+ };
169
+ /**
170
+ * Handles incoming webhook events from SumSub.
171
+ *
172
+ */
173
+ DefaultApi.prototype.publicSumsubControllerHandleWebhook = function (requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function () {
175
+ return __generator(this, function (_a) {
176
+ switch (_a.label) {
177
+ case 0: return [4 /*yield*/, this.publicSumsubControllerHandleWebhookRaw(requestParameters, initOverrides)];
178
+ case 1:
179
+ _a.sent();
180
+ return [2 /*return*/];
181
+ }
182
+ });
183
+ });
184
+ };
132
185
  return DefaultApi;
133
186
  }(runtime.BaseAPI));
134
187
  exports.DefaultApi = DefaultApi;
@@ -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
  */
@@ -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
  */
@@ -0,0 +1,29 @@
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 * as runtime from '../runtime';
13
+ import type { ValidateTaxNumberDto, ValidateTaxNumberInput } from '../models/index';
14
+ export interface TaxPublicApiValidateNumberRequest {
15
+ validateTaxNumberInput: ValidateTaxNumberInput;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class TaxPublicApi extends runtime.BaseAPI {
21
+ /**
22
+ * Validate a tax number
23
+ */
24
+ validateNumberRaw(requestParameters: TaxPublicApiValidateNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ValidateTaxNumberDto>>;
25
+ /**
26
+ * Validate a tax number
27
+ */
28
+ validateNumber(requestParameters: TaxPublicApiValidateNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ValidateTaxNumberDto>;
29
+ }
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.TaxPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var TaxPublicApi = /** @class */ (function (_super) {
74
+ __extends(TaxPublicApi, _super);
75
+ function TaxPublicApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Validate a tax number
80
+ */
81
+ TaxPublicApi.prototype.validateNumberRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['validateTaxNumberInput'] == null) {
88
+ throw new runtime.RequiredError('validateTaxNumberInput', 'Required parameter "validateTaxNumberInput" was null or undefined when calling validateNumber().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ headerParameters['Content-Type'] = 'application/json';
93
+ return [4 /*yield*/, this.request({
94
+ path: "/tax/validate-number",
95
+ method: 'POST',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ body: (0, index_1.ValidateTaxNumberInputToJSON)(requestParameters['validateTaxNumberInput']),
99
+ }, initOverrides)];
100
+ case 1:
101
+ response = _a.sent();
102
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ValidateTaxNumberDtoFromJSON)(jsonValue); })];
103
+ }
104
+ });
105
+ });
106
+ };
107
+ /**
108
+ * Validate a tax number
109
+ */
110
+ TaxPublicApi.prototype.validateNumber = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.validateNumberRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ return TaxPublicApi;
125
+ }(runtime.BaseAPI));
126
+ exports.TaxPublicApi = TaxPublicApi;
@@ -15,5 +15,6 @@ export * from './StripePublicApi';
15
15
  export * from './SubscriptionsApi';
16
16
  export * from './SubscriptionsPublicApi';
17
17
  export * from './TasksApi';
18
+ export * from './TaxPublicApi';
18
19
  export * from './UsersApi';
19
20
  export * from './UsersPublicApi';