@randock/nameshift-api-client 0.0.210 → 0.0.212
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 +8 -2
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +15 -3
- package/dist/apis/AccountsApi.js +57 -1
- package/dist/apis/AdminApi.d.ts +12 -1
- package/dist/apis/AdminApi.js +53 -0
- package/dist/apis/BankAccountsApi.d.ts +78 -0
- package/dist/apis/BankAccountsApi.js +356 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountBankAccountDto.d.ts +68 -0
- package/dist/models/AccountBankAccountDto.js +75 -0
- package/dist/models/AccountDto.d.ts +10 -3
- package/dist/models/AccountDto.js +9 -4
- package/dist/models/AccountOnboardingDto.d.ts +65 -0
- package/dist/models/AccountOnboardingDto.js +77 -0
- package/dist/models/AccountOnboardingSessionDto.d.ts +32 -0
- package/dist/models/AccountOnboardingSessionDto.js +51 -0
- package/dist/models/AccountPayoutDto.d.ts +46 -0
- package/dist/models/AccountPayoutDto.js +63 -0
- package/dist/models/AccountSettingsDto.d.ts +0 -6
- package/dist/models/AccountSettingsDto.js +0 -4
- package/dist/models/CreateBankAccountInput.d.ts +56 -0
- package/dist/models/CreateBankAccountInput.js +63 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +11 -3
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +11 -5
- package/dist/models/SetPayoutProviderInput.d.ts +40 -0
- package/dist/models/SetPayoutProviderInput.js +59 -0
- package/dist/models/UpdateBankAccountInput.d.ts +56 -0
- package/dist/models/UpdateBankAccountInput.js +63 -0
- package/dist/models/index.d.ts +7 -2
- package/dist/models/index.js +7 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +64 -6
- package/src/apis/AdminApi.ts +48 -0
- package/src/apis/BankAccountsApi.ts +309 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountBankAccountDto.ts +120 -0
- package/src/models/AccountDto.ts +27 -11
- package/src/models/AccountOnboardingDto.ts +112 -0
- package/src/models/AccountOnboardingSessionDto.ts +66 -0
- package/src/models/AccountPayoutDto.ts +86 -0
- package/src/models/AccountSettingsDto.ts +0 -9
- package/src/models/CreateBankAccountInput.ts +100 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +29 -12
- package/src/models/SetPayoutProviderInput.ts +77 -0
- package/src/models/UpdateBankAccountInput.ts +100 -0
- package/src/models/index.ts +7 -2
- package/dist/models/AccountPaymentProviderSessionDto.d.ts +0 -32
- package/dist/models/AccountPaymentProviderSessionDto.js +0 -51
- package/dist/models/PaymentProviderDto.d.ts +0 -52
- package/dist/models/PaymentProviderDto.js +0 -67
- package/src/models/AccountPaymentProviderSessionDto.ts +0 -66
- package/src/models/PaymentProviderDto.ts +0 -95
|
@@ -0,0 +1,120 @@
|
|
|
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 AccountBankAccountDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountBankAccountDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountBankAccountDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AccountBankAccountDto
|
|
32
|
+
*/
|
|
33
|
+
primary: boolean;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AccountBankAccountDto
|
|
38
|
+
*/
|
|
39
|
+
bic: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AccountBankAccountDto
|
|
44
|
+
*/
|
|
45
|
+
countryCode: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AccountBankAccountDto
|
|
50
|
+
*/
|
|
51
|
+
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
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the AccountBankAccountDto interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfAccountBankAccountDto(value: object): value is AccountBankAccountDto {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
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
|
+
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
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AccountBankAccountDtoFromJSON(json: any): AccountBankAccountDto {
|
|
81
|
+
return AccountBankAccountDtoFromJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDto {
|
|
85
|
+
if (json == null) {
|
|
86
|
+
return json;
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
|
|
90
|
+
'id': json['id'],
|
|
91
|
+
'primary': json['primary'],
|
|
92
|
+
'bic': json['bic'],
|
|
93
|
+
'countryCode': json['countryCode'],
|
|
94
|
+
'currencyCode': json['currencyCode'],
|
|
95
|
+
'iban': json['iban'],
|
|
96
|
+
'bban': json['bban'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function AccountBankAccountDtoToJSON(json: any): AccountBankAccountDto {
|
|
101
|
+
return AccountBankAccountDtoToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value['id'],
|
|
112
|
+
'primary': value['primary'],
|
|
113
|
+
'bic': value['bic'],
|
|
114
|
+
'countryCode': value['countryCode'],
|
|
115
|
+
'currencyCode': value['currencyCode'],
|
|
116
|
+
'iban': value['iban'],
|
|
117
|
+
'bban': value['bban'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -13,13 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AccountPayoutDtoFromJSON,
|
|
19
|
+
AccountPayoutDtoFromJSONTyped,
|
|
20
|
+
AccountPayoutDtoToJSON,
|
|
21
|
+
AccountPayoutDtoToJSONTyped,
|
|
22
|
+
} from './AccountPayoutDto';
|
|
23
|
+
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
24
|
+
import {
|
|
25
|
+
AccountOnboardingDtoFromJSON,
|
|
26
|
+
AccountOnboardingDtoFromJSONTyped,
|
|
27
|
+
AccountOnboardingDtoToJSON,
|
|
28
|
+
AccountOnboardingDtoToJSONTyped,
|
|
29
|
+
} from './AccountOnboardingDto';
|
|
23
30
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
24
31
|
import {
|
|
25
32
|
AccountMetricsDtoFromJSON,
|
|
@@ -67,10 +74,16 @@ export interface AccountDto {
|
|
|
67
74
|
metrics: AccountMetricsDto;
|
|
68
75
|
/**
|
|
69
76
|
*
|
|
70
|
-
* @type {
|
|
77
|
+
* @type {AccountOnboardingDto}
|
|
78
|
+
* @memberof AccountDto
|
|
79
|
+
*/
|
|
80
|
+
onboarding: AccountOnboardingDto | null;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {AccountPayoutDto}
|
|
71
84
|
* @memberof AccountDto
|
|
72
85
|
*/
|
|
73
|
-
|
|
86
|
+
payout: AccountPayoutDto;
|
|
74
87
|
/**
|
|
75
88
|
*
|
|
76
89
|
* @type {BillingInformationDto}
|
|
@@ -87,7 +100,8 @@ export function instanceOfAccountDto(value: object): value is AccountDto {
|
|
|
87
100
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
88
101
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
89
102
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
90
|
-
if (!('
|
|
103
|
+
if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
|
|
104
|
+
if (!('payout' in value) || value['payout'] === undefined) return false;
|
|
91
105
|
if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
|
|
92
106
|
return true;
|
|
93
107
|
}
|
|
@@ -106,7 +120,8 @@ export function AccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
106
120
|
'identifier': json['identifier'],
|
|
107
121
|
'name': json['name'],
|
|
108
122
|
'metrics': AccountMetricsDtoFromJSON(json['metrics']),
|
|
109
|
-
'
|
|
123
|
+
'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
|
|
124
|
+
'payout': AccountPayoutDtoFromJSON(json['payout']),
|
|
110
125
|
'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
|
|
111
126
|
};
|
|
112
127
|
}
|
|
@@ -126,7 +141,8 @@ export function AccountDtoToJSONTyped(value?: AccountDto | null, ignoreDiscrimin
|
|
|
126
141
|
'identifier': value['identifier'],
|
|
127
142
|
'name': value['name'],
|
|
128
143
|
'metrics': AccountMetricsDtoToJSON(value['metrics']),
|
|
129
|
-
'
|
|
144
|
+
'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
|
|
145
|
+
'payout': AccountPayoutDtoToJSON(value['payout']),
|
|
130
146
|
'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
|
|
131
147
|
};
|
|
132
148
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 AccountOnboardingDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountOnboardingDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountOnboardingDto
|
|
26
|
+
*/
|
|
27
|
+
accountId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountOnboardingDto
|
|
32
|
+
*/
|
|
33
|
+
status: AccountOnboardingDtoStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AccountOnboardingDto
|
|
38
|
+
*/
|
|
39
|
+
finished: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AccountOnboardingDto
|
|
44
|
+
*/
|
|
45
|
+
provider: AccountOnboardingDtoProviderEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export const AccountOnboardingDtoStatusEnum = {
|
|
53
|
+
PENDING: 'pending',
|
|
54
|
+
ACTIVE: 'active'
|
|
55
|
+
} as const;
|
|
56
|
+
export type AccountOnboardingDtoStatusEnum = typeof AccountOnboardingDtoStatusEnum[keyof typeof AccountOnboardingDtoStatusEnum];
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const AccountOnboardingDtoProviderEnum = {
|
|
62
|
+
STRIPE: 'stripe'
|
|
63
|
+
} as const;
|
|
64
|
+
export type AccountOnboardingDtoProviderEnum = typeof AccountOnboardingDtoProviderEnum[keyof typeof AccountOnboardingDtoProviderEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AccountOnboardingDto interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfAccountOnboardingDto(value: object): value is AccountOnboardingDto {
|
|
71
|
+
if (!('accountId' in value) || value['accountId'] === undefined) return false;
|
|
72
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
73
|
+
if (!('finished' in value) || value['finished'] === undefined) return false;
|
|
74
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
75
|
+
return true;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AccountOnboardingDtoFromJSON(json: any): AccountOnboardingDto {
|
|
79
|
+
return AccountOnboardingDtoFromJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AccountOnboardingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountOnboardingDto {
|
|
83
|
+
if (json == null) {
|
|
84
|
+
return json;
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'accountId': json['accountId'],
|
|
89
|
+
'status': json['status'],
|
|
90
|
+
'finished': json['finished'],
|
|
91
|
+
'provider': json['provider'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function AccountOnboardingDtoToJSON(json: any): AccountOnboardingDto {
|
|
96
|
+
return AccountOnboardingDtoToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function AccountOnboardingDtoToJSONTyped(value?: AccountOnboardingDto | null, ignoreDiscriminator: boolean = false): any {
|
|
100
|
+
if (value == null) {
|
|
101
|
+
return value;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
return {
|
|
105
|
+
|
|
106
|
+
'accountId': value['accountId'],
|
|
107
|
+
'status': value['status'],
|
|
108
|
+
'finished': value['finished'],
|
|
109
|
+
'provider': value['provider'],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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 AccountOnboardingSessionDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountOnboardingSessionDto {
|
|
22
|
+
/**
|
|
23
|
+
* Account payment provider session token
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountOnboardingSessionDto
|
|
26
|
+
*/
|
|
27
|
+
accessToken: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AccountOnboardingSessionDto interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfAccountOnboardingSessionDto(value: object): value is AccountOnboardingSessionDto {
|
|
34
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AccountOnboardingSessionDtoFromJSON(json: any): AccountOnboardingSessionDto {
|
|
39
|
+
return AccountOnboardingSessionDtoFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AccountOnboardingSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountOnboardingSessionDto {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'accessToken': json['accessToken'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AccountOnboardingSessionDtoToJSON(json: any): AccountOnboardingSessionDto {
|
|
53
|
+
return AccountOnboardingSessionDtoToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AccountOnboardingSessionDtoToJSONTyped(value?: AccountOnboardingSessionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'accessToken': value['accessToken'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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 AccountPayoutDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountPayoutDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AccountPayoutDto
|
|
26
|
+
*/
|
|
27
|
+
automatic: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountPayoutDto
|
|
32
|
+
*/
|
|
33
|
+
provider: AccountPayoutDtoProviderEnum;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const AccountPayoutDtoProviderEnum = {
|
|
41
|
+
STRIPE: 'stripe',
|
|
42
|
+
BANK_ACCOUNT: 'bank_account'
|
|
43
|
+
} as const;
|
|
44
|
+
export type AccountPayoutDtoProviderEnum = typeof AccountPayoutDtoProviderEnum[keyof typeof AccountPayoutDtoProviderEnum];
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AccountPayoutDto interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfAccountPayoutDto(value: object): value is AccountPayoutDto {
|
|
51
|
+
if (!('automatic' in value) || value['automatic'] === undefined) return false;
|
|
52
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AccountPayoutDtoFromJSON(json: any): AccountPayoutDto {
|
|
57
|
+
return AccountPayoutDtoFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountPayoutDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPayoutDto {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'automatic': json['automatic'],
|
|
67
|
+
'provider': json['provider'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function AccountPayoutDtoToJSON(json: any): AccountPayoutDto {
|
|
72
|
+
return AccountPayoutDtoToJSONTyped(json, false);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function AccountPayoutDtoToJSONTyped(value?: AccountPayoutDto | null, ignoreDiscriminator: boolean = false): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return {
|
|
81
|
+
|
|
82
|
+
'automatic': value['automatic'],
|
|
83
|
+
'provider': value['provider'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -66,12 +66,6 @@ export interface AccountSettingsDto {
|
|
|
66
66
|
* @memberof AccountSettingsDto
|
|
67
67
|
*/
|
|
68
68
|
defaultCurrencyCode: string;
|
|
69
|
-
/**
|
|
70
|
-
*
|
|
71
|
-
* @type {boolean}
|
|
72
|
-
* @memberof AccountSettingsDto
|
|
73
|
-
*/
|
|
74
|
-
automaticPayouts: boolean;
|
|
75
69
|
/**
|
|
76
70
|
*
|
|
77
71
|
* @type {AccountSettingsLeaseToOwnConfigurationDto}
|
|
@@ -111,7 +105,6 @@ export function instanceOfAccountSettingsDto(value: object): value is AccountSet
|
|
|
111
105
|
if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined) return false;
|
|
112
106
|
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined) return false;
|
|
113
107
|
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined) return false;
|
|
114
|
-
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined) return false;
|
|
115
108
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
116
109
|
if (!('landing' in value) || value['landing'] === undefined) return false;
|
|
117
110
|
if (!('sidn' in value) || value['sidn'] === undefined) return false;
|
|
@@ -133,7 +126,6 @@ export function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
133
126
|
'defaultStartingOffer': MoneyDtoFromJSON(json['defaultStartingOffer']),
|
|
134
127
|
'minBuyNow': MoneyDtoFromJSON(json['minBuyNow']),
|
|
135
128
|
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
136
|
-
'automaticPayouts': json['automaticPayouts'],
|
|
137
129
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
138
130
|
'landing': LandingPageSettingsDtoFromJSON(json['landing']),
|
|
139
131
|
'sidn': AccountSettingsSidnDtoFromJSON(json['sidn']),
|
|
@@ -156,7 +148,6 @@ export function AccountSettingsDtoToJSONTyped(value?: AccountSettingsDto | null,
|
|
|
156
148
|
'defaultStartingOffer': MoneyDtoToJSON(value['defaultStartingOffer']),
|
|
157
149
|
'minBuyNow': MoneyDtoToJSON(value['minBuyNow']),
|
|
158
150
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
159
|
-
'automaticPayouts': value['automaticPayouts'],
|
|
160
151
|
'leaseToOwn': AccountSettingsLeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
161
152
|
'landing': LandingPageSettingsDtoToJSON(value['landing']),
|
|
162
153
|
'sidn': AccountSettingsSidnDtoToJSON(value['sidn']),
|
|
@@ -0,0 +1,100 @@
|
|
|
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 CreateBankAccountInput
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateBankAccountInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreateBankAccountInput
|
|
26
|
+
*/
|
|
27
|
+
currencyCode: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
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}
|
|
49
|
+
* @memberof CreateBankAccountInput
|
|
50
|
+
*/
|
|
51
|
+
bban?: string | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the CreateBankAccountInput interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfCreateBankAccountInput(value: object): value is CreateBankAccountInput {
|
|
58
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
59
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
60
|
+
if (!('bic' in value) || value['bic'] === undefined) return false;
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function CreateBankAccountInputFromJSON(json: any): CreateBankAccountInput {
|
|
65
|
+
return CreateBankAccountInputFromJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function CreateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBankAccountInput {
|
|
69
|
+
if (json == null) {
|
|
70
|
+
return json;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'currencyCode': json['currencyCode'],
|
|
75
|
+
'countryCode': json['countryCode'],
|
|
76
|
+
'bic': json['bic'],
|
|
77
|
+
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
78
|
+
'bban': json['bban'] == null ? undefined : json['bban'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function CreateBankAccountInputToJSON(json: any): CreateBankAccountInput {
|
|
83
|
+
return CreateBankAccountInputToJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function CreateBankAccountInputToJSONTyped(value?: CreateBankAccountInput | null, ignoreDiscriminator: boolean = false): any {
|
|
87
|
+
if (value == null) {
|
|
88
|
+
return value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return {
|
|
92
|
+
|
|
93
|
+
'currencyCode': value['currencyCode'],
|
|
94
|
+
'countryCode': value['countryCode'],
|
|
95
|
+
'bic': value['bic'],
|
|
96
|
+
'iban': value['iban'],
|
|
97
|
+
'bban': value['bban'],
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -13,13 +13,20 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
-
import type {
|
|
16
|
+
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from './
|
|
18
|
+
AccountPayoutDtoFromJSON,
|
|
19
|
+
AccountPayoutDtoFromJSONTyped,
|
|
20
|
+
AccountPayoutDtoToJSON,
|
|
21
|
+
AccountPayoutDtoToJSONTyped,
|
|
22
|
+
} from './AccountPayoutDto';
|
|
23
|
+
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
24
|
+
import {
|
|
25
|
+
AccountOnboardingDtoFromJSON,
|
|
26
|
+
AccountOnboardingDtoFromJSONTyped,
|
|
27
|
+
AccountOnboardingDtoToJSON,
|
|
28
|
+
AccountOnboardingDtoToJSONTyped,
|
|
29
|
+
} from './AccountOnboardingDto';
|
|
23
30
|
import type { WithSettingsInner } from './WithSettingsInner';
|
|
24
31
|
import {
|
|
25
32
|
WithSettingsInnerFromJSON,
|
|
@@ -81,10 +88,16 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
81
88
|
metrics: AccountMetricsDto;
|
|
82
89
|
/**
|
|
83
90
|
*
|
|
84
|
-
* @type {
|
|
91
|
+
* @type {AccountOnboardingDto}
|
|
92
|
+
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
93
|
+
*/
|
|
94
|
+
onboarding: AccountOnboardingDto | null;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {AccountPayoutDto}
|
|
85
98
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
86
99
|
*/
|
|
87
|
-
|
|
100
|
+
payout: AccountPayoutDto;
|
|
88
101
|
/**
|
|
89
102
|
*
|
|
90
103
|
* @type {BillingInformationDto}
|
|
@@ -117,7 +130,8 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
117
130
|
*/
|
|
118
131
|
export const IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = {
|
|
119
132
|
LEASE_TO_OWN: 'LEASE_TO_OWN',
|
|
120
|
-
SEO_METRICS: 'SEO_METRICS'
|
|
133
|
+
SEO_METRICS: 'SEO_METRICS',
|
|
134
|
+
BANK_PAYOUTS: 'BANK_PAYOUTS'
|
|
121
135
|
} as const;
|
|
122
136
|
export type IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum = typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum[keyof typeof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoEnabledFeaturesEnum];
|
|
123
137
|
|
|
@@ -130,7 +144,8 @@ export function instanceOfIntersectionAccountDtoWithSettingsDtoWithNotifications
|
|
|
130
144
|
if (!('identifier' in value) || value['identifier'] === undefined) return false;
|
|
131
145
|
if (!('name' in value) || value['name'] === undefined) return false;
|
|
132
146
|
if (!('metrics' in value) || value['metrics'] === undefined) return false;
|
|
133
|
-
if (!('
|
|
147
|
+
if (!('onboarding' in value) || value['onboarding'] === undefined) return false;
|
|
148
|
+
if (!('payout' in value) || value['payout'] === undefined) return false;
|
|
134
149
|
if (!('billingInformation' in value) || value['billingInformation'] === undefined) return false;
|
|
135
150
|
if (!('settings' in value) || value['settings'] === undefined) return false;
|
|
136
151
|
if (!('notifications' in value) || value['notifications'] === undefined) return false;
|
|
@@ -152,7 +167,8 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
152
167
|
'identifier': json['identifier'],
|
|
153
168
|
'name': json['name'],
|
|
154
169
|
'metrics': AccountMetricsDtoFromJSON(json['metrics']),
|
|
155
|
-
'
|
|
170
|
+
'onboarding': AccountOnboardingDtoFromJSON(json['onboarding']),
|
|
171
|
+
'payout': AccountPayoutDtoFromJSON(json['payout']),
|
|
156
172
|
'billingInformation': BillingInformationDtoFromJSON(json['billingInformation']),
|
|
157
173
|
'settings': WithSettingsInnerFromJSON(json['settings']),
|
|
158
174
|
'notifications': ((json['notifications'] as Array<any>).map(AccountNotificationDtoFromJSON)),
|
|
@@ -175,7 +191,8 @@ export function IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFea
|
|
|
175
191
|
'identifier': value['identifier'],
|
|
176
192
|
'name': value['name'],
|
|
177
193
|
'metrics': AccountMetricsDtoToJSON(value['metrics']),
|
|
178
|
-
'
|
|
194
|
+
'onboarding': AccountOnboardingDtoToJSON(value['onboarding']),
|
|
195
|
+
'payout': AccountPayoutDtoToJSON(value['payout']),
|
|
179
196
|
'billingInformation': BillingInformationDtoToJSON(value['billingInformation']),
|
|
180
197
|
'settings': WithSettingsInnerToJSON(value['settings']),
|
|
181
198
|
'notifications': ((value['notifications'] as Array<any>).map(AccountNotificationDtoToJSON)),
|