@randock/nameshift-api-client 0.0.227 → 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
@@ -174,6 +178,7 @@ src/models/PaginateResponse.ts
174
178
  src/models/PaginateResponseLinks.ts
175
179
  src/models/PaginateResponseMeta.ts
176
180
  src/models/ParsedDomainDto.ts
181
+ src/models/PublicAccountInformationDto.ts
177
182
  src/models/PublicDomainDto.ts
178
183
  src/models/PublicDomainDtoSeo.ts
179
184
  src/models/PublicDomainDtoSeoMoz.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.227
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.227 --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
- dbf86a8d4c12bdd5028424eb183d91c460c23f445c703efadb4176f2c2f3a1780f5455311ffc96fcebca586cfda4863c
47
+ 23df4a30a99aba9cce4cea9bf7c9f53c39a4f510b22a78b256c4afae207c4fba5ce2a5e15d9cbc53a1ff1eea4382cbef
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { RegisterAccountInput } from '../models/index';
13
+ import type { PublicAccountInformationDto, RegisterAccountInput } from '../models/index';
14
+ export interface AccountsPublicApiGetAccountInformationRequest {
15
+ accountId: string;
16
+ }
14
17
  export interface AccountsPublicApiRegisterRequest {
15
18
  registerAccountInput: RegisterAccountInput;
16
19
  }
@@ -18,6 +21,14 @@ export interface AccountsPublicApiRegisterRequest {
18
21
  *
19
22
  */
20
23
  export declare class AccountsPublicApi extends runtime.BaseAPI {
24
+ /**
25
+ *
26
+ */
27
+ getAccountInformationRaw(requestParameters: AccountsPublicApiGetAccountInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PublicAccountInformationDto>>;
28
+ /**
29
+ *
30
+ */
31
+ getAccountInformation(requestParameters: AccountsPublicApiGetAccountInformationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PublicAccountInformationDto>;
21
32
  /**
22
33
  *
23
34
  */
@@ -75,6 +75,50 @@ var AccountsPublicApi = /** @class */ (function (_super) {
75
75
  function AccountsPublicApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ *
80
+ */
81
+ AccountsPublicApi.prototype.getAccountInformationRaw = function (requestParameters, initOverrides) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, response;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters['accountId'] == null) {
88
+ throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountInformation().');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ return [4 /*yield*/, this.request({
93
+ path: "/accounts/{accountId}".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
94
+ method: 'GET',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ }, initOverrides)];
98
+ case 1:
99
+ response = _a.sent();
100
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PublicAccountInformationDtoFromJSON)(jsonValue); })];
101
+ }
102
+ });
103
+ });
104
+ };
105
+ /**
106
+ *
107
+ */
108
+ AccountsPublicApi.prototype.getAccountInformation = function (requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ var response;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0: return [4 /*yield*/, this.getAccountInformationRaw(requestParameters, initOverrides)];
114
+ case 1:
115
+ response = _a.sent();
116
+ return [4 /*yield*/, response.value()];
117
+ case 2: return [2 /*return*/, _a.sent()];
118
+ }
119
+ });
120
+ });
121
+ };
78
122
  /**
79
123
  *
80
124
  */
@@ -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;