@randock/nameshift-api-client 0.0.209 → 0.0.211
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 +7 -2
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +3 -3
- package/dist/apis/AccountsApi.js +1 -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/LandingPageInput.d.ts +6 -0
- package/dist/models/LandingPageInput.js +2 -0
- package/dist/models/LandingPageSettingsDto.d.ts +6 -0
- package/dist/models/LandingPageSettingsDto.js +4 -0
- package/dist/models/UpdateBankAccountInput.d.ts +56 -0
- package/dist/models/UpdateBankAccountInput.js +63 -0
- package/dist/models/index.d.ts +6 -2
- package/dist/models/index.js +6 -2
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +6 -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/LandingPageInput.ts +8 -0
- package/src/models/LandingPageSettingsDto.ts +9 -0
- package/src/models/UpdateBankAccountInput.ts +100 -0
- package/src/models/index.ts +6 -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,68 @@
|
|
|
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 AccountBankAccountDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountBankAccountDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountBankAccountDto
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof AccountBankAccountDto
|
|
28
|
+
*/
|
|
29
|
+
primary: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountBankAccountDto
|
|
34
|
+
*/
|
|
35
|
+
bic: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountBankAccountDto
|
|
40
|
+
*/
|
|
41
|
+
countryCode: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AccountBankAccountDto
|
|
46
|
+
*/
|
|
47
|
+
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
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the AccountBankAccountDto interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfAccountBankAccountDto(value: object): value is AccountBankAccountDto;
|
|
65
|
+
export declare function AccountBankAccountDtoFromJSON(json: any): AccountBankAccountDto;
|
|
66
|
+
export declare function AccountBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDto;
|
|
67
|
+
export declare function AccountBankAccountDtoToJSON(json: any): AccountBankAccountDto;
|
|
68
|
+
export declare function AccountBankAccountDtoToJSONTyped(value?: AccountBankAccountDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,75 @@
|
|
|
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.instanceOfAccountBankAccountDto = instanceOfAccountBankAccountDto;
|
|
17
|
+
exports.AccountBankAccountDtoFromJSON = AccountBankAccountDtoFromJSON;
|
|
18
|
+
exports.AccountBankAccountDtoFromJSONTyped = AccountBankAccountDtoFromJSONTyped;
|
|
19
|
+
exports.AccountBankAccountDtoToJSON = AccountBankAccountDtoToJSON;
|
|
20
|
+
exports.AccountBankAccountDtoToJSONTyped = AccountBankAccountDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountBankAccountDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountBankAccountDto(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('primary' in value) || value['primary'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('bic' in value) || value['bic'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
34
|
+
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
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AccountBankAccountDtoFromJSON(json) {
|
|
42
|
+
return AccountBankAccountDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccountBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'primary': json['primary'],
|
|
51
|
+
'bic': json['bic'],
|
|
52
|
+
'countryCode': json['countryCode'],
|
|
53
|
+
'currencyCode': json['currencyCode'],
|
|
54
|
+
'iban': json['iban'],
|
|
55
|
+
'bban': json['bban'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function AccountBankAccountDtoToJSON(json) {
|
|
59
|
+
return AccountBankAccountDtoToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function AccountBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
62
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': value['id'],
|
|
68
|
+
'primary': value['primary'],
|
|
69
|
+
'bic': value['bic'],
|
|
70
|
+
'countryCode': value['countryCode'],
|
|
71
|
+
'currencyCode': value['currencyCode'],
|
|
72
|
+
'iban': value['iban'],
|
|
73
|
+
'bban': value['bban'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { AccountPayoutDto } from './AccountPayoutDto';
|
|
13
|
+
import type { AccountOnboardingDto } from './AccountOnboardingDto';
|
|
13
14
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
14
15
|
import type { BillingInformationDto } from './BillingInformationDto';
|
|
15
16
|
/**
|
|
@@ -44,10 +45,16 @@ export interface AccountDto {
|
|
|
44
45
|
metrics: AccountMetricsDto;
|
|
45
46
|
/**
|
|
46
47
|
*
|
|
47
|
-
* @type {
|
|
48
|
+
* @type {AccountOnboardingDto}
|
|
48
49
|
* @memberof AccountDto
|
|
49
50
|
*/
|
|
50
|
-
|
|
51
|
+
onboarding: AccountOnboardingDto | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {AccountPayoutDto}
|
|
55
|
+
* @memberof AccountDto
|
|
56
|
+
*/
|
|
57
|
+
payout: AccountPayoutDto;
|
|
51
58
|
/**
|
|
52
59
|
*
|
|
53
60
|
* @type {BillingInformationDto}
|
|
@@ -18,7 +18,8 @@ exports.AccountDtoFromJSON = AccountDtoFromJSON;
|
|
|
18
18
|
exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
19
19
|
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
20
20
|
exports.AccountDtoToJSONTyped = AccountDtoToJSONTyped;
|
|
21
|
-
var
|
|
21
|
+
var AccountPayoutDto_1 = require("./AccountPayoutDto");
|
|
22
|
+
var AccountOnboardingDto_1 = require("./AccountOnboardingDto");
|
|
22
23
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
23
24
|
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
24
25
|
/**
|
|
@@ -33,7 +34,9 @@ function instanceOfAccountDto(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('metrics' in value) || value['metrics'] === undefined)
|
|
35
36
|
return false;
|
|
36
|
-
if (!('
|
|
37
|
+
if (!('onboarding' in value) || value['onboarding'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('payout' in value) || value['payout'] === undefined)
|
|
37
40
|
return false;
|
|
38
41
|
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
39
42
|
return false;
|
|
@@ -51,7 +54,8 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
51
54
|
'identifier': json['identifier'],
|
|
52
55
|
'name': json['name'],
|
|
53
56
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
54
|
-
'
|
|
57
|
+
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoFromJSON)(json['onboarding']),
|
|
58
|
+
'payout': (0, AccountPayoutDto_1.AccountPayoutDtoFromJSON)(json['payout']),
|
|
55
59
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
56
60
|
};
|
|
57
61
|
}
|
|
@@ -68,7 +72,8 @@ function AccountDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
68
72
|
'identifier': value['identifier'],
|
|
69
73
|
'name': value['name'],
|
|
70
74
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
71
|
-
'
|
|
75
|
+
'onboarding': (0, AccountOnboardingDto_1.AccountOnboardingDtoToJSON)(value['onboarding']),
|
|
76
|
+
'payout': (0, AccountPayoutDto_1.AccountPayoutDtoToJSON)(value['payout']),
|
|
72
77
|
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
73
78
|
};
|
|
74
79
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 AccountOnboardingDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountOnboardingDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountOnboardingDto
|
|
22
|
+
*/
|
|
23
|
+
accountId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountOnboardingDto
|
|
28
|
+
*/
|
|
29
|
+
status: AccountOnboardingDtoStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof AccountOnboardingDto
|
|
34
|
+
*/
|
|
35
|
+
finished: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AccountOnboardingDto
|
|
40
|
+
*/
|
|
41
|
+
provider: AccountOnboardingDtoProviderEnum;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* @export
|
|
45
|
+
*/
|
|
46
|
+
export declare const AccountOnboardingDtoStatusEnum: {
|
|
47
|
+
readonly PENDING: "pending";
|
|
48
|
+
readonly ACTIVE: "active";
|
|
49
|
+
};
|
|
50
|
+
export type AccountOnboardingDtoStatusEnum = typeof AccountOnboardingDtoStatusEnum[keyof typeof AccountOnboardingDtoStatusEnum];
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const AccountOnboardingDtoProviderEnum: {
|
|
55
|
+
readonly STRIPE: "stripe";
|
|
56
|
+
};
|
|
57
|
+
export type AccountOnboardingDtoProviderEnum = typeof AccountOnboardingDtoProviderEnum[keyof typeof AccountOnboardingDtoProviderEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the AccountOnboardingDto interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfAccountOnboardingDto(value: object): value is AccountOnboardingDto;
|
|
62
|
+
export declare function AccountOnboardingDtoFromJSON(json: any): AccountOnboardingDto;
|
|
63
|
+
export declare function AccountOnboardingDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountOnboardingDto;
|
|
64
|
+
export declare function AccountOnboardingDtoToJSON(json: any): AccountOnboardingDto;
|
|
65
|
+
export declare function AccountOnboardingDtoToJSONTyped(value?: AccountOnboardingDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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.AccountOnboardingDtoProviderEnum = exports.AccountOnboardingDtoStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountOnboardingDto = instanceOfAccountOnboardingDto;
|
|
18
|
+
exports.AccountOnboardingDtoFromJSON = AccountOnboardingDtoFromJSON;
|
|
19
|
+
exports.AccountOnboardingDtoFromJSONTyped = AccountOnboardingDtoFromJSONTyped;
|
|
20
|
+
exports.AccountOnboardingDtoToJSON = AccountOnboardingDtoToJSON;
|
|
21
|
+
exports.AccountOnboardingDtoToJSONTyped = AccountOnboardingDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountOnboardingDtoStatusEnum = {
|
|
26
|
+
PENDING: 'pending',
|
|
27
|
+
ACTIVE: 'active'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
exports.AccountOnboardingDtoProviderEnum = {
|
|
33
|
+
STRIPE: 'stripe'
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the AccountOnboardingDto interface.
|
|
37
|
+
*/
|
|
38
|
+
function instanceOfAccountOnboardingDto(value) {
|
|
39
|
+
if (!('accountId' in value) || value['accountId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('finished' in value) || value['finished'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
function AccountOnboardingDtoFromJSON(json) {
|
|
50
|
+
return AccountOnboardingDtoFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
function AccountOnboardingDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'accountId': json['accountId'],
|
|
58
|
+
'status': json['status'],
|
|
59
|
+
'finished': json['finished'],
|
|
60
|
+
'provider': json['provider'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function AccountOnboardingDtoToJSON(json) {
|
|
64
|
+
return AccountOnboardingDtoToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function AccountOnboardingDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
67
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
'accountId': value['accountId'],
|
|
73
|
+
'status': value['status'],
|
|
74
|
+
'finished': value['finished'],
|
|
75
|
+
'provider': value['provider'],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 AccountOnboardingSessionDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountOnboardingSessionDto {
|
|
18
|
+
/**
|
|
19
|
+
* Account payment provider session token
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountOnboardingSessionDto
|
|
22
|
+
*/
|
|
23
|
+
accessToken: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AccountOnboardingSessionDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAccountOnboardingSessionDto(value: object): value is AccountOnboardingSessionDto;
|
|
29
|
+
export declare function AccountOnboardingSessionDtoFromJSON(json: any): AccountOnboardingSessionDto;
|
|
30
|
+
export declare function AccountOnboardingSessionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountOnboardingSessionDto;
|
|
31
|
+
export declare function AccountOnboardingSessionDtoToJSON(json: any): AccountOnboardingSessionDto;
|
|
32
|
+
export declare function AccountOnboardingSessionDtoToJSONTyped(value?: AccountOnboardingSessionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfAccountOnboardingSessionDto = instanceOfAccountOnboardingSessionDto;
|
|
17
|
+
exports.AccountOnboardingSessionDtoFromJSON = AccountOnboardingSessionDtoFromJSON;
|
|
18
|
+
exports.AccountOnboardingSessionDtoFromJSONTyped = AccountOnboardingSessionDtoFromJSONTyped;
|
|
19
|
+
exports.AccountOnboardingSessionDtoToJSON = AccountOnboardingSessionDtoToJSON;
|
|
20
|
+
exports.AccountOnboardingSessionDtoToJSONTyped = AccountOnboardingSessionDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountOnboardingSessionDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountOnboardingSessionDto(value) {
|
|
25
|
+
if (!('accessToken' in value) || value['accessToken'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AccountOnboardingSessionDtoFromJSON(json) {
|
|
30
|
+
return AccountOnboardingSessionDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AccountOnboardingSessionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'accessToken': json['accessToken'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AccountOnboardingSessionDtoToJSON(json) {
|
|
41
|
+
return AccountOnboardingSessionDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AccountOnboardingSessionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'accessToken': value['accessToken'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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 AccountPayoutDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountPayoutDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AccountPayoutDto
|
|
22
|
+
*/
|
|
23
|
+
automatic: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountPayoutDto
|
|
28
|
+
*/
|
|
29
|
+
provider: AccountPayoutDtoProviderEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AccountPayoutDtoProviderEnum: {
|
|
35
|
+
readonly STRIPE: "stripe";
|
|
36
|
+
readonly BANK_ACCOUNT: "bank_account";
|
|
37
|
+
};
|
|
38
|
+
export type AccountPayoutDtoProviderEnum = typeof AccountPayoutDtoProviderEnum[keyof typeof AccountPayoutDtoProviderEnum];
|
|
39
|
+
/**
|
|
40
|
+
* Check if a given object implements the AccountPayoutDto interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfAccountPayoutDto(value: object): value is AccountPayoutDto;
|
|
43
|
+
export declare function AccountPayoutDtoFromJSON(json: any): AccountPayoutDto;
|
|
44
|
+
export declare function AccountPayoutDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPayoutDto;
|
|
45
|
+
export declare function AccountPayoutDtoToJSON(json: any): AccountPayoutDto;
|
|
46
|
+
export declare function AccountPayoutDtoToJSONTyped(value?: AccountPayoutDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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.AccountPayoutDtoProviderEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountPayoutDto = instanceOfAccountPayoutDto;
|
|
18
|
+
exports.AccountPayoutDtoFromJSON = AccountPayoutDtoFromJSON;
|
|
19
|
+
exports.AccountPayoutDtoFromJSONTyped = AccountPayoutDtoFromJSONTyped;
|
|
20
|
+
exports.AccountPayoutDtoToJSON = AccountPayoutDtoToJSON;
|
|
21
|
+
exports.AccountPayoutDtoToJSONTyped = AccountPayoutDtoToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AccountPayoutDtoProviderEnum = {
|
|
26
|
+
STRIPE: 'stripe',
|
|
27
|
+
BANK_ACCOUNT: 'bank_account'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the AccountPayoutDto interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfAccountPayoutDto(value) {
|
|
33
|
+
if (!('automatic' in value) || value['automatic'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('provider' in value) || value['provider'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AccountPayoutDtoFromJSON(json) {
|
|
40
|
+
return AccountPayoutDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AccountPayoutDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'automatic': json['automatic'],
|
|
48
|
+
'provider': json['provider'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AccountPayoutDtoToJSON(json) {
|
|
52
|
+
return AccountPayoutDtoToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AccountPayoutDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
55
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'automatic': value['automatic'],
|
|
61
|
+
'provider': value['provider'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -37,12 +37,6 @@ export interface AccountSettingsDto {
|
|
|
37
37
|
* @memberof AccountSettingsDto
|
|
38
38
|
*/
|
|
39
39
|
defaultCurrencyCode: string;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {boolean}
|
|
43
|
-
* @memberof AccountSettingsDto
|
|
44
|
-
*/
|
|
45
|
-
automaticPayouts: boolean;
|
|
46
40
|
/**
|
|
47
41
|
*
|
|
48
42
|
* @type {AccountSettingsLeaseToOwnConfigurationDto}
|
|
@@ -32,8 +32,6 @@ function instanceOfAccountSettingsDto(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
-
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
if (!('landing' in value) || value['landing'] === undefined)
|
|
@@ -57,7 +55,6 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
55
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
58
56
|
'minBuyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minBuyNow']),
|
|
59
57
|
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
60
|
-
'automaticPayouts': json['automaticPayouts'],
|
|
61
58
|
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
|
|
62
59
|
'landing': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoFromJSON)(json['landing']),
|
|
63
60
|
'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoFromJSON)(json['sidn']),
|
|
@@ -77,7 +74,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
77
74
|
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
78
75
|
'minBuyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['minBuyNow']),
|
|
79
76
|
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
80
|
-
'automaticPayouts': value['automaticPayouts'],
|
|
81
77
|
'leaseToOwn': (0, AccountSettingsLeaseToOwnConfigurationDto_1.AccountSettingsLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
|
|
82
78
|
'landing': (0, LandingPageSettingsDto_1.LandingPageSettingsDtoToJSON)(value['landing']),
|
|
83
79
|
'sidn': (0, AccountSettingsSidnDto_1.AccountSettingsSidnDtoToJSON)(value['sidn']),
|
|
@@ -0,0 +1,56 @@
|
|
|
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 CreateBankAccountInput
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateBankAccountInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateBankAccountInput
|
|
22
|
+
*/
|
|
23
|
+
currencyCode: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
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}
|
|
45
|
+
* @memberof CreateBankAccountInput
|
|
46
|
+
*/
|
|
47
|
+
bban?: string | null;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the CreateBankAccountInput interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfCreateBankAccountInput(value: object): value is CreateBankAccountInput;
|
|
53
|
+
export declare function CreateBankAccountInputFromJSON(json: any): CreateBankAccountInput;
|
|
54
|
+
export declare function CreateBankAccountInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBankAccountInput;
|
|
55
|
+
export declare function CreateBankAccountInputToJSON(json: any): CreateBankAccountInput;
|
|
56
|
+
export declare function CreateBankAccountInputToJSONTyped(value?: CreateBankAccountInput | null, ignoreDiscriminator?: boolean): any;
|