@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.
- package/.openapi-generator/FILES +11 -8
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +11 -1
- package/dist/apis/AdminApi.js +52 -0
- 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/AdminLandingDesignStatsDto.d.ts +39 -0
- package/dist/models/AdminLandingDesignStatsDto.js +56 -0
- 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/LandingDesignUsageDto.d.ts +47 -0
- package/dist/models/LandingDesignUsageDto.js +64 -0
- package/dist/models/SearchBankAccountInstitutionsInput.d.ts +46 -0
- package/dist/models/SearchBankAccountInstitutionsInput.js +55 -0
- package/dist/models/index.d.ts +11 -8
- package/dist/models/index.js +11 -8
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +39 -0
- package/src/apis/BankAccountsApi.ts +181 -0
- package/src/models/AccountBankAccountDetailsDto.ts +75 -0
- package/src/models/AccountBankAccountDto.ts +20 -11
- package/src/models/AdminLandingDesignStatsDto.ts +83 -0
- 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/LandingDesignUsageDto.ts +87 -0
- package/src/models/SearchBankAccountInstitutionsInput.ts +82 -0
- package/src/models/index.ts +11 -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
|
@@ -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
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CreateBankAccountDetailsInput } from './CreateBankAccountDetailsInput';
|
|
17
|
+
import {
|
|
18
|
+
CreateBankAccountDetailsInputFromJSON,
|
|
19
|
+
CreateBankAccountDetailsInputFromJSONTyped,
|
|
20
|
+
CreateBankAccountDetailsInputToJSON,
|
|
21
|
+
CreateBankAccountDetailsInputToJSONTyped,
|
|
22
|
+
} from './CreateBankAccountDetailsInput';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -20,17 +28,17 @@ import { mapValues } from '../runtime';
|
|
|
20
28
|
*/
|
|
21
29
|
export interface CreateBankAccountInput {
|
|
22
30
|
/**
|
|
23
|
-
* ISO 4217 currency code
|
|
31
|
+
* ISO 4217 currency code of the bank account.
|
|
24
32
|
* @type {string}
|
|
25
33
|
* @memberof CreateBankAccountInput
|
|
26
34
|
*/
|
|
27
35
|
currencyCode: string;
|
|
28
36
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {
|
|
37
|
+
* The bank country and the bank details its format asks for.
|
|
38
|
+
* @type {CreateBankAccountDetailsInput}
|
|
31
39
|
* @memberof CreateBankAccountInput
|
|
32
40
|
*/
|
|
33
|
-
details:
|
|
41
|
+
details: CreateBankAccountDetailsInput;
|
|
34
42
|
}
|
|
35
43
|
|
|
36
44
|
/**
|
|
@@ -53,7 +61,7 @@ export function CreateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
53
61
|
return {
|
|
54
62
|
|
|
55
63
|
'currencyCode': json['currencyCode'],
|
|
56
|
-
'details': json['details'],
|
|
64
|
+
'details': CreateBankAccountDetailsInputFromJSON(json['details']),
|
|
57
65
|
};
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -69,7 +77,7 @@ export function CreateBankAccountInputToJSONTyped(value?: CreateBankAccountInput
|
|
|
69
77
|
return {
|
|
70
78
|
|
|
71
79
|
'currencyCode': value['currencyCode'],
|
|
72
|
-
'details': value['details'],
|
|
80
|
+
'details': CreateBankAccountDetailsInputToJSON(value['details']),
|
|
73
81
|
};
|
|
74
82
|
}
|
|
75
83
|
|
|
@@ -0,0 +1,87 @@
|
|
|
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 LandingDesignUsageDto
|
|
20
|
+
*/
|
|
21
|
+
export interface LandingDesignUsageDto {
|
|
22
|
+
/**
|
|
23
|
+
* Landing page design
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof LandingDesignUsageDto
|
|
26
|
+
*/
|
|
27
|
+
design: LandingDesignUsageDtoDesignEnum;
|
|
28
|
+
/**
|
|
29
|
+
* Number of live (not sold, not deleted) domains whose effective design (own, else the account one) is this design
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof LandingDesignUsageDto
|
|
32
|
+
*/
|
|
33
|
+
domains: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const LandingDesignUsageDtoDesignEnum = {
|
|
41
|
+
ORIGINAL: 'original',
|
|
42
|
+
MODERN: 'modern',
|
|
43
|
+
MINIMAL: 'minimal'
|
|
44
|
+
} as const;
|
|
45
|
+
export type LandingDesignUsageDtoDesignEnum = typeof LandingDesignUsageDtoDesignEnum[keyof typeof LandingDesignUsageDtoDesignEnum];
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the LandingDesignUsageDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfLandingDesignUsageDto(value: object): value is LandingDesignUsageDto {
|
|
52
|
+
if (!('design' in value) || value['design'] === undefined) return false;
|
|
53
|
+
if (!('domains' in value) || value['domains'] === undefined) return false;
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function LandingDesignUsageDtoFromJSON(json: any): LandingDesignUsageDto {
|
|
58
|
+
return LandingDesignUsageDtoFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function LandingDesignUsageDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LandingDesignUsageDto {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'design': json['design'],
|
|
68
|
+
'domains': json['domains'],
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function LandingDesignUsageDtoToJSON(json: any): LandingDesignUsageDto {
|
|
73
|
+
return LandingDesignUsageDtoToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function LandingDesignUsageDtoToJSONTyped(value?: LandingDesignUsageDto | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'design': value['design'],
|
|
84
|
+
'domains': value['domains'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|