@randock/nameshift-api-client 0.0.220 → 0.0.222
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 +10 -1
- package/README.md +3 -3
- package/dist/apis/BankAccountsApi.d.ts +11 -12
- package/dist/apis/BankAccountsApi.js +27 -30
- package/dist/apis/DefaultApi.d.ts +14 -0
- package/dist/apis/DefaultApi.js +53 -0
- package/dist/apis/DomainsApi.d.ts +12 -1
- package/dist/apis/DomainsApi.js +53 -0
- package/dist/apis/TaxPublicApi.d.ts +29 -0
- package/dist/apis/TaxPublicApi.js +126 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountBankAccountDto.d.ts +20 -5
- package/dist/models/AccountBankAccountDto.js +17 -4
- package/dist/models/AccountBankAccountDtoDetails.d.ts +7 -1
- package/dist/models/AccountBankAccountDtoDetails.js +10 -0
- package/dist/models/AccountDto.d.ts +1 -1
- package/dist/models/AccountOnboardingDto.d.ts +3 -1
- package/dist/models/AccountOnboardingDto.js +4 -2
- package/dist/models/AirwallexBankAccountDetailsDto.d.ts +64 -0
- package/dist/models/AirwallexBankAccountDetailsDto.js +67 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.d.ts +50 -0
- package/dist/models/AirwallexBankAccountDetailsDtoInstitution.js +63 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.d.ts +39 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethod.js +56 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.d.ts +38 -0
- package/dist/models/AirwallexBankAccountDetailsDtoLocalMethodCode.js +55 -0
- package/dist/models/BillingInformationDto.d.ts +1 -1
- package/dist/models/CaBankAccountDetails.d.ts +66 -0
- package/dist/models/CaBankAccountDetails.js +77 -0
- package/dist/models/DomainExchangeRateDto.d.ts +38 -0
- package/dist/models/DomainExchangeRateDto.js +55 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -1
- package/dist/models/SepaBankAccountDetails.d.ts +2 -0
- package/dist/models/SepaBankAccountDetails.js +2 -0
- package/dist/models/UkBankAccountDetails.d.ts +2 -0
- package/dist/models/UkBankAccountDetails.js +2 -0
- package/dist/models/UsBankAccountDetails.d.ts +60 -0
- package/dist/models/UsBankAccountDetails.js +73 -0
- package/dist/models/ValidateTaxNumberDto.d.ts +56 -0
- package/dist/models/ValidateTaxNumberDto.js +67 -0
- package/dist/models/ValidateTaxNumberInput.d.ts +44 -0
- package/dist/models/ValidateTaxNumberInput.js +59 -0
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/package.json +1 -1
- package/src/apis/BankAccountsApi.ts +35 -45
- package/src/apis/DefaultApi.ts +54 -0
- package/src/apis/DomainsApi.ts +48 -0
- package/src/apis/TaxPublicApi.ts +76 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountBankAccountDto.ts +29 -8
- package/src/models/AccountBankAccountDtoDetails.ts +23 -1
- package/src/models/AccountDto.ts +1 -1
- package/src/models/AccountOnboardingDto.ts +5 -3
- package/src/models/AirwallexBankAccountDetailsDto.ts +123 -0
- package/src/models/AirwallexBankAccountDetailsDtoInstitution.ts +93 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts +83 -0
- package/src/models/AirwallexBankAccountDetailsDtoLocalMethodCode.ts +75 -0
- package/src/models/BillingInformationDto.ts +1 -1
- package/src/models/CaBankAccountDetails.ts +115 -0
- package/src/models/DomainExchangeRateDto.ts +75 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +1 -1
- package/src/models/SepaBankAccountDetails.ts +2 -0
- package/src/models/UkBankAccountDetails.ts +2 -0
- package/src/models/UsBankAccountDetails.ts +106 -0
- package/src/models/ValidateTaxNumberDto.ts +102 -0
- package/src/models/ValidateTaxNumberInput.ts +84 -0
- package/src/models/index.ts +9 -1
- package/dist/models/UpdateBankAccountInput.d.ts +0 -38
- package/dist/models/UpdateBankAccountInput.js +0 -55
- package/src/models/UpdateBankAccountInput.ts +0 -75
|
@@ -12,6 +12,13 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
+
import type { CaBankAccountDetails } from './CaBankAccountDetails';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfCaBankAccountDetails,
|
|
18
|
+
CaBankAccountDetailsFromJSON,
|
|
19
|
+
CaBankAccountDetailsFromJSONTyped,
|
|
20
|
+
CaBankAccountDetailsToJSON,
|
|
21
|
+
} from './CaBankAccountDetails';
|
|
15
22
|
import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
|
|
16
23
|
import {
|
|
17
24
|
instanceOfSepaBankAccountDetails,
|
|
@@ -26,13 +33,20 @@ import {
|
|
|
26
33
|
UkBankAccountDetailsFromJSONTyped,
|
|
27
34
|
UkBankAccountDetailsToJSON,
|
|
28
35
|
} from './UkBankAccountDetails';
|
|
36
|
+
import type { UsBankAccountDetails } from './UsBankAccountDetails';
|
|
37
|
+
import {
|
|
38
|
+
instanceOfUsBankAccountDetails,
|
|
39
|
+
UsBankAccountDetailsFromJSON,
|
|
40
|
+
UsBankAccountDetailsFromJSONTyped,
|
|
41
|
+
UsBankAccountDetailsToJSON,
|
|
42
|
+
} from './UsBankAccountDetails';
|
|
29
43
|
|
|
30
44
|
/**
|
|
31
45
|
* @type AccountBankAccountDtoDetails
|
|
32
46
|
*
|
|
33
47
|
* @export
|
|
34
48
|
*/
|
|
35
|
-
export type AccountBankAccountDtoDetails = { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails;
|
|
49
|
+
export type AccountBankAccountDtoDetails = { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
|
|
36
50
|
|
|
37
51
|
export function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails {
|
|
38
52
|
return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
|
|
@@ -43,10 +57,14 @@ export function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscr
|
|
|
43
57
|
return json;
|
|
44
58
|
}
|
|
45
59
|
switch (json['type']) {
|
|
60
|
+
case 'CaBankAccountDetails':
|
|
61
|
+
return Object.assign({}, CaBankAccountDetailsFromJSONTyped(json, true), { type: 'CaBankAccountDetails' } as const);
|
|
46
62
|
case 'SepaBankAccountDetails':
|
|
47
63
|
return Object.assign({}, SepaBankAccountDetailsFromJSONTyped(json, true), { type: 'SepaBankAccountDetails' } as const);
|
|
48
64
|
case 'UkBankAccountDetails':
|
|
49
65
|
return Object.assign({}, UkBankAccountDetailsFromJSONTyped(json, true), { type: 'UkBankAccountDetails' } as const);
|
|
66
|
+
case 'UsBankAccountDetails':
|
|
67
|
+
return Object.assign({}, UsBankAccountDetailsFromJSONTyped(json, true), { type: 'UsBankAccountDetails' } as const);
|
|
50
68
|
default:
|
|
51
69
|
throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${json['type']}'`);
|
|
52
70
|
}
|
|
@@ -61,10 +79,14 @@ export function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccou
|
|
|
61
79
|
return value;
|
|
62
80
|
}
|
|
63
81
|
switch (value['type']) {
|
|
82
|
+
case 'CaBankAccountDetails':
|
|
83
|
+
return Object.assign({}, CaBankAccountDetailsToJSON(value), { type: 'CaBankAccountDetails' } as const);
|
|
64
84
|
case 'SepaBankAccountDetails':
|
|
65
85
|
return Object.assign({}, SepaBankAccountDetailsToJSON(value), { type: 'SepaBankAccountDetails' } as const);
|
|
66
86
|
case 'UkBankAccountDetails':
|
|
67
87
|
return Object.assign({}, UkBankAccountDetailsToJSON(value), { type: 'UkBankAccountDetails' } as const);
|
|
88
|
+
case 'UsBankAccountDetails':
|
|
89
|
+
return Object.assign({}, UsBankAccountDetailsToJSON(value), { type: 'UsBankAccountDetails' } as const);
|
|
68
90
|
default:
|
|
69
91
|
throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${value['type']}'`);
|
|
70
92
|
}
|
package/src/models/AccountDto.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface AccountOnboardingDto {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof AccountOnboardingDto
|
|
26
26
|
*/
|
|
27
|
-
accountId: string;
|
|
27
|
+
accountId: string | null;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
@@ -51,7 +51,8 @@ export interface AccountOnboardingDto {
|
|
|
51
51
|
*/
|
|
52
52
|
export const AccountOnboardingDtoStatusEnum = {
|
|
53
53
|
PENDING: 'pending',
|
|
54
|
-
ACTIVE: 'active'
|
|
54
|
+
ACTIVE: 'active',
|
|
55
|
+
REJECTED: 'rejected'
|
|
55
56
|
} as const;
|
|
56
57
|
export type AccountOnboardingDtoStatusEnum = typeof AccountOnboardingDtoStatusEnum[keyof typeof AccountOnboardingDtoStatusEnum];
|
|
57
58
|
|
|
@@ -59,7 +60,8 @@ export type AccountOnboardingDtoStatusEnum = typeof AccountOnboardingDtoStatusEn
|
|
|
59
60
|
* @export
|
|
60
61
|
*/
|
|
61
62
|
export const AccountOnboardingDtoProviderEnum = {
|
|
62
|
-
STRIPE: 'stripe'
|
|
63
|
+
STRIPE: 'stripe',
|
|
64
|
+
SUMSUB: 'sumsub'
|
|
63
65
|
} as const;
|
|
64
66
|
export type AccountOnboardingDtoProviderEnum = typeof AccountOnboardingDtoProviderEnum[keyof typeof AccountOnboardingDtoProviderEnum];
|
|
65
67
|
|
|
@@ -0,0 +1,123 @@
|
|
|
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
|
+
import type { AirwallexBankAccountDetailsDtoInstitution } from './AirwallexBankAccountDetailsDtoInstitution';
|
|
17
|
+
import {
|
|
18
|
+
AirwallexBankAccountDetailsDtoInstitutionFromJSON,
|
|
19
|
+
AirwallexBankAccountDetailsDtoInstitutionFromJSONTyped,
|
|
20
|
+
AirwallexBankAccountDetailsDtoInstitutionToJSON,
|
|
21
|
+
AirwallexBankAccountDetailsDtoInstitutionToJSONTyped,
|
|
22
|
+
} from './AirwallexBankAccountDetailsDtoInstitution';
|
|
23
|
+
import type { AirwallexBankAccountDetailsDtoLocalMethod } from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
24
|
+
import {
|
|
25
|
+
AirwallexBankAccountDetailsDtoLocalMethodFromJSON,
|
|
26
|
+
AirwallexBankAccountDetailsDtoLocalMethodFromJSONTyped,
|
|
27
|
+
AirwallexBankAccountDetailsDtoLocalMethodToJSON,
|
|
28
|
+
AirwallexBankAccountDetailsDtoLocalMethodToJSONTyped,
|
|
29
|
+
} from './AirwallexBankAccountDetailsDtoLocalMethod';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AirwallexBankAccountDetailsDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AirwallexBankAccountDetailsDto {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
47
|
+
*/
|
|
48
|
+
iban?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
53
|
+
*/
|
|
54
|
+
number?: string;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
59
|
+
*/
|
|
60
|
+
swiftBic?: string;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {AirwallexBankAccountDetailsDtoInstitution}
|
|
64
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
65
|
+
*/
|
|
66
|
+
institution: AirwallexBankAccountDetailsDtoInstitution;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Array<AirwallexBankAccountDetailsDtoLocalMethod>}
|
|
70
|
+
* @memberof AirwallexBankAccountDetailsDto
|
|
71
|
+
*/
|
|
72
|
+
localMethods: Array<AirwallexBankAccountDetailsDtoLocalMethod>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the AirwallexBankAccountDetailsDto interface.
|
|
77
|
+
*/
|
|
78
|
+
export function instanceOfAirwallexBankAccountDetailsDto(value: object): value is AirwallexBankAccountDetailsDto {
|
|
79
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
80
|
+
if (!('institution' in value) || value['institution'] === undefined) return false;
|
|
81
|
+
if (!('localMethods' in value) || value['localMethods'] === undefined) return false;
|
|
82
|
+
return true;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AirwallexBankAccountDetailsDtoFromJSON(json: any): AirwallexBankAccountDetailsDto {
|
|
86
|
+
return AirwallexBankAccountDetailsDtoFromJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function AirwallexBankAccountDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexBankAccountDetailsDto {
|
|
90
|
+
if (json == null) {
|
|
91
|
+
return json;
|
|
92
|
+
}
|
|
93
|
+
return {
|
|
94
|
+
|
|
95
|
+
'name': json['name'],
|
|
96
|
+
'iban': json['iban'] == null ? undefined : json['iban'],
|
|
97
|
+
'number': json['number'] == null ? undefined : json['number'],
|
|
98
|
+
'swiftBic': json['swift_bic'] == null ? undefined : json['swift_bic'],
|
|
99
|
+
'institution': AirwallexBankAccountDetailsDtoInstitutionFromJSON(json['institution']),
|
|
100
|
+
'localMethods': ((json['local_methods'] as Array<any>).map(AirwallexBankAccountDetailsDtoLocalMethodFromJSON)),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function AirwallexBankAccountDetailsDtoToJSON(json: any): AirwallexBankAccountDetailsDto {
|
|
105
|
+
return AirwallexBankAccountDetailsDtoToJSONTyped(json, false);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AirwallexBankAccountDetailsDtoToJSONTyped(value?: AirwallexBankAccountDetailsDto | null, ignoreDiscriminator: boolean = false): any {
|
|
109
|
+
if (value == null) {
|
|
110
|
+
return value;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'name': value['name'],
|
|
116
|
+
'iban': value['iban'],
|
|
117
|
+
'number': value['number'],
|
|
118
|
+
'swift_bic': value['swiftBic'],
|
|
119
|
+
'institution': AirwallexBankAccountDetailsDtoInstitutionToJSON(value['institution']),
|
|
120
|
+
'local_methods': ((value['localMethods'] as Array<any>).map(AirwallexBankAccountDetailsDtoLocalMethodToJSON)),
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 AirwallexBankAccountDetailsDtoInstitution
|
|
20
|
+
*/
|
|
21
|
+
export interface AirwallexBankAccountDetailsDtoInstitution {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AirwallexBankAccountDetailsDtoInstitution
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AirwallexBankAccountDetailsDtoInstitution
|
|
32
|
+
*/
|
|
33
|
+
address: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AirwallexBankAccountDetailsDtoInstitution
|
|
38
|
+
*/
|
|
39
|
+
city: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AirwallexBankAccountDetailsDtoInstitution
|
|
44
|
+
*/
|
|
45
|
+
zipCode: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AirwallexBankAccountDetailsDtoInstitution interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAirwallexBankAccountDetailsDtoInstitution(value: object): value is AirwallexBankAccountDetailsDtoInstitution {
|
|
52
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
53
|
+
if (!('address' in value) || value['address'] === undefined) return false;
|
|
54
|
+
if (!('city' in value) || value['city'] === undefined) return false;
|
|
55
|
+
if (!('zipCode' in value) || value['zipCode'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AirwallexBankAccountDetailsDtoInstitutionFromJSON(json: any): AirwallexBankAccountDetailsDtoInstitution {
|
|
60
|
+
return AirwallexBankAccountDetailsDtoInstitutionFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function AirwallexBankAccountDetailsDtoInstitutionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexBankAccountDetailsDtoInstitution {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'name': json['name'],
|
|
70
|
+
'address': json['address'],
|
|
71
|
+
'city': json['city'],
|
|
72
|
+
'zipCode': json['zip_code'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function AirwallexBankAccountDetailsDtoInstitutionToJSON(json: any): AirwallexBankAccountDetailsDtoInstitution {
|
|
77
|
+
return AirwallexBankAccountDetailsDtoInstitutionToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AirwallexBankAccountDetailsDtoInstitutionToJSONTyped(value?: AirwallexBankAccountDetailsDtoInstitution | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value['name'],
|
|
88
|
+
'address': value['address'],
|
|
89
|
+
'city': value['city'],
|
|
90
|
+
'zip_code': value['zipCode'],
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import type { AirwallexBankAccountDetailsDtoLocalMethodCode } from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
17
|
+
import {
|
|
18
|
+
AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSON,
|
|
19
|
+
AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSONTyped,
|
|
20
|
+
AirwallexBankAccountDetailsDtoLocalMethodCodeToJSON,
|
|
21
|
+
AirwallexBankAccountDetailsDtoLocalMethodCodeToJSONTyped,
|
|
22
|
+
} from './AirwallexBankAccountDetailsDtoLocalMethodCode';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AirwallexBankAccountDetailsDtoLocalMethod
|
|
28
|
+
*/
|
|
29
|
+
export interface AirwallexBankAccountDetailsDtoLocalMethod {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AirwallexBankAccountDetailsDtoLocalMethod
|
|
34
|
+
*/
|
|
35
|
+
method: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Array<AirwallexBankAccountDetailsDtoLocalMethodCode>}
|
|
39
|
+
* @memberof AirwallexBankAccountDetailsDtoLocalMethod
|
|
40
|
+
*/
|
|
41
|
+
codes: Array<AirwallexBankAccountDetailsDtoLocalMethodCode>;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AirwallexBankAccountDetailsDtoLocalMethod interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfAirwallexBankAccountDetailsDtoLocalMethod(value: object): value is AirwallexBankAccountDetailsDtoLocalMethod {
|
|
48
|
+
if (!('method' in value) || value['method'] === undefined) return false;
|
|
49
|
+
if (!('codes' in value) || value['codes'] === undefined) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodFromJSON(json: any): AirwallexBankAccountDetailsDtoLocalMethod {
|
|
54
|
+
return AirwallexBankAccountDetailsDtoLocalMethodFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexBankAccountDetailsDtoLocalMethod {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'method': json['method'],
|
|
64
|
+
'codes': ((json['codes'] as Array<any>).map(AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSON)),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodToJSON(json: any): AirwallexBankAccountDetailsDtoLocalMethod {
|
|
69
|
+
return AirwallexBankAccountDetailsDtoLocalMethodToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodToJSONTyped(value?: AirwallexBankAccountDetailsDtoLocalMethod | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'method': value['method'],
|
|
80
|
+
'codes': ((value['codes'] as Array<any>).map(AirwallexBankAccountDetailsDtoLocalMethodCodeToJSON)),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 AirwallexBankAccountDetailsDtoLocalMethodCode
|
|
20
|
+
*/
|
|
21
|
+
export interface AirwallexBankAccountDetailsDtoLocalMethodCode {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AirwallexBankAccountDetailsDtoLocalMethodCode
|
|
26
|
+
*/
|
|
27
|
+
type: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AirwallexBankAccountDetailsDtoLocalMethodCode
|
|
32
|
+
*/
|
|
33
|
+
value: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AirwallexBankAccountDetailsDtoLocalMethodCode interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAirwallexBankAccountDetailsDtoLocalMethodCode(value: object): value is AirwallexBankAccountDetailsDtoLocalMethodCode {
|
|
40
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
41
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSON(json: any): AirwallexBankAccountDetailsDtoLocalMethodCode {
|
|
46
|
+
return AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): AirwallexBankAccountDetailsDtoLocalMethodCode {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'type': json['type'],
|
|
56
|
+
'value': json['value'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodCodeToJSON(json: any): AirwallexBankAccountDetailsDtoLocalMethodCode {
|
|
61
|
+
return AirwallexBankAccountDetailsDtoLocalMethodCodeToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AirwallexBankAccountDetailsDtoLocalMethodCodeToJSONTyped(value?: AirwallexBankAccountDetailsDtoLocalMethodCode | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'type': value['type'],
|
|
72
|
+
'value': value['value'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,115 @@
|
|
|
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 CaBankAccountDetails
|
|
20
|
+
*/
|
|
21
|
+
export interface CaBankAccountDetails {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CaBankAccountDetails
|
|
26
|
+
*/
|
|
27
|
+
type: CaBankAccountDetailsTypeEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CaBankAccountDetails
|
|
32
|
+
*/
|
|
33
|
+
countryCode: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CaBankAccountDetails
|
|
38
|
+
*/
|
|
39
|
+
financialInstitutionNumber: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CaBankAccountDetails
|
|
44
|
+
*/
|
|
45
|
+
transitNumber: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CaBankAccountDetails
|
|
50
|
+
*/
|
|
51
|
+
accountNumber: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export const CaBankAccountDetailsTypeEnum = {
|
|
59
|
+
UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
|
|
60
|
+
US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
|
|
61
|
+
CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
|
|
62
|
+
SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
|
|
63
|
+
} as const;
|
|
64
|
+
export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the CaBankAccountDetails interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfCaBankAccountDetails(value: object): value is CaBankAccountDetails {
|
|
71
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
72
|
+
if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
|
|
73
|
+
if (!('financialInstitutionNumber' in value) || value['financialInstitutionNumber'] === undefined) return false;
|
|
74
|
+
if (!('transitNumber' in value) || value['transitNumber'] === undefined) return false;
|
|
75
|
+
if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function CaBankAccountDetailsFromJSON(json: any): CaBankAccountDetails {
|
|
80
|
+
return CaBankAccountDetailsFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function CaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaBankAccountDetails {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': json['type'],
|
|
90
|
+
'countryCode': json['countryCode'],
|
|
91
|
+
'financialInstitutionNumber': json['financialInstitutionNumber'],
|
|
92
|
+
'transitNumber': json['transitNumber'],
|
|
93
|
+
'accountNumber': json['accountNumber'],
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function CaBankAccountDetailsToJSON(json: any): CaBankAccountDetails {
|
|
98
|
+
return CaBankAccountDetailsToJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function CaBankAccountDetailsToJSONTyped(value?: CaBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
102
|
+
if (value == null) {
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
|
|
108
|
+
'type': value['type'],
|
|
109
|
+
'countryCode': value['countryCode'],
|
|
110
|
+
'financialInstitutionNumber': value['financialInstitutionNumber'],
|
|
111
|
+
'transitNumber': value['transitNumber'],
|
|
112
|
+
'accountNumber': value['accountNumber'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
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 DomainExchangeRateDto
|
|
20
|
+
*/
|
|
21
|
+
export interface DomainExchangeRateDto {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DomainExchangeRateDto
|
|
26
|
+
*/
|
|
27
|
+
currencyCode: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof DomainExchangeRateDto
|
|
32
|
+
*/
|
|
33
|
+
exchangeRate: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the DomainExchangeRateDto interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfDomainExchangeRateDto(value: object): value is DomainExchangeRateDto {
|
|
40
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
41
|
+
if (!('exchangeRate' in value) || value['exchangeRate'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function DomainExchangeRateDtoFromJSON(json: any): DomainExchangeRateDto {
|
|
46
|
+
return DomainExchangeRateDtoFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function DomainExchangeRateDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainExchangeRateDto {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'currencyCode': json['currencyCode'],
|
|
56
|
+
'exchangeRate': json['exchangeRate'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function DomainExchangeRateDtoToJSON(json: any): DomainExchangeRateDto {
|
|
61
|
+
return DomainExchangeRateDtoToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function DomainExchangeRateDtoToJSONTyped(value?: DomainExchangeRateDto | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'currencyCode': value['currencyCode'],
|
|
72
|
+
'exchangeRate': value['exchangeRate'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts
CHANGED
|
@@ -91,7 +91,7 @@ export interface IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFe
|
|
|
91
91
|
* @type {AccountOnboardingDto}
|
|
92
92
|
* @memberof IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto
|
|
93
93
|
*/
|
|
94
|
-
onboarding: AccountOnboardingDto
|
|
94
|
+
onboarding: AccountOnboardingDto;
|
|
95
95
|
/**
|
|
96
96
|
*
|
|
97
97
|
* @type {AccountPayoutDto}
|