@randock/nameshift-api-client 0.0.492 → 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.
- package/.openapi-generator/FILES +9 -8
- package/README.md +3 -3
- package/dist/apis/BankAccountsApi.d.ts +40 -1
- package/dist/apis/BankAccountsApi.js +197 -0
- package/dist/models/AccountBankAccountDetailsDto.d.ts +40 -0
- package/dist/models/AccountBankAccountDetailsDto.js +55 -0
- package/dist/models/AccountBankAccountDto.d.ts +10 -4
- package/dist/models/AccountBankAccountDto.js +7 -3
- package/dist/models/BankAccountFormatCountryDto.d.ts +38 -0
- package/dist/models/BankAccountFormatCountryDto.js +55 -0
- package/dist/models/BankAccountFormatDto.d.ts +45 -0
- package/dist/models/BankAccountFormatDto.js +60 -0
- package/dist/models/BankAccountFormatFieldDto.d.ts +76 -0
- package/dist/models/BankAccountFormatFieldDto.js +81 -0
- package/dist/models/BankAccountFormatFieldOptionDto.d.ts +38 -0
- package/dist/models/BankAccountFormatFieldOptionDto.js +55 -0
- package/dist/models/BankAccountFormatFieldType.d.ts +26 -0
- package/dist/models/BankAccountFormatFieldType.js +52 -0
- package/dist/models/BankAccountFormatsDto.d.ts +33 -0
- package/dist/models/BankAccountFormatsDto.js +52 -0
- package/dist/models/CreateBankAccountDetailsInput.d.ts +40 -0
- package/dist/models/CreateBankAccountDetailsInput.js +55 -0
- package/dist/models/CreateBankAccountInput.d.ts +5 -4
- package/dist/models/CreateBankAccountInput.js +3 -2
- package/dist/models/SearchBankAccountInstitutionsInput.d.ts +46 -0
- package/dist/models/SearchBankAccountInstitutionsInput.js +55 -0
- package/dist/models/index.d.ts +9 -8
- package/dist/models/index.js +9 -8
- package/package.json +1 -1
- package/src/apis/BankAccountsApi.ts +181 -0
- package/src/models/AccountBankAccountDetailsDto.ts +75 -0
- package/src/models/AccountBankAccountDto.ts +20 -11
- package/src/models/BankAccountFormatCountryDto.ts +75 -0
- package/src/models/BankAccountFormatDto.ts +92 -0
- package/src/models/BankAccountFormatFieldDto.ts +146 -0
- package/src/models/BankAccountFormatFieldOptionDto.ts +75 -0
- package/src/models/BankAccountFormatFieldType.ts +54 -0
- package/src/models/BankAccountFormatsDto.ts +74 -0
- package/src/models/CreateBankAccountDetailsInput.ts +75 -0
- package/src/models/CreateBankAccountInput.ts +14 -6
- package/src/models/SearchBankAccountInstitutionsInput.ts +82 -0
- package/src/models/index.ts +9 -8
- package/dist/models/AccountBankAccountDtoDetails.d.ts +0 -42
- package/dist/models/AccountBankAccountDtoDetails.js +0 -79
- package/dist/models/AuBankAccountDetails.d.ts +0 -63
- package/dist/models/AuBankAccountDetails.js +0 -76
- package/dist/models/CaBankAccountDetails.d.ts +0 -69
- package/dist/models/CaBankAccountDetails.js +0 -80
- package/dist/models/NzBankAccountDetails.d.ts +0 -57
- package/dist/models/NzBankAccountDetails.js +0 -72
- package/dist/models/SeBankAccountDetails.d.ts +0 -75
- package/dist/models/SeBankAccountDetails.js +0 -84
- package/dist/models/SepaBankAccountDetails.d.ts +0 -63
- package/dist/models/SepaBankAccountDetails.js +0 -76
- package/dist/models/UkBankAccountDetails.d.ts +0 -63
- package/dist/models/UkBankAccountDetails.js +0 -76
- package/dist/models/UsBankAccountDetails.d.ts +0 -63
- package/dist/models/UsBankAccountDetails.js +0 -76
- package/src/models/AccountBankAccountDtoDetails.ts +0 -128
- package/src/models/AuBankAccountDetails.ts +0 -109
- package/src/models/CaBankAccountDetails.ts +0 -118
- package/src/models/NzBankAccountDetails.ts +0 -100
- package/src/models/SeBankAccountDetails.ts +0 -127
- package/src/models/SepaBankAccountDetails.ts +0 -109
- package/src/models/UkBankAccountDetails.ts +0 -109
- package/src/models/UsBankAccountDetails.ts +0 -109
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AccountBankAccountDetailsDto } from './AccountBankAccountDetailsDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
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 {
|
|
61
|
+
* The bank details. Extra details such as tax IDs are never returned.
|
|
62
|
+
* @type {AccountBankAccountDetailsDto}
|
|
63
63
|
* @memberof AccountBankAccountDto
|
|
64
64
|
*/
|
|
65
|
-
details:
|
|
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':
|
|
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':
|
|
148
|
+
'details': AccountBankAccountDetailsDtoToJSON(value['details']),
|
|
149
|
+
'payable': value['payable'],
|
|
141
150
|
};
|
|
142
151
|
}
|
|
143
152
|
|
|
@@ -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
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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 { BankAccountFormatFieldDto } from './BankAccountFormatFieldDto';
|
|
17
|
+
import {
|
|
18
|
+
BankAccountFormatFieldDtoFromJSON,
|
|
19
|
+
BankAccountFormatFieldDtoFromJSONTyped,
|
|
20
|
+
BankAccountFormatFieldDtoToJSON,
|
|
21
|
+
BankAccountFormatFieldDtoToJSONTyped,
|
|
22
|
+
} from './BankAccountFormatFieldDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BankAccountFormatDto
|
|
28
|
+
*/
|
|
29
|
+
export interface BankAccountFormatDto {
|
|
30
|
+
/**
|
|
31
|
+
* ISO 3166-1 alpha-2 code of the bank country.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BankAccountFormatDto
|
|
34
|
+
*/
|
|
35
|
+
countryCode: string;
|
|
36
|
+
/**
|
|
37
|
+
* ISO 4217 code of the account currency.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BankAccountFormatDto
|
|
40
|
+
*/
|
|
41
|
+
currencyCode: string;
|
|
42
|
+
/**
|
|
43
|
+
* The fields to fill in, in display order.
|
|
44
|
+
* @type {Array<BankAccountFormatFieldDto>}
|
|
45
|
+
* @memberof BankAccountFormatDto
|
|
46
|
+
*/
|
|
47
|
+
fields: Array<BankAccountFormatFieldDto>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the BankAccountFormatDto interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfBankAccountFormatDto(value: object): value is BankAccountFormatDto {
|
|
54
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
55
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
56
|
+
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BankAccountFormatDtoFromJSON(json: any): BankAccountFormatDto {
|
|
61
|
+
return BankAccountFormatDtoFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BankAccountFormatDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatDto {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'countryCode': json['countryCode'],
|
|
71
|
+
'currencyCode': json['currencyCode'],
|
|
72
|
+
'fields': ((json['fields'] as Array<any>).map(BankAccountFormatFieldDtoFromJSON)),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function BankAccountFormatDtoToJSON(json: any): BankAccountFormatDto {
|
|
77
|
+
return BankAccountFormatDtoToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function BankAccountFormatDtoToJSONTyped(value?: BankAccountFormatDto | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'countryCode': value['countryCode'],
|
|
88
|
+
'currencyCode': value['currencyCode'],
|
|
89
|
+
'fields': ((value['fields'] as Array<any>).map(BankAccountFormatFieldDtoToJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { BankAccountFormatFieldType } from './BankAccountFormatFieldType';
|
|
17
|
+
import {
|
|
18
|
+
BankAccountFormatFieldTypeFromJSON,
|
|
19
|
+
BankAccountFormatFieldTypeFromJSONTyped,
|
|
20
|
+
BankAccountFormatFieldTypeToJSON,
|
|
21
|
+
BankAccountFormatFieldTypeToJSONTyped,
|
|
22
|
+
} from './BankAccountFormatFieldType';
|
|
23
|
+
import type { BankAccountFormatFieldOptionDto } from './BankAccountFormatFieldOptionDto';
|
|
24
|
+
import {
|
|
25
|
+
BankAccountFormatFieldOptionDtoFromJSON,
|
|
26
|
+
BankAccountFormatFieldOptionDtoFromJSONTyped,
|
|
27
|
+
BankAccountFormatFieldOptionDtoToJSON,
|
|
28
|
+
BankAccountFormatFieldOptionDtoToJSONTyped,
|
|
29
|
+
} from './BankAccountFormatFieldOptionDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface BankAccountFormatFieldDto
|
|
35
|
+
*/
|
|
36
|
+
export interface BankAccountFormatFieldDto {
|
|
37
|
+
/**
|
|
38
|
+
* Where the value goes: submit it under this key in `details.fields`, e.g. `bank_details.account_routing_value1`.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof BankAccountFormatFieldDto
|
|
41
|
+
*/
|
|
42
|
+
path: string;
|
|
43
|
+
/**
|
|
44
|
+
* INPUT is typed, SELECT is picked from `options`, LOOKUP is typed with suggestions from the institutions search.
|
|
45
|
+
* @type {BankAccountFormatFieldType}
|
|
46
|
+
* @memberof BankAccountFormatFieldDto
|
|
47
|
+
*/
|
|
48
|
+
type: BankAccountFormatFieldType;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the field must be filled in.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof BankAccountFormatFieldDto
|
|
53
|
+
*/
|
|
54
|
+
required: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Anchored regular expression the value must match once spaces, dashes and dots are left out, if any.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof BankAccountFormatFieldDto
|
|
59
|
+
*/
|
|
60
|
+
pattern: string | null;
|
|
61
|
+
/**
|
|
62
|
+
* English label from the payout provider, to show when there is no translation.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof BankAccountFormatFieldDto
|
|
65
|
+
*/
|
|
66
|
+
label: string;
|
|
67
|
+
/**
|
|
68
|
+
* English hint.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof BankAccountFormatFieldDto
|
|
71
|
+
*/
|
|
72
|
+
description: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Example value.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof BankAccountFormatFieldDto
|
|
77
|
+
*/
|
|
78
|
+
example: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* The values to pick from, for SELECT fields.
|
|
81
|
+
* @type {Array<BankAccountFormatFieldOptionDto>}
|
|
82
|
+
* @memberof BankAccountFormatFieldDto
|
|
83
|
+
*/
|
|
84
|
+
options: Array<BankAccountFormatFieldOptionDto> | null;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the BankAccountFormatFieldDto interface.
|
|
91
|
+
*/
|
|
92
|
+
export function instanceOfBankAccountFormatFieldDto(value: object): value is BankAccountFormatFieldDto {
|
|
93
|
+
if (!('path' in value) || value['path'] === undefined) return false;
|
|
94
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
95
|
+
if (!('required' in value) || value['required'] === undefined) return false;
|
|
96
|
+
if (!('pattern' in value) || value['pattern'] === undefined) return false;
|
|
97
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
98
|
+
if (!('description' in value) || value['description'] === undefined) return false;
|
|
99
|
+
if (!('example' in value) || value['example'] === undefined) return false;
|
|
100
|
+
if (!('options' in value) || value['options'] === undefined) return false;
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function BankAccountFormatFieldDtoFromJSON(json: any): BankAccountFormatFieldDto {
|
|
105
|
+
return BankAccountFormatFieldDtoFromJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function BankAccountFormatFieldDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatFieldDto {
|
|
109
|
+
if (json == null) {
|
|
110
|
+
return json;
|
|
111
|
+
}
|
|
112
|
+
return {
|
|
113
|
+
|
|
114
|
+
'path': json['path'],
|
|
115
|
+
'type': BankAccountFormatFieldTypeFromJSON(json['type']),
|
|
116
|
+
'required': json['required'],
|
|
117
|
+
'pattern': json['pattern'],
|
|
118
|
+
'label': json['label'],
|
|
119
|
+
'description': json['description'],
|
|
120
|
+
'example': json['example'],
|
|
121
|
+
'options': (json['options'] == null ? null : (json['options'] as Array<any>).map(BankAccountFormatFieldOptionDtoFromJSON)),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function BankAccountFormatFieldDtoToJSON(json: any): BankAccountFormatFieldDto {
|
|
126
|
+
return BankAccountFormatFieldDtoToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function BankAccountFormatFieldDtoToJSONTyped(value?: BankAccountFormatFieldDto | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'path': value['path'],
|
|
137
|
+
'type': BankAccountFormatFieldTypeToJSON(value['type']),
|
|
138
|
+
'required': value['required'],
|
|
139
|
+
'pattern': value['pattern'],
|
|
140
|
+
'label': value['label'],
|
|
141
|
+
'description': value['description'],
|
|
142
|
+
'example': value['example'],
|
|
143
|
+
'options': (value['options'] == null ? null : (value['options'] as Array<any>).map(BankAccountFormatFieldOptionDtoToJSON)),
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
|
|
@@ -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 BankAccountFormatFieldOptionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface BankAccountFormatFieldOptionDto {
|
|
22
|
+
/**
|
|
23
|
+
* Value to submit.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof BankAccountFormatFieldOptionDto
|
|
26
|
+
*/
|
|
27
|
+
value: string;
|
|
28
|
+
/**
|
|
29
|
+
* English label, e.g. the bank name.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof BankAccountFormatFieldOptionDto
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the BankAccountFormatFieldOptionDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfBankAccountFormatFieldOptionDto(value: object): value is BankAccountFormatFieldOptionDto {
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
41
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function BankAccountFormatFieldOptionDtoFromJSON(json: any): BankAccountFormatFieldOptionDto {
|
|
46
|
+
return BankAccountFormatFieldOptionDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function BankAccountFormatFieldOptionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatFieldOptionDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'value': json['value'],
|
|
56
|
+
'label': json['label'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BankAccountFormatFieldOptionDtoToJSON(json: any): BankAccountFormatFieldOptionDto {
|
|
61
|
+
return BankAccountFormatFieldOptionDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BankAccountFormatFieldOptionDtoToJSONTyped(value?: BankAccountFormatFieldOptionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'value': value['value'],
|
|
72
|
+
'label': value['label'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
|
|
16
|
+
/**
|
|
17
|
+
* INPUT is typed, SELECT is picked from `options`, LOOKUP is typed with suggestions from the institutions search.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const BankAccountFormatFieldType = {
|
|
21
|
+
INPUT: 'INPUT',
|
|
22
|
+
SELECT: 'SELECT',
|
|
23
|
+
LOOKUP: 'LOOKUP'
|
|
24
|
+
} as const;
|
|
25
|
+
export type BankAccountFormatFieldType = typeof BankAccountFormatFieldType[keyof typeof BankAccountFormatFieldType];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfBankAccountFormatFieldType(value: any): boolean {
|
|
29
|
+
for (const key in BankAccountFormatFieldType) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(BankAccountFormatFieldType, key)) {
|
|
31
|
+
if (BankAccountFormatFieldType[key as keyof typeof BankAccountFormatFieldType] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function BankAccountFormatFieldTypeFromJSON(json: any): BankAccountFormatFieldType {
|
|
40
|
+
return BankAccountFormatFieldTypeFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function BankAccountFormatFieldTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatFieldType {
|
|
44
|
+
return json as BankAccountFormatFieldType;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function BankAccountFormatFieldTypeToJSON(value?: BankAccountFormatFieldType | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function BankAccountFormatFieldTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): BankAccountFormatFieldType {
|
|
52
|
+
return value as BankAccountFormatFieldType;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,74 @@
|
|
|
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 { BankAccountFormatCountryDto } from './BankAccountFormatCountryDto';
|
|
17
|
+
import {
|
|
18
|
+
BankAccountFormatCountryDtoFromJSON,
|
|
19
|
+
BankAccountFormatCountryDtoFromJSONTyped,
|
|
20
|
+
BankAccountFormatCountryDtoToJSON,
|
|
21
|
+
BankAccountFormatCountryDtoToJSONTyped,
|
|
22
|
+
} from './BankAccountFormatCountryDto';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface BankAccountFormatsDto
|
|
28
|
+
*/
|
|
29
|
+
export interface BankAccountFormatsDto {
|
|
30
|
+
/**
|
|
31
|
+
* Bank countries we pay out to, by country code.
|
|
32
|
+
* @type {Array<BankAccountFormatCountryDto>}
|
|
33
|
+
* @memberof BankAccountFormatsDto
|
|
34
|
+
*/
|
|
35
|
+
countries: Array<BankAccountFormatCountryDto>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the BankAccountFormatsDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfBankAccountFormatsDto(value: object): value is BankAccountFormatsDto {
|
|
42
|
+
if (!('countries' in value) || value['countries'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function BankAccountFormatsDtoFromJSON(json: any): BankAccountFormatsDto {
|
|
47
|
+
return BankAccountFormatsDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function BankAccountFormatsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankAccountFormatsDto {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'countries': ((json['countries'] as Array<any>).map(BankAccountFormatCountryDtoFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function BankAccountFormatsDtoToJSON(json: any): BankAccountFormatsDto {
|
|
61
|
+
return BankAccountFormatsDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function BankAccountFormatsDtoToJSONTyped(value?: BankAccountFormatsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'countries': ((value['countries'] as Array<any>).map(BankAccountFormatCountryDtoToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -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 CreateBankAccountDetailsInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBankAccountDetailsInput {
|
|
22
|
+
/**
|
|
23
|
+
* ISO 3166-1 alpha-2 code of the country the bank account is held in.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateBankAccountDetailsInput
|
|
26
|
+
*/
|
|
27
|
+
countryCode: string;
|
|
28
|
+
/**
|
|
29
|
+
* The bank details by the path the bank account format lists, e.g. `bank_details.account_number`. Details the format doesn't ask for are ignored.
|
|
30
|
+
* @type {{ [key: string]: string; }}
|
|
31
|
+
* @memberof CreateBankAccountDetailsInput
|
|
32
|
+
*/
|
|
33
|
+
fields: { [key: string]: string; };
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the CreateBankAccountDetailsInput interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfCreateBankAccountDetailsInput(value: object): value is CreateBankAccountDetailsInput {
|
|
40
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
41
|
+
if (!('fields' in value) || value['fields'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function CreateBankAccountDetailsInputFromJSON(json: any): CreateBankAccountDetailsInput {
|
|
46
|
+
return CreateBankAccountDetailsInputFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CreateBankAccountDetailsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBankAccountDetailsInput {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'countryCode': json['countryCode'],
|
|
56
|
+
'fields': json['fields'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function CreateBankAccountDetailsInputToJSON(json: any): CreateBankAccountDetailsInput {
|
|
61
|
+
return CreateBankAccountDetailsInputToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateBankAccountDetailsInputToJSONTyped(value?: CreateBankAccountDetailsInput | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'countryCode': value['countryCode'],
|
|
72
|
+
'fields': value['fields'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|