repull 0.2.34 → 0.2.35
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/api/health_api.rb +3 -3
- data/lib/repull/models/connect_session_completed_payload.rb +1 -1
- data/lib/repull/models/connect_status_accounts_inner.rb +12 -1
- data/lib/repull/models/create_connect_session_request.rb +25 -1
- data/lib/repull/models/create_connection_request.rb +2 -22
- data/lib/repull/models/list_connection_units200_response.rb +12 -1
- data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -0
- data/lib/repull/models/listing_address.rb +62 -5
- data/lib/repull/models/message.rb +24 -1
- data/lib/repull/models/{calendar_updated_payload.rb → postal_address.rb} +67 -35
- data/lib/repull/models/property.rb +12 -2
- data/lib/repull/models/webhook_event.rb +0 -2
- data/lib/repull/models/webhook_event_type.rb +1 -2
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +1 -6
- data/openapi/v1.json +132 -355
- metadata +3 -8
- data/lib/repull/api/plumguide_api.rb +0 -552
- data/lib/repull/models/calendar_updated_event.rb +0 -281
- data/lib/repull/models/calendar_updated_payload_range.rb +0 -156
- data/lib/repull/models/plumguide_listing.rb +0 -167
- data/lib/repull/models/plumguide_listing_list_response.rb +0 -158
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.35
|
|
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-10-
|
|
11
|
+
date: 2026-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -81,7 +81,6 @@ files:
|
|
|
81
81
|
- lib/repull/api/listings_api.rb
|
|
82
82
|
- lib/repull/api/markets_api.rb
|
|
83
83
|
- lib/repull/api/migrate_api.rb
|
|
84
|
-
- lib/repull/api/plumguide_api.rb
|
|
85
84
|
- lib/repull/api/pricing_api.rb
|
|
86
85
|
- lib/repull/api/promotions_api.rb
|
|
87
86
|
- lib/repull/api/properties_api.rb
|
|
@@ -233,9 +232,6 @@ files:
|
|
|
233
232
|
- lib/repull/models/bulk_pricing_response.rb
|
|
234
233
|
- lib/repull/models/calendar_day.rb
|
|
235
234
|
- lib/repull/models/calendar_response.rb
|
|
236
|
-
- lib/repull/models/calendar_updated_event.rb
|
|
237
|
-
- lib/repull/models/calendar_updated_payload.rb
|
|
238
|
-
- lib/repull/models/calendar_updated_payload_range.rb
|
|
239
235
|
- lib/repull/models/cancel_reservation200_response.rb
|
|
240
236
|
- lib/repull/models/cancel_reservation_request.rb
|
|
241
237
|
- lib/repull/models/channel_market_state_item.rb
|
|
@@ -548,8 +544,6 @@ files:
|
|
|
548
544
|
- lib/repull/models/payout_completed_event.rb
|
|
549
545
|
- lib/repull/models/payout_completed_payload.rb
|
|
550
546
|
- lib/repull/models/plan_notice.rb
|
|
551
|
-
- lib/repull/models/plumguide_listing.rb
|
|
552
|
-
- lib/repull/models/plumguide_listing_list_response.rb
|
|
553
547
|
- lib/repull/models/pms_capabilities.rb
|
|
554
548
|
- lib/repull/models/pms_capabilities_calendar.rb
|
|
555
549
|
- lib/repull/models/pms_capabilities_conversations.rb
|
|
@@ -562,6 +556,7 @@ files:
|
|
|
562
556
|
- lib/repull/models/pms_write_policy.rb
|
|
563
557
|
- lib/repull/models/pms_write_policy_calendar.rb
|
|
564
558
|
- lib/repull/models/pms_write_policy_reservations.rb
|
|
559
|
+
- lib/repull/models/postal_address.rb
|
|
565
560
|
- lib/repull/models/preapprove_conversation201_response.rb
|
|
566
561
|
- lib/repull/models/preapprove_conversation_request.rb
|
|
567
562
|
- lib/repull/models/preview_conversation_special_offer_request.rb
|
|
@@ -1,552 +0,0 @@
|
|
|
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 'cgi'
|
|
14
|
-
|
|
15
|
-
module Repull
|
|
16
|
-
class PlumguideApi
|
|
17
|
-
attr_accessor :api_client
|
|
18
|
-
|
|
19
|
-
def initialize(api_client = ApiClient.default)
|
|
20
|
-
@api_client = api_client
|
|
21
|
-
end
|
|
22
|
-
# Remove Plumguide webhook config
|
|
23
|
-
# Delete the Plumguide webhook configuration for this workspace. Plumguide stops delivering webhooks until a new config is set.
|
|
24
|
-
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [nil]
|
|
26
|
-
def delete_plumguide_webhooks(opts = {})
|
|
27
|
-
delete_plumguide_webhooks_with_http_info(opts)
|
|
28
|
-
nil
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# Remove Plumguide webhook config
|
|
32
|
-
# Delete the Plumguide webhook configuration for this workspace. Plumguide stops delivering webhooks until a new config is set.
|
|
33
|
-
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
|
-
def delete_plumguide_webhooks_with_http_info(opts = {})
|
|
36
|
-
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.delete_plumguide_webhooks ...'
|
|
38
|
-
end
|
|
39
|
-
# resource path
|
|
40
|
-
local_var_path = '/v1/channels/plumguide/webhooks'
|
|
41
|
-
|
|
42
|
-
# query parameters
|
|
43
|
-
query_params = opts[:query_params] || {}
|
|
44
|
-
|
|
45
|
-
# header parameters
|
|
46
|
-
header_params = opts[:header_params] || {}
|
|
47
|
-
# HTTP header 'Accept' (if needed)
|
|
48
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
49
|
-
|
|
50
|
-
# form parameters
|
|
51
|
-
form_params = opts[:form_params] || {}
|
|
52
|
-
|
|
53
|
-
# http body (model)
|
|
54
|
-
post_body = opts[:debug_body]
|
|
55
|
-
|
|
56
|
-
# return_type
|
|
57
|
-
return_type = opts[:debug_return_type]
|
|
58
|
-
|
|
59
|
-
# auth_names
|
|
60
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
61
|
-
|
|
62
|
-
new_options = opts.merge(
|
|
63
|
-
:operation => :"PlumguideApi.delete_plumguide_webhooks",
|
|
64
|
-
:header_params => header_params,
|
|
65
|
-
:query_params => query_params,
|
|
66
|
-
:form_params => form_params,
|
|
67
|
-
:body => post_body,
|
|
68
|
-
:auth_names => auth_names,
|
|
69
|
-
:return_type => return_type
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
73
|
-
if @api_client.config.debugging
|
|
74
|
-
@api_client.config.logger.debug "API called: PlumguideApi#delete_plumguide_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
-
end
|
|
76
|
-
return data, status_code, headers
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
# Get Plumguide availability
|
|
80
|
-
# Read the per-day availability calendar for a Plumguide listing. Returns the same row shape as Airbnb availability for SDK convenience. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
81
|
-
# @param [Hash] opts the optional parameters
|
|
82
|
-
# @return [nil]
|
|
83
|
-
def get_plumguide_availability(opts = {})
|
|
84
|
-
get_plumguide_availability_with_http_info(opts)
|
|
85
|
-
nil
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# Get Plumguide availability
|
|
89
|
-
# Read the per-day availability calendar for a Plumguide listing. Returns the same row shape as Airbnb availability for SDK convenience. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
90
|
-
# @param [Hash] opts the optional parameters
|
|
91
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
92
|
-
def get_plumguide_availability_with_http_info(opts = {})
|
|
93
|
-
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.get_plumguide_availability ...'
|
|
95
|
-
end
|
|
96
|
-
# resource path
|
|
97
|
-
local_var_path = '/v1/channels/plumguide/availability'
|
|
98
|
-
|
|
99
|
-
# query parameters
|
|
100
|
-
query_params = opts[:query_params] || {}
|
|
101
|
-
|
|
102
|
-
# header parameters
|
|
103
|
-
header_params = opts[:header_params] || {}
|
|
104
|
-
# HTTP header 'Accept' (if needed)
|
|
105
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
106
|
-
|
|
107
|
-
# form parameters
|
|
108
|
-
form_params = opts[:form_params] || {}
|
|
109
|
-
|
|
110
|
-
# http body (model)
|
|
111
|
-
post_body = opts[:debug_body]
|
|
112
|
-
|
|
113
|
-
# return_type
|
|
114
|
-
return_type = opts[:debug_return_type]
|
|
115
|
-
|
|
116
|
-
# auth_names
|
|
117
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
118
|
-
|
|
119
|
-
new_options = opts.merge(
|
|
120
|
-
:operation => :"PlumguideApi.get_plumguide_availability",
|
|
121
|
-
:header_params => header_params,
|
|
122
|
-
:query_params => query_params,
|
|
123
|
-
:form_params => form_params,
|
|
124
|
-
:body => post_body,
|
|
125
|
-
:auth_names => auth_names,
|
|
126
|
-
:return_type => return_type
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
130
|
-
if @api_client.config.debugging
|
|
131
|
-
@api_client.config.logger.debug "API called: PlumguideApi#get_plumguide_availability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
132
|
-
end
|
|
133
|
-
return data, status_code, headers
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Get Plumguide pricing
|
|
137
|
-
# Read the current pricing for a Plumguide listing (base price, currency, weekend uplift). Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
138
|
-
# @param [Hash] opts the optional parameters
|
|
139
|
-
# @return [nil]
|
|
140
|
-
def get_plumguide_pricing(opts = {})
|
|
141
|
-
get_plumguide_pricing_with_http_info(opts)
|
|
142
|
-
nil
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
# Get Plumguide pricing
|
|
146
|
-
# Read the current pricing for a Plumguide listing (base price, currency, weekend uplift). Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
147
|
-
# @param [Hash] opts the optional parameters
|
|
148
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
149
|
-
def get_plumguide_pricing_with_http_info(opts = {})
|
|
150
|
-
if @api_client.config.debugging
|
|
151
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.get_plumguide_pricing ...'
|
|
152
|
-
end
|
|
153
|
-
# resource path
|
|
154
|
-
local_var_path = '/v1/channels/plumguide/pricing'
|
|
155
|
-
|
|
156
|
-
# query parameters
|
|
157
|
-
query_params = opts[:query_params] || {}
|
|
158
|
-
|
|
159
|
-
# header parameters
|
|
160
|
-
header_params = opts[:header_params] || {}
|
|
161
|
-
# HTTP header 'Accept' (if needed)
|
|
162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
163
|
-
|
|
164
|
-
# form parameters
|
|
165
|
-
form_params = opts[:form_params] || {}
|
|
166
|
-
|
|
167
|
-
# http body (model)
|
|
168
|
-
post_body = opts[:debug_body]
|
|
169
|
-
|
|
170
|
-
# return_type
|
|
171
|
-
return_type = opts[:debug_return_type]
|
|
172
|
-
|
|
173
|
-
# auth_names
|
|
174
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
175
|
-
|
|
176
|
-
new_options = opts.merge(
|
|
177
|
-
:operation => :"PlumguideApi.get_plumguide_pricing",
|
|
178
|
-
:header_params => header_params,
|
|
179
|
-
:query_params => query_params,
|
|
180
|
-
:form_params => form_params,
|
|
181
|
-
:body => post_body,
|
|
182
|
-
:auth_names => auth_names,
|
|
183
|
-
:return_type => return_type
|
|
184
|
-
)
|
|
185
|
-
|
|
186
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
187
|
-
if @api_client.config.debugging
|
|
188
|
-
@api_client.config.logger.debug "API called: PlumguideApi#get_plumguide_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
-
end
|
|
190
|
-
return data, status_code, headers
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
# Get Plumguide webhook config
|
|
194
|
-
# Read the current Plumguide webhook configuration for this workspace.
|
|
195
|
-
# @param [Hash] opts the optional parameters
|
|
196
|
-
# @return [nil]
|
|
197
|
-
def get_plumguide_webhooks(opts = {})
|
|
198
|
-
get_plumguide_webhooks_with_http_info(opts)
|
|
199
|
-
nil
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Get Plumguide webhook config
|
|
203
|
-
# Read the current Plumguide webhook configuration for this workspace.
|
|
204
|
-
# @param [Hash] opts the optional parameters
|
|
205
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
206
|
-
def get_plumguide_webhooks_with_http_info(opts = {})
|
|
207
|
-
if @api_client.config.debugging
|
|
208
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.get_plumguide_webhooks ...'
|
|
209
|
-
end
|
|
210
|
-
# resource path
|
|
211
|
-
local_var_path = '/v1/channels/plumguide/webhooks'
|
|
212
|
-
|
|
213
|
-
# query parameters
|
|
214
|
-
query_params = opts[:query_params] || {}
|
|
215
|
-
|
|
216
|
-
# header parameters
|
|
217
|
-
header_params = opts[:header_params] || {}
|
|
218
|
-
# HTTP header 'Accept' (if needed)
|
|
219
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
220
|
-
|
|
221
|
-
# form parameters
|
|
222
|
-
form_params = opts[:form_params] || {}
|
|
223
|
-
|
|
224
|
-
# http body (model)
|
|
225
|
-
post_body = opts[:debug_body]
|
|
226
|
-
|
|
227
|
-
# return_type
|
|
228
|
-
return_type = opts[:debug_return_type]
|
|
229
|
-
|
|
230
|
-
# auth_names
|
|
231
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
232
|
-
|
|
233
|
-
new_options = opts.merge(
|
|
234
|
-
:operation => :"PlumguideApi.get_plumguide_webhooks",
|
|
235
|
-
:header_params => header_params,
|
|
236
|
-
:query_params => query_params,
|
|
237
|
-
:form_params => form_params,
|
|
238
|
-
:body => post_body,
|
|
239
|
-
:auth_names => auth_names,
|
|
240
|
-
:return_type => return_type
|
|
241
|
-
)
|
|
242
|
-
|
|
243
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
244
|
-
if @api_client.config.debugging
|
|
245
|
-
@api_client.config.logger.debug "API called: PlumguideApi#get_plumguide_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
246
|
-
end
|
|
247
|
-
return data, status_code, headers
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# List Plumguide bookings
|
|
251
|
-
# List Plumguide bookings. Default returns all bookings; pass `listing_id` to filter to one listing, or `booking_code` to fetch a single booking. Returns `403 listing_inactive` when `listing_id` or `booking_code` resolves to an inactive listing. The unfiltered list is read straight from Plum Guide and is not filtered by listing status.
|
|
252
|
-
# @param [Hash] opts the optional parameters
|
|
253
|
-
# @option opts [Integer] :listing_id Filter to a single Plumguide listing.
|
|
254
|
-
# @option opts [String] :booking_code Fetch a single booking by its Plumguide booking code.
|
|
255
|
-
# @return [nil]
|
|
256
|
-
def list_plumguide_bookings(opts = {})
|
|
257
|
-
list_plumguide_bookings_with_http_info(opts)
|
|
258
|
-
nil
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
# List Plumguide bookings
|
|
262
|
-
# List Plumguide bookings. Default returns all bookings; pass `listing_id` to filter to one listing, or `booking_code` to fetch a single booking. Returns `403 listing_inactive` when `listing_id` or `booking_code` resolves to an inactive listing. The unfiltered list is read straight from Plum Guide and is not filtered by listing status.
|
|
263
|
-
# @param [Hash] opts the optional parameters
|
|
264
|
-
# @option opts [Integer] :listing_id Filter to a single Plumguide listing.
|
|
265
|
-
# @option opts [String] :booking_code Fetch a single booking by its Plumguide booking code.
|
|
266
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
267
|
-
def list_plumguide_bookings_with_http_info(opts = {})
|
|
268
|
-
if @api_client.config.debugging
|
|
269
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.list_plumguide_bookings ...'
|
|
270
|
-
end
|
|
271
|
-
# resource path
|
|
272
|
-
local_var_path = '/v1/channels/plumguide/bookings'
|
|
273
|
-
|
|
274
|
-
# query parameters
|
|
275
|
-
query_params = opts[:query_params] || {}
|
|
276
|
-
query_params[:'listing_id'] = opts[:'listing_id'] if !opts[:'listing_id'].nil?
|
|
277
|
-
query_params[:'booking_code'] = opts[:'booking_code'] if !opts[:'booking_code'].nil?
|
|
278
|
-
|
|
279
|
-
# header parameters
|
|
280
|
-
header_params = opts[:header_params] || {}
|
|
281
|
-
# HTTP header 'Accept' (if needed)
|
|
282
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
283
|
-
|
|
284
|
-
# form parameters
|
|
285
|
-
form_params = opts[:form_params] || {}
|
|
286
|
-
|
|
287
|
-
# http body (model)
|
|
288
|
-
post_body = opts[:debug_body]
|
|
289
|
-
|
|
290
|
-
# return_type
|
|
291
|
-
return_type = opts[:debug_return_type]
|
|
292
|
-
|
|
293
|
-
# auth_names
|
|
294
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
295
|
-
|
|
296
|
-
new_options = opts.merge(
|
|
297
|
-
:operation => :"PlumguideApi.list_plumguide_bookings",
|
|
298
|
-
:header_params => header_params,
|
|
299
|
-
:query_params => query_params,
|
|
300
|
-
:form_params => form_params,
|
|
301
|
-
:body => post_body,
|
|
302
|
-
:auth_names => auth_names,
|
|
303
|
-
:return_type => return_type
|
|
304
|
-
)
|
|
305
|
-
|
|
306
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
307
|
-
if @api_client.config.debugging
|
|
308
|
-
@api_client.config.logger.debug "API called: PlumguideApi#list_plumguide_bookings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
309
|
-
end
|
|
310
|
-
return data, status_code, headers
|
|
311
|
-
end
|
|
312
|
-
|
|
313
|
-
# List Plumguide listings
|
|
314
|
-
# List Plumguide listings this workspace has access to. Plumguide is approval-based — listings appear once Plumguide has accepted them.
|
|
315
|
-
# @param [Hash] opts the optional parameters
|
|
316
|
-
# @return [PlumguideListingListResponse]
|
|
317
|
-
def list_plumguide_listings(opts = {})
|
|
318
|
-
data, _status_code, _headers = list_plumguide_listings_with_http_info(opts)
|
|
319
|
-
data
|
|
320
|
-
end
|
|
321
|
-
|
|
322
|
-
# List Plumguide listings
|
|
323
|
-
# List Plumguide listings this workspace has access to. Plumguide is approval-based — listings appear once Plumguide has accepted them.
|
|
324
|
-
# @param [Hash] opts the optional parameters
|
|
325
|
-
# @return [Array<(PlumguideListingListResponse, Integer, Hash)>] PlumguideListingListResponse data, response status code and response headers
|
|
326
|
-
def list_plumguide_listings_with_http_info(opts = {})
|
|
327
|
-
if @api_client.config.debugging
|
|
328
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.list_plumguide_listings ...'
|
|
329
|
-
end
|
|
330
|
-
# resource path
|
|
331
|
-
local_var_path = '/v1/channels/plumguide/listings'
|
|
332
|
-
|
|
333
|
-
# query parameters
|
|
334
|
-
query_params = opts[:query_params] || {}
|
|
335
|
-
|
|
336
|
-
# header parameters
|
|
337
|
-
header_params = opts[:header_params] || {}
|
|
338
|
-
# HTTP header 'Accept' (if needed)
|
|
339
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
340
|
-
|
|
341
|
-
# form parameters
|
|
342
|
-
form_params = opts[:form_params] || {}
|
|
343
|
-
|
|
344
|
-
# http body (model)
|
|
345
|
-
post_body = opts[:debug_body]
|
|
346
|
-
|
|
347
|
-
# return_type
|
|
348
|
-
return_type = opts[:debug_return_type] || 'PlumguideListingListResponse'
|
|
349
|
-
|
|
350
|
-
# auth_names
|
|
351
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
352
|
-
|
|
353
|
-
new_options = opts.merge(
|
|
354
|
-
:operation => :"PlumguideApi.list_plumguide_listings",
|
|
355
|
-
:header_params => header_params,
|
|
356
|
-
:query_params => query_params,
|
|
357
|
-
:form_params => form_params,
|
|
358
|
-
:body => post_body,
|
|
359
|
-
:auth_names => auth_names,
|
|
360
|
-
:return_type => return_type
|
|
361
|
-
)
|
|
362
|
-
|
|
363
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
364
|
-
if @api_client.config.debugging
|
|
365
|
-
@api_client.config.logger.debug "API called: PlumguideApi#list_plumguide_listings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
366
|
-
end
|
|
367
|
-
return data, status_code, headers
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
# Push availability to Plumguide
|
|
371
|
-
# Push per-day availability changes to Plumguide. Plumguide accepts only the next 24 months — dates beyond that are silently ignored. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
372
|
-
# @param [Hash] opts the optional parameters
|
|
373
|
-
# @return [nil]
|
|
374
|
-
def update_plumguide_availability(opts = {})
|
|
375
|
-
update_plumguide_availability_with_http_info(opts)
|
|
376
|
-
nil
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
# Push availability to Plumguide
|
|
380
|
-
# Push per-day availability changes to Plumguide. Plumguide accepts only the next 24 months — dates beyond that are silently ignored. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
381
|
-
# @param [Hash] opts the optional parameters
|
|
382
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
383
|
-
def update_plumguide_availability_with_http_info(opts = {})
|
|
384
|
-
if @api_client.config.debugging
|
|
385
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.update_plumguide_availability ...'
|
|
386
|
-
end
|
|
387
|
-
# resource path
|
|
388
|
-
local_var_path = '/v1/channels/plumguide/availability'
|
|
389
|
-
|
|
390
|
-
# query parameters
|
|
391
|
-
query_params = opts[:query_params] || {}
|
|
392
|
-
|
|
393
|
-
# header parameters
|
|
394
|
-
header_params = opts[:header_params] || {}
|
|
395
|
-
# HTTP header 'Accept' (if needed)
|
|
396
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
397
|
-
|
|
398
|
-
# form parameters
|
|
399
|
-
form_params = opts[:form_params] || {}
|
|
400
|
-
|
|
401
|
-
# http body (model)
|
|
402
|
-
post_body = opts[:debug_body]
|
|
403
|
-
|
|
404
|
-
# return_type
|
|
405
|
-
return_type = opts[:debug_return_type]
|
|
406
|
-
|
|
407
|
-
# auth_names
|
|
408
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
409
|
-
|
|
410
|
-
new_options = opts.merge(
|
|
411
|
-
:operation => :"PlumguideApi.update_plumguide_availability",
|
|
412
|
-
:header_params => header_params,
|
|
413
|
-
:query_params => query_params,
|
|
414
|
-
:form_params => form_params,
|
|
415
|
-
:body => post_body,
|
|
416
|
-
:auth_names => auth_names,
|
|
417
|
-
:return_type => return_type
|
|
418
|
-
)
|
|
419
|
-
|
|
420
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
421
|
-
if @api_client.config.debugging
|
|
422
|
-
@api_client.config.logger.debug "API called: PlumguideApi#update_plumguide_availability\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
423
|
-
end
|
|
424
|
-
return data, status_code, headers
|
|
425
|
-
end
|
|
426
|
-
|
|
427
|
-
# Push pricing to Plumguide
|
|
428
|
-
# Push pricing changes to Plumguide. Plumguide rounds all prices to whole units of the listing currency — sub-unit precision is silently truncated. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
429
|
-
# @param [Hash] opts the optional parameters
|
|
430
|
-
# @return [nil]
|
|
431
|
-
def update_plumguide_pricing(opts = {})
|
|
432
|
-
update_plumguide_pricing_with_http_info(opts)
|
|
433
|
-
nil
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
# Push pricing to Plumguide
|
|
437
|
-
# Push pricing changes to Plumguide. Plumguide rounds all prices to whole units of the listing currency — sub-unit precision is silently truncated. Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
438
|
-
# @param [Hash] opts the optional parameters
|
|
439
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
440
|
-
def update_plumguide_pricing_with_http_info(opts = {})
|
|
441
|
-
if @api_client.config.debugging
|
|
442
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.update_plumguide_pricing ...'
|
|
443
|
-
end
|
|
444
|
-
# resource path
|
|
445
|
-
local_var_path = '/v1/channels/plumguide/pricing'
|
|
446
|
-
|
|
447
|
-
# query parameters
|
|
448
|
-
query_params = opts[:query_params] || {}
|
|
449
|
-
|
|
450
|
-
# header parameters
|
|
451
|
-
header_params = opts[:header_params] || {}
|
|
452
|
-
# HTTP header 'Accept' (if needed)
|
|
453
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
454
|
-
|
|
455
|
-
# form parameters
|
|
456
|
-
form_params = opts[:form_params] || {}
|
|
457
|
-
|
|
458
|
-
# http body (model)
|
|
459
|
-
post_body = opts[:debug_body]
|
|
460
|
-
|
|
461
|
-
# return_type
|
|
462
|
-
return_type = opts[:debug_return_type]
|
|
463
|
-
|
|
464
|
-
# auth_names
|
|
465
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
466
|
-
|
|
467
|
-
new_options = opts.merge(
|
|
468
|
-
:operation => :"PlumguideApi.update_plumguide_pricing",
|
|
469
|
-
:header_params => header_params,
|
|
470
|
-
:query_params => query_params,
|
|
471
|
-
:form_params => form_params,
|
|
472
|
-
:body => post_body,
|
|
473
|
-
:auth_names => auth_names,
|
|
474
|
-
:return_type => return_type
|
|
475
|
-
)
|
|
476
|
-
|
|
477
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
478
|
-
if @api_client.config.debugging
|
|
479
|
-
@api_client.config.logger.debug "API called: PlumguideApi#update_plumguide_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
480
|
-
end
|
|
481
|
-
return data, status_code, headers
|
|
482
|
-
end
|
|
483
|
-
|
|
484
|
-
# Replace Plumguide webhook config
|
|
485
|
-
# Replace the Plumguide webhook configuration. The body carries the full webhook config payload — this is a full replacement, not a patch.
|
|
486
|
-
# @param request_body [Hash<String, Object>]
|
|
487
|
-
# @param [Hash] opts the optional parameters
|
|
488
|
-
# @return [nil]
|
|
489
|
-
def update_plumguide_webhooks(request_body, opts = {})
|
|
490
|
-
update_plumguide_webhooks_with_http_info(request_body, opts)
|
|
491
|
-
nil
|
|
492
|
-
end
|
|
493
|
-
|
|
494
|
-
# Replace Plumguide webhook config
|
|
495
|
-
# Replace the Plumguide webhook configuration. The body carries the full webhook config payload — this is a full replacement, not a patch.
|
|
496
|
-
# @param request_body [Hash<String, Object>]
|
|
497
|
-
# @param [Hash] opts the optional parameters
|
|
498
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
499
|
-
def update_plumguide_webhooks_with_http_info(request_body, opts = {})
|
|
500
|
-
if @api_client.config.debugging
|
|
501
|
-
@api_client.config.logger.debug 'Calling API: PlumguideApi.update_plumguide_webhooks ...'
|
|
502
|
-
end
|
|
503
|
-
# verify the required parameter 'request_body' is set
|
|
504
|
-
if @api_client.config.client_side_validation && request_body.nil?
|
|
505
|
-
fail ArgumentError, "Missing the required parameter 'request_body' when calling PlumguideApi.update_plumguide_webhooks"
|
|
506
|
-
end
|
|
507
|
-
# resource path
|
|
508
|
-
local_var_path = '/v1/channels/plumguide/webhooks'
|
|
509
|
-
|
|
510
|
-
# query parameters
|
|
511
|
-
query_params = opts[:query_params] || {}
|
|
512
|
-
|
|
513
|
-
# header parameters
|
|
514
|
-
header_params = opts[:header_params] || {}
|
|
515
|
-
# HTTP header 'Accept' (if needed)
|
|
516
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
517
|
-
# HTTP header 'Content-Type'
|
|
518
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
519
|
-
if !content_type.nil?
|
|
520
|
-
header_params['Content-Type'] = content_type
|
|
521
|
-
end
|
|
522
|
-
|
|
523
|
-
# form parameters
|
|
524
|
-
form_params = opts[:form_params] || {}
|
|
525
|
-
|
|
526
|
-
# http body (model)
|
|
527
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(request_body)
|
|
528
|
-
|
|
529
|
-
# return_type
|
|
530
|
-
return_type = opts[:debug_return_type]
|
|
531
|
-
|
|
532
|
-
# auth_names
|
|
533
|
-
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
534
|
-
|
|
535
|
-
new_options = opts.merge(
|
|
536
|
-
:operation => :"PlumguideApi.update_plumguide_webhooks",
|
|
537
|
-
:header_params => header_params,
|
|
538
|
-
:query_params => query_params,
|
|
539
|
-
:form_params => form_params,
|
|
540
|
-
:body => post_body,
|
|
541
|
-
:auth_names => auth_names,
|
|
542
|
-
:return_type => return_type
|
|
543
|
-
)
|
|
544
|
-
|
|
545
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
546
|
-
if @api_client.config.debugging
|
|
547
|
-
@api_client.config.logger.debug "API called: PlumguideApi#update_plumguide_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
548
|
-
end
|
|
549
|
-
return data, status_code, headers
|
|
550
|
-
end
|
|
551
|
-
end
|
|
552
|
-
end
|