repull 0.2.56 → 0.2.57
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 +539 -2
- data/lib/repull/api/connect_api.rb +2 -2
- data/lib/repull/api/listings_api.rb +70 -0
- data/lib/repull/api/vrbo_api.rb +706 -0
- data/lib/repull/models/create_vrbo_offer201_response.rb +104 -0
- data/lib/repull/models/create_vrbo_offer201_response_one_of.rb +175 -0
- data/lib/repull/models/create_vrbo_offer_request.rb +320 -0
- data/lib/repull/models/create_vrbo_offer_request_fees_inner.rb +199 -0
- data/lib/repull/models/create_vrbo_offer_request_guest_details.rb +278 -0
- data/lib/repull/models/get_airbnb_house_rules200_response.rb +190 -0
- data/lib/repull/models/get_airbnb_house_rules200_response_data.rb +247 -0
- data/lib/repull/models/get_airbnb_house_rules200_response_data_children.rb +148 -0
- data/lib/repull/models/get_airbnb_house_rules200_response_data_house_rules_inner.rb +168 -0
- data/lib/repull/models/get_airbnb_listing_cancellation200_response.rb +190 -0
- data/lib/repull/models/get_airbnb_listing_cancellation200_response_data.rb +203 -0
- data/lib/repull/models/get_airbnb_listing_cancellation200_response_data_non_refundable.rb +192 -0
- data/lib/repull/models/get_airbnb_listing_fees200_response.rb +192 -0
- data/lib/repull/models/get_airbnb_listing_fees200_response_data_inner.rb +251 -0
- data/lib/repull/models/get_airbnb_listing_taxes200_response.rb +192 -0
- data/lib/repull/models/get_airbnb_listing_taxes200_response_data_inner.rb +181 -0
- data/lib/repull/models/get_airbnb_location200_response.rb +190 -0
- data/lib/repull/models/get_airbnb_location200_response_data.rb +197 -0
- data/lib/repull/models/get_airbnb_location200_response_data_address.rb +198 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_settings200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_settings200_response_data.rb +106 -0
- data/lib/repull/models/get_vrbo_listing_settings200_response_data_one_of.rb +149 -0
- data/lib/repull/models/get_vrbo_offer200_response.rb +290 -0
- data/lib/repull/models/get_vrbo_offer200_response_fees_inner.rb +166 -0
- data/lib/repull/models/get_vrbo_thread200_response.rb +159 -0
- data/lib/repull/models/list_vrbo_thread_messages200_response.rb +170 -0
- data/lib/repull/models/list_vrbo_thread_messages200_response_data_inner.rb +240 -0
- data/lib/repull/models/list_vrbo_threads200_response.rb +172 -0
- data/lib/repull/models/list_vrbo_threads200_response_data_inner.rb +219 -0
- data/lib/repull/models/map_vrbo_listing_request.rb +1 -1
- data/lib/repull/models/pull_listing_from_vrbo200_response.rb +273 -0
- data/lib/repull/models/pull_listing_from_vrbo_request.rb +149 -0
- data/lib/repull/models/send_vrbo_message_request.rb +186 -0
- data/lib/repull/models/submit_vrbo_guest_review200_response.rb +176 -0
- data/lib/repull/models/submit_vrbo_guest_review_request.rb +195 -0
- data/lib/repull/models/submit_vrbo_guest_review_request_category_ratings_inner.rb +218 -0
- data/lib/repull/models/update_airbnb_house_rules200_response.rb +187 -0
- data/lib/repull/models/update_airbnb_house_rules_request.rb +191 -0
- data/lib/repull/models/update_airbnb_listing_cancellation200_response.rb +147 -0
- data/lib/repull/models/update_airbnb_listing_cancellation200_response_data.rb +158 -0
- data/lib/repull/models/update_airbnb_listing_cancellation_request.rb +201 -0
- data/lib/repull/models/update_airbnb_listing_cancellation_request_non_refundable.rb +182 -0
- data/lib/repull/models/update_airbnb_listing_fees200_response.rb +150 -0
- data/lib/repull/models/update_airbnb_listing_fees_request.rb +175 -0
- data/lib/repull/models/vrbo_login200_response.rb +2 -2
- data/lib/repull/models/vrbo_login_request.rb +13 -3
- data/lib/repull/models/withdraw_vrbo_offer200_response.rb +165 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +44 -0
- data/openapi/v1.json +2994 -195
- metadata +46 -2
|
@@ -2447,7 +2447,7 @@ module Repull
|
|
|
2447
2447
|
end
|
|
2448
2448
|
|
|
2449
2449
|
# Sign in with a Vrbo host account
|
|
2450
|
-
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2450
|
+
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. `phone_required` means Vrbo accepted the login and its \"complete your profile\" step wants a contact phone: `action: phone` (with `accountId` and `phone`, international format with the country code, any country) fills it in, then answers like the others (`otp_required` when Vrbo texts a code to that number; `phone_required` with `reason: bad_phone` when Vrbo refuses it). Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2451
2451
|
# @param vrbo_login_request [VrboLoginRequest]
|
|
2452
2452
|
# @param [Hash] opts the optional parameters
|
|
2453
2453
|
# @return [VrboLogin200Response]
|
|
@@ -2457,7 +2457,7 @@ module Repull
|
|
|
2457
2457
|
end
|
|
2458
2458
|
|
|
2459
2459
|
# Sign in with a Vrbo host account
|
|
2460
|
-
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2460
|
+
# `action: login` checks the email and password and answers in seconds: `connected`, `otp_required` (Vrbo sent a code to `destination`) or `failed` with a `reason` (`bad_credentials`, `blocked`, …). `action: otp` submits the code; a refused code comes back as `otp_required` with `reason: bad_code`. `action: resend` (with `accountId`) signs in again with the details already given, so Vrbo sends a new code. `phone_required` means Vrbo accepted the login and its \"complete your profile\" step wants a contact phone: `action: phone` (with `accountId` and `phone`, international format with the country code, any country) fills it in, then answers like the others (`otp_required` when Vrbo texts a code to that number; `phone_required` with `reason: bad_phone` when Vrbo refuses it). Signing in imports nothing. `accessType` (`full_access` or `messaging`, when the session did not lock it) is the host's choice of whether mapped listings push the calendar. The import starts when the mapping is confirmed. Called by the hosted Connect page. No API key — the session ID is the capability token.
|
|
2461
2461
|
# @param vrbo_login_request [VrboLoginRequest]
|
|
2462
2462
|
# @param [Hash] opts the optional parameters
|
|
2463
2463
|
# @return [Array<(VrboLogin200Response, Integer, Hash)>] VrboLogin200Response data, response status code and response headers
|
|
@@ -1276,6 +1276,76 @@ module Repull
|
|
|
1276
1276
|
return data, status_code, headers
|
|
1277
1277
|
end
|
|
1278
1278
|
|
|
1279
|
+
# Refresh a listing from Vrbo
|
|
1280
|
+
# Re-read every content section of the listing's Vrbo listing from Vrbo and keep it as Repull's copy, then report what was refreshed and when — the counterpart of `POST /v1/listings/{id}/pull/airbnb`. Use it after the host changed something on Vrbo, so the `/v1/channels/vrbo/listings/{id}/…` reads answer with what Vrbo holds now. **What it refreshes:** descriptions, details, story, additional-info, photos, amenities, rooms, location, house-rules, booking-settings, cancellation, fees, pricing, payment-terms, protection, taxes, permits, checkin-guide, videos. **Not** the calendar, rates per night, bookings, messages, reviews or payouts — those arrive through the channel's own sync. **Runs synchronously:** about 45 Vrbo calls spaced ~3 s apart per account, **around 2.5 minutes**. A section Vrbo fails to return is listed in `failedSections`; the others are refreshed. **One pull per listing per 15 minutes**, as on Airbnb: a second call inside the window returns `429 rate_limit_exceeded` with `Retry-After` and `nextPullAvailableAt`, and makes no Vrbo calls. Works with messaging or full access. Returns `404` when the listing is not linked to Vrbo, and `403 listing_inactive` when the listing is inactive.
|
|
1281
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1282
|
+
# @param [Hash] opts the optional parameters
|
|
1283
|
+
# @option opts [PullListingFromVrboRequest] :pull_listing_from_vrbo_request
|
|
1284
|
+
# @return [PullListingFromVrbo200Response]
|
|
1285
|
+
def pull_listing_from_vrbo(id, opts = {})
|
|
1286
|
+
data, _status_code, _headers = pull_listing_from_vrbo_with_http_info(id, opts)
|
|
1287
|
+
data
|
|
1288
|
+
end
|
|
1289
|
+
|
|
1290
|
+
# Refresh a listing from Vrbo
|
|
1291
|
+
# Re-read every content section of the listing's Vrbo listing from Vrbo and keep it as Repull's copy, then report what was refreshed and when — the counterpart of `POST /v1/listings/{id}/pull/airbnb`. Use it after the host changed something on Vrbo, so the `/v1/channels/vrbo/listings/{id}/…` reads answer with what Vrbo holds now. **What it refreshes:** descriptions, details, story, additional-info, photos, amenities, rooms, location, house-rules, booking-settings, cancellation, fees, pricing, payment-terms, protection, taxes, permits, checkin-guide, videos. **Not** the calendar, rates per night, bookings, messages, reviews or payouts — those arrive through the channel's own sync. **Runs synchronously:** about 45 Vrbo calls spaced ~3 s apart per account, **around 2.5 minutes**. A section Vrbo fails to return is listed in `failedSections`; the others are refreshed. **One pull per listing per 15 minutes**, as on Airbnb: a second call inside the window returns `429 rate_limit_exceeded` with `Retry-After` and `nextPullAvailableAt`, and makes no Vrbo calls. Works with messaging or full access. Returns `404` when the listing is not linked to Vrbo, and `403 listing_inactive` when the listing is inactive.
|
|
1292
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1293
|
+
# @param [Hash] opts the optional parameters
|
|
1294
|
+
# @option opts [PullListingFromVrboRequest] :pull_listing_from_vrbo_request
|
|
1295
|
+
# @return [Array<(PullListingFromVrbo200Response, Integer, Hash)>] PullListingFromVrbo200Response data, response status code and response headers
|
|
1296
|
+
def pull_listing_from_vrbo_with_http_info(id, opts = {})
|
|
1297
|
+
if @api_client.config.debugging
|
|
1298
|
+
@api_client.config.logger.debug 'Calling API: ListingsApi.pull_listing_from_vrbo ...'
|
|
1299
|
+
end
|
|
1300
|
+
# verify the required parameter 'id' is set
|
|
1301
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1302
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ListingsApi.pull_listing_from_vrbo"
|
|
1303
|
+
end
|
|
1304
|
+
# resource path
|
|
1305
|
+
local_var_path = '/v1/listings/{id}/pull/vrbo'.sub('{id}', CGI.escape(id.to_s))
|
|
1306
|
+
|
|
1307
|
+
# query parameters
|
|
1308
|
+
query_params = opts[:query_params] || {}
|
|
1309
|
+
|
|
1310
|
+
# header parameters
|
|
1311
|
+
header_params = opts[:header_params] || {}
|
|
1312
|
+
# HTTP header 'Accept' (if needed)
|
|
1313
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1314
|
+
# HTTP header 'Content-Type'
|
|
1315
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1316
|
+
if !content_type.nil?
|
|
1317
|
+
header_params['Content-Type'] = content_type
|
|
1318
|
+
end
|
|
1319
|
+
|
|
1320
|
+
# form parameters
|
|
1321
|
+
form_params = opts[:form_params] || {}
|
|
1322
|
+
|
|
1323
|
+
# http body (model)
|
|
1324
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'pull_listing_from_vrbo_request'])
|
|
1325
|
+
|
|
1326
|
+
# return_type
|
|
1327
|
+
return_type = opts[:debug_return_type] || 'PullListingFromVrbo200Response'
|
|
1328
|
+
|
|
1329
|
+
# auth_names
|
|
1330
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1331
|
+
|
|
1332
|
+
new_options = opts.merge(
|
|
1333
|
+
:operation => :"ListingsApi.pull_listing_from_vrbo",
|
|
1334
|
+
:header_params => header_params,
|
|
1335
|
+
:query_params => query_params,
|
|
1336
|
+
:form_params => form_params,
|
|
1337
|
+
:body => post_body,
|
|
1338
|
+
:auth_names => auth_names,
|
|
1339
|
+
:return_type => return_type
|
|
1340
|
+
)
|
|
1341
|
+
|
|
1342
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1343
|
+
if @api_client.config.debugging
|
|
1344
|
+
@api_client.config.logger.debug "API called: ListingsApi#pull_listing_from_vrbo\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1345
|
+
end
|
|
1346
|
+
return data, status_code, headers
|
|
1347
|
+
end
|
|
1348
|
+
|
|
1279
1349
|
# Set a listing's markup on a channel
|
|
1280
1350
|
# Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). - **Vrbo** — one markup per connected **Vrbo account**, shared by every listing linked on it (`listingIds` names them). Prices reach Vrbo through its calendar queue. Returns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one. On Booking.com the markup belongs to the property, so setting it reprices every listing on that property (`affectedListingIds`). A listing on more than one property must name one with `hotelId`; without it the request is refused with `409 ambiguous_booking_mapping` listing the candidates, rather than repricing a property it guessed. On Vrbo the markup belongs to the connected Vrbo account, so setting it reprices every listing linked on that account (`affectedListingIds`). A listing linked on more than one account names one with `accountId`, else `409 ambiguous_vrbo_account`; a listing not linked to Vrbo is `409 listing_not_on_vrbo`. `markupPercent` is a percentage — `15` for 15%. A value between 0 and 1 is refused as a probable fraction, with the number to send instead.
|
|
1281
1351
|
# @param id [String] Repull listing id.
|