@randock/nameshift-api-client 0.0.491 → 0.0.493

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 (75) hide show
  1. package/.openapi-generator/FILES +11 -8
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +11 -1
  4. package/dist/apis/AdminApi.js +52 -0
  5. package/dist/apis/BankAccountsApi.d.ts +40 -1
  6. package/dist/apis/BankAccountsApi.js +197 -0
  7. package/dist/models/AccountBankAccountDetailsDto.d.ts +40 -0
  8. package/dist/models/AccountBankAccountDetailsDto.js +55 -0
  9. package/dist/models/AccountBankAccountDto.d.ts +10 -4
  10. package/dist/models/AccountBankAccountDto.js +7 -3
  11. package/dist/models/AdminLandingDesignStatsDto.d.ts +39 -0
  12. package/dist/models/AdminLandingDesignStatsDto.js +56 -0
  13. package/dist/models/BankAccountFormatCountryDto.d.ts +38 -0
  14. package/dist/models/BankAccountFormatCountryDto.js +55 -0
  15. package/dist/models/BankAccountFormatDto.d.ts +45 -0
  16. package/dist/models/BankAccountFormatDto.js +60 -0
  17. package/dist/models/BankAccountFormatFieldDto.d.ts +76 -0
  18. package/dist/models/BankAccountFormatFieldDto.js +81 -0
  19. package/dist/models/BankAccountFormatFieldOptionDto.d.ts +38 -0
  20. package/dist/models/BankAccountFormatFieldOptionDto.js +55 -0
  21. package/dist/models/BankAccountFormatFieldType.d.ts +26 -0
  22. package/dist/models/BankAccountFormatFieldType.js +52 -0
  23. package/dist/models/BankAccountFormatsDto.d.ts +33 -0
  24. package/dist/models/BankAccountFormatsDto.js +52 -0
  25. package/dist/models/CreateBankAccountDetailsInput.d.ts +40 -0
  26. package/dist/models/CreateBankAccountDetailsInput.js +55 -0
  27. package/dist/models/CreateBankAccountInput.d.ts +5 -4
  28. package/dist/models/CreateBankAccountInput.js +3 -2
  29. package/dist/models/LandingDesignUsageDto.d.ts +47 -0
  30. package/dist/models/LandingDesignUsageDto.js +64 -0
  31. package/dist/models/SearchBankAccountInstitutionsInput.d.ts +46 -0
  32. package/dist/models/SearchBankAccountInstitutionsInput.js +55 -0
  33. package/dist/models/index.d.ts +11 -8
  34. package/dist/models/index.js +11 -8
  35. package/package.json +1 -1
  36. package/src/apis/AdminApi.ts +39 -0
  37. package/src/apis/BankAccountsApi.ts +181 -0
  38. package/src/models/AccountBankAccountDetailsDto.ts +75 -0
  39. package/src/models/AccountBankAccountDto.ts +20 -11
  40. package/src/models/AdminLandingDesignStatsDto.ts +83 -0
  41. package/src/models/BankAccountFormatCountryDto.ts +75 -0
  42. package/src/models/BankAccountFormatDto.ts +92 -0
  43. package/src/models/BankAccountFormatFieldDto.ts +146 -0
  44. package/src/models/BankAccountFormatFieldOptionDto.ts +75 -0
  45. package/src/models/BankAccountFormatFieldType.ts +54 -0
  46. package/src/models/BankAccountFormatsDto.ts +74 -0
  47. package/src/models/CreateBankAccountDetailsInput.ts +75 -0
  48. package/src/models/CreateBankAccountInput.ts +14 -6
  49. package/src/models/LandingDesignUsageDto.ts +87 -0
  50. package/src/models/SearchBankAccountInstitutionsInput.ts +82 -0
  51. package/src/models/index.ts +11 -8
  52. package/dist/models/AccountBankAccountDtoDetails.d.ts +0 -42
  53. package/dist/models/AccountBankAccountDtoDetails.js +0 -79
  54. package/dist/models/AuBankAccountDetails.d.ts +0 -63
  55. package/dist/models/AuBankAccountDetails.js +0 -76
  56. package/dist/models/CaBankAccountDetails.d.ts +0 -69
  57. package/dist/models/CaBankAccountDetails.js +0 -80
  58. package/dist/models/NzBankAccountDetails.d.ts +0 -57
  59. package/dist/models/NzBankAccountDetails.js +0 -72
  60. package/dist/models/SeBankAccountDetails.d.ts +0 -75
  61. package/dist/models/SeBankAccountDetails.js +0 -84
  62. package/dist/models/SepaBankAccountDetails.d.ts +0 -63
  63. package/dist/models/SepaBankAccountDetails.js +0 -76
  64. package/dist/models/UkBankAccountDetails.d.ts +0 -63
  65. package/dist/models/UkBankAccountDetails.js +0 -76
  66. package/dist/models/UsBankAccountDetails.d.ts +0 -63
  67. package/dist/models/UsBankAccountDetails.js +0 -76
  68. package/src/models/AccountBankAccountDtoDetails.ts +0 -128
  69. package/src/models/AuBankAccountDetails.ts +0 -109
  70. package/src/models/CaBankAccountDetails.ts +0 -118
  71. package/src/models/NzBankAccountDetails.ts +0 -100
  72. package/src/models/SeBankAccountDetails.ts +0 -127
  73. package/src/models/SepaBankAccountDetails.ts +0 -109
  74. package/src/models/UkBankAccountDetails.ts +0 -109
  75. package/src/models/UsBankAccountDetails.ts +0 -109
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.491",
3
+ "version": "0.0.493",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -26,6 +26,7 @@ import type {
26
26
  AdminCompanyStatsDto,
27
27
  AdminDashboardStatsDto,
28
28
  AdminGetAllDomainTransfers200Response,
29
+ AdminLandingDesignStatsDto,
29
30
  AdminMarketplaceDto,
30
31
  BadRequestException,
31
32
  BulkCommissionActionsInput,
@@ -105,6 +106,8 @@ import {
105
106
  AdminDashboardStatsDtoToJSON,
106
107
  AdminGetAllDomainTransfers200ResponseFromJSON,
107
108
  AdminGetAllDomainTransfers200ResponseToJSON,
109
+ AdminLandingDesignStatsDtoFromJSON,
110
+ AdminLandingDesignStatsDtoToJSON,
108
111
  AdminMarketplaceDtoFromJSON,
109
112
  AdminMarketplaceDtoToJSON,
110
113
  BadRequestExceptionFromJSON,
@@ -1811,6 +1814,42 @@ export class AdminApi extends runtime.BaseAPI {
1811
1814
  return await response.value();
1812
1815
  }
1813
1816
 
1817
+ /**
1818
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1819
+ * Get admin landing design stats
1820
+ */
1821
+ async getAdminLandingDesignStatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminLandingDesignStatsDto>> {
1822
+ const queryParameters: any = {};
1823
+
1824
+ const headerParameters: runtime.HTTPHeaders = {};
1825
+
1826
+ if (this.configuration && this.configuration.accessToken) {
1827
+ const token = this.configuration.accessToken;
1828
+ const tokenString = await token("bearer", []);
1829
+
1830
+ if (tokenString) {
1831
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1832
+ }
1833
+ }
1834
+ const response = await this.request({
1835
+ path: `/admin/stats/landing-designs`,
1836
+ method: 'GET',
1837
+ headers: headerParameters,
1838
+ query: queryParameters,
1839
+ }, initOverrides);
1840
+
1841
+ return new runtime.JSONApiResponse(response, (jsonValue) => AdminLandingDesignStatsDtoFromJSON(jsonValue));
1842
+ }
1843
+
1844
+ /**
1845
+ * Returns how many domains use each landing page design right now, resolving the domain design first and the account one otherwise.
1846
+ * Get admin landing design stats
1847
+ */
1848
+ async getAdminLandingDesignStats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminLandingDesignStatsDto> {
1849
+ const response = await this.getAdminLandingDesignStatsRaw(initOverrides);
1850
+ return await response.value();
1851
+ }
1852
+
1814
1853
  /**
1815
1854
  * Returns a lead as the seller sees it, for any account. Read only. Requires admin bearer authentication.
1816
1855
  * Get lead details
@@ -17,7 +17,11 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  AccountBankAccountDto,
19
19
  AirwallexBankAccountDetailsDto,
20
+ BankAccountFormatDto,
21
+ BankAccountFormatFieldOptionDto,
22
+ BankAccountFormatsDto,
20
23
  CreateBankAccountInput,
24
+ SearchBankAccountInstitutionsInput,
21
25
  ValidationException,
22
26
  } from '../models/index';
23
27
  import {
@@ -25,8 +29,16 @@ import {
25
29
  AccountBankAccountDtoToJSON,
26
30
  AirwallexBankAccountDetailsDtoFromJSON,
27
31
  AirwallexBankAccountDetailsDtoToJSON,
32
+ BankAccountFormatDtoFromJSON,
33
+ BankAccountFormatDtoToJSON,
34
+ BankAccountFormatFieldOptionDtoFromJSON,
35
+ BankAccountFormatFieldOptionDtoToJSON,
36
+ BankAccountFormatsDtoFromJSON,
37
+ BankAccountFormatsDtoToJSON,
28
38
  CreateBankAccountInputFromJSON,
29
39
  CreateBankAccountInputToJSON,
40
+ SearchBankAccountInstitutionsInputFromJSON,
41
+ SearchBankAccountInstitutionsInputToJSON,
30
42
  ValidationExceptionFromJSON,
31
43
  ValidationExceptionToJSON,
32
44
  } from '../models/index';
@@ -41,6 +53,11 @@ export interface BankAccountsApiDeleteBankAccountRequest {
41
53
  bankAccountId: string;
42
54
  }
43
55
 
56
+ export interface BankAccountsApiGetBankAccountFormatRequest {
57
+ countryCode: string;
58
+ currencyCode: string;
59
+ }
60
+
44
61
  export interface BankAccountsApiGetBankAccountToUseForMicrodepositRequest {
45
62
  bankAccountId: string;
46
63
  accountId: string;
@@ -55,6 +72,12 @@ export interface BankAccountsApiMakeBankAccountPrimaryRequest {
55
72
  bankAccountId: string;
56
73
  }
57
74
 
75
+ export interface BankAccountsApiSearchBankAccountInstitutionsRequest {
76
+ countryCode: string;
77
+ currencyCode: string;
78
+ searchBankAccountInstitutionsInput: SearchBankAccountInstitutionsInput;
79
+ }
80
+
58
81
  /**
59
82
  *
60
83
  */
@@ -169,6 +192,60 @@ export class BankAccountsApi extends runtime.BaseAPI {
169
192
  await this.deleteBankAccountRaw(requestParameters, initOverrides);
170
193
  }
171
194
 
195
+ /**
196
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
197
+ * Get the bank details to ask for
198
+ */
199
+ async getBankAccountFormatRaw(requestParameters: BankAccountsApiGetBankAccountFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BankAccountFormatDto>> {
200
+ if (requestParameters['countryCode'] == null) {
201
+ throw new runtime.RequiredError(
202
+ 'countryCode',
203
+ 'Required parameter "countryCode" was null or undefined when calling getBankAccountFormat().'
204
+ );
205
+ }
206
+
207
+ if (requestParameters['currencyCode'] == null) {
208
+ throw new runtime.RequiredError(
209
+ 'currencyCode',
210
+ 'Required parameter "currencyCode" was null or undefined when calling getBankAccountFormat().'
211
+ );
212
+ }
213
+
214
+ const queryParameters: any = {};
215
+
216
+ const headerParameters: runtime.HTTPHeaders = {};
217
+
218
+ if (this.configuration && this.configuration.apiKey) {
219
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
220
+ }
221
+
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = await token("bearer", []);
225
+
226
+ if (tokenString) {
227
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
228
+ }
229
+ }
230
+ const response = await this.request({
231
+ path: `/private/bank-account-formats/{countryCode}/{currencyCode}`.replace(`{${"countryCode"}}`, encodeURIComponent(String(requestParameters['countryCode']))).replace(`{${"currencyCode"}}`, encodeURIComponent(String(requestParameters['currencyCode']))),
232
+ method: 'GET',
233
+ headers: headerParameters,
234
+ query: queryParameters,
235
+ }, initOverrides);
236
+
237
+ return new runtime.JSONApiResponse(response, (jsonValue) => BankAccountFormatDtoFromJSON(jsonValue));
238
+ }
239
+
240
+ /**
241
+ * Returns the fields a bank account in this country and currency needs, to render the form from and submit in `details.fields`. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
242
+ * Get the bank details to ask for
243
+ */
244
+ async getBankAccountFormat(requestParameters: BankAccountsApiGetBankAccountFormatRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BankAccountFormatDto> {
245
+ const response = await this.getBankAccountFormatRaw(requestParameters, initOverrides);
246
+ return await response.value();
247
+ }
248
+
172
249
  /**
173
250
  * Returns bank account details to use for microdeposit verification. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
174
251
  * Get microdeposit bank account details
@@ -223,6 +300,46 @@ export class BankAccountsApi extends runtime.BaseAPI {
223
300
  return await response.value();
224
301
  }
225
302
 
303
+ /**
304
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
305
+ * List bank account countries and currencies
306
+ */
307
+ async listBankAccountFormatsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BankAccountFormatsDto>> {
308
+ const queryParameters: any = {};
309
+
310
+ const headerParameters: runtime.HTTPHeaders = {};
311
+
312
+ if (this.configuration && this.configuration.apiKey) {
313
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
314
+ }
315
+
316
+ if (this.configuration && this.configuration.accessToken) {
317
+ const token = this.configuration.accessToken;
318
+ const tokenString = await token("bearer", []);
319
+
320
+ if (tokenString) {
321
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
322
+ }
323
+ }
324
+ const response = await this.request({
325
+ path: `/private/bank-account-formats`,
326
+ method: 'GET',
327
+ headers: headerParameters,
328
+ query: queryParameters,
329
+ }, initOverrides);
330
+
331
+ return new runtime.JSONApiResponse(response, (jsonValue) => BankAccountFormatsDtoFromJSON(jsonValue));
332
+ }
333
+
334
+ /**
335
+ * Returns the bank countries and currencies we pay out to, for the current seller\'s entity type (business or personal). **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
336
+ * List bank account countries and currencies
337
+ */
338
+ async listBankAccountFormats(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BankAccountFormatsDto> {
339
+ const response = await this.listBankAccountFormatsRaw(initOverrides);
340
+ return await response.value();
341
+ }
342
+
226
343
  /**
227
344
  * Returns all bank accounts configured for the current seller account. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
228
345
  * List bank accounts
@@ -323,4 +440,68 @@ export class BankAccountsApi extends runtime.BaseAPI {
323
440
  await this.makeBankAccountPrimaryRaw(requestParameters, initOverrides);
324
441
  }
325
442
 
443
+ /**
444
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
445
+ * Search banks or branches
446
+ */
447
+ async searchBankAccountInstitutionsRaw(requestParameters: BankAccountsApiSearchBankAccountInstitutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BankAccountFormatFieldOptionDto>>> {
448
+ if (requestParameters['countryCode'] == null) {
449
+ throw new runtime.RequiredError(
450
+ 'countryCode',
451
+ 'Required parameter "countryCode" was null or undefined when calling searchBankAccountInstitutions().'
452
+ );
453
+ }
454
+
455
+ if (requestParameters['currencyCode'] == null) {
456
+ throw new runtime.RequiredError(
457
+ 'currencyCode',
458
+ 'Required parameter "currencyCode" was null or undefined when calling searchBankAccountInstitutions().'
459
+ );
460
+ }
461
+
462
+ if (requestParameters['searchBankAccountInstitutionsInput'] == null) {
463
+ throw new runtime.RequiredError(
464
+ 'searchBankAccountInstitutionsInput',
465
+ 'Required parameter "searchBankAccountInstitutionsInput" was null or undefined when calling searchBankAccountInstitutions().'
466
+ );
467
+ }
468
+
469
+ const queryParameters: any = {};
470
+
471
+ const headerParameters: runtime.HTTPHeaders = {};
472
+
473
+ headerParameters['Content-Type'] = 'application/json';
474
+
475
+ if (this.configuration && this.configuration.apiKey) {
476
+ headerParameters["apikey"] = await this.configuration.apiKey("apikey"); // api_key authentication
477
+ }
478
+
479
+ if (this.configuration && this.configuration.accessToken) {
480
+ const token = this.configuration.accessToken;
481
+ const tokenString = await token("bearer", []);
482
+
483
+ if (tokenString) {
484
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
485
+ }
486
+ }
487
+ const response = await this.request({
488
+ path: `/private/bank-account-formats/{countryCode}/{currencyCode}/institutions`.replace(`{${"countryCode"}}`, encodeURIComponent(String(requestParameters['countryCode']))).replace(`{${"currencyCode"}}`, encodeURIComponent(String(requestParameters['currencyCode']))),
489
+ method: 'POST',
490
+ headers: headerParameters,
491
+ query: queryParameters,
492
+ body: SearchBankAccountInstitutionsInputToJSON(requestParameters['searchBankAccountInstitutionsInput']),
493
+ }, initOverrides);
494
+
495
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BankAccountFormatFieldOptionDtoFromJSON));
496
+ }
497
+
498
+ /**
499
+ * Returns the banks or branches matching what the seller typed in a LOOKUP field, e.g. an IFSC code or a Japanese branch. **API key scope required:** `PAYOUTS_READ`. Requests authenticated with a seller session do not need any scope.
500
+ * Search banks or branches
501
+ */
502
+ async searchBankAccountInstitutions(requestParameters: BankAccountsApiSearchBankAccountInstitutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BankAccountFormatFieldOptionDto>> {
503
+ const response = await this.searchBankAccountInstitutionsRaw(requestParameters, initOverrides);
504
+ return await response.value();
505
+ }
506
+
326
507
  }
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface AccountBankAccountDetailsDto
20
+ */
21
+ export interface AccountBankAccountDetailsDto {
22
+ /**
23
+ * ISO country code of the country the account is held in.
24
+ * @type {string}
25
+ * @memberof AccountBankAccountDetailsDto
26
+ */
27
+ countryCode: string;
28
+ /**
29
+ * The bank details by the key the bank account format lists after `bank_details.`, with routing types next to their values, e.g. `account_routing_type1: sort_code`.
30
+ * @type {{ [key: string]: string; }}
31
+ * @memberof AccountBankAccountDetailsDto
32
+ */
33
+ bankDetails: { [key: string]: string; };
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AccountBankAccountDetailsDto interface.
38
+ */
39
+ export function instanceOfAccountBankAccountDetailsDto(value: object): value is AccountBankAccountDetailsDto {
40
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
41
+ if (!('bankDetails' in value) || value['bankDetails'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AccountBankAccountDetailsDtoFromJSON(json: any): AccountBankAccountDetailsDto {
46
+ return AccountBankAccountDetailsDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AccountBankAccountDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDetailsDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'countryCode': json['countryCode'],
56
+ 'bankDetails': json['bankDetails'],
57
+ };
58
+ }
59
+
60
+ export function AccountBankAccountDetailsDtoToJSON(json: any): AccountBankAccountDetailsDto {
61
+ return AccountBankAccountDetailsDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountBankAccountDetailsDtoToJSONTyped(value?: AccountBankAccountDetailsDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'countryCode': value['countryCode'],
72
+ 'bankDetails': value['bankDetails'],
73
+ };
74
+ }
75
+
@@ -13,13 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { AccountBankAccountDtoDetails } from './AccountBankAccountDtoDetails';
16
+ import type { AccountBankAccountDetailsDto } from './AccountBankAccountDetailsDto';
17
17
  import {
18
- AccountBankAccountDtoDetailsFromJSON,
19
- AccountBankAccountDtoDetailsFromJSONTyped,
20
- AccountBankAccountDtoDetailsToJSON,
21
- AccountBankAccountDtoDetailsToJSONTyped,
22
- } from './AccountBankAccountDtoDetails';
18
+ AccountBankAccountDetailsDtoFromJSON,
19
+ AccountBankAccountDetailsDtoFromJSONTyped,
20
+ AccountBankAccountDetailsDtoToJSON,
21
+ AccountBankAccountDetailsDtoToJSONTyped,
22
+ } from './AccountBankAccountDetailsDto';
23
23
 
24
24
  /**
25
25
  *
@@ -58,11 +58,17 @@ export interface AccountBankAccountDto {
58
58
  */
59
59
  nameCheckStatus: AccountBankAccountDtoNameCheckStatusEnum | null;
60
60
  /**
61
- *
62
- * @type {AccountBankAccountDtoDetails}
61
+ * The bank details. Extra details such as tax IDs are never returned.
62
+ * @type {AccountBankAccountDetailsDto}
63
63
  * @memberof AccountBankAccountDto
64
64
  */
65
- details: AccountBankAccountDtoDetails;
65
+ details: AccountBankAccountDetailsDto;
66
+ /**
67
+ * Whether we can pay out to this bank account: false when we don't pay out to its country and currency, or its details are incomplete.
68
+ * @type {boolean}
69
+ * @memberof AccountBankAccountDto
70
+ */
71
+ payable: boolean;
66
72
  }
67
73
 
68
74
 
@@ -99,6 +105,7 @@ export function instanceOfAccountBankAccountDto(value: object): value is Account
99
105
  if (!('verificationStatus' in value) || value['verificationStatus'] === undefined) return false;
100
106
  if (!('nameCheckStatus' in value) || value['nameCheckStatus'] === undefined) return false;
101
107
  if (!('details' in value) || value['details'] === undefined) return false;
108
+ if (!('payable' in value) || value['payable'] === undefined) return false;
102
109
  return true;
103
110
  }
104
111
 
@@ -117,7 +124,8 @@ export function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminato
117
124
  'currencyCode': json['currencyCode'],
118
125
  'verificationStatus': json['verificationStatus'],
119
126
  'nameCheckStatus': json['nameCheckStatus'],
120
- 'details': AccountBankAccountDtoDetailsFromJSON(json['details']),
127
+ 'details': AccountBankAccountDetailsDtoFromJSON(json['details']),
128
+ 'payable': json['payable'],
121
129
  };
122
130
  }
123
131
 
@@ -137,7 +145,8 @@ export function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto |
137
145
  'currencyCode': value['currencyCode'],
138
146
  'verificationStatus': value['verificationStatus'],
139
147
  'nameCheckStatus': value['nameCheckStatus'],
140
- 'details': AccountBankAccountDtoDetailsToJSON(value['details']),
148
+ 'details': AccountBankAccountDetailsDtoToJSON(value['details']),
149
+ 'payable': value['payable'],
141
150
  };
142
151
  }
143
152
 
@@ -0,0 +1,83 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { LandingDesignUsageDto } from './LandingDesignUsageDto';
17
+ import {
18
+ LandingDesignUsageDtoFromJSON,
19
+ LandingDesignUsageDtoFromJSONTyped,
20
+ LandingDesignUsageDtoToJSON,
21
+ LandingDesignUsageDtoToJSONTyped,
22
+ } from './LandingDesignUsageDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AdminLandingDesignStatsDto
28
+ */
29
+ export interface AdminLandingDesignStatsDto {
30
+ /**
31
+ * Total number of live (not sold, not deleted) domains
32
+ * @type {number}
33
+ * @memberof AdminLandingDesignStatsDto
34
+ */
35
+ totalDomains: number;
36
+ /**
37
+ * Domains per landing page design, every design included, most used first
38
+ * @type {Array<LandingDesignUsageDto>}
39
+ * @memberof AdminLandingDesignStatsDto
40
+ */
41
+ designs: Array<LandingDesignUsageDto>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the AdminLandingDesignStatsDto interface.
46
+ */
47
+ export function instanceOfAdminLandingDesignStatsDto(value: object): value is AdminLandingDesignStatsDto {
48
+ if (!('totalDomains' in value) || value['totalDomains'] === undefined) return false;
49
+ if (!('designs' in value) || value['designs'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function AdminLandingDesignStatsDtoFromJSON(json: any): AdminLandingDesignStatsDto {
54
+ return AdminLandingDesignStatsDtoFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function AdminLandingDesignStatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminLandingDesignStatsDto {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'totalDomains': json['totalDomains'],
64
+ 'designs': ((json['designs'] as Array<any>).map(LandingDesignUsageDtoFromJSON)),
65
+ };
66
+ }
67
+
68
+ export function AdminLandingDesignStatsDtoToJSON(json: any): AdminLandingDesignStatsDto {
69
+ return AdminLandingDesignStatsDtoToJSONTyped(json, false);
70
+ }
71
+
72
+ export function AdminLandingDesignStatsDtoToJSONTyped(value?: AdminLandingDesignStatsDto | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'totalDomains': value['totalDomains'],
80
+ 'designs': ((value['designs'] as Array<any>).map(LandingDesignUsageDtoToJSON)),
81
+ };
82
+ }
83
+
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface BankAccountFormatCountryDto
20
+ */
21
+ export interface BankAccountFormatCountryDto {
22
+ /**
23
+ * ISO 3166-1 alpha-2 code of the bank country.
24
+ * @type {string}
25
+ * @memberof BankAccountFormatCountryDto
26
+ */
27
+ countryCode: string;
28
+ /**
29
+ * ISO 4217 codes of the currencies we pay out to in this country, the country's own currency first.
30
+ * @type {Array<string>}
31
+ * @memberof BankAccountFormatCountryDto
32
+ */
33
+ currencyCodes: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the BankAccountFormatCountryDto interface.
38
+ */
39
+ export function instanceOfBankAccountFormatCountryDto(value: object): value is BankAccountFormatCountryDto {
40
+ if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
41
+ if (!('currencyCodes' in value) || value['currencyCodes'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function BankAccountFormatCountryDtoFromJSON(json: any): BankAccountFormatCountryDto {
46
+ return BankAccountFormatCountryDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function BankAccountFormatCountryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatCountryDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'countryCode': json['countryCode'],
56
+ 'currencyCodes': json['currencyCodes'],
57
+ };
58
+ }
59
+
60
+ export function BankAccountFormatCountryDtoToJSON(json: any): BankAccountFormatCountryDto {
61
+ return BankAccountFormatCountryDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function BankAccountFormatCountryDtoToJSONTyped(value?: BankAccountFormatCountryDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'countryCode': value['countryCode'],
72
+ 'currencyCodes': value['currencyCodes'],
73
+ };
74
+ }
75
+