@randock/nameshift-api-client 0.0.331 → 0.0.332

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 (132) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AuctionsPublicApi.d.ts +29 -0
  4. package/dist/apis/AuctionsPublicApi.js +124 -0
  5. package/dist/apis/BuyersApi.d.ts +54 -1
  6. package/dist/apis/BuyersApi.js +267 -0
  7. package/dist/apis/BuyersPublicApi.d.ts +23 -1
  8. package/dist/apis/BuyersPublicApi.js +90 -0
  9. package/dist/apis/DomainsApi.d.ts +13 -1
  10. package/dist/apis/DomainsApi.js +56 -0
  11. package/dist/apis/LeadsApi.d.ts +2 -5
  12. package/dist/apis/LeadsApi.js +4 -8
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/models/AuctionBidDto.d.ts +51 -0
  16. package/dist/models/AuctionBidDto.js +64 -0
  17. package/dist/models/AuctionBidInput.d.ts +32 -0
  18. package/dist/models/AuctionBidInput.js +51 -0
  19. package/dist/models/AuctionBuyerDto.d.ts +74 -0
  20. package/dist/models/AuctionBuyerDto.js +79 -0
  21. package/dist/models/AuctionBuyerWithTokenDto.d.ts +39 -0
  22. package/dist/models/AuctionBuyerWithTokenDto.js +56 -0
  23. package/dist/models/AuctionDto.d.ts +82 -0
  24. package/dist/models/AuctionDto.js +85 -0
  25. package/dist/models/BuyerLeadListItemDto.d.ts +23 -0
  26. package/dist/models/BuyerLeadListItemDto.js +19 -1
  27. package/dist/models/DomainAuctionDto.d.ts +63 -0
  28. package/dist/models/DomainAuctionDto.js +72 -0
  29. package/dist/models/DomainSalesInformationDto.d.ts +12 -0
  30. package/dist/models/DomainSalesInformationDto.js +8 -0
  31. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  32. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  33. package/dist/models/IntersectionDomainDtoWithAccountDto.d.ts +7 -0
  34. package/dist/models/IntersectionDomainDtoWithAccountDto.js +5 -0
  35. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +7 -0
  36. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +5 -0
  37. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.d.ts +7 -0
  38. package/dist/models/IntersectionDomainDtoWithSeoMetricsDto.js +5 -0
  39. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +36 -0
  40. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.js +28 -1
  41. package/dist/models/LeadDto.d.ts +43 -0
  42. package/dist/models/LeadDto.js +33 -1
  43. package/dist/models/LeadLeaseToOwnConfigurationDto.d.ts +50 -0
  44. package/dist/models/LeadLeaseToOwnConfigurationDto.js +63 -0
  45. package/dist/models/LeadMessageData.d.ts +7 -0
  46. package/dist/models/LeadMessageData.js +5 -0
  47. package/dist/models/LeadMessageDataLeaseToOwn.d.ts +38 -0
  48. package/dist/models/LeadMessageDataLeaseToOwn.js +55 -0
  49. package/dist/models/LeadMessageDto.d.ts +16 -0
  50. package/dist/models/LeadMessageDto.js +14 -1
  51. package/dist/models/LeadOfferDto.d.ts +72 -0
  52. package/dist/models/LeadOfferDto.js +84 -0
  53. package/dist/models/LeadRentConfigurationDto.d.ts +38 -0
  54. package/dist/models/LeadRentConfigurationDto.js +55 -0
  55. package/dist/models/ListLeadsResultItem.d.ts +43 -0
  56. package/dist/models/ListLeadsResultItem.js +33 -1
  57. package/dist/models/ManualLeadLeaseToOwnDto.d.ts +12 -0
  58. package/dist/models/ManualLeadLeaseToOwnDto.js +8 -0
  59. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  60. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  61. package/dist/models/PutBuyerLeadOfferInput.d.ts +22 -0
  62. package/dist/models/PutBuyerLeadOfferInput.js +14 -0
  63. package/dist/models/PutLeadOfferInput.d.ts +23 -1
  64. package/dist/models/PutLeadOfferInput.js +15 -3
  65. package/dist/models/RegisterAuctionBuyerPhoneInput.d.ts +47 -0
  66. package/dist/models/RegisterAuctionBuyerPhoneInput.js +64 -0
  67. package/dist/models/RegisterInput.d.ts +38 -0
  68. package/dist/models/RegisterInput.js +55 -0
  69. package/dist/models/RequestEmailOtpInput.d.ts +38 -0
  70. package/dist/models/RequestEmailOtpInput.js +55 -0
  71. package/dist/models/SellerLeadDetails.d.ts +43 -0
  72. package/dist/models/SellerLeadDetails.js +33 -1
  73. package/dist/models/StartAuctionInput.d.ts +51 -0
  74. package/dist/models/StartAuctionInput.js +62 -0
  75. package/dist/models/TaskListLeadDto.d.ts +43 -0
  76. package/dist/models/TaskListLeadDto.js +33 -1
  77. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.d.ts +50 -0
  78. package/dist/models/TaskListLeadLeaseToOwnConfigurationDto.js +63 -0
  79. package/dist/models/TaskListLeadOfferDto.d.ts +72 -0
  80. package/dist/models/TaskListLeadOfferDto.js +84 -0
  81. package/dist/models/TaskListLeadRentConfigurationDto.d.ts +38 -0
  82. package/dist/models/TaskListLeadRentConfigurationDto.js +55 -0
  83. package/dist/models/VerifyEmailOtpInput.d.ts +38 -0
  84. package/dist/models/VerifyEmailOtpInput.js +55 -0
  85. package/dist/models/VerifyPhoneOtpInput.d.ts +32 -0
  86. package/dist/models/VerifyPhoneOtpInput.js +51 -0
  87. package/dist/models/index.d.ts +19 -0
  88. package/dist/models/index.js +19 -0
  89. package/package.json +1 -1
  90. package/src/apis/AuctionsPublicApi.ts +67 -0
  91. package/src/apis/BuyersApi.ts +249 -0
  92. package/src/apis/BuyersPublicApi.ts +88 -0
  93. package/src/apis/DomainsApi.ts +58 -0
  94. package/src/apis/LeadsApi.ts +3 -11
  95. package/src/apis/index.ts +1 -0
  96. package/src/models/AuctionBidDto.ts +101 -0
  97. package/src/models/AuctionBidInput.ts +66 -0
  98. package/src/models/AuctionBuyerDto.ts +129 -0
  99. package/src/models/AuctionBuyerWithTokenDto.ts +83 -0
  100. package/src/models/AuctionDto.ts +153 -0
  101. package/src/models/BuyerLeadListItemDto.ts +36 -0
  102. package/src/models/DomainAuctionDto.ts +119 -0
  103. package/src/models/DomainSalesInformationDto.ts +18 -0
  104. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  105. package/src/models/IntersectionDomainDtoWithAccountDto.ts +16 -0
  106. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +16 -0
  107. package/src/models/IntersectionDomainDtoWithSeoMetricsDto.ts +16 -0
  108. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +61 -0
  109. package/src/models/LeadDto.ts +77 -0
  110. package/src/models/LeadLeaseToOwnConfigurationDto.ts +93 -0
  111. package/src/models/LeadMessageData.ts +16 -0
  112. package/src/models/LeadMessageDataLeaseToOwn.ts +75 -0
  113. package/src/models/LeadMessageDto.ts +20 -0
  114. package/src/models/LeadOfferDto.ts +132 -0
  115. package/src/models/LeadRentConfigurationDto.ts +75 -0
  116. package/src/models/ListLeadsResultItem.ts +77 -0
  117. package/src/models/ManualLeadLeaseToOwnDto.ts +18 -0
  118. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  119. package/src/models/PutBuyerLeadOfferInput.ts +29 -0
  120. package/src/models/PutLeadOfferInput.ts +31 -3
  121. package/src/models/RegisterAuctionBuyerPhoneInput.ts +87 -0
  122. package/src/models/RegisterInput.ts +75 -0
  123. package/src/models/RequestEmailOtpInput.ts +75 -0
  124. package/src/models/SellerLeadDetails.ts +77 -0
  125. package/src/models/StartAuctionInput.ts +100 -0
  126. package/src/models/TaskListLeadDto.ts +77 -0
  127. package/src/models/TaskListLeadLeaseToOwnConfigurationDto.ts +93 -0
  128. package/src/models/TaskListLeadOfferDto.ts +132 -0
  129. package/src/models/TaskListLeadRentConfigurationDto.ts +75 -0
  130. package/src/models/VerifyEmailOtpInput.ts +75 -0
  131. package/src/models/VerifyPhoneOtpInput.ts +66 -0
  132. package/src/models/index.ts +19 -0
@@ -20,6 +20,7 @@ exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSON = IntersectionD
20
20
  exports.IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped = IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
22
  var RentConfigurationDto_1 = require("./RentConfigurationDto");
23
+ var DomainAuctionDto_1 = require("./DomainAuctionDto");
23
24
  var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
24
25
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
25
26
  var AccountDto_1 = require("./AccountDto");
@@ -66,6 +67,8 @@ function instanceOfIntersectionDomainDtoWithHijackerDtoWithAccountDto(value) {
66
67
  return false;
67
68
  if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined)
68
69
  return false;
70
+ if (!('auction' in value) || value['auction'] === undefined)
71
+ return false;
69
72
  if (!('hijacker' in value) || value['hijacker'] === undefined)
70
73
  return false;
71
74
  if (!('account' in value) || value['account'] === undefined)
@@ -99,6 +102,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoFromJSONTyped(json, i
99
102
  'pageviews': json['pageviews'],
100
103
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
101
104
  'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
105
+ 'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
102
106
  'hijacker': (0, AccountDto_1.AccountDtoFromJSON)(json['hijacker']),
103
107
  'account': (0, AccountDto_1.AccountDtoFromJSON)(json['account']),
104
108
  };
@@ -131,6 +135,7 @@ function IntersectionDomainDtoWithHijackerDtoWithAccountDtoToJSONTyped(value, ig
131
135
  'pageviews': value['pageviews'],
132
136
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
133
137
  'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
138
+ 'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
134
139
  'hijacker': (0, AccountDto_1.AccountDtoToJSON)(value['hijacker']),
135
140
  'account': (0, AccountDto_1.AccountDtoToJSON)(value['account']),
136
141
  };
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { MoneyDto } from './MoneyDto';
13
13
  import type { RentConfigurationDto } from './RentConfigurationDto';
14
+ import type { DomainAuctionDto } from './DomainAuctionDto';
14
15
  import type { LeaseToOwnConfigurationDto } from './LeaseToOwnConfigurationDto';
15
16
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
16
17
  import type { SeoMetricsDto } from './SeoMetricsDto';
@@ -142,6 +143,12 @@ export interface IntersectionDomainDtoWithSeoMetricsDto {
142
143
  * @memberof IntersectionDomainDtoWithSeoMetricsDto
143
144
  */
144
145
  leadPriceNegotiator: DomainLeadPriceNegotiatorAiAgentConfigurationDto | null;
146
+ /**
147
+ * Whether the domain has auction
148
+ * @type {DomainAuctionDto}
149
+ * @memberof IntersectionDomainDtoWithSeoMetricsDto
150
+ */
151
+ auction: DomainAuctionDto | null;
145
152
  }
146
153
  /**
147
154
  * Check if a given object implements the IntersectionDomainDtoWithSeoMetricsDto interface.
@@ -20,6 +20,7 @@ exports.IntersectionDomainDtoWithSeoMetricsDtoToJSON = IntersectionDomainDtoWith
20
20
  exports.IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped = IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped;
21
21
  var MoneyDto_1 = require("./MoneyDto");
22
22
  var RentConfigurationDto_1 = require("./RentConfigurationDto");
23
+ var DomainAuctionDto_1 = require("./DomainAuctionDto");
23
24
  var LeaseToOwnConfigurationDto_1 = require("./LeaseToOwnConfigurationDto");
24
25
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
25
26
  var SeoMetricsDto_1 = require("./SeoMetricsDto");
@@ -68,6 +69,8 @@ function instanceOfIntersectionDomainDtoWithSeoMetricsDto(value) {
68
69
  return false;
69
70
  if (!('leadPriceNegotiator' in value) || value['leadPriceNegotiator'] === undefined)
70
71
  return false;
72
+ if (!('auction' in value) || value['auction'] === undefined)
73
+ return false;
71
74
  return true;
72
75
  }
73
76
  function IntersectionDomainDtoWithSeoMetricsDtoFromJSON(json) {
@@ -98,6 +101,7 @@ function IntersectionDomainDtoWithSeoMetricsDtoFromJSONTyped(json, ignoreDiscrim
98
101
  'pageviews': json['pageviews'],
99
102
  'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'],
100
103
  'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoFromJSON)(json['leadPriceNegotiator']),
104
+ 'auction': (0, DomainAuctionDto_1.DomainAuctionDtoFromJSON)(json['auction']),
101
105
  };
102
106
  }
103
107
  function IntersectionDomainDtoWithSeoMetricsDtoToJSON(json) {
@@ -129,5 +133,6 @@ function IntersectionDomainDtoWithSeoMetricsDtoToJSONTyped(value, ignoreDiscrimi
129
133
  'pageviews': value['pageviews'],
130
134
  'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
131
135
  'leadPriceNegotiator': (0, DomainLeadPriceNegotiatorAiAgentConfigurationDto_1.DomainLeadPriceNegotiatorAiAgentConfigurationDtoToJSON)(value['leadPriceNegotiator']),
136
+ 'auction': (0, DomainAuctionDto_1.DomainAuctionDtoToJSON)(value['auction']),
132
137
  };
133
138
  }
@@ -13,6 +13,8 @@ import type { IntersectionDomainDtoWithAccountDto } from './IntersectionDomainDt
13
13
  import type { ManualLeadBuyerDto } from './ManualLeadBuyerDto';
14
14
  import type { ManualLeadLeaseToOwnDto } from './ManualLeadLeaseToOwnDto';
15
15
  import type { MoneyDto } from './MoneyDto';
16
+ import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
17
+ import type { LeadOfferDto } from './LeadOfferDto';
16
18
  /**
17
19
  *
18
20
  * @export
@@ -43,6 +45,12 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
43
45
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
44
46
  */
45
47
  lastOfferBy: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
52
+ */
53
+ lastOfferType: IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum | null;
46
54
  /**
47
55
  *
48
56
  * @type {IntersectionDomainDtoWithAccountDto}
@@ -115,6 +123,24 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
115
123
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
116
124
  */
117
125
  isMutedForBuyer: boolean;
126
+ /**
127
+ *
128
+ * @type {LeadRentConfigurationDto}
129
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
130
+ */
131
+ rent: LeadRentConfigurationDto;
132
+ /**
133
+ *
134
+ * @type {LeadOfferDto}
135
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
136
+ */
137
+ lastBuyerOffer: LeadOfferDto | null;
138
+ /**
139
+ *
140
+ * @type {LeadOfferDto}
141
+ * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
142
+ */
143
+ lastSellerOffer: LeadOfferDto | null;
118
144
  }
119
145
  /**
120
146
  * @export
@@ -137,6 +163,16 @@ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDet
137
163
  readonly ADMIN: "admin";
138
164
  };
139
165
  export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum];
166
+ /**
167
+ * @export
168
+ */
169
+ export declare const IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum: {
170
+ readonly LEAD: "lead";
171
+ readonly LEASE_TO_OWN: "lease_to_own";
172
+ readonly RENT: "rent";
173
+ readonly AUCTION: "auction";
174
+ };
175
+ export type IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum = typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum[keyof typeof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum];
140
176
  /**
141
177
  * @export
142
178
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = void 0;
16
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoManualTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferByEnum = exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoStatusEnum = void 0;
17
17
  exports.instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto = instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto;
18
18
  exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON;
19
19
  exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped = IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSONTyped;
@@ -23,6 +23,8 @@ var IntersectionDomainDtoWithAccountDto_1 = require("./IntersectionDomainDtoWith
23
23
  var ManualLeadBuyerDto_1 = require("./ManualLeadBuyerDto");
24
24
  var ManualLeadLeaseToOwnDto_1 = require("./ManualLeadLeaseToOwnDto");
25
25
  var MoneyDto_1 = require("./MoneyDto");
26
+ var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
27
+ var LeadOfferDto_1 = require("./LeadOfferDto");
26
28
  /**
27
29
  * @export
28
30
  */
@@ -42,6 +44,15 @@ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOf
42
44
  AI: 'ai',
43
45
  ADMIN: 'admin'
44
46
  };
47
+ /**
48
+ * @export
49
+ */
50
+ exports.IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoLastOfferTypeEnum = {
51
+ LEAD: 'lead',
52
+ LEASE_TO_OWN: 'lease_to_own',
53
+ RENT: 'rent',
54
+ AUCTION: 'auction'
55
+ };
45
56
  /**
46
57
  * @export
47
58
  */
@@ -63,6 +74,8 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
63
74
  return false;
64
75
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
65
76
  return false;
77
+ if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
78
+ return false;
66
79
  if (!('domain' in value) || value['domain'] === undefined)
67
80
  return false;
68
81
  if (!('manualType' in value) || value['manualType'] === undefined)
@@ -87,6 +100,12 @@ function instanceOfIntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetai
87
100
  return false;
88
101
  if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
89
102
  return false;
103
+ if (!('rent' in value) || value['rent'] === undefined)
104
+ return false;
105
+ if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
106
+ return false;
107
+ if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
108
+ return false;
90
109
  return true;
91
110
  }
92
111
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJSON(json) {
@@ -101,6 +120,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
101
120
  'status': json['status'],
102
121
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
103
122
  'lastOfferBy': json['lastOfferBy'],
123
+ 'lastOfferType': json['lastOfferType'],
104
124
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoFromJSON)(json['domain']),
105
125
  'manualType': json['manualType'],
106
126
  'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoFromJSON)(json['buyer']),
@@ -113,6 +133,9 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoFromJ
113
133
  'orderPaymentUrl': json['orderPaymentUrl'],
114
134
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
115
135
  'isMutedForBuyer': json['isMutedForBuyer'],
136
+ 'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoFromJSON)(json['rent']),
137
+ 'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
138
+ 'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
116
139
  };
117
140
  }
118
141
  function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSON(json) {
@@ -128,6 +151,7 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
128
151
  'status': value['status'],
129
152
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
130
153
  'lastOfferBy': value['lastOfferBy'],
154
+ 'lastOfferType': value['lastOfferType'],
131
155
  'domain': (0, IntersectionDomainDtoWithAccountDto_1.IntersectionDomainDtoWithAccountDtoToJSON)(value['domain']),
132
156
  'manualType': value['manualType'],
133
157
  'buyer': (0, ManualLeadBuyerDto_1.ManualLeadBuyerDtoToJSON)(value['buyer']),
@@ -140,5 +164,8 @@ function IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDtoToJSO
140
164
  'orderPaymentUrl': value['orderPaymentUrl'],
141
165
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
142
166
  'isMutedForBuyer': value['isMutedForBuyer'],
167
+ 'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoToJSON)(value['rent']),
168
+ 'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
169
+ 'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
143
170
  };
144
171
  }
@@ -9,8 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LeadLeaseToOwnConfigurationDto } from './LeadLeaseToOwnConfigurationDto';
12
13
  import type { LeadDomainDto } from './LeadDomainDto';
13
14
  import type { MoneyDto } from './MoneyDto';
15
+ import type { LeadRentConfigurationDto } from './LeadRentConfigurationDto';
16
+ import type { LeadOfferDto } from './LeadOfferDto';
14
17
  /**
15
18
  *
16
19
  * @export
@@ -41,6 +44,12 @@ export interface LeadDto {
41
44
  * @memberof LeadDto
42
45
  */
43
46
  lastOfferBy: LeadDtoLastOfferByEnum | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof LeadDto
51
+ */
52
+ lastOfferType: LeadDtoLastOfferTypeEnum | null;
44
53
  /**
45
54
  * Archived status
46
55
  * @type {boolean}
@@ -101,6 +110,30 @@ export interface LeadDto {
101
110
  * @memberof LeadDto
102
111
  */
103
112
  isMutedForBuyer: boolean;
113
+ /**
114
+ *
115
+ * @type {LeadLeaseToOwnConfigurationDto}
116
+ * @memberof LeadDto
117
+ */
118
+ leaseToOwn: LeadLeaseToOwnConfigurationDto | null;
119
+ /**
120
+ *
121
+ * @type {LeadRentConfigurationDto}
122
+ * @memberof LeadDto
123
+ */
124
+ rent: LeadRentConfigurationDto;
125
+ /**
126
+ *
127
+ * @type {LeadOfferDto}
128
+ * @memberof LeadDto
129
+ */
130
+ lastBuyerOffer: LeadOfferDto | null;
131
+ /**
132
+ *
133
+ * @type {LeadOfferDto}
134
+ * @memberof LeadDto
135
+ */
136
+ lastSellerOffer: LeadOfferDto | null;
104
137
  }
105
138
  /**
106
139
  * @export
@@ -123,6 +156,16 @@ export declare const LeadDtoLastOfferByEnum: {
123
156
  readonly ADMIN: "admin";
124
157
  };
125
158
  export type LeadDtoLastOfferByEnum = typeof LeadDtoLastOfferByEnum[keyof typeof LeadDtoLastOfferByEnum];
159
+ /**
160
+ * @export
161
+ */
162
+ export declare const LeadDtoLastOfferTypeEnum: {
163
+ readonly LEAD: "lead";
164
+ readonly LEASE_TO_OWN: "lease_to_own";
165
+ readonly RENT: "rent";
166
+ readonly AUCTION: "auction";
167
+ };
168
+ export type LeadDtoLastOfferTypeEnum = typeof LeadDtoLastOfferTypeEnum[keyof typeof LeadDtoLastOfferTypeEnum];
126
169
  /**
127
170
  * @export
128
171
  */
@@ -13,14 +13,17 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.LeadDtoManualTypeEnum = exports.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
16
+ exports.LeadDtoManualTypeEnum = exports.LeadDtoLastOfferTypeEnum = exports.LeadDtoLastOfferByEnum = exports.LeadDtoStatusEnum = void 0;
17
17
  exports.instanceOfLeadDto = instanceOfLeadDto;
18
18
  exports.LeadDtoFromJSON = LeadDtoFromJSON;
19
19
  exports.LeadDtoFromJSONTyped = LeadDtoFromJSONTyped;
20
20
  exports.LeadDtoToJSON = LeadDtoToJSON;
21
21
  exports.LeadDtoToJSONTyped = LeadDtoToJSONTyped;
22
+ var LeadLeaseToOwnConfigurationDto_1 = require("./LeadLeaseToOwnConfigurationDto");
22
23
  var LeadDomainDto_1 = require("./LeadDomainDto");
23
24
  var MoneyDto_1 = require("./MoneyDto");
25
+ var LeadRentConfigurationDto_1 = require("./LeadRentConfigurationDto");
26
+ var LeadOfferDto_1 = require("./LeadOfferDto");
24
27
  /**
25
28
  * @export
26
29
  */
@@ -40,6 +43,15 @@ exports.LeadDtoLastOfferByEnum = {
40
43
  AI: 'ai',
41
44
  ADMIN: 'admin'
42
45
  };
46
+ /**
47
+ * @export
48
+ */
49
+ exports.LeadDtoLastOfferTypeEnum = {
50
+ LEAD: 'lead',
51
+ LEASE_TO_OWN: 'lease_to_own',
52
+ RENT: 'rent',
53
+ AUCTION: 'auction'
54
+ };
43
55
  /**
44
56
  * @export
45
57
  */
@@ -61,6 +73,8 @@ function instanceOfLeadDto(value) {
61
73
  return false;
62
74
  if (!('lastOfferBy' in value) || value['lastOfferBy'] === undefined)
63
75
  return false;
76
+ if (!('lastOfferType' in value) || value['lastOfferType'] === undefined)
77
+ return false;
64
78
  if (!('archived' in value) || value['archived'] === undefined)
65
79
  return false;
66
80
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -81,6 +95,14 @@ function instanceOfLeadDto(value) {
81
95
  return false;
82
96
  if (!('isMutedForBuyer' in value) || value['isMutedForBuyer'] === undefined)
83
97
  return false;
98
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
99
+ return false;
100
+ if (!('rent' in value) || value['rent'] === undefined)
101
+ return false;
102
+ if (!('lastBuyerOffer' in value) || value['lastBuyerOffer'] === undefined)
103
+ return false;
104
+ if (!('lastSellerOffer' in value) || value['lastSellerOffer'] === undefined)
105
+ return false;
84
106
  return true;
85
107
  }
86
108
  function LeadDtoFromJSON(json) {
@@ -95,6 +117,7 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
95
117
  'status': json['status'],
96
118
  'lastOffer': (0, MoneyDto_1.MoneyDtoFromJSON)(json['lastOffer']),
97
119
  'lastOfferBy': json['lastOfferBy'],
120
+ 'lastOfferType': json['lastOfferType'],
98
121
  'archived': json['archived'],
99
122
  'createdAt': (new Date(json['createdAt'])),
100
123
  'updatedAt': (new Date(json['updatedAt'])),
@@ -105,6 +128,10 @@ function LeadDtoFromJSONTyped(json, ignoreDiscriminator) {
105
128
  'isPriceNegotiatorAgentPaused': json['isPriceNegotiatorAgentPaused'],
106
129
  'manualType': json['manualType'],
107
130
  'isMutedForBuyer': json['isMutedForBuyer'],
131
+ 'leaseToOwn': (0, LeadLeaseToOwnConfigurationDto_1.LeadLeaseToOwnConfigurationDtoFromJSON)(json['leaseToOwn']),
132
+ 'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoFromJSON)(json['rent']),
133
+ 'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastBuyerOffer']),
134
+ 'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoFromJSON)(json['lastSellerOffer']),
108
135
  };
109
136
  }
110
137
  function LeadDtoToJSON(json) {
@@ -120,6 +147,7 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
120
147
  'status': value['status'],
121
148
  'lastOffer': (0, MoneyDto_1.MoneyDtoToJSON)(value['lastOffer']),
122
149
  'lastOfferBy': value['lastOfferBy'],
150
+ 'lastOfferType': value['lastOfferType'],
123
151
  'archived': value['archived'],
124
152
  'createdAt': ((value['createdAt']).toISOString()),
125
153
  'updatedAt': ((value['updatedAt']).toISOString()),
@@ -130,5 +158,9 @@ function LeadDtoToJSONTyped(value, ignoreDiscriminator) {
130
158
  'isPriceNegotiatorAgentPaused': value['isPriceNegotiatorAgentPaused'],
131
159
  'manualType': value['manualType'],
132
160
  'isMutedForBuyer': value['isMutedForBuyer'],
161
+ 'leaseToOwn': (0, LeadLeaseToOwnConfigurationDto_1.LeadLeaseToOwnConfigurationDtoToJSON)(value['leaseToOwn']),
162
+ 'rent': (0, LeadRentConfigurationDto_1.LeadRentConfigurationDtoToJSON)(value['rent']),
163
+ 'lastBuyerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastBuyerOffer']),
164
+ 'lastSellerOffer': (0, LeadOfferDto_1.LeadOfferDtoToJSON)(value['lastSellerOffer']),
133
165
  };
134
166
  }
@@ -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 LeadLeaseToOwnConfigurationDto
16
+ */
17
+ export interface LeadLeaseToOwnConfigurationDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LeadLeaseToOwnConfigurationDto
22
+ */
23
+ minMonths: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LeadLeaseToOwnConfigurationDto
28
+ */
29
+ maxMonths: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof LeadLeaseToOwnConfigurationDto
34
+ */
35
+ kickBackPercentage: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof LeadLeaseToOwnConfigurationDto
40
+ */
41
+ markupComissionPercentage: number | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LeadLeaseToOwnConfigurationDto interface.
45
+ */
46
+ export declare function instanceOfLeadLeaseToOwnConfigurationDto(value: object): value is LeadLeaseToOwnConfigurationDto;
47
+ export declare function LeadLeaseToOwnConfigurationDtoFromJSON(json: any): LeadLeaseToOwnConfigurationDto;
48
+ export declare function LeadLeaseToOwnConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadLeaseToOwnConfigurationDto;
49
+ export declare function LeadLeaseToOwnConfigurationDtoToJSON(json: any): LeadLeaseToOwnConfigurationDto;
50
+ export declare function LeadLeaseToOwnConfigurationDtoToJSONTyped(value?: LeadLeaseToOwnConfigurationDto | 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.instanceOfLeadLeaseToOwnConfigurationDto = instanceOfLeadLeaseToOwnConfigurationDto;
17
+ exports.LeadLeaseToOwnConfigurationDtoFromJSON = LeadLeaseToOwnConfigurationDtoFromJSON;
18
+ exports.LeadLeaseToOwnConfigurationDtoFromJSONTyped = LeadLeaseToOwnConfigurationDtoFromJSONTyped;
19
+ exports.LeadLeaseToOwnConfigurationDtoToJSON = LeadLeaseToOwnConfigurationDtoToJSON;
20
+ exports.LeadLeaseToOwnConfigurationDtoToJSONTyped = LeadLeaseToOwnConfigurationDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadLeaseToOwnConfigurationDto interface.
23
+ */
24
+ function instanceOfLeadLeaseToOwnConfigurationDto(value) {
25
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
26
+ return false;
27
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
28
+ return false;
29
+ if (!('kickBackPercentage' in value) || value['kickBackPercentage'] === undefined)
30
+ return false;
31
+ if (!('markupComissionPercentage' in value) || value['markupComissionPercentage'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function LeadLeaseToOwnConfigurationDtoFromJSON(json) {
36
+ return LeadLeaseToOwnConfigurationDtoFromJSONTyped(json, false);
37
+ }
38
+ function LeadLeaseToOwnConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'minMonths': json['minMonths'],
44
+ 'maxMonths': json['maxMonths'],
45
+ 'kickBackPercentage': json['kickBackPercentage'],
46
+ 'markupComissionPercentage': json['markupComissionPercentage'],
47
+ };
48
+ }
49
+ function LeadLeaseToOwnConfigurationDtoToJSON(json) {
50
+ return LeadLeaseToOwnConfigurationDtoToJSONTyped(json, false);
51
+ }
52
+ function LeadLeaseToOwnConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
53
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'minMonths': value['minMonths'],
59
+ 'maxMonths': value['maxMonths'],
60
+ 'kickBackPercentage': value['kickBackPercentage'],
61
+ 'markupComissionPercentage': value['markupComissionPercentage'],
62
+ };
63
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LeadMessageDataLeaseToOwn } from './LeadMessageDataLeaseToOwn';
12
13
  import type { MoneyDto } from './MoneyDto';
13
14
  /**
14
15
  *
@@ -22,6 +23,12 @@ export interface LeadMessageData {
22
23
  * @memberof LeadMessageData
23
24
  */
24
25
  price: MoneyDto;
26
+ /**
27
+ *
28
+ * @type {LeadMessageDataLeaseToOwn}
29
+ * @memberof LeadMessageData
30
+ */
31
+ leaseToOwn: LeadMessageDataLeaseToOwn | null;
25
32
  }
26
33
  /**
27
34
  * Check if a given object implements the LeadMessageData interface.
@@ -18,6 +18,7 @@ exports.LeadMessageDataFromJSON = LeadMessageDataFromJSON;
18
18
  exports.LeadMessageDataFromJSONTyped = LeadMessageDataFromJSONTyped;
19
19
  exports.LeadMessageDataToJSON = LeadMessageDataToJSON;
20
20
  exports.LeadMessageDataToJSONTyped = LeadMessageDataToJSONTyped;
21
+ var LeadMessageDataLeaseToOwn_1 = require("./LeadMessageDataLeaseToOwn");
21
22
  var MoneyDto_1 = require("./MoneyDto");
22
23
  /**
23
24
  * Check if a given object implements the LeadMessageData interface.
@@ -25,6 +26,8 @@ var MoneyDto_1 = require("./MoneyDto");
25
26
  function instanceOfLeadMessageData(value) {
26
27
  if (!('price' in value) || value['price'] === undefined)
27
28
  return false;
29
+ if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined)
30
+ return false;
28
31
  return true;
29
32
  }
30
33
  function LeadMessageDataFromJSON(json) {
@@ -36,6 +39,7 @@ function LeadMessageDataFromJSONTyped(json, ignoreDiscriminator) {
36
39
  }
37
40
  return {
38
41
  'price': (0, MoneyDto_1.MoneyDtoFromJSON)(json['price']),
42
+ 'leaseToOwn': (0, LeadMessageDataLeaseToOwn_1.LeadMessageDataLeaseToOwnFromJSON)(json['leaseToOwn']),
39
43
  };
40
44
  }
41
45
  function LeadMessageDataToJSON(json) {
@@ -48,5 +52,6 @@ function LeadMessageDataToJSONTyped(value, ignoreDiscriminator) {
48
52
  }
49
53
  return {
50
54
  'price': (0, MoneyDto_1.MoneyDtoToJSON)(value['price']),
55
+ 'leaseToOwn': (0, LeadMessageDataLeaseToOwn_1.LeadMessageDataLeaseToOwnToJSON)(value['leaseToOwn']),
51
56
  };
52
57
  }
@@ -0,0 +1,38 @@
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 LeadMessageDataLeaseToOwn
16
+ */
17
+ export interface LeadMessageDataLeaseToOwn {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LeadMessageDataLeaseToOwn
22
+ */
23
+ minMonths: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof LeadMessageDataLeaseToOwn
28
+ */
29
+ maxMonths: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the LeadMessageDataLeaseToOwn interface.
33
+ */
34
+ export declare function instanceOfLeadMessageDataLeaseToOwn(value: object): value is LeadMessageDataLeaseToOwn;
35
+ export declare function LeadMessageDataLeaseToOwnFromJSON(json: any): LeadMessageDataLeaseToOwn;
36
+ export declare function LeadMessageDataLeaseToOwnFromJSONTyped(json: any, ignoreDiscriminator: boolean): LeadMessageDataLeaseToOwn;
37
+ export declare function LeadMessageDataLeaseToOwnToJSON(json: any): LeadMessageDataLeaseToOwn;
38
+ export declare function LeadMessageDataLeaseToOwnToJSONTyped(value?: LeadMessageDataLeaseToOwn | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfLeadMessageDataLeaseToOwn = instanceOfLeadMessageDataLeaseToOwn;
17
+ exports.LeadMessageDataLeaseToOwnFromJSON = LeadMessageDataLeaseToOwnFromJSON;
18
+ exports.LeadMessageDataLeaseToOwnFromJSONTyped = LeadMessageDataLeaseToOwnFromJSONTyped;
19
+ exports.LeadMessageDataLeaseToOwnToJSON = LeadMessageDataLeaseToOwnToJSON;
20
+ exports.LeadMessageDataLeaseToOwnToJSONTyped = LeadMessageDataLeaseToOwnToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LeadMessageDataLeaseToOwn interface.
23
+ */
24
+ function instanceOfLeadMessageDataLeaseToOwn(value) {
25
+ if (!('minMonths' in value) || value['minMonths'] === undefined)
26
+ return false;
27
+ if (!('maxMonths' in value) || value['maxMonths'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function LeadMessageDataLeaseToOwnFromJSON(json) {
32
+ return LeadMessageDataLeaseToOwnFromJSONTyped(json, false);
33
+ }
34
+ function LeadMessageDataLeaseToOwnFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'minMonths': json['minMonths'],
40
+ 'maxMonths': json['maxMonths'],
41
+ };
42
+ }
43
+ function LeadMessageDataLeaseToOwnToJSON(json) {
44
+ return LeadMessageDataLeaseToOwnToJSONTyped(json, false);
45
+ }
46
+ function LeadMessageDataLeaseToOwnToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'minMonths': value['minMonths'],
53
+ 'maxMonths': value['maxMonths'],
54
+ };
55
+ }