repull 0.2.42 → 0.2.43
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/airbnb_api.rb +2 -2
- data/lib/repull/api/listings_api.rb +146 -6
- data/lib/repull/api/reservations_api.rb +93 -0
- data/lib/repull/models/account_disconnected_payload.rb +3 -2
- data/lib/repull/models/get_listing_markups200_response.rb +15 -4
- data/lib/repull/models/get_listing_markups200_response_vrbo_inner.rb +181 -0
- data/lib/repull/models/get_reservation_summary200_response.rb +353 -0
- data/lib/repull/models/get_reservation_summary200_response_totals_inner.rb +478 -0
- data/lib/repull/models/get_vrbo_publish_job200_response.rb +199 -0
- data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +300 -0
- data/lib/repull/models/get_vrbo_publish_job200_response_job_rejected_photos_inner.rb +157 -0
- data/lib/repull/models/map_connect_booking_rooms_response.rb +44 -5
- data/lib/repull/models/message.rb +29 -5
- data/lib/repull/models/message_actor.rb +159 -0
- data/lib/repull/models/message_reaction.rb +178 -0
- data/lib/repull/models/publish_listing_to_vrbo_request.rb +158 -0
- data/lib/repull/models/reservation.rb +12 -1
- data/lib/repull/models/reservation_message_reaction_event.rb +281 -0
- data/lib/repull/models/reservation_message_reaction_payload.rb +225 -0
- data/lib/repull/models/reservation_message_reaction_payload_reaction.rb +175 -0
- data/lib/repull/models/reservation_message_read_event.rb +281 -0
- data/lib/repull/models/reservation_message_read_payload.rb +227 -0
- data/lib/repull/models/reservation_message_updated_payload.rb +1 -1
- data/lib/repull/models/set_listing_markup_request.rb +16 -6
- data/lib/repull/models/update_airbnb_message_request.rb +1 -1
- data/lib/repull/models/webhook_event.rb +4 -0
- data/lib/repull/models/webhook_event_type.rb +3 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +14 -0
- data/openapi/v1.json +1055 -14
- data/scripts/regen.sh +1 -1
- metadata +16 -2
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect to 50+ PMS platforms and 4 OTA channels through one REST API. Built-in AI operations for guest communication, pricing, and listing optimization. ## 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`, and `resetsAt` fields. ## 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`, or upgrade at `https://repull.dev/dashboard/billing` to activate them all. 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\").
|
|
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
|
+
# Payload for `reservation.message.read`: the guest read the conversation up to and including `messageId`, a message from your side. Every earlier message in it was read by then too. Airbnb reports read receipts; other channels do not fire this event.
|
|
18
|
+
class ReservationMessageReadPayload < ApiModelBase
|
|
19
|
+
attr_accessor :reservation_id
|
|
20
|
+
|
|
21
|
+
# The conversation id (`GET /v1/conversations/{id}`).
|
|
22
|
+
attr_accessor :thread_id
|
|
23
|
+
|
|
24
|
+
attr_accessor :external_thread_id
|
|
25
|
+
|
|
26
|
+
attr_accessor :listing_id
|
|
27
|
+
|
|
28
|
+
attr_accessor :channel
|
|
29
|
+
|
|
30
|
+
# The newest message the guest has read. Its `readAt` is now set.
|
|
31
|
+
attr_accessor :message_id
|
|
32
|
+
|
|
33
|
+
attr_accessor :external_message_id
|
|
34
|
+
|
|
35
|
+
# When the guest read it, as the channel reports it.
|
|
36
|
+
attr_accessor :read_at
|
|
37
|
+
|
|
38
|
+
attr_accessor :reader
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'reservation_id' => :'reservationId',
|
|
44
|
+
:'thread_id' => :'threadId',
|
|
45
|
+
:'external_thread_id' => :'externalThreadId',
|
|
46
|
+
:'listing_id' => :'listingId',
|
|
47
|
+
:'channel' => :'channel',
|
|
48
|
+
:'message_id' => :'messageId',
|
|
49
|
+
:'external_message_id' => :'externalMessageId',
|
|
50
|
+
:'read_at' => :'readAt',
|
|
51
|
+
:'reader' => :'reader'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns attribute mapping this model knows about
|
|
56
|
+
def self.acceptable_attribute_map
|
|
57
|
+
attribute_map
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Returns all the JSON keys this model knows about
|
|
61
|
+
def self.acceptable_attributes
|
|
62
|
+
acceptable_attribute_map.values
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Attribute type mapping.
|
|
66
|
+
def self.openapi_types
|
|
67
|
+
{
|
|
68
|
+
:'reservation_id' => :'Integer',
|
|
69
|
+
:'thread_id' => :'String',
|
|
70
|
+
:'external_thread_id' => :'String',
|
|
71
|
+
:'listing_id' => :'Integer',
|
|
72
|
+
:'channel' => :'String',
|
|
73
|
+
:'message_id' => :'String',
|
|
74
|
+
:'external_message_id' => :'String',
|
|
75
|
+
:'read_at' => :'Time',
|
|
76
|
+
:'reader' => :'MessageActor'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List of attributes with nullable: true
|
|
81
|
+
def self.openapi_nullable
|
|
82
|
+
Set.new([
|
|
83
|
+
:'reservation_id',
|
|
84
|
+
:'external_thread_id',
|
|
85
|
+
:'listing_id',
|
|
86
|
+
:'external_message_id',
|
|
87
|
+
])
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Initializes the object
|
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
92
|
+
def initialize(attributes = {})
|
|
93
|
+
if (!attributes.is_a?(Hash))
|
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::ReservationMessageReadPayload` initialize method"
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
98
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
99
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
100
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
101
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::ReservationMessageReadPayload`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
102
|
+
end
|
|
103
|
+
h[k.to_sym] = v
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'reservation_id')
|
|
107
|
+
self.reservation_id = attributes[:'reservation_id']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'thread_id')
|
|
111
|
+
self.thread_id = attributes[:'thread_id']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'external_thread_id')
|
|
115
|
+
self.external_thread_id = attributes[:'external_thread_id']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'listing_id')
|
|
119
|
+
self.listing_id = attributes[:'listing_id']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'channel')
|
|
123
|
+
self.channel = attributes[:'channel']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'message_id')
|
|
127
|
+
self.message_id = attributes[:'message_id']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'external_message_id')
|
|
131
|
+
self.external_message_id = attributes[:'external_message_id']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'read_at')
|
|
135
|
+
self.read_at = attributes[:'read_at']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'reader')
|
|
139
|
+
self.reader = attributes[:'reader']
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
144
|
+
# @return Array for valid properties with the reasons
|
|
145
|
+
def list_invalid_properties
|
|
146
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
147
|
+
invalid_properties = Array.new
|
|
148
|
+
invalid_properties
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Check to see if the all the properties in the model are valid
|
|
152
|
+
# @return true if the model is valid
|
|
153
|
+
def valid?
|
|
154
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
155
|
+
true
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Checks equality by comparing each attribute.
|
|
159
|
+
# @param [Object] Object to be compared
|
|
160
|
+
def ==(o)
|
|
161
|
+
return true if self.equal?(o)
|
|
162
|
+
self.class == o.class &&
|
|
163
|
+
reservation_id == o.reservation_id &&
|
|
164
|
+
thread_id == o.thread_id &&
|
|
165
|
+
external_thread_id == o.external_thread_id &&
|
|
166
|
+
listing_id == o.listing_id &&
|
|
167
|
+
channel == o.channel &&
|
|
168
|
+
message_id == o.message_id &&
|
|
169
|
+
external_message_id == o.external_message_id &&
|
|
170
|
+
read_at == o.read_at &&
|
|
171
|
+
reader == o.reader
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# @see the `==` method
|
|
175
|
+
# @param [Object] Object to be compared
|
|
176
|
+
def eql?(o)
|
|
177
|
+
self == o
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
# Calculates hash code according to all attributes.
|
|
181
|
+
# @return [Integer] Hash code
|
|
182
|
+
def hash
|
|
183
|
+
[reservation_id, thread_id, external_thread_id, listing_id, channel, message_id, external_message_id, read_at, reader].hash
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
# Builds the object from hash
|
|
187
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
188
|
+
# @return [Object] Returns the model itself
|
|
189
|
+
def self.build_from_hash(attributes)
|
|
190
|
+
return nil unless attributes.is_a?(Hash)
|
|
191
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
192
|
+
transformed_hash = {}
|
|
193
|
+
openapi_types.each_pair do |key, type|
|
|
194
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
195
|
+
transformed_hash["#{key}"] = nil
|
|
196
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
197
|
+
# check to ensure the input is an array given that the attribute
|
|
198
|
+
# is documented as an array but the input is not
|
|
199
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
200
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
201
|
+
end
|
|
202
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
203
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
new(transformed_hash)
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Returns the object in the form of hash
|
|
210
|
+
# @return [Hash] Returns the object in the form of hash
|
|
211
|
+
def to_hash
|
|
212
|
+
hash = {}
|
|
213
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
214
|
+
value = self.send(attr)
|
|
215
|
+
if value.nil?
|
|
216
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
217
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
hash[param] = _to_hash(value)
|
|
221
|
+
end
|
|
222
|
+
hash
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
end
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
# Payload for `reservation.message.updated`: a message was edited on the channel. `body` is the new text; `previousBody` what it replaced. Read receipts and reactions do not fire it.
|
|
17
|
+
# Payload for `reservation.message.updated`: a message was edited on the channel. `body` is the new text; `previousBody` what it replaced. Read receipts and reactions do not fire it: they have their own events, `reservation.message.read` and `reservation.message.reaction`.
|
|
18
18
|
class ReservationMessageUpdatedPayload < ApiModelBase
|
|
19
19
|
# Booking.com only: the hotel (property) id of the conversation's listing. Absent on other channels. A Booking.com Extranet login can cover several hotels, so use this to route the message.
|
|
20
20
|
attr_accessor :hotel_id
|
|
@@ -23,6 +23,9 @@ module Repull
|
|
|
23
23
|
# Booking.com property — required when the listing is on more than one.
|
|
24
24
|
attr_accessor :hotel_id
|
|
25
25
|
|
|
26
|
+
# Vrbo account (`vrbo:13`) — required when the listing is linked on more than one.
|
|
27
|
+
attr_accessor :account_id
|
|
28
|
+
|
|
26
29
|
class EnumAttributeValidator
|
|
27
30
|
attr_reader :datatype
|
|
28
31
|
attr_reader :allowable_values
|
|
@@ -50,7 +53,8 @@ module Repull
|
|
|
50
53
|
{
|
|
51
54
|
:'channel' => :'channel',
|
|
52
55
|
:'markup_percent' => :'markupPercent',
|
|
53
|
-
:'hotel_id' => :'hotelId'
|
|
56
|
+
:'hotel_id' => :'hotelId',
|
|
57
|
+
:'account_id' => :'accountId'
|
|
54
58
|
}
|
|
55
59
|
end
|
|
56
60
|
|
|
@@ -69,7 +73,8 @@ module Repull
|
|
|
69
73
|
{
|
|
70
74
|
:'channel' => :'String',
|
|
71
75
|
:'markup_percent' => :'Float',
|
|
72
|
-
:'hotel_id' => :'String'
|
|
76
|
+
:'hotel_id' => :'String',
|
|
77
|
+
:'account_id' => :'String'
|
|
73
78
|
}
|
|
74
79
|
end
|
|
75
80
|
|
|
@@ -111,6 +116,10 @@ module Repull
|
|
|
111
116
|
if attributes.key?(:'hotel_id')
|
|
112
117
|
self.hotel_id = attributes[:'hotel_id']
|
|
113
118
|
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'account_id')
|
|
121
|
+
self.account_id = attributes[:'account_id']
|
|
122
|
+
end
|
|
114
123
|
end
|
|
115
124
|
|
|
116
125
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -138,7 +147,7 @@ module Repull
|
|
|
138
147
|
def valid?
|
|
139
148
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
140
149
|
return false if @channel.nil?
|
|
141
|
-
channel_validator = EnumAttributeValidator.new('String', ["airbnb", "booking"])
|
|
150
|
+
channel_validator = EnumAttributeValidator.new('String', ["airbnb", "booking", "vrbo"])
|
|
142
151
|
return false unless channel_validator.valid?(@channel)
|
|
143
152
|
return false if @markup_percent >= 100
|
|
144
153
|
return false if @markup_percent < 0
|
|
@@ -148,7 +157,7 @@ module Repull
|
|
|
148
157
|
# Custom attribute writer method checking allowed values (enum).
|
|
149
158
|
# @param [Object] channel Object to be assigned
|
|
150
159
|
def channel=(channel)
|
|
151
|
-
validator = EnumAttributeValidator.new('String', ["airbnb", "booking"])
|
|
160
|
+
validator = EnumAttributeValidator.new('String', ["airbnb", "booking", "vrbo"])
|
|
152
161
|
unless validator.valid?(channel)
|
|
153
162
|
fail ArgumentError, "invalid value for \"channel\", must be one of #{validator.allowable_values}."
|
|
154
163
|
end
|
|
@@ -176,7 +185,8 @@ module Repull
|
|
|
176
185
|
self.class == o.class &&
|
|
177
186
|
channel == o.channel &&
|
|
178
187
|
markup_percent == o.markup_percent &&
|
|
179
|
-
hotel_id == o.hotel_id
|
|
188
|
+
hotel_id == o.hotel_id &&
|
|
189
|
+
account_id == o.account_id
|
|
180
190
|
end
|
|
181
191
|
|
|
182
192
|
# @see the `==` method
|
|
@@ -188,7 +198,7 @@ module Repull
|
|
|
188
198
|
# Calculates hash code according to all attributes.
|
|
189
199
|
# @return [Integer] Hash code
|
|
190
200
|
def hash
|
|
191
|
-
[channel, markup_percent, hotel_id].hash
|
|
201
|
+
[channel, markup_percent, hotel_id, account_id].hash
|
|
192
202
|
end
|
|
193
203
|
|
|
194
204
|
# Builds the object from hash
|
|
@@ -21,7 +21,7 @@ module Repull
|
|
|
21
21
|
# New message text. Required when `action` is `edit`.
|
|
22
22
|
attr_accessor :message
|
|
23
23
|
|
|
24
|
-
# Reaction to add. Required when `action` is `react`.
|
|
24
|
+
# Reaction to add, e.g. `👍`. Required when `action` is `react`. At most 32 characters; Airbnb decides which reactions it accepts.
|
|
25
25
|
attr_accessor :reaction
|
|
26
26
|
|
|
27
27
|
class EnumAttributeValidator
|
|
@@ -48,6 +48,8 @@ module Repull
|
|
|
48
48
|
:'ReservationAlterationRespondedEvent',
|
|
49
49
|
:'ReservationCancelledEvent',
|
|
50
50
|
:'ReservationCreatedEvent',
|
|
51
|
+
:'ReservationMessageReactionEvent',
|
|
52
|
+
:'ReservationMessageReadEvent',
|
|
51
53
|
:'ReservationMessageReceivedEvent',
|
|
52
54
|
:'ReservationMessageSentEvent',
|
|
53
55
|
:'ReservationMessageUpdatedEvent',
|
|
@@ -97,6 +99,8 @@ module Repull
|
|
|
97
99
|
:'reservation.alteration.responded' => :'ReservationAlterationRespondedEvent',
|
|
98
100
|
:'reservation.cancelled' => :'ReservationCancelledEvent',
|
|
99
101
|
:'reservation.created' => :'ReservationCreatedEvent',
|
|
102
|
+
:'reservation.message.reaction' => :'ReservationMessageReactionEvent',
|
|
103
|
+
:'reservation.message.read' => :'ReservationMessageReadEvent',
|
|
100
104
|
:'reservation.message.received' => :'ReservationMessageReceivedEvent',
|
|
101
105
|
:'reservation.message.sent' => :'ReservationMessageSentEvent',
|
|
102
106
|
:'reservation.message.updated' => :'ReservationMessageUpdatedEvent',
|
|
@@ -21,6 +21,8 @@ module Repull
|
|
|
21
21
|
RESERVATION_MESSAGE_RECEIVED = "reservation.message.received".freeze
|
|
22
22
|
RESERVATION_MESSAGE_SENT = "reservation.message.sent".freeze
|
|
23
23
|
RESERVATION_MESSAGE_UPDATED = "reservation.message.updated".freeze
|
|
24
|
+
RESERVATION_MESSAGE_READ = "reservation.message.read".freeze
|
|
25
|
+
RESERVATION_MESSAGE_REACTION = "reservation.message.reaction".freeze
|
|
24
26
|
RESERVATION_ALTERATION_CREATED = "reservation.alteration.created".freeze
|
|
25
27
|
RESERVATION_ALTERATION_RESPONDED = "reservation.alteration.responded".freeze
|
|
26
28
|
RESERVATION_REQUEST_CREATED = "reservation.request.created".freeze
|
|
@@ -55,7 +57,7 @@ module Repull
|
|
|
55
57
|
USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
|
|
56
58
|
|
|
57
59
|
def self.all_vars
|
|
58
|
-
@all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, 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, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, 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
|
|
60
|
+
@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, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, 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
|
|
59
61
|
end
|
|
60
62
|
|
|
61
63
|
# Builds the enum from string
|
data/lib/repull/version.rb
CHANGED
data/lib/repull.rb
CHANGED
|
@@ -272,9 +272,12 @@ require 'repull/models/get_listing_calendar_sync200_response_channels_inner_queu
|
|
|
272
272
|
require 'repull/models/get_listing_markups200_response'
|
|
273
273
|
require 'repull/models/get_listing_markups200_response_airbnb_inner'
|
|
274
274
|
require 'repull/models/get_listing_markups200_response_booking_inner'
|
|
275
|
+
require 'repull/models/get_listing_markups200_response_vrbo_inner'
|
|
275
276
|
require 'repull/models/get_migration200_response'
|
|
276
277
|
require 'repull/models/get_migration_channel_map200_response'
|
|
277
278
|
require 'repull/models/get_migration_report200_response'
|
|
279
|
+
require 'repull/models/get_reservation_summary200_response'
|
|
280
|
+
require 'repull/models/get_reservation_summary200_response_totals_inner'
|
|
278
281
|
require 'repull/models/get_usage_logs200_response'
|
|
279
282
|
require 'repull/models/get_usage_logs200_response_data_inner'
|
|
280
283
|
require 'repull/models/get_usage_logs200_response_pagination'
|
|
@@ -291,6 +294,9 @@ require 'repull/models/get_usage_tier200_response'
|
|
|
291
294
|
require 'repull/models/get_usage_tier200_response_limits'
|
|
292
295
|
require 'repull/models/get_usage_tier200_response_remaining'
|
|
293
296
|
require 'repull/models/get_usage_tier200_response_used'
|
|
297
|
+
require 'repull/models/get_vrbo_publish_job200_response'
|
|
298
|
+
require 'repull/models/get_vrbo_publish_job200_response_job'
|
|
299
|
+
require 'repull/models/get_vrbo_publish_job200_response_job_rejected_photos_inner'
|
|
294
300
|
require 'repull/models/guest'
|
|
295
301
|
require 'repull/models/guest_contact'
|
|
296
302
|
require 'repull/models/guest_create_request'
|
|
@@ -477,7 +483,9 @@ require 'repull/models/markets_overview_response_browse'
|
|
|
477
483
|
require 'repull/models/markets_overview_response_subscriptions'
|
|
478
484
|
require 'repull/models/markets_overview_response_totals'
|
|
479
485
|
require 'repull/models/message'
|
|
486
|
+
require 'repull/models/message_actor'
|
|
480
487
|
require 'repull/models/message_list_response'
|
|
488
|
+
require 'repull/models/message_reaction'
|
|
481
489
|
require 'repull/models/migration'
|
|
482
490
|
require 'repull/models/migration_channel_map'
|
|
483
491
|
require 'repull/models/migration_channel_map_listings_inner'
|
|
@@ -560,6 +568,7 @@ require 'repull/models/property_availability_coverage'
|
|
|
560
568
|
require 'repull/models/property_availability_day'
|
|
561
569
|
require 'repull/models/property_availability_unit'
|
|
562
570
|
require 'repull/models/property_list_response'
|
|
571
|
+
require 'repull/models/publish_listing_to_vrbo_request'
|
|
563
572
|
require 'repull/models/publish_section_error'
|
|
564
573
|
require 'repull/models/quote'
|
|
565
574
|
require 'repull/models/quote_pricing'
|
|
@@ -600,6 +609,11 @@ require 'repull/models/reservation_guest_financials'
|
|
|
600
609
|
require 'repull/models/reservation_guest_input'
|
|
601
610
|
require 'repull/models/reservation_host_financials'
|
|
602
611
|
require 'repull/models/reservation_list_response'
|
|
612
|
+
require 'repull/models/reservation_message_reaction_event'
|
|
613
|
+
require 'repull/models/reservation_message_reaction_payload'
|
|
614
|
+
require 'repull/models/reservation_message_reaction_payload_reaction'
|
|
615
|
+
require 'repull/models/reservation_message_read_event'
|
|
616
|
+
require 'repull/models/reservation_message_read_payload'
|
|
603
617
|
require 'repull/models/reservation_message_received_event'
|
|
604
618
|
require 'repull/models/reservation_message_received_payload'
|
|
605
619
|
require 'repull/models/reservation_message_received_payload_from'
|