@randock/nameshift-api-client 0.0.366 → 0.0.368
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 +29 -1
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +45 -1
- package/dist/apis/AdminApi.js +211 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +55 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +70 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +33 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.js +52 -0
- package/dist/models/AdminListAccountDto.d.ts +137 -0
- package/dist/models/{IntersectionListAccountDtoWithAccountCommissionDto.js → AdminListAccountDto.js} +17 -25
- package/dist/models/BulkCommissionActionsInput.d.ts +33 -0
- package/dist/models/BulkCommissionActionsInput.js +52 -0
- package/dist/models/BulkCommissionActionsInputActionsInner.d.ts +29 -0
- package/dist/models/BulkCommissionActionsInputActionsInner.js +58 -0
- package/dist/models/CommissionAccountDto.d.ts +44 -0
- package/dist/models/CommissionAccountDto.js +59 -0
- package/dist/models/CommissionAction.d.ts +26 -0
- package/dist/models/CommissionAction.js +52 -0
- package/dist/models/CommissionAddUpdateActionInput.d.ts +40 -0
- package/dist/models/CommissionAddUpdateActionInput.js +57 -0
- package/dist/models/CommissionConfigurationDto.d.ts +33 -0
- package/dist/models/CommissionConfigurationDto.js +52 -0
- package/dist/models/CommissionConfigurationDtoPayload.d.ts +27 -0
- package/dist/models/CommissionConfigurationDtoPayload.js +54 -0
- package/dist/models/CommissionConfigurationInput.d.ts +39 -0
- package/dist/models/CommissionConfigurationInput.js +56 -0
- package/dist/models/CommissionDeleteActionInput.d.ts +40 -0
- package/dist/models/CommissionDeleteActionInput.js +57 -0
- package/dist/models/CommissionDto.d.ts +112 -0
- package/dist/models/CommissionDto.js +110 -0
- package/dist/models/CommissionFactor.d.ts +25 -0
- package/dist/models/CommissionFactor.js +51 -0
- package/dist/models/CommissionListDto.d.ts +33 -0
- package/dist/models/CommissionListDto.js +52 -0
- package/dist/models/CommissionPayloadIdInput.d.ts +32 -0
- package/dist/models/CommissionPayloadIdInput.js +51 -0
- package/dist/models/CommissionPayloadInput.d.ts +99 -0
- package/dist/models/CommissionPayloadInput.js +101 -0
- package/dist/models/CommissionPercentageRangeDto.d.ts +44 -0
- package/dist/models/CommissionPercentageRangeDto.js +59 -0
- package/dist/models/CommissionPercentageRangeInput.d.ts +44 -0
- package/dist/models/CommissionPercentageRangeInput.js +59 -0
- package/dist/models/CommissionReasonConfigDto.d.ts +47 -0
- package/dist/models/CommissionReasonConfigDto.js +64 -0
- package/dist/models/CommissionReasonConfigDtoPayload.d.ts +27 -0
- package/dist/models/CommissionReasonConfigDtoPayload.js +54 -0
- package/dist/models/CommissionReasonDto.d.ts +112 -0
- package/dist/models/CommissionReasonDto.js +88 -0
- package/dist/models/FixedCommissionPayloadDto.d.ts +39 -0
- package/dist/models/FixedCommissionPayloadDto.js +56 -0
- package/dist/models/FixedCommissionPayloadInput.d.ts +32 -0
- package/dist/models/FixedCommissionPayloadInput.js +51 -0
- package/dist/models/FixedCommissionReasonPayloadDto.d.ts +39 -0
- package/dist/models/FixedCommissionReasonPayloadDto.js +56 -0
- package/dist/models/LedgerMutationAttachmentDto.d.ts +38 -0
- package/dist/models/LedgerMutationAttachmentDto.js +55 -0
- package/dist/models/LedgerMutationDto.d.ts +7 -0
- package/dist/models/LedgerMutationDto.js +5 -0
- package/dist/models/ListAccounts200Response.d.ts +3 -3
- package/dist/models/ListAccounts200Response.js +3 -3
- package/dist/models/SalesCountCommissionPayloadDto.d.ts +40 -0
- package/dist/models/SalesCountCommissionPayloadDto.js +57 -0
- package/dist/models/SalesCountCommissionPayloadInput.d.ts +33 -0
- package/dist/models/SalesCountCommissionPayloadInput.js +52 -0
- package/dist/models/SalesCountCommissionReasonPayloadDto.d.ts +40 -0
- package/dist/models/SalesCountCommissionReasonPayloadDto.js +57 -0
- package/dist/models/index.d.ts +29 -1
- package/dist/models/index.js +29 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +187 -0
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +105 -0
- package/src/models/AccountNameshiftCommissionByTypeDto.ts +74 -0
- package/src/models/{IntersectionListAccountDtoWithAccountCommissionDto.ts → AdminListAccountDto.ts} +33 -51
- package/src/models/BulkCommissionActionsInput.ts +74 -0
- package/src/models/BulkCommissionActionsInputActionsInner.ts +77 -0
- package/src/models/CommissionAccountDto.ts +84 -0
- package/src/models/CommissionAction.ts +54 -0
- package/src/models/CommissionAddUpdateActionInput.ts +92 -0
- package/src/models/CommissionConfigurationDto.ts +74 -0
- package/src/models/CommissionConfigurationDtoPayload.ts +73 -0
- package/src/models/CommissionConfigurationInput.ts +85 -0
- package/src/models/CommissionDeleteActionInput.ts +92 -0
- package/src/models/CommissionDto.ts +193 -0
- package/src/models/CommissionFactor.ts +53 -0
- package/src/models/CommissionListDto.ts +74 -0
- package/src/models/CommissionPayloadIdInput.ts +66 -0
- package/src/models/CommissionPayloadInput.ts +168 -0
- package/src/models/CommissionPercentageRangeDto.ts +84 -0
- package/src/models/CommissionPercentageRangeInput.ts +84 -0
- package/src/models/CommissionReasonConfigDto.ts +94 -0
- package/src/models/CommissionReasonConfigDtoPayload.ts +73 -0
- package/src/models/CommissionReasonDto.ts +182 -0
- package/src/models/FixedCommissionPayloadDto.ts +85 -0
- package/src/models/FixedCommissionPayloadInput.ts +66 -0
- package/src/models/FixedCommissionReasonPayloadDto.ts +85 -0
- package/src/models/LedgerMutationAttachmentDto.ts +75 -0
- package/src/models/LedgerMutationDto.ts +17 -0
- package/src/models/ListAccounts200Response.ts +10 -10
- package/src/models/SalesCountCommissionPayloadDto.ts +92 -0
- package/src/models/SalesCountCommissionPayloadInput.ts +74 -0
- package/src/models/SalesCountCommissionReasonPayloadDto.ts +92 -0
- package/src/models/index.ts +29 -1
- package/dist/models/IntersectionListAccountDtoWithAccountCommissionDto.d.ts +0 -149
package/.openapi-generator/FILES
CHANGED
|
@@ -40,6 +40,8 @@ src/models/AccountBankAccountDtoDetails.ts
|
|
|
40
40
|
src/models/AccountCommissionByDateRangeDto.ts
|
|
41
41
|
src/models/AccountDto.ts
|
|
42
42
|
src/models/AccountMetricsDto.ts
|
|
43
|
+
src/models/AccountNameshiftCommissionBySubtypeDto.ts
|
|
44
|
+
src/models/AccountNameshiftCommissionByTypeDto.ts
|
|
43
45
|
src/models/AccountNotificationDto.ts
|
|
44
46
|
src/models/AccountNotificationReadStatusDto.ts
|
|
45
47
|
src/models/AccountOnboardingDto.ts
|
|
@@ -70,6 +72,7 @@ src/models/AdminBankAccountDto.ts
|
|
|
70
72
|
src/models/AdminCompanyStatsDto.ts
|
|
71
73
|
src/models/AdminCompanyStatsLedger.ts
|
|
72
74
|
src/models/AdminGetAllDomainTransfers200Response.ts
|
|
75
|
+
src/models/AdminListAccountDto.ts
|
|
73
76
|
src/models/AdminVerificationDepositDto.ts
|
|
74
77
|
src/models/AggregatedPaginationResponse.ts
|
|
75
78
|
src/models/AirwallexBankAccountDetailsDto.ts
|
|
@@ -99,6 +102,8 @@ src/models/BatchReadSellerLeadMessageInput.ts
|
|
|
99
102
|
src/models/BatchUpdateDomainsInput.ts
|
|
100
103
|
src/models/BatchVerifyBuyerLeadsInput.ts
|
|
101
104
|
src/models/BillingInformationDto.ts
|
|
105
|
+
src/models/BulkCommissionActionsInput.ts
|
|
106
|
+
src/models/BulkCommissionActionsInputActionsInner.ts
|
|
102
107
|
src/models/BulkDownloadInvoicesInput.ts
|
|
103
108
|
src/models/BulkMarkBuyerNotificationsAsReadInputDto.ts
|
|
104
109
|
src/models/BulkMarkNotificationsAsReadInputDto.ts
|
|
@@ -131,6 +136,23 @@ src/models/CaBankAccountDetails.ts
|
|
|
131
136
|
src/models/ChangeOrderStatusInput.ts
|
|
132
137
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
133
138
|
src/models/ChartDataPoint.ts
|
|
139
|
+
src/models/CommissionAccountDto.ts
|
|
140
|
+
src/models/CommissionAction.ts
|
|
141
|
+
src/models/CommissionAddUpdateActionInput.ts
|
|
142
|
+
src/models/CommissionConfigurationDto.ts
|
|
143
|
+
src/models/CommissionConfigurationDtoPayload.ts
|
|
144
|
+
src/models/CommissionConfigurationInput.ts
|
|
145
|
+
src/models/CommissionDeleteActionInput.ts
|
|
146
|
+
src/models/CommissionDto.ts
|
|
147
|
+
src/models/CommissionFactor.ts
|
|
148
|
+
src/models/CommissionListDto.ts
|
|
149
|
+
src/models/CommissionPayloadIdInput.ts
|
|
150
|
+
src/models/CommissionPayloadInput.ts
|
|
151
|
+
src/models/CommissionPercentageRangeDto.ts
|
|
152
|
+
src/models/CommissionPercentageRangeInput.ts
|
|
153
|
+
src/models/CommissionReasonConfigDto.ts
|
|
154
|
+
src/models/CommissionReasonConfigDtoPayload.ts
|
|
155
|
+
src/models/CommissionReasonDto.ts
|
|
134
156
|
src/models/CompanyInformationDto.ts
|
|
135
157
|
src/models/CompanyTaxIdDto.ts
|
|
136
158
|
src/models/ConcreteDomainTransferTaskData.ts
|
|
@@ -188,6 +210,9 @@ src/models/DomainTransferTldInformationResultDto.ts
|
|
|
188
210
|
src/models/DomainTransferWorkflowDto.ts
|
|
189
211
|
src/models/DomainUrlDto.ts
|
|
190
212
|
src/models/EppBatchUpdateInput.ts
|
|
213
|
+
src/models/FixedCommissionPayloadDto.ts
|
|
214
|
+
src/models/FixedCommissionPayloadInput.ts
|
|
215
|
+
src/models/FixedCommissionReasonPayloadDto.ts
|
|
191
216
|
src/models/ForgotPasswordRequestInput.ts
|
|
192
217
|
src/models/GetAllAffiliateCommissions200Response.ts
|
|
193
218
|
src/models/GetAllAuctions200Response.ts
|
|
@@ -213,7 +238,6 @@ src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts
|
|
|
213
238
|
src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
|
|
214
239
|
src/models/IntersectionDomainDtoWithSeoMetricsDto.ts
|
|
215
240
|
src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts
|
|
216
|
-
src/models/IntersectionListAccountDtoWithAccountCommissionDto.ts
|
|
217
241
|
src/models/IntersectionTaskListTaskDto.ts
|
|
218
242
|
src/models/InvoiceDomainDto.ts
|
|
219
243
|
src/models/InvoiceDto.ts
|
|
@@ -243,6 +267,7 @@ src/models/LeaseToOwnConfigurationDto.ts
|
|
|
243
267
|
src/models/LeaseToOwnConfigurationInput.ts
|
|
244
268
|
src/models/LeaseToOwnConfigurationPresetsDto.ts
|
|
245
269
|
src/models/LeaseToOwnDto.ts
|
|
270
|
+
src/models/LedgerMutationAttachmentDto.ts
|
|
246
271
|
src/models/LedgerMutationDto.ts
|
|
247
272
|
src/models/LedgerMutationsDto.ts
|
|
248
273
|
src/models/List200Response.ts
|
|
@@ -320,6 +345,9 @@ src/models/RentConfigurationPresetsDto.ts
|
|
|
320
345
|
src/models/RentDto.ts
|
|
321
346
|
src/models/RequestAccessTokenInput.ts
|
|
322
347
|
src/models/RequestEmailOtpInput.ts
|
|
348
|
+
src/models/SalesCountCommissionPayloadDto.ts
|
|
349
|
+
src/models/SalesCountCommissionPayloadInput.ts
|
|
350
|
+
src/models/SalesCountCommissionReasonPayloadDto.ts
|
|
323
351
|
src/models/SellerAccountReferralListItemDto.ts
|
|
324
352
|
src/models/SellerAffiliateCommissionDto.ts
|
|
325
353
|
src/models/SellerAuctionListItemDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.368
|
|
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.368 --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
|
+
f734ebb7580b9d0b03ad855c71feb1b3cb55e1575384c22cfffef06aa640897f9775049fb0ea09ac44b24f5e67fee55d
|
package/dist/apis/AdminApi.d.ts
CHANGED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminCompanyStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
17
17
|
limit?: number;
|
|
18
18
|
sortBy?: Array<string>;
|
|
19
19
|
}
|
|
20
|
+
export interface AdminApiBulkCommissionActionsRequest {
|
|
21
|
+
bulkCommissionActionsInput: BulkCommissionActionsInput;
|
|
22
|
+
}
|
|
20
23
|
export interface AdminApiChangeOrderStatusRequest {
|
|
21
24
|
orderId: string;
|
|
22
25
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -34,6 +37,9 @@ export interface AdminApiDownloadInvoiceRequest {
|
|
|
34
37
|
export interface AdminApiGetAccountMeRequest {
|
|
35
38
|
accountId: string;
|
|
36
39
|
}
|
|
40
|
+
export interface AdminApiGetAccountNameshiftCommissionsRequest {
|
|
41
|
+
accountId: string;
|
|
42
|
+
}
|
|
37
43
|
export interface AdminApiGetAccountPaymentMethodProfilesRequest {
|
|
38
44
|
accountId: string;
|
|
39
45
|
}
|
|
@@ -79,6 +85,9 @@ export interface AdminApiGetAllSubscriptionsRequest {
|
|
|
79
85
|
export interface AdminApiGetCompanyStatsRequest {
|
|
80
86
|
dateRange?: any | null;
|
|
81
87
|
}
|
|
88
|
+
export interface AdminApiGetLedgerMutationAttachmentRequest {
|
|
89
|
+
attachmentId: string;
|
|
90
|
+
}
|
|
82
91
|
export interface AdminApiGetSubscriptionDetailsRequest {
|
|
83
92
|
subscriptionId: string;
|
|
84
93
|
}
|
|
@@ -88,6 +97,9 @@ export interface AdminApiListAccountsRequest {
|
|
|
88
97
|
limit?: number;
|
|
89
98
|
sortBy?: Array<string>;
|
|
90
99
|
}
|
|
100
|
+
export interface AdminApiListAllCommissionsRequest {
|
|
101
|
+
accountId?: string;
|
|
102
|
+
}
|
|
91
103
|
export interface AdminApiListBankAccountsRequest {
|
|
92
104
|
filter?: object;
|
|
93
105
|
page?: number;
|
|
@@ -159,6 +171,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
159
171
|
*
|
|
160
172
|
*/
|
|
161
173
|
adminGetAllDomainTransfers(requestParameters?: AdminApiAdminGetAllDomainTransfersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminGetAllDomainTransfers200Response>;
|
|
174
|
+
/**
|
|
175
|
+
*
|
|
176
|
+
*/
|
|
177
|
+
bulkCommissionActionsRaw(requestParameters: AdminApiBulkCommissionActionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
178
|
+
/**
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
bulkCommissionActions(requestParameters: AdminApiBulkCommissionActionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
162
182
|
/**
|
|
163
183
|
*
|
|
164
184
|
*/
|
|
@@ -199,6 +219,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
199
219
|
*
|
|
200
220
|
*/
|
|
201
221
|
getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
|
|
222
|
+
/**
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
getAccountNameshiftCommissionsRaw(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNameshiftCommissionByTypeDto>>;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
*/
|
|
229
|
+
getAccountNameshiftCommissions(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNameshiftCommissionByTypeDto>;
|
|
202
230
|
/**
|
|
203
231
|
*
|
|
204
232
|
*/
|
|
@@ -279,6 +307,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
279
307
|
*
|
|
280
308
|
*/
|
|
281
309
|
getCompanyStats(requestParameters?: AdminApiGetCompanyStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminCompanyStatsDto>;
|
|
310
|
+
/**
|
|
311
|
+
*
|
|
312
|
+
*/
|
|
313
|
+
getLedgerMutationAttachmentRaw(requestParameters: AdminApiGetLedgerMutationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
getLedgerMutationAttachment(requestParameters: AdminApiGetLedgerMutationAttachmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
282
318
|
/**
|
|
283
319
|
*
|
|
284
320
|
*/
|
|
@@ -295,6 +331,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
295
331
|
*
|
|
296
332
|
*/
|
|
297
333
|
listAccounts(requestParameters?: AdminApiListAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAccounts200Response>;
|
|
334
|
+
/**
|
|
335
|
+
*
|
|
336
|
+
*/
|
|
337
|
+
listAllCommissionsRaw(requestParameters: AdminApiListAllCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CommissionListDto>>;
|
|
338
|
+
/**
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
listAllCommissions(requestParameters?: AdminApiListAllCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionListDto>;
|
|
298
342
|
/**
|
|
299
343
|
*
|
|
300
344
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -138,6 +138,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*/
|
|
144
|
+
AdminApi.prototype.bulkCommissionActionsRaw = function (requestParameters, initOverrides) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
147
|
+
return __generator(this, function (_a) {
|
|
148
|
+
switch (_a.label) {
|
|
149
|
+
case 0:
|
|
150
|
+
if (requestParameters['bulkCommissionActionsInput'] == null) {
|
|
151
|
+
throw new runtime.RequiredError('bulkCommissionActionsInput', 'Required parameter "bulkCommissionActionsInput" was null or undefined when calling bulkCommissionActions().');
|
|
152
|
+
}
|
|
153
|
+
queryParameters = {};
|
|
154
|
+
headerParameters = {};
|
|
155
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
156
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
157
|
+
token = this.configuration.accessToken;
|
|
158
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
159
|
+
case 1:
|
|
160
|
+
tokenString = _a.sent();
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
163
|
+
}
|
|
164
|
+
_a.label = 2;
|
|
165
|
+
case 2: return [4 /*yield*/, this.request({
|
|
166
|
+
path: "/admin/commissions/bulk-actions",
|
|
167
|
+
method: 'POST',
|
|
168
|
+
headers: headerParameters,
|
|
169
|
+
query: queryParameters,
|
|
170
|
+
body: (0, index_1.BulkCommissionActionsInputToJSON)(requestParameters['bulkCommissionActionsInput']),
|
|
171
|
+
}, initOverrides)];
|
|
172
|
+
case 3:
|
|
173
|
+
response = _a.sent();
|
|
174
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
AdminApi.prototype.bulkCommissionActions = function (requestParameters, initOverrides) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
switch (_a.label) {
|
|
186
|
+
case 0: return [4 /*yield*/, this.bulkCommissionActionsRaw(requestParameters, initOverrides)];
|
|
187
|
+
case 1:
|
|
188
|
+
_a.sent();
|
|
189
|
+
return [2 /*return*/];
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
};
|
|
141
194
|
/**
|
|
142
195
|
*
|
|
143
196
|
*/
|
|
@@ -409,6 +462,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
409
462
|
});
|
|
410
463
|
});
|
|
411
464
|
};
|
|
465
|
+
/**
|
|
466
|
+
*
|
|
467
|
+
*/
|
|
468
|
+
AdminApi.prototype.getAccountNameshiftCommissionsRaw = function (requestParameters, initOverrides) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
470
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
471
|
+
return __generator(this, function (_a) {
|
|
472
|
+
switch (_a.label) {
|
|
473
|
+
case 0:
|
|
474
|
+
if (requestParameters['accountId'] == null) {
|
|
475
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling getAccountNameshiftCommissions().');
|
|
476
|
+
}
|
|
477
|
+
queryParameters = {};
|
|
478
|
+
headerParameters = {};
|
|
479
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
480
|
+
token = this.configuration.accessToken;
|
|
481
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
482
|
+
case 1:
|
|
483
|
+
tokenString = _a.sent();
|
|
484
|
+
if (tokenString) {
|
|
485
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
486
|
+
}
|
|
487
|
+
_a.label = 2;
|
|
488
|
+
case 2: return [4 /*yield*/, this.request({
|
|
489
|
+
path: "/admin/accounts/{accountId}/nameshift-commissions".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
490
|
+
method: 'GET',
|
|
491
|
+
headers: headerParameters,
|
|
492
|
+
query: queryParameters,
|
|
493
|
+
}, initOverrides)];
|
|
494
|
+
case 3:
|
|
495
|
+
response = _a.sent();
|
|
496
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AccountNameshiftCommissionByTypeDtoFromJSON)(jsonValue); })];
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
});
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
AdminApi.prototype.getAccountNameshiftCommissions = function (requestParameters, initOverrides) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
+
var response;
|
|
507
|
+
return __generator(this, function (_a) {
|
|
508
|
+
switch (_a.label) {
|
|
509
|
+
case 0: return [4 /*yield*/, this.getAccountNameshiftCommissionsRaw(requestParameters, initOverrides)];
|
|
510
|
+
case 1:
|
|
511
|
+
response = _a.sent();
|
|
512
|
+
return [4 /*yield*/, response.value()];
|
|
513
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
};
|
|
412
518
|
/**
|
|
413
519
|
*
|
|
414
520
|
*/
|
|
@@ -991,6 +1097,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
991
1097
|
});
|
|
992
1098
|
});
|
|
993
1099
|
};
|
|
1100
|
+
/**
|
|
1101
|
+
*
|
|
1102
|
+
*/
|
|
1103
|
+
AdminApi.prototype.getLedgerMutationAttachmentRaw = function (requestParameters, initOverrides) {
|
|
1104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1105
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1106
|
+
return __generator(this, function (_a) {
|
|
1107
|
+
switch (_a.label) {
|
|
1108
|
+
case 0:
|
|
1109
|
+
if (requestParameters['attachmentId'] == null) {
|
|
1110
|
+
throw new runtime.RequiredError('attachmentId', 'Required parameter "attachmentId" was null or undefined when calling getLedgerMutationAttachment().');
|
|
1111
|
+
}
|
|
1112
|
+
queryParameters = {};
|
|
1113
|
+
headerParameters = {};
|
|
1114
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1115
|
+
token = this.configuration.accessToken;
|
|
1116
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1117
|
+
case 1:
|
|
1118
|
+
tokenString = _a.sent();
|
|
1119
|
+
if (tokenString) {
|
|
1120
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1121
|
+
}
|
|
1122
|
+
_a.label = 2;
|
|
1123
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1124
|
+
path: "/admin/stats/attachments/{attachmentId}".replace("{".concat("attachmentId", "}"), encodeURIComponent(String(requestParameters['attachmentId']))),
|
|
1125
|
+
method: 'GET',
|
|
1126
|
+
headers: headerParameters,
|
|
1127
|
+
query: queryParameters,
|
|
1128
|
+
}, initOverrides)];
|
|
1129
|
+
case 3:
|
|
1130
|
+
response = _a.sent();
|
|
1131
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
1132
|
+
}
|
|
1133
|
+
});
|
|
1134
|
+
});
|
|
1135
|
+
};
|
|
1136
|
+
/**
|
|
1137
|
+
*
|
|
1138
|
+
*/
|
|
1139
|
+
AdminApi.prototype.getLedgerMutationAttachment = function (requestParameters, initOverrides) {
|
|
1140
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1141
|
+
return __generator(this, function (_a) {
|
|
1142
|
+
switch (_a.label) {
|
|
1143
|
+
case 0: return [4 /*yield*/, this.getLedgerMutationAttachmentRaw(requestParameters, initOverrides)];
|
|
1144
|
+
case 1:
|
|
1145
|
+
_a.sent();
|
|
1146
|
+
return [2 /*return*/];
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
};
|
|
994
1151
|
/**
|
|
995
1152
|
*
|
|
996
1153
|
*/
|
|
@@ -1107,6 +1264,60 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1107
1264
|
});
|
|
1108
1265
|
});
|
|
1109
1266
|
};
|
|
1267
|
+
/**
|
|
1268
|
+
*
|
|
1269
|
+
*/
|
|
1270
|
+
AdminApi.prototype.listAllCommissionsRaw = function (requestParameters, initOverrides) {
|
|
1271
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1272
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1273
|
+
return __generator(this, function (_a) {
|
|
1274
|
+
switch (_a.label) {
|
|
1275
|
+
case 0:
|
|
1276
|
+
queryParameters = {};
|
|
1277
|
+
if (requestParameters['accountId'] != null) {
|
|
1278
|
+
queryParameters['accountId'] = requestParameters['accountId'];
|
|
1279
|
+
}
|
|
1280
|
+
headerParameters = {};
|
|
1281
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1282
|
+
token = this.configuration.accessToken;
|
|
1283
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1284
|
+
case 1:
|
|
1285
|
+
tokenString = _a.sent();
|
|
1286
|
+
if (tokenString) {
|
|
1287
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1288
|
+
}
|
|
1289
|
+
_a.label = 2;
|
|
1290
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1291
|
+
path: "/admin/commissions",
|
|
1292
|
+
method: 'GET',
|
|
1293
|
+
headers: headerParameters,
|
|
1294
|
+
query: queryParameters,
|
|
1295
|
+
}, initOverrides)];
|
|
1296
|
+
case 3:
|
|
1297
|
+
response = _a.sent();
|
|
1298
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommissionListDtoFromJSON)(jsonValue); })];
|
|
1299
|
+
}
|
|
1300
|
+
});
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
/**
|
|
1304
|
+
*
|
|
1305
|
+
*/
|
|
1306
|
+
AdminApi.prototype.listAllCommissions = function () {
|
|
1307
|
+
return __awaiter(this, arguments, void 0, function (requestParameters, initOverrides) {
|
|
1308
|
+
var response;
|
|
1309
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1310
|
+
return __generator(this, function (_a) {
|
|
1311
|
+
switch (_a.label) {
|
|
1312
|
+
case 0: return [4 /*yield*/, this.listAllCommissionsRaw(requestParameters, initOverrides)];
|
|
1313
|
+
case 1:
|
|
1314
|
+
response = _a.sent();
|
|
1315
|
+
return [4 /*yield*/, response.value()];
|
|
1316
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1317
|
+
}
|
|
1318
|
+
});
|
|
1319
|
+
});
|
|
1320
|
+
};
|
|
1110
1321
|
/**
|
|
1111
1322
|
*
|
|
1112
1323
|
*/
|
|
@@ -0,0 +1,55 @@
|
|
|
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 { CommissionReasonDto } from './CommissionReasonDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountNameshiftCommissionBySubtypeDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountNameshiftCommissionBySubtypeDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
23
|
+
*/
|
|
24
|
+
subtype: AccountNameshiftCommissionBySubtypeDtoSubtypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
29
|
+
*/
|
|
30
|
+
percentage: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {CommissionReasonDto}
|
|
34
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
35
|
+
*/
|
|
36
|
+
reason: CommissionReasonDto | null;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @export
|
|
40
|
+
*/
|
|
41
|
+
export declare const AccountNameshiftCommissionBySubtypeDtoSubtypeEnum: {
|
|
42
|
+
readonly POINTING: "pointing";
|
|
43
|
+
readonly NOT_POINTING: "not_pointing";
|
|
44
|
+
readonly MANUAL_LEAD: "manual_lead";
|
|
45
|
+
readonly AUCTION: "auction";
|
|
46
|
+
};
|
|
47
|
+
export type AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionBySubtypeDtoSubtypeEnum];
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AccountNameshiftCommissionBySubtypeDto interface.
|
|
50
|
+
*/
|
|
51
|
+
export declare function instanceOfAccountNameshiftCommissionBySubtypeDto(value: object): value is AccountNameshiftCommissionBySubtypeDto;
|
|
52
|
+
export declare function AccountNameshiftCommissionBySubtypeDtoFromJSON(json: any): AccountNameshiftCommissionBySubtypeDto;
|
|
53
|
+
export declare function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionBySubtypeDto;
|
|
54
|
+
export declare function AccountNameshiftCommissionBySubtypeDtoToJSON(json: any): AccountNameshiftCommissionBySubtypeDto;
|
|
55
|
+
export declare function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value?: AccountNameshiftCommissionBySubtypeDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAccountNameshiftCommissionBySubtypeDto = instanceOfAccountNameshiftCommissionBySubtypeDto;
|
|
18
|
+
exports.AccountNameshiftCommissionBySubtypeDtoFromJSON = AccountNameshiftCommissionBySubtypeDtoFromJSON;
|
|
19
|
+
exports.AccountNameshiftCommissionBySubtypeDtoFromJSONTyped = AccountNameshiftCommissionBySubtypeDtoFromJSONTyped;
|
|
20
|
+
exports.AccountNameshiftCommissionBySubtypeDtoToJSON = AccountNameshiftCommissionBySubtypeDtoToJSON;
|
|
21
|
+
exports.AccountNameshiftCommissionBySubtypeDtoToJSONTyped = AccountNameshiftCommissionBySubtypeDtoToJSONTyped;
|
|
22
|
+
var CommissionReasonDto_1 = require("./CommissionReasonDto");
|
|
23
|
+
/**
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
|
|
27
|
+
POINTING: 'pointing',
|
|
28
|
+
NOT_POINTING: 'not_pointing',
|
|
29
|
+
MANUAL_LEAD: 'manual_lead',
|
|
30
|
+
AUCTION: 'auction'
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the AccountNameshiftCommissionBySubtypeDto interface.
|
|
34
|
+
*/
|
|
35
|
+
function instanceOfAccountNameshiftCommissionBySubtypeDto(value) {
|
|
36
|
+
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
function AccountNameshiftCommissionBySubtypeDtoFromJSON(json) {
|
|
45
|
+
return AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'subtype': json['subtype'],
|
|
53
|
+
'percentage': json['percentage'],
|
|
54
|
+
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoFromJSON)(json['reason']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function AccountNameshiftCommissionBySubtypeDtoToJSON(json) {
|
|
58
|
+
return AccountNameshiftCommissionBySubtypeDtoToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
61
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'subtype': value['subtype'],
|
|
67
|
+
'percentage': value['percentage'],
|
|
68
|
+
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoToJSON)(value['reason']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { AccountNameshiftCommissionBySubtypeDto } from './AccountNameshiftCommissionBySubtypeDto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountNameshiftCommissionByTypeDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountNameshiftCommissionByTypeDto {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AccountNameshiftCommissionBySubtypeDto>}
|
|
22
|
+
* @memberof AccountNameshiftCommissionByTypeDto
|
|
23
|
+
*/
|
|
24
|
+
commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AccountNameshiftCommissionByTypeDto interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAccountNameshiftCommissionByTypeDto(value: object): value is AccountNameshiftCommissionByTypeDto;
|
|
30
|
+
export declare function AccountNameshiftCommissionByTypeDtoFromJSON(json: any): AccountNameshiftCommissionByTypeDto;
|
|
31
|
+
export declare function AccountNameshiftCommissionByTypeDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountNameshiftCommissionByTypeDto;
|
|
32
|
+
export declare function AccountNameshiftCommissionByTypeDtoToJSON(json: any): AccountNameshiftCommissionByTypeDto;
|
|
33
|
+
export declare function AccountNameshiftCommissionByTypeDtoToJSONTyped(value?: AccountNameshiftCommissionByTypeDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.instanceOfAccountNameshiftCommissionByTypeDto = instanceOfAccountNameshiftCommissionByTypeDto;
|
|
17
|
+
exports.AccountNameshiftCommissionByTypeDtoFromJSON = AccountNameshiftCommissionByTypeDtoFromJSON;
|
|
18
|
+
exports.AccountNameshiftCommissionByTypeDtoFromJSONTyped = AccountNameshiftCommissionByTypeDtoFromJSONTyped;
|
|
19
|
+
exports.AccountNameshiftCommissionByTypeDtoToJSON = AccountNameshiftCommissionByTypeDtoToJSON;
|
|
20
|
+
exports.AccountNameshiftCommissionByTypeDtoToJSONTyped = AccountNameshiftCommissionByTypeDtoToJSONTyped;
|
|
21
|
+
var AccountNameshiftCommissionBySubtypeDto_1 = require("./AccountNameshiftCommissionBySubtypeDto");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountNameshiftCommissionByTypeDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountNameshiftCommissionByTypeDto(value) {
|
|
26
|
+
if (!('commissions' in value) || value['commissions'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function AccountNameshiftCommissionByTypeDtoFromJSON(json) {
|
|
31
|
+
return AccountNameshiftCommissionByTypeDtoFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function AccountNameshiftCommissionByTypeDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'commissions': (json['commissions'].map(AccountNameshiftCommissionBySubtypeDto_1.AccountNameshiftCommissionBySubtypeDtoFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AccountNameshiftCommissionByTypeDtoToJSON(json) {
|
|
42
|
+
return AccountNameshiftCommissionByTypeDtoToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AccountNameshiftCommissionByTypeDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
45
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'commissions': (value['commissions'].map(AccountNameshiftCommissionBySubtypeDto_1.AccountNameshiftCommissionBySubtypeDtoToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|