@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,63 +0,0 @@
1
- /**
2
- * Nameshift
3
- * 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.
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface UkBankAccountDetails
16
- */
17
- export interface UkBankAccountDetails {
18
- /**
19
- * Discriminator identifying the bank account details schema.
20
- * @type {string}
21
- * @memberof UkBankAccountDetails
22
- */
23
- type: UkBankAccountDetailsTypeEnum;
24
- /**
25
- * ISO country code (GB).
26
- * @type {string}
27
- * @memberof UkBankAccountDetails
28
- */
29
- countryCode: string;
30
- /**
31
- * UK sort code.
32
- * @type {string}
33
- * @memberof UkBankAccountDetails
34
- */
35
- sortCode: string;
36
- /**
37
- * UK account number.
38
- * @type {string}
39
- * @memberof UkBankAccountDetails
40
- */
41
- accountNumber: string;
42
- }
43
- /**
44
- * @export
45
- */
46
- export declare const UkBankAccountDetailsTypeEnum: {
47
- readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
- readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
- readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
- readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
- readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
- readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
53
- readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
54
- };
55
- export type UkBankAccountDetailsTypeEnum = typeof UkBankAccountDetailsTypeEnum[keyof typeof UkBankAccountDetailsTypeEnum];
56
- /**
57
- * Check if a given object implements the UkBankAccountDetails interface.
58
- */
59
- export declare function instanceOfUkBankAccountDetails(value: object): value is UkBankAccountDetails;
60
- export declare function UkBankAccountDetailsFromJSON(json: any): UkBankAccountDetails;
61
- export declare function UkBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UkBankAccountDetails;
62
- export declare function UkBankAccountDetailsToJSON(json: any): UkBankAccountDetails;
63
- export declare function UkBankAccountDetailsToJSONTyped(value?: UkBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * 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.
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UkBankAccountDetailsTypeEnum = void 0;
17
- exports.instanceOfUkBankAccountDetails = instanceOfUkBankAccountDetails;
18
- exports.UkBankAccountDetailsFromJSON = UkBankAccountDetailsFromJSON;
19
- exports.UkBankAccountDetailsFromJSONTyped = UkBankAccountDetailsFromJSONTyped;
20
- exports.UkBankAccountDetailsToJSON = UkBankAccountDetailsToJSON;
21
- exports.UkBankAccountDetailsToJSONTyped = UkBankAccountDetailsToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.UkBankAccountDetailsTypeEnum = {
26
- UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
32
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
33
- };
34
- /**
35
- * Check if a given object implements the UkBankAccountDetails interface.
36
- */
37
- function instanceOfUkBankAccountDetails(value) {
38
- if (!('type' in value) || value['type'] === undefined)
39
- return false;
40
- if (!('countryCode' in value) || value['countryCode'] === undefined)
41
- return false;
42
- if (!('sortCode' in value) || value['sortCode'] === undefined)
43
- return false;
44
- if (!('accountNumber' in value) || value['accountNumber'] === undefined)
45
- return false;
46
- return true;
47
- }
48
- function UkBankAccountDetailsFromJSON(json) {
49
- return UkBankAccountDetailsFromJSONTyped(json, false);
50
- }
51
- function UkBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
52
- if (json == null) {
53
- return json;
54
- }
55
- return {
56
- 'type': json['type'],
57
- 'countryCode': json['countryCode'],
58
- 'sortCode': json['sortCode'],
59
- 'accountNumber': json['accountNumber'],
60
- };
61
- }
62
- function UkBankAccountDetailsToJSON(json) {
63
- return UkBankAccountDetailsToJSONTyped(json, false);
64
- }
65
- function UkBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
66
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
- if (value == null) {
68
- return value;
69
- }
70
- return {
71
- 'type': value['type'],
72
- 'countryCode': value['countryCode'],
73
- 'sortCode': value['sortCode'],
74
- 'accountNumber': value['accountNumber'],
75
- };
76
- }
@@ -1,63 +0,0 @@
1
- /**
2
- * Nameshift
3
- * 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.
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 UsBankAccountDetails
16
- */
17
- export interface UsBankAccountDetails {
18
- /**
19
- * Discriminator identifying the bank account details schema.
20
- * @type {string}
21
- * @memberof UsBankAccountDetails
22
- */
23
- type: UsBankAccountDetailsTypeEnum;
24
- /**
25
- * ISO country code (US).
26
- * @type {string}
27
- * @memberof UsBankAccountDetails
28
- */
29
- countryCode: string;
30
- /**
31
- * US ACH routing number.
32
- * @type {string}
33
- * @memberof UsBankAccountDetails
34
- */
35
- routingNumber: string;
36
- /**
37
- * US account number.
38
- * @type {string}
39
- * @memberof UsBankAccountDetails
40
- */
41
- accountNumber: string;
42
- }
43
- /**
44
- * @export
45
- */
46
- export declare const UsBankAccountDetailsTypeEnum: {
47
- readonly UK_BANK_ACCOUNT_DETAILS: "UkBankAccountDetails";
48
- readonly US_BANK_ACCOUNT_DETAILS: "UsBankAccountDetails";
49
- readonly CA_BANK_ACCOUNT_DETAILS: "CaBankAccountDetails";
50
- readonly NZ_BANK_ACCOUNT_DETAILS: "NzBankAccountDetails";
51
- readonly AU_BANK_ACCOUNT_DETAILS: "AuBankAccountDetails";
52
- readonly SE_BANK_ACCOUNT_DETAILS: "SeBankAccountDetails";
53
- readonly SEPA_BANK_ACCOUNT_DETAILS: "SepaBankAccountDetails";
54
- };
55
- export type UsBankAccountDetailsTypeEnum = typeof UsBankAccountDetailsTypeEnum[keyof typeof UsBankAccountDetailsTypeEnum];
56
- /**
57
- * Check if a given object implements the UsBankAccountDetails interface.
58
- */
59
- export declare function instanceOfUsBankAccountDetails(value: object): value is UsBankAccountDetails;
60
- export declare function UsBankAccountDetailsFromJSON(json: any): UsBankAccountDetails;
61
- export declare function UsBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): UsBankAccountDetails;
62
- export declare function UsBankAccountDetailsToJSON(json: any): UsBankAccountDetails;
63
- export declare function UsBankAccountDetailsToJSONTyped(value?: UsBankAccountDetails | null, ignoreDiscriminator?: boolean): any;
@@ -1,76 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Nameshift
6
- * 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.
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.UsBankAccountDetailsTypeEnum = void 0;
17
- exports.instanceOfUsBankAccountDetails = instanceOfUsBankAccountDetails;
18
- exports.UsBankAccountDetailsFromJSON = UsBankAccountDetailsFromJSON;
19
- exports.UsBankAccountDetailsFromJSONTyped = UsBankAccountDetailsFromJSONTyped;
20
- exports.UsBankAccountDetailsToJSON = UsBankAccountDetailsToJSON;
21
- exports.UsBankAccountDetailsToJSONTyped = UsBankAccountDetailsToJSONTyped;
22
- /**
23
- * @export
24
- */
25
- exports.UsBankAccountDetailsTypeEnum = {
26
- UK_BANK_ACCOUNT_DETAILS: 'UkBankAccountDetails',
27
- US_BANK_ACCOUNT_DETAILS: 'UsBankAccountDetails',
28
- CA_BANK_ACCOUNT_DETAILS: 'CaBankAccountDetails',
29
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
30
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
31
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
32
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
33
- };
34
- /**
35
- * Check if a given object implements the UsBankAccountDetails interface.
36
- */
37
- function instanceOfUsBankAccountDetails(value) {
38
- if (!('type' in value) || value['type'] === undefined)
39
- return false;
40
- if (!('countryCode' in value) || value['countryCode'] === undefined)
41
- return false;
42
- if (!('routingNumber' in value) || value['routingNumber'] === undefined)
43
- return false;
44
- if (!('accountNumber' in value) || value['accountNumber'] === undefined)
45
- return false;
46
- return true;
47
- }
48
- function UsBankAccountDetailsFromJSON(json) {
49
- return UsBankAccountDetailsFromJSONTyped(json, false);
50
- }
51
- function UsBankAccountDetailsFromJSONTyped(json, ignoreDiscriminator) {
52
- if (json == null) {
53
- return json;
54
- }
55
- return {
56
- 'type': json['type'],
57
- 'countryCode': json['countryCode'],
58
- 'routingNumber': json['routingNumber'],
59
- 'accountNumber': json['accountNumber'],
60
- };
61
- }
62
- function UsBankAccountDetailsToJSON(json) {
63
- return UsBankAccountDetailsToJSONTyped(json, false);
64
- }
65
- function UsBankAccountDetailsToJSONTyped(value, ignoreDiscriminator) {
66
- if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
67
- if (value == null) {
68
- return value;
69
- }
70
- return {
71
- 'type': value['type'],
72
- 'countryCode': value['countryCode'],
73
- 'routingNumber': value['routingNumber'],
74
- 'accountNumber': value['accountNumber'],
75
- };
76
- }
@@ -1,128 +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 type { AuBankAccountDetails } from './AuBankAccountDetails';
16
- import {
17
- instanceOfAuBankAccountDetails,
18
- AuBankAccountDetailsFromJSON,
19
- AuBankAccountDetailsFromJSONTyped,
20
- AuBankAccountDetailsToJSON,
21
- } from './AuBankAccountDetails';
22
- import type { CaBankAccountDetails } from './CaBankAccountDetails';
23
- import {
24
- instanceOfCaBankAccountDetails,
25
- CaBankAccountDetailsFromJSON,
26
- CaBankAccountDetailsFromJSONTyped,
27
- CaBankAccountDetailsToJSON,
28
- } from './CaBankAccountDetails';
29
- import type { NzBankAccountDetails } from './NzBankAccountDetails';
30
- import {
31
- instanceOfNzBankAccountDetails,
32
- NzBankAccountDetailsFromJSON,
33
- NzBankAccountDetailsFromJSONTyped,
34
- NzBankAccountDetailsToJSON,
35
- } from './NzBankAccountDetails';
36
- import type { SeBankAccountDetails } from './SeBankAccountDetails';
37
- import {
38
- instanceOfSeBankAccountDetails,
39
- SeBankAccountDetailsFromJSON,
40
- SeBankAccountDetailsFromJSONTyped,
41
- SeBankAccountDetailsToJSON,
42
- } from './SeBankAccountDetails';
43
- import type { SepaBankAccountDetails } from './SepaBankAccountDetails';
44
- import {
45
- instanceOfSepaBankAccountDetails,
46
- SepaBankAccountDetailsFromJSON,
47
- SepaBankAccountDetailsFromJSONTyped,
48
- SepaBankAccountDetailsToJSON,
49
- } from './SepaBankAccountDetails';
50
- import type { UkBankAccountDetails } from './UkBankAccountDetails';
51
- import {
52
- instanceOfUkBankAccountDetails,
53
- UkBankAccountDetailsFromJSON,
54
- UkBankAccountDetailsFromJSONTyped,
55
- UkBankAccountDetailsToJSON,
56
- } from './UkBankAccountDetails';
57
- import type { UsBankAccountDetails } from './UsBankAccountDetails';
58
- import {
59
- instanceOfUsBankAccountDetails,
60
- UsBankAccountDetailsFromJSON,
61
- UsBankAccountDetailsFromJSONTyped,
62
- UsBankAccountDetailsToJSON,
63
- } from './UsBankAccountDetails';
64
-
65
- /**
66
- * @type AccountBankAccountDtoDetails
67
- * Country-specific bank account details (schema varies by type).
68
- * @export
69
- */
70
- export type AccountBankAccountDtoDetails = { type: 'AuBankAccountDetails' } & AuBankAccountDetails | { type: 'CaBankAccountDetails' } & CaBankAccountDetails | { type: 'NzBankAccountDetails' } & NzBankAccountDetails | { type: 'SeBankAccountDetails' } & SeBankAccountDetails | { type: 'SepaBankAccountDetails' } & SepaBankAccountDetails | { type: 'UkBankAccountDetails' } & UkBankAccountDetails | { type: 'UsBankAccountDetails' } & UsBankAccountDetails;
71
-
72
- export function AccountBankAccountDtoDetailsFromJSON(json: any): AccountBankAccountDtoDetails {
73
- return AccountBankAccountDtoDetailsFromJSONTyped(json, false);
74
- }
75
-
76
- export function AccountBankAccountDtoDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountBankAccountDtoDetails {
77
- if (json == null) {
78
- return json;
79
- }
80
- switch (json['type']) {
81
- case 'AuBankAccountDetails':
82
- return Object.assign({}, AuBankAccountDetailsFromJSONTyped(json, true), { type: 'AuBankAccountDetails' } as const);
83
- case 'CaBankAccountDetails':
84
- return Object.assign({}, CaBankAccountDetailsFromJSONTyped(json, true), { type: 'CaBankAccountDetails' } as const);
85
- case 'NzBankAccountDetails':
86
- return Object.assign({}, NzBankAccountDetailsFromJSONTyped(json, true), { type: 'NzBankAccountDetails' } as const);
87
- case 'SeBankAccountDetails':
88
- return Object.assign({}, SeBankAccountDetailsFromJSONTyped(json, true), { type: 'SeBankAccountDetails' } as const);
89
- case 'SepaBankAccountDetails':
90
- return Object.assign({}, SepaBankAccountDetailsFromJSONTyped(json, true), { type: 'SepaBankAccountDetails' } as const);
91
- case 'UkBankAccountDetails':
92
- return Object.assign({}, UkBankAccountDetailsFromJSONTyped(json, true), { type: 'UkBankAccountDetails' } as const);
93
- case 'UsBankAccountDetails':
94
- return Object.assign({}, UsBankAccountDetailsFromJSONTyped(json, true), { type: 'UsBankAccountDetails' } as const);
95
- default:
96
- throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${json['type']}'`);
97
- }
98
- }
99
-
100
- export function AccountBankAccountDtoDetailsToJSON(json: any): any {
101
- return AccountBankAccountDtoDetailsToJSONTyped(json, false);
102
- }
103
-
104
- export function AccountBankAccountDtoDetailsToJSONTyped(value?: AccountBankAccountDtoDetails | null, ignoreDiscriminator: boolean = false): any {
105
- if (value == null) {
106
- return value;
107
- }
108
- switch (value['type']) {
109
- case 'AuBankAccountDetails':
110
- return Object.assign({}, AuBankAccountDetailsToJSON(value), { type: 'AuBankAccountDetails' } as const);
111
- case 'CaBankAccountDetails':
112
- return Object.assign({}, CaBankAccountDetailsToJSON(value), { type: 'CaBankAccountDetails' } as const);
113
- case 'NzBankAccountDetails':
114
- return Object.assign({}, NzBankAccountDetailsToJSON(value), { type: 'NzBankAccountDetails' } as const);
115
- case 'SeBankAccountDetails':
116
- return Object.assign({}, SeBankAccountDetailsToJSON(value), { type: 'SeBankAccountDetails' } as const);
117
- case 'SepaBankAccountDetails':
118
- return Object.assign({}, SepaBankAccountDetailsToJSON(value), { type: 'SepaBankAccountDetails' } as const);
119
- case 'UkBankAccountDetails':
120
- return Object.assign({}, UkBankAccountDetailsToJSON(value), { type: 'UkBankAccountDetails' } as const);
121
- case 'UsBankAccountDetails':
122
- return Object.assign({}, UsBankAccountDetailsToJSON(value), { type: 'UsBankAccountDetails' } as const);
123
- default:
124
- throw new Error(`No variant of AccountBankAccountDtoDetails exists with 'type=${value['type']}'`);
125
- }
126
-
127
- }
128
-
@@ -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 AuBankAccountDetails
20
- */
21
- export interface AuBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof AuBankAccountDetails
26
- */
27
- type: AuBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (AU).
30
- * @type {string}
31
- * @memberof AuBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * Australian account number.
36
- * @type {string}
37
- * @memberof AuBankAccountDetails
38
- */
39
- accountNumber: string;
40
- /**
41
- * Australian BSB (Bank-State-Branch) code.
42
- * @type {string}
43
- * @memberof AuBankAccountDetails
44
- */
45
- bsb: string;
46
- }
47
-
48
-
49
- /**
50
- * @export
51
- */
52
- export const AuBankAccountDetailsTypeEnum = {
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 AuBankAccountDetailsTypeEnum = typeof AuBankAccountDetailsTypeEnum[keyof typeof AuBankAccountDetailsTypeEnum];
62
-
63
-
64
- /**
65
- * Check if a given object implements the AuBankAccountDetails interface.
66
- */
67
- export function instanceOfAuBankAccountDetails(value: object): value is AuBankAccountDetails {
68
- if (!('type' in value) || value['type'] === undefined) return false;
69
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
70
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
71
- if (!('bsb' in value) || value['bsb'] === undefined) return false;
72
- return true;
73
- }
74
-
75
- export function AuBankAccountDetailsFromJSON(json: any): AuBankAccountDetails {
76
- return AuBankAccountDetailsFromJSONTyped(json, false);
77
- }
78
-
79
- export function AuBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuBankAccountDetails {
80
- if (json == null) {
81
- return json;
82
- }
83
- return {
84
-
85
- 'type': json['type'],
86
- 'countryCode': json['countryCode'],
87
- 'accountNumber': json['accountNumber'],
88
- 'bsb': json['bsb'],
89
- };
90
- }
91
-
92
- export function AuBankAccountDetailsToJSON(json: any): AuBankAccountDetails {
93
- return AuBankAccountDetailsToJSONTyped(json, false);
94
- }
95
-
96
- export function AuBankAccountDetailsToJSONTyped(value?: AuBankAccountDetails | 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
- 'accountNumber': value['accountNumber'],
106
- 'bsb': value['bsb'],
107
- };
108
- }
109
-
@@ -1,118 +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 CaBankAccountDetails
20
- */
21
- export interface CaBankAccountDetails {
22
- /**
23
- * Discriminator identifying the bank account details schema.
24
- * @type {string}
25
- * @memberof CaBankAccountDetails
26
- */
27
- type: CaBankAccountDetailsTypeEnum;
28
- /**
29
- * ISO country code (CA).
30
- * @type {string}
31
- * @memberof CaBankAccountDetails
32
- */
33
- countryCode: string;
34
- /**
35
- * Canadian financial institution number.
36
- * @type {string}
37
- * @memberof CaBankAccountDetails
38
- */
39
- financialInstitutionNumber: string;
40
- /**
41
- * Canadian transit number.
42
- * @type {string}
43
- * @memberof CaBankAccountDetails
44
- */
45
- transitNumber: string;
46
- /**
47
- * Canadian account number.
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
- NZ_BANK_ACCOUNT_DETAILS: 'NzBankAccountDetails',
63
- AU_BANK_ACCOUNT_DETAILS: 'AuBankAccountDetails',
64
- SE_BANK_ACCOUNT_DETAILS: 'SeBankAccountDetails',
65
- SEPA_BANK_ACCOUNT_DETAILS: 'SepaBankAccountDetails'
66
- } as const;
67
- export type CaBankAccountDetailsTypeEnum = typeof CaBankAccountDetailsTypeEnum[keyof typeof CaBankAccountDetailsTypeEnum];
68
-
69
-
70
- /**
71
- * Check if a given object implements the CaBankAccountDetails interface.
72
- */
73
- export function instanceOfCaBankAccountDetails(value: object): value is CaBankAccountDetails {
74
- if (!('type' in value) || value['type'] === undefined) return false;
75
- if (!('countryCode' in value) || value['countryCode'] === undefined) return false;
76
- if (!('financialInstitutionNumber' in value) || value['financialInstitutionNumber'] === undefined) return false;
77
- if (!('transitNumber' in value) || value['transitNumber'] === undefined) return false;
78
- if (!('accountNumber' in value) || value['accountNumber'] === undefined) return false;
79
- return true;
80
- }
81
-
82
- export function CaBankAccountDetailsFromJSON(json: any): CaBankAccountDetails {
83
- return CaBankAccountDetailsFromJSONTyped(json, false);
84
- }
85
-
86
- export function CaBankAccountDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CaBankAccountDetails {
87
- if (json == null) {
88
- return json;
89
- }
90
- return {
91
-
92
- 'type': json['type'],
93
- 'countryCode': json['countryCode'],
94
- 'financialInstitutionNumber': json['financialInstitutionNumber'],
95
- 'transitNumber': json['transitNumber'],
96
- 'accountNumber': json['accountNumber'],
97
- };
98
- }
99
-
100
- export function CaBankAccountDetailsToJSON(json: any): CaBankAccountDetails {
101
- return CaBankAccountDetailsToJSONTyped(json, false);
102
- }
103
-
104
- export function CaBankAccountDetailsToJSONTyped(value?: CaBankAccountDetails | null, ignoreDiscriminator: boolean = false): any {
105
- if (value == null) {
106
- return value;
107
- }
108
-
109
- return {
110
-
111
- 'type': value['type'],
112
- 'countryCode': value['countryCode'],
113
- 'financialInstitutionNumber': value['financialInstitutionNumber'],
114
- 'transitNumber': value['transitNumber'],
115
- 'accountNumber': value['accountNumber'],
116
- };
117
- }
118
-