repull 0.2.47 → 0.2.48
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/repull/api/connect_api.rb +4 -4
- data/lib/repull/models/connect_status.rb +1 -1
- data/lib/repull/models/connect_status_accounts_inner.rb +24 -2
- data/lib/repull/models/connection.rb +2 -2
- data/lib/repull/models/submit_vrbo_credentials_request.rb +48 -19
- data/lib/repull/models/vrbo_login_request.rb +2 -2
- data/lib/repull/version.rb +1 -1
- data/openapi/v1.json +31 -12
- 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: f6d050cbd947abe792313c72aaded83127d55166c2e32ec7d2b1c1cc8f9fa555
|
|
4
|
+
data.tar.gz: f25b05c80b071cb21208ce8222358cd47f3dafac47cadb365fbd816fa828ce0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f5ddd50edd7228160a37eb7a2292f8a7e375a87dbf159657c236e50967e1440aeb0c2907a4692ffa1933ef43ebd5b336831b5ac36e3415d790aa225507581912
|
|
7
|
+
data.tar.gz: 60503f76d1e77e142982201c7b294b72e12b0d43fb5299b2319f276380958c0071bf82165b50c1d8404aaa6b9c400f8c8cd3551f866286b1c8bdf65f0a4454a5
|
|
@@ -2237,7 +2237,7 @@ module Repull
|
|
|
2237
2237
|
end
|
|
2238
2238
|
|
|
2239
2239
|
# Submit Vrbo credentials for a Connect session
|
|
2240
|
-
# Completes a credentials-pattern connection for Vrbo. Activation handshake — Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central. The credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. No API key required when called with a `sessionId` — the session is the capability token.
|
|
2240
|
+
# Completes a credentials-pattern connection for Vrbo. Activation handshake — Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central. The credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. No API key required when called with a `sessionId` — the session is the capability token. **Lost the password?** It is returned once. Send the same request with `\"rotate\": true` to replace it and get the new one back; the old password stops working, so paste the new one into Vrbo. Without `rotate`, a second request for the same advertiser returns `409 credentials_already_provisioned`.
|
|
2241
2241
|
# @param submit_vrbo_credentials_request [SubmitVrboCredentialsRequest]
|
|
2242
2242
|
# @param [Hash] opts the optional parameters
|
|
2243
2243
|
# @return [SubmitBeds24Credentials200Response]
|
|
@@ -2247,7 +2247,7 @@ module Repull
|
|
|
2247
2247
|
end
|
|
2248
2248
|
|
|
2249
2249
|
# Submit Vrbo credentials for a Connect session
|
|
2250
|
-
# Completes a credentials-pattern connection for Vrbo. Activation handshake — Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central. The credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. No API key required when called with a `sessionId` — the session is the capability token.
|
|
2250
|
+
# Completes a credentials-pattern connection for Vrbo. Activation handshake — Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central. The credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. No API key required when called with a `sessionId` — the session is the capability token. **Lost the password?** It is returned once. Send the same request with `\"rotate\": true` to replace it and get the new one back; the old password stops working, so paste the new one into Vrbo. Without `rotate`, a second request for the same advertiser returns `409 credentials_already_provisioned`.
|
|
2251
2251
|
# @param submit_vrbo_credentials_request [SubmitVrboCredentialsRequest]
|
|
2252
2252
|
# @param [Hash] opts the optional parameters
|
|
2253
2253
|
# @return [Array<(SubmitBeds24Credentials200Response, Integer, Hash)>] SubmitBeds24Credentials200Response data, response status code and response headers
|
|
@@ -2447,7 +2447,7 @@ module Repull
|
|
|
2447
2447
|
end
|
|
2448
2448
|
|
|
2449
2449
|
# Sign in with a Vrbo host account
|
|
2450
|
-
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2450
|
+
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2451
2451
|
# @param vrbo_login_request [VrboLoginRequest]
|
|
2452
2452
|
# @param [Hash] opts the optional parameters
|
|
2453
2453
|
# @return [VrboLogin200Response]
|
|
@@ -2457,7 +2457,7 @@ module Repull
|
|
|
2457
2457
|
end
|
|
2458
2458
|
|
|
2459
2459
|
# Sign in with a Vrbo host account
|
|
2460
|
-
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2460
|
+
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2461
2461
|
# @param vrbo_login_request [VrboLoginRequest]
|
|
2462
2462
|
# @param [Hash] opts the optional parameters
|
|
2463
2463
|
# @return [Array<(VrboLogin200Response, Integer, Hash)>] VrboLogin200Response data, response status code and response headers
|
|
@@ -39,7 +39,7 @@ module Repull
|
|
|
39
39
|
# Host metadata, populated for Airbnb when the host row exists. Null for other providers (per-provider enrichment is incremental).
|
|
40
40
|
attr_accessor :host
|
|
41
41
|
|
|
42
|
-
#
|
|
42
|
+
# One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account. Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.
|
|
43
43
|
attr_accessor :accounts
|
|
44
44
|
|
|
45
45
|
# PMS connections only: what the app may change in the PMS. Change it with `PATCH /v1/connect/{provider}/write-policy`.
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class ConnectStatusAccountsInner < ApiModelBase
|
|
18
|
-
# Airbnb: the host id, as a string (it can exceed 2^53). Vrbo: Vrbo's own account id; `null` until it is captured at sign-in.
|
|
18
|
+
# Airbnb: the host id, as a string (it can exceed 2^53). Booking.com: the hotel id. Vrbo: Vrbo's own account id; `null` until it is captured at sign-in. Extranet: the Booking.com account id. PMS: the PMS account id.
|
|
19
19
|
attr_accessor :external_account_id
|
|
20
20
|
|
|
21
21
|
# Our connection record (`X-Account-Id`). Airbnb: the workspace's Airbnb connection. Vrbo: the workspace's Vrbo connection, `null` when it has none.
|
|
@@ -36,6 +36,12 @@ module Repull
|
|
|
36
36
|
# What this account may do. Airbnb: the tier the host's token was granted with (`read_only`, `messaging`, `full_access`). Vrbo: `messaging` (bookings and messages, no calendar push) or `full_access` (also pushes prices and availability). `null` when unknown.
|
|
37
37
|
attr_accessor :access_type
|
|
38
38
|
|
|
39
|
+
# Booking.com: `{ required, reason: \"needs_mapping\", message }` while a room of this hotel is matched to no listing (nothing syncs for that room). Null when nothing is needed.
|
|
40
|
+
attr_accessor :action
|
|
41
|
+
|
|
42
|
+
# Booking.com: a link that opens room mapping for this hotel (no new Connect session needed). Send the host to it when `action` is set.
|
|
43
|
+
attr_accessor :fix_url
|
|
44
|
+
|
|
39
45
|
# Vrbo only. The address the host can add on Vrbo as a secondary email (with message and reservation notifications on) so new bookings, inquiries and messages arrive within a minute instead of at the scheduled check. Ask every host to add it: notifications are how Vrbo updates reach Repull, the scheduled check is the backup. Hosted Connect shows it on its mapping screen; show it in your own app when you create sessions with `mapping: \"api\"`.
|
|
40
46
|
attr_accessor :notification_email
|
|
41
47
|
|
|
@@ -75,6 +81,8 @@ module Repull
|
|
|
75
81
|
:'connected' => :'connected',
|
|
76
82
|
:'email' => :'email',
|
|
77
83
|
:'access_type' => :'accessType',
|
|
84
|
+
:'action' => :'action',
|
|
85
|
+
:'fix_url' => :'fixUrl',
|
|
78
86
|
:'notification_email' => :'notificationEmail',
|
|
79
87
|
:'import' => :'import'
|
|
80
88
|
}
|
|
@@ -101,6 +109,8 @@ module Repull
|
|
|
101
109
|
:'connected' => :'Boolean',
|
|
102
110
|
:'email' => :'String',
|
|
103
111
|
:'access_type' => :'ConnectionAccessType',
|
|
112
|
+
:'action' => :'Object',
|
|
113
|
+
:'fix_url' => :'String',
|
|
104
114
|
:'notification_email' => :'String',
|
|
105
115
|
:'import' => :'VrboImportStatus'
|
|
106
116
|
}
|
|
@@ -116,6 +126,8 @@ module Repull
|
|
|
116
126
|
:'status',
|
|
117
127
|
:'email',
|
|
118
128
|
:'access_type',
|
|
129
|
+
:'action',
|
|
130
|
+
:'fix_url',
|
|
119
131
|
:'notification_email',
|
|
120
132
|
:'import'
|
|
121
133
|
])
|
|
@@ -169,6 +181,14 @@ module Repull
|
|
|
169
181
|
self.access_type = attributes[:'access_type']
|
|
170
182
|
end
|
|
171
183
|
|
|
184
|
+
if attributes.key?(:'action')
|
|
185
|
+
self.action = attributes[:'action']
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'fix_url')
|
|
189
|
+
self.fix_url = attributes[:'fix_url']
|
|
190
|
+
end
|
|
191
|
+
|
|
172
192
|
if attributes.key?(:'notification_email')
|
|
173
193
|
self.notification_email = attributes[:'notification_email']
|
|
174
194
|
end
|
|
@@ -206,6 +226,8 @@ module Repull
|
|
|
206
226
|
connected == o.connected &&
|
|
207
227
|
email == o.email &&
|
|
208
228
|
access_type == o.access_type &&
|
|
229
|
+
action == o.action &&
|
|
230
|
+
fix_url == o.fix_url &&
|
|
209
231
|
notification_email == o.notification_email &&
|
|
210
232
|
import == o.import
|
|
211
233
|
end
|
|
@@ -219,7 +241,7 @@ module Repull
|
|
|
219
241
|
# Calculates hash code according to all attributes.
|
|
220
242
|
# @return [Integer] Hash code
|
|
221
243
|
def hash
|
|
222
|
-
[external_account_id, connection_id, name, picture_url, status, connected, email, access_type, notification_email, import].hash
|
|
244
|
+
[external_account_id, connection_id, name, picture_url, status, connected, email, access_type, action, fix_url, notification_email, import].hash
|
|
223
245
|
end
|
|
224
246
|
|
|
225
247
|
# Builds the object from hash
|
|
@@ -33,10 +33,10 @@ module Repull
|
|
|
33
33
|
# Host metadata for the linked account. Currently populated for Airbnb only; null for other providers.
|
|
34
34
|
attr_accessor :host
|
|
35
35
|
|
|
36
|
-
# Set when the host must do something before the connection works (e.g. grant the invited Booking.com Extranet user full access). `null` when no action is pending.
|
|
36
|
+
# Set when the host must do something before the connection works (e.g. grant the invited Booking.com Extranet user full access), or has units still to map (`reason: needs_mapping` — Booking.com Extranet rooms, Vrbo units; `required` is false when only some Vrbo units are left). `null` when no action is pending.
|
|
37
37
|
attr_accessor :action
|
|
38
38
|
|
|
39
|
-
# Durable link that reopens the hosted Connect flow bound to this account on the fix screen — send the host here to resolve `action`. Present
|
|
39
|
+
# Durable link that reopens the hosted Connect flow bound to this account on the fix screen — send the host here to resolve `action`. For `needs_mapping` it opens the unit mapping directly (no new sign-in). Present whenever `action` is set; `null` otherwise.
|
|
40
40
|
attr_accessor :fix_url
|
|
41
41
|
|
|
42
42
|
# The account's latest import — `status: running` while the first sync (or a later one) is going, then `completed` or `failed`. `null` when no import has been recorded. The same run is announced by the `account.import.*` webhooks; the history is on `GET /v1/connections/{id}/imports`.
|
|
@@ -18,14 +18,22 @@ module Repull
|
|
|
18
18
|
# Connect session id from `POST /v1/connect/vrbo`.
|
|
19
19
|
attr_accessor :session_id
|
|
20
20
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :
|
|
21
|
+
# The host's Vrbo advertiser id. Repull mints the Basic-Auth pair for it, which the host pastes into Vrbo Partner Central.
|
|
22
|
+
attr_accessor :advertiser_external_id
|
|
23
|
+
|
|
24
|
+
# Optional. Vrbo Partner Central sets this itself.
|
|
25
|
+
attr_accessor :endpoint_url
|
|
26
|
+
|
|
27
|
+
# Replace the advertiser's existing password and return the new one. The old password stops working.
|
|
28
|
+
attr_accessor :rotate
|
|
23
29
|
|
|
24
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
31
|
def self.attribute_map
|
|
26
32
|
{
|
|
27
33
|
:'session_id' => :'sessionId',
|
|
28
|
-
:'
|
|
34
|
+
:'advertiser_external_id' => :'advertiserExternalId',
|
|
35
|
+
:'endpoint_url' => :'endpointUrl',
|
|
36
|
+
:'rotate' => :'rotate'
|
|
29
37
|
}
|
|
30
38
|
end
|
|
31
39
|
|
|
@@ -43,7 +51,9 @@ module Repull
|
|
|
43
51
|
def self.openapi_types
|
|
44
52
|
{
|
|
45
53
|
:'session_id' => :'String',
|
|
46
|
-
:'
|
|
54
|
+
:'advertiser_external_id' => :'String',
|
|
55
|
+
:'endpoint_url' => :'String',
|
|
56
|
+
:'rotate' => :'Boolean'
|
|
47
57
|
}
|
|
48
58
|
end
|
|
49
59
|
|
|
@@ -73,12 +83,18 @@ module Repull
|
|
|
73
83
|
self.session_id = attributes[:'session_id']
|
|
74
84
|
end
|
|
75
85
|
|
|
76
|
-
if attributes.key?(:'
|
|
77
|
-
|
|
78
|
-
self.credentials = value
|
|
79
|
-
end
|
|
86
|
+
if attributes.key?(:'advertiser_external_id')
|
|
87
|
+
self.advertiser_external_id = attributes[:'advertiser_external_id']
|
|
80
88
|
else
|
|
81
|
-
self.
|
|
89
|
+
self.advertiser_external_id = nil
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'endpoint_url')
|
|
93
|
+
self.endpoint_url = attributes[:'endpoint_url']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'rotate')
|
|
97
|
+
self.rotate = attributes[:'rotate']
|
|
82
98
|
end
|
|
83
99
|
end
|
|
84
100
|
|
|
@@ -87,8 +103,13 @@ module Repull
|
|
|
87
103
|
def list_invalid_properties
|
|
88
104
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
89
105
|
invalid_properties = Array.new
|
|
90
|
-
if @
|
|
91
|
-
invalid_properties.push('invalid value for "
|
|
106
|
+
if @advertiser_external_id.nil?
|
|
107
|
+
invalid_properties.push('invalid value for "advertiser_external_id", advertiser_external_id cannot be nil.')
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
pattern = Regexp.new(/^[A-Za-z0-9_-]{1,255}$/)
|
|
111
|
+
if @advertiser_external_id !~ pattern
|
|
112
|
+
invalid_properties.push("invalid value for \"advertiser_external_id\", must conform to the pattern #{pattern}.")
|
|
92
113
|
end
|
|
93
114
|
|
|
94
115
|
invalid_properties
|
|
@@ -98,18 +119,24 @@ module Repull
|
|
|
98
119
|
# @return true if the model is valid
|
|
99
120
|
def valid?
|
|
100
121
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
101
|
-
return false if @
|
|
122
|
+
return false if @advertiser_external_id.nil?
|
|
123
|
+
return false if @advertiser_external_id !~ Regexp.new(/^[A-Za-z0-9_-]{1,255}$/)
|
|
102
124
|
true
|
|
103
125
|
end
|
|
104
126
|
|
|
105
127
|
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object]
|
|
107
|
-
def
|
|
108
|
-
if
|
|
109
|
-
fail ArgumentError, '
|
|
128
|
+
# @param [Object] advertiser_external_id Value to be assigned
|
|
129
|
+
def advertiser_external_id=(advertiser_external_id)
|
|
130
|
+
if advertiser_external_id.nil?
|
|
131
|
+
fail ArgumentError, 'advertiser_external_id cannot be nil'
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
pattern = Regexp.new(/^[A-Za-z0-9_-]{1,255}$/)
|
|
135
|
+
if advertiser_external_id !~ pattern
|
|
136
|
+
fail ArgumentError, "invalid value for \"advertiser_external_id\", must conform to the pattern #{pattern}."
|
|
110
137
|
end
|
|
111
138
|
|
|
112
|
-
@
|
|
139
|
+
@advertiser_external_id = advertiser_external_id
|
|
113
140
|
end
|
|
114
141
|
|
|
115
142
|
# Checks equality by comparing each attribute.
|
|
@@ -118,7 +145,9 @@ module Repull
|
|
|
118
145
|
return true if self.equal?(o)
|
|
119
146
|
self.class == o.class &&
|
|
120
147
|
session_id == o.session_id &&
|
|
121
|
-
|
|
148
|
+
advertiser_external_id == o.advertiser_external_id &&
|
|
149
|
+
endpoint_url == o.endpoint_url &&
|
|
150
|
+
rotate == o.rotate
|
|
122
151
|
end
|
|
123
152
|
|
|
124
153
|
# @see the `==` method
|
|
@@ -130,7 +159,7 @@ module Repull
|
|
|
130
159
|
# Calculates hash code according to all attributes.
|
|
131
160
|
# @return [Integer] Hash code
|
|
132
161
|
def hash
|
|
133
|
-
[session_id,
|
|
162
|
+
[session_id, advertiser_external_id, endpoint_url, rotate].hash
|
|
134
163
|
end
|
|
135
164
|
|
|
136
165
|
# Builds the object from hash
|
|
@@ -164,7 +164,7 @@ module Repull
|
|
|
164
164
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
165
|
return false if @session_id.nil?
|
|
166
166
|
return false if @action.nil?
|
|
167
|
-
action_validator = EnumAttributeValidator.new('String', ["login", "otp"])
|
|
167
|
+
action_validator = EnumAttributeValidator.new('String', ["login", "otp", "resend"])
|
|
168
168
|
return false unless action_validator.valid?(@action)
|
|
169
169
|
access_type_validator = EnumAttributeValidator.new('String', ["full_access", "messaging"])
|
|
170
170
|
return false unless access_type_validator.valid?(@access_type)
|
|
@@ -184,7 +184,7 @@ module Repull
|
|
|
184
184
|
# Custom attribute writer method checking allowed values (enum).
|
|
185
185
|
# @param [Object] action Object to be assigned
|
|
186
186
|
def action=(action)
|
|
187
|
-
validator = EnumAttributeValidator.new('String', ["login", "otp"])
|
|
187
|
+
validator = EnumAttributeValidator.new('String', ["login", "otp", "resend"])
|
|
188
188
|
unless validator.valid?(action)
|
|
189
189
|
fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}."
|
|
190
190
|
end
|
data/lib/repull/version.rb
CHANGED
data/openapi/v1.json
CHANGED
|
@@ -1831,13 +1831,13 @@
|
|
|
1831
1831
|
"$ref": "#/components/schemas/ConnectionAction"
|
|
1832
1832
|
}
|
|
1833
1833
|
],
|
|
1834
|
-
"description": "Set when the host must do something before the connection works (e.g. grant the invited Booking.com Extranet user full access). `null` when no action is pending."
|
|
1834
|
+
"description": "Set when the host must do something before the connection works (e.g. grant the invited Booking.com Extranet user full access), or has units still to map (`reason: needs_mapping` \u2014 Booking.com Extranet rooms, Vrbo units; `required` is false when only some Vrbo units are left). `null` when no action is pending."
|
|
1835
1835
|
},
|
|
1836
1836
|
"fixUrl": {
|
|
1837
1837
|
"type": "string",
|
|
1838
1838
|
"format": "uri",
|
|
1839
1839
|
"nullable": true,
|
|
1840
|
-
"description": "Durable link that reopens the hosted Connect flow bound to this account on the fix screen \u2014 send the host here to resolve `action`. Present
|
|
1840
|
+
"description": "Durable link that reopens the hosted Connect flow bound to this account on the fix screen \u2014 send the host here to resolve `action`. For `needs_mapping` it opens the unit mapping directly (no new sign-in). Present whenever `action` is set; `null` otherwise."
|
|
1841
1841
|
},
|
|
1842
1842
|
"import": {
|
|
1843
1843
|
"allOf": [
|
|
@@ -2517,14 +2517,14 @@
|
|
|
2517
2517
|
},
|
|
2518
2518
|
"accounts": {
|
|
2519
2519
|
"type": "array",
|
|
2520
|
-
"description": "
|
|
2520
|
+
"description": "One entry per connected account, for every provider: Airbnb, every host account connected (including ones since disconnected), each with its own `accessType`; Booking.com, every hotel (`externalAccountId` is the hotel id); Vrbo, every sign-in; Booking.com Extranet, every hotel login; a PMS, its one account. Pass `externalAccountId` as `accountId` to `DELETE /v1/connect/{provider}` to disconnect one. The top-level fields describe one record and stay for existing integrations; show `accounts[]` to list what is connected. Vrbo sign-ins also carry `accessType` and `import` (a `VrboImportStatus`), with a top-level `dataFreshness` on `GET /v1/connect/vrbo-login`.",
|
|
2521
2521
|
"items": {
|
|
2522
2522
|
"type": "object",
|
|
2523
2523
|
"properties": {
|
|
2524
2524
|
"externalAccountId": {
|
|
2525
2525
|
"type": "string",
|
|
2526
2526
|
"nullable": true,
|
|
2527
|
-
"description": "Airbnb: the host id, as a string (it can exceed 2^53). Vrbo: Vrbo's own account id; `null` until it is captured at sign-in.",
|
|
2527
|
+
"description": "Airbnb: the host id, as a string (it can exceed 2^53). Booking.com: the hotel id. Vrbo: Vrbo's own account id; `null` until it is captured at sign-in. Extranet: the Booking.com account id. PMS: the PMS account id.",
|
|
2528
2528
|
"example": "79730216"
|
|
2529
2529
|
},
|
|
2530
2530
|
"connectionId": {
|
|
@@ -2566,6 +2566,16 @@
|
|
|
2566
2566
|
],
|
|
2567
2567
|
"description": "What this account may do. Airbnb: the tier the host's token was granted with (`read_only`, `messaging`, `full_access`). Vrbo: `messaging` (bookings and messages, no calendar push) or `full_access` (also pushes prices and availability). `null` when unknown."
|
|
2568
2568
|
},
|
|
2569
|
+
"action": {
|
|
2570
|
+
"type": "object",
|
|
2571
|
+
"nullable": true,
|
|
2572
|
+
"description": "Booking.com: `{ required, reason: \"needs_mapping\", message }` while a room of this hotel is matched to no listing (nothing syncs for that room). Null when nothing is needed."
|
|
2573
|
+
},
|
|
2574
|
+
"fixUrl": {
|
|
2575
|
+
"type": "string",
|
|
2576
|
+
"nullable": true,
|
|
2577
|
+
"description": "Booking.com: a link that opens room mapping for this hotel (no new Connect session needed). Send the host to it when `action` is set."
|
|
2578
|
+
},
|
|
2569
2579
|
"notificationEmail": {
|
|
2570
2580
|
"type": "string",
|
|
2571
2581
|
"nullable": true,
|
|
@@ -21878,7 +21888,7 @@
|
|
|
21878
21888
|
"post": {
|
|
21879
21889
|
"operationId": "submitVrboCredentials",
|
|
21880
21890
|
"summary": "Submit Vrbo credentials for a Connect session",
|
|
21881
|
-
"description": "Completes a credentials-pattern connection for Vrbo. Activation handshake \u2014 Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central.\n\nThe credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state.\n\nNo API key required when called with a `sessionId` \u2014 the session is the capability token.",
|
|
21891
|
+
"description": "Completes a credentials-pattern connection for Vrbo. Activation handshake \u2014 Repull mints the Basic-Auth pair the host pastes into Vrbo Partner Central.\n\nThe credentials are validated against Vrbo before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state.\n\nNo API key required when called with a `sessionId` \u2014 the session is the capability token.\n\n**Lost the password?** It is returned once. Send the same request with `\"rotate\": true` to replace it and get the new one back; the old password stops working, so paste the new one into Vrbo. Without `rotate`, a second request for the same advertiser returns `409 credentials_already_provisioned`.",
|
|
21882
21892
|
"tags": [
|
|
21883
21893
|
"Connect"
|
|
21884
21894
|
],
|
|
@@ -21893,14 +21903,22 @@
|
|
|
21893
21903
|
"type": "string",
|
|
21894
21904
|
"description": "Connect session id from `POST /v1/connect/vrbo`."
|
|
21895
21905
|
},
|
|
21896
|
-
"
|
|
21897
|
-
"type": "
|
|
21898
|
-
"
|
|
21899
|
-
"description": "
|
|
21906
|
+
"advertiserExternalId": {
|
|
21907
|
+
"type": "string",
|
|
21908
|
+
"pattern": "^[A-Za-z0-9_-]{1,255}$",
|
|
21909
|
+
"description": "The host's Vrbo advertiser id. Repull mints the Basic-Auth pair for it, which the host pastes into Vrbo Partner Central."
|
|
21910
|
+
},
|
|
21911
|
+
"endpointUrl": {
|
|
21912
|
+
"type": "string",
|
|
21913
|
+
"description": "Optional. Vrbo Partner Central sets this itself."
|
|
21914
|
+
},
|
|
21915
|
+
"rotate": {
|
|
21916
|
+
"type": "boolean",
|
|
21917
|
+
"description": "Replace the advertiser's existing password and return the new one. The old password stops working."
|
|
21900
21918
|
}
|
|
21901
21919
|
},
|
|
21902
21920
|
"required": [
|
|
21903
|
-
"
|
|
21921
|
+
"advertiserExternalId"
|
|
21904
21922
|
]
|
|
21905
21923
|
}
|
|
21906
21924
|
}
|
|
@@ -39175,7 +39193,7 @@
|
|
|
39175
39193
|
"post": {
|
|
39176
39194
|
"operationId": "vrboLogin",
|
|
39177
39195
|
"summary": "Sign in with a Vrbo host account",
|
|
39178
|
-
"description": "`action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, \u2026). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code
|
|
39196
|
+
"description": "`action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, \u2026). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code.\n\nSigning in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed.\n\nCalled by the hosted Connect page. No API key \u2014 the session ID is the capability token.",
|
|
39179
39197
|
"tags": [
|
|
39180
39198
|
"Connect"
|
|
39181
39199
|
],
|
|
@@ -39198,7 +39216,8 @@
|
|
|
39198
39216
|
"type": "string",
|
|
39199
39217
|
"enum": [
|
|
39200
39218
|
"login",
|
|
39201
|
-
"otp"
|
|
39219
|
+
"otp",
|
|
39220
|
+
"resend"
|
|
39202
39221
|
]
|
|
39203
39222
|
},
|
|
39204
39223
|
"email": {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: repull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.48
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nikolov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|