@randock/nameshift-api-client 0.0.228 → 0.0.229

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.
@@ -6,6 +6,7 @@ package.json
6
6
  src/apis/AccountsApi.ts
7
7
  src/apis/AccountsPublicApi.ts
8
8
  src/apis/AdminApi.ts
9
+ src/apis/AirwallexPublicApi.ts
9
10
  src/apis/BankAccountsApi.ts
10
11
  src/apis/BuyersApi.ts
11
12
  src/apis/BuyersPublicApi.ts
@@ -41,7 +42,9 @@ src/models/AccountSettingsSidnDto.ts
41
42
  src/models/AddressDto.ts
42
43
  src/models/AdminAccountLoginDto.ts
43
44
  src/models/AdminAccountSettingsInput.ts
45
+ src/models/AdminBankAccountDto.ts
44
46
  src/models/AdminGetAllDomainTransfers200Response.ts
47
+ src/models/AdminVerificationDepositDto.ts
45
48
  src/models/AirwallexBankAccountDetailsDto.ts
46
49
  src/models/AirwallexBankAccountDetailsDtoInstitution.ts
47
50
  src/models/AirwallexBankAccountDetailsDtoLocalMethod.ts
@@ -151,6 +154,7 @@ src/models/ListAccountDto.ts
151
154
  src/models/ListAccountMetricsDto.ts
152
155
  src/models/ListAccountUserDto.ts
153
156
  src/models/ListAccounts200Response.ts
157
+ src/models/ListBankAccounts200Response.ts
154
158
  src/models/ListDomains200Response.ts
155
159
  src/models/ListLeadMessagesDto.ts
156
160
  src/models/LoginDto.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.228
1
+ ## @randock/nameshift-api-client@0.0.229
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.228 --save
39
+ npm install @randock/nameshift-api-client@0.0.229 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 01dcf8e8243bb3614aac31618f47d631ff77c38e3d1237895528b0607e11b957a6e24ded3ef4e257a87a444454278a6d
47
+ 23df4a30a99aba9cce4cea9bf7c9f53c39a4f510b22a78b256c4afae207c4fba5ce2a5e15d9cbc53a1ff1eea4382cbef
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, ListAccounts200Response, ListDomains200Response, SubscriptionDetailsDto } from '../models/index';
13
+ import type { AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainTransferDetailsDto, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, SubscriptionDetailsDto } from '../models/index';
14
14
  export interface AdminApiAdminGetAllDomainTransfersRequest {
15
15
  filter?: object;
16
16
  page?: number;
@@ -70,6 +70,12 @@ export interface AdminApiListAccountsRequest {
70
70
  limit?: number;
71
71
  sortBy?: Array<string>;
72
72
  }
73
+ export interface AdminApiListBankAccountsRequest {
74
+ filter?: object;
75
+ page?: number;
76
+ limit?: number;
77
+ sortBy?: Array<string>;
78
+ }
73
79
  export interface AdminApiListDomainsRequest {
74
80
  filter?: object;
75
81
  page?: number;
@@ -206,6 +212,14 @@ export declare class AdminApi extends runtime.BaseAPI {
206
212
  *
207
213
  */
208
214
  listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
215
+ /**
216
+ *
217
+ */
218
+ listBankAccountsRaw(requestParameters: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBankAccounts200Response>>;
219
+ /**
220
+ *
221
+ */
222
+ listBankAccounts(requestParameters?: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankAccounts200Response>;
209
223
  /**
210
224
  *
211
225
  */
@@ -830,6 +830,69 @@ var AdminApi = /** @class */ (function (_super) {
830
830
  });
831
831
  });
832
832
  };
833
+ /**
834
+ *
835
+ */
836
+ AdminApi.prototype.listBankAccountsRaw = function (requestParameters, initOverrides) {
837
+ return __awaiter(this, void 0, void 0, function () {
838
+ var queryParameters, headerParameters, token, tokenString, response;
839
+ return __generator(this, function (_a) {
840
+ switch (_a.label) {
841
+ case 0:
842
+ queryParameters = {};
843
+ if (requestParameters['filter'] != null) {
844
+ queryParameters['filter'] = requestParameters['filter'];
845
+ }
846
+ if (requestParameters['page'] != null) {
847
+ queryParameters['page'] = requestParameters['page'];
848
+ }
849
+ if (requestParameters['limit'] != null) {
850
+ queryParameters['limit'] = requestParameters['limit'];
851
+ }
852
+ if (requestParameters['sortBy'] != null) {
853
+ queryParameters['sortBy'] = requestParameters['sortBy'];
854
+ }
855
+ headerParameters = {};
856
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
857
+ token = this.configuration.accessToken;
858
+ return [4 /*yield*/, token("bearer", [])];
859
+ case 1:
860
+ tokenString = _a.sent();
861
+ if (tokenString) {
862
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
863
+ }
864
+ _a.label = 2;
865
+ case 2: return [4 /*yield*/, this.request({
866
+ path: "/admin/bank-accounts/list",
867
+ method: 'GET',
868
+ headers: headerParameters,
869
+ query: queryParameters,
870
+ }, initOverrides)];
871
+ case 3:
872
+ response = _a.sent();
873
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.ListBankAccounts200ResponseFromJSON)(jsonValue); })];
874
+ }
875
+ });
876
+ });
877
+ };
878
+ /**
879
+ *
880
+ */
881
+ AdminApi.prototype.listBankAccounts = function () {
882
+ return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
883
+ var response;
884
+ if (requestParameters === void 0) { requestParameters = {}; }
885
+ return __generator(this, function (_a) {
886
+ switch (_a.label) {
887
+ case 0: return [4 /*yield*/, this.listBankAccountsRaw(requestParameters, initOverrides)];
888
+ case 1:
889
+ response = _a.sent();
890
+ return [4 /*yield*/, response.value()];
891
+ case 2: return [2 /*return*/, _a.sent()];
892
+ }
893
+ });
894
+ });
895
+ };
833
896
  /**
834
897
  *
835
898
  */
@@ -0,0 +1,29 @@
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
+ import * as runtime from '../runtime';
13
+ export interface AirwallexPublicApiPostAirwallexWebhookRequest {
14
+ xSignature: string;
15
+ xTimestamp: string;
16
+ }
17
+ /**
18
+ *
19
+ */
20
+ export declare class AirwallexPublicApi extends runtime.BaseAPI {
21
+ /**
22
+ *
23
+ */
24
+ postAirwallexWebhookRaw(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
25
+ /**
26
+ *
27
+ */
28
+ postAirwallexWebhook(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
29
+ }
@@ -0,0 +1,130 @@
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
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
41
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AirwallexPublicApi = void 0;
68
+ var runtime = require("../runtime");
69
+ /**
70
+ *
71
+ */
72
+ var AirwallexPublicApi = /** @class */ (function (_super) {
73
+ __extends(AirwallexPublicApi, _super);
74
+ function AirwallexPublicApi() {
75
+ return _super !== null && _super.apply(this, arguments) || this;
76
+ }
77
+ /**
78
+ *
79
+ */
80
+ AirwallexPublicApi.prototype.postAirwallexWebhookRaw = function (requestParameters, initOverrides) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ var queryParameters, headerParameters, response;
83
+ return __generator(this, function (_a) {
84
+ switch (_a.label) {
85
+ case 0:
86
+ if (requestParameters['xSignature'] == null) {
87
+ throw new runtime.RequiredError('xSignature', 'Required parameter "xSignature" was null or undefined when calling postAirwallexWebhook().');
88
+ }
89
+ if (requestParameters['xTimestamp'] == null) {
90
+ throw new runtime.RequiredError('xTimestamp', 'Required parameter "xTimestamp" was null or undefined when calling postAirwallexWebhook().');
91
+ }
92
+ queryParameters = {};
93
+ headerParameters = {};
94
+ if (requestParameters['xSignature'] != null) {
95
+ headerParameters['x-signature'] = String(requestParameters['xSignature']);
96
+ }
97
+ if (requestParameters['xTimestamp'] != null) {
98
+ headerParameters['x-timestamp'] = String(requestParameters['xTimestamp']);
99
+ }
100
+ return [4 /*yield*/, this.request({
101
+ path: "/airwallex/webhook",
102
+ method: 'POST',
103
+ headers: headerParameters,
104
+ query: queryParameters,
105
+ }, initOverrides)];
106
+ case 1:
107
+ response = _a.sent();
108
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
109
+ }
110
+ });
111
+ });
112
+ };
113
+ /**
114
+ *
115
+ */
116
+ AirwallexPublicApi.prototype.postAirwallexWebhook = function (requestParameters, initOverrides) {
117
+ return __awaiter(this, void 0, void 0, function () {
118
+ return __generator(this, function (_a) {
119
+ switch (_a.label) {
120
+ case 0: return [4 /*yield*/, this.postAirwallexWebhookRaw(requestParameters, initOverrides)];
121
+ case 1:
122
+ _a.sent();
123
+ return [2 /*return*/];
124
+ }
125
+ });
126
+ });
127
+ };
128
+ return AirwallexPublicApi;
129
+ }(runtime.BaseAPI));
130
+ exports.AirwallexPublicApi = AirwallexPublicApi;
@@ -1,6 +1,7 @@
1
1
  export * from './AccountsApi';
2
2
  export * from './AccountsPublicApi';
3
3
  export * from './AdminApi';
4
+ export * from './AirwallexPublicApi';
4
5
  export * from './BankAccountsApi';
5
6
  export * from './BuyersApi';
6
7
  export * from './BuyersPublicApi';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AccountsApi"), exports);
20
20
  __exportStar(require("./AccountsPublicApi"), exports);
21
21
  __exportStar(require("./AdminApi"), exports);
22
+ __exportStar(require("./AirwallexPublicApi"), exports);
22
23
  __exportStar(require("./BankAccountsApi"), exports);
23
24
  __exportStar(require("./BuyersApi"), exports);
24
25
  __exportStar(require("./BuyersPublicApi"), exports);
@@ -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
+ import type { AccountBankAccountDto } from './AccountBankAccountDto';
13
+ import type { AdminVerificationDepositDto } from './AdminVerificationDepositDto';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AdminBankAccountDto
18
+ */
19
+ export interface AdminBankAccountDto {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AdminBankAccountDto
24
+ */
25
+ accountName: string;
26
+ /**
27
+ *
28
+ * @type {AccountBankAccountDto}
29
+ * @memberof AdminBankAccountDto
30
+ */
31
+ bankAccount: AccountBankAccountDto;
32
+ /**
33
+ *
34
+ * @type {Array<AdminVerificationDepositDto>}
35
+ * @memberof AdminBankAccountDto
36
+ */
37
+ relatedVerificationDeposits: Array<AdminVerificationDepositDto>;
38
+ }
39
+ /**
40
+ * Check if a given object implements the AdminBankAccountDto interface.
41
+ */
42
+ export declare function instanceOfAdminBankAccountDto(value: object): value is AdminBankAccountDto;
43
+ export declare function AdminBankAccountDtoFromJSON(json: any): AdminBankAccountDto;
44
+ export declare function AdminBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountDto;
45
+ export declare function AdminBankAccountDtoToJSON(json: any): AdminBankAccountDto;
46
+ export declare function AdminBankAccountDtoToJSONTyped(value?: AdminBankAccountDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,61 @@
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.instanceOfAdminBankAccountDto = instanceOfAdminBankAccountDto;
17
+ exports.AdminBankAccountDtoFromJSON = AdminBankAccountDtoFromJSON;
18
+ exports.AdminBankAccountDtoFromJSONTyped = AdminBankAccountDtoFromJSONTyped;
19
+ exports.AdminBankAccountDtoToJSON = AdminBankAccountDtoToJSON;
20
+ exports.AdminBankAccountDtoToJSONTyped = AdminBankAccountDtoToJSONTyped;
21
+ var AccountBankAccountDto_1 = require("./AccountBankAccountDto");
22
+ var AdminVerificationDepositDto_1 = require("./AdminVerificationDepositDto");
23
+ /**
24
+ * Check if a given object implements the AdminBankAccountDto interface.
25
+ */
26
+ function instanceOfAdminBankAccountDto(value) {
27
+ if (!('accountName' in value) || value['accountName'] === undefined)
28
+ return false;
29
+ if (!('bankAccount' in value) || value['bankAccount'] === undefined)
30
+ return false;
31
+ if (!('relatedVerificationDeposits' in value) || value['relatedVerificationDeposits'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AdminBankAccountDtoFromJSON(json) {
36
+ return AdminBankAccountDtoFromJSONTyped(json, false);
37
+ }
38
+ function AdminBankAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'accountName': json['accountName'],
44
+ 'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoFromJSON)(json['bankAccount']),
45
+ 'relatedVerificationDeposits': (json['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoFromJSON)),
46
+ };
47
+ }
48
+ function AdminBankAccountDtoToJSON(json) {
49
+ return AdminBankAccountDtoToJSONTyped(json, false);
50
+ }
51
+ function AdminBankAccountDtoToJSONTyped(value, ignoreDiscriminator) {
52
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'accountName': value['accountName'],
58
+ 'bankAccount': (0, AccountBankAccountDto_1.AccountBankAccountDtoToJSON)(value['bankAccount']),
59
+ 'relatedVerificationDeposits': (value['relatedVerificationDeposits'].map(AdminVerificationDepositDto_1.AdminVerificationDepositDtoToJSON)),
60
+ };
61
+ }
@@ -0,0 +1,38 @@
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 AdminVerificationDepositDto
16
+ */
17
+ export interface AdminVerificationDepositDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminVerificationDepositDto
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {object}
27
+ * @memberof AdminVerificationDepositDto
28
+ */
29
+ raw: object;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AdminVerificationDepositDto interface.
33
+ */
34
+ export declare function instanceOfAdminVerificationDepositDto(value: object): value is AdminVerificationDepositDto;
35
+ export declare function AdminVerificationDepositDtoFromJSON(json: any): AdminVerificationDepositDto;
36
+ export declare function AdminVerificationDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminVerificationDepositDto;
37
+ export declare function AdminVerificationDepositDtoToJSON(json: any): AdminVerificationDepositDto;
38
+ export declare function AdminVerificationDepositDtoToJSONTyped(value?: AdminVerificationDepositDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfAdminVerificationDepositDto = instanceOfAdminVerificationDepositDto;
17
+ exports.AdminVerificationDepositDtoFromJSON = AdminVerificationDepositDtoFromJSON;
18
+ exports.AdminVerificationDepositDtoFromJSONTyped = AdminVerificationDepositDtoFromJSONTyped;
19
+ exports.AdminVerificationDepositDtoToJSON = AdminVerificationDepositDtoToJSON;
20
+ exports.AdminVerificationDepositDtoToJSONTyped = AdminVerificationDepositDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminVerificationDepositDto interface.
23
+ */
24
+ function instanceOfAdminVerificationDepositDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('raw' in value) || value['raw'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AdminVerificationDepositDtoFromJSON(json) {
32
+ return AdminVerificationDepositDtoFromJSONTyped(json, false);
33
+ }
34
+ function AdminVerificationDepositDtoFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'raw': json['raw'],
41
+ };
42
+ }
43
+ function AdminVerificationDepositDtoToJSON(json) {
44
+ return AdminVerificationDepositDtoToJSONTyped(json, false);
45
+ }
46
+ function AdminVerificationDepositDtoToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'id': value['id'],
53
+ 'raw': value['raw'],
54
+ };
55
+ }
@@ -0,0 +1,47 @@
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
+ import type { AdminBankAccountDto } from './AdminBankAccountDto';
13
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
14
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface ListBankAccounts200Response
19
+ */
20
+ export interface ListBankAccounts200Response {
21
+ /**
22
+ *
23
+ * @type {Array<AdminBankAccountDto>}
24
+ * @memberof ListBankAccounts200Response
25
+ */
26
+ data: Array<AdminBankAccountDto>;
27
+ /**
28
+ *
29
+ * @type {PaginateResponseMeta}
30
+ * @memberof ListBankAccounts200Response
31
+ */
32
+ meta: PaginateResponseMeta;
33
+ /**
34
+ *
35
+ * @type {PaginateResponseLinks}
36
+ * @memberof ListBankAccounts200Response
37
+ */
38
+ links: PaginateResponseLinks;
39
+ }
40
+ /**
41
+ * Check if a given object implements the ListBankAccounts200Response interface.
42
+ */
43
+ export declare function instanceOfListBankAccounts200Response(value: object): value is ListBankAccounts200Response;
44
+ export declare function ListBankAccounts200ResponseFromJSON(json: any): ListBankAccounts200Response;
45
+ export declare function ListBankAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBankAccounts200Response;
46
+ export declare function ListBankAccounts200ResponseToJSON(json: any): ListBankAccounts200Response;
47
+ export declare function ListBankAccounts200ResponseToJSONTyped(value?: ListBankAccounts200Response | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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.instanceOfListBankAccounts200Response = instanceOfListBankAccounts200Response;
17
+ exports.ListBankAccounts200ResponseFromJSON = ListBankAccounts200ResponseFromJSON;
18
+ exports.ListBankAccounts200ResponseFromJSONTyped = ListBankAccounts200ResponseFromJSONTyped;
19
+ exports.ListBankAccounts200ResponseToJSON = ListBankAccounts200ResponseToJSON;
20
+ exports.ListBankAccounts200ResponseToJSONTyped = ListBankAccounts200ResponseToJSONTyped;
21
+ var AdminBankAccountDto_1 = require("./AdminBankAccountDto");
22
+ var PaginateResponseLinks_1 = require("./PaginateResponseLinks");
23
+ var PaginateResponseMeta_1 = require("./PaginateResponseMeta");
24
+ /**
25
+ * Check if a given object implements the ListBankAccounts200Response interface.
26
+ */
27
+ function instanceOfListBankAccounts200Response(value) {
28
+ if (!('data' in value) || value['data'] === undefined)
29
+ return false;
30
+ if (!('meta' in value) || value['meta'] === undefined)
31
+ return false;
32
+ if (!('links' in value) || value['links'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function ListBankAccounts200ResponseFromJSON(json) {
37
+ return ListBankAccounts200ResponseFromJSONTyped(json, false);
38
+ }
39
+ function ListBankAccounts200ResponseFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'data': (json['data'].map(AdminBankAccountDto_1.AdminBankAccountDtoFromJSON)),
45
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaFromJSON)(json['meta']),
46
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksFromJSON)(json['links']),
47
+ };
48
+ }
49
+ function ListBankAccounts200ResponseToJSON(json) {
50
+ return ListBankAccounts200ResponseToJSONTyped(json, false);
51
+ }
52
+ function ListBankAccounts200ResponseToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'data': (value['data'].map(AdminBankAccountDto_1.AdminBankAccountDtoToJSON)),
59
+ 'meta': (0, PaginateResponseMeta_1.PaginateResponseMetaToJSON)(value['meta']),
60
+ 'links': (0, PaginateResponseLinks_1.PaginateResponseLinksToJSON)(value['links']),
61
+ };
62
+ }
@@ -14,7 +14,9 @@ export * from './AccountSettingsSidnDto';
14
14
  export * from './AddressDto';
15
15
  export * from './AdminAccountLoginDto';
16
16
  export * from './AdminAccountSettingsInput';
17
+ export * from './AdminBankAccountDto';
17
18
  export * from './AdminGetAllDomainTransfers200Response';
19
+ export * from './AdminVerificationDepositDto';
18
20
  export * from './AirwallexBankAccountDetailsDto';
19
21
  export * from './AirwallexBankAccountDetailsDtoInstitution';
20
22
  export * from './AirwallexBankAccountDetailsDtoLocalMethod';
@@ -124,6 +126,7 @@ export * from './ListAccountDto';
124
126
  export * from './ListAccountMetricsDto';
125
127
  export * from './ListAccountUserDto';
126
128
  export * from './ListAccounts200Response';
129
+ export * from './ListBankAccounts200Response';
127
130
  export * from './ListDomains200Response';
128
131
  export * from './ListLeadMessagesDto';
129
132
  export * from './LoginDto';
@@ -32,7 +32,9 @@ __exportStar(require("./AccountSettingsSidnDto"), exports);
32
32
  __exportStar(require("./AddressDto"), exports);
33
33
  __exportStar(require("./AdminAccountLoginDto"), exports);
34
34
  __exportStar(require("./AdminAccountSettingsInput"), exports);
35
+ __exportStar(require("./AdminBankAccountDto"), exports);
35
36
  __exportStar(require("./AdminGetAllDomainTransfers200Response"), exports);
37
+ __exportStar(require("./AdminVerificationDepositDto"), exports);
36
38
  __exportStar(require("./AirwallexBankAccountDetailsDto"), exports);
37
39
  __exportStar(require("./AirwallexBankAccountDetailsDtoInstitution"), exports);
38
40
  __exportStar(require("./AirwallexBankAccountDetailsDtoLocalMethod"), exports);
@@ -142,6 +144,7 @@ __exportStar(require("./ListAccountDto"), exports);
142
144
  __exportStar(require("./ListAccountMetricsDto"), exports);
143
145
  __exportStar(require("./ListAccountUserDto"), exports);
144
146
  __exportStar(require("./ListAccounts200Response"), exports);
147
+ __exportStar(require("./ListBankAccounts200Response"), exports);
145
148
  __exportStar(require("./ListDomains200Response"), exports);
146
149
  __exportStar(require("./ListLeadMessagesDto"), exports);
147
150
  __exportStar(require("./LoginDto"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -29,6 +29,7 @@ import type {
29
29
  GetAllSubscriptions200Response,
30
30
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto,
31
31
  ListAccounts200Response,
32
+ ListBankAccounts200Response,
32
33
  ListDomains200Response,
33
34
  NotFoundException,
34
35
  SubscriptionDetailsDto,
@@ -64,6 +65,8 @@ import {
64
65
  IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDtoToJSON,
65
66
  ListAccounts200ResponseFromJSON,
66
67
  ListAccounts200ResponseToJSON,
68
+ ListBankAccounts200ResponseFromJSON,
69
+ ListBankAccounts200ResponseToJSON,
67
70
  ListDomains200ResponseFromJSON,
68
71
  ListDomains200ResponseToJSON,
69
72
  NotFoundExceptionFromJSON,
@@ -148,6 +151,13 @@ export interface AdminApiListAccountsRequest {
148
151
  sortBy?: Array<string>;
149
152
  }
150
153
 
154
+ export interface AdminApiListBankAccountsRequest {
155
+ filter?: object;
156
+ page?: number;
157
+ limit?: number;
158
+ sortBy?: Array<string>;
159
+ }
160
+
151
161
  export interface AdminApiListDomainsRequest {
152
162
  filter?: object;
153
163
  page?: number;
@@ -793,6 +803,56 @@ export class AdminApi extends runtime.BaseAPI {
793
803
  return await response.value();
794
804
  }
795
805
 
806
+ /**
807
+ *
808
+ */
809
+ async listBankAccountsRaw(requestParameters: AdminApiListBankAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListBankAccounts200Response>> {
810
+ const queryParameters: any = {};
811
+
812
+ if (requestParameters['filter'] != null) {
813
+ queryParameters['filter'] = requestParameters['filter'];
814
+ }
815
+
816
+ if (requestParameters['page'] != null) {
817
+ queryParameters['page'] = requestParameters['page'];
818
+ }
819
+
820
+ if (requestParameters['limit'] != null) {
821
+ queryParameters['limit'] = requestParameters['limit'];
822
+ }
823
+
824
+ if (requestParameters['sortBy'] != null) {
825
+ queryParameters['sortBy'] = requestParameters['sortBy'];
826
+ }
827
+
828
+ const headerParameters: runtime.HTTPHeaders = {};
829
+
830
+ if (this.configuration && this.configuration.accessToken) {
831
+ const token = this.configuration.accessToken;
832
+ const tokenString = await token("bearer", []);
833
+
834
+ if (tokenString) {
835
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
836
+ }
837
+ }
838
+ const response = await this.request({
839
+ path: `/admin/bank-accounts/list`,
840
+ method: 'GET',
841
+ headers: headerParameters,
842
+ query: queryParameters,
843
+ }, initOverrides);
844
+
845
+ return new runtime.JSONApiResponse(response, (jsonValue) => ListBankAccounts200ResponseFromJSON(jsonValue));
846
+ }
847
+
848
+ /**
849
+ *
850
+ */
851
+ async listBankAccounts(requestParameters: AdminApiListBankAccountsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListBankAccounts200Response> {
852
+ const response = await this.listBankAccountsRaw(requestParameters, initOverrides);
853
+ return await response.value();
854
+ }
855
+
796
856
  /**
797
857
  *
798
858
  */
@@ -0,0 +1,85 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ThrottlerException,
19
+ ValidationException,
20
+ } from '../models/index';
21
+ import {
22
+ ThrottlerExceptionFromJSON,
23
+ ThrottlerExceptionToJSON,
24
+ ValidationExceptionFromJSON,
25
+ ValidationExceptionToJSON,
26
+ } from '../models/index';
27
+
28
+ export interface AirwallexPublicApiPostAirwallexWebhookRequest {
29
+ xSignature: string;
30
+ xTimestamp: string;
31
+ }
32
+
33
+ /**
34
+ *
35
+ */
36
+ export class AirwallexPublicApi extends runtime.BaseAPI {
37
+
38
+ /**
39
+ *
40
+ */
41
+ async postAirwallexWebhookRaw(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
42
+ if (requestParameters['xSignature'] == null) {
43
+ throw new runtime.RequiredError(
44
+ 'xSignature',
45
+ 'Required parameter "xSignature" was null or undefined when calling postAirwallexWebhook().'
46
+ );
47
+ }
48
+
49
+ if (requestParameters['xTimestamp'] == null) {
50
+ throw new runtime.RequiredError(
51
+ 'xTimestamp',
52
+ 'Required parameter "xTimestamp" was null or undefined when calling postAirwallexWebhook().'
53
+ );
54
+ }
55
+
56
+ const queryParameters: any = {};
57
+
58
+ const headerParameters: runtime.HTTPHeaders = {};
59
+
60
+ if (requestParameters['xSignature'] != null) {
61
+ headerParameters['x-signature'] = String(requestParameters['xSignature']);
62
+ }
63
+
64
+ if (requestParameters['xTimestamp'] != null) {
65
+ headerParameters['x-timestamp'] = String(requestParameters['xTimestamp']);
66
+ }
67
+
68
+ const response = await this.request({
69
+ path: `/airwallex/webhook`,
70
+ method: 'POST',
71
+ headers: headerParameters,
72
+ query: queryParameters,
73
+ }, initOverrides);
74
+
75
+ return new runtime.VoidApiResponse(response);
76
+ }
77
+
78
+ /**
79
+ *
80
+ */
81
+ async postAirwallexWebhook(requestParameters: AirwallexPublicApiPostAirwallexWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
82
+ await this.postAirwallexWebhookRaw(requestParameters, initOverrides);
83
+ }
84
+
85
+ }
package/src/apis/index.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  export * from './AccountsApi';
4
4
  export * from './AccountsPublicApi';
5
5
  export * from './AdminApi';
6
+ export * from './AirwallexPublicApi';
6
7
  export * from './BankAccountsApi';
7
8
  export * from './BuyersApi';
8
9
  export * from './BuyersPublicApi';
@@ -0,0 +1,99 @@
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 { AccountBankAccountDto } from './AccountBankAccountDto';
17
+ import {
18
+ AccountBankAccountDtoFromJSON,
19
+ AccountBankAccountDtoFromJSONTyped,
20
+ AccountBankAccountDtoToJSON,
21
+ AccountBankAccountDtoToJSONTyped,
22
+ } from './AccountBankAccountDto';
23
+ import type { AdminVerificationDepositDto } from './AdminVerificationDepositDto';
24
+ import {
25
+ AdminVerificationDepositDtoFromJSON,
26
+ AdminVerificationDepositDtoFromJSONTyped,
27
+ AdminVerificationDepositDtoToJSON,
28
+ AdminVerificationDepositDtoToJSONTyped,
29
+ } from './AdminVerificationDepositDto';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface AdminBankAccountDto
35
+ */
36
+ export interface AdminBankAccountDto {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof AdminBankAccountDto
41
+ */
42
+ accountName: string;
43
+ /**
44
+ *
45
+ * @type {AccountBankAccountDto}
46
+ * @memberof AdminBankAccountDto
47
+ */
48
+ bankAccount: AccountBankAccountDto;
49
+ /**
50
+ *
51
+ * @type {Array<AdminVerificationDepositDto>}
52
+ * @memberof AdminBankAccountDto
53
+ */
54
+ relatedVerificationDeposits: Array<AdminVerificationDepositDto>;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the AdminBankAccountDto interface.
59
+ */
60
+ export function instanceOfAdminBankAccountDto(value: object): value is AdminBankAccountDto {
61
+ if (!('accountName' in value) || value['accountName'] === undefined) return false;
62
+ if (!('bankAccount' in value) || value['bankAccount'] === undefined) return false;
63
+ if (!('relatedVerificationDeposits' in value) || value['relatedVerificationDeposits'] === undefined) return false;
64
+ return true;
65
+ }
66
+
67
+ export function AdminBankAccountDtoFromJSON(json: any): AdminBankAccountDto {
68
+ return AdminBankAccountDtoFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function AdminBankAccountDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBankAccountDto {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'accountName': json['accountName'],
78
+ 'bankAccount': AccountBankAccountDtoFromJSON(json['bankAccount']),
79
+ 'relatedVerificationDeposits': ((json['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoFromJSON)),
80
+ };
81
+ }
82
+
83
+ export function AdminBankAccountDtoToJSON(json: any): AdminBankAccountDto {
84
+ return AdminBankAccountDtoToJSONTyped(json, false);
85
+ }
86
+
87
+ export function AdminBankAccountDtoToJSONTyped(value?: AdminBankAccountDto | null, ignoreDiscriminator: boolean = false): any {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+
92
+ return {
93
+
94
+ 'accountName': value['accountName'],
95
+ 'bankAccount': AccountBankAccountDtoToJSON(value['bankAccount']),
96
+ 'relatedVerificationDeposits': ((value['relatedVerificationDeposits'] as Array<any>).map(AdminVerificationDepositDtoToJSON)),
97
+ };
98
+ }
99
+
@@ -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 AdminVerificationDepositDto
20
+ */
21
+ export interface AdminVerificationDepositDto {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof AdminVerificationDepositDto
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {object}
31
+ * @memberof AdminVerificationDepositDto
32
+ */
33
+ raw: object;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the AdminVerificationDepositDto interface.
38
+ */
39
+ export function instanceOfAdminVerificationDepositDto(value: object): value is AdminVerificationDepositDto {
40
+ if (!('id' in value) || value['id'] === undefined) return false;
41
+ if (!('raw' in value) || value['raw'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function AdminVerificationDepositDtoFromJSON(json: any): AdminVerificationDepositDto {
46
+ return AdminVerificationDepositDtoFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function AdminVerificationDepositDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminVerificationDepositDto {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'id': json['id'],
56
+ 'raw': json['raw'],
57
+ };
58
+ }
59
+
60
+ export function AdminVerificationDepositDtoToJSON(json: any): AdminVerificationDepositDto {
61
+ return AdminVerificationDepositDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AdminVerificationDepositDtoToJSONTyped(value?: AdminVerificationDepositDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'id': value['id'],
72
+ 'raw': value['raw'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,106 @@
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 { AdminBankAccountDto } from './AdminBankAccountDto';
17
+ import {
18
+ AdminBankAccountDtoFromJSON,
19
+ AdminBankAccountDtoFromJSONTyped,
20
+ AdminBankAccountDtoToJSON,
21
+ AdminBankAccountDtoToJSONTyped,
22
+ } from './AdminBankAccountDto';
23
+ import type { PaginateResponseLinks } from './PaginateResponseLinks';
24
+ import {
25
+ PaginateResponseLinksFromJSON,
26
+ PaginateResponseLinksFromJSONTyped,
27
+ PaginateResponseLinksToJSON,
28
+ PaginateResponseLinksToJSONTyped,
29
+ } from './PaginateResponseLinks';
30
+ import type { PaginateResponseMeta } from './PaginateResponseMeta';
31
+ import {
32
+ PaginateResponseMetaFromJSON,
33
+ PaginateResponseMetaFromJSONTyped,
34
+ PaginateResponseMetaToJSON,
35
+ PaginateResponseMetaToJSONTyped,
36
+ } from './PaginateResponseMeta';
37
+
38
+ /**
39
+ *
40
+ * @export
41
+ * @interface ListBankAccounts200Response
42
+ */
43
+ export interface ListBankAccounts200Response {
44
+ /**
45
+ *
46
+ * @type {Array<AdminBankAccountDto>}
47
+ * @memberof ListBankAccounts200Response
48
+ */
49
+ data: Array<AdminBankAccountDto>;
50
+ /**
51
+ *
52
+ * @type {PaginateResponseMeta}
53
+ * @memberof ListBankAccounts200Response
54
+ */
55
+ meta: PaginateResponseMeta;
56
+ /**
57
+ *
58
+ * @type {PaginateResponseLinks}
59
+ * @memberof ListBankAccounts200Response
60
+ */
61
+ links: PaginateResponseLinks;
62
+ }
63
+
64
+ /**
65
+ * Check if a given object implements the ListBankAccounts200Response interface.
66
+ */
67
+ export function instanceOfListBankAccounts200Response(value: object): value is ListBankAccounts200Response {
68
+ if (!('data' in value) || value['data'] === undefined) return false;
69
+ if (!('meta' in value) || value['meta'] === undefined) return false;
70
+ if (!('links' in value) || value['links'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function ListBankAccounts200ResponseFromJSON(json: any): ListBankAccounts200Response {
75
+ return ListBankAccounts200ResponseFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function ListBankAccounts200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListBankAccounts200Response {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'data': ((json['data'] as Array<any>).map(AdminBankAccountDtoFromJSON)),
85
+ 'meta': PaginateResponseMetaFromJSON(json['meta']),
86
+ 'links': PaginateResponseLinksFromJSON(json['links']),
87
+ };
88
+ }
89
+
90
+ export function ListBankAccounts200ResponseToJSON(json: any): ListBankAccounts200Response {
91
+ return ListBankAccounts200ResponseToJSONTyped(json, false);
92
+ }
93
+
94
+ export function ListBankAccounts200ResponseToJSONTyped(value?: ListBankAccounts200Response | null, ignoreDiscriminator: boolean = false): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+
99
+ return {
100
+
101
+ 'data': ((value['data'] as Array<any>).map(AdminBankAccountDtoToJSON)),
102
+ 'meta': PaginateResponseMetaToJSON(value['meta']),
103
+ 'links': PaginateResponseLinksToJSON(value['links']),
104
+ };
105
+ }
106
+
@@ -16,7 +16,9 @@ export * from './AccountSettingsSidnDto';
16
16
  export * from './AddressDto';
17
17
  export * from './AdminAccountLoginDto';
18
18
  export * from './AdminAccountSettingsInput';
19
+ export * from './AdminBankAccountDto';
19
20
  export * from './AdminGetAllDomainTransfers200Response';
21
+ export * from './AdminVerificationDepositDto';
20
22
  export * from './AirwallexBankAccountDetailsDto';
21
23
  export * from './AirwallexBankAccountDetailsDtoInstitution';
22
24
  export * from './AirwallexBankAccountDetailsDtoLocalMethod';
@@ -126,6 +128,7 @@ export * from './ListAccountDto';
126
128
  export * from './ListAccountMetricsDto';
127
129
  export * from './ListAccountUserDto';
128
130
  export * from './ListAccounts200Response';
131
+ export * from './ListBankAccounts200Response';
129
132
  export * from './ListDomains200Response';
130
133
  export * from './ListLeadMessagesDto';
131
134
  export * from './LoginDto';