opendoor-partner-sdk-server-ruby 1.3.1 → 1.3.2.beta.110.1
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4590b25d51723b12ba3a0351ddd4fe707492e97e79fa2c6724b03b4bfb9b45f
|
|
4
|
+
data.tar.gz: 42cab94d36cc0ff3f626284530d41a833e06f5b576dc4d593b26088408cd0a26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69d9e9751038380bbeb7614c13e8a5084115f92eb9958559b1dedf0352aedb329ba68f1b47278821a7e4dedd649cf486c2557d74a9748c1dffebed1286e83d78
|
|
7
|
+
data.tar.gz: 5b6b5b93618b8faa73b31213999345d7607decac17c6c32aa02487629aafd0cbefd30bf9a23861ecdaaaf6665180f60954ba3b3778d8423837ce7d1d4ca0c20d
|
|
@@ -283,6 +283,30 @@ module Opendoor
|
|
|
283
283
|
{ answerPrefills: seller_prefills["answerPrefills"] || {} }
|
|
284
284
|
end
|
|
285
285
|
|
|
286
|
+
# Get the customer's name, email, and phone for an offer request.
|
|
287
|
+
# Useful for prefilling downstream steps (e.g. assessment scheduling)
|
|
288
|
+
# when only the offer UUID is available client-side.
|
|
289
|
+
# Requires the offer to have reached OFFERED — earlier states raise NOT_FOUND.
|
|
290
|
+
def get_customer_contact(opendoor_offer_request_id:)
|
|
291
|
+
raise ValidationError.new("opendoorOfferRequestId is required", "opendoorOfferRequestId") if blank?(opendoor_offer_request_id)
|
|
292
|
+
|
|
293
|
+
data = graphql(
|
|
294
|
+
query: Graphql::CUSTOMER_CONTACT_QUERY,
|
|
295
|
+
variables: { opendoorOfferRequestId: opendoor_offer_request_id }
|
|
296
|
+
)
|
|
297
|
+
|
|
298
|
+
contact = data["customerContact"] || {}
|
|
299
|
+
# Coerce blank strings to nil for parity with the JS SDK's undefined
|
|
300
|
+
# semantics. Preserve nil keys (no .compact) so dual-stack partners get
|
|
301
|
+
# the same key set in both languages.
|
|
302
|
+
present = ->(v) { v.is_a?(String) && !v.empty? ? v : nil }
|
|
303
|
+
{
|
|
304
|
+
fullName: present.call(contact["fullName"]),
|
|
305
|
+
email: present.call(contact["email"]),
|
|
306
|
+
phoneNumber: present.call(contact["phoneNumber"])
|
|
307
|
+
}
|
|
308
|
+
end
|
|
309
|
+
|
|
286
310
|
private
|
|
287
311
|
|
|
288
312
|
def resolve_prediction(prediction, session_token)
|
|
@@ -170,6 +170,19 @@ module Opendoor
|
|
|
170
170
|
}
|
|
171
171
|
GRAPHQL
|
|
172
172
|
|
|
173
|
+
# Customer's name, email, and phone for an offer request — for prefilling
|
|
174
|
+
# downstream steps (e.g. assessment-scheduling) from just the offer UUID.
|
|
175
|
+
# Requires the offer to have reached OFFERED; earlier states return NOT_FOUND.
|
|
176
|
+
CUSTOMER_CONTACT_QUERY = <<~GRAPHQL.freeze
|
|
177
|
+
query CustomerContact($opendoorOfferRequestId: String!) {
|
|
178
|
+
customerContact(opendoorOfferRequestId: $opendoorOfferRequestId) {
|
|
179
|
+
fullName
|
|
180
|
+
email
|
|
181
|
+
phoneNumber
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
GRAPHQL
|
|
185
|
+
|
|
173
186
|
# `calendarType` is "ASSESSMENT_VISIT" for the pre-underwriting home
|
|
174
187
|
# assessment (post-IFO Lennar Trade-In path) or "DILIGENCE_VISIT" for
|
|
175
188
|
# the post-contract Inspectify visit.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opendoor-partner-sdk-server-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.1
|
|
4
|
+
version: 1.3.2.beta.110.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Opendoor
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-06-
|
|
11
|
+
date: 2026-06-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|