@randock/nameshift-api-client 0.0.219 → 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.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +7 -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/DomainsApi.d.ts +12 -1
  6. package/dist/apis/DomainsApi.js +53 -0
  7. package/dist/apis/OrdersPublicApi.d.ts +13 -0
  8. package/dist/apis/OrdersPublicApi.js +44 -0
  9. package/dist/models/AccountBankAccountDto.d.ts +20 -5
  10. package/dist/models/AccountBankAccountDto.js +17 -4
  11. package/dist/models/AccountBankAccountDtoDetails.d.ts +7 -1
  12. package/dist/models/AccountBankAccountDtoDetails.js +10 -0
  13. package/dist/models/AirwallexBankAccountDetailsDto.d.ts +64 -0
  14. package/dist/models/AirwallexBankAccountDetailsDto.js +67 -0
  15. package/dist/models/AirwallexBankAccountDetailsDtoInstitution.d.ts +50 -0
  16. package/dist/models/AirwallexBankAccountDetailsDtoInstitution.js +63 -0
  17. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.d.ts +39 -0
  18. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.js +56 -0
  19. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.d.ts +38 -0
  20. package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.js +55 -0
  21. package/dist/models/CaBankAccountDetails.d.ts +66 -0
  22. package/dist/models/CaBankAccountDetails.js +77 -0
  23. package/dist/models/DomainExchangeRateDto.d.ts +38 -0
  24. package/dist/models/DomainExchangeRateDto.js +55 -0
  25. package/dist/models/SepaBankAccountDetails.d.ts +2 -0
  26. package/dist/models/SepaBankAccountDetails.js +2 -0
  27. package/dist/models/UkBankAccountDetails.d.ts +2 -0
  28. package/dist/models/UkBankAccountDetails.js +2 -0
  29. package/dist/models/UsBankAccountDetails.d.ts +60 -0
  30. package/dist/models/UsBankAccountDetails.js +73 -0
  31. package/dist/models/index.d.ts +7 -1
  32. package/dist/models/index.js +7 -1
  33. package/package.json +1 -1
  34. package/src/apis/BankAccountsApi.ts +35 -45
  35. package/src/apis/DomainsApi.ts +48 -0
  36. package/src/apis/OrdersPublicApi.ts +38 -0
  37. package/src/models/AccountBankAccountDto.ts +29 -8
  38. package/src/models/AccountBankAccountDtoDetails.ts +23 -1
  39. package/src/models/AirwallexBankAccountDetailsDto.ts +123 -0
  40. package/src/models/AirwallexBankAccountDetailsDtoInstitution.ts +93 -0
  41. package/src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts +83 -0
  42. package/src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts +75 -0
  43. package/src/models/CaBankAccountDetails.ts +115 -0
  44. package/src/models/DomainExchangeRateDto.ts +75 -0
  45. package/src/models/SepaBankAccountDetails.ts +2 -0
  46. package/src/models/UkBankAccountDetails.ts +2 -0
  47. package/src/models/UsBankAccountDetails.ts +106 -0
  48. package/src/models/index.ts +7 -1
  49. package/dist/models/UpdateBankAccountInput.d.ts +0 -38
  50. package/dist/models/UpdateBankAccountInput.js +0 -55
  51. package/src/models/UpdateBankAccountInput.ts +0 -75
@@ -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.219
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.219 --save
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
- 31666c1aec07d63779b37dac34328514548f54081c12d451724618608ac445453894721d2eb0fed7e5c55d82e34e3a22
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, 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*/];
@@ -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
  */
@@ -14,6 +14,9 @@ import type { CreateOrderInput, ObjectId, OrderDto, UpdateOrderInput } from '../
14
14
  export interface OrdersPublicApiCreateOrderRequest {
15
15
  createOrderInput: CreateOrderInput;
16
16
  }
17
+ export interface OrdersPublicApiCreateOrderManualTransactionRequest {
18
+ orderId: string;
19
+ }
17
20
  export interface OrdersPublicApiGetOrderRequest {
18
21
  orderId: string;
19
22
  }
@@ -33,6 +36,16 @@ export declare class OrdersPublicApi extends runtime.BaseAPI {
33
36
  *
34
37
  */
35
38
  createOrder(requestParameters: OrdersPublicApiCreateOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ObjectId>;
39
+ /**
40
+ * Creates a new manual transaction for active order with specified open invoice
41
+ * Create a new manual transaction for order invoice
42
+ */
43
+ createOrderManualTransactionRaw(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
44
+ /**
45
+ * Creates a new manual transaction for active order with specified open invoice
46
+ * Create a new manual transaction for order invoice
47
+ */
48
+ createOrderManualTransaction(requestParameters: OrdersPublicApiCreateOrderManualTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
36
49
  /**
37
50
  *
38
51
  */
@@ -121,6 +121,50 @@ var OrdersPublicApi = /** @class */ (function (_super) {
121
121
  });
122
122
  });
123
123
  };
124
+ /**
125
+ * Creates a new manual transaction for active order with specified open invoice
126
+ * Create a new manual transaction for order invoice
127
+ */
128
+ OrdersPublicApi.prototype.createOrderManualTransactionRaw = function (requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ var queryParameters, headerParameters, response;
131
+ return __generator(this, function (_a) {
132
+ switch (_a.label) {
133
+ case 0:
134
+ if (requestParameters['orderId'] == null) {
135
+ throw new runtime.RequiredError('orderId', 'Required parameter "orderId" was null or undefined when calling createOrderManualTransaction().');
136
+ }
137
+ queryParameters = {};
138
+ headerParameters = {};
139
+ return [4 /*yield*/, this.request({
140
+ path: "/orders/{orderId}/invoice/transactions".replace("{".concat("orderId", "}"), encodeURIComponent(String(requestParameters['orderId']))),
141
+ method: 'POST',
142
+ headers: headerParameters,
143
+ query: queryParameters,
144
+ }, initOverrides)];
145
+ case 1:
146
+ response = _a.sent();
147
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
148
+ }
149
+ });
150
+ });
151
+ };
152
+ /**
153
+ * Creates a new manual transaction for active order with specified open invoice
154
+ * Create a new manual transaction for order invoice
155
+ */
156
+ OrdersPublicApi.prototype.createOrderManualTransaction = function (requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function () {
158
+ return __generator(this, function (_a) {
159
+ switch (_a.label) {
160
+ case 0: return [4 /*yield*/, this.createOrderManualTransactionRaw(requestParameters, initOverrides)];
161
+ case 1:
162
+ _a.sent();
163
+ return [2 /*return*/];
164
+ }
165
+ });
166
+ });
167
+ };
124
168
  /**
125
169
  *
126
170
  */
@@ -24,23 +24,38 @@ export interface AccountBankAccountDto {
24
24
  id: string;
25
25
  /**
26
26
  *
27
- * @type {AccountBankAccountDtoDetails}
27
+ * @type {boolean}
28
28
  * @memberof AccountBankAccountDto
29
29
  */
30
- details: AccountBankAccountDtoDetails;
30
+ primary: boolean;
31
31
  /**
32
32
  *
33
- * @type {boolean}
33
+ * @type {string}
34
34
  * @memberof AccountBankAccountDto
35
35
  */
36
- primary: boolean;
36
+ currencyCode: string;
37
37
  /**
38
38
  *
39
39
  * @type {string}
40
40
  * @memberof AccountBankAccountDto
41
41
  */
42
- currencyCode: string;
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
  }