repull 0.2.32 → 0.2.33
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/README.md +1 -1
- data/lib/repull/api/connections_api.rb +77 -0
- data/lib/repull/api/resolutions_api.rb +236 -0
- data/lib/repull/api/transactions_api.rb +73 -0
- data/lib/repull/models/account_import.rb +237 -0
- data/lib/repull/models/account_import_completed_event.rb +282 -0
- data/lib/repull/models/account_import_counts.rb +193 -0
- data/lib/repull/models/account_import_failed_event.rb +282 -0
- data/lib/repull/models/account_import_finished_payload.rb +224 -0
- data/lib/repull/models/account_import_stage.rb +177 -0
- data/lib/repull/models/account_import_started_event.rb +282 -0
- data/lib/repull/models/account_import_started_payload.rb +177 -0
- data/lib/repull/models/connection.rb +16 -5
- data/lib/repull/models/list_airbnb_resolutions200_response.rb +192 -0
- data/lib/repull/models/list_connection_imports200_response.rb +158 -0
- data/lib/repull/models/refresh_airbnb_resolutions200_response.rb +219 -0
- data/lib/repull/models/refresh_airbnb_resolutions200_response_accounts_inner.rb +200 -0
- data/lib/repull/models/refresh_airbnb_resolutions200_response_accounts_inner_error.rb +156 -0
- data/lib/repull/models/refresh_airbnb_resolutions_request.rb +192 -0
- data/lib/repull/models/resolution.rb +329 -0
- data/lib/repull/models/transaction_payout.rb +17 -6
- data/lib/repull/models/webhook_event.rb +6 -0
- data/lib/repull/models/webhook_event_type.rb +4 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +16 -0
- data/openapi/v1.json +845 -78
- data/scripts/regen.sh +1 -1
- metadata +18 -2
|
@@ -0,0 +1,329 @@
|
|
|
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 Limits (402 — `listings_limit_exceeded`) The Repull API also enforces a per-tier cap on **active listings**: | Tier | Active listings cap | |---|---| | `free` | 3 | | `starter` | unlimited (10 included, then billed per listing) | | `custom` | unlimited | When a customer's active-listing count is above their tier cap, the API returns **`402 Payment Required`** with `error.code = \"listings_limit_exceeded\"` on every route EXCEPT: - `/v1/health` — uptime probes are never gated. - `/v1/usage/*` — so dashboards can render the over-cap state. - Any `DELETE` — so the customer can trim listings to get back under the cap without paying. Unlike 429, 402 is NOT a \"wait and retry\" condition — `Retry-After` is not set. The only paths back to 200 are: 1. `DELETE` enough listings to come back under the cap, or 2. Upgrade at `https://repull.dev/dashboard/billing`. The server-side usage cache is 60s, so the first 200 after an upgrade may take up to a minute. The envelope mirrors `rate_limit_exceeded` for SDK ergonomics: `tier`, `limit`, `active_listings`, `upgrade_url`, plus the standard `code` / `message` / `fix` / `docs_url` / `request_id`.
|
|
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
|
+
# An Airbnb Resolution Center case (AirCover / damage, extra-guest, refund or change request). Read-only — Airbnb exposes no create/evidence/status API. The money a resolution moved rides in the transactions ledger as `Resolution Payout` / `Resolution Adjustment` rows sharing the same reference; join on `resolutionId`.
|
|
18
|
+
class Resolution < ApiModelBase
|
|
19
|
+
# Airbnb's resolution id — the `{id}` path value and the join key to a transaction's `reference`.
|
|
20
|
+
attr_accessor :resolution_id
|
|
21
|
+
|
|
22
|
+
# Airbnb confirmation code of the reservation the case is on.
|
|
23
|
+
attr_accessor :confirmation_code
|
|
24
|
+
|
|
25
|
+
# Repull's internal reservation id, when the reservation is in this workspace.
|
|
26
|
+
attr_accessor :reservation_id
|
|
27
|
+
|
|
28
|
+
attr_accessor :listing_name
|
|
29
|
+
|
|
30
|
+
# OPEN or CLOSED, as Airbnb reports it.
|
|
31
|
+
attr_accessor :status
|
|
32
|
+
|
|
33
|
+
# Why the resolution was opened.
|
|
34
|
+
attr_accessor :reason
|
|
35
|
+
|
|
36
|
+
# Airbnb's case-status label.
|
|
37
|
+
attr_accessor :case_status
|
|
38
|
+
|
|
39
|
+
# Human-readable status detail.
|
|
40
|
+
attr_accessor :status_text
|
|
41
|
+
|
|
42
|
+
# Airbnb's hint on whose turn it is to act next — track progress with it.
|
|
43
|
+
attr_accessor :suggested_action_text
|
|
44
|
+
|
|
45
|
+
# True when Airbnb Customer Support (not the host/guest) opened the case.
|
|
46
|
+
attr_accessor :customer_support_initiated
|
|
47
|
+
|
|
48
|
+
attr_accessor :product_type
|
|
49
|
+
|
|
50
|
+
# Who opened the case (id + name).
|
|
51
|
+
attr_accessor :initiator
|
|
52
|
+
|
|
53
|
+
# Who responds (id + name).
|
|
54
|
+
attr_accessor :responder
|
|
55
|
+
|
|
56
|
+
attr_accessor :created_at
|
|
57
|
+
|
|
58
|
+
attr_accessor :updated_at
|
|
59
|
+
|
|
60
|
+
# When Repull last refreshed this case from Airbnb.
|
|
61
|
+
attr_accessor :synced_at
|
|
62
|
+
|
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
|
+
def self.attribute_map
|
|
65
|
+
{
|
|
66
|
+
:'resolution_id' => :'resolutionId',
|
|
67
|
+
:'confirmation_code' => :'confirmationCode',
|
|
68
|
+
:'reservation_id' => :'reservationId',
|
|
69
|
+
:'listing_name' => :'listingName',
|
|
70
|
+
:'status' => :'status',
|
|
71
|
+
:'reason' => :'reason',
|
|
72
|
+
:'case_status' => :'caseStatus',
|
|
73
|
+
:'status_text' => :'statusText',
|
|
74
|
+
:'suggested_action_text' => :'suggestedActionText',
|
|
75
|
+
:'customer_support_initiated' => :'customerSupportInitiated',
|
|
76
|
+
:'product_type' => :'productType',
|
|
77
|
+
:'initiator' => :'initiator',
|
|
78
|
+
:'responder' => :'responder',
|
|
79
|
+
:'created_at' => :'createdAt',
|
|
80
|
+
:'updated_at' => :'updatedAt',
|
|
81
|
+
:'synced_at' => :'syncedAt'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Returns attribute mapping this model knows about
|
|
86
|
+
def self.acceptable_attribute_map
|
|
87
|
+
attribute_map
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Returns all the JSON keys this model knows about
|
|
91
|
+
def self.acceptable_attributes
|
|
92
|
+
acceptable_attribute_map.values
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# Attribute type mapping.
|
|
96
|
+
def self.openapi_types
|
|
97
|
+
{
|
|
98
|
+
:'resolution_id' => :'String',
|
|
99
|
+
:'confirmation_code' => :'String',
|
|
100
|
+
:'reservation_id' => :'Integer',
|
|
101
|
+
:'listing_name' => :'String',
|
|
102
|
+
:'status' => :'String',
|
|
103
|
+
:'reason' => :'String',
|
|
104
|
+
:'case_status' => :'String',
|
|
105
|
+
:'status_text' => :'String',
|
|
106
|
+
:'suggested_action_text' => :'String',
|
|
107
|
+
:'customer_support_initiated' => :'Boolean',
|
|
108
|
+
:'product_type' => :'String',
|
|
109
|
+
:'initiator' => :'Object',
|
|
110
|
+
:'responder' => :'Object',
|
|
111
|
+
:'created_at' => :'Time',
|
|
112
|
+
:'updated_at' => :'Time',
|
|
113
|
+
:'synced_at' => :'Time'
|
|
114
|
+
}
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# List of attributes with nullable: true
|
|
118
|
+
def self.openapi_nullable
|
|
119
|
+
Set.new([
|
|
120
|
+
:'confirmation_code',
|
|
121
|
+
:'reservation_id',
|
|
122
|
+
:'listing_name',
|
|
123
|
+
:'status',
|
|
124
|
+
:'reason',
|
|
125
|
+
:'case_status',
|
|
126
|
+
:'status_text',
|
|
127
|
+
:'suggested_action_text',
|
|
128
|
+
:'customer_support_initiated',
|
|
129
|
+
:'product_type',
|
|
130
|
+
:'initiator',
|
|
131
|
+
:'responder',
|
|
132
|
+
:'created_at',
|
|
133
|
+
:'updated_at',
|
|
134
|
+
:'synced_at'
|
|
135
|
+
])
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# Initializes the object
|
|
139
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
140
|
+
def initialize(attributes = {})
|
|
141
|
+
if (!attributes.is_a?(Hash))
|
|
142
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::Resolution` initialize method"
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
146
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
147
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
148
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
149
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::Resolution`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
150
|
+
end
|
|
151
|
+
h[k.to_sym] = v
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if attributes.key?(:'resolution_id')
|
|
155
|
+
self.resolution_id = attributes[:'resolution_id']
|
|
156
|
+
else
|
|
157
|
+
self.resolution_id = nil
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if attributes.key?(:'confirmation_code')
|
|
161
|
+
self.confirmation_code = attributes[:'confirmation_code']
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.key?(:'reservation_id')
|
|
165
|
+
self.reservation_id = attributes[:'reservation_id']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'listing_name')
|
|
169
|
+
self.listing_name = attributes[:'listing_name']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'status')
|
|
173
|
+
self.status = attributes[:'status']
|
|
174
|
+
else
|
|
175
|
+
self.status = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'reason')
|
|
179
|
+
self.reason = attributes[:'reason']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'case_status')
|
|
183
|
+
self.case_status = attributes[:'case_status']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.key?(:'status_text')
|
|
187
|
+
self.status_text = attributes[:'status_text']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.key?(:'suggested_action_text')
|
|
191
|
+
self.suggested_action_text = attributes[:'suggested_action_text']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.key?(:'customer_support_initiated')
|
|
195
|
+
self.customer_support_initiated = attributes[:'customer_support_initiated']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'product_type')
|
|
199
|
+
self.product_type = attributes[:'product_type']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.key?(:'initiator')
|
|
203
|
+
self.initiator = attributes[:'initiator']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.key?(:'responder')
|
|
207
|
+
self.responder = attributes[:'responder']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'created_at')
|
|
211
|
+
self.created_at = attributes[:'created_at']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.key?(:'updated_at')
|
|
215
|
+
self.updated_at = attributes[:'updated_at']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.key?(:'synced_at')
|
|
219
|
+
self.synced_at = attributes[:'synced_at']
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
224
|
+
# @return Array for valid properties with the reasons
|
|
225
|
+
def list_invalid_properties
|
|
226
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
227
|
+
invalid_properties = Array.new
|
|
228
|
+
if @resolution_id.nil?
|
|
229
|
+
invalid_properties.push('invalid value for "resolution_id", resolution_id cannot be nil.')
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
invalid_properties
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
# Check to see if the all the properties in the model are valid
|
|
236
|
+
# @return true if the model is valid
|
|
237
|
+
def valid?
|
|
238
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
239
|
+
return false if @resolution_id.nil?
|
|
240
|
+
true
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Custom attribute writer method with validation
|
|
244
|
+
# @param [Object] resolution_id Value to be assigned
|
|
245
|
+
def resolution_id=(resolution_id)
|
|
246
|
+
if resolution_id.nil?
|
|
247
|
+
fail ArgumentError, 'resolution_id cannot be nil'
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
@resolution_id = resolution_id
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Checks equality by comparing each attribute.
|
|
254
|
+
# @param [Object] Object to be compared
|
|
255
|
+
def ==(o)
|
|
256
|
+
return true if self.equal?(o)
|
|
257
|
+
self.class == o.class &&
|
|
258
|
+
resolution_id == o.resolution_id &&
|
|
259
|
+
confirmation_code == o.confirmation_code &&
|
|
260
|
+
reservation_id == o.reservation_id &&
|
|
261
|
+
listing_name == o.listing_name &&
|
|
262
|
+
status == o.status &&
|
|
263
|
+
reason == o.reason &&
|
|
264
|
+
case_status == o.case_status &&
|
|
265
|
+
status_text == o.status_text &&
|
|
266
|
+
suggested_action_text == o.suggested_action_text &&
|
|
267
|
+
customer_support_initiated == o.customer_support_initiated &&
|
|
268
|
+
product_type == o.product_type &&
|
|
269
|
+
initiator == o.initiator &&
|
|
270
|
+
responder == o.responder &&
|
|
271
|
+
created_at == o.created_at &&
|
|
272
|
+
updated_at == o.updated_at &&
|
|
273
|
+
synced_at == o.synced_at
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# @see the `==` method
|
|
277
|
+
# @param [Object] Object to be compared
|
|
278
|
+
def eql?(o)
|
|
279
|
+
self == o
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Calculates hash code according to all attributes.
|
|
283
|
+
# @return [Integer] Hash code
|
|
284
|
+
def hash
|
|
285
|
+
[resolution_id, confirmation_code, reservation_id, listing_name, status, reason, case_status, status_text, suggested_action_text, customer_support_initiated, product_type, initiator, responder, created_at, updated_at, synced_at].hash
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Builds the object from hash
|
|
289
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
290
|
+
# @return [Object] Returns the model itself
|
|
291
|
+
def self.build_from_hash(attributes)
|
|
292
|
+
return nil unless attributes.is_a?(Hash)
|
|
293
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
294
|
+
transformed_hash = {}
|
|
295
|
+
openapi_types.each_pair do |key, type|
|
|
296
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
297
|
+
transformed_hash["#{key}"] = nil
|
|
298
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
299
|
+
# check to ensure the input is an array given that the attribute
|
|
300
|
+
# is documented as an array but the input is not
|
|
301
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
302
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
303
|
+
end
|
|
304
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
305
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
306
|
+
end
|
|
307
|
+
end
|
|
308
|
+
new(transformed_hash)
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Returns the object in the form of hash
|
|
312
|
+
# @return [Hash] Returns the object in the form of hash
|
|
313
|
+
def to_hash
|
|
314
|
+
hash = {}
|
|
315
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
316
|
+
value = self.send(attr)
|
|
317
|
+
if value.nil?
|
|
318
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
319
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
hash[param] = _to_hash(value)
|
|
323
|
+
end
|
|
324
|
+
hash
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
end
|
|
@@ -26,9 +26,12 @@ module Repull
|
|
|
26
26
|
# Masked destination bank account the payout was sent to (Booking.com payouts, from the statement PDF). Null on channels/rows without one.
|
|
27
27
|
attr_accessor :bank_destination
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Repull-hosted download link for the original payout statement PDF (the authoritative settlement record). Add `?format=csv` for the CSV. Served by `GET /v1/transactions/{id}/statement` — no channel session needed. Null when none is stored.
|
|
30
30
|
attr_accessor :statement_url
|
|
31
31
|
|
|
32
|
+
# The channel's own numeric statement id (Booking.com, e.g. \"010747030095\"). Null when none.
|
|
33
|
+
attr_accessor :statement_id
|
|
34
|
+
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
36
|
def self.attribute_map
|
|
34
37
|
{
|
|
@@ -36,7 +39,8 @@ module Repull
|
|
|
36
39
|
:'payout_date' => :'payoutDate',
|
|
37
40
|
:'paid_out_amount' => :'paidOutAmount',
|
|
38
41
|
:'bank_destination' => :'bankDestination',
|
|
39
|
-
:'statement_url' => :'statementUrl'
|
|
42
|
+
:'statement_url' => :'statementUrl',
|
|
43
|
+
:'statement_id' => :'statementId'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
42
46
|
|
|
@@ -57,7 +61,8 @@ module Repull
|
|
|
57
61
|
:'payout_date' => :'String',
|
|
58
62
|
:'paid_out_amount' => :'Float',
|
|
59
63
|
:'bank_destination' => :'String',
|
|
60
|
-
:'statement_url' => :'String'
|
|
64
|
+
:'statement_url' => :'String',
|
|
65
|
+
:'statement_id' => :'String'
|
|
61
66
|
}
|
|
62
67
|
end
|
|
63
68
|
|
|
@@ -68,7 +73,8 @@ module Repull
|
|
|
68
73
|
:'payout_date',
|
|
69
74
|
:'paid_out_amount',
|
|
70
75
|
:'bank_destination',
|
|
71
|
-
:'statement_url'
|
|
76
|
+
:'statement_url',
|
|
77
|
+
:'statement_id'
|
|
72
78
|
])
|
|
73
79
|
end
|
|
74
80
|
|
|
@@ -113,6 +119,10 @@ module Repull
|
|
|
113
119
|
if attributes.key?(:'statement_url')
|
|
114
120
|
self.statement_url = attributes[:'statement_url']
|
|
115
121
|
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'statement_id')
|
|
124
|
+
self.statement_id = attributes[:'statement_id']
|
|
125
|
+
end
|
|
116
126
|
end
|
|
117
127
|
|
|
118
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -139,7 +149,8 @@ module Repull
|
|
|
139
149
|
payout_date == o.payout_date &&
|
|
140
150
|
paid_out_amount == o.paid_out_amount &&
|
|
141
151
|
bank_destination == o.bank_destination &&
|
|
142
|
-
statement_url == o.statement_url
|
|
152
|
+
statement_url == o.statement_url &&
|
|
153
|
+
statement_id == o.statement_id
|
|
143
154
|
end
|
|
144
155
|
|
|
145
156
|
# @see the `==` method
|
|
@@ -151,7 +162,7 @@ module Repull
|
|
|
151
162
|
# Calculates hash code according to all attributes.
|
|
152
163
|
# @return [Integer] Hash code
|
|
153
164
|
def hash
|
|
154
|
-
[payout_id, payout_date, paid_out_amount, bank_destination, statement_url].hash
|
|
165
|
+
[payout_id, payout_date, paid_out_amount, bank_destination, statement_url, statement_id].hash
|
|
155
166
|
end
|
|
156
167
|
|
|
157
168
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Repull
|
|
|
22
22
|
[
|
|
23
23
|
:'AccountCreatedEvent',
|
|
24
24
|
:'AccountDisconnectedEvent',
|
|
25
|
+
:'AccountImportCompletedEvent',
|
|
26
|
+
:'AccountImportFailedEvent',
|
|
27
|
+
:'AccountImportStartedEvent',
|
|
25
28
|
:'AiOperationCompletedEvent',
|
|
26
29
|
:'AiOperationFailedEvent',
|
|
27
30
|
:'CalendarUpdatedEvent',
|
|
@@ -65,6 +68,9 @@ module Repull
|
|
|
65
68
|
{
|
|
66
69
|
:'account.created' => :'AccountCreatedEvent',
|
|
67
70
|
:'account.disconnected' => :'AccountDisconnectedEvent',
|
|
71
|
+
:'account.import.completed' => :'AccountImportCompletedEvent',
|
|
72
|
+
:'account.import.failed' => :'AccountImportFailedEvent',
|
|
73
|
+
:'account.import.started' => :'AccountImportStartedEvent',
|
|
68
74
|
:'ai.operation.completed' => :'AiOperationCompletedEvent',
|
|
69
75
|
:'ai.operation.failed' => :'AiOperationFailedEvent',
|
|
70
76
|
:'calendar.updated' => :'CalendarUpdatedEvent',
|
|
@@ -36,6 +36,9 @@ module Repull
|
|
|
36
36
|
ACCOUNT_CREATED = "account.created".freeze
|
|
37
37
|
CONNECT_SESSION_COMPLETED = "connect.session.completed".freeze
|
|
38
38
|
ACCOUNT_DISCONNECTED = "account.disconnected".freeze
|
|
39
|
+
ACCOUNT_IMPORT_STARTED = "account.import.started".freeze
|
|
40
|
+
ACCOUNT_IMPORT_COMPLETED = "account.import.completed".freeze
|
|
41
|
+
ACCOUNT_IMPORT_FAILED = "account.import.failed".freeze
|
|
39
42
|
REVIEW_CREATED = "review.created".freeze
|
|
40
43
|
REVIEW_RESPONDED = "review.responded".freeze
|
|
41
44
|
AI_OPERATION_COMPLETED = "ai.operation.completed".freeze
|
|
@@ -49,7 +52,7 @@ module Repull
|
|
|
49
52
|
USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
|
|
50
53
|
|
|
51
54
|
def self.all_vars
|
|
52
|
-
@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, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, CALENDAR_UPDATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, ACCOUNT_DISCONNECTED, 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
|
|
55
|
+
@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, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, CALENDAR_UPDATED, 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
|
|
53
56
|
end
|
|
54
57
|
|
|
55
58
|
# Builds the enum from string
|
data/lib/repull/version.rb
CHANGED
data/lib/repull.rb
CHANGED
|
@@ -24,6 +24,14 @@ require 'repull/models/account_created_event'
|
|
|
24
24
|
require 'repull/models/account_created_payload'
|
|
25
25
|
require 'repull/models/account_disconnected_event'
|
|
26
26
|
require 'repull/models/account_disconnected_payload'
|
|
27
|
+
require 'repull/models/account_import'
|
|
28
|
+
require 'repull/models/account_import_completed_event'
|
|
29
|
+
require 'repull/models/account_import_counts'
|
|
30
|
+
require 'repull/models/account_import_failed_event'
|
|
31
|
+
require 'repull/models/account_import_finished_payload'
|
|
32
|
+
require 'repull/models/account_import_stage'
|
|
33
|
+
require 'repull/models/account_import_started_event'
|
|
34
|
+
require 'repull/models/account_import_started_payload'
|
|
27
35
|
require 'repull/models/acknowledge_booking_reservations_request'
|
|
28
36
|
require 'repull/models/ai_operation_completed_event'
|
|
29
37
|
require 'repull/models/ai_operation_completed_payload'
|
|
@@ -294,12 +302,14 @@ require 'repull/models/list_airbnb_listing_amenities200_response'
|
|
|
294
302
|
require 'repull/models/list_airbnb_listing_amenities200_response_data'
|
|
295
303
|
require 'repull/models/list_airbnb_listing_permits200_response'
|
|
296
304
|
require 'repull/models/list_airbnb_listing_safety_disclosures200_response'
|
|
305
|
+
require 'repull/models/list_airbnb_resolutions200_response'
|
|
297
306
|
require 'repull/models/list_airbnb_thread_messages200_response'
|
|
298
307
|
require 'repull/models/list_airbnb_thread_messages200_response_data_inner'
|
|
299
308
|
require 'repull/models/list_airbnb_thread_messages200_response_pagination'
|
|
300
309
|
require 'repull/models/list_airbnb_transactions200_response'
|
|
301
310
|
require 'repull/models/list_booking_reservations200_response'
|
|
302
311
|
require 'repull/models/list_booking_transactions200_response'
|
|
312
|
+
require 'repull/models/list_connection_imports200_response'
|
|
303
313
|
require 'repull/models/list_connection_units200_response'
|
|
304
314
|
require 'repull/models/list_connection_units200_response_listing_options_inner'
|
|
305
315
|
require 'repull/models/list_connection_units200_response_units_inner'
|
|
@@ -487,6 +497,10 @@ require 'repull/models/quote_pricing'
|
|
|
487
497
|
require 'repull/models/recheck_booking_extranet_login200_response'
|
|
488
498
|
require 'repull/models/recheck_booking_extranet_login_request'
|
|
489
499
|
require 'repull/models/record_account'
|
|
500
|
+
require 'repull/models/refresh_airbnb_resolutions200_response'
|
|
501
|
+
require 'repull/models/refresh_airbnb_resolutions200_response_accounts_inner'
|
|
502
|
+
require 'repull/models/refresh_airbnb_resolutions200_response_accounts_inner_error'
|
|
503
|
+
require 'repull/models/refresh_airbnb_resolutions_request'
|
|
490
504
|
require 'repull/models/reorder_airbnb_listing_photos200_response'
|
|
491
505
|
require 'repull/models/reorder_airbnb_listing_photos200_response_data'
|
|
492
506
|
require 'repull/models/reorder_airbnb_listing_photos_request'
|
|
@@ -543,6 +557,7 @@ require 'repull/models/reservation_update_response'
|
|
|
543
557
|
require 'repull/models/reservation_updated_event'
|
|
544
558
|
require 'repull/models/reservation_updated_payload'
|
|
545
559
|
require 'repull/models/reservation_webhook_object'
|
|
560
|
+
require 'repull/models/resolution'
|
|
546
561
|
require 'repull/models/respond_airbnb_review_request'
|
|
547
562
|
require 'repull/models/resume_connect400_response'
|
|
548
563
|
require 'repull/models/resume_connect500_response'
|
|
@@ -703,6 +718,7 @@ require 'repull/api/pricing_api'
|
|
|
703
718
|
require 'repull/api/properties_api'
|
|
704
719
|
require 'repull/api/quotes_api'
|
|
705
720
|
require 'repull/api/reservations_api'
|
|
721
|
+
require 'repull/api/resolutions_api'
|
|
706
722
|
require 'repull/api/reviews_api'
|
|
707
723
|
require 'repull/api/schema_api'
|
|
708
724
|
require 'repull/api/system_api'
|