@randock/nameshift-api-client 0.0.373 → 0.0.375
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 +12 -1
- package/dist/apis/AdminApi.js +53 -0
- package/dist/apis/LeadsApi.d.ts +11 -0
- package/dist/apis/LeadsApi.js +51 -0
- package/dist/models/AdminBuyerLoginDto.d.ts +32 -0
- package/dist/models/AdminBuyerLoginDto.js +51 -0
- package/dist/models/BuyerNotificationDto.d.ts +1 -0
- package/dist/models/BuyerNotificationDto.js +1 -0
- package/dist/models/BuyerNotificationListItemDto.d.ts +1 -0
- package/dist/models/BuyerNotificationListItemDto.js +1 -0
- package/dist/models/DomainTransferDto.d.ts +6 -0
- package/dist/models/DomainTransferDto.js +4 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +12 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +8 -0
- package/dist/models/LeadDto.d.ts +12 -0
- package/dist/models/LeadDto.js +8 -0
- package/dist/models/ListLeadsResultItem.d.ts +12 -0
- package/dist/models/ListLeadsResultItem.js +8 -0
- package/dist/models/OrderListItemDtoBuyerInformation.d.ts +6 -0
- package/dist/models/OrderListItemDtoBuyerInformation.js +4 -0
- package/dist/models/SellerLeadDetails.d.ts +12 -0
- package/dist/models/SellerLeadDetails.js +8 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.d.ts +6 -0
- package/dist/models/SubscriptionListItemDtoBuyerInformation.js +4 -0
- package/dist/models/UserNotificationDto.d.ts +1 -0
- package/dist/models/UserNotificationDto.js +1 -0
- package/dist/models/UserNotificationListItemDto.d.ts +1 -0
- package/dist/models/UserNotificationListItemDto.js +1 -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 +48 -0
- package/src/apis/LeadsApi.ts +44 -0
- package/src/models/AdminBuyerLoginDto.ts +66 -0
- package/src/models/BuyerNotificationDto.ts +1 -0
- package/src/models/BuyerNotificationListItemDto.ts +1 -0
- package/src/models/DomainTransferDto.ts +9 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +18 -0
- package/src/models/LeadDto.ts +18 -0
- package/src/models/ListLeadsResultItem.ts +18 -0
- package/src/models/OrderListItemDtoBuyerInformation.ts +9 -0
- package/src/models/SellerLeadDetails.ts +18 -0
- package/src/models/SubscriptionListItemDtoBuyerInformation.ts +9 -0
- package/src/models/UserNotificationDto.ts +1 -0
- package/src/models/UserNotificationListItemDto.ts +1 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -71,6 +71,7 @@ src/models/AdminAccountSettingsInput.ts
|
|
|
71
71
|
src/models/AdminAuctionCommissionByDateRangeInput.ts
|
|
72
72
|
src/models/AdminAuctionConfigurationInput.ts
|
|
73
73
|
src/models/AdminBankAccountDto.ts
|
|
74
|
+
src/models/AdminBuyerLoginDto.ts
|
|
74
75
|
src/models/AdminCompanyStatsDto.ts
|
|
75
76
|
src/models/AdminCompanyStatsLedger.ts
|
|
76
77
|
src/models/AdminDashboardStatsDto.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @randock/nameshift-api-client@0.0.
|
|
1
|
+
## @randock/nameshift-api-client@0.0.375
|
|
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.375 --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
|
+
cb10b0aac13227359b35d753c3d4b4f552d310d24ea375464da94d530f21687672052bc51f32b159cb6172b3ca217473
|
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, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
13
|
+
import type { AccountNameshiftCommissionByTypeDto, AccountPaymentMethodProfileDto, AccountSettingsDto, AdminAccountLoginDto, AdminAccountSettingsInput, AdminBuyerLoginDto, AdminCompanyStatsDto, AdminDashboardStatsDto, AdminGetAllDomainTransfers200Response, BulkCommissionActionsInput, ChangeOrderStatusInput, ChangeSubscriptionStatusInput, CommissionListDto, DomainLockDto, DomainTransferDetailsDto, GetAllAuctions200Response, GetAllInvoices200Response, GetAllOrders200Response, GetAllOwnedDomains200Response, GetAllSubscriptions200Response, IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto, LeadMessageDto, LedgerMutationsDto, ListAccounts200Response, ListBankAccounts200Response, ListDomains200Response, ObjectId, SellerSalesCountStatsItemDto, SendAdminLeadAiPriceNegotiatorAgentChatMessageInput, SubscriptionDetailsDto } from '../models/index';
|
|
14
14
|
export interface AdminApiAdminGetAllDomainTransfersRequest {
|
|
15
15
|
filter?: object;
|
|
16
16
|
page?: number;
|
|
@@ -127,6 +127,9 @@ export interface AdminApiListLedgerMutationsRequest {
|
|
|
127
127
|
export interface AdminApiLoginAsRequest {
|
|
128
128
|
accountId: string;
|
|
129
129
|
}
|
|
130
|
+
export interface AdminApiLoginAsBuyerRequest {
|
|
131
|
+
buyerId: string;
|
|
132
|
+
}
|
|
130
133
|
export interface AdminApiPayDomainTransferSellerInvoiceRequest {
|
|
131
134
|
transferId: string;
|
|
132
135
|
invoiceId: string;
|
|
@@ -390,6 +393,14 @@ export declare class AdminApi extends runtime.BaseAPI {
|
|
|
390
393
|
*
|
|
391
394
|
*/
|
|
392
395
|
loginAs(requestParameters: AdminApiLoginAsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminAccountLoginDto>;
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
loginAsBuyerRaw(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AdminBuyerLoginDto>>;
|
|
400
|
+
/**
|
|
401
|
+
*
|
|
402
|
+
*/
|
|
403
|
+
loginAsBuyer(requestParameters: AdminApiLoginAsBuyerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AdminBuyerLoginDto>;
|
|
393
404
|
/**
|
|
394
405
|
*
|
|
395
406
|
*/
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -1675,6 +1675,59 @@ var AdminApi = /** @class */ (function (_super) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
});
|
|
1677
1677
|
};
|
|
1678
|
+
/**
|
|
1679
|
+
*
|
|
1680
|
+
*/
|
|
1681
|
+
AdminApi.prototype.loginAsBuyerRaw = function (requestParameters, initOverrides) {
|
|
1682
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1683
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
1684
|
+
return __generator(this, function (_a) {
|
|
1685
|
+
switch (_a.label) {
|
|
1686
|
+
case 0:
|
|
1687
|
+
if (requestParameters['buyerId'] == null) {
|
|
1688
|
+
throw new runtime.RequiredError('buyerId', 'Required parameter "buyerId" was null or undefined when calling loginAsBuyer().');
|
|
1689
|
+
}
|
|
1690
|
+
queryParameters = {};
|
|
1691
|
+
headerParameters = {};
|
|
1692
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1693
|
+
token = this.configuration.accessToken;
|
|
1694
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
1695
|
+
case 1:
|
|
1696
|
+
tokenString = _a.sent();
|
|
1697
|
+
if (tokenString) {
|
|
1698
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
1699
|
+
}
|
|
1700
|
+
_a.label = 2;
|
|
1701
|
+
case 2: return [4 /*yield*/, this.request({
|
|
1702
|
+
path: "/admin/buyers/{buyerId}/login-as".replace("{".concat("buyerId", "}"), encodeURIComponent(String(requestParameters['buyerId']))),
|
|
1703
|
+
method: 'POST',
|
|
1704
|
+
headers: headerParameters,
|
|
1705
|
+
query: queryParameters,
|
|
1706
|
+
}, initOverrides)];
|
|
1707
|
+
case 3:
|
|
1708
|
+
response = _a.sent();
|
|
1709
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AdminBuyerLoginDtoFromJSON)(jsonValue); })];
|
|
1710
|
+
}
|
|
1711
|
+
});
|
|
1712
|
+
});
|
|
1713
|
+
};
|
|
1714
|
+
/**
|
|
1715
|
+
*
|
|
1716
|
+
*/
|
|
1717
|
+
AdminApi.prototype.loginAsBuyer = function (requestParameters, initOverrides) {
|
|
1718
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1719
|
+
var response;
|
|
1720
|
+
return __generator(this, function (_a) {
|
|
1721
|
+
switch (_a.label) {
|
|
1722
|
+
case 0: return [4 /*yield*/, this.loginAsBuyerRaw(requestParameters, initOverrides)];
|
|
1723
|
+
case 1:
|
|
1724
|
+
response = _a.sent();
|
|
1725
|
+
return [4 /*yield*/, response.value()];
|
|
1726
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1727
|
+
}
|
|
1728
|
+
});
|
|
1729
|
+
});
|
|
1730
|
+
};
|
|
1678
1731
|
/**
|
|
1679
1732
|
*
|
|
1680
1733
|
*/
|
package/dist/apis/LeadsApi.d.ts
CHANGED
|
@@ -21,6 +21,9 @@ export interface LeadsApiBulkReadSellerLeadMessageRequest {
|
|
|
21
21
|
leadId: string;
|
|
22
22
|
batchReadSellerLeadMessageInput: BatchReadSellerLeadMessageInput;
|
|
23
23
|
}
|
|
24
|
+
export interface LeadsApiCloseLeadRequest {
|
|
25
|
+
leadId: string;
|
|
26
|
+
}
|
|
24
27
|
export interface LeadsApiCreateManualLeadRequest {
|
|
25
28
|
createManualLeadInput: CreateManualLeadInput;
|
|
26
29
|
}
|
|
@@ -96,6 +99,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
|
|
|
96
99
|
*
|
|
97
100
|
*/
|
|
98
101
|
bulkReadSellerLeadMessage(requestParameters: LeadsApiBulkReadSellerLeadMessageRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
*/
|
|
105
|
+
closeLeadRaw(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
closeLead(requestParameters: LeadsApiCloseLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
99
110
|
/**
|
|
100
111
|
*
|
|
101
112
|
*/
|
package/dist/apis/LeadsApi.js
CHANGED
|
@@ -233,6 +233,57 @@ var LeadsApi = /** @class */ (function (_super) {
|
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
LeadsApi.prototype.closeLeadRaw = function (requestParameters, initOverrides) {
|
|
240
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
241
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
242
|
+
return __generator(this, function (_a) {
|
|
243
|
+
switch (_a.label) {
|
|
244
|
+
case 0:
|
|
245
|
+
if (requestParameters['leadId'] == null) {
|
|
246
|
+
throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling closeLead().');
|
|
247
|
+
}
|
|
248
|
+
queryParameters = {};
|
|
249
|
+
headerParameters = {};
|
|
250
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
251
|
+
token = this.configuration.accessToken;
|
|
252
|
+
return [4 /*yield*/, token("bearer", [])];
|
|
253
|
+
case 1:
|
|
254
|
+
tokenString = _a.sent();
|
|
255
|
+
if (tokenString) {
|
|
256
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
257
|
+
}
|
|
258
|
+
_a.label = 2;
|
|
259
|
+
case 2: return [4 /*yield*/, this.request({
|
|
260
|
+
path: "/private/leads/{leadId}/status/close".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
|
|
261
|
+
method: 'POST',
|
|
262
|
+
headers: headerParameters,
|
|
263
|
+
query: queryParameters,
|
|
264
|
+
}, initOverrides)];
|
|
265
|
+
case 3:
|
|
266
|
+
response = _a.sent();
|
|
267
|
+
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
LeadsApi.prototype.closeLead = function (requestParameters, initOverrides) {
|
|
276
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
277
|
+
return __generator(this, function (_a) {
|
|
278
|
+
switch (_a.label) {
|
|
279
|
+
case 0: return [4 /*yield*/, this.closeLeadRaw(requestParameters, initOverrides)];
|
|
280
|
+
case 1:
|
|
281
|
+
_a.sent();
|
|
282
|
+
return [2 /*return*/];
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
};
|
|
236
287
|
/**
|
|
237
288
|
*
|
|
238
289
|
*/
|
|
@@ -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 AdminBuyerLoginDto
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminBuyerLoginDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AdminBuyerLoginDto
|
|
22
|
+
*/
|
|
23
|
+
token: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AdminBuyerLoginDto interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfAdminBuyerLoginDto(value: object): value is AdminBuyerLoginDto;
|
|
29
|
+
export declare function AdminBuyerLoginDtoFromJSON(json: any): AdminBuyerLoginDto;
|
|
30
|
+
export declare function AdminBuyerLoginDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminBuyerLoginDto;
|
|
31
|
+
export declare function AdminBuyerLoginDtoToJSON(json: any): AdminBuyerLoginDto;
|
|
32
|
+
export declare function AdminBuyerLoginDtoToJSONTyped(value?: AdminBuyerLoginDto | 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.instanceOfAdminBuyerLoginDto = instanceOfAdminBuyerLoginDto;
|
|
17
|
+
exports.AdminBuyerLoginDtoFromJSON = AdminBuyerLoginDtoFromJSON;
|
|
18
|
+
exports.AdminBuyerLoginDtoFromJSONTyped = AdminBuyerLoginDtoFromJSONTyped;
|
|
19
|
+
exports.AdminBuyerLoginDtoToJSON = AdminBuyerLoginDtoToJSON;
|
|
20
|
+
exports.AdminBuyerLoginDtoToJSONTyped = AdminBuyerLoginDtoToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminBuyerLoginDto interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminBuyerLoginDto(value) {
|
|
25
|
+
if (!('token' in value) || value['token'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AdminBuyerLoginDtoFromJSON(json) {
|
|
30
|
+
return AdminBuyerLoginDtoFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AdminBuyerLoginDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'token': json['token'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function AdminBuyerLoginDtoToJSON(json) {
|
|
41
|
+
return AdminBuyerLoginDtoToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AdminBuyerLoginDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
44
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'token': value['token'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -115,6 +115,7 @@ export declare const BuyerNotificationDtoTypeEnum: {
|
|
|
115
115
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
116
116
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
117
117
|
readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
|
|
118
|
+
readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
|
|
118
119
|
readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
|
|
119
120
|
readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
|
|
120
121
|
readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
|
|
@@ -76,6 +76,7 @@ exports.BuyerNotificationDtoTypeEnum = {
|
|
|
76
76
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
77
77
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
78
78
|
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
79
|
+
LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
|
|
79
80
|
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
80
81
|
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
81
82
|
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
@@ -108,6 +108,7 @@ export declare const BuyerNotificationListItemDtoTypeEnum: {
|
|
|
108
108
|
readonly PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: "purchases_are_closed_due_domains_is_sold_or_deleted";
|
|
109
109
|
readonly DOMAIN_OWNER_CHANGED: "domain_owner_changed";
|
|
110
110
|
readonly LEAD_CLOSED_BUYER: "lead.closed.buyer";
|
|
111
|
+
readonly LEAD_CLOSED_BY_SELLER_BUYER: "lead.closed.by_seller.buyer";
|
|
111
112
|
readonly DOMAIN_SOLD_SELLER_NOTIFICATION: "domain_sold_seller_notification";
|
|
112
113
|
readonly DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: "domain_sold_by_lease_to_own_seller_notification";
|
|
113
114
|
readonly DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: "domain_sold_by_rent_seller_notification";
|
|
@@ -75,6 +75,7 @@ exports.BuyerNotificationListItemDtoTypeEnum = {
|
|
|
75
75
|
PURCHASES_ARE_CLOSED_DUE_DOMAINS_IS_SOLD_OR_DELETED: 'purchases_are_closed_due_domains_is_sold_or_deleted',
|
|
76
76
|
DOMAIN_OWNER_CHANGED: 'domain_owner_changed',
|
|
77
77
|
LEAD_CLOSED_BUYER: 'lead.closed.buyer',
|
|
78
|
+
LEAD_CLOSED_BY_SELLER_BUYER: 'lead.closed.by_seller.buyer',
|
|
78
79
|
DOMAIN_SOLD_SELLER_NOTIFICATION: 'domain_sold_seller_notification',
|
|
79
80
|
DOMAIN_SOLD_BY_LEASE_TO_OWN_SELLER_NOTIFICATION: 'domain_sold_by_lease_to_own_seller_notification',
|
|
80
81
|
DOMAIN_SOLD_BY_RENT_SELLER_NOTIFICATION: 'domain_sold_by_rent_seller_notification',
|
|
@@ -26,6 +26,12 @@ export interface DomainTransferDto {
|
|
|
26
26
|
* @memberof DomainTransferDto
|
|
27
27
|
*/
|
|
28
28
|
id: string;
|
|
29
|
+
/**
|
|
30
|
+
* The buyer ID
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof DomainTransferDto
|
|
33
|
+
*/
|
|
34
|
+
buyerId: string;
|
|
29
35
|
/**
|
|
30
36
|
* The domain of transfer
|
|
31
37
|
* @type {DomainTransferDomainDto}
|
|
@@ -50,6 +50,8 @@ exports.DomainTransferDtoStatusSellerEnum = {
|
|
|
50
50
|
function instanceOfDomainTransferDto(value) {
|
|
51
51
|
if (!('id' in value) || value['id'] === undefined)
|
|
52
52
|
return false;
|
|
53
|
+
if (!('buyerId' in value) || value['buyerId'] === undefined)
|
|
54
|
+
return false;
|
|
53
55
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
54
56
|
return false;
|
|
55
57
|
if (!('status' in value) || value['status'] === undefined)
|
|
@@ -77,6 +79,7 @@ function DomainTransferDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
77
79
|
}
|
|
78
80
|
return {
|
|
79
81
|
'id': json['id'],
|
|
82
|
+
'buyerId': json['buyerId'],
|
|
80
83
|
'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoFromJSON)(json['domain']),
|
|
81
84
|
'status': json['status'],
|
|
82
85
|
'statusSeller': json['statusSeller'],
|
|
@@ -97,6 +100,7 @@ function DomainTransferDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
97
100
|
}
|
|
98
101
|
return {
|
|
99
102
|
'id': value['id'],
|
|
103
|
+
'buyerId': value['buyerId'],
|
|
100
104
|
'domain': (0, DomainTransferDomainDto_1.DomainTransferDomainDtoToJSON)(value['domain']),
|
|
101
105
|
'status': value['status'],
|
|
102
106
|
'statusSeller': value['statusSeller'],
|
|
@@ -52,6 +52,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
52
52
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
53
53
|
*/
|
|
54
54
|
lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the lead can be closed by the seller
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
59
|
+
*/
|
|
60
|
+
canBeClosedBySeller: boolean;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto}
|
|
@@ -148,6 +154,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
|
|
|
148
154
|
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
149
155
|
*/
|
|
150
156
|
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
157
|
+
/**
|
|
158
|
+
* Accepted at date
|
|
159
|
+
* @type {Date}
|
|
160
|
+
* @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
|
|
161
|
+
*/
|
|
162
|
+
acceptedAt: Date | null;
|
|
151
163
|
}
|
|
152
164
|
/**
|
|
153
165
|
* @export
|
|
@@ -77,6 +77,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
|
|
|
77
77
|
return false;
|
|
78
78
|
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
|
|
79
79
|
return false;
|
|
80
|
+
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
|
|
81
|
+
return false;
|
|
80
82
|
if (!('domain' in value) || value['domain'] === undefined)
|
|
81
83
|
return false;
|
|
82
84
|
if (!('manualType' in value) || value['manualType'] === undefined)
|
|
@@ -109,6 +111,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
|
|
|
109
111
|
return false;
|
|
110
112
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
|
|
111
113
|
return false;
|
|
114
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
|
|
115
|
+
return false;
|
|
112
116
|
return true;
|
|
113
117
|
}
|
|
114
118
|
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
|
|
@@ -124,6 +128,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
124
128
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
125
129
|
'lastOfferBy': json['lastOfferBy'],
|
|
126
130
|
'lastOfferType': json['lastOfferType'],
|
|
131
|
+
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
127
132
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoFromJSON)(json['domain']),
|
|
128
133
|
'manualType': json['manualType'],
|
|
129
134
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
|
|
@@ -140,6 +145,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
|
|
|
140
145
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
141
146
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
142
147
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
|
|
148
|
+
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
143
149
|
};
|
|
144
150
|
}
|
|
145
151
|
function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
|
|
@@ -156,6 +162,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
156
162
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
157
163
|
'lastOfferBy': value['lastOfferBy'],
|
|
158
164
|
'lastOfferType': value['lastOfferType'],
|
|
165
|
+
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
159
166
|
'domain': (0, IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto_1.IntersectionDomainDtoWithAccountDtoWithAuctionInfoDtoToJSON)(value['domain']),
|
|
160
167
|
'manualType': value['manualType'],
|
|
161
168
|
'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
|
|
@@ -172,5 +179,6 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
|
|
|
172
179
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
173
180
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
174
181
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
|
|
182
|
+
'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
|
|
175
183
|
};
|
|
176
184
|
}
|
package/dist/models/LeadDto.d.ts
CHANGED
|
@@ -51,6 +51,12 @@ export interface LeadDto {
|
|
|
51
51
|
* @memberof LeadDto
|
|
52
52
|
*/
|
|
53
53
|
lastOfferType: LeadDtoLastOfferTypeEnum | null;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the lead can be closed by the seller
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof LeadDto
|
|
58
|
+
*/
|
|
59
|
+
canBeClosedBySeller: boolean;
|
|
54
60
|
/**
|
|
55
61
|
* Archived status
|
|
56
62
|
* @type {boolean}
|
|
@@ -141,6 +147,12 @@ export interface LeadDto {
|
|
|
141
147
|
* @memberof LeadDto
|
|
142
148
|
*/
|
|
143
149
|
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
150
|
+
/**
|
|
151
|
+
* Accepted at date
|
|
152
|
+
* @type {Date}
|
|
153
|
+
* @memberof LeadDto
|
|
154
|
+
*/
|
|
155
|
+
acceptedAt: Date | null;
|
|
144
156
|
}
|
|
145
157
|
/**
|
|
146
158
|
* @export
|
package/dist/models/LeadDto.js
CHANGED
|
@@ -76,6 +76,8 @@ function instanceOfLeadDto(value) {
|
|
|
76
76
|
return false;
|
|
77
77
|
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
|
|
78
78
|
return false;
|
|
79
|
+
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
|
|
80
|
+
return false;
|
|
79
81
|
if (!('archived' in value) || value['archived'] === undefined)
|
|
80
82
|
return false;
|
|
81
83
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -106,6 +108,8 @@ function instanceOfLeadDto(value) {
|
|
|
106
108
|
return false;
|
|
107
109
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
|
|
108
110
|
return false;
|
|
111
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
|
|
112
|
+
return false;
|
|
109
113
|
return true;
|
|
110
114
|
}
|
|
111
115
|
function LeadDtoFromJSON(json) {
|
|
@@ -121,6 +125,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
121
125
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
122
126
|
'lastOfferBy': json['lastOfferBy'],
|
|
123
127
|
'lastOfferType': json['lastOfferType'],
|
|
128
|
+
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
124
129
|
'archived': json['archived'],
|
|
125
130
|
'createdAt': (new Date(json['createdAt'])),
|
|
126
131
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -136,6 +141,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
136
141
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
137
142
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
138
143
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
|
|
144
|
+
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
139
145
|
};
|
|
140
146
|
}
|
|
141
147
|
function LeadDtoToJSON(json) {
|
|
@@ -152,6 +158,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
152
158
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
153
159
|
'lastOfferBy': value['lastOfferBy'],
|
|
154
160
|
'lastOfferType': value['lastOfferType'],
|
|
161
|
+
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
155
162
|
'archived': value['archived'],
|
|
156
163
|
'createdAt': ((value['createdAt']).toISOString()),
|
|
157
164
|
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
@@ -167,5 +174,6 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
167
174
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
168
175
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
169
176
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
|
|
177
|
+
'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
|
|
170
178
|
};
|
|
171
179
|
}
|
|
@@ -52,6 +52,12 @@ export interface ListLeadsResultItem {
|
|
|
52
52
|
* @memberof ListLeadsResultItem
|
|
53
53
|
*/
|
|
54
54
|
lastOfferType: ListLeadsResultItemLastOfferTypeEnum | null;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the lead can be closed by the seller
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof ListLeadsResultItem
|
|
59
|
+
*/
|
|
60
|
+
canBeClosedBySeller: boolean;
|
|
55
61
|
/**
|
|
56
62
|
*
|
|
57
63
|
* @type {string}
|
|
@@ -178,6 +184,12 @@ export interface ListLeadsResultItem {
|
|
|
178
184
|
* @memberof ListLeadsResultItem
|
|
179
185
|
*/
|
|
180
186
|
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
187
|
+
/**
|
|
188
|
+
* Accepted at date
|
|
189
|
+
* @type {Date}
|
|
190
|
+
* @memberof ListLeadsResultItem
|
|
191
|
+
*/
|
|
192
|
+
acceptedAt: Date | null;
|
|
181
193
|
/**
|
|
182
194
|
* The message in case lastMessageType === LeadMessageTypeEnum.MESSAGE
|
|
183
195
|
* @type {string}
|
|
@@ -96,6 +96,8 @@ function instanceOfListLeadsResultItem(value) {
|
|
|
96
96
|
return false;
|
|
97
97
|
if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
|
|
98
98
|
return false;
|
|
99
|
+
if (!('canBeClosedBySeller' in value) || value['canBeClosedBySeller'] === undefined)
|
|
100
|
+
return false;
|
|
99
101
|
if (!('buyerInitials' in value) || value['buyerInitials'] === undefined)
|
|
100
102
|
return false;
|
|
101
103
|
if (!('buyerIpCountryCode' in value) || value['buyerIpCountryCode'] === undefined)
|
|
@@ -138,6 +140,8 @@ function instanceOfListLeadsResultItem(value) {
|
|
|
138
140
|
return false;
|
|
139
141
|
if (!('leadOfferExpirationConfiguration' in value) || value['leadOfferExpirationConfiguration'] === undefined)
|
|
140
142
|
return false;
|
|
143
|
+
if (!('acceptedAt' in value) || value['acceptedAt'] === undefined)
|
|
144
|
+
return false;
|
|
141
145
|
if (!('lastMessageMessage' in value) || value['lastMessageMessage'] === undefined)
|
|
142
146
|
return false;
|
|
143
147
|
if (!('lastMessageDate' in value) || value['lastMessageDate'] === undefined)
|
|
@@ -157,6 +161,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
157
161
|
'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
|
|
158
162
|
'lastOfferBy': json['lastOfferBy'],
|
|
159
163
|
'lastOfferType': json['lastOfferType'],
|
|
164
|
+
'canBeClosedBySeller': json['canBeClosedBySeller'],
|
|
160
165
|
'buyerInitials': json['buyerInitials'],
|
|
161
166
|
'buyerIpCountryCode': json['buyerIpCountryCode'],
|
|
162
167
|
'lastMessageFrom': json['lastMessageFrom'],
|
|
@@ -178,6 +183,7 @@ function ListLeadsResultItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
178
183
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
|
|
179
184
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
|
|
180
185
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoFromJSON)(json['leadOfferExpirationConfiguration']),
|
|
186
|
+
'acceptedAt': (json['acceptedAt'] == null ? null : new Date(json['acceptedAt'])),
|
|
181
187
|
'lastMessageMessage': json['lastMessageMessage'],
|
|
182
188
|
'lastMessageDate': (new Date(json['lastMessageDate'])),
|
|
183
189
|
};
|
|
@@ -196,6 +202,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
|
|
|
196
202
|
'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
|
|
197
203
|
'lastOfferBy': value['lastOfferBy'],
|
|
198
204
|
'lastOfferType': value['lastOfferType'],
|
|
205
|
+
'canBeClosedBySeller': value['canBeClosedBySeller'],
|
|
199
206
|
'buyerInitials': value['buyerInitials'],
|
|
200
207
|
'buyerIpCountryCode': value['buyerIpCountryCode'],
|
|
201
208
|
'lastMessageFrom': value['lastMessageFrom'],
|
|
@@ -217,6 +224,7 @@ function ListLeadsResultItemToJSONTyped(value, ignoreDiscriminator) {
|
|
|
217
224
|
'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
|
|
218
225
|
'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
|
|
219
226
|
'leadOfferExpirationConfiguration': (0, LeadOfferExpirationConfigurationDto_1.LeadOfferExpirationConfigurationDtoToJSON)(value['leadOfferExpirationConfiguration']),
|
|
227
|
+
'acceptedAt': (value['acceptedAt'] == null ? null : value['acceptedAt'].toISOString()),
|
|
220
228
|
'lastMessageMessage': value['lastMessageMessage'],
|
|
221
229
|
'lastMessageDate': ((value['lastMessageDate']).toISOString()),
|
|
222
230
|
};
|
|
@@ -17,6 +17,12 @@ import type { AddressDto } from './AddressDto';
|
|
|
17
17
|
* @interface OrderListItemDtoBuyerInformation
|
|
18
18
|
*/
|
|
19
19
|
export interface OrderListItemDtoBuyerInformation {
|
|
20
|
+
/**
|
|
21
|
+
* The uuid for buyer.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof OrderListItemDtoBuyerInformation
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
20
26
|
/**
|
|
21
27
|
* The order buyer first name
|
|
22
28
|
* @type {string}
|
|
@@ -24,6 +24,8 @@ var AddressDto_1 = require("./AddressDto");
|
|
|
24
24
|
* Check if a given object implements the OrderListItemDtoBuyerInformation interface.
|
|
25
25
|
*/
|
|
26
26
|
function instanceOfOrderListItemDtoBuyerInformation(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
27
29
|
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
28
30
|
return false;
|
|
29
31
|
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
@@ -46,6 +48,7 @@ function OrderListItemDtoBuyerInformationFromJSONTyped(json, ignoreDiscriminator
|
|
|
46
48
|
return json;
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
51
|
+
'id': json['id'],
|
|
49
52
|
'firstName': json['firstName'],
|
|
50
53
|
'lastName': json['lastName'],
|
|
51
54
|
'email': json['email'],
|
|
@@ -63,6 +66,7 @@ function OrderListItemDtoBuyerInformationToJSONTyped(value, ignoreDiscriminator)
|
|
|
63
66
|
return value;
|
|
64
67
|
}
|
|
65
68
|
return {
|
|
69
|
+
'id': value['id'],
|
|
66
70
|
'firstName': value['firstName'],
|
|
67
71
|
'lastName': value['lastName'],
|
|
68
72
|
'email': value['email'],
|