@randock/nameshift-api-client 0.0.215 → 0.0.216
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 +3 -0
- package/README.md +3 -3
- package/dist/models/AccountBankAccountDto.d.ts +5 -22
- package/dist/models/AccountBankAccountDto.js +5 -16
- package/dist/models/AccountBankAccountDtoDetails.d.ts +27 -0
- package/dist/models/AccountBankAccountDtoDetails.js +54 -0
- package/dist/models/CreateBankAccountInput.d.ts +2 -20
- package/dist/models/CreateBankAccountInput.js +3 -11
- package/dist/models/SepaBankAccountDetails.d.ts +58 -0
- package/dist/models/SepaBankAccountDetails.js +71 -0
- package/dist/models/UkBankAccountDetails.d.ts +58 -0
- package/dist/models/UkBankAccountDetails.js +71 -0
- package/dist/models/UpdateBankAccountInput.d.ts +2 -20
- package/dist/models/UpdateBankAccountInput.js +3 -11
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/models/AccountBankAccountDto.ts +15 -34
- package/src/models/AccountBankAccountDtoDetails.ts +73 -0
- package/src/models/CreateBankAccountInput.ts +5 -30
- package/src/models/SepaBankAccountDetails.ts +104 -0
- package/src/models/UkBankAccountDetails.ts +104 -0
- package/src/models/UpdateBankAccountInput.ts +5 -30
- package/src/models/index.ts +3 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -25,6 +25,7 @@ src/apis/UsersPublicApi.ts
|
|
|
25
25
|
src/apis/index.ts
|
|
26
26
|
src/index.ts
|
|
27
27
|
src/models/AccountBankAccountDto.ts
|
|
28
|
+
src/models/AccountBankAccountDtoDetails.ts
|
|
28
29
|
src/models/AccountDto.ts
|
|
29
30
|
src/models/AccountMetricsDto.ts
|
|
30
31
|
src/models/AccountNotificationDto.ts
|
|
@@ -185,6 +186,7 @@ src/models/SellerSecurityUserDto.ts
|
|
|
185
186
|
src/models/SellerSubscriptionListItemDto.ts
|
|
186
187
|
src/models/SellerSubscriptionListItemDtoDomainInformation.ts
|
|
187
188
|
src/models/SeoMetricsDto.ts
|
|
189
|
+
src/models/SepaBankAccountDetails.ts
|
|
188
190
|
src/models/SetDomainTransferConfirmationInput.ts
|
|
189
191
|
src/models/SetNewPasswordInput.ts
|
|
190
192
|
src/models/SetPayoutProviderInput.ts
|
|
@@ -209,6 +211,7 @@ src/models/TaskListDomainDto.ts
|
|
|
209
211
|
src/models/TaskListDomainTransferDto.ts
|
|
210
212
|
src/models/TaskListLeadDto.ts
|
|
211
213
|
src/models/ThrottlerException.ts
|
|
214
|
+
src/models/UkBankAccountDetails.ts
|
|
212
215
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
213
216
|
src/models/UpdateBankAccountInput.ts
|
|
214
217
|
src/models/UpdateDomainInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.216
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @randock/nameshift-api-client@0.0.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.216 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
|
|
|
44
44
|
```
|
|
45
45
|
npm install PATH_TO_GENERATED_PACKAGE --save
|
|
46
46
|
```
|
|
47
|
-
|
|
47
|
+
cc40a8e655cf7ed1f6246420c57ab6f9066ec99c1a37b75ed311c916ca44207d21b5333f169effe9a7426149dbbc1c41
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { AccountBankAccountDtoDetails } from './AccountBankAccountDtoDetails';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -23,40 +24,22 @@ export interface AccountBankAccountDto {
|
|
|
23
24
|
id: string;
|
|
24
25
|
/**
|
|
25
26
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof AccountBankAccountDto
|
|
28
|
-
*/
|
|
29
|
-
primary: boolean;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
27
|
+
* @type {AccountBankAccountDtoDetails}
|
|
33
28
|
* @memberof AccountBankAccountDto
|
|
34
29
|
*/
|
|
35
|
-
|
|
30
|
+
details: AccountBankAccountDtoDetails;
|
|
36
31
|
/**
|
|
37
32
|
*
|
|
38
|
-
* @type {
|
|
33
|
+
* @type {boolean}
|
|
39
34
|
* @memberof AccountBankAccountDto
|
|
40
35
|
*/
|
|
41
|
-
|
|
36
|
+
primary: boolean;
|
|
42
37
|
/**
|
|
43
38
|
*
|
|
44
39
|
* @type {string}
|
|
45
40
|
* @memberof AccountBankAccountDto
|
|
46
41
|
*/
|
|
47
42
|
currencyCode: string;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @type {string}
|
|
51
|
-
* @memberof AccountBankAccountDto
|
|
52
|
-
*/
|
|
53
|
-
iban: string | null;
|
|
54
|
-
/**
|
|
55
|
-
*
|
|
56
|
-
* @type {string}
|
|
57
|
-
* @memberof AccountBankAccountDto
|
|
58
|
-
*/
|
|
59
|
-
bban: string | null;
|
|
60
43
|
}
|
|
61
44
|
/**
|
|
62
45
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
@@ -18,24 +18,19 @@ exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
|
18
18
|
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
19
19
|
exports.AccountBankAccountDtoToJSON = AccountBankAccountDtoToJSON;
|
|
20
20
|
exports.AccountBankAccountDtoToJSONTyped = AccountBankAccountDtoToJSONTyped;
|
|
21
|
+
var AccountBankAccountDtoDetails_1 = require("./AccountBankAccountDtoDetails");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the AccountBankAccountDto interface.
|
|
23
24
|
*/
|
|
24
25
|
function instanceOfAccountBankAccountDto(value) {
|
|
25
26
|
if (!('id' in value) || value['id'] === undefined)
|
|
26
27
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('bic' in value) || value['bic'] === undefined)
|
|
28
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
29
|
return false;
|
|
31
|
-
if (!('
|
|
30
|
+
if (!('primary' in value) || value['primary'] === undefined)
|
|
32
31
|
return false;
|
|
33
32
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
34
33
|
return false;
|
|
35
|
-
if (!('iban' in value) || value['iban'] === undefined)
|
|
36
|
-
return false;
|
|
37
|
-
if (!('bban' in value) || value['bban'] === undefined)
|
|
38
|
-
return false;
|
|
39
34
|
return true;
|
|
40
35
|
}
|
|
41
36
|
function AccountBankAccountDtoFromJSON(json) {
|
|
@@ -47,12 +42,9 @@ function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
42
|
}
|
|
48
43
|
return {
|
|
49
44
|
'id': json['id'],
|
|
45
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsFromJSON)(json['details']),
|
|
50
46
|
'primary': json['primary'],
|
|
51
|
-
'bic': json['bic'],
|
|
52
|
-
'countryCode': json['countryCode'],
|
|
53
47
|
'currencyCode': json['currencyCode'],
|
|
54
|
-
'iban': json['iban'],
|
|
55
|
-
'bban': json['bban'],
|
|
56
48
|
};
|
|
57
49
|
}
|
|
58
50
|
function AccountBankAccountDtoToJSON(json) {
|
|
@@ -65,11 +57,8 @@ function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
65
57
|
}
|
|
66
58
|
return {
|
|
67
59
|
'id': value['id'],
|
|
60
|
+
'details': (0, AccountBankAccountDtoDetails_1.AccountBankAccountDtoDetailsToJSON)(value['details']),
|
|
68
61
|
'primary': value['primary'],
|
|
69
|
-
'bic': value['bic'],
|
|
70
|
-
'countryCode': value['countryCode'],
|
|
71
62
|
'currencyCode': value['currencyCode'],
|
|
72
|
-
'iban': value['iban'],
|
|
73
|
-
'bban': value['bban'],
|
|
74
63
|
};
|
|
75
64
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
|
|
13
|
+
import type { UkBankAccountDetails } from './UkBankAccountDetails';
|
|
14
|
+
/**
|
|
15
|
+
* @type AccountBankAccountDtoDetails
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type AccountBankAccountDtoDetails = {
|
|
20
|
+
type: 'SepaBankAccountDetails';
|
|
21
|
+
} & SepaBankAccountDetails | {
|
|
22
|
+
type: 'UkBankAccountDetails';
|
|
23
|
+
} & UkBankAccountDetails;
|
|
24
|
+
export declare function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails;
|
|
25
|
+
export declare function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDtoDetails;
|
|
26
|
+
export declare function AccountBankAccountDtoDetailsToJSON(json: any): any;
|
|
27
|
+
export declare function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccountDtoDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AccountBankAccountDtoDetailsFromJSON = AccountBankAccountDtoDetailsFromJSON;
|
|
17
|
+
exports.AccountBankAccountDtoDetailsFromJSONTyped = AccountBankAccountDtoDetailsFromJSONTyped;
|
|
18
|
+
exports.AccountBankAccountDtoDetailsToJSON = AccountBankAccountDtoDetailsToJSON;
|
|
19
|
+
exports.AccountBankAccountDtoDetailsToJSONTyped = AccountBankAccountDtoDetailsToJSONTyped;
|
|
20
|
+
var SepaBankAccountDetails_1 = require("./SepaBankAccountDetails");
|
|
21
|
+
var UkBankAccountDetails_1 = require("./UkBankAccountDetails");
|
|
22
|
+
function AccountBankAccountDtoDetailsFromJSON(json) {
|
|
23
|
+
return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function AccountBankAccountDtoDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
switch (json['type']) {
|
|
30
|
+
case 'SepaBankAccountDetails':
|
|
31
|
+
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsFromJSONTyped)(json, true), { type: 'SepaBankAccountDetails' });
|
|
32
|
+
case 'UkBankAccountDetails':
|
|
33
|
+
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsFromJSONTyped)(json, true), { type: 'UkBankAccountDetails' });
|
|
34
|
+
default:
|
|
35
|
+
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(json['type'], "'"));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function AccountBankAccountDtoDetailsToJSON(json) {
|
|
39
|
+
return AccountBankAccountDtoDetailsToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AccountBankAccountDtoDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
switch (value['type']) {
|
|
47
|
+
case 'SepaBankAccountDetails':
|
|
48
|
+
return Object.assign({}, (0, SepaBankAccountDetails_1.SepaBankAccountDetailsToJSON)(value), { type: 'SepaBankAccountDetails' });
|
|
49
|
+
case 'UkBankAccountDetails':
|
|
50
|
+
return Object.assign({}, (0, UkBankAccountDetails_1.UkBankAccountDetailsToJSON)(value), { type: 'UkBankAccountDetails' });
|
|
51
|
+
default:
|
|
52
|
+
throw new Error("No variant of AccountBankAccountDtoDetails exists with 'type=".concat(value['type'], "'"));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -23,28 +23,10 @@ export interface CreateBankAccountInput {
|
|
|
23
23
|
currencyCode: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof CreateBankAccountInput
|
|
28
|
-
*/
|
|
29
|
-
countryCode: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof CreateBankAccountInput
|
|
34
|
-
*/
|
|
35
|
-
bic: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof CreateBankAccountInput
|
|
40
|
-
*/
|
|
41
|
-
iban?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
26
|
+
* @type {object}
|
|
45
27
|
* @memberof CreateBankAccountInput
|
|
46
28
|
*/
|
|
47
|
-
|
|
29
|
+
details: object;
|
|
48
30
|
}
|
|
49
31
|
/**
|
|
50
32
|
* Check if a given object implements the CreateBankAccountInput interface.
|
|
@@ -24,9 +24,7 @@ exports.CreateBankAccountInputToJSONTyped = CreateBankAccountInputToJSONTyped;
|
|
|
24
24
|
function instanceOfCreateBankAccountInput(value) {
|
|
25
25
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('bic' in value) || value['bic'] === undefined)
|
|
27
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
@@ -39,10 +37,7 @@ function CreateBankAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
39
|
'currencyCode': json['currencyCode'],
|
|
42
|
-
'
|
|
43
|
-
'bic': json['bic'],
|
|
44
|
-
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
45
|
-
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
40
|
+
'details': json['details'],
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
function CreateBankAccountInputToJSON(json) {
|
|
@@ -55,9 +50,6 @@ function CreateBankAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
50
|
}
|
|
56
51
|
return {
|
|
57
52
|
'currencyCode': value['currencyCode'],
|
|
58
|
-
'
|
|
59
|
-
'bic': value['bic'],
|
|
60
|
-
'iban': value['iban'],
|
|
61
|
-
'bban': value['bban'],
|
|
53
|
+
'details': value['details'],
|
|
62
54
|
};
|
|
63
55
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SepaBankAccountDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface SepaBankAccountDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SepaBankAccountDetails
|
|
22
|
+
*/
|
|
23
|
+
type: SepaBankAccountDetailsTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SepaBankAccountDetails
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SepaBankAccountDetails
|
|
34
|
+
*/
|
|
35
|
+
bic: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SepaBankAccountDetails
|
|
40
|
+
*/
|
|
41
|
+
iban: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const SepaBankAccountDetailsTypeEnum: {
|
|
47
|
+
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
|
+
};
|
|
50
|
+
export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the SepaBankAccountDetails interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfSepaBankAccountDetails(value: object): value is SepaBankAccountDetails;
|
|
55
|
+
export declare function SepaBankAccountDetailsFromJSON(json: any): SepaBankAccountDetails;
|
|
56
|
+
export declare function SepaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SepaBankAccountDetails;
|
|
57
|
+
export declare function SepaBankAccountDetailsToJSON(json: any): SepaBankAccountDetails;
|
|
58
|
+
export declare function SepaBankAccountDetailsToJSONTyped(value?: SepaBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SepaBankAccountDetailsTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfSepaBankAccountDetails = instanceOfSepaBankAccountDetails;
|
|
18
|
+
exports.SepaBankAccountDetailsFromJSON = SepaBankAccountDetailsFromJSON;
|
|
19
|
+
exports.SepaBankAccountDetailsFromJSONTyped = SepaBankAccountDetailsFromJSONTyped;
|
|
20
|
+
exports.SepaBankAccountDetailsToJSON = SepaBankAccountDetailsToJSON;
|
|
21
|
+
exports.SepaBankAccountDetailsToJSONTyped = SepaBankAccountDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.SepaBankAccountDetailsTypeEnum = {
|
|
26
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the SepaBankAccountDetails interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfSepaBankAccountDetails(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('bic' in value) || value['bic'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('iban' in value) || value['iban'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function SepaBankAccountDetailsFromJSON(json) {
|
|
44
|
+
return SepaBankAccountDetailsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function SepaBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'bic': json['bic'],
|
|
54
|
+
'iban': json['iban'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function SepaBankAccountDetailsToJSON(json) {
|
|
58
|
+
return SepaBankAccountDetailsToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function SepaBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'countryCode': value['countryCode'],
|
|
68
|
+
'bic': value['bic'],
|
|
69
|
+
'iban': value['iban'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift API
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UkBankAccountDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface UkBankAccountDetails {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UkBankAccountDetails
|
|
22
|
+
*/
|
|
23
|
+
type: UkBankAccountDetailsTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UkBankAccountDetails
|
|
28
|
+
*/
|
|
29
|
+
countryCode: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UkBankAccountDetails
|
|
34
|
+
*/
|
|
35
|
+
sortCode: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof UkBankAccountDetails
|
|
40
|
+
*/
|
|
41
|
+
accountNumber: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const UkBankAccountDetailsTypeEnum: {
|
|
47
|
+
readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
|
|
48
|
+
readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
|
|
49
|
+
};
|
|
50
|
+
export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the UkBankAccountDetails interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfUkBankAccountDetails(value: object): value is UkBankAccountDetails;
|
|
55
|
+
export declare function UkBankAccountDetailsFromJSON(json: any): UkBankAccountDetails;
|
|
56
|
+
export declare function UkBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UkBankAccountDetails;
|
|
57
|
+
export declare function UkBankAccountDetailsToJSON(json: any): UkBankAccountDetails;
|
|
58
|
+
export declare function UkBankAccountDetailsToJSONTyped(value?: UkBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift API
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UkBankAccountDetailsTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfUkBankAccountDetails = instanceOfUkBankAccountDetails;
|
|
18
|
+
exports.UkBankAccountDetailsFromJSON = UkBankAccountDetailsFromJSON;
|
|
19
|
+
exports.UkBankAccountDetailsFromJSONTyped = UkBankAccountDetailsFromJSONTyped;
|
|
20
|
+
exports.UkBankAccountDetailsToJSON = UkBankAccountDetailsToJSON;
|
|
21
|
+
exports.UkBankAccountDetailsToJSONTyped = UkBankAccountDetailsToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.UkBankAccountDetailsTypeEnum = {
|
|
26
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
27
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the UkBankAccountDetails interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfUkBankAccountDetails(value) {
|
|
33
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('sortCode' in value) || value['sortCode'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function UkBankAccountDetailsFromJSON(json) {
|
|
44
|
+
return UkBankAccountDetailsFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UkBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'type': json['type'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'sortCode': json['sortCode'],
|
|
54
|
+
'accountNumber': json['accountNumber'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function UkBankAccountDetailsToJSON(json) {
|
|
58
|
+
return UkBankAccountDetailsToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function UkBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'type': value['type'],
|
|
67
|
+
'countryCode': value['countryCode'],
|
|
68
|
+
'sortCode': value['sortCode'],
|
|
69
|
+
'accountNumber': value['accountNumber'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -23,28 +23,10 @@ export interface UpdateBankAccountInput {
|
|
|
23
23
|
currencyCode: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof UpdateBankAccountInput
|
|
28
|
-
*/
|
|
29
|
-
countryCode: string;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof UpdateBankAccountInput
|
|
34
|
-
*/
|
|
35
|
-
bic: string;
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof UpdateBankAccountInput
|
|
40
|
-
*/
|
|
41
|
-
iban?: string | null;
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
* @type {string}
|
|
26
|
+
* @type {object}
|
|
45
27
|
* @memberof UpdateBankAccountInput
|
|
46
28
|
*/
|
|
47
|
-
|
|
29
|
+
details: object;
|
|
48
30
|
}
|
|
49
31
|
/**
|
|
50
32
|
* Check if a given object implements the UpdateBankAccountInput interface.
|
|
@@ -24,9 +24,7 @@ exports.UpdateBankAccountInputToJSONTyped = UpdateBankAccountInputToJSONTyped;
|
|
|
24
24
|
function instanceOfUpdateBankAccountInput(value) {
|
|
25
25
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
26
26
|
return false;
|
|
27
|
-
if (!('
|
|
28
|
-
return false;
|
|
29
|
-
if (!('bic' in value) || value['bic'] === undefined)
|
|
27
|
+
if (!('details' in value) || value['details'] === undefined)
|
|
30
28
|
return false;
|
|
31
29
|
return true;
|
|
32
30
|
}
|
|
@@ -39,10 +37,7 @@ function UpdateBankAccountInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
}
|
|
40
38
|
return {
|
|
41
39
|
'currencyCode': json['currencyCode'],
|
|
42
|
-
'
|
|
43
|
-
'bic': json['bic'],
|
|
44
|
-
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
45
|
-
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
40
|
+
'details': json['details'],
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
function UpdateBankAccountInputToJSON(json) {
|
|
@@ -55,9 +50,6 @@ function UpdateBankAccountInputToJSONTyped(value, ignoreDiscriminator) {
|
|
|
55
50
|
}
|
|
56
51
|
return {
|
|
57
52
|
'currencyCode': value['currencyCode'],
|
|
58
|
-
'
|
|
59
|
-
'bic': value['bic'],
|
|
60
|
-
'iban': value['iban'],
|
|
61
|
-
'bban': value['bban'],
|
|
53
|
+
'details': value['details'],
|
|
62
54
|
};
|
|
63
55
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './AccountBankAccountDto';
|
|
2
|
+
export * from './AccountBankAccountDtoDetails';
|
|
2
3
|
export * from './AccountDto';
|
|
3
4
|
export * from './AccountMetricsDto';
|
|
4
5
|
export * from './AccountNotificationDto';
|
|
@@ -159,6 +160,7 @@ export * from './SellerSecurityUserDto';
|
|
|
159
160
|
export * from './SellerSubscriptionListItemDto';
|
|
160
161
|
export * from './SellerSubscriptionListItemDtoDomainInformation';
|
|
161
162
|
export * from './SeoMetricsDto';
|
|
163
|
+
export * from './SepaBankAccountDetails';
|
|
162
164
|
export * from './SetDomainTransferConfirmationInput';
|
|
163
165
|
export * from './SetNewPasswordInput';
|
|
164
166
|
export * from './SetPayoutProviderInput';
|
|
@@ -183,6 +185,7 @@ export * from './TaskListDomainDto';
|
|
|
183
185
|
export * from './TaskListDomainTransferDto';
|
|
184
186
|
export * from './TaskListLeadDto';
|
|
185
187
|
export * from './ThrottlerException';
|
|
188
|
+
export * from './UkBankAccountDetails';
|
|
186
189
|
export * from './UpdateAccountBillingInformationInput';
|
|
187
190
|
export * from './UpdateBankAccountInput';
|
|
188
191
|
export * from './UpdateDomainInput';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./AccountBankAccountDto"), exports);
|
|
20
|
+
__exportStar(require("./AccountBankAccountDtoDetails"), exports);
|
|
20
21
|
__exportStar(require("./AccountDto"), exports);
|
|
21
22
|
__exportStar(require("./AccountMetricsDto"), exports);
|
|
22
23
|
__exportStar(require("./AccountNotificationDto"), exports);
|
|
@@ -177,6 +178,7 @@ __exportStar(require("./SellerSecurityUserDto"), exports);
|
|
|
177
178
|
__exportStar(require("./SellerSubscriptionListItemDto"), exports);
|
|
178
179
|
__exportStar(require("./SellerSubscriptionListItemDtoDomainInformation"), exports);
|
|
179
180
|
__exportStar(require("./SeoMetricsDto"), exports);
|
|
181
|
+
__exportStar(require("./SepaBankAccountDetails"), exports);
|
|
180
182
|
__exportStar(require("./SetDomainTransferConfirmationInput"), exports);
|
|
181
183
|
__exportStar(require("./SetNewPasswordInput"), exports);
|
|
182
184
|
__exportStar(require("./SetPayoutProviderInput"), exports);
|
|
@@ -201,6 +203,7 @@ __exportStar(require("./TaskListDomainDto"), exports);
|
|
|
201
203
|
__exportStar(require("./TaskListDomainTransferDto"), exports);
|
|
202
204
|
__exportStar(require("./TaskListLeadDto"), exports);
|
|
203
205
|
__exportStar(require("./ThrottlerException"), exports);
|
|
206
|
+
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
204
207
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
205
208
|
__exportStar(require("./UpdateBankAccountInput"), exports);
|
|
206
209
|
__exportStar(require("./UpdateDomainInput"), exports);
|
package/package.json
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AccountBankAccountDtoDetails } from './AccountBankAccountDtoDetails';
|
|
17
|
+
import {
|
|
18
|
+
AccountBankAccountDtoDetailsFromJSON,
|
|
19
|
+
AccountBankAccountDtoDetailsFromJSONTyped,
|
|
20
|
+
AccountBankAccountDtoDetailsToJSON,
|
|
21
|
+
AccountBankAccountDtoDetailsToJSONTyped,
|
|
22
|
+
} from './AccountBankAccountDtoDetails';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -27,40 +35,22 @@ export interface AccountBankAccountDto {
|
|
|
27
35
|
id: string;
|
|
28
36
|
/**
|
|
29
37
|
*
|
|
30
|
-
* @type {
|
|
38
|
+
* @type {AccountBankAccountDtoDetails}
|
|
31
39
|
* @memberof AccountBankAccountDto
|
|
32
40
|
*/
|
|
33
|
-
|
|
41
|
+
details: AccountBankAccountDtoDetails;
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
|
-
* @type {
|
|
37
|
-
* @memberof AccountBankAccountDto
|
|
38
|
-
*/
|
|
39
|
-
bic: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
44
|
+
* @type {boolean}
|
|
43
45
|
* @memberof AccountBankAccountDto
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
primary: boolean;
|
|
46
48
|
/**
|
|
47
49
|
*
|
|
48
50
|
* @type {string}
|
|
49
51
|
* @memberof AccountBankAccountDto
|
|
50
52
|
*/
|
|
51
53
|
currencyCode: string;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof AccountBankAccountDto
|
|
56
|
-
*/
|
|
57
|
-
iban: string | null;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof AccountBankAccountDto
|
|
62
|
-
*/
|
|
63
|
-
bban: string | null;
|
|
64
54
|
}
|
|
65
55
|
|
|
66
56
|
/**
|
|
@@ -68,12 +58,9 @@ export interface AccountBankAccountDto {
|
|
|
68
58
|
*/
|
|
69
59
|
export function instanceOfAccountBankAccountDto(value: object): value is AccountBankAccountDto {
|
|
70
60
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
61
|
+
if (!('details' in value) || value['details'] === undefined) return false;
|
|
71
62
|
if (!('primary' in value) || value['primary'] === undefined) return false;
|
|
72
|
-
if (!('bic' in value) || value['bic'] === undefined) return false;
|
|
73
|
-
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
74
63
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
75
|
-
if (!('iban' in value) || value['iban'] === undefined) return false;
|
|
76
|
-
if (!('bban' in value) || value['bban'] === undefined) return false;
|
|
77
64
|
return true;
|
|
78
65
|
}
|
|
79
66
|
|
|
@@ -88,12 +75,9 @@ export function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
88
75
|
return {
|
|
89
76
|
|
|
90
77
|
'id': json['id'],
|
|
78
|
+
'details': AccountBankAccountDtoDetailsFromJSON(json['details']),
|
|
91
79
|
'primary': json['primary'],
|
|
92
|
-
'bic': json['bic'],
|
|
93
|
-
'countryCode': json['countryCode'],
|
|
94
80
|
'currencyCode': json['currencyCode'],
|
|
95
|
-
'iban': json['iban'],
|
|
96
|
-
'bban': json['bban'],
|
|
97
81
|
};
|
|
98
82
|
}
|
|
99
83
|
|
|
@@ -109,12 +93,9 @@ export function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto |
|
|
|
109
93
|
return {
|
|
110
94
|
|
|
111
95
|
'id': value['id'],
|
|
96
|
+
'details': AccountBankAccountDtoDetailsToJSON(value['details']),
|
|
112
97
|
'primary': value['primary'],
|
|
113
|
-
'bic': value['bic'],
|
|
114
|
-
'countryCode': value['countryCode'],
|
|
115
98
|
'currencyCode': value['currencyCode'],
|
|
116
|
-
'iban': value['iban'],
|
|
117
|
-
'bban': value['bban'],
|
|
118
99
|
};
|
|
119
100
|
}
|
|
120
101
|
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 type { SepaBankAccountDetails } from './SepaBankAccountDetails';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfSepaBankAccountDetails,
|
|
18
|
+
SepaBankAccountDetailsFromJSON,
|
|
19
|
+
SepaBankAccountDetailsFromJSONTyped,
|
|
20
|
+
SepaBankAccountDetailsToJSON,
|
|
21
|
+
} from './SepaBankAccountDetails';
|
|
22
|
+
import type { UkBankAccountDetails } from './UkBankAccountDetails';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfUkBankAccountDetails,
|
|
25
|
+
UkBankAccountDetailsFromJSON,
|
|
26
|
+
UkBankAccountDetailsFromJSONTyped,
|
|
27
|
+
UkBankAccountDetailsToJSON,
|
|
28
|
+
} from './UkBankAccountDetails';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type AccountBankAccountDtoDetails
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type AccountBankAccountDtoDetails = { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails;
|
|
36
|
+
|
|
37
|
+
export function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails {
|
|
38
|
+
return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDtoDetails {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['type']) {
|
|
46
|
+
case 'SepaBankAccountDetails':
|
|
47
|
+
return Object.assign({}, SepaBankAccountDetailsFromJSONTyped(json, true), { type: 'SepaBankAccountDetails' } as const);
|
|
48
|
+
case 'UkBankAccountDetails':
|
|
49
|
+
return Object.assign({}, UkBankAccountDetailsFromJSONTyped(json, true), { type: 'UkBankAccountDetails' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${json['type']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AccountBankAccountDtoDetailsToJSON(json: any): any {
|
|
56
|
+
return AccountBankAccountDtoDetailsToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccountDtoDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['type']) {
|
|
64
|
+
case 'SepaBankAccountDetails':
|
|
65
|
+
return Object.assign({}, SepaBankAccountDetailsToJSON(value), { type: 'SepaBankAccountDetails' } as const);
|
|
66
|
+
case 'UkBankAccountDetails':
|
|
67
|
+
return Object.assign({}, UkBankAccountDetailsToJSON(value), { type: 'UkBankAccountDetails' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${value['type']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -27,28 +27,10 @@ export interface CreateBankAccountInput {
|
|
|
27
27
|
currencyCode: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof CreateBankAccountInput
|
|
32
|
-
*/
|
|
33
|
-
countryCode: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof CreateBankAccountInput
|
|
38
|
-
*/
|
|
39
|
-
bic: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof CreateBankAccountInput
|
|
44
|
-
*/
|
|
45
|
-
iban?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
30
|
+
* @type {object}
|
|
49
31
|
* @memberof CreateBankAccountInput
|
|
50
32
|
*/
|
|
51
|
-
|
|
33
|
+
details: object;
|
|
52
34
|
}
|
|
53
35
|
|
|
54
36
|
/**
|
|
@@ -56,8 +38,7 @@ export interface CreateBankAccountInput {
|
|
|
56
38
|
*/
|
|
57
39
|
export function instanceOfCreateBankAccountInput(value: object): value is CreateBankAccountInput {
|
|
58
40
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
59
|
-
if (!('
|
|
60
|
-
if (!('bic' in value) || value['bic'] === undefined) return false;
|
|
41
|
+
if (!('details' in value) || value['details'] === undefined) return false;
|
|
61
42
|
return true;
|
|
62
43
|
}
|
|
63
44
|
|
|
@@ -72,10 +53,7 @@ export function CreateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
72
53
|
return {
|
|
73
54
|
|
|
74
55
|
'currencyCode': json['currencyCode'],
|
|
75
|
-
'
|
|
76
|
-
'bic': json['bic'],
|
|
77
|
-
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
78
|
-
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
56
|
+
'details': json['details'],
|
|
79
57
|
};
|
|
80
58
|
}
|
|
81
59
|
|
|
@@ -91,10 +69,7 @@ export function CreateBankAccountInputToJSONTyped(value?: CreateBankAccountInput
|
|
|
91
69
|
return {
|
|
92
70
|
|
|
93
71
|
'currencyCode': value['currencyCode'],
|
|
94
|
-
'
|
|
95
|
-
'bic': value['bic'],
|
|
96
|
-
'iban': value['iban'],
|
|
97
|
-
'bban': value['bban'],
|
|
72
|
+
'details': value['details'],
|
|
98
73
|
};
|
|
99
74
|
}
|
|
100
75
|
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 SepaBankAccountDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface SepaBankAccountDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SepaBankAccountDetails
|
|
26
|
+
*/
|
|
27
|
+
type: SepaBankAccountDetailsTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof SepaBankAccountDetails
|
|
32
|
+
*/
|
|
33
|
+
countryCode: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SepaBankAccountDetails
|
|
38
|
+
*/
|
|
39
|
+
bic: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof SepaBankAccountDetails
|
|
44
|
+
*/
|
|
45
|
+
iban: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const SepaBankAccountDetailsTypeEnum = {
|
|
53
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
54
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
55
|
+
} as const;
|
|
56
|
+
export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the SepaBankAccountDetails interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfSepaBankAccountDetails(value: object): value is SepaBankAccountDetails {
|
|
63
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
64
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
65
|
+
if (!('bic' in value) || value['bic'] === undefined) return false;
|
|
66
|
+
if (!('iban' in value) || value['iban'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SepaBankAccountDetailsFromJSON(json: any): SepaBankAccountDetails {
|
|
71
|
+
return SepaBankAccountDetailsFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function SepaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SepaBankAccountDetails {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'type': json['type'],
|
|
81
|
+
'countryCode': json['countryCode'],
|
|
82
|
+
'bic': json['bic'],
|
|
83
|
+
'iban': json['iban'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function SepaBankAccountDetailsToJSON(json: any): SepaBankAccountDetails {
|
|
88
|
+
return SepaBankAccountDetailsToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function SepaBankAccountDetailsToJSONTyped(value?: SepaBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'countryCode': value['countryCode'],
|
|
100
|
+
'bic': value['bic'],
|
|
101
|
+
'iban': value['iban'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
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 UkBankAccountDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface UkBankAccountDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UkBankAccountDetails
|
|
26
|
+
*/
|
|
27
|
+
type: UkBankAccountDetailsTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UkBankAccountDetails
|
|
32
|
+
*/
|
|
33
|
+
countryCode: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UkBankAccountDetails
|
|
38
|
+
*/
|
|
39
|
+
sortCode: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UkBankAccountDetails
|
|
44
|
+
*/
|
|
45
|
+
accountNumber: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const UkBankAccountDetailsTypeEnum = {
|
|
53
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
54
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
55
|
+
} as const;
|
|
56
|
+
export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the UkBankAccountDetails interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfUkBankAccountDetails(value: object): value is UkBankAccountDetails {
|
|
63
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
64
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
65
|
+
if (!('sortCode' in value) || value['sortCode'] === undefined) return false;
|
|
66
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function UkBankAccountDetailsFromJSON(json: any): UkBankAccountDetails {
|
|
71
|
+
return UkBankAccountDetailsFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function UkBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UkBankAccountDetails {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'type': json['type'],
|
|
81
|
+
'countryCode': json['countryCode'],
|
|
82
|
+
'sortCode': json['sortCode'],
|
|
83
|
+
'accountNumber': json['accountNumber'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function UkBankAccountDetailsToJSON(json: any): UkBankAccountDetails {
|
|
88
|
+
return UkBankAccountDetailsToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function UkBankAccountDetailsToJSONTyped(value?: UkBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
92
|
+
if (value == null) {
|
|
93
|
+
return value;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'type': value['type'],
|
|
99
|
+
'countryCode': value['countryCode'],
|
|
100
|
+
'sortCode': value['sortCode'],
|
|
101
|
+
'accountNumber': value['accountNumber'],
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -27,28 +27,10 @@ export interface UpdateBankAccountInput {
|
|
|
27
27
|
currencyCode: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @type {
|
|
31
|
-
* @memberof UpdateBankAccountInput
|
|
32
|
-
*/
|
|
33
|
-
countryCode: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof UpdateBankAccountInput
|
|
38
|
-
*/
|
|
39
|
-
bic: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof UpdateBankAccountInput
|
|
44
|
-
*/
|
|
45
|
-
iban?: string | null;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string}
|
|
30
|
+
* @type {object}
|
|
49
31
|
* @memberof UpdateBankAccountInput
|
|
50
32
|
*/
|
|
51
|
-
|
|
33
|
+
details: object;
|
|
52
34
|
}
|
|
53
35
|
|
|
54
36
|
/**
|
|
@@ -56,8 +38,7 @@ export interface UpdateBankAccountInput {
|
|
|
56
38
|
*/
|
|
57
39
|
export function instanceOfUpdateBankAccountInput(value: object): value is UpdateBankAccountInput {
|
|
58
40
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
59
|
-
if (!('
|
|
60
|
-
if (!('bic' in value) || value['bic'] === undefined) return false;
|
|
41
|
+
if (!('details' in value) || value['details'] === undefined) return false;
|
|
61
42
|
return true;
|
|
62
43
|
}
|
|
63
44
|
|
|
@@ -72,10 +53,7 @@ export function UpdateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
72
53
|
return {
|
|
73
54
|
|
|
74
55
|
'currencyCode': json['currencyCode'],
|
|
75
|
-
'
|
|
76
|
-
'bic': json['bic'],
|
|
77
|
-
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
78
|
-
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
56
|
+
'details': json['details'],
|
|
79
57
|
};
|
|
80
58
|
}
|
|
81
59
|
|
|
@@ -91,10 +69,7 @@ export function UpdateBankAccountInputToJSONTyped(value?: UpdateBankAccountInput
|
|
|
91
69
|
return {
|
|
92
70
|
|
|
93
71
|
'currencyCode': value['currencyCode'],
|
|
94
|
-
'
|
|
95
|
-
'bic': value['bic'],
|
|
96
|
-
'iban': value['iban'],
|
|
97
|
-
'bban': value['bban'],
|
|
72
|
+
'details': value['details'],
|
|
98
73
|
};
|
|
99
74
|
}
|
|
100
75
|
|
package/src/models/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AccountBankAccountDto';
|
|
4
|
+
export * from './AccountBankAccountDtoDetails';
|
|
4
5
|
export * from './AccountDto';
|
|
5
6
|
export * from './AccountMetricsDto';
|
|
6
7
|
export * from './AccountNotificationDto';
|
|
@@ -161,6 +162,7 @@ export * from './SellerSecurityUserDto';
|
|
|
161
162
|
export * from './SellerSubscriptionListItemDto';
|
|
162
163
|
export * from './SellerSubscriptionListItemDtoDomainInformation';
|
|
163
164
|
export * from './SeoMetricsDto';
|
|
165
|
+
export * from './SepaBankAccountDetails';
|
|
164
166
|
export * from './SetDomainTransferConfirmationInput';
|
|
165
167
|
export * from './SetNewPasswordInput';
|
|
166
168
|
export * from './SetPayoutProviderInput';
|
|
@@ -185,6 +187,7 @@ export * from './TaskListDomainDto';
|
|
|
185
187
|
export * from './TaskListDomainTransferDto';
|
|
186
188
|
export * from './TaskListLeadDto';
|
|
187
189
|
export * from './ThrottlerException';
|
|
190
|
+
export * from './UkBankAccountDetails';
|
|
188
191
|
export * from './UpdateAccountBillingInformationInput';
|
|
189
192
|
export * from './UpdateBankAccountInput';
|
|
190
193
|
export * from './UpdateDomainInput';
|