@randock/nameshift-api-client 0.0.444 → 0.0.446
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 +8 -0
- package/README.md +3 -3
- package/dist/apis/AccountsApi.d.ts +2 -2
- package/dist/apis/AccountsApi.js +2 -2
- package/dist/apis/AdminApi.d.ts +30 -3
- package/dist/apis/AdminApi.js +117 -2
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.d.ts +6 -0
- package/dist/models/AccountNameshiftCommissionBySubtypeDto.js +4 -0
- package/dist/models/AccountNameshiftCommissionByTypeDto.d.ts +2 -2
- package/dist/models/AccountNameshiftCommissionItemDto.d.ts +12 -0
- package/dist/models/AccountNameshiftCommissionItemDto.js +8 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.d.ts +21 -0
- package/dist/models/AccountNameshiftCommissionReasonDto.js +13 -1
- package/dist/models/ChangeInvoiceStatusInput.d.ts +42 -0
- package/dist/models/ChangeInvoiceStatusInput.js +61 -0
- package/dist/models/CommissionConfigurationSimulationInput.d.ts +33 -0
- package/dist/models/CommissionConfigurationSimulationInput.js +52 -0
- package/dist/models/CommissionConfigurationSimulationInputPayload.d.ts +27 -0
- package/dist/models/CommissionConfigurationSimulationInputPayload.js +54 -0
- package/dist/models/CommissionDto.d.ts +12 -0
- package/dist/models/CommissionDto.js +8 -0
- package/dist/models/CommissionFactor.d.ts +1 -1
- package/dist/models/CommissionFactor.js +1 -1
- package/dist/models/CommissionPayloadInput.d.ts +12 -0
- package/dist/models/CommissionPayloadInput.js +4 -0
- package/dist/models/CommissionReasonDto.d.ts +33 -0
- package/dist/models/CommissionReasonDto.js +17 -1
- package/dist/models/CommissionSimulationItemInput.d.ts +123 -0
- package/dist/models/CommissionSimulationItemInput.js +113 -0
- package/dist/models/CommissionSimulationResultDto.d.ts +39 -0
- package/dist/models/CommissionSimulationResultDto.js +56 -0
- package/dist/models/FixedCommissionPayloadSimulationInput.d.ts +39 -0
- package/dist/models/FixedCommissionPayloadSimulationInput.js +56 -0
- package/dist/models/GetAccountNameshiftCommissionsResponseDto.d.ts +1 -1
- package/dist/models/MozMetrics.d.ts +6 -0
- package/dist/models/MozMetrics.js +4 -0
- package/dist/models/SalesCountCommissionPayloadSimulationInput.d.ts +40 -0
- package/dist/models/SalesCountCommissionPayloadSimulationInput.js +57 -0
- package/dist/models/SimulateCommissionInput.d.ts +67 -0
- package/dist/models/SimulateCommissionInput.js +78 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/AccountsApi.ts +2 -2
- package/src/apis/AdminApi.ts +118 -2
- package/src/models/AccountNameshiftCommissionBySubtypeDto.ts +9 -0
- package/src/models/AccountNameshiftCommissionByTypeDto.ts +2 -2
- package/src/models/AccountNameshiftCommissionItemDto.ts +18 -0
- package/src/models/AccountNameshiftCommissionReasonDto.ts +26 -0
- package/src/models/ChangeInvoiceStatusInput.ts +79 -0
- package/src/models/CommissionConfigurationSimulationInput.ts +74 -0
- package/src/models/CommissionConfigurationSimulationInputPayload.ts +73 -0
- package/src/models/CommissionDto.ts +18 -0
- package/src/models/CommissionFactor.ts +1 -1
- package/src/models/CommissionPayloadInput.ts +16 -0
- package/src/models/CommissionReasonDto.ts +42 -0
- package/src/models/CommissionSimulationItemInput.ts +202 -0
- package/src/models/CommissionSimulationResultDto.ts +83 -0
- package/src/models/FixedCommissionPayloadSimulationInput.ts +85 -0
- package/src/models/GetAccountNameshiftCommissionsResponseDto.ts +1 -1
- package/src/models/MozMetrics.ts +9 -0
- package/src/models/SalesCountCommissionPayloadSimulationInput.ts +92 -0
- package/src/models/SimulateCommissionInput.ts +123 -0
- package/src/models/index.ts +8 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -162,6 +162,7 @@ src/models/BuyerSubscriptionListItemDtoDomainInformation.ts
|
|
|
162
162
|
src/models/BuyerTaskDetailsDto.ts
|
|
163
163
|
src/models/CaBankAccountDetails.ts
|
|
164
164
|
src/models/ChallengeRewardBalanceDto.ts
|
|
165
|
+
src/models/ChangeInvoiceStatusInput.ts
|
|
165
166
|
src/models/ChangeOrderStatusInput.ts
|
|
166
167
|
src/models/ChangeSubscriptionStatusInput.ts
|
|
167
168
|
src/models/ChangeUserEmailWithOtpInput.ts
|
|
@@ -173,6 +174,8 @@ src/models/CommissionAddUpdateActionInput.ts
|
|
|
173
174
|
src/models/CommissionConfigurationDto.ts
|
|
174
175
|
src/models/CommissionConfigurationDtoPayload.ts
|
|
175
176
|
src/models/CommissionConfigurationInput.ts
|
|
177
|
+
src/models/CommissionConfigurationSimulationInput.ts
|
|
178
|
+
src/models/CommissionConfigurationSimulationInputPayload.ts
|
|
176
179
|
src/models/CommissionDeleteActionInput.ts
|
|
177
180
|
src/models/CommissionDto.ts
|
|
178
181
|
src/models/CommissionFactor.ts
|
|
@@ -184,6 +187,8 @@ src/models/CommissionPercentageRangeInput.ts
|
|
|
184
187
|
src/models/CommissionReasonConfigDto.ts
|
|
185
188
|
src/models/CommissionReasonConfigDtoPayload.ts
|
|
186
189
|
src/models/CommissionReasonDto.ts
|
|
190
|
+
src/models/CommissionSimulationItemInput.ts
|
|
191
|
+
src/models/CommissionSimulationResultDto.ts
|
|
187
192
|
src/models/CommissionsStatsDto.ts
|
|
188
193
|
src/models/CompanyInformationDto.ts
|
|
189
194
|
src/models/CompanyTaxIdDto.ts
|
|
@@ -251,6 +256,7 @@ src/models/EppBatchUpdateInput.ts
|
|
|
251
256
|
src/models/FeatureFlagListItemDto.ts
|
|
252
257
|
src/models/FixedCommissionPayloadDto.ts
|
|
253
258
|
src/models/FixedCommissionPayloadInput.ts
|
|
259
|
+
src/models/FixedCommissionPayloadSimulationInput.ts
|
|
254
260
|
src/models/FixedCommissionReasonPayloadDto.ts
|
|
255
261
|
src/models/ForgotPasswordRequestInput.ts
|
|
256
262
|
src/models/GetAccountChallengeRewardUsagesListDto.ts
|
|
@@ -418,6 +424,7 @@ src/models/RequestEmailOtpInput.ts
|
|
|
418
424
|
src/models/RequestUserEmailChangeOtpInput.ts
|
|
419
425
|
src/models/SalesCountCommissionPayloadDto.ts
|
|
420
426
|
src/models/SalesCountCommissionPayloadInput.ts
|
|
427
|
+
src/models/SalesCountCommissionPayloadSimulationInput.ts
|
|
421
428
|
src/models/SalesCountCommissionReasonPayloadDto.ts
|
|
422
429
|
src/models/SeBankAccountDetails.ts
|
|
423
430
|
src/models/SellerAccountReferralListItemDto.ts
|
|
@@ -457,6 +464,7 @@ src/models/SepaBankAccountDetails.ts
|
|
|
457
464
|
src/models/SetDomainTransferConfirmationInput.ts
|
|
458
465
|
src/models/SetNewPasswordInput.ts
|
|
459
466
|
src/models/SetPayoutProviderInput.ts
|
|
467
|
+
src/models/SimulateCommissionInput.ts
|
|
460
468
|
src/models/StartAuctionInput.ts
|
|
461
469
|
src/models/StateDto.ts
|
|
462
470
|
src/models/StatsFilterInputDateRange.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.446
|
|
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.446 --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
|
+
a1dcfbe4b05c5cb5a346510c36fa7ad05a2ae91367f7d167c16e664e4d2595367e8e4936ce43fbcd99bee8278ac598be
|
|
@@ -184,12 +184,12 @@ export declare class AccountsApi extends runtime.BaseAPI {
|
|
|
184
184
|
*/
|
|
185
185
|
getAllReferrals(requestParameters: AccountsApiGetAllReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAllReferrals200Response>;
|
|
186
186
|
/**
|
|
187
|
-
* Returns
|
|
187
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
188
188
|
* Get Nameshift commissions
|
|
189
189
|
*/
|
|
190
190
|
getNameshiftCommissionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetAccountNameshiftCommissionsResponseDto>>;
|
|
191
191
|
/**
|
|
192
|
-
* Returns
|
|
192
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
193
193
|
* Get Nameshift commissions
|
|
194
194
|
*/
|
|
195
195
|
getNameshiftCommissions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetAccountNameshiftCommissionsResponseDto>;
|
package/dist/apis/AccountsApi.js
CHANGED
|
@@ -665,7 +665,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
665
665
|
});
|
|
666
666
|
};
|
|
667
667
|
/**
|
|
668
|
-
* Returns
|
|
668
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
669
669
|
* Get Nameshift commissions
|
|
670
670
|
*/
|
|
671
671
|
AccountsApi.prototype.getNameshiftCommissionsRaw = function (initOverrides) {
|
|
@@ -699,7 +699,7 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
699
699
|
});
|
|
700
700
|
};
|
|
701
701
|
/**
|
|
702
|
-
* Returns
|
|
702
|
+
* Returns Nameshift commission percentages and schedules for the current account.
|
|
703
703
|
* Get Nameshift commissions
|
|
704
704
|
*/
|
|
705
705
|
AccountsApi.prototype.getNameshiftCommissions = function (initOverrides) {
|
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 { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeInvoiceStatusInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CommissionSimulationResultDto, CreateChallengeInput, DomainLockDto, DomainStatsDto, DomainTldsDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, LinkBankDepositToBankAccountInput, LinkBankDepositToInvoiceInput, ListAccounts200Response, ListBankAccounts200Response, ListBankDeposits200Response, ListDomains200Response, ListLeads200Response, ObjectId, SellerSalesByTldStatsItemDto, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SimulateCommissionInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminDeleteAuctionRequest {
|
|
15
15
|
auctionId: string;
|
|
16
16
|
}
|
|
@@ -30,6 +30,10 @@ export interface AdminApiBulkCommissionActionsRequest {
|
|
|
30
30
|
export interface AdminApiCancelDomainTransferRequest {
|
|
31
31
|
transferId: string;
|
|
32
32
|
}
|
|
33
|
+
export interface AdminApiChangeInvoiceStatusRequest {
|
|
34
|
+
invoiceId: string;
|
|
35
|
+
changeInvoiceStatusInput: ChangeInvoiceStatusInput;
|
|
36
|
+
}
|
|
33
37
|
export interface AdminApiChangeOrderStatusRequest {
|
|
34
38
|
orderId: string;
|
|
35
39
|
changeOrderStatusInput: ChangeOrderStatusInput;
|
|
@@ -260,6 +264,9 @@ export interface AdminApiRemoveDomainLockRequest {
|
|
|
260
264
|
domainId: string;
|
|
261
265
|
lockId: string;
|
|
262
266
|
}
|
|
267
|
+
export interface AdminApiSimulateCommissionRequest {
|
|
268
|
+
simulateCommissionInput: SimulateCommissionInput;
|
|
269
|
+
}
|
|
263
270
|
export interface AdminApiSyncAccountStatsRequest {
|
|
264
271
|
accountId: string;
|
|
265
272
|
}
|
|
@@ -335,6 +342,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
335
342
|
* Cancel domain transfer
|
|
336
343
|
*/
|
|
337
344
|
cancelDomainTransfer(requestParameters: AdminApiCancelDomainTransferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
345
|
+
/**
|
|
346
|
+
* Updates the status of an existing invoice.
|
|
347
|
+
* Change invoice status
|
|
348
|
+
*/
|
|
349
|
+
changeInvoiceStatusRaw(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
350
|
+
/**
|
|
351
|
+
* Updates the status of an existing invoice.
|
|
352
|
+
* Change invoice status
|
|
353
|
+
*/
|
|
354
|
+
changeInvoiceStatus(requestParameters: AdminApiChangeInvoiceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
338
355
|
/**
|
|
339
356
|
* Updates the invoice status of an existing order.
|
|
340
357
|
* Change order status
|
|
@@ -436,12 +453,12 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
436
453
|
*/
|
|
437
454
|
getAccountMe(requestParameters: AdminApiGetAccountMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto>;
|
|
438
455
|
/**
|
|
439
|
-
* Returns
|
|
456
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
440
457
|
* Get Nameshift commissions
|
|
441
458
|
*/
|
|
442
459
|
getAccountNameshiftCommissionsRaw(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountNameshiftCommissionByTypeDto>>;
|
|
443
460
|
/**
|
|
444
|
-
* Returns
|
|
461
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
445
462
|
* Get Nameshift commissions
|
|
446
463
|
*/
|
|
447
464
|
getAccountNameshiftCommissions(requestParameters: AdminApiGetAccountNameshiftCommissionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountNameshiftCommissionByTypeDto>;
|
|
@@ -815,6 +832,16 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
815
832
|
* Remove domain lock
|
|
816
833
|
*/
|
|
817
834
|
removeDomainLock(requestParameters: AdminApiRemoveDomainLockRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
835
|
+
/**
|
|
836
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
837
|
+
* Simulate commission percentage
|
|
838
|
+
*/
|
|
839
|
+
simulateCommissionRaw(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CommissionSimulationResultDto>>;
|
|
840
|
+
/**
|
|
841
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
842
|
+
* Simulate commission percentage
|
|
843
|
+
*/
|
|
844
|
+
simulateCommission(requestParameters: AdminApiSimulateCommissionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CommissionSimulationResultDto>;
|
|
818
845
|
/**
|
|
819
846
|
* Triggers a synchronization of account metrics and statistics.
|
|
820
847
|
* Sync account statistics
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -307,6 +307,64 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
307
307
|
});
|
|
308
308
|
});
|
|
309
309
|
};
|
|
310
|
+
/**
|
|
311
|
+
* Updates the status of an existing invoice.
|
|
312
|
+
* Change invoice status
|
|
313
|
+
*/
|
|
314
|
+
AdminApi.prototype.changeInvoiceStatusRaw = function (requestParameters, initOverrides) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
317
|
+
return __generator(this, function (_a) {
|
|
318
|
+
switch (_a.label) {
|
|
319
|
+
case 0:
|
|
320
|
+
if (requestParameters['invoiceId'] == null) {
|
|
321
|
+
throw new runtime.RequiredError('invoiceId', 'Required parameter "invoiceId" was null or undefined when calling changeInvoiceStatus().');
|
|
322
|
+
}
|
|
323
|
+
if (requestParameters['changeInvoiceStatusInput'] == null) {
|
|
324
|
+
throw new runtime.RequiredError('changeInvoiceStatusInput', 'Required parameter "changeInvoiceStatusInput" was null or undefined when calling changeInvoiceStatus().');
|
|
325
|
+
}
|
|
326
|
+
queryParameters = {};
|
|
327
|
+
headerParameters = {};
|
|
328
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
329
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
330
|
+
token = this.configuration.accessToken;
|
|
331
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
332
|
+
case 1:
|
|
333
|
+
tokenString = _a.sent();
|
|
334
|
+
if (tokenString) {
|
|
335
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
336
|
+
}
|
|
337
|
+
_a.label = 2;
|
|
338
|
+
case 2: return [4 /*yield*/, this.request({
|
|
339
|
+
path: "/admin/invoices/{invoiceId}/status".replace("{".concat("invoiceId", "}"), encodeURIComponent(String(requestParameters['invoiceId']))),
|
|
340
|
+
method: 'PATCH',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
body: (0, index_1.ChangeInvoiceStatusInputToJSON)(requestParameters['changeInvoiceStatusInput']),
|
|
344
|
+
}, initOverrides)];
|
|
345
|
+
case 3:
|
|
346
|
+
response = _a.sent();
|
|
347
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Updates the status of an existing invoice.
|
|
354
|
+
* Change invoice status
|
|
355
|
+
*/
|
|
356
|
+
AdminApi.prototype.changeInvoiceStatus = function (requestParameters, initOverrides) {
|
|
357
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
+
return __generator(this, function (_a) {
|
|
359
|
+
switch (_a.label) {
|
|
360
|
+
case 0: return [4 /*yield*/, this.changeInvoiceStatusRaw(requestParameters, initOverrides)];
|
|
361
|
+
case 1:
|
|
362
|
+
_a.sent();
|
|
363
|
+
return [2 /*return*/];
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
};
|
|
310
368
|
/**
|
|
311
369
|
* Updates the invoice status of an existing order.
|
|
312
370
|
* Change order status
|
|
@@ -858,7 +916,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
858
916
|
});
|
|
859
917
|
};
|
|
860
918
|
/**
|
|
861
|
-
* Returns
|
|
919
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
862
920
|
* Get Nameshift commissions
|
|
863
921
|
*/
|
|
864
922
|
AdminApi.prototype.getAccountNameshiftCommissionsRaw = function (requestParameters, initOverrides) {
|
|
@@ -895,7 +953,7 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
895
953
|
});
|
|
896
954
|
};
|
|
897
955
|
/**
|
|
898
|
-
* Returns
|
|
956
|
+
* Returns Nameshift commission percentages and schedules for the account.
|
|
899
957
|
* Get Nameshift commissions
|
|
900
958
|
*/
|
|
901
959
|
AdminApi.prototype.getAccountNameshiftCommissions = function (requestParameters, initOverrides) {
|
|
@@ -3156,6 +3214,63 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
3156
3214
|
});
|
|
3157
3215
|
});
|
|
3158
3216
|
};
|
|
3217
|
+
/**
|
|
3218
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3219
|
+
* Simulate commission percentage
|
|
3220
|
+
*/
|
|
3221
|
+
AdminApi.prototype.simulateCommissionRaw = function (requestParameters, initOverrides) {
|
|
3222
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3223
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
3224
|
+
return __generator(this, function (_a) {
|
|
3225
|
+
switch (_a.label) {
|
|
3226
|
+
case 0:
|
|
3227
|
+
if (requestParameters['simulateCommissionInput'] == null) {
|
|
3228
|
+
throw new runtime.RequiredError('simulateCommissionInput', 'Required parameter "simulateCommissionInput" was null or undefined when calling simulateCommission().');
|
|
3229
|
+
}
|
|
3230
|
+
queryParameters = {};
|
|
3231
|
+
headerParameters = {};
|
|
3232
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3233
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
3234
|
+
token = this.configuration.accessToken;
|
|
3235
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
3236
|
+
case 1:
|
|
3237
|
+
tokenString = _a.sent();
|
|
3238
|
+
if (tokenString) {
|
|
3239
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
3240
|
+
}
|
|
3241
|
+
_a.label = 2;
|
|
3242
|
+
case 2: return [4 /*yield*/, this.request({
|
|
3243
|
+
path: "/admin/commissions/simulate",
|
|
3244
|
+
method: 'POST',
|
|
3245
|
+
headers: headerParameters,
|
|
3246
|
+
query: queryParameters,
|
|
3247
|
+
body: (0, index_1.SimulateCommissionInputToJSON)(requestParameters['simulateCommissionInput']),
|
|
3248
|
+
}, initOverrides)];
|
|
3249
|
+
case 3:
|
|
3250
|
+
response = _a.sent();
|
|
3251
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CommissionSimulationResultDtoFromJSON)(jsonValue); })];
|
|
3252
|
+
}
|
|
3253
|
+
});
|
|
3254
|
+
});
|
|
3255
|
+
};
|
|
3256
|
+
/**
|
|
3257
|
+
* Evaluates the commission percentage for a given scenario without persisting any changes.
|
|
3258
|
+
* Simulate commission percentage
|
|
3259
|
+
*/
|
|
3260
|
+
AdminApi.prototype.simulateCommission = function (requestParameters, initOverrides) {
|
|
3261
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3262
|
+
var response;
|
|
3263
|
+
return __generator(this, function (_a) {
|
|
3264
|
+
switch (_a.label) {
|
|
3265
|
+
case 0: return [4 /*yield*/, this.simulateCommissionRaw(requestParameters, initOverrides)];
|
|
3266
|
+
case 1:
|
|
3267
|
+
response = _a.sent();
|
|
3268
|
+
return [4 /*yield*/, response.value()];
|
|
3269
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
3270
|
+
}
|
|
3271
|
+
});
|
|
3272
|
+
});
|
|
3273
|
+
};
|
|
3159
3274
|
/**
|
|
3160
3275
|
* Triggers a synchronization of account metrics and statistics.
|
|
3161
3276
|
* Sync account statistics
|
|
@@ -22,6 +22,12 @@ export interface AccountNameshiftCommissionBySubtypeDto {
|
|
|
22
22
|
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
23
23
|
*/
|
|
24
24
|
subtype: AccountNameshiftCommissionBySubtypeDtoSubtypeEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Domain extensions this current commission applies to. Null means all other extensions.
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof AccountNameshiftCommissionBySubtypeDto
|
|
29
|
+
*/
|
|
30
|
+
tlds: Array<string> | null;
|
|
25
31
|
/**
|
|
26
32
|
* Effective commission percentage.
|
|
27
33
|
* @type {number}
|
|
@@ -35,6 +35,8 @@ exports.AccountNameshiftCommissionBySubtypeDtoSubtypeEnum = {
|
|
|
35
35
|
function instanceOfAccountNameshiftCommissionBySubtypeDto(value) {
|
|
36
36
|
if (!('subtype' in value) || value['subtype'] === undefined)
|
|
37
37
|
return false;
|
|
38
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
39
|
+
return false;
|
|
38
40
|
if (!('percentage' in value) || value['percentage'] === undefined)
|
|
39
41
|
return false;
|
|
40
42
|
if (!('reason' in value) || value['reason'] === undefined)
|
|
@@ -50,6 +52,7 @@ function AccountNameshiftCommissionBySubtypeDtoFromJSONTyped(json, ignoreDiscrim
|
|
|
50
52
|
}
|
|
51
53
|
return {
|
|
52
54
|
'subtype': json['subtype'],
|
|
55
|
+
'tlds': json['tlds'] == null ? null : json['tlds'],
|
|
53
56
|
'percentage': json['percentage'],
|
|
54
57
|
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoFromJSON)(json['reason']),
|
|
55
58
|
};
|
|
@@ -64,6 +67,7 @@ function AccountNameshiftCommissionBySubtypeDtoToJSONTyped(value, ignoreDiscrimi
|
|
|
64
67
|
}
|
|
65
68
|
return {
|
|
66
69
|
'subtype': value['subtype'],
|
|
70
|
+
'tlds': value['tlds'],
|
|
67
71
|
'percentage': value['percentage'],
|
|
68
72
|
'reason': (0, CommissionReasonDto_1.CommissionReasonDtoToJSON)(value['reason']),
|
|
69
73
|
};
|
|
@@ -18,13 +18,13 @@ import type { AccountNameshiftCommissionItemDto } from './AccountNameshiftCommis
|
|
|
18
18
|
*/
|
|
19
19
|
export interface AccountNameshiftCommissionByTypeDto {
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Current commissions by subtype and domain extension group.
|
|
22
22
|
* @type {Array<AccountNameshiftCommissionBySubtypeDto>}
|
|
23
23
|
* @memberof AccountNameshiftCommissionByTypeDto
|
|
24
24
|
*/
|
|
25
25
|
commissions: Array<AccountNameshiftCommissionBySubtypeDto>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Commission schedules for the account.
|
|
28
28
|
* @type {Array<AccountNameshiftCommissionItemDto>}
|
|
29
29
|
* @memberof AccountNameshiftCommissionByTypeDto
|
|
30
30
|
*/
|
|
@@ -52,6 +52,18 @@ export interface AccountNameshiftCommissionItemDto {
|
|
|
52
52
|
* @memberof AccountNameshiftCommissionItemDto
|
|
53
53
|
*/
|
|
54
54
|
dateEnd: Date | null;
|
|
55
|
+
/**
|
|
56
|
+
* Domain extensions this commission applies to. When empty, the commission applies to all extensions.
|
|
57
|
+
* @type {Array<string>}
|
|
58
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
59
|
+
*/
|
|
60
|
+
tlds: Array<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Domain extensions excluded from this commission.
|
|
63
|
+
* @type {Array<string>}
|
|
64
|
+
* @memberof AccountNameshiftCommissionItemDto
|
|
65
|
+
*/
|
|
66
|
+
excludedTlds: Array<string>;
|
|
55
67
|
}
|
|
56
68
|
/**
|
|
57
69
|
* @export
|
|
@@ -45,6 +45,10 @@ function instanceOfAccountNameshiftCommissionItemDto(value) {
|
|
|
45
45
|
return false;
|
|
46
46
|
if (!('dateEnd' in value) || value['dateEnd'] === undefined)
|
|
47
47
|
return false;
|
|
48
|
+
if (!('tlds' in value) || value['tlds'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('excludedTlds' in value) || value['excludedTlds'] === undefined)
|
|
51
|
+
return false;
|
|
48
52
|
return true;
|
|
49
53
|
}
|
|
50
54
|
function AccountNameshiftCommissionItemDtoFromJSON(json) {
|
|
@@ -61,6 +65,8 @@ function AccountNameshiftCommissionItemDtoFromJSONTyped(json, ignoreDiscriminato
|
|
|
61
65
|
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoFromJSON)(json['config']),
|
|
62
66
|
'dateStart': (new Date(json['dateStart'])),
|
|
63
67
|
'dateEnd': (json['dateEnd'] == null ? null : new Date(json['dateEnd'])),
|
|
68
|
+
'tlds': json['tlds'],
|
|
69
|
+
'excludedTlds': json['excludedTlds'],
|
|
64
70
|
};
|
|
65
71
|
}
|
|
66
72
|
function AccountNameshiftCommissionItemDtoToJSON(json) {
|
|
@@ -78,5 +84,7 @@ function AccountNameshiftCommissionItemDtoToJSONTyped(value, ignoreDiscriminator
|
|
|
78
84
|
'config': (0, CommissionConfigurationDto_1.CommissionConfigurationDtoToJSON)(value['config']),
|
|
79
85
|
'dateStart': ((value['dateStart']).toISOString()),
|
|
80
86
|
'dateEnd': (value['dateEnd'] == null ? null : value['dateEnd'].toISOString()),
|
|
87
|
+
'tlds': value['tlds'],
|
|
88
|
+
'excludedTlds': value['excludedTlds'],
|
|
81
89
|
};
|
|
82
90
|
}
|
|
@@ -83,6 +83,18 @@ export interface AccountNameshiftCommissionReasonDto {
|
|
|
83
83
|
* @memberof AccountNameshiftCommissionReasonDto
|
|
84
84
|
*/
|
|
85
85
|
factorCountResult?: number | null;
|
|
86
|
+
/**
|
|
87
|
+
* How the commission was selected for the domain extension.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
90
|
+
*/
|
|
91
|
+
tldMatchType?: AccountNameshiftCommissionReasonDtoTldMatchTypeEnum;
|
|
92
|
+
/**
|
|
93
|
+
* Domain extension used to select the commission, if any.
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof AccountNameshiftCommissionReasonDto
|
|
96
|
+
*/
|
|
97
|
+
tldMatchedValue?: string | null;
|
|
86
98
|
}
|
|
87
99
|
/**
|
|
88
100
|
* @export
|
|
@@ -102,6 +114,15 @@ export declare const AccountNameshiftCommissionReasonDtoSubtypeEnum: {
|
|
|
102
114
|
readonly AUCTION: "auction";
|
|
103
115
|
};
|
|
104
116
|
export type AccountNameshiftCommissionReasonDtoSubtypeEnum = typeof AccountNameshiftCommissionReasonDtoSubtypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoSubtypeEnum];
|
|
117
|
+
/**
|
|
118
|
+
* @export
|
|
119
|
+
*/
|
|
120
|
+
export declare const AccountNameshiftCommissionReasonDtoTldMatchTypeEnum: {
|
|
121
|
+
readonly NULL_TLD_DEFAULT: "null_tld_default";
|
|
122
|
+
readonly INCLUDED_TLD_LIST: "included_tld_list";
|
|
123
|
+
readonly ALL_TLDS_DEFAULT: "all_tlds_default";
|
|
124
|
+
};
|
|
125
|
+
export type AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum[keyof typeof AccountNameshiftCommissionReasonDtoTldMatchTypeEnum];
|
|
105
126
|
/**
|
|
106
127
|
* Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
|
|
107
128
|
*/
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = exports.AccountNameshiftCommissionReasonDtoTypeEnum = void 0;
|
|
16
|
+
exports.AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = exports.AccountNameshiftCommissionReasonDtoTypeEnum = void 0;
|
|
17
17
|
exports.instanceOfAccountNameshiftCommissionReasonDto = instanceOfAccountNameshiftCommissionReasonDto;
|
|
18
18
|
exports.AccountNameshiftCommissionReasonDtoFromJSON = AccountNameshiftCommissionReasonDtoFromJSON;
|
|
19
19
|
exports.AccountNameshiftCommissionReasonDtoFromJSONTyped = AccountNameshiftCommissionReasonDtoFromJSONTyped;
|
|
@@ -37,6 +37,14 @@ exports.AccountNameshiftCommissionReasonDtoSubtypeEnum = {
|
|
|
37
37
|
MANUAL_LEAD: 'manual_lead',
|
|
38
38
|
AUCTION: 'auction'
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
exports.AccountNameshiftCommissionReasonDtoTldMatchTypeEnum = {
|
|
44
|
+
NULL_TLD_DEFAULT: 'null_tld_default',
|
|
45
|
+
INCLUDED_TLD_LIST: 'included_tld_list',
|
|
46
|
+
ALL_TLDS_DEFAULT: 'all_tlds_default'
|
|
47
|
+
};
|
|
40
48
|
/**
|
|
41
49
|
* Check if a given object implements the AccountNameshiftCommissionReasonDto interface.
|
|
42
50
|
*/
|
|
@@ -62,6 +70,8 @@ function AccountNameshiftCommissionReasonDtoFromJSONTyped(json, ignoreDiscrimina
|
|
|
62
70
|
'selectedValue': json['selectedValue'] == null ? undefined : json['selectedValue'],
|
|
63
71
|
'selectedTier': json['selectedTier'] == null ? undefined : (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoFromJSON)(json['selectedTier']),
|
|
64
72
|
'factorCountResult': json['factorCountResult'] == null ? undefined : json['factorCountResult'],
|
|
73
|
+
'tldMatchType': json['tldMatchType'] == null ? undefined : json['tldMatchType'],
|
|
74
|
+
'tldMatchedValue': json['tldMatchedValue'] == null ? undefined : json['tldMatchedValue'],
|
|
65
75
|
};
|
|
66
76
|
}
|
|
67
77
|
function AccountNameshiftCommissionReasonDtoToJSON(json) {
|
|
@@ -84,5 +94,7 @@ function AccountNameshiftCommissionReasonDtoToJSONTyped(value, ignoreDiscriminat
|
|
|
84
94
|
'selectedValue': value['selectedValue'],
|
|
85
95
|
'selectedTier': (0, CommissionPercentageRangeDto_1.CommissionPercentageRangeDtoToJSON)(value['selectedTier']),
|
|
86
96
|
'factorCountResult': value['factorCountResult'],
|
|
97
|
+
'tldMatchType': value['tldMatchType'],
|
|
98
|
+
'tldMatchedValue': value['tldMatchedValue'],
|
|
87
99
|
};
|
|
88
100
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ChangeInvoiceStatusInput
|
|
16
|
+
*/
|
|
17
|
+
export interface ChangeInvoiceStatusInput {
|
|
18
|
+
/**
|
|
19
|
+
* New status to apply to the invoice
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChangeInvoiceStatusInput
|
|
22
|
+
*/
|
|
23
|
+
status: ChangeInvoiceStatusInputStatusEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const ChangeInvoiceStatusInputStatusEnum: {
|
|
29
|
+
readonly DRAFT: "draft";
|
|
30
|
+
readonly PENDING_PAYMENT: "pending_payment";
|
|
31
|
+
readonly PAID: "paid";
|
|
32
|
+
readonly CANCELLED: "cancelled";
|
|
33
|
+
};
|
|
34
|
+
export type ChangeInvoiceStatusInputStatusEnum = typeof ChangeInvoiceStatusInputStatusEnum[keyof typeof ChangeInvoiceStatusInputStatusEnum];
|
|
35
|
+
/**
|
|
36
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
37
|
+
*/
|
|
38
|
+
export declare function instanceOfChangeInvoiceStatusInput(value: object): value is ChangeInvoiceStatusInput;
|
|
39
|
+
export declare function ChangeInvoiceStatusInputFromJSON(json: any): ChangeInvoiceStatusInput;
|
|
40
|
+
export declare function ChangeInvoiceStatusInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangeInvoiceStatusInput;
|
|
41
|
+
export declare function ChangeInvoiceStatusInputToJSON(json: any): ChangeInvoiceStatusInput;
|
|
42
|
+
export declare function ChangeInvoiceStatusInputToJSONTyped(value?: ChangeInvoiceStatusInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ChangeInvoiceStatusInputStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfChangeInvoiceStatusInput = instanceOfChangeInvoiceStatusInput;
|
|
18
|
+
exports.ChangeInvoiceStatusInputFromJSON = ChangeInvoiceStatusInputFromJSON;
|
|
19
|
+
exports.ChangeInvoiceStatusInputFromJSONTyped = ChangeInvoiceStatusInputFromJSONTyped;
|
|
20
|
+
exports.ChangeInvoiceStatusInputToJSON = ChangeInvoiceStatusInputToJSON;
|
|
21
|
+
exports.ChangeInvoiceStatusInputToJSONTyped = ChangeInvoiceStatusInputToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.ChangeInvoiceStatusInputStatusEnum = {
|
|
26
|
+
DRAFT: 'draft',
|
|
27
|
+
PENDING_PAYMENT: 'pending_payment',
|
|
28
|
+
PAID: 'paid',
|
|
29
|
+
CANCELLED: 'cancelled'
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the ChangeInvoiceStatusInput interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfChangeInvoiceStatusInput(value) {
|
|
35
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function ChangeInvoiceStatusInputFromJSON(json) {
|
|
40
|
+
return ChangeInvoiceStatusInputFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ChangeInvoiceStatusInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': json['status'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function ChangeInvoiceStatusInputToJSON(json) {
|
|
51
|
+
return ChangeInvoiceStatusInputToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function ChangeInvoiceStatusInputToJSONTyped(value, ignoreDiscriminator) {
|
|
54
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'status': value['status'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { CommissionConfigurationSimulationInputPayload } from './CommissionConfigurationSimulationInputPayload';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionConfigurationSimulationInput
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionConfigurationSimulationInput {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {CommissionConfigurationSimulationInputPayload}
|
|
22
|
+
* @memberof CommissionConfigurationSimulationInput
|
|
23
|
+
*/
|
|
24
|
+
payload: CommissionConfigurationSimulationInputPayload;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the CommissionConfigurationSimulationInput interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfCommissionConfigurationSimulationInput(value: object): value is CommissionConfigurationSimulationInput;
|
|
30
|
+
export declare function CommissionConfigurationSimulationInputFromJSON(json: any): CommissionConfigurationSimulationInput;
|
|
31
|
+
export declare function CommissionConfigurationSimulationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CommissionConfigurationSimulationInput;
|
|
32
|
+
export declare function CommissionConfigurationSimulationInputToJSON(json: any): CommissionConfigurationSimulationInput;
|
|
33
|
+
export declare function CommissionConfigurationSimulationInputToJSONTyped(value?: CommissionConfigurationSimulationInput | null, ignoreDiscriminator?: boolean): any;
|