@randock/nameshift-api-client 0.0.385 → 0.0.387
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 +1 -0
- package/README.md +3 -3
- package/dist/apis/AdminApi.d.ts +24 -1
- package/dist/apis/AdminApi.js +107 -0
- package/dist/models/OrderListItemDto.d.ts +12 -0
- package/dist/models/OrderListItemDto.js +8 -0
- package/dist/models/SubscriptionListItemDto.d.ts +6 -0
- package/dist/models/SubscriptionListItemDto.js +4 -0
- package/dist/models/UpdateAccountChallengeRewardBalanceInput.d.ts +32 -0
- package/dist/models/UpdateAccountChallengeRewardBalanceInput.js +51 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +102 -0
- package/src/models/OrderListItemDto.ts +18 -0
- package/src/models/SubscriptionListItemDto.ts +9 -0
- package/src/models/UpdateAccountChallengeRewardBalanceInput.ts +66 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -452,6 +452,7 @@ src/models/TimeTableConfigurationInput.ts
|
|
|
452
452
|
src/models/TopSellerAccountDto.ts
|
|
453
453
|
src/models/UkBankAccountDetails.ts
|
|
454
454
|
src/models/UpdateAccountBillingInformationInput.ts
|
|
455
|
+
src/models/UpdateAccountChallengeRewardBalanceInput.ts
|
|
455
456
|
src/models/UpdateAuctionMuteStatusInput.ts
|
|
456
457
|
src/models/UpdateBuyerDomainTransferIpsTagInputDto.ts
|
|
457
458
|
src/models/UpdateBuyerNotificationSettingsInput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.387
|
|
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.387 --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
|
+
d3154c18be36ad2333174ed68f7f57656df4859ca5e6c8674af9571b697a2d27ab4b9e030fc97d7390b291a7f38a902a
|
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, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminChallengeListDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, CreateChallengeInput, DomainLockDto, DomainTransferDetailsDto, GetAccountChallengeRewardUsagesListDto, GetAllAuctions200Response, GetAllFeatureFlags200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto, UpdateAccountChallengeRewardBalanceInput, UpdateChallengeInput, UpdateFeatureFlagInput } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -40,6 +40,9 @@ export interface AdminApiDeleteChallengeRequest {
|
|
|
40
40
|
export interface AdminApiDownloadInvoiceRequest {
|
|
41
41
|
invoiceId: string;
|
|
42
42
|
}
|
|
43
|
+
export interface AdminApiForceRetrySubscriptionRenewRequest {
|
|
44
|
+
subscriptionId: string;
|
|
45
|
+
}
|
|
43
46
|
export interface AdminApiGetAccountChallengeRewardUsagesByAccountIdRequest {
|
|
44
47
|
accountId: string;
|
|
45
48
|
}
|
|
@@ -170,6 +173,10 @@ export interface AdminApiRemoveDomainLockRequest {
|
|
|
170
173
|
export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
171
174
|
accountId: string;
|
|
172
175
|
}
|
|
176
|
+
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
177
|
+
accountId: string;
|
|
178
|
+
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
179
|
+
}
|
|
173
180
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
174
181
|
accountId: string;
|
|
175
182
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -256,6 +263,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
256
263
|
*
|
|
257
264
|
*/
|
|
258
265
|
downloadInvoice(requestParameters: AdminApiDownloadInvoiceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob>;
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
*/
|
|
269
|
+
forceRetrySubscriptionRenewRaw(requestParameters: AdminApiForceRetrySubscriptionRenewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
forceRetrySubscriptionRenew(requestParameters: AdminApiForceRetrySubscriptionRenewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
259
274
|
/**
|
|
260
275
|
*
|
|
261
276
|
*/
|
|
@@ -520,6 +535,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
520
535
|
*
|
|
521
536
|
*/
|
|
522
537
|
syncAllAccountPaymentMethodProfiles(requestParameters: AdminApiSyncAllAccountPaymentMethodProfilesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
538
|
+
/**
|
|
539
|
+
*
|
|
540
|
+
*/
|
|
541
|
+
updateAccountChallengeRewardBalancePointsRaw(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
542
|
+
/**
|
|
543
|
+
*
|
|
544
|
+
*/
|
|
545
|
+
updateAccountChallengeRewardBalancePoints(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
523
546
|
/**
|
|
524
547
|
*
|
|
525
548
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -513,6 +513,57 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
513
513
|
});
|
|
514
514
|
});
|
|
515
515
|
};
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
*/
|
|
519
|
+
AdminApi.prototype.forceRetrySubscriptionRenewRaw = function (requestParameters, initOverrides) {
|
|
520
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
521
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
522
|
+
return __generator(this, function (_a) {
|
|
523
|
+
switch (_a.label) {
|
|
524
|
+
case 0:
|
|
525
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
526
|
+
throw new runtime.RequiredError('subscriptionId', 'Required parameter "subscriptionId" was null or undefined when calling forceRetrySubscriptionRenew().');
|
|
527
|
+
}
|
|
528
|
+
queryParameters = {};
|
|
529
|
+
headerParameters = {};
|
|
530
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
531
|
+
token = this.configuration.accessToken;
|
|
532
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
533
|
+
case 1:
|
|
534
|
+
tokenString = _a.sent();
|
|
535
|
+
if (tokenString) {
|
|
536
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
537
|
+
}
|
|
538
|
+
_a.label = 2;
|
|
539
|
+
case 2: return [4 /*yield*/, this.request({
|
|
540
|
+
path: "/admin/subscriptions/{subscriptionId}/renew/force-retry".replace("{".concat("subscriptionId", "}"), encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
541
|
+
method: 'PATCH',
|
|
542
|
+
headers: headerParameters,
|
|
543
|
+
query: queryParameters,
|
|
544
|
+
}, initOverrides)];
|
|
545
|
+
case 3:
|
|
546
|
+
response = _a.sent();
|
|
547
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
});
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
555
|
+
AdminApi.prototype.forceRetrySubscriptionRenew = function (requestParameters, initOverrides) {
|
|
556
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
557
|
+
return __generator(this, function (_a) {
|
|
558
|
+
switch (_a.label) {
|
|
559
|
+
case 0: return [4 /*yield*/, this.forceRetrySubscriptionRenewRaw(requestParameters, initOverrides)];
|
|
560
|
+
case 1:
|
|
561
|
+
_a.sent();
|
|
562
|
+
return [2 /*return*/];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
};
|
|
516
567
|
/**
|
|
517
568
|
*
|
|
518
569
|
*/
|
|
@@ -2371,6 +2422,62 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
2371
2422
|
});
|
|
2372
2423
|
});
|
|
2373
2424
|
};
|
|
2425
|
+
/**
|
|
2426
|
+
*
|
|
2427
|
+
*/
|
|
2428
|
+
AdminApi.prototype.updateAccountChallengeRewardBalancePointsRaw = function (requestParameters, initOverrides) {
|
|
2429
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2430
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
2431
|
+
return __generator(this, function (_a) {
|
|
2432
|
+
switch (_a.label) {
|
|
2433
|
+
case 0:
|
|
2434
|
+
if (requestParameters['accountId'] == null) {
|
|
2435
|
+
throw new runtime.RequiredError('accountId', 'Required parameter "accountId" was null or undefined when calling updateAccountChallengeRewardBalancePoints().');
|
|
2436
|
+
}
|
|
2437
|
+
if (requestParameters['updateAccountChallengeRewardBalanceInput'] == null) {
|
|
2438
|
+
throw new runtime.RequiredError('updateAccountChallengeRewardBalanceInput', 'Required parameter "updateAccountChallengeRewardBalanceInput" was null or undefined when calling updateAccountChallengeRewardBalancePoints().');
|
|
2439
|
+
}
|
|
2440
|
+
queryParameters = {};
|
|
2441
|
+
headerParameters = {};
|
|
2442
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2443
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
2444
|
+
token = this.configuration.accessToken;
|
|
2445
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
2446
|
+
case 1:
|
|
2447
|
+
tokenString = _a.sent();
|
|
2448
|
+
if (tokenString) {
|
|
2449
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
2450
|
+
}
|
|
2451
|
+
_a.label = 2;
|
|
2452
|
+
case 2: return [4 /*yield*/, this.request({
|
|
2453
|
+
path: "/admin/accounts/{accountId}/challenge-reward-balance-points".replace("{".concat("accountId", "}"), encodeURIComponent(String(requestParameters['accountId']))),
|
|
2454
|
+
method: 'PATCH',
|
|
2455
|
+
headers: headerParameters,
|
|
2456
|
+
query: queryParameters,
|
|
2457
|
+
body: (0, index_1.UpdateAccountChallengeRewardBalanceInputToJSON)(requestParameters['updateAccountChallengeRewardBalanceInput']),
|
|
2458
|
+
}, initOverrides)];
|
|
2459
|
+
case 3:
|
|
2460
|
+
response = _a.sent();
|
|
2461
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
2462
|
+
}
|
|
2463
|
+
});
|
|
2464
|
+
});
|
|
2465
|
+
};
|
|
2466
|
+
/**
|
|
2467
|
+
*
|
|
2468
|
+
*/
|
|
2469
|
+
AdminApi.prototype.updateAccountChallengeRewardBalancePoints = function (requestParameters, initOverrides) {
|
|
2470
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2471
|
+
return __generator(this, function (_a) {
|
|
2472
|
+
switch (_a.label) {
|
|
2473
|
+
case 0: return [4 /*yield*/, this.updateAccountChallengeRewardBalancePointsRaw(requestParameters, initOverrides)];
|
|
2474
|
+
case 1:
|
|
2475
|
+
_a.sent();
|
|
2476
|
+
return [2 /*return*/];
|
|
2477
|
+
}
|
|
2478
|
+
});
|
|
2479
|
+
});
|
|
2480
|
+
};
|
|
2374
2481
|
/**
|
|
2375
2482
|
*
|
|
2376
2483
|
*/
|
|
@@ -25,6 +25,12 @@ export interface OrderListItemDto {
|
|
|
25
25
|
* @memberof OrderListItemDto
|
|
26
26
|
*/
|
|
27
27
|
id: object;
|
|
28
|
+
/**
|
|
29
|
+
* The order invoice ID
|
|
30
|
+
* @type {object}
|
|
31
|
+
* @memberof OrderListItemDto
|
|
32
|
+
*/
|
|
33
|
+
invoiceId: object;
|
|
28
34
|
/**
|
|
29
35
|
* The order status
|
|
30
36
|
* @type {string}
|
|
@@ -67,6 +73,12 @@ export interface OrderListItemDto {
|
|
|
67
73
|
* @memberof OrderListItemDto
|
|
68
74
|
*/
|
|
69
75
|
basePrice: MoneyDto | null;
|
|
76
|
+
/**
|
|
77
|
+
* The order base price converted to EUR
|
|
78
|
+
* @type {MoneyDto}
|
|
79
|
+
* @memberof OrderListItemDto
|
|
80
|
+
*/
|
|
81
|
+
basePriceEur: MoneyDto | null;
|
|
70
82
|
/**
|
|
71
83
|
* The order lead ID
|
|
72
84
|
* @type {object}
|
|
@@ -38,6 +38,8 @@ exports.OrderListItemDtoStatusEnum = {
|
|
|
38
38
|
function instanceOfOrderListItemDto(value) {
|
|
39
39
|
if (!('id' in value) || value['id'] === undefined)
|
|
40
40
|
return false;
|
|
41
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined)
|
|
42
|
+
return false;
|
|
41
43
|
if (!('status' in value) || value['status'] === undefined)
|
|
42
44
|
return false;
|
|
43
45
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -52,6 +54,8 @@ function instanceOfOrderListItemDto(value) {
|
|
|
52
54
|
return false;
|
|
53
55
|
if (!('basePrice' in value) || value['basePrice'] === undefined)
|
|
54
56
|
return false;
|
|
57
|
+
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined)
|
|
58
|
+
return false;
|
|
55
59
|
if (!('leadId' in value) || value['leadId'] === undefined)
|
|
56
60
|
return false;
|
|
57
61
|
if (!('auctionId' in value) || value['auctionId'] === undefined)
|
|
@@ -69,6 +73,7 @@ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
69
73
|
}
|
|
70
74
|
return {
|
|
71
75
|
'id': json['id'],
|
|
76
|
+
'invoiceId': json['invoiceId'],
|
|
72
77
|
'status': json['status'],
|
|
73
78
|
'createdAt': (new Date(json['createdAt'])),
|
|
74
79
|
'paidAt': (json['paidAt'] == null ? null : new Date(json['paidAt'])),
|
|
@@ -76,6 +81,7 @@ function OrderListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
76
81
|
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountFromJSON)(json['sellerAccount']),
|
|
77
82
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationFromJSON)(json['buyerInformation']),
|
|
78
83
|
'basePrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePrice']),
|
|
84
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoFromJSON)(json['basePriceEur']),
|
|
79
85
|
'leadId': json['leadId'],
|
|
80
86
|
'auctionId': json['auctionId'],
|
|
81
87
|
'domainTransferId': json['domainTransferId'],
|
|
@@ -91,6 +97,7 @@ function OrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
91
97
|
}
|
|
92
98
|
return {
|
|
93
99
|
'id': value['id'],
|
|
100
|
+
'invoiceId': value['invoiceId'],
|
|
94
101
|
'status': value['status'],
|
|
95
102
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
96
103
|
'paidAt': (value['paidAt'] == null ? null : value['paidAt'].toISOString()),
|
|
@@ -98,6 +105,7 @@ function OrderListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
98
105
|
'sellerAccount': (0, OrderListItemDtoSellerAccount_1.OrderListItemDtoSellerAccountToJSON)(value['sellerAccount']),
|
|
99
106
|
'buyerInformation': (0, OrderListItemDtoBuyerInformation_1.OrderListItemDtoBuyerInformationToJSON)(value['buyerInformation']),
|
|
100
107
|
'basePrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePrice']),
|
|
108
|
+
'basePriceEur': (0, MoneyDto_1.MoneyDtoToJSON)(value['basePriceEur']),
|
|
101
109
|
'leadId': value['leadId'],
|
|
102
110
|
'auctionId': value['auctionId'],
|
|
103
111
|
'domainTransferId': value['domainTransferId'],
|
|
@@ -140,6 +140,12 @@ export interface SubscriptionListItemDto {
|
|
|
140
140
|
* @memberof SubscriptionListItemDto
|
|
141
141
|
*/
|
|
142
142
|
renewStatusReason: SubscriptionListItemDtoRenewStatusReasonEnum | null;
|
|
143
|
+
/**
|
|
144
|
+
* The number of failed renew intents
|
|
145
|
+
* @type {number}
|
|
146
|
+
* @memberof SubscriptionListItemDto
|
|
147
|
+
*/
|
|
148
|
+
failedRenewIntents: number;
|
|
143
149
|
/**
|
|
144
150
|
* The subscription recurring markup percentage
|
|
145
151
|
* @type {number}
|
|
@@ -107,6 +107,8 @@ function instanceOfSubscriptionListItemDto(value) {
|
|
|
107
107
|
return false;
|
|
108
108
|
if (!('renewStatusReason' in value) || value['renewStatusReason'] === undefined)
|
|
109
109
|
return false;
|
|
110
|
+
if (!('failedRenewIntents' in value) || value['failedRenewIntents'] === undefined)
|
|
111
|
+
return false;
|
|
110
112
|
if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined)
|
|
111
113
|
return false;
|
|
112
114
|
if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined)
|
|
@@ -145,6 +147,7 @@ function SubscriptionListItemDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
145
147
|
'renewRetryAt': (new Date(json['renewRetryAt'])),
|
|
146
148
|
'renewStatus': json['renewStatus'],
|
|
147
149
|
'renewStatusReason': json['renewStatusReason'],
|
|
150
|
+
'failedRenewIntents': json['failedRenewIntents'],
|
|
148
151
|
'recurringMarkupPercentage': json['recurringMarkupPercentage'],
|
|
149
152
|
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoFromJSON)(json['recurringMarkupPrice']),
|
|
150
153
|
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
@@ -180,6 +183,7 @@ function SubscriptionListItemDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
180
183
|
'renewRetryAt': ((value['renewRetryAt']).toISOString()),
|
|
181
184
|
'renewStatus': value['renewStatus'],
|
|
182
185
|
'renewStatusReason': value['renewStatusReason'],
|
|
186
|
+
'failedRenewIntents': value['failedRenewIntents'],
|
|
183
187
|
'recurringMarkupPercentage': value['recurringMarkupPercentage'],
|
|
184
188
|
'recurringMarkupPrice': (0, MoneyDto_1.MoneyDtoToJSON)(value['recurringMarkupPrice']),
|
|
185
189
|
'billingPeriodicity': (0, SubscriptionListItemBillingPeriodicityDto_1.SubscriptionListItemBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
@@ -0,0 +1,32 @@
|
|
|
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 UpdateAccountChallengeRewardBalanceInput
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateAccountChallengeRewardBalanceInput {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof UpdateAccountChallengeRewardBalanceInput
|
|
22
|
+
*/
|
|
23
|
+
balancePoints: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateAccountChallengeRewardBalanceInput interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateAccountChallengeRewardBalanceInput(value: object): value is UpdateAccountChallengeRewardBalanceInput;
|
|
29
|
+
export declare function UpdateAccountChallengeRewardBalanceInputFromJSON(json: any): UpdateAccountChallengeRewardBalanceInput;
|
|
30
|
+
export declare function UpdateAccountChallengeRewardBalanceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountChallengeRewardBalanceInput;
|
|
31
|
+
export declare function UpdateAccountChallengeRewardBalanceInputToJSON(json: any): UpdateAccountChallengeRewardBalanceInput;
|
|
32
|
+
export declare function UpdateAccountChallengeRewardBalanceInputToJSONTyped(value?: UpdateAccountChallengeRewardBalanceInput | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.instanceOfUpdateAccountChallengeRewardBalanceInput = instanceOfUpdateAccountChallengeRewardBalanceInput;
|
|
17
|
+
exports.UpdateAccountChallengeRewardBalanceInputFromJSON = UpdateAccountChallengeRewardBalanceInputFromJSON;
|
|
18
|
+
exports.UpdateAccountChallengeRewardBalanceInputFromJSONTyped = UpdateAccountChallengeRewardBalanceInputFromJSONTyped;
|
|
19
|
+
exports.UpdateAccountChallengeRewardBalanceInputToJSON = UpdateAccountChallengeRewardBalanceInputToJSON;
|
|
20
|
+
exports.UpdateAccountChallengeRewardBalanceInputToJSONTyped = UpdateAccountChallengeRewardBalanceInputToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateAccountChallengeRewardBalanceInput interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateAccountChallengeRewardBalanceInput(value) {
|
|
25
|
+
if (!('balancePoints' in value) || value['balancePoints'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateAccountChallengeRewardBalanceInputFromJSON(json) {
|
|
30
|
+
return UpdateAccountChallengeRewardBalanceInputFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateAccountChallengeRewardBalanceInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'balancePoints': json['balancePoints'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateAccountChallengeRewardBalanceInputToJSON(json) {
|
|
41
|
+
return UpdateAccountChallengeRewardBalanceInputToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateAccountChallengeRewardBalanceInputToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'balancePoints': value['balancePoints'],
|
|
50
|
+
};
|
|
51
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -416,6 +416,7 @@ export * from './TimeTableConfigurationInput';
|
|
|
416
416
|
export * from './TopSellerAccountDto';
|
|
417
417
|
export * from './UkBankAccountDetails';
|
|
418
418
|
export * from './UpdateAccountBillingInformationInput';
|
|
419
|
+
export * from './UpdateAccountChallengeRewardBalanceInput';
|
|
419
420
|
export * from './UpdateAuctionMuteStatusInput';
|
|
420
421
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
421
422
|
export * from './UpdateBuyerNotificationSettingsInput';
|
package/dist/models/index.js
CHANGED
|
@@ -434,6 +434,7 @@ __exportStar(require("./TimeTableConfigurationInput"), exports);
|
|
|
434
434
|
__exportStar(require("./TopSellerAccountDto"), exports);
|
|
435
435
|
__exportStar(require("./UkBankAccountDetails"), exports);
|
|
436
436
|
__exportStar(require("./UpdateAccountBillingInformationInput"), exports);
|
|
437
|
+
__exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
|
|
437
438
|
__exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
|
|
438
439
|
__exportStar(require("./UpdateBuyerDomainTransferIpsTagInputDto"), exports);
|
|
439
440
|
__exportStar(require("./UpdateBuyerNotificationSettingsInput"), exports);
|
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -52,6 +52,7 @@ import type {
|
|
|
52
52
|
SellerSalesCountStatsItemDto,
|
|
53
53
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInput,
|
|
54
54
|
SubscriptionDetailsDto,
|
|
55
|
+
UpdateAccountChallengeRewardBalanceInput,
|
|
55
56
|
UpdateChallengeInput,
|
|
56
57
|
UpdateFeatureFlagInput,
|
|
57
58
|
ValidationException,
|
|
@@ -131,6 +132,8 @@ import {
|
|
|
131
132
|
SendAdminLeadAiPriceNegotiatorAgentChatMessageInputToJSON,
|
|
132
133
|
SubscriptionDetailsDtoFromJSON,
|
|
133
134
|
SubscriptionDetailsDtoToJSON,
|
|
135
|
+
UpdateAccountChallengeRewardBalanceInputFromJSON,
|
|
136
|
+
UpdateAccountChallengeRewardBalanceInputToJSON,
|
|
134
137
|
UpdateChallengeInputFromJSON,
|
|
135
138
|
UpdateChallengeInputToJSON,
|
|
136
139
|
UpdateFeatureFlagInputFromJSON,
|
|
@@ -176,6 +179,10 @@ export interface AdminApiDownloadInvoiceRequest {
|
|
|
176
179
|
invoiceId: string;
|
|
177
180
|
}
|
|
178
181
|
|
|
182
|
+
export interface AdminApiForceRetrySubscriptionRenewRequest {
|
|
183
|
+
subscriptionId: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
179
186
|
export interface AdminApiGetAccountChallengeRewardUsagesByAccountIdRequest {
|
|
180
187
|
accountId: string;
|
|
181
188
|
}
|
|
@@ -338,6 +345,11 @@ export interface AdminApiSyncAllAccountPaymentMethodProfilesRequest {
|
|
|
338
345
|
accountId: string;
|
|
339
346
|
}
|
|
340
347
|
|
|
348
|
+
export interface AdminApiUpdateAccountChallengeRewardBalancePointsRequest {
|
|
349
|
+
accountId: string;
|
|
350
|
+
updateAccountChallengeRewardBalanceInput: UpdateAccountChallengeRewardBalanceInput;
|
|
351
|
+
}
|
|
352
|
+
|
|
341
353
|
export interface AdminApiUpdateAccountSettingsRequest {
|
|
342
354
|
accountId: string;
|
|
343
355
|
adminAccountSettingsInput: AdminAccountSettingsInput;
|
|
@@ -724,6 +736,46 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
724
736
|
return await response.value();
|
|
725
737
|
}
|
|
726
738
|
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
*/
|
|
742
|
+
async forceRetrySubscriptionRenewRaw(requestParameters: AdminApiForceRetrySubscriptionRenewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
743
|
+
if (requestParameters['subscriptionId'] == null) {
|
|
744
|
+
throw new runtime.RequiredError(
|
|
745
|
+
'subscriptionId',
|
|
746
|
+
'Required parameter "subscriptionId" was null or undefined when calling forceRetrySubscriptionRenew().'
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
const queryParameters: any = {};
|
|
751
|
+
|
|
752
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
753
|
+
|
|
754
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
755
|
+
const token = this.configuration.accessToken;
|
|
756
|
+
const tokenString = await token("bearer", []);
|
|
757
|
+
|
|
758
|
+
if (tokenString) {
|
|
759
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
const response = await this.request({
|
|
763
|
+
path: `/admin/subscriptions/{subscriptionId}/renew/force-retry`.replace(`{${"subscriptionId"}}`, encodeURIComponent(String(requestParameters['subscriptionId']))),
|
|
764
|
+
method: 'PATCH',
|
|
765
|
+
headers: headerParameters,
|
|
766
|
+
query: queryParameters,
|
|
767
|
+
}, initOverrides);
|
|
768
|
+
|
|
769
|
+
return new runtime.VoidApiResponse(response);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
*
|
|
774
|
+
*/
|
|
775
|
+
async forceRetrySubscriptionRenew(requestParameters: AdminApiForceRetrySubscriptionRenewRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
776
|
+
await this.forceRetrySubscriptionRenewRaw(requestParameters, initOverrides);
|
|
777
|
+
}
|
|
778
|
+
|
|
727
779
|
/**
|
|
728
780
|
*
|
|
729
781
|
*/
|
|
@@ -2193,6 +2245,56 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
2193
2245
|
await this.syncAllAccountPaymentMethodProfilesRaw(requestParameters, initOverrides);
|
|
2194
2246
|
}
|
|
2195
2247
|
|
|
2248
|
+
/**
|
|
2249
|
+
*
|
|
2250
|
+
*/
|
|
2251
|
+
async updateAccountChallengeRewardBalancePointsRaw(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
2252
|
+
if (requestParameters['accountId'] == null) {
|
|
2253
|
+
throw new runtime.RequiredError(
|
|
2254
|
+
'accountId',
|
|
2255
|
+
'Required parameter "accountId" was null or undefined when calling updateAccountChallengeRewardBalancePoints().'
|
|
2256
|
+
);
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
if (requestParameters['updateAccountChallengeRewardBalanceInput'] == null) {
|
|
2260
|
+
throw new runtime.RequiredError(
|
|
2261
|
+
'updateAccountChallengeRewardBalanceInput',
|
|
2262
|
+
'Required parameter "updateAccountChallengeRewardBalanceInput" was null or undefined when calling updateAccountChallengeRewardBalancePoints().'
|
|
2263
|
+
);
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
const queryParameters: any = {};
|
|
2267
|
+
|
|
2268
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2269
|
+
|
|
2270
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2271
|
+
|
|
2272
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2273
|
+
const token = this.configuration.accessToken;
|
|
2274
|
+
const tokenString = await token("bearer", []);
|
|
2275
|
+
|
|
2276
|
+
if (tokenString) {
|
|
2277
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
const response = await this.request({
|
|
2281
|
+
path: `/admin/accounts/{accountId}/challenge-reward-balance-points`.replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters['accountId']))),
|
|
2282
|
+
method: 'PATCH',
|
|
2283
|
+
headers: headerParameters,
|
|
2284
|
+
query: queryParameters,
|
|
2285
|
+
body: UpdateAccountChallengeRewardBalanceInputToJSON(requestParameters['updateAccountChallengeRewardBalanceInput']),
|
|
2286
|
+
}, initOverrides);
|
|
2287
|
+
|
|
2288
|
+
return new runtime.VoidApiResponse(response);
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
/**
|
|
2292
|
+
*
|
|
2293
|
+
*/
|
|
2294
|
+
async updateAccountChallengeRewardBalancePoints(requestParameters: AdminApiUpdateAccountChallengeRewardBalancePointsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
2295
|
+
await this.updateAccountChallengeRewardBalancePointsRaw(requestParameters, initOverrides);
|
|
2296
|
+
}
|
|
2297
|
+
|
|
2196
2298
|
/**
|
|
2197
2299
|
*
|
|
2198
2300
|
*/
|
|
@@ -54,6 +54,12 @@ export interface OrderListItemDto {
|
|
|
54
54
|
* @memberof OrderListItemDto
|
|
55
55
|
*/
|
|
56
56
|
id: object;
|
|
57
|
+
/**
|
|
58
|
+
* The order invoice ID
|
|
59
|
+
* @type {object}
|
|
60
|
+
* @memberof OrderListItemDto
|
|
61
|
+
*/
|
|
62
|
+
invoiceId: object;
|
|
57
63
|
/**
|
|
58
64
|
* The order status
|
|
59
65
|
* @type {string}
|
|
@@ -96,6 +102,12 @@ export interface OrderListItemDto {
|
|
|
96
102
|
* @memberof OrderListItemDto
|
|
97
103
|
*/
|
|
98
104
|
basePrice: MoneyDto | null;
|
|
105
|
+
/**
|
|
106
|
+
* The order base price converted to EUR
|
|
107
|
+
* @type {MoneyDto}
|
|
108
|
+
* @memberof OrderListItemDto
|
|
109
|
+
*/
|
|
110
|
+
basePriceEur: MoneyDto | null;
|
|
99
111
|
/**
|
|
100
112
|
* The order lead ID
|
|
101
113
|
* @type {object}
|
|
@@ -134,6 +146,7 @@ export type OrderListItemDtoStatusEnum = typeof OrderListItemDtoStatusEnum[keyof
|
|
|
134
146
|
*/
|
|
135
147
|
export function instanceOfOrderListItemDto(value: object): value is OrderListItemDto {
|
|
136
148
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
149
|
+
if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
|
|
137
150
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
138
151
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
139
152
|
if (!('paidAt' in value) || value['paidAt'] === undefined) return false;
|
|
@@ -141,6 +154,7 @@ export function instanceOfOrderListItemDto(value: object): value is OrderListIte
|
|
|
141
154
|
if (!('sellerAccount' in value) || value['sellerAccount'] === undefined) return false;
|
|
142
155
|
if (!('buyerInformation' in value) || value['buyerInformation'] === undefined) return false;
|
|
143
156
|
if (!('basePrice' in value) || value['basePrice'] === undefined) return false;
|
|
157
|
+
if (!('basePriceEur' in value) || value['basePriceEur'] === undefined) return false;
|
|
144
158
|
if (!('leadId' in value) || value['leadId'] === undefined) return false;
|
|
145
159
|
if (!('auctionId' in value) || value['auctionId'] === undefined) return false;
|
|
146
160
|
if (!('domainTransferId' in value) || value['domainTransferId'] === undefined) return false;
|
|
@@ -158,6 +172,7 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
158
172
|
return {
|
|
159
173
|
|
|
160
174
|
'id': json['id'],
|
|
175
|
+
'invoiceId': json['invoiceId'],
|
|
161
176
|
'status': json['status'],
|
|
162
177
|
'createdAt': (new Date(json['createdAt'])),
|
|
163
178
|
'paidAt': (json['paidAt'] == null ? null : new Date(json['paidAt'])),
|
|
@@ -165,6 +180,7 @@ export function OrderListItemDtoFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
165
180
|
'sellerAccount': OrderListItemDtoSellerAccountFromJSON(json['sellerAccount']),
|
|
166
181
|
'buyerInformation': OrderListItemDtoBuyerInformationFromJSON(json['buyerInformation']),
|
|
167
182
|
'basePrice': MoneyDtoFromJSON(json['basePrice']),
|
|
183
|
+
'basePriceEur': MoneyDtoFromJSON(json['basePriceEur']),
|
|
168
184
|
'leadId': json['leadId'],
|
|
169
185
|
'auctionId': json['auctionId'],
|
|
170
186
|
'domainTransferId': json['domainTransferId'],
|
|
@@ -183,6 +199,7 @@ export function OrderListItemDtoToJSONTyped(value?: OrderListItemDto | null, ign
|
|
|
183
199
|
return {
|
|
184
200
|
|
|
185
201
|
'id': value['id'],
|
|
202
|
+
'invoiceId': value['invoiceId'],
|
|
186
203
|
'status': value['status'],
|
|
187
204
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
188
205
|
'paidAt': (value['paidAt'] == null ? null : (value['paidAt'] as any).toISOString()),
|
|
@@ -190,6 +207,7 @@ export function OrderListItemDtoToJSONTyped(value?: OrderListItemDto | null, ign
|
|
|
190
207
|
'sellerAccount': OrderListItemDtoSellerAccountToJSON(value['sellerAccount']),
|
|
191
208
|
'buyerInformation': OrderListItemDtoBuyerInformationToJSON(value['buyerInformation']),
|
|
192
209
|
'basePrice': MoneyDtoToJSON(value['basePrice']),
|
|
210
|
+
'basePriceEur': MoneyDtoToJSON(value['basePriceEur']),
|
|
193
211
|
'leadId': value['leadId'],
|
|
194
212
|
'auctionId': value['auctionId'],
|
|
195
213
|
'domainTransferId': value['domainTransferId'],
|
|
@@ -175,6 +175,12 @@ export interface SubscriptionListItemDto {
|
|
|
175
175
|
* @memberof SubscriptionListItemDto
|
|
176
176
|
*/
|
|
177
177
|
renewStatusReason: SubscriptionListItemDtoRenewStatusReasonEnum | null;
|
|
178
|
+
/**
|
|
179
|
+
* The number of failed renew intents
|
|
180
|
+
* @type {number}
|
|
181
|
+
* @memberof SubscriptionListItemDto
|
|
182
|
+
*/
|
|
183
|
+
failedRenewIntents: number;
|
|
178
184
|
/**
|
|
179
185
|
* The subscription recurring markup percentage
|
|
180
186
|
* @type {number}
|
|
@@ -276,6 +282,7 @@ export function instanceOfSubscriptionListItemDto(value: object): value is Subsc
|
|
|
276
282
|
if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined) return false;
|
|
277
283
|
if (!('renewStatus' in value) || value['renewStatus'] === undefined) return false;
|
|
278
284
|
if (!('renewStatusReason' in value) || value['renewStatusReason'] === undefined) return false;
|
|
285
|
+
if (!('failedRenewIntents' in value) || value['failedRenewIntents'] === undefined) return false;
|
|
279
286
|
if (!('recurringMarkupPercentage' in value) || value['recurringMarkupPercentage'] === undefined) return false;
|
|
280
287
|
if (!('recurringMarkupPrice' in value) || value['recurringMarkupPrice'] === undefined) return false;
|
|
281
288
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
@@ -313,6 +320,7 @@ export function SubscriptionListItemDtoFromJSONTyped(json: any, ignoreDiscrimina
|
|
|
313
320
|
'renewRetryAt': (new Date(json['renewRetryAt'])),
|
|
314
321
|
'renewStatus': json['renewStatus'],
|
|
315
322
|
'renewStatusReason': json['renewStatusReason'],
|
|
323
|
+
'failedRenewIntents': json['failedRenewIntents'],
|
|
316
324
|
'recurringMarkupPercentage': json['recurringMarkupPercentage'],
|
|
317
325
|
'recurringMarkupPrice': MoneyDtoFromJSON(json['recurringMarkupPrice']),
|
|
318
326
|
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
@@ -351,6 +359,7 @@ export function SubscriptionListItemDtoToJSONTyped(value?: SubscriptionListItemD
|
|
|
351
359
|
'renewRetryAt': ((value['renewRetryAt']).toISOString()),
|
|
352
360
|
'renewStatus': value['renewStatus'],
|
|
353
361
|
'renewStatusReason': value['renewStatusReason'],
|
|
362
|
+
'failedRenewIntents': value['failedRenewIntents'],
|
|
354
363
|
'recurringMarkupPercentage': value['recurringMarkupPercentage'],
|
|
355
364
|
'recurringMarkupPrice': MoneyDtoToJSON(value['recurringMarkupPrice']),
|
|
356
365
|
'billingPeriodicity': SubscriptionListItemBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateAccountChallengeRewardBalanceInput
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateAccountChallengeRewardBalanceInput {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof UpdateAccountChallengeRewardBalanceInput
|
|
26
|
+
*/
|
|
27
|
+
balancePoints: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateAccountChallengeRewardBalanceInput interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateAccountChallengeRewardBalanceInput(value: object): value is UpdateAccountChallengeRewardBalanceInput {
|
|
34
|
+
if (!('balancePoints' in value) || value['balancePoints'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateAccountChallengeRewardBalanceInputFromJSON(json: any): UpdateAccountChallengeRewardBalanceInput {
|
|
39
|
+
return UpdateAccountChallengeRewardBalanceInputFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateAccountChallengeRewardBalanceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountChallengeRewardBalanceInput {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'balancePoints': json['balancePoints'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateAccountChallengeRewardBalanceInputToJSON(json: any): UpdateAccountChallengeRewardBalanceInput {
|
|
53
|
+
return UpdateAccountChallengeRewardBalanceInputToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateAccountChallengeRewardBalanceInputToJSONTyped(value?: UpdateAccountChallengeRewardBalanceInput | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'balancePoints': value['balancePoints'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -418,6 +418,7 @@ export * from './TimeTableConfigurationInput';
|
|
|
418
418
|
export * from './TopSellerAccountDto';
|
|
419
419
|
export * from './UkBankAccountDetails';
|
|
420
420
|
export * from './UpdateAccountBillingInformationInput';
|
|
421
|
+
export * from './UpdateAccountChallengeRewardBalanceInput';
|
|
421
422
|
export * from './UpdateAuctionMuteStatusInput';
|
|
422
423
|
export * from './UpdateBuyerDomainTransferIpsTagInputDto';
|
|
423
424
|
export * from './UpdateBuyerNotificationSettingsInput';
|