opendoor-partner-sdk-server-ruby 1.2.0 → 1.2.1.beta.100.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 +4 -4
- data/lib/opendoor/partner_sdk/client.rb +15 -3
- data/lib/opendoor/partner_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0423c0791e10cae9e42338ef544e3581acb832b7a8f4e5db0311439be5659f62
|
|
4
|
+
data.tar.gz: d14b568991c56e1b55928af48a32ceb8d65cbbd5ecc462378cd7a532a08f5328
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38c89143230f2c7c0ada4a901528e6c4a21f14e5aea449865ab48f780ea9147a0b70a104b793885d475bad8cf455c2ead2ffa012d492e0a2928d6c1bd86544b4
|
|
7
|
+
data.tar.gz: af663e203b54a9bac9b91809015718ec1d1de65760ab33359a9e9ffa5234912afea2a4a267a0b28f5b122d5ced311177ffe7bf7dac10e03899da2790e851e9f9
|
|
@@ -219,8 +219,11 @@ module Opendoor
|
|
|
219
219
|
def get_assessment_slots(offer_id:, calendar_type: "ASSESSMENT_VISIT")
|
|
220
220
|
raise ValidationError.new("offerId is required", "offerId") if blank?(offer_id)
|
|
221
221
|
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
# The /v2/* REST routes are served by the cloudflare-worker on the
|
|
223
|
+
# *address* domain (demo.simplersell.com staging / www.opendoor.com prod),
|
|
224
|
+
# not the partnership-bff GraphQL host. They live under /partner-api-proxy/*.
|
|
225
|
+
api_base = address_endpoint_origin
|
|
226
|
+
url = "#{api_base}/partner-api-proxy/v2/exterior_assessment_slots"
|
|
224
227
|
log("REST POST -> #{url}")
|
|
225
228
|
|
|
226
229
|
response = fetch_with_timeout(
|
|
@@ -434,7 +437,16 @@ module Opendoor
|
|
|
434
437
|
|
|
435
438
|
# Same-origin base as JS `new URL(apiEndpoint).origin` (includes non-default port).
|
|
436
439
|
def graphql_api_origin
|
|
437
|
-
|
|
440
|
+
uri_origin(@api_endpoint)
|
|
441
|
+
end
|
|
442
|
+
|
|
443
|
+
# Cloudflare-worker origin (where /partner-api-proxy/v2/* routes live).
|
|
444
|
+
def address_endpoint_origin
|
|
445
|
+
uri_origin(@address_endpoint)
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
def uri_origin(endpoint)
|
|
449
|
+
uri = URI.parse(endpoint)
|
|
438
450
|
if uri.respond_to?(:origin) && !uri.origin.nil?
|
|
439
451
|
uri.origin
|
|
440
452
|
else
|
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.2.
|
|
4
|
+
version: 1.2.1.beta.100.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-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|