repull 0.2.49 → 0.2.50
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/connections_api.rb +2 -2
- data/lib/repull/models/account_calendar_access_changed_event.rb +282 -0
- data/lib/repull/models/account_calendar_access_changed_payload.rb +268 -0
- data/lib/repull/models/apply_connection_mappings_request_mappings_inner.rb +1 -1
- data/lib/repull/models/connect_status_accounts_inner.rb +12 -1
- data/lib/repull/models/get_listing_calendar_sync200_response_channels_inner.rb +33 -1
- data/lib/repull/models/list_connection_units200_response.rb +10 -1
- data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -1
- data/lib/repull/models/start_connection_import_request.rb +1 -1
- data/lib/repull/models/vrbo_calendar_access.rb +204 -0
- data/lib/repull/models/webhook_event.rb +2 -0
- data/lib/repull/models/webhook_event_type.rb +2 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +3 -0
- data/openapi/v1.json +150 -4
- metadata +5 -2
|
@@ -26,6 +26,12 @@ module Repull
|
|
|
26
26
|
# `in_sync` — no future night has a problem; `problems` — see `problems`; `off` — calendar sync is off for this channel.
|
|
27
27
|
attr_accessor :status
|
|
28
28
|
|
|
29
|
+
# Vrbo only, when Repull turned calendar sync off: Vrbo says another tool (such as a PMS) manages the account's calendar. Absent when the host turned it off.
|
|
30
|
+
attr_accessor :off_reason
|
|
31
|
+
|
|
32
|
+
# Explains `offReason` and how to turn calendar sync back on.
|
|
33
|
+
attr_accessor :docs_url
|
|
34
|
+
|
|
29
35
|
# When a push last wrote to this listing's calendar.
|
|
30
36
|
attr_accessor :last_sync_at
|
|
31
37
|
|
|
@@ -64,6 +70,8 @@ module Repull
|
|
|
64
70
|
:'platform_id' => :'platformId',
|
|
65
71
|
:'sync_enabled' => :'syncEnabled',
|
|
66
72
|
:'status' => :'status',
|
|
73
|
+
:'off_reason' => :'offReason',
|
|
74
|
+
:'docs_url' => :'docsUrl',
|
|
67
75
|
:'last_sync_at' => :'lastSyncAt',
|
|
68
76
|
:'nights_with_problems' => :'nightsWithProblems',
|
|
69
77
|
:'problems' => :'problems',
|
|
@@ -88,6 +96,8 @@ module Repull
|
|
|
88
96
|
:'platform_id' => :'String',
|
|
89
97
|
:'sync_enabled' => :'Boolean',
|
|
90
98
|
:'status' => :'String',
|
|
99
|
+
:'off_reason' => :'String',
|
|
100
|
+
:'docs_url' => :'String',
|
|
91
101
|
:'last_sync_at' => :'Time',
|
|
92
102
|
:'nights_with_problems' => :'Integer',
|
|
93
103
|
:'problems' => :'Array<GetListingCalendarSync200ResponseChannelsInnerProblemsInner>',
|
|
@@ -143,6 +153,14 @@ module Repull
|
|
|
143
153
|
self.status = nil
|
|
144
154
|
end
|
|
145
155
|
|
|
156
|
+
if attributes.key?(:'off_reason')
|
|
157
|
+
self.off_reason = attributes[:'off_reason']
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'docs_url')
|
|
161
|
+
self.docs_url = attributes[:'docs_url']
|
|
162
|
+
end
|
|
163
|
+
|
|
146
164
|
if attributes.key?(:'last_sync_at')
|
|
147
165
|
self.last_sync_at = attributes[:'last_sync_at']
|
|
148
166
|
else
|
|
@@ -205,6 +223,8 @@ module Repull
|
|
|
205
223
|
return false if @status.nil?
|
|
206
224
|
status_validator = EnumAttributeValidator.new('String', ["in_sync", "problems", "off"])
|
|
207
225
|
return false unless status_validator.valid?(@status)
|
|
226
|
+
off_reason_validator = EnumAttributeValidator.new('String', ["calendar_managed_elsewhere"])
|
|
227
|
+
return false unless off_reason_validator.valid?(@off_reason)
|
|
208
228
|
return false if @nights_with_problems.nil?
|
|
209
229
|
return false if @problems.nil?
|
|
210
230
|
true
|
|
@@ -240,6 +260,16 @@ module Repull
|
|
|
240
260
|
@status = status
|
|
241
261
|
end
|
|
242
262
|
|
|
263
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
264
|
+
# @param [Object] off_reason Object to be assigned
|
|
265
|
+
def off_reason=(off_reason)
|
|
266
|
+
validator = EnumAttributeValidator.new('String', ["calendar_managed_elsewhere"])
|
|
267
|
+
unless validator.valid?(off_reason)
|
|
268
|
+
fail ArgumentError, "invalid value for \"off_reason\", must be one of #{validator.allowable_values}."
|
|
269
|
+
end
|
|
270
|
+
@off_reason = off_reason
|
|
271
|
+
end
|
|
272
|
+
|
|
243
273
|
# Custom attribute writer method with validation
|
|
244
274
|
# @param [Object] nights_with_problems Value to be assigned
|
|
245
275
|
def nights_with_problems=(nights_with_problems)
|
|
@@ -269,6 +299,8 @@ module Repull
|
|
|
269
299
|
platform_id == o.platform_id &&
|
|
270
300
|
sync_enabled == o.sync_enabled &&
|
|
271
301
|
status == o.status &&
|
|
302
|
+
off_reason == o.off_reason &&
|
|
303
|
+
docs_url == o.docs_url &&
|
|
272
304
|
last_sync_at == o.last_sync_at &&
|
|
273
305
|
nights_with_problems == o.nights_with_problems &&
|
|
274
306
|
problems == o.problems &&
|
|
@@ -284,7 +316,7 @@ module Repull
|
|
|
284
316
|
# Calculates hash code according to all attributes.
|
|
285
317
|
# @return [Integer] Hash code
|
|
286
318
|
def hash
|
|
287
|
-
[channel, platform_id, sync_enabled, status, last_sync_at, nights_with_problems, problems, queue].hash
|
|
319
|
+
[channel, platform_id, sync_enabled, status, off_reason, docs_url, last_sync_at, nights_with_problems, problems, queue].hash
|
|
288
320
|
end
|
|
289
321
|
|
|
290
322
|
# Builds the object from hash
|
|
@@ -24,6 +24,8 @@ module Repull
|
|
|
24
24
|
# Vrbo only. Ask the host to add this address on Vrbo as a secondary email, with message and reservation notifications on. It is how new bookings, inquiries and guest messages reach Repull within a minute; without it they arrive at the next scheduled check. Hosted Connect asks for it on its mapping screen, so show it in your own flow when you map with `mapping: \"api\"`.
|
|
25
25
|
attr_accessor :notification_email
|
|
26
26
|
|
|
27
|
+
attr_accessor :calendar
|
|
28
|
+
|
|
27
29
|
attr_accessor :units
|
|
28
30
|
|
|
29
31
|
attr_accessor :listing_options
|
|
@@ -62,6 +64,7 @@ module Repull
|
|
|
62
64
|
:'channel' => :'channel',
|
|
63
65
|
:'status' => :'status',
|
|
64
66
|
:'notification_email' => :'notification_email',
|
|
67
|
+
:'calendar' => :'calendar',
|
|
65
68
|
:'units' => :'units',
|
|
66
69
|
:'listing_options' => :'listing_options',
|
|
67
70
|
:'missing_capabilities' => :'missing_capabilities',
|
|
@@ -86,6 +89,7 @@ module Repull
|
|
|
86
89
|
:'channel' => :'String',
|
|
87
90
|
:'status' => :'String',
|
|
88
91
|
:'notification_email' => :'String',
|
|
92
|
+
:'calendar' => :'VrboCalendarAccess',
|
|
89
93
|
:'units' => :'Array<ListConnectionUnits200ResponseUnitsInner>',
|
|
90
94
|
:'listing_options' => :'Array<ListConnectionUnits200ResponseListingOptionsInner>',
|
|
91
95
|
:'missing_capabilities' => :'Array<String>',
|
|
@@ -132,6 +136,10 @@ module Repull
|
|
|
132
136
|
self.notification_email = attributes[:'notification_email']
|
|
133
137
|
end
|
|
134
138
|
|
|
139
|
+
if attributes.key?(:'calendar')
|
|
140
|
+
self.calendar = attributes[:'calendar']
|
|
141
|
+
end
|
|
142
|
+
|
|
135
143
|
if attributes.key?(:'units')
|
|
136
144
|
if (value = attributes[:'units']).is_a?(Array)
|
|
137
145
|
self.units = value
|
|
@@ -191,6 +199,7 @@ module Repull
|
|
|
191
199
|
channel == o.channel &&
|
|
192
200
|
status == o.status &&
|
|
193
201
|
notification_email == o.notification_email &&
|
|
202
|
+
calendar == o.calendar &&
|
|
194
203
|
units == o.units &&
|
|
195
204
|
listing_options == o.listing_options &&
|
|
196
205
|
missing_capabilities == o.missing_capabilities &&
|
|
@@ -206,7 +215,7 @@ module Repull
|
|
|
206
215
|
# Calculates hash code according to all attributes.
|
|
207
216
|
# @return [Integer] Hash code
|
|
208
217
|
def hash
|
|
209
|
-
[connection_id, channel, status, notification_email, units, listing_options, missing_capabilities, listing_options_total].hash
|
|
218
|
+
[connection_id, channel, status, notification_email, calendar, units, listing_options, missing_capabilities, listing_options_total].hash
|
|
210
219
|
end
|
|
211
220
|
|
|
212
221
|
# Builds the object from hash
|
|
@@ -25,7 +25,7 @@ module Repull
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :suggested_listing_id
|
|
27
27
|
|
|
28
|
-
# Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`; the Vrbo listing ID is `unit_id`.
|
|
28
|
+
# Channel details that identify the unit. Booking.com Extranet: `hotel` (property name), `hotelId` (Booking.com property ID), `roomId` (Booking.com room ID), `city`. Vrbo: `headline`, `address`, `vrboStatus`, `calendarSync` (whether the unit's prices and availability are pushed to Vrbo) and, while Vrbo says another tool manages the account's calendar, `calendarSyncBlocked: \"calendar_managed_elsewhere\"`; the Vrbo listing ID is `unit_id`.
|
|
29
29
|
attr_accessor :meta
|
|
30
30
|
|
|
31
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class StartConnectionImportRequest < ApiModelBase
|
|
18
|
-
# What to import. `listings` = the account's listings
|
|
18
|
+
# What to import. `listings` = the account's listings. New listings come in with their calendar (pricing and availability); on a full-access connection, calendars of listings already in Repull are not re-read. The only scope; the full import runs when an account is connected.
|
|
19
19
|
attr_accessor :scope
|
|
20
20
|
|
|
21
21
|
class EnumAttributeValidator
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
# Whether another tool manages a Vrbo account's calendar. Vrbo reports it per account; Repull asks when the account connects and once a day. While `managedBy` is set, Vrbo refuses price and availability changes from anyone else, so calendar sync is off for every unit of the account and turning it on returns `409 calendar_managed_elsewhere`. Bookings and messages keep working.
|
|
18
|
+
class VrboCalendarAccess < ApiModelBase
|
|
19
|
+
# `integrated_software`: Vrbo says connected software (such as a PMS) manages the calendar. `null`: Repull may manage it.
|
|
20
|
+
attr_accessor :managed_by
|
|
21
|
+
|
|
22
|
+
# When `managedBy` was first seen. `null` when not managed.
|
|
23
|
+
attr_accessor :detected_at
|
|
24
|
+
|
|
25
|
+
# When Vrbo was last asked. `null` until the first check.
|
|
26
|
+
attr_accessor :checked_at
|
|
27
|
+
|
|
28
|
+
attr_accessor :docs_url
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'managed_by' => :'managedBy',
|
|
34
|
+
:'detected_at' => :'detectedAt',
|
|
35
|
+
:'checked_at' => :'checkedAt',
|
|
36
|
+
:'docs_url' => :'docsUrl'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns attribute mapping this model knows about
|
|
41
|
+
def self.acceptable_attribute_map
|
|
42
|
+
attribute_map
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Returns all the JSON keys this model knows about
|
|
46
|
+
def self.acceptable_attributes
|
|
47
|
+
acceptable_attribute_map.values
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Attribute type mapping.
|
|
51
|
+
def self.openapi_types
|
|
52
|
+
{
|
|
53
|
+
:'managed_by' => :'String',
|
|
54
|
+
:'detected_at' => :'Time',
|
|
55
|
+
:'checked_at' => :'Time',
|
|
56
|
+
:'docs_url' => :'String'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
:'managed_by',
|
|
64
|
+
:'detected_at',
|
|
65
|
+
:'checked_at',
|
|
66
|
+
])
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
if (!attributes.is_a?(Hash))
|
|
73
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::VrboCalendarAccess` initialize method"
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
77
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
79
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
80
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::VrboCalendarAccess`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
81
|
+
end
|
|
82
|
+
h[k.to_sym] = v
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'managed_by')
|
|
86
|
+
self.managed_by = attributes[:'managed_by']
|
|
87
|
+
else
|
|
88
|
+
self.managed_by = nil
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.key?(:'detected_at')
|
|
92
|
+
self.detected_at = attributes[:'detected_at']
|
|
93
|
+
else
|
|
94
|
+
self.detected_at = nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'checked_at')
|
|
98
|
+
self.checked_at = attributes[:'checked_at']
|
|
99
|
+
else
|
|
100
|
+
self.checked_at = nil
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'docs_url')
|
|
104
|
+
self.docs_url = attributes[:'docs_url']
|
|
105
|
+
else
|
|
106
|
+
self.docs_url = nil
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
111
|
+
# @return Array for valid properties with the reasons
|
|
112
|
+
def list_invalid_properties
|
|
113
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
114
|
+
invalid_properties = Array.new
|
|
115
|
+
if @docs_url.nil?
|
|
116
|
+
invalid_properties.push('invalid value for "docs_url", docs_url cannot be nil.')
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
invalid_properties
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# Check to see if the all the properties in the model are valid
|
|
123
|
+
# @return true if the model is valid
|
|
124
|
+
def valid?
|
|
125
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
126
|
+
return false if @docs_url.nil?
|
|
127
|
+
true
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] docs_url Value to be assigned
|
|
132
|
+
def docs_url=(docs_url)
|
|
133
|
+
if docs_url.nil?
|
|
134
|
+
fail ArgumentError, 'docs_url cannot be nil'
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
@docs_url = docs_url
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Checks equality by comparing each attribute.
|
|
141
|
+
# @param [Object] Object to be compared
|
|
142
|
+
def ==(o)
|
|
143
|
+
return true if self.equal?(o)
|
|
144
|
+
self.class == o.class &&
|
|
145
|
+
managed_by == o.managed_by &&
|
|
146
|
+
detected_at == o.detected_at &&
|
|
147
|
+
checked_at == o.checked_at &&
|
|
148
|
+
docs_url == o.docs_url
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# @see the `==` method
|
|
152
|
+
# @param [Object] Object to be compared
|
|
153
|
+
def eql?(o)
|
|
154
|
+
self == o
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# Calculates hash code according to all attributes.
|
|
158
|
+
# @return [Integer] Hash code
|
|
159
|
+
def hash
|
|
160
|
+
[managed_by, detected_at, checked_at, docs_url].hash
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Builds the object from hash
|
|
164
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
165
|
+
# @return [Object] Returns the model itself
|
|
166
|
+
def self.build_from_hash(attributes)
|
|
167
|
+
return nil unless attributes.is_a?(Hash)
|
|
168
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
169
|
+
transformed_hash = {}
|
|
170
|
+
openapi_types.each_pair do |key, type|
|
|
171
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
172
|
+
transformed_hash["#{key}"] = nil
|
|
173
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
174
|
+
# check to ensure the input is an array given that the attribute
|
|
175
|
+
# is documented as an array but the input is not
|
|
176
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
177
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
178
|
+
end
|
|
179
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
180
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
new(transformed_hash)
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Returns the object in the form of hash
|
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
|
188
|
+
def to_hash
|
|
189
|
+
hash = {}
|
|
190
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
191
|
+
value = self.send(attr)
|
|
192
|
+
if value.nil?
|
|
193
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
194
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
hash[param] = _to_hash(value)
|
|
198
|
+
end
|
|
199
|
+
hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
end
|
|
@@ -20,6 +20,7 @@ module Repull
|
|
|
20
20
|
# List of class defined in oneOf (OpenAPI v3)
|
|
21
21
|
def openapi_one_of
|
|
22
22
|
[
|
|
23
|
+
:'AccountCalendarAccessChangedEvent',
|
|
23
24
|
:'AccountCreatedEvent',
|
|
24
25
|
:'AccountDisconnectedEvent',
|
|
25
26
|
:'AccountImportCompletedEvent',
|
|
@@ -73,6 +74,7 @@ module Repull
|
|
|
73
74
|
# Discriminator's mapping (OpenAPI v3)
|
|
74
75
|
def openapi_discriminator_mapping
|
|
75
76
|
{
|
|
77
|
+
:'account.calendar_access_changed' => :'AccountCalendarAccessChangedEvent',
|
|
76
78
|
:'account.created' => :'AccountCreatedEvent',
|
|
77
79
|
:'account.disconnected' => :'AccountDisconnectedEvent',
|
|
78
80
|
:'account.import.completed' => :'AccountImportCompletedEvent',
|
|
@@ -46,6 +46,7 @@ module Repull
|
|
|
46
46
|
ACCOUNT_IMPORT_COMPLETED = "account.import.completed".freeze
|
|
47
47
|
ACCOUNT_IMPORT_FAILED = "account.import.failed".freeze
|
|
48
48
|
ACCOUNT_UNITS_ADDED = "account.units.added".freeze
|
|
49
|
+
ACCOUNT_CALENDAR_ACCESS_CHANGED = "account.calendar_access_changed".freeze
|
|
49
50
|
REVIEW_CREATED = "review.created".freeze
|
|
50
51
|
REVIEW_RESPONDED = "review.responded".freeze
|
|
51
52
|
AI_OPERATION_COMPLETED = "ai.operation.completed".freeze
|
|
@@ -59,7 +60,7 @@ module Repull
|
|
|
59
60
|
USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
|
|
60
61
|
|
|
61
62
|
def self.all_vars
|
|
62
|
-
@all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_MESSAGE_READ, RESERVATION_MESSAGE_REACTION, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, BOOKING_UNACKNOWLEDGED, CHANNEL_SYNC_FAILED, CHANNEL_DEGRADED, RESERVATION_THREAD_ASSIGNED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, CONNECT_SESSION_ABANDONED, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, ACCOUNT_UNITS_ADDED, REVIEW_CREATED, REVIEW_RESPONDED, AI_OPERATION_COMPLETED, AI_OPERATION_FAILED, PAYMENT_COMPLETED, PAYMENT_REFUNDED, PAYOUT_COMPLETED, MIGRATION_COMPLETED, MIGRATION_FAILED, REPULL_PING, USAGE_QUOTA_WARNING].freeze
|
|
63
|
+
@all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_MESSAGE_READ, RESERVATION_MESSAGE_REACTION, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, BOOKING_UNACKNOWLEDGED, CHANNEL_SYNC_FAILED, CHANNEL_DEGRADED, RESERVATION_THREAD_ASSIGNED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, CONNECT_SESSION_ABANDONED, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, ACCOUNT_UNITS_ADDED, ACCOUNT_CALENDAR_ACCESS_CHANGED, REVIEW_CREATED, REVIEW_RESPONDED, AI_OPERATION_COMPLETED, AI_OPERATION_FAILED, PAYMENT_COMPLETED, PAYMENT_REFUNDED, PAYOUT_COMPLETED, MIGRATION_COMPLETED, MIGRATION_FAILED, REPULL_PING, USAGE_QUOTA_WARNING].freeze
|
|
63
64
|
end
|
|
64
65
|
|
|
65
66
|
# Builds the enum from string
|
data/lib/repull/version.rb
CHANGED
data/lib/repull.rb
CHANGED
|
@@ -20,6 +20,8 @@ require 'repull/configuration'
|
|
|
20
20
|
# Models
|
|
21
21
|
require 'repull/models/ai_operation'
|
|
22
22
|
require 'repull/models/accept_reservation_request200_response'
|
|
23
|
+
require 'repull/models/account_calendar_access_changed_event'
|
|
24
|
+
require 'repull/models/account_calendar_access_changed_payload'
|
|
23
25
|
require 'repull/models/account_created_event'
|
|
24
26
|
require 'repull/models/account_created_payload'
|
|
25
27
|
require 'repull/models/account_disconnected_event'
|
|
@@ -791,6 +793,7 @@ require 'repull/models/upload_airbnb_listing_photos_request_photos_inner_listing
|
|
|
791
793
|
require 'repull/models/usage_quota_warning_event'
|
|
792
794
|
require 'repull/models/usage_quota_warning_payload'
|
|
793
795
|
require 'repull/models/usage_quota_warning_payload_top_operation'
|
|
796
|
+
require 'repull/models/vrbo_calendar_access'
|
|
794
797
|
require 'repull/models/vrbo_import_status'
|
|
795
798
|
require 'repull/models/vrbo_listing'
|
|
796
799
|
require 'repull/models/vrbo_login200_response'
|