@randock/nameshift-api-client 0.0.492 → 0.0.494

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.
Files changed (78) hide show
  1. package/.openapi-generator/FILES +11 -8
  2. package/README.md +3 -3
  3. package/dist/apis/AdminApi.d.ts +29 -1
  4. package/dist/apis/AdminApi.js +76 -1
  5. package/dist/apis/BankAccountsApi.d.ts +40 -1
  6. package/dist/apis/BankAccountsApi.js +197 -0
  7. package/dist/models/AccountBankAccountDetailsDto.d.ts +40 -0
  8. package/dist/models/AccountBankAccountDetailsDto.js +55 -0
  9. package/dist/models/AccountBankAccountDto.d.ts +10 -4
  10. package/dist/models/AccountBankAccountDto.js +7 -3
  11. package/dist/models/BankAccountFormatCountryDto.d.ts +38 -0
  12. package/dist/models/BankAccountFormatCountryDto.js +55 -0
  13. package/dist/models/BankAccountFormatDto.d.ts +45 -0
  14. package/dist/models/BankAccountFormatDto.js +60 -0
  15. package/dist/models/BankAccountFormatFieldDto.d.ts +76 -0
  16. package/dist/models/BankAccountFormatFieldDto.js +81 -0
  17. package/dist/models/BankAccountFormatFieldOptionDto.d.ts +38 -0
  18. package/dist/models/BankAccountFormatFieldOptionDto.js +55 -0
  19. package/dist/models/BankAccountFormatFieldType.d.ts +26 -0
  20. package/dist/models/BankAccountFormatFieldType.js +52 -0
  21. package/dist/models/BankAccountFormatsDto.d.ts +33 -0
  22. package/dist/models/BankAccountFormatsDto.js +52 -0
  23. package/dist/models/CreateBankAccountDetailsInput.d.ts +40 -0
  24. package/dist/models/CreateBankAccountDetailsInput.js +55 -0
  25. package/dist/models/CreateBankAccountInput.d.ts +5 -4
  26. package/dist/models/CreateBankAccountInput.js +3 -2
  27. package/dist/models/LandingDesignAccountDto.d.ts +44 -0
  28. package/dist/models/LandingDesignAccountDto.js +59 -0
  29. package/dist/models/LandingDesignUsageDto.d.ts +6 -0
  30. package/dist/models/LandingDesignUsageDto.js +4 -0
  31. package/dist/models/ListAdminLandingDesignAccounts200Response.d.ts +47 -0
  32. package/dist/models/ListAdminLandingDesignAccounts200Response.js +62 -0
  33. package/dist/models/SearchBankAccountInstitutionsInput.d.ts +46 -0
  34. package/dist/models/SearchBankAccountInstitutionsInput.js +55 -0
  35. package/dist/models/index.d.ts +11 -8
  36. package/dist/models/index.js +11 -8
  37. package/package.json +1 -1
  38. package/src/apis/AdminApi.ts +79 -0
  39. package/src/apis/BankAccountsApi.ts +181 -0
  40. package/src/models/AccountBankAccountDetailsDto.ts +75 -0
  41. package/src/models/AccountBankAccountDto.ts +20 -11
  42. package/src/models/BankAccountFormatCountryDto.ts +75 -0
  43. package/src/models/BankAccountFormatDto.ts +92 -0
  44. package/src/models/BankAccountFormatFieldDto.ts +146 -0
  45. package/src/models/BankAccountFormatFieldOptionDto.ts +75 -0
  46. package/src/models/BankAccountFormatFieldType.ts +54 -0
  47. package/src/models/BankAccountFormatsDto.ts +74 -0
  48. package/src/models/CreateBankAccountDetailsInput.ts +75 -0
  49. package/src/models/CreateBankAccountInput.ts +14 -6
  50. package/src/models/LandingDesignAccountDto.ts +84 -0
  51. package/src/models/LandingDesignUsageDto.ts +9 -0
  52. package/src/models/ListAdminLandingDesignAccounts200Response.ts +106 -0
  53. package/src/models/SearchBankAccountInstitutionsInput.ts +82 -0
  54. package/src/models/index.ts +11 -8
  55. package/dist/models/AccountBankAccountDtoDetails.d.ts +0 -42
  56. package/dist/models/AccountBankAccountDtoDetails.js +0 -79
  57. package/dist/models/AuBankAccountDetails.d.ts +0 -63
  58. package/dist/models/AuBankAccountDetails.js +0 -76
  59. package/dist/models/CaBankAccountDetails.d.ts +0 -69
  60. package/dist/models/CaBankAccountDetails.js +0 -80
  61. package/dist/models/NzBankAccountDetails.d.ts +0 -57
  62. package/dist/models/NzBankAccountDetails.js +0 -72
  63. package/dist/models/SeBankAccountDetails.d.ts +0 -75
  64. package/dist/models/SeBankAccountDetails.js +0 -84
  65. package/dist/models/SepaBankAccountDetails.d.ts +0 -63
  66. package/dist/models/SepaBankAccountDetails.js +0 -76
  67. package/dist/models/UkBankAccountDetails.d.ts +0 -63
  68. package/dist/models/UkBankAccountDetails.js +0 -76
  69. package/dist/models/UsBankAccountDetails.d.ts +0 -63
  70. package/dist/models/UsBankAccountDetails.js +0 -76
  71. package/src/models/AccountBankAccountDtoDetails.ts +0 -128
  72. package/src/models/AuBankAccountDetails.ts +0 -109
  73. package/src/models/CaBankAccountDetails.ts +0 -118
  74. package/src/models/NzBankAccountDetails.ts +0 -100
  75. package/src/models/SeBankAccountDetails.ts +0 -127
  76. package/src/models/SepaBankAccountDetails.ts +0 -109
  77. package/src/models/UkBankAccountDetails.ts +0 -109
  78. package/src/models/UsBankAccountDetails.ts +0 -109
@@ -1,100 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface NzBankAccountDetails
20
- */
21
- export interface NzBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof NzBankAccountDetails
26
- */
27
- type: NzBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (NZ).
30
- * @type {string}
31
- * @memberof NzBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * New Zealand account number.
36
- * @type {string}
37
- * @memberof NzBankAccountDetails
38
- */
39
- accountNumber: string;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const NzBankAccountDetailsTypeEnum = {
47
- UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
48
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
49
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
50
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
51
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
52
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
53
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
54
- } as const;
55
- export type NzBankAccountDetailsTypeEnum = typeof NzBankAccountDetailsTypeEnum[keyof typeof NzBankAccountDetailsTypeEnum];
56
-
57
-
58
- /**
59
- * Check if a given object implements the NzBankAccountDetails interface.
60
- */
61
- export function instanceOfNzBankAccountDetails(value: object): value is NzBankAccountDetails {
62
- if (!('type' in value) || value['type'] === undefined) return false;
63
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
64
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
65
- return true;
66
- }
67
-
68
- export function NzBankAccountDetailsFromJSON(json: any): NzBankAccountDetails {
69
- return NzBankAccountDetailsFromJSONTyped(json, false);
70
- }
71
-
72
- export function NzBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): NzBankAccountDetails {
73
- if (json == null) {
74
- return json;
75
- }
76
- return {
77
-
78
- 'type': json['type'],
79
- 'countryCode': json['countryCode'],
80
- 'accountNumber': json['accountNumber'],
81
- };
82
- }
83
-
84
- export function NzBankAccountDetailsToJSON(json: any): NzBankAccountDetails {
85
- return NzBankAccountDetailsToJSONTyped(json, false);
86
- }
87
-
88
- export function NzBankAccountDetailsToJSONTyped(value?: NzBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
89
- if (value == null) {
90
- return value;
91
- }
92
-
93
- return {
94
-
95
- 'type': value['type'],
96
- 'countryCode': value['countryCode'],
97
- 'accountNumber': value['accountNumber'],
98
- };
99
- }
100
-
@@ -1,127 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SeBankAccountDetails
20
- */
21
- export interface SeBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof SeBankAccountDetails
26
- */
27
- type: SeBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (SE).
30
- * @type {string}
31
- * @memberof SeBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * Swedish bank code.
36
- * @type {string}
37
- * @memberof SeBankAccountDetails
38
- */
39
- bankCode: string;
40
- /**
41
- * Swedish account number.
42
- * @type {string}
43
- * @memberof SeBankAccountDetails
44
- */
45
- accountNumber: string;
46
- /**
47
- * International Bank Account Number (IBAN).
48
- * @type {string}
49
- * @memberof SeBankAccountDetails
50
- */
51
- iban: string;
52
- /**
53
- * Bank Identifier Code (BIC/SWIFT).
54
- * @type {string}
55
- * @memberof SeBankAccountDetails
56
- */
57
- bic: string;
58
- }
59
-
60
-
61
- /**
62
- * @export
63
- */
64
- export const SeBankAccountDetailsTypeEnum = {
65
- UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
66
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
67
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
68
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
69
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
70
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
71
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
72
- } as const;
73
- export type SeBankAccountDetailsTypeEnum = typeof SeBankAccountDetailsTypeEnum[keyof typeof SeBankAccountDetailsTypeEnum];
74
-
75
-
76
- /**
77
- * Check if a given object implements the SeBankAccountDetails interface.
78
- */
79
- export function instanceOfSeBankAccountDetails(value: object): value is SeBankAccountDetails {
80
- if (!('type' in value) || value['type'] === undefined) return false;
81
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
82
- if (!('bankCode' in value) || value['bankCode'] === undefined) return false;
83
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
84
- if (!('iban' in value) || value['iban'] === undefined) return false;
85
- if (!('bic' in value) || value['bic'] === undefined) return false;
86
- return true;
87
- }
88
-
89
- export function SeBankAccountDetailsFromJSON(json: any): SeBankAccountDetails {
90
- return SeBankAccountDetailsFromJSONTyped(json, false);
91
- }
92
-
93
- export function SeBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SeBankAccountDetails {
94
- if (json == null) {
95
- return json;
96
- }
97
- return {
98
-
99
- 'type': json['type'],
100
- 'countryCode': json['countryCode'],
101
- 'bankCode': json['bankCode'],
102
- 'accountNumber': json['accountNumber'],
103
- 'iban': json['iban'],
104
- 'bic': json['bic'],
105
- };
106
- }
107
-
108
- export function SeBankAccountDetailsToJSON(json: any): SeBankAccountDetails {
109
- return SeBankAccountDetailsToJSONTyped(json, false);
110
- }
111
-
112
- export function SeBankAccountDetailsToJSONTyped(value?: SeBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
113
- if (value == null) {
114
- return value;
115
- }
116
-
117
- return {
118
-
119
- 'type': value['type'],
120
- 'countryCode': value['countryCode'],
121
- 'bankCode': value['bankCode'],
122
- 'accountNumber': value['accountNumber'],
123
- 'iban': value['iban'],
124
- 'bic': value['bic'],
125
- };
126
- }
127
-
@@ -1,109 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface SepaBankAccountDetails
20
- */
21
- export interface SepaBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof SepaBankAccountDetails
26
- */
27
- type: SepaBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code for the SEPA account.
30
- * @type {string}
31
- * @memberof SepaBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * Bank Identifier Code (BIC/SWIFT).
36
- * @type {string}
37
- * @memberof SepaBankAccountDetails
38
- */
39
- bic: string;
40
- /**
41
- * International Bank Account Number (IBAN).
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
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
59
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
60
- } as const;
61
- export type SepaBankAccountDetailsTypeEnum = typeof SepaBankAccountDetailsTypeEnum[keyof typeof SepaBankAccountDetailsTypeEnum];
62
-
63
-
64
- /**
65
- * Check if a given object implements the SepaBankAccountDetails interface.
66
- */
67
- export function instanceOfSepaBankAccountDetails(value: object): value is SepaBankAccountDetails {
68
- if (!('type' in value) || value['type'] === undefined) return false;
69
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
70
- if (!('bic' in value) || value['bic'] === undefined) return false;
71
- if (!('iban' in value) || value['iban'] === undefined) return false;
72
- return true;
73
- }
74
-
75
- export function SepaBankAccountDetailsFromJSON(json: any): SepaBankAccountDetails {
76
- return SepaBankAccountDetailsFromJSONTyped(json, false);
77
- }
78
-
79
- export function SepaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SepaBankAccountDetails {
80
- if (json == null) {
81
- return json;
82
- }
83
- return {
84
-
85
- 'type': json['type'],
86
- 'countryCode': json['countryCode'],
87
- 'bic': json['bic'],
88
- 'iban': json['iban'],
89
- };
90
- }
91
-
92
- export function SepaBankAccountDetailsToJSON(json: any): SepaBankAccountDetails {
93
- return SepaBankAccountDetailsToJSONTyped(json, false);
94
- }
95
-
96
- export function SepaBankAccountDetailsToJSONTyped(value?: SepaBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'type': value['type'],
104
- 'countryCode': value['countryCode'],
105
- 'bic': value['bic'],
106
- 'iban': value['iban'],
107
- };
108
- }
109
-
@@ -1,109 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface UkBankAccountDetails
20
- */
21
- export interface UkBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof UkBankAccountDetails
26
- */
27
- type: UkBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (GB).
30
- * @type {string}
31
- * @memberof UkBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * UK sort code.
36
- * @type {string}
37
- * @memberof UkBankAccountDetails
38
- */
39
- sortCode: string;
40
- /**
41
- * UK account number.
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
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
59
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
60
- } as const;
61
- export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
62
-
63
-
64
- /**
65
- * Check if a given object implements the UkBankAccountDetails interface.
66
- */
67
- export function instanceOfUkBankAccountDetails(value: object): value is UkBankAccountDetails {
68
- if (!('type' in value) || value['type'] === undefined) return false;
69
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
70
- if (!('sortCode' in value) || value['sortCode'] === undefined) return false;
71
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
72
- return true;
73
- }
74
-
75
- export function UkBankAccountDetailsFromJSON(json: any): UkBankAccountDetails {
76
- return UkBankAccountDetailsFromJSONTyped(json, false);
77
- }
78
-
79
- export function UkBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UkBankAccountDetails {
80
- if (json == null) {
81
- return json;
82
- }
83
- return {
84
-
85
- 'type': json['type'],
86
- 'countryCode': json['countryCode'],
87
- 'sortCode': json['sortCode'],
88
- 'accountNumber': json['accountNumber'],
89
- };
90
- }
91
-
92
- export function UkBankAccountDetailsToJSON(json: any): UkBankAccountDetails {
93
- return UkBankAccountDetailsToJSONTyped(json, false);
94
- }
95
-
96
- export function UkBankAccountDetailsToJSONTyped(value?: UkBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'type': value['type'],
104
- 'countryCode': value['countryCode'],
105
- 'sortCode': value['sortCode'],
106
- 'accountNumber': value['accountNumber'],
107
- };
108
- }
109
-
@@ -1,109 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Nameshift
5
- * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- *
18
- * @export
19
- * @interface UsBankAccountDetails
20
- */
21
- export interface UsBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof UsBankAccountDetails
26
- */
27
- type: UsBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (US).
30
- * @type {string}
31
- * @memberof UsBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * US ACH routing number.
36
- * @type {string}
37
- * @memberof UsBankAccountDetails
38
- */
39
- routingNumber: string;
40
- /**
41
- * US account number.
42
- * @type {string}
43
- * @memberof UsBankAccountDetails
44
- */
45
- accountNumber: string;
46
- }
47
-
48
-
49
- /**
50
- * @export
51
- */
52
- export const UsBankAccountDetailsTypeEnum = {
53
- UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
54
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
55
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
56
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
57
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
58
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
59
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
60
- } as const;
61
- export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
62
-
63
-
64
- /**
65
- * Check if a given object implements the UsBankAccountDetails interface.
66
- */
67
- export function instanceOfUsBankAccountDetails(value: object): value is UsBankAccountDetails {
68
- if (!('type' in value) || value['type'] === undefined) return false;
69
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
70
- if (!('routingNumber' in value) || value['routingNumber'] === undefined) return false;
71
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
72
- return true;
73
- }
74
-
75
- export function UsBankAccountDetailsFromJSON(json: any): UsBankAccountDetails {
76
- return UsBankAccountDetailsFromJSONTyped(json, false);
77
- }
78
-
79
- export function UsBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsBankAccountDetails {
80
- if (json == null) {
81
- return json;
82
- }
83
- return {
84
-
85
- 'type': json['type'],
86
- 'countryCode': json['countryCode'],
87
- 'routingNumber': json['routingNumber'],
88
- 'accountNumber': json['accountNumber'],
89
- };
90
- }
91
-
92
- export function UsBankAccountDetailsToJSON(json: any): UsBankAccountDetails {
93
- return UsBankAccountDetailsToJSONTyped(json, false);
94
- }
95
-
96
- export function UsBankAccountDetailsToJSONTyped(value?: UsBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
97
- if (value == null) {
98
- return value;
99
- }
100
-
101
- return {
102
-
103
- 'type': value['type'],
104
- 'countryCode': value['countryCode'],
105
- 'routingNumber': value['routingNumber'],
106
- 'accountNumber': value['accountNumber'],
107
- };
108
- }
109
-