@randock/nameshift-api-client 0.0.283 → 0.0.285

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.
Files changed (30) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +12 -1
  4. package/dist/apis/LeadsApi.js +53 -0
  5. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.d.ts +1 -0
  6. package/dist/models/DomainTransferDetailSellerPayoutInvoiceDto.js +1 -0
  7. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +151 -0
  8. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +140 -0
  9. package/dist/models/InvoiceTransactionDto.d.ts +18 -0
  10. package/dist/models/InvoiceTransactionDto.js +16 -1
  11. package/dist/models/ManualLeadBuyerDto.d.ts +50 -0
  12. package/dist/models/ManualLeadBuyerDto.js +63 -0
  13. package/dist/models/ManualLeadLeaseToOwnDto.d.ts +38 -0
  14. package/dist/models/ManualLeadLeaseToOwnDto.js +55 -0
  15. package/dist/models/OrderDto.d.ts +6 -0
  16. package/dist/models/OrderDto.js +4 -0
  17. package/dist/models/SubscriptionDto.d.ts +12 -0
  18. package/dist/models/SubscriptionDto.js +8 -0
  19. package/dist/models/index.d.ts +3 -0
  20. package/dist/models/index.js +3 -0
  21. package/package.json +1 -1
  22. package/src/apis/LeadsApi.ts +48 -0
  23. package/src/models/DomainTransferDetailSellerPayoutInvoiceDto.ts +1 -0
  24. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +257 -0
  25. package/src/models/InvoiceTransactionDto.ts +22 -0
  26. package/src/models/ManualLeadBuyerDto.ts +93 -0
  27. package/src/models/ManualLeadLeaseToOwnDto.ts +75 -0
  28. package/src/models/OrderDto.ts +9 -0
  29. package/src/models/SubscriptionDto.ts +18 -0
  30. package/src/models/index.ts +3 -0
@@ -142,6 +142,7 @@ src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureF
142
142
  src/models/IntersectionDomainDtoWithAccountDto.ts
143
143
  src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts
144
144
  src/models/IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto.ts
145
+ src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts
145
146
  src/models/IntersectionLeadDtoWithListFieldsDto.ts
146
147
  src/models/IntersectionTaskListTaskDto.ts
147
148
  src/models/InvoiceDomainDto.ts
@@ -181,6 +182,8 @@ src/models/LoginDto.ts
181
182
  src/models/LoginInput.ts
182
183
  src/models/MajesticMetrics.ts
183
184
  src/models/MajesticTopicTrustFlow.ts
185
+ src/models/ManualLeadBuyerDto.ts
186
+ src/models/ManualLeadLeaseToOwnDto.ts
184
187
  src/models/MoneyDto.ts
185
188
  src/models/MoneyInput.ts
186
189
  src/models/MozMetrics.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.283
1
+ ## @randock/nameshift-api-client@0.0.285
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.283 --save
39
+ npm install @randock/nameshift-api-client@0.0.285 --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
- 99e76706369df2e061a8b52ada47185ffc23a3781b53d2d118e9a8117117dc6f15c6b71aae5e37876bba93c0fdb2d3c7
47
+ b95778f118d0e659eb68244a0b8cfb52b0dfc5285521b31f96413fff838611241450befb02adb28da9827717fcd93f45
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithBuyerDetailsDto, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -34,6 +34,9 @@ export interface LeadsApiGetLeadRequest {
34
34
  export interface LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest {
35
35
  date?: string;
36
36
  }
37
+ export interface LeadsApiGetManualLeadRequest {
38
+ leadId: string;
39
+ }
37
40
  export interface LeadsApiGetMessagesRequest {
38
41
  leadId: string;
39
42
  }
@@ -116,6 +119,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
116
119
  *
117
120
  */
118
121
  getLeadLeaseToOwnConfigurationPresets(requestParameters?: LeadsApiGetLeadLeaseToOwnConfigurationPresetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LeadLeaseToOwnAndRentConfigurationPresetsDto>;
122
+ /**
123
+ *
124
+ */
125
+ getManualLeadRaw(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto>>;
126
+ /**
127
+ *
128
+ */
129
+ getManualLead(requestParameters: LeadsApiGetManualLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto>;
119
130
  /**
120
131
  *
121
132
  */
@@ -451,6 +451,59 @@ var LeadsApi = /** @class */ (function (_super) {
451
451
  });
452
452
  });
453
453
  };
454
+ /**
455
+ *
456
+ */
457
+ LeadsApi.prototype.getManualLeadRaw = function (requestParameters, initOverrides) {
458
+ return __awaiter(this, void 0, void 0, function () {
459
+ var queryParameters, headerParameters, token, tokenString, response;
460
+ return __generator(this, function (_a) {
461
+ switch (_a.label) {
462
+ case 0:
463
+ if (requestParameters['leadId'] == null) {
464
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling getManualLead().');
465
+ }
466
+ queryParameters = {};
467
+ headerParameters = {};
468
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
469
+ token = this.configuration.accessToken;
470
+ return [4 /*yield*/, token("bearer", [])];
471
+ case 1:
472
+ tokenString = _a.sent();
473
+ if (tokenString) {
474
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
475
+ }
476
+ _a.label = 2;
477
+ case 2: return [4 /*yield*/, this.request({
478
+ path: "/private/leads/manual/{leadId}".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
479
+ method: 'GET',
480
+ headers: headerParameters,
481
+ query: queryParameters,
482
+ }, initOverrides)];
483
+ case 3:
484
+ response = _a.sent();
485
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON)(jsonValue); })];
486
+ }
487
+ });
488
+ });
489
+ };
490
+ /**
491
+ *
492
+ */
493
+ LeadsApi.prototype.getManualLead = function (requestParameters, initOverrides) {
494
+ return __awaiter(this, void 0, void 0, function () {
495
+ var response;
496
+ return __generator(this, function (_a) {
497
+ switch (_a.label) {
498
+ case 0: return [4 /*yield*/, this.getManualLeadRaw(requestParameters, initOverrides)];
499
+ case 1:
500
+ response = _a.sent();
501
+ return [4 /*yield*/, response.value()];
502
+ case 2: return [2 /*return*/, _a.sent()];
503
+ }
504
+ });
505
+ });
506
+ };
454
507
  /**
455
508
  *
456
509
  */
@@ -41,6 +41,7 @@ export interface DomainTransferDetailSellerPayoutInvoiceDto {
41
41
  export declare const DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum: {
42
42
  readonly OPEN: "open";
43
43
  readonly PAID: "paid";
44
+ readonly PENDING: "pending";
44
45
  readonly ERROR: "error";
45
46
  readonly CANCELLED: "cancelled";
46
47
  readonly REFUNDED: "refunded";
@@ -26,6 +26,7 @@ var MoneyDto_1 = require("./MoneyDto");
26
26
  exports.DomainTransferDetailSellerPayoutInvoiceDtoTransactionStatusEnum = {
27
27
  OPEN: 'open',
28
28
  PAID: 'paid',
29
+ PENDING: 'pending',
29
30
  ERROR: 'error',
30
31
  CANCELLED: 'cancelled',
31
32
  REFUNDED: 'refunded'
@@ -0,0 +1,151 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDtoWithAccountDto';
13
+ import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
14
+ import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
15
+ import type { MoneyDto } from './MoneyDto';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
20
+ */
21
+ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto {
22
+ /**
23
+ * The lead id
24
+ * @type {string}
25
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
26
+ */
27
+ id: string;
28
+ /**
29
+ * The current lead status
30
+ * @type {string}
31
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
32
+ */
33
+ status: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum;
34
+ /**
35
+ * The lead last offer amount
36
+ * @type {MoneyDto}
37
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
38
+ */
39
+ lastOffer: MoneyDto | null;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
44
+ */
45
+ lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum | null;
46
+ /**
47
+ *
48
+ * @type {IntersectionDomainDtoWithAccountDto}
49
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
50
+ */
51
+ domain: IntersectionDomainDtoWithAccountDto;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
56
+ */
57
+ manualType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum | null;
58
+ /**
59
+ *
60
+ * @type {ManualLeadBuyerDto}
61
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
62
+ */
63
+ buyer: ManualLeadBuyerDto;
64
+ /**
65
+ *
66
+ * @type {ManualLeadLeaseToOwnDto}
67
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
68
+ */
69
+ leaseToOwn: ManualLeadLeaseToOwnDto | null;
70
+ /**
71
+ * Archived status
72
+ * @type {boolean}
73
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
74
+ */
75
+ archived: boolean;
76
+ /**
77
+ * Created at date
78
+ * @type {Date}
79
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
80
+ */
81
+ createdAt: Date;
82
+ /**
83
+ * Updated at date
84
+ * @type {Date}
85
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
86
+ */
87
+ updatedAt: Date;
88
+ /**
89
+ * Number of buyer unread messages
90
+ * @type {number}
91
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
92
+ */
93
+ unreadBuyerMessagesNumber: number;
94
+ /**
95
+ * Number of seller unread messages
96
+ * @type {number}
97
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
98
+ */
99
+ unreadSellerMessagesNumber: number;
100
+ /**
101
+ * Lead order payment URL
102
+ * @type {string}
103
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
104
+ */
105
+ orderPaymentUrl: string | null;
106
+ /**
107
+ *
108
+ * @type {boolean}
109
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
110
+ */
111
+ isPriceNegotiatorAgentPaused: boolean;
112
+ }
113
+ /**
114
+ * @export
115
+ */
116
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum: {
117
+ readonly UNVERIFIED: "unverified";
118
+ readonly ACTIVE: "active";
119
+ readonly ACCEPTED: "accepted";
120
+ readonly FINISHED: "finished";
121
+ readonly CLOSED: "closed";
122
+ };
123
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum];
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum: {
128
+ readonly BUYER: "buyer";
129
+ readonly SELLER: "seller";
130
+ readonly AI: "ai";
131
+ readonly ADMIN: "admin";
132
+ };
133
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum];
134
+ /**
135
+ * @export
136
+ */
137
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum: {
138
+ readonly BUY_NOW: "buy_now";
139
+ readonly OFFER: "offer";
140
+ readonly LEASE_TO_OWN: "lease_to_own";
141
+ readonly RENT: "rent";
142
+ };
143
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum];
144
+ /**
145
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto interface.
146
+ */
147
+ export declare function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto(value: object): value is IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
148
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
149
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
150
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json: any): IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
151
+ export declare function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(value?: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,140 @@
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.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = void 0;
17
+ exports.instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
18
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON;
19
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped;
20
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON;
21
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped;
22
+ var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWithAccountDto");
23
+ var ManualLeadBuyerDto_1 = require("./ManualLeadBuyerDto");
24
+ var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
25
+ var MoneyDto_1 = require("./MoneyDto");
26
+ /**
27
+ * @export
28
+ */
29
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = {
30
+ UNVERIFIED: 'unverified',
31
+ ACTIVE: 'active',
32
+ ACCEPTED: 'accepted',
33
+ FINISHED: 'finished',
34
+ CLOSED: 'closed'
35
+ };
36
+ /**
37
+ * @export
38
+ */
39
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = {
40
+ BUYER: 'buyer',
41
+ SELLER: 'seller',
42
+ AI: 'ai',
43
+ ADMIN: 'admin'
44
+ };
45
+ /**
46
+ * @export
47
+ */
48
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = {
49
+ BUY_NOW: 'buy_now',
50
+ OFFER: 'offer',
51
+ LEASE_TO_OWN: 'lease_to_own',
52
+ RENT: 'rent'
53
+ };
54
+ /**
55
+ * Check if a given object implements the IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto interface.
56
+ */
57
+ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto(value) {
58
+ if (!('id' in value) || value['id'] === undefined)
59
+ return false;
60
+ if (!('status' in value) || value['status'] === undefined)
61
+ return false;
62
+ if (!('lastOffer' in value) || value['lastOffer'] === undefined)
63
+ return false;
64
+ if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
65
+ return false;
66
+ if (!('domain' in value) || value['domain'] === undefined)
67
+ return false;
68
+ if (!('manualType' in value) || value['manualType'] === undefined)
69
+ return false;
70
+ if (!('buyer' in value) || value['buyer'] === undefined)
71
+ return false;
72
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
73
+ return false;
74
+ if (!('archived' in value) || value['archived'] === undefined)
75
+ return false;
76
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
77
+ return false;
78
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
79
+ return false;
80
+ if (!('unreadBuyerMessagesNumber' in value) || value['unreadBuyerMessagesNumber'] === undefined)
81
+ return false;
82
+ if (!('unreadSellerMessagesNumber' in value) || value['unreadSellerMessagesNumber'] === undefined)
83
+ return false;
84
+ if (!('orderPaymentUrl' in value) || value['orderPaymentUrl'] === undefined)
85
+ return false;
86
+ if (!('isPriceNegotiatorAgentPaused' in value) || value['isPriceNegotiatorAgentPaused'] === undefined)
87
+ return false;
88
+ return true;
89
+ }
90
+ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
91
+ return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json, false);
92
+ }
93
+ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped(json, ignoreDiscriminator) {
94
+ if (json == null) {
95
+ return json;
96
+ }
97
+ return {
98
+ 'id': json['id'],
99
+ 'status': json['status'],
100
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
101
+ 'lastOfferBy': json['lastOfferBy'],
102
+ 'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
103
+ 'manualType': json['manualType'],
104
+ 'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
105
+ 'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoFromJSON)(json['leaseToOwn']),
106
+ 'archived': json['archived'],
107
+ 'createdAt': (new Date(json['createdAt'])),
108
+ 'updatedAt': (new Date(json['updatedAt'])),
109
+ 'unreadBuyerMessagesNumber': json['unreadBuyerMessagesNumber'],
110
+ 'unreadSellerMessagesNumber': json['unreadSellerMessagesNumber'],
111
+ 'orderPaymentUrl': json['orderPaymentUrl'],
112
+ 'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
113
+ };
114
+ }
115
+ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
116
+ return IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(json, false);
117
+ }
118
+ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSONTyped(value, ignoreDiscriminator) {
119
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
120
+ if (value == null) {
121
+ return value;
122
+ }
123
+ return {
124
+ 'id': value['id'],
125
+ 'status': value['status'],
126
+ 'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
127
+ 'lastOfferBy': value['lastOfferBy'],
128
+ 'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
129
+ 'manualType': value['manualType'],
130
+ 'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
131
+ 'leaseToOwn': (0, ManualLeadLeaseToOwnDto_1.ManualLeadLeaseToOwnDtoToJSON)(value['leaseToOwn']),
132
+ 'archived': value['archived'],
133
+ 'createdAt': ((value['createdAt']).toISOString()),
134
+ 'updatedAt': ((value['updatedAt']).toISOString()),
135
+ 'unreadBuyerMessagesNumber': value['unreadBuyerMessagesNumber'],
136
+ 'unreadSellerMessagesNumber': value['unreadSellerMessagesNumber'],
137
+ 'orderPaymentUrl': value['orderPaymentUrl'],
138
+ 'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
139
+ };
140
+ }
@@ -33,6 +33,12 @@ export interface InvoiceTransactionDto {
33
33
  * @memberof InvoiceTransactionDto
34
34
  */
35
35
  gatewayTransferToken: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof InvoiceTransactionDto
40
+ */
41
+ status: InvoiceTransactionDtoStatusEnum;
36
42
  }
37
43
  /**
38
44
  * @export
@@ -41,6 +47,18 @@ export declare const InvoiceTransactionDtoGatewayEnum: {
41
47
  readonly STRIPE: "stripe";
42
48
  };
43
49
  export type InvoiceTransactionDtoGatewayEnum = typeof InvoiceTransactionDtoGatewayEnum[keyof typeof InvoiceTransactionDtoGatewayEnum];
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const InvoiceTransactionDtoStatusEnum: {
54
+ readonly OPEN: "open";
55
+ readonly PAID: "paid";
56
+ readonly PENDING: "pending";
57
+ readonly ERROR: "error";
58
+ readonly CANCELLED: "cancelled";
59
+ readonly REFUNDED: "refunded";
60
+ };
61
+ export type InvoiceTransactionDtoStatusEnum = typeof InvoiceTransactionDtoStatusEnum[keyof typeof InvoiceTransactionDtoStatusEnum];
44
62
  /**
45
63
  * Check if a given object implements the InvoiceTransactionDto interface.
46
64
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InvoiceTransactionDtoGatewayEnum = void 0;
16
+ exports.InvoiceTransactionDtoStatusEnum = exports.InvoiceTransactionDtoGatewayEnum = void 0;
17
17
  exports.instanceOfInvoiceTransactionDto = instanceOfInvoiceTransactionDto;
18
18
  exports.InvoiceTransactionDtoFromJSON = InvoiceTransactionDtoFromJSON;
19
19
  exports.InvoiceTransactionDtoFromJSONTyped = InvoiceTransactionDtoFromJSONTyped;
@@ -25,6 +25,17 @@ exports.InvoiceTransactionDtoToJSONTyped = InvoiceTransactionDtoToJSONTyped;
25
25
  exports.InvoiceTransactionDtoGatewayEnum = {
26
26
  STRIPE: 'stripe'
27
27
  };
28
+ /**
29
+ * @export
30
+ */
31
+ exports.InvoiceTransactionDtoStatusEnum = {
32
+ OPEN: 'open',
33
+ PAID: 'paid',
34
+ PENDING: 'pending',
35
+ ERROR: 'error',
36
+ CANCELLED: 'cancelled',
37
+ REFUNDED: 'refunded'
38
+ };
28
39
  /**
29
40
  * Check if a given object implements the InvoiceTransactionDto interface.
30
41
  */
@@ -35,6 +46,8 @@ function instanceOfInvoiceTransactionDto(value) {
35
46
  return false;
36
47
  if (!('gatewayTransferToken' in value) || value['gatewayTransferToken'] === undefined)
37
48
  return false;
49
+ if (!('status' in value) || value['status'] === undefined)
50
+ return false;
38
51
  return true;
39
52
  }
40
53
  function InvoiceTransactionDtoFromJSON(json) {
@@ -48,6 +61,7 @@ function InvoiceTransactionDtoFromJSONTyped(json, ignoreDiscriminator) {
48
61
  'id': json['id'],
49
62
  'gateway': json['gateway'],
50
63
  'gatewayTransferToken': json['gatewayTransferToken'],
64
+ 'status': json['status'],
51
65
  };
52
66
  }
53
67
  function InvoiceTransactionDtoToJSON(json) {
@@ -62,5 +76,6 @@ function InvoiceTransactionDtoToJSONTyped(value, ignoreDiscriminator) {
62
76
  'id': value['id'],
63
77
  'gateway': value['gateway'],
64
78
  'gatewayTransferToken': value['gatewayTransferToken'],
79
+ 'status': value['status'],
65
80
  };
66
81
  }
@@ -0,0 +1,50 @@
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 ManualLeadBuyerDto
16
+ */
17
+ export interface ManualLeadBuyerDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ManualLeadBuyerDto
22
+ */
23
+ firstName: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ManualLeadBuyerDto
28
+ */
29
+ lastName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ManualLeadBuyerDto
34
+ */
35
+ email: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ManualLeadBuyerDto
40
+ */
41
+ locale: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the ManualLeadBuyerDto interface.
45
+ */
46
+ export declare function instanceOfManualLeadBuyerDto(value: object): value is ManualLeadBuyerDto;
47
+ export declare function ManualLeadBuyerDtoFromJSON(json: any): ManualLeadBuyerDto;
48
+ export declare function ManualLeadBuyerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ManualLeadBuyerDto;
49
+ export declare function ManualLeadBuyerDtoToJSON(json: any): ManualLeadBuyerDto;
50
+ export declare function ManualLeadBuyerDtoToJSONTyped(value?: ManualLeadBuyerDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfManualLeadBuyerDto = instanceOfManualLeadBuyerDto;
17
+ exports.ManualLeadBuyerDtoFromJSON = ManualLeadBuyerDtoFromJSON;
18
+ exports.ManualLeadBuyerDtoFromJSONTyped = ManualLeadBuyerDtoFromJSONTyped;
19
+ exports.ManualLeadBuyerDtoToJSON = ManualLeadBuyerDtoToJSON;
20
+ exports.ManualLeadBuyerDtoToJSONTyped = ManualLeadBuyerDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ManualLeadBuyerDto interface.
23
+ */
24
+ function instanceOfManualLeadBuyerDto(value) {
25
+ if (!('firstName' in value) || value['firstName'] === undefined)
26
+ return false;
27
+ if (!('lastName' in value) || value['lastName'] === undefined)
28
+ return false;
29
+ if (!('email' in value) || value['email'] === undefined)
30
+ return false;
31
+ if (!('locale' in value) || value['locale'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ManualLeadBuyerDtoFromJSON(json) {
36
+ return ManualLeadBuyerDtoFromJSONTyped(json, false);
37
+ }
38
+ function ManualLeadBuyerDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'firstName': json['firstName'],
44
+ 'lastName': json['lastName'],
45
+ 'email': json['email'],
46
+ 'locale': json['locale'],
47
+ };
48
+ }
49
+ function ManualLeadBuyerDtoToJSON(json) {
50
+ return ManualLeadBuyerDtoToJSONTyped(json, false);
51
+ }
52
+ function ManualLeadBuyerDtoToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'firstName': value['firstName'],
59
+ 'lastName': value['lastName'],
60
+ 'email': value['email'],
61
+ 'locale': value['locale'],
62
+ };
63
+ }