@randock/nameshift-api-client 0.0.257 → 0.0.259
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/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +22 -0
- package/dist/apis/LeadsApi.js +102 -0
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.d.ts +6 -6
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.js +4 -4
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.d.ts +6 -0
- package/dist/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.js +2 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationDto.d.ts +6 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationDto.js +4 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationInput.d.ts +6 -0
- package/dist/models/LeadPriceNegotiatorAiAgentConfigurationInput.js +2 -0
- package/dist/models/SubscriptionDetailsDto.d.ts +24 -0
- package/dist/models/SubscriptionDetailsDto.js +16 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +88 -0
- package/src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts +9 -9
- package/src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts +8 -0
- package/src/models/LeadPriceNegotiatorAiAgentConfigurationDto.ts +9 -0
- package/src/models/LeadPriceNegotiatorAiAgentConfigurationInput.ts +8 -0
- package/src/models/SubscriptionDetailsDto.ts +36 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.259
|
|
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.259 --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
|
+
66249f3e0d6a0b490c5ecceaa6e0497422e44144879026615e7d6df7f8c79dc48fa05b453df9e5992858bb6239f47b78
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -43,10 +43,16 @@ export interface LeadsApiListRequest {
|
|
|
43
43
|
limit?: number;
|
|
44
44
|
sortBy?: Array<string>;
|
|
45
45
|
}
|
|
46
|
+
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
47
|
+
leadId: string;
|
|
48
|
+
}
|
|
46
49
|
export interface LeadsApiPutOfferRequest {
|
|
47
50
|
leadId: string;
|
|
48
51
|
putLeadOfferInput: PutLeadOfferInput;
|
|
49
52
|
}
|
|
53
|
+
export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
|
|
54
|
+
leadId: string;
|
|
55
|
+
}
|
|
50
56
|
export interface LeadsApiUnarchiveLeadRequest {
|
|
51
57
|
leadId: string;
|
|
52
58
|
}
|
|
@@ -126,6 +132,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
126
132
|
*
|
|
127
133
|
*/
|
|
128
134
|
list(requestParameters?: LeadsApiListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<List200Response>;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
pauseLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
*/
|
|
142
|
+
pauseLeadPriceNegotiatorAgent(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
129
143
|
/**
|
|
130
144
|
*
|
|
131
145
|
*/
|
|
@@ -134,6 +148,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
134
148
|
*
|
|
135
149
|
*/
|
|
136
150
|
putOffer(requestParameters: LeadsApiPutOfferRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
resumeLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
resumeLeadPriceNegotiatorAgent(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
137
159
|
/**
|
|
138
160
|
*
|
|
139
161
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -567,6 +567,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
567
567
|
});
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
+
/**
|
|
571
|
+
*
|
|
572
|
+
*/
|
|
573
|
+
LeadsApi.prototype.pauseLeadPriceNegotiatorAgentRaw = function (requestParameters, initOverrides) {
|
|
574
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
575
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
576
|
+
return __generator(this, function (_a) {
|
|
577
|
+
switch (_a.label) {
|
|
578
|
+
case 0:
|
|
579
|
+
if (requestParameters['leadId'] == null) {
|
|
580
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling pauseLeadPriceNegotiatorAgent().');
|
|
581
|
+
}
|
|
582
|
+
queryParameters = {};
|
|
583
|
+
headerParameters = {};
|
|
584
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
585
|
+
token = this.configuration.accessToken;
|
|
586
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
587
|
+
case 1:
|
|
588
|
+
tokenString = _a.sent();
|
|
589
|
+
if (tokenString) {
|
|
590
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
591
|
+
}
|
|
592
|
+
_a.label = 2;
|
|
593
|
+
case 2: return [4 /*yield*/, this.request({
|
|
594
|
+
path: "/private/leads/{leadId}/price-negotiator-agent/pause".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
595
|
+
method: 'POST',
|
|
596
|
+
headers: headerParameters,
|
|
597
|
+
query: queryParameters,
|
|
598
|
+
}, initOverrides)];
|
|
599
|
+
case 3:
|
|
600
|
+
response = _a.sent();
|
|
601
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
602
|
+
}
|
|
603
|
+
});
|
|
604
|
+
});
|
|
605
|
+
};
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
*/
|
|
609
|
+
LeadsApi.prototype.pauseLeadPriceNegotiatorAgent = function (requestParameters, initOverrides) {
|
|
610
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
611
|
+
return __generator(this, function (_a) {
|
|
612
|
+
switch (_a.label) {
|
|
613
|
+
case 0: return [4 /*yield*/, this.pauseLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides)];
|
|
614
|
+
case 1:
|
|
615
|
+
_a.sent();
|
|
616
|
+
return [2 /*return*/];
|
|
617
|
+
}
|
|
618
|
+
});
|
|
619
|
+
});
|
|
620
|
+
};
|
|
570
621
|
/**
|
|
571
622
|
*
|
|
572
623
|
*/
|
|
@@ -623,6 +674,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
623
674
|
});
|
|
624
675
|
});
|
|
625
676
|
};
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
*/
|
|
680
|
+
LeadsApi.prototype.resumeLeadPriceNegotiatorAgentRaw = function (requestParameters, initOverrides) {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
682
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
683
|
+
return __generator(this, function (_a) {
|
|
684
|
+
switch (_a.label) {
|
|
685
|
+
case 0:
|
|
686
|
+
if (requestParameters['leadId'] == null) {
|
|
687
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling resumeLeadPriceNegotiatorAgent().');
|
|
688
|
+
}
|
|
689
|
+
queryParameters = {};
|
|
690
|
+
headerParameters = {};
|
|
691
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
692
|
+
token = this.configuration.accessToken;
|
|
693
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
694
|
+
case 1:
|
|
695
|
+
tokenString = _a.sent();
|
|
696
|
+
if (tokenString) {
|
|
697
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
698
|
+
}
|
|
699
|
+
_a.label = 2;
|
|
700
|
+
case 2: return [4 /*yield*/, this.request({
|
|
701
|
+
path: "/private/leads/{leadId}/price-negotiator-agent/resume".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
702
|
+
method: 'POST',
|
|
703
|
+
headers: headerParameters,
|
|
704
|
+
query: queryParameters,
|
|
705
|
+
}, initOverrides)];
|
|
706
|
+
case 3:
|
|
707
|
+
response = _a.sent();
|
|
708
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
LeadsApi.prototype.resumeLeadPriceNegotiatorAgent = function (requestParameters, initOverrides) {
|
|
717
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
718
|
+
return __generator(this, function (_a) {
|
|
719
|
+
switch (_a.label) {
|
|
720
|
+
case 0: return [4 /*yield*/, this.resumeLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides)];
|
|
721
|
+
case 1:
|
|
722
|
+
_a.sent();
|
|
723
|
+
return [2 /*return*/];
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
626
728
|
/**
|
|
627
729
|
*
|
|
628
730
|
*/
|
|
@@ -16,12 +16,6 @@ import type { MoneyDto } from './MoneyDto';
|
|
|
16
16
|
* @interface DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
17
17
|
*/
|
|
18
18
|
export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {MoneyDto}
|
|
22
|
-
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
23
|
-
*/
|
|
24
|
-
minOffer: MoneyDto | null;
|
|
25
19
|
/**
|
|
26
20
|
*
|
|
27
21
|
* @type {boolean}
|
|
@@ -34,6 +28,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
34
28
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
35
29
|
*/
|
|
36
30
|
salesImportance: DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {MoneyDto}
|
|
34
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
35
|
+
*/
|
|
36
|
+
minOffer: MoneyDto | null;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* @export
|
|
@@ -32,12 +32,12 @@ exports.DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = {
|
|
|
32
32
|
* Check if a given object implements the DomainLeadPriceNegotiatorAiAgentConfigurationDto interface.
|
|
33
33
|
*/
|
|
34
34
|
function instanceOfDomainLeadPriceNegotiatorAiAgentConfigurationDto(value) {
|
|
35
|
-
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
36
|
-
return false;
|
|
37
35
|
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
38
36
|
return false;
|
|
39
37
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined)
|
|
40
38
|
return false;
|
|
39
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined)
|
|
40
|
+
return false;
|
|
41
41
|
return true;
|
|
42
42
|
}
|
|
43
43
|
function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON(json) {
|
|
@@ -48,9 +48,9 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json, ign
|
|
|
48
48
|
return json;
|
|
49
49
|
}
|
|
50
50
|
return {
|
|
51
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
52
51
|
'enabled': json['enabled'],
|
|
53
52
|
'salesImportance': json['salesImportance'],
|
|
53
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
56
|
function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON(json) {
|
|
@@ -62,8 +62,8 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value, igno
|
|
|
62
62
|
return value;
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
|
-
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
66
65
|
'enabled': value['enabled'],
|
|
67
66
|
'salesImportance': value['salesImportance'],
|
|
67
|
+
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
68
68
|
};
|
|
69
69
|
}
|
|
@@ -28,6 +28,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
28
28
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
29
29
|
*/
|
|
30
30
|
enabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
35
|
+
*/
|
|
36
|
+
enabledForNewDomains?: boolean;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {string}
|
|
@@ -44,6 +44,7 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json, i
|
|
|
44
44
|
return {
|
|
45
45
|
'minOffer': json['minOffer'] == null ? undefined : (0, MoneyDto_1.MoneyDtoFromJSON)(json['minOffer']),
|
|
46
46
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
47
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
47
48
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
48
49
|
};
|
|
49
50
|
}
|
|
@@ -58,6 +59,7 @@ function DomainLeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value, ig
|
|
|
58
59
|
return {
|
|
59
60
|
'minOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['minOffer']),
|
|
60
61
|
'enabled': value['enabled'],
|
|
62
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
61
63
|
'salesImportance': value['salesImportance'],
|
|
62
64
|
};
|
|
63
65
|
}
|
|
@@ -21,6 +21,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
21
21
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
22
22
|
*/
|
|
23
23
|
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
28
|
+
*/
|
|
29
|
+
enabledForNewDomains: boolean;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -33,6 +33,8 @@ exports.LeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = {
|
|
|
33
33
|
function instanceOfLeadPriceNegotiatorAiAgentConfigurationDto(value) {
|
|
34
34
|
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
35
35
|
return false;
|
|
36
|
+
if (!('enabledForNewDomains' in value) || value['enabledForNewDomains'] === undefined)
|
|
37
|
+
return false;
|
|
36
38
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined)
|
|
37
39
|
return false;
|
|
38
40
|
return true;
|
|
@@ -46,6 +48,7 @@ function LeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json, ignoreDis
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'enabled': json['enabled'],
|
|
51
|
+
'enabledForNewDomains': json['enabledForNewDomains'],
|
|
49
52
|
'salesImportance': json['salesImportance'],
|
|
50
53
|
};
|
|
51
54
|
}
|
|
@@ -59,6 +62,7 @@ function LeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value, ignoreDisc
|
|
|
59
62
|
}
|
|
60
63
|
return {
|
|
61
64
|
'enabled': value['enabled'],
|
|
65
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
62
66
|
'salesImportance': value['salesImportance'],
|
|
63
67
|
};
|
|
64
68
|
}
|
|
@@ -21,6 +21,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
21
21
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
22
22
|
*/
|
|
23
23
|
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
28
|
+
*/
|
|
29
|
+
enabledForNewDomains?: boolean;
|
|
24
30
|
/**
|
|
25
31
|
*
|
|
26
32
|
* @type {string}
|
|
@@ -42,6 +42,7 @@ function LeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json, ignoreD
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
45
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
45
46
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
46
47
|
};
|
|
47
48
|
}
|
|
@@ -55,6 +56,7 @@ function LeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value, ignoreDi
|
|
|
55
56
|
}
|
|
56
57
|
return {
|
|
57
58
|
'enabled': value['enabled'],
|
|
59
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
58
60
|
'salesImportance': value['salesImportance'],
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -119,6 +119,18 @@ export interface SubscriptionDetailsDto {
|
|
|
119
119
|
* @memberof SubscriptionDetailsDto
|
|
120
120
|
*/
|
|
121
121
|
installments: number | null;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {number}
|
|
125
|
+
* @memberof SubscriptionDetailsDto
|
|
126
|
+
*/
|
|
127
|
+
paidBuyerInstallments: number | null;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {number}
|
|
131
|
+
* @memberof SubscriptionDetailsDto
|
|
132
|
+
*/
|
|
133
|
+
paidSellerInstallments: number | null;
|
|
122
134
|
/**
|
|
123
135
|
*
|
|
124
136
|
* @type {SubscriptionDetailsBillingPeriodicityDto}
|
|
@@ -155,6 +167,18 @@ export interface SubscriptionDetailsDto {
|
|
|
155
167
|
* @memberof SubscriptionDetailsDto
|
|
156
168
|
*/
|
|
157
169
|
domainTransfers: Array<DomainTransferDetailsDto>;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @type {Date}
|
|
173
|
+
* @memberof SubscriptionDetailsDto
|
|
174
|
+
*/
|
|
175
|
+
renewAt: Date | null;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @type {Date}
|
|
179
|
+
* @memberof SubscriptionDetailsDto
|
|
180
|
+
*/
|
|
181
|
+
renewRetryAt: Date | null;
|
|
158
182
|
}
|
|
159
183
|
/**
|
|
160
184
|
* @export
|
|
@@ -80,6 +80,10 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
80
80
|
return false;
|
|
81
81
|
if (!('installments' in value) || value['installments'] === undefined)
|
|
82
82
|
return false;
|
|
83
|
+
if (!('paidBuyerInstallments' in value) || value['paidBuyerInstallments'] === undefined)
|
|
84
|
+
return false;
|
|
85
|
+
if (!('paidSellerInstallments' in value) || value['paidSellerInstallments'] === undefined)
|
|
86
|
+
return false;
|
|
83
87
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined)
|
|
84
88
|
return false;
|
|
85
89
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -92,6 +96,10 @@ function instanceOfSubscriptionDetailsDto(value) {
|
|
|
92
96
|
return false;
|
|
93
97
|
if (!('domainTransfers' in value) || value['domainTransfers'] === undefined)
|
|
94
98
|
return false;
|
|
99
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined)
|
|
100
|
+
return false;
|
|
101
|
+
if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined)
|
|
102
|
+
return false;
|
|
95
103
|
return true;
|
|
96
104
|
}
|
|
97
105
|
function SubscriptionDetailsDtoFromJSON(json) {
|
|
@@ -118,12 +126,16 @@ function SubscriptionDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
118
126
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoFromJSON)(json['domain']),
|
|
119
127
|
'type': json['type'],
|
|
120
128
|
'installments': json['installments'],
|
|
129
|
+
'paidBuyerInstallments': json['paidBuyerInstallments'],
|
|
130
|
+
'paidSellerInstallments': json['paidSellerInstallments'],
|
|
121
131
|
'billingPeriodicity': (0, SubscriptionDetailsBillingPeriodicityDto_1.SubscriptionDetailsBillingPeriodicityDtoFromJSON)(json['billingPeriodicity']),
|
|
122
132
|
'createdAt': (new Date(json['createdAt'])),
|
|
123
133
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
124
134
|
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
125
135
|
'sellerInfo': (0, SubscriptionDetailsDomainSellerDto_1.SubscriptionDetailsDomainSellerDtoFromJSON)(json['sellerInfo']),
|
|
126
136
|
'domainTransfers': (json['domainTransfers'].map(DomainTransferDetailsDto_1.DomainTransferDetailsDtoFromJSON)),
|
|
137
|
+
'renewAt': (json['renewAt'] == null ? null : new Date(json['renewAt'])),
|
|
138
|
+
'renewRetryAt': (json['renewRetryAt'] == null ? null : new Date(json['renewRetryAt'])),
|
|
127
139
|
};
|
|
128
140
|
}
|
|
129
141
|
function SubscriptionDetailsDtoToJSON(json) {
|
|
@@ -151,11 +163,15 @@ function SubscriptionDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
151
163
|
'domain': (0, SubscriptionDetailsDomainDto_1.SubscriptionDetailsDomainDtoToJSON)(value['domain']),
|
|
152
164
|
'type': value['type'],
|
|
153
165
|
'installments': value['installments'],
|
|
166
|
+
'paidBuyerInstallments': value['paidBuyerInstallments'],
|
|
167
|
+
'paidSellerInstallments': value['paidSellerInstallments'],
|
|
154
168
|
'billingPeriodicity': (0, SubscriptionDetailsBillingPeriodicityDto_1.SubscriptionDetailsBillingPeriodicityDtoToJSON)(value['billingPeriodicity']),
|
|
155
169
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
156
170
|
'startedAt': (value['startedAt'] == null ? null : value['startedAt'].toISOString()),
|
|
157
171
|
'finishedAt': (value['finishedAt'] == null ? null : value['finishedAt'].toISOString()),
|
|
158
172
|
'sellerInfo': (0, SubscriptionDetailsDomainSellerDto_1.SubscriptionDetailsDomainSellerDtoToJSON)(value['sellerInfo']),
|
|
159
173
|
'domainTransfers': (value['domainTransfers'].map(DomainTransferDetailsDto_1.DomainTransferDetailsDtoToJSON)),
|
|
174
|
+
'renewAt': (value['renewAt'] == null ? null : value['renewAt'].toISOString()),
|
|
175
|
+
'renewRetryAt': (value['renewRetryAt'] == null ? null : value['renewRetryAt'].toISOString()),
|
|
160
176
|
};
|
|
161
177
|
}
|
package/package.json
CHANGED
package/src/apis/LeadsApi.ts
CHANGED
|
@@ -96,11 +96,19 @@ export interface LeadsApiListRequest {
|
|
|
96
96
|
sortBy?: Array<string>;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
export interface LeadsApiPauseLeadPriceNegotiatorAgentRequest {
|
|
100
|
+
leadId: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
99
103
|
export interface LeadsApiPutOfferRequest {
|
|
100
104
|
leadId: string;
|
|
101
105
|
putLeadOfferInput: PutLeadOfferInput;
|
|
102
106
|
}
|
|
103
107
|
|
|
108
|
+
export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
|
|
109
|
+
leadId: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
104
112
|
export interface LeadsApiUnarchiveLeadRequest {
|
|
105
113
|
leadId: string;
|
|
106
114
|
}
|
|
@@ -504,6 +512,46 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
504
512
|
return await response.value();
|
|
505
513
|
}
|
|
506
514
|
|
|
515
|
+
/**
|
|
516
|
+
*
|
|
517
|
+
*/
|
|
518
|
+
async pauseLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
519
|
+
if (requestParameters['leadId'] == null) {
|
|
520
|
+
throw new runtime.RequiredError(
|
|
521
|
+
'leadId',
|
|
522
|
+
'Required parameter "leadId" was null or undefined when calling pauseLeadPriceNegotiatorAgent().'
|
|
523
|
+
);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
const queryParameters: any = {};
|
|
527
|
+
|
|
528
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
529
|
+
|
|
530
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
531
|
+
const token = this.configuration.accessToken;
|
|
532
|
+
const tokenString = await token("bearer", []);
|
|
533
|
+
|
|
534
|
+
if (tokenString) {
|
|
535
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
const response = await this.request({
|
|
539
|
+
path: `/private/leads/{leadId}/price-negotiator-agent/pause`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
540
|
+
method: 'POST',
|
|
541
|
+
headers: headerParameters,
|
|
542
|
+
query: queryParameters,
|
|
543
|
+
}, initOverrides);
|
|
544
|
+
|
|
545
|
+
return new runtime.VoidApiResponse(response);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
*/
|
|
551
|
+
async pauseLeadPriceNegotiatorAgent(requestParameters: LeadsApiPauseLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
552
|
+
await this.pauseLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides);
|
|
553
|
+
}
|
|
554
|
+
|
|
507
555
|
/**
|
|
508
556
|
*
|
|
509
557
|
*/
|
|
@@ -554,6 +602,46 @@ export class LeadsApi extends runtime.BaseAPI {
|
|
|
554
602
|
await this.putOfferRaw(requestParameters, initOverrides);
|
|
555
603
|
}
|
|
556
604
|
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
*/
|
|
608
|
+
async resumeLeadPriceNegotiatorAgentRaw(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
609
|
+
if (requestParameters['leadId'] == null) {
|
|
610
|
+
throw new runtime.RequiredError(
|
|
611
|
+
'leadId',
|
|
612
|
+
'Required parameter "leadId" was null or undefined when calling resumeLeadPriceNegotiatorAgent().'
|
|
613
|
+
);
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
const queryParameters: any = {};
|
|
617
|
+
|
|
618
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
619
|
+
|
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
621
|
+
const token = this.configuration.accessToken;
|
|
622
|
+
const tokenString = await token("bearer", []);
|
|
623
|
+
|
|
624
|
+
if (tokenString) {
|
|
625
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
const response = await this.request({
|
|
629
|
+
path: `/private/leads/{leadId}/price-negotiator-agent/resume`.replace(`{${"leadId"}}`, encodeURIComponent(String(requestParameters['leadId']))),
|
|
630
|
+
method: 'POST',
|
|
631
|
+
headers: headerParameters,
|
|
632
|
+
query: queryParameters,
|
|
633
|
+
}, initOverrides);
|
|
634
|
+
|
|
635
|
+
return new runtime.VoidApiResponse(response);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
*/
|
|
641
|
+
async resumeLeadPriceNegotiatorAgent(requestParameters: LeadsApiResumeLeadPriceNegotiatorAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
642
|
+
await this.resumeLeadPriceNegotiatorAgentRaw(requestParameters, initOverrides);
|
|
643
|
+
}
|
|
644
|
+
|
|
557
645
|
/**
|
|
558
646
|
*
|
|
559
647
|
*/
|
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
28
28
|
*/
|
|
29
29
|
export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {MoneyDto}
|
|
33
|
-
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
34
|
-
*/
|
|
35
|
-
minOffer: MoneyDto | null;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {boolean}
|
|
@@ -45,6 +39,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
45
39
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
46
40
|
*/
|
|
47
41
|
salesImportance: DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {MoneyDto}
|
|
45
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationDto
|
|
46
|
+
*/
|
|
47
|
+
minOffer: MoneyDto | null;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
|
|
@@ -63,9 +63,9 @@ export type DomainLeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum
|
|
|
63
63
|
* Check if a given object implements the DomainLeadPriceNegotiatorAiAgentConfigurationDto interface.
|
|
64
64
|
*/
|
|
65
65
|
export function instanceOfDomainLeadPriceNegotiatorAiAgentConfigurationDto(value: object): value is DomainLeadPriceNegotiatorAiAgentConfigurationDto {
|
|
66
|
-
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
67
66
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
68
67
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined) return false;
|
|
68
|
+
if (!('minOffer' in value) || value['minOffer'] === undefined) return false;
|
|
69
69
|
return true;
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -79,9 +79,9 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(js
|
|
|
79
79
|
}
|
|
80
80
|
return {
|
|
81
81
|
|
|
82
|
-
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
83
82
|
'enabled': json['enabled'],
|
|
84
83
|
'salesImportance': json['salesImportance'],
|
|
84
|
+
'minOffer': MoneyDtoFromJSON(json['minOffer']),
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -96,9 +96,9 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(valu
|
|
|
96
96
|
|
|
97
97
|
return {
|
|
98
98
|
|
|
99
|
-
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
100
99
|
'enabled': value['enabled'],
|
|
101
100
|
'salesImportance': value['salesImportance'],
|
|
101
|
+
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -39,6 +39,12 @@ export interface DomainLeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
39
39
|
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
40
40
|
*/
|
|
41
41
|
enabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof DomainLeadPriceNegotiatorAiAgentConfigurationInput
|
|
46
|
+
*/
|
|
47
|
+
enabledForNewDomains?: boolean;
|
|
42
48
|
/**
|
|
43
49
|
*
|
|
44
50
|
* @type {string}
|
|
@@ -78,6 +84,7 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(
|
|
|
78
84
|
|
|
79
85
|
'minOffer': json['minOffer'] == null ? undefined : MoneyDtoFromJSON(json['minOffer']),
|
|
80
86
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
87
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
81
88
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
82
89
|
};
|
|
83
90
|
}
|
|
@@ -95,6 +102,7 @@ export function DomainLeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(va
|
|
|
95
102
|
|
|
96
103
|
'minOffer': MoneyDtoToJSON(value['minOffer']),
|
|
97
104
|
'enabled': value['enabled'],
|
|
105
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
98
106
|
'salesImportance': value['salesImportance'],
|
|
99
107
|
};
|
|
100
108
|
}
|
|
@@ -25,6 +25,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
|
25
25
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
26
26
|
*/
|
|
27
27
|
enabled: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationDto
|
|
32
|
+
*/
|
|
33
|
+
enabledForNewDomains: boolean;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -50,6 +56,7 @@ export type LeadPriceNegotiatorAiAgentConfigurationDtoSalesImportanceEnum = type
|
|
|
50
56
|
*/
|
|
51
57
|
export function instanceOfLeadPriceNegotiatorAiAgentConfigurationDto(value: object): value is LeadPriceNegotiatorAiAgentConfigurationDto {
|
|
52
58
|
if (!('enabled' in value) || value['enabled'] === undefined) return false;
|
|
59
|
+
if (!('enabledForNewDomains' in value) || value['enabledForNewDomains'] === undefined) return false;
|
|
53
60
|
if (!('salesImportance' in value) || value['salesImportance'] === undefined) return false;
|
|
54
61
|
return true;
|
|
55
62
|
}
|
|
@@ -65,6 +72,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationDtoFromJSONTyped(json: an
|
|
|
65
72
|
return {
|
|
66
73
|
|
|
67
74
|
'enabled': json['enabled'],
|
|
75
|
+
'enabledForNewDomains': json['enabledForNewDomains'],
|
|
68
76
|
'salesImportance': json['salesImportance'],
|
|
69
77
|
};
|
|
70
78
|
}
|
|
@@ -81,6 +89,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationDtoToJSONTyped(value?: Le
|
|
|
81
89
|
return {
|
|
82
90
|
|
|
83
91
|
'enabled': value['enabled'],
|
|
92
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
84
93
|
'salesImportance': value['salesImportance'],
|
|
85
94
|
};
|
|
86
95
|
}
|
|
@@ -25,6 +25,12 @@ export interface LeadPriceNegotiatorAiAgentConfigurationInput {
|
|
|
25
25
|
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
26
26
|
*/
|
|
27
27
|
enabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof LeadPriceNegotiatorAiAgentConfigurationInput
|
|
32
|
+
*/
|
|
33
|
+
enabledForNewDomains?: boolean;
|
|
28
34
|
/**
|
|
29
35
|
*
|
|
30
36
|
* @type {string}
|
|
@@ -63,6 +69,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationInputFromJSONTyped(json:
|
|
|
63
69
|
return {
|
|
64
70
|
|
|
65
71
|
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
72
|
+
'enabledForNewDomains': json['enabledForNewDomains'] == null ? undefined : json['enabledForNewDomains'],
|
|
66
73
|
'salesImportance': json['salesImportance'] == null ? undefined : json['salesImportance'],
|
|
67
74
|
};
|
|
68
75
|
}
|
|
@@ -79,6 +86,7 @@ export function LeadPriceNegotiatorAiAgentConfigurationInputToJSONTyped(value?:
|
|
|
79
86
|
return {
|
|
80
87
|
|
|
81
88
|
'enabled': value['enabled'],
|
|
89
|
+
'enabledForNewDomains': value['enabledForNewDomains'],
|
|
82
90
|
'salesImportance': value['salesImportance'],
|
|
83
91
|
};
|
|
84
92
|
}
|
|
@@ -172,6 +172,18 @@ export interface SubscriptionDetailsDto {
|
|
|
172
172
|
* @memberof SubscriptionDetailsDto
|
|
173
173
|
*/
|
|
174
174
|
installments: number | null;
|
|
175
|
+
/**
|
|
176
|
+
*
|
|
177
|
+
* @type {number}
|
|
178
|
+
* @memberof SubscriptionDetailsDto
|
|
179
|
+
*/
|
|
180
|
+
paidBuyerInstallments: number | null;
|
|
181
|
+
/**
|
|
182
|
+
*
|
|
183
|
+
* @type {number}
|
|
184
|
+
* @memberof SubscriptionDetailsDto
|
|
185
|
+
*/
|
|
186
|
+
paidSellerInstallments: number | null;
|
|
175
187
|
/**
|
|
176
188
|
*
|
|
177
189
|
* @type {SubscriptionDetailsBillingPeriodicityDto}
|
|
@@ -208,6 +220,18 @@ export interface SubscriptionDetailsDto {
|
|
|
208
220
|
* @memberof SubscriptionDetailsDto
|
|
209
221
|
*/
|
|
210
222
|
domainTransfers: Array<DomainTransferDetailsDto>;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @type {Date}
|
|
226
|
+
* @memberof SubscriptionDetailsDto
|
|
227
|
+
*/
|
|
228
|
+
renewAt: Date | null;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {Date}
|
|
232
|
+
* @memberof SubscriptionDetailsDto
|
|
233
|
+
*/
|
|
234
|
+
renewRetryAt: Date | null;
|
|
211
235
|
}
|
|
212
236
|
|
|
213
237
|
|
|
@@ -253,12 +277,16 @@ export function instanceOfSubscriptionDetailsDto(value: object): value is Subscr
|
|
|
253
277
|
if (!('domain' in value) || value['domain'] === undefined) return false;
|
|
254
278
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
255
279
|
if (!('installments' in value) || value['installments'] === undefined) return false;
|
|
280
|
+
if (!('paidBuyerInstallments' in value) || value['paidBuyerInstallments'] === undefined) return false;
|
|
281
|
+
if (!('paidSellerInstallments' in value) || value['paidSellerInstallments'] === undefined) return false;
|
|
256
282
|
if (!('billingPeriodicity' in value) || value['billingPeriodicity'] === undefined) return false;
|
|
257
283
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
258
284
|
if (!('startedAt' in value) || value['startedAt'] === undefined) return false;
|
|
259
285
|
if (!('finishedAt' in value) || value['finishedAt'] === undefined) return false;
|
|
260
286
|
if (!('sellerInfo' in value) || value['sellerInfo'] === undefined) return false;
|
|
261
287
|
if (!('domainTransfers' in value) || value['domainTransfers'] === undefined) return false;
|
|
288
|
+
if (!('renewAt' in value) || value['renewAt'] === undefined) return false;
|
|
289
|
+
if (!('renewRetryAt' in value) || value['renewRetryAt'] === undefined) return false;
|
|
262
290
|
return true;
|
|
263
291
|
}
|
|
264
292
|
|
|
@@ -288,12 +316,16 @@ export function SubscriptionDetailsDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
288
316
|
'domain': SubscriptionDetailsDomainDtoFromJSON(json['domain']),
|
|
289
317
|
'type': json['type'],
|
|
290
318
|
'installments': json['installments'],
|
|
319
|
+
'paidBuyerInstallments': json['paidBuyerInstallments'],
|
|
320
|
+
'paidSellerInstallments': json['paidSellerInstallments'],
|
|
291
321
|
'billingPeriodicity': SubscriptionDetailsBillingPeriodicityDtoFromJSON(json['billingPeriodicity']),
|
|
292
322
|
'createdAt': (new Date(json['createdAt'])),
|
|
293
323
|
'startedAt': (json['startedAt'] == null ? null : new Date(json['startedAt'])),
|
|
294
324
|
'finishedAt': (json['finishedAt'] == null ? null : new Date(json['finishedAt'])),
|
|
295
325
|
'sellerInfo': SubscriptionDetailsDomainSellerDtoFromJSON(json['sellerInfo']),
|
|
296
326
|
'domainTransfers': ((json['domainTransfers'] as Array<any>).map(DomainTransferDetailsDtoFromJSON)),
|
|
327
|
+
'renewAt': (json['renewAt'] == null ? null : new Date(json['renewAt'])),
|
|
328
|
+
'renewRetryAt': (json['renewRetryAt'] == null ? null : new Date(json['renewRetryAt'])),
|
|
297
329
|
};
|
|
298
330
|
}
|
|
299
331
|
|
|
@@ -324,12 +356,16 @@ export function SubscriptionDetailsDtoToJSONTyped(value?: SubscriptionDetailsDto
|
|
|
324
356
|
'domain': SubscriptionDetailsDomainDtoToJSON(value['domain']),
|
|
325
357
|
'type': value['type'],
|
|
326
358
|
'installments': value['installments'],
|
|
359
|
+
'paidBuyerInstallments': value['paidBuyerInstallments'],
|
|
360
|
+
'paidSellerInstallments': value['paidSellerInstallments'],
|
|
327
361
|
'billingPeriodicity': SubscriptionDetailsBillingPeriodicityDtoToJSON(value['billingPeriodicity']),
|
|
328
362
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
329
363
|
'startedAt': (value['startedAt'] == null ? null : (value['startedAt'] as any).toISOString()),
|
|
330
364
|
'finishedAt': (value['finishedAt'] == null ? null : (value['finishedAt'] as any).toISOString()),
|
|
331
365
|
'sellerInfo': SubscriptionDetailsDomainSellerDtoToJSON(value['sellerInfo']),
|
|
332
366
|
'domainTransfers': ((value['domainTransfers'] as Array<any>).map(DomainTransferDetailsDtoToJSON)),
|
|
367
|
+
'renewAt': (value['renewAt'] == null ? null : (value['renewAt'] as any).toISOString()),
|
|
368
|
+
'renewRetryAt': (value['renewRetryAt'] == null ? null : (value['renewRetryAt'] as any).toISOString()),
|
|
333
369
|
};
|
|
334
370
|
}
|
|
335
371
|
|