@randock/nameshift-api-client 0.0.110 → 0.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.js +1 -1
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +109 -0
- package/dist/apis/DomainsApi.d.ts +3 -3
- package/dist/apis/DomainsApi.js +1 -1
- package/dist/apis/LeadsApi.d.ts +3 -3
- package/dist/apis/LeadsApi.js +1 -1
- package/dist/models/AccountDto.d.ts +7 -0
- package/dist/models/AccountDto.js +5 -0
- package/dist/models/AccountSettingsDto.d.ts +50 -0
- package/dist/models/AccountSettingsDto.js +59 -0
- package/dist/models/AdminAccountSettingsInput.d.ts +31 -0
- package/dist/models/AdminAccountSettingsInput.js +44 -0
- package/dist/models/BillingInformationDto.d.ts +79 -0
- package/dist/models/BillingInformationDto.js +82 -0
- package/dist/models/CompanyInformationDto.d.ts +44 -0
- package/dist/models/CompanyInformationDto.js +55 -0
- package/dist/models/CompanyTaxIdDto.d.ts +43 -0
- package/dist/models/CompanyTaxIdDto.js +54 -0
- package/dist/models/CreateAccountPaymentProviderInput.d.ts +3 -2
- package/dist/models/CreateAccountPaymentProviderInput.js +4 -3
- package/dist/models/IntersectionAccountDtoWithSettingsDto.d.ts +7 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDto.js +5 -0
- package/dist/models/List200Response.d.ts +3 -3
- package/dist/models/List200Response.js +3 -3
- package/dist/models/List200Response1.d.ts +3 -3
- package/dist/models/List200Response1.js +3 -3
- package/dist/models/ThrottlerException.d.ts +43 -0
- package/dist/models/ThrottlerException.js +54 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +4 -1
- package/src/apis/AccountsPublicApi.ts +3 -0
- package/src/apis/AdminApi.ts +109 -0
- package/src/apis/BuyersApi.ts +3 -0
- package/src/apis/BuyersPublicApi.ts +3 -0
- package/src/apis/DomainsApi.ts +9 -6
- package/src/apis/DomainsPublicApi.ts +3 -0
- package/src/apis/LeadsApi.ts +9 -6
- package/src/apis/LeadsPublicApi.ts +3 -0
- package/src/apis/OrdersPublicApi.ts +3 -0
- package/src/apis/StripePublicApi.ts +3 -0
- package/src/apis/UsersApi.ts +3 -0
- package/src/apis/UsersPublicApi.ts +3 -0
- package/src/models/AccountDto.ts +15 -0
- package/src/models/AccountSettingsDto.ts +95 -0
- package/src/models/AdminAccountSettingsInput.ts +60 -0
- package/src/models/BillingInformationDto.ts +141 -0
- package/src/models/CompanyInformationDto.ts +86 -0
- package/src/models/CompanyTaxIdDto.ts +79 -0
- package/src/models/CreateAccountPaymentProviderInput.ts +12 -5
- package/src/models/IntersectionAccountDtoWithSettingsDto.ts +15 -0
- package/src/models/List200Response.ts +9 -9
- package/src/models/List200Response1.ts +9 -9
- package/src/models/ThrottlerException.ts +79 -0
- package/src/models/index.ts +6 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -21,13 +21,16 @@ src/index.ts
|
|
|
21
21
|
src/models/AccountDto.ts
|
|
22
22
|
src/models/AccountMetricsDto.ts
|
|
23
23
|
src/models/AccountPaymentProviderSessionDto.ts
|
|
24
|
+
src/models/AccountSettingsDto.ts
|
|
24
25
|
src/models/AccountSettingsInput.ts
|
|
25
26
|
src/models/AddressDto.ts
|
|
27
|
+
src/models/AdminAccountSettingsInput.ts
|
|
26
28
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
27
29
|
src/models/BadRequestException.ts
|
|
28
30
|
src/models/BatchReadBuyerLeadMessageInput.ts
|
|
29
31
|
src/models/BatchReadSellerLeadMessageInput.ts
|
|
30
32
|
src/models/BatchUpdateDomainsInput.ts
|
|
33
|
+
src/models/BillingInformationDto.ts
|
|
31
34
|
src/models/BuyerDomainTransferAuthCodeDto.ts
|
|
32
35
|
src/models/BuyerDomainTransferListItemDomainDto.ts
|
|
33
36
|
src/models/BuyerDomainTransferListItemDto.ts
|
|
@@ -36,6 +39,8 @@ src/models/BuyerLeadListItemDto.ts
|
|
|
36
39
|
src/models/BuyerSecurityUserDto.ts
|
|
37
40
|
src/models/ChangeOrderStatusInput.ts
|
|
38
41
|
src/models/ChartDataPoint.ts
|
|
42
|
+
src/models/CompanyInformationDto.ts
|
|
43
|
+
src/models/CompanyTaxIdDto.ts
|
|
39
44
|
src/models/ConflictException.ts
|
|
40
45
|
src/models/CreateAccountPaymentProviderInput.ts
|
|
41
46
|
src/models/CreateBuyerLeadMessageInput.ts
|
|
@@ -125,6 +130,7 @@ src/models/SetDomainTransferConfirmationInput.ts
|
|
|
125
130
|
src/models/SetNewPasswordInput.ts
|
|
126
131
|
src/models/StoreBuyerLocaleInput.ts
|
|
127
132
|
src/models/StoreUserLocaleInput.ts
|
|
133
|
+
src/models/ThrottlerException.ts
|
|
128
134
|
src/models/UpdateDomainInput.ts
|
|
129
135
|
src/models/UpdateDomainTransferAuthCodeInput.ts
|
|
130
136
|
src/models/UpdateLeadInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.112
|
|
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.
|
|
39
|
+
npm install @randock/nameshift-api-client@0.0.112 --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
|
-
|
|
47
|
+
219b60cbea38bbca6b56c360767329f717b7ca240c35068735bd91f3064f830abfbce763641b1c4ef4964c39d57c40b8
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -263,7 +263,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
263
263
|
_a.label = 2;
|
|
264
264
|
case 2: return [4 /*yield*/, this.request({
|
|
265
265
|
path: "/private/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
266
|
-
method: '
|
|
266
|
+
method: 'PATCH',
|
|
267
267
|
headers: headerParameters,
|
|
268
268
|
query: queryParameters,
|
|
269
269
|
body: (0, index_1.AccountSettingsInputToJSON)(requestParameters['accountSettingsInput']),
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response } from '../models/index';
|
|
13
|
+
import type { AccountSettingsDto, AdminAccountSettingsInput, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, DomainTransferDetailsDto, GetAllOrders200Response, GetAllOwnedDomains200Response, ListAccounts200Response } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -21,6 +21,9 @@ export interface AdminApiChangeOrderStatusRequest {
|
|
|
21
21
|
orderId: string;
|
|
22
22
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
23
23
|
}
|
|
24
|
+
export interface AdminApiGetAccountSettingsRequest {
|
|
25
|
+
accountId: string;
|
|
26
|
+
}
|
|
24
27
|
export interface AdminApiGetAdminDomainTransferDetailsRequest {
|
|
25
28
|
transferId: string;
|
|
26
29
|
}
|
|
@@ -47,6 +50,10 @@ export interface AdminApiListAccountsRequest {
|
|
|
47
50
|
limit?: number;
|
|
48
51
|
sortBy?: Array<string>;
|
|
49
52
|
}
|
|
53
|
+
export interface AdminApiUpdateAccountSettingsRequest {
|
|
54
|
+
accountId: string;
|
|
55
|
+
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
56
|
+
}
|
|
50
57
|
/**
|
|
51
58
|
*
|
|
52
59
|
*/
|
|
@@ -67,6 +74,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
67
74
|
*
|
|
68
75
|
*/
|
|
69
76
|
changeOrderStatus(requestParameters: AdminApiChangeOrderStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
getAccountSettingsRaw(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountSettingsDto>>;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
getAccountSettings(requestParameters: AdminApiGetAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountSettingsDto>;
|
|
70
85
|
/**
|
|
71
86
|
*
|
|
72
87
|
*/
|
|
@@ -107,4 +122,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
107
122
|
*
|
|
108
123
|
*/
|
|
109
124
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
updateAccountSettingsRaw(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
updateAccountSettings(requestParameters: AdminApiUpdateAccountSettingsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
110
133
|
}
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -194,6 +194,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
*/
|
|
200
|
+
AdminApi.prototype.getAccountSettingsRaw = function (requestParameters, initOverrides) {
|
|
201
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
202
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
203
|
+
return __generator(this, function (_a) {
|
|
204
|
+
switch (_a.label) {
|
|
205
|
+
case 0:
|
|
206
|
+
if (requestParameters['accountId'] == null) {
|
|
207
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountSettings().');
|
|
208
|
+
}
|
|
209
|
+
queryParameters = {};
|
|
210
|
+
headerParameters = {};
|
|
211
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
212
|
+
token = this.configuration.accessToken;
|
|
213
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
214
|
+
case 1:
|
|
215
|
+
tokenString = _a.sent();
|
|
216
|
+
if (tokenString) {
|
|
217
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
218
|
+
}
|
|
219
|
+
_a.label = 2;
|
|
220
|
+
case 2: return [4 /*yield*/, this.request({
|
|
221
|
+
path: "/admin/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
222
|
+
method: 'GET',
|
|
223
|
+
headers: headerParameters,
|
|
224
|
+
query: queryParameters,
|
|
225
|
+
}, initOverrides)];
|
|
226
|
+
case 3:
|
|
227
|
+
response = _a.sent();
|
|
228
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountSettingsDtoFromJSON)(jsonValue); })];
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
*
|
|
235
|
+
*/
|
|
236
|
+
AdminApi.prototype.getAccountSettings = function (requestParameters, initOverrides) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
238
|
+
var response;
|
|
239
|
+
return __generator(this, function (_a) {
|
|
240
|
+
switch (_a.label) {
|
|
241
|
+
case 0: return [4 /*yield*/, this.getAccountSettingsRaw(requestParameters, initOverrides)];
|
|
242
|
+
case 1:
|
|
243
|
+
response = _a.sent();
|
|
244
|
+
return [4 /*yield*/, response.value()];
|
|
245
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
});
|
|
249
|
+
};
|
|
197
250
|
/**
|
|
198
251
|
*
|
|
199
252
|
*/
|
|
@@ -493,6 +546,62 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
493
546
|
});
|
|
494
547
|
});
|
|
495
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
*/
|
|
552
|
+
AdminApi.prototype.updateAccountSettingsRaw = function (requestParameters, initOverrides) {
|
|
553
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
554
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
555
|
+
return __generator(this, function (_a) {
|
|
556
|
+
switch (_a.label) {
|
|
557
|
+
case 0:
|
|
558
|
+
if (requestParameters['accountId'] == null) {
|
|
559
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAccountSettings().');
|
|
560
|
+
}
|
|
561
|
+
if (requestParameters['adminAccountSettingsInput'] == null) {
|
|
562
|
+
throw new runtime.RequiredError('adminAccountSettingsInput', 'Required parameter "adminAccountSettingsInput" was null or undefined when calling updateAccountSettings().');
|
|
563
|
+
}
|
|
564
|
+
queryParameters = {};
|
|
565
|
+
headerParameters = {};
|
|
566
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
567
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
568
|
+
token = this.configuration.accessToken;
|
|
569
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
570
|
+
case 1:
|
|
571
|
+
tokenString = _a.sent();
|
|
572
|
+
if (tokenString) {
|
|
573
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
574
|
+
}
|
|
575
|
+
_a.label = 2;
|
|
576
|
+
case 2: return [4 /*yield*/, this.request({
|
|
577
|
+
path: "/admin/accounts/{accountId}/settings".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
578
|
+
method: 'PATCH',
|
|
579
|
+
headers: headerParameters,
|
|
580
|
+
query: queryParameters,
|
|
581
|
+
body: (0, index_1.AdminAccountSettingsInputToJSON)(requestParameters['adminAccountSettingsInput']),
|
|
582
|
+
}, initOverrides)];
|
|
583
|
+
case 3:
|
|
584
|
+
response = _a.sent();
|
|
585
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
586
|
+
}
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
};
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
*/
|
|
593
|
+
AdminApi.prototype.updateAccountSettings = function (requestParameters, initOverrides) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
595
|
+
return __generator(this, function (_a) {
|
|
596
|
+
switch (_a.label) {
|
|
597
|
+
case 0: return [4 /*yield*/, this.updateAccountSettingsRaw(requestParameters, initOverrides)];
|
|
598
|
+
case 1:
|
|
599
|
+
_a.sent();
|
|
600
|
+
return [2 /*return*/];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
};
|
|
496
605
|
return AdminApi;
|
|
497
606
|
}(runtime.BaseAPI));
|
|
498
607
|
exports.AdminApi = AdminApi;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto,
|
|
13
|
+
import type { BatchUpdateDomainsInput, DeleteDomainsInput, DomainDto, GetAllDomainTransfers200Response, IntersectionDomainDtoWithHijackerDtoWithAccountDto, List200Response1, SellerDomainTransferDto, UpdateDomainInput, UpdateDomainTransferAuthCodeInput } from '../models/index';
|
|
14
14
|
export interface DomainsApiBatchImportRequest {
|
|
15
15
|
file?: Blob | null;
|
|
16
16
|
domains?: Array<string>;
|
|
@@ -113,11 +113,11 @@ export declare class DomainsApi extends runtime.BaseAPI {
|
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
115
|
*/
|
|
116
|
-
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
116
|
+
listRaw(requestParameters: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response1>>;
|
|
117
117
|
/**
|
|
118
118
|
*
|
|
119
119
|
*/
|
|
120
|
-
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
120
|
+
list(requestParameters?: DomainsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response1>;
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
*/
|
package/dist/apis/DomainsApi.js
CHANGED
|
@@ -511,7 +511,7 @@ var DomainsApi = /** @class */ (function (_super) {
|
|
|
511
511
|
}, initOverrides)];
|
|
512
512
|
case 3:
|
|
513
513
|
response = _a.sent();
|
|
514
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
514
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200Response1FromJSON)(jsonValue); })];
|
|
515
515
|
}
|
|
516
516
|
});
|
|
517
517
|
});
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto,
|
|
13
|
+
import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, IntersectionLeadDtoWithLeadDetailsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
|
|
14
14
|
export interface LeadsApiAcceptLeadOfferRequest {
|
|
15
15
|
leadId: string;
|
|
16
16
|
}
|
|
@@ -85,11 +85,11 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
85
85
|
/**
|
|
86
86
|
*
|
|
87
87
|
*/
|
|
88
|
-
listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
88
|
+
listRaw(requestParameters: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<List200Response>>;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
*/
|
|
92
|
-
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
92
|
+
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
95
95
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -386,7 +386,7 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
386
386
|
}, initOverrides)];
|
|
387
387
|
case 3:
|
|
388
388
|
response = _a.sent();
|
|
389
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
389
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.List200ResponseFromJSON)(jsonValue); })];
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
});
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { PaymentProviderDto } from './PaymentProviderDto';
|
|
13
13
|
import type { AccountMetricsDto } from './AccountMetricsDto';
|
|
14
|
+
import type { BillingInformationDto } from './BillingInformationDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -47,6 +48,12 @@ export interface AccountDto {
|
|
|
47
48
|
* @memberof AccountDto
|
|
48
49
|
*/
|
|
49
50
|
paymentProvider: PaymentProviderDto | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {BillingInformationDto}
|
|
54
|
+
* @memberof AccountDto
|
|
55
|
+
*/
|
|
56
|
+
billingInformation: BillingInformationDto | null;
|
|
50
57
|
}
|
|
51
58
|
/**
|
|
52
59
|
* Check if a given object implements the AccountDto interface.
|
|
@@ -19,6 +19,7 @@ exports.AccountDtoFromJSONTyped = AccountDtoFromJSONTyped;
|
|
|
19
19
|
exports.AccountDtoToJSON = AccountDtoToJSON;
|
|
20
20
|
var PaymentProviderDto_1 = require("./PaymentProviderDto");
|
|
21
21
|
var AccountMetricsDto_1 = require("./AccountMetricsDto");
|
|
22
|
+
var BillingInformationDto_1 = require("./BillingInformationDto");
|
|
22
23
|
/**
|
|
23
24
|
* Check if a given object implements the AccountDto interface.
|
|
24
25
|
*/
|
|
@@ -33,6 +34,8 @@ function instanceOfAccountDto(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('paymentProvider' in value) || value['paymentProvider'] === undefined)
|
|
35
36
|
return false;
|
|
37
|
+
if (!('billingInformation' in value) || value['billingInformation'] === undefined)
|
|
38
|
+
return false;
|
|
36
39
|
return true;
|
|
37
40
|
}
|
|
38
41
|
function AccountDtoFromJSON(json) {
|
|
@@ -48,6 +51,7 @@ function AccountDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
51
|
'name': json['name'],
|
|
49
52
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoFromJSON)(json['metrics']),
|
|
50
53
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoFromJSON)(json['paymentProvider']),
|
|
54
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoFromJSON)(json['billingInformation']),
|
|
51
55
|
};
|
|
52
56
|
}
|
|
53
57
|
function AccountDtoToJSON(value) {
|
|
@@ -60,5 +64,6 @@ function AccountDtoToJSON(value) {
|
|
|
60
64
|
'name': value['name'],
|
|
61
65
|
'metrics': (0, AccountMetricsDto_1.AccountMetricsDtoToJSON)(value['metrics']),
|
|
62
66
|
'paymentProvider': (0, PaymentProviderDto_1.PaymentProviderDtoToJSON)(value['paymentProvider']),
|
|
67
|
+
'billingInformation': (0, BillingInformationDto_1.BillingInformationDtoToJSON)(value['billingInformation']),
|
|
63
68
|
};
|
|
64
69
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { MoneyDto } from './MoneyDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountSettingsDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountSettingsDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {MoneyDto}
|
|
22
|
+
* @memberof AccountSettingsDto
|
|
23
|
+
*/
|
|
24
|
+
defaultStartingOffer: MoneyDto;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {MoneyDto}
|
|
28
|
+
* @memberof AccountSettingsDto
|
|
29
|
+
*/
|
|
30
|
+
minBuyNow: MoneyDto;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AccountSettingsDto
|
|
35
|
+
*/
|
|
36
|
+
defaultCurrencyCode: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof AccountSettingsDto
|
|
41
|
+
*/
|
|
42
|
+
automaticPayouts: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AccountSettingsDto interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAccountSettingsDto(value: object): value is AccountSettingsDto;
|
|
48
|
+
export declare function AccountSettingsDtoFromJSON(json: any): AccountSettingsDto;
|
|
49
|
+
export declare function AccountSettingsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountSettingsDto;
|
|
50
|
+
export declare function AccountSettingsDtoToJSON(value?: AccountSettingsDto | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfAccountSettingsDto = instanceOfAccountSettingsDto;
|
|
17
|
+
exports.AccountSettingsDtoFromJSON = AccountSettingsDtoFromJSON;
|
|
18
|
+
exports.AccountSettingsDtoFromJSONTyped = AccountSettingsDtoFromJSONTyped;
|
|
19
|
+
exports.AccountSettingsDtoToJSON = AccountSettingsDtoToJSON;
|
|
20
|
+
var MoneyDto_1 = require("./MoneyDto");
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountSettingsDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountSettingsDto(value) {
|
|
25
|
+
if (!('defaultStartingOffer' in value) || value['defaultStartingOffer'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('minBuyNow' in value) || value['minBuyNow'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('defaultCurrencyCode' in value) || value['defaultCurrencyCode'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('automaticPayouts' in value) || value['automaticPayouts'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function AccountSettingsDtoFromJSON(json) {
|
|
36
|
+
return AccountSettingsDtoFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['defaultStartingOffer']),
|
|
44
|
+
'minBuyNow': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minBuyNow']),
|
|
45
|
+
'defaultCurrencyCode': json['defaultCurrencyCode'],
|
|
46
|
+
'automaticPayouts': json['automaticPayouts'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function AccountSettingsDtoToJSON(value) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'defaultStartingOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['defaultStartingOffer']),
|
|
55
|
+
'minBuyNow': (0, MoneyDto_1.MoneyDtoToJSON)(value['minBuyNow']),
|
|
56
|
+
'defaultCurrencyCode': value['defaultCurrencyCode'],
|
|
57
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 AdminAccountSettingsInput
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminAccountSettingsInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AdminAccountSettingsInput
|
|
22
|
+
*/
|
|
23
|
+
automaticPayouts?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminAccountSettingsInput(value: object): value is AdminAccountSettingsInput;
|
|
29
|
+
export declare function AdminAccountSettingsInputFromJSON(json: any): AdminAccountSettingsInput;
|
|
30
|
+
export declare function AdminAccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminAccountSettingsInput;
|
|
31
|
+
export declare function AdminAccountSettingsInputToJSON(value?: AdminAccountSettingsInput | null): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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.instanceOfAdminAccountSettingsInput = instanceOfAdminAccountSettingsInput;
|
|
17
|
+
exports.AdminAccountSettingsInputFromJSON = AdminAccountSettingsInputFromJSON;
|
|
18
|
+
exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJSONTyped;
|
|
19
|
+
exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the AdminAccountSettingsInput interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfAdminAccountSettingsInput(value) {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
function AdminAccountSettingsInputFromJSON(json) {
|
|
27
|
+
return AdminAccountSettingsInputFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'automaticPayouts': json['automaticPayouts'] == null ? undefined : json['automaticPayouts'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function AdminAccountSettingsInputToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'automaticPayouts': value['automaticPayouts'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { CompanyInformationDto } from './CompanyInformationDto';
|
|
13
|
+
import type { AddressDto } from './AddressDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BillingInformationDto
|
|
18
|
+
*/
|
|
19
|
+
export interface BillingInformationDto {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof BillingInformationDto
|
|
24
|
+
*/
|
|
25
|
+
type: BillingInformationDtoTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BillingInformationDto
|
|
30
|
+
*/
|
|
31
|
+
email: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof BillingInformationDto
|
|
36
|
+
*/
|
|
37
|
+
firstName: string | null;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BillingInformationDto
|
|
42
|
+
*/
|
|
43
|
+
lastName: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof BillingInformationDto
|
|
48
|
+
*/
|
|
49
|
+
phone: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {AddressDto}
|
|
53
|
+
* @memberof BillingInformationDto
|
|
54
|
+
*/
|
|
55
|
+
address: AddressDto | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {CompanyInformationDto}
|
|
59
|
+
* @memberof BillingInformationDto
|
|
60
|
+
*/
|
|
61
|
+
companyInfo: CompanyInformationDto | null;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* @export
|
|
65
|
+
*/
|
|
66
|
+
export declare const BillingInformationDtoTypeEnum: {
|
|
67
|
+
readonly COMPANY: "company";
|
|
68
|
+
readonly GOVERNMENT_ENTITY: "government_entity";
|
|
69
|
+
readonly INDIVIDUAL: "individual";
|
|
70
|
+
readonly NON_PROFIT: "non_profit";
|
|
71
|
+
};
|
|
72
|
+
export type BillingInformationDtoTypeEnum = typeof BillingInformationDtoTypeEnum[keyof typeof BillingInformationDtoTypeEnum];
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the BillingInformationDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export declare function instanceOfBillingInformationDto(value: object): value is BillingInformationDto;
|
|
77
|
+
export declare function BillingInformationDtoFromJSON(json: any): BillingInformationDto;
|
|
78
|
+
export declare function BillingInformationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingInformationDto;
|
|
79
|
+
export declare function BillingInformationDtoToJSON(value?: BillingInformationDto | null): any;
|