repull 0.2.53 → 0.2.54
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/listings_api.rb +8 -8
- data/lib/repull/api/vrbo_api.rb +3212 -54
- data/lib/repull/models/add_vrbo_listing_video200_response.rb +298 -0
- data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +150 -0
- data/lib/repull/models/add_vrbo_listing_video_request.rb +176 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +151 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner.rb +272 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_options_inner.rb +157 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_shown_when.rb +157 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_value.rb +106 -0
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +305 -0
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data_min_nights_range.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +182 -0
- data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_options_inner.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_tiers_inner.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response.rb +252 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_listing.rb +198 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +328 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_additional_info.rb +179 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_amenities.rb +150 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_booking_settings.rb +304 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_cancellation.rb +181 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_description.rb +167 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits_headline.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees.rb +222 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_cleaning.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_custom_inner.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_extra_guests.rb +188 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules.rb +276 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children.rb +169 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children_ages_inner.rb +156 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_events.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_pets.rb +188 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_smoking.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_location.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms.rb +159 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms_payments_inner.rb +156 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos.rb +169 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_items_inner.rb +209 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_rejected_inner.rb +166 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_pricing.rb +201 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_property.rb +198 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_property_interior_size.rb +192 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection.rb +189 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection_options_inner.rb +177 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates.rb +177 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates_days_inner.rb +196 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration.rb +159 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration_fields_inner.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms.rb +192 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_bed_types_inner.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_amenities_inner.rb +186 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_beds_inner.rb +194 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_story.rb +179 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes.rb +179 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes_rules_inner.rb +188 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations.rb +160 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations_items_inner.rb +167 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos.rb +149 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos_items_inner.rb +209 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide.rb +221 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_access.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_check_in.rb +169 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_contacts_inner.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_wifi.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_description200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_fees200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +223 -0
- data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +277 -0
- data/lib/repull/models/get_vrbo_listing_location200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +169 -0
- data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +160 -0
- data/lib/repull/models/get_vrbo_listing_photos200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +170 -0
- data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +202 -0
- data/lib/repull/models/get_vrbo_listing_property200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_property200_response_data.rb +199 -0
- data/lib/repull/models/get_vrbo_listing_protection200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +190 -0
- data/lib/repull/models/get_vrbo_listing_rates200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_registration200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_registration200_response_data.rb +160 -0
- data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +193 -0
- data/lib/repull/models/get_vrbo_listing_story200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_translations200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_translations200_response_data.rb +161 -0
- data/lib/repull/models/get_vrbo_listing_videos200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +150 -0
- data/lib/repull/models/get_vrbo_listing_welcome_guide200_response.rb +269 -0
- data/lib/repull/models/get_vrbo_listing_welcome_guide200_response_data.rb +222 -0
- data/lib/repull/models/get_vrbo_publish_job200_response.rb +22 -1
- data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +73 -6
- data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner.rb +235 -0
- data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner_errors_inner.rb +167 -0
- data/lib/repull/models/get_vrbo_publish_job200_response_job_skipped_inner.rb +156 -0
- data/lib/repull/models/publish_listing_to_vrbo_request.rb +48 -4
- data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +180 -0
- data/lib/repull/models/update_vrbo_listing_additional_info_request.rb +165 -0
- data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +151 -0
- data/lib/repull/models/update_vrbo_listing_amenities_request.rb +164 -0
- data/lib/repull/models/update_vrbo_listing_amenities_request_groups.rb +310 -0
- data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials.rb +167 -0
- data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials_values_value.rb +105 -0
- data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +305 -0
- data/lib/repull/models/update_vrbo_listing_booking_settings_request.rb +279 -0
- data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +182 -0
- data/lib/repull/models/update_vrbo_listing_cancellation_request.rb +176 -0
- data/lib/repull/models/update_vrbo_listing_cancellation_request_tiers_inner.rb +217 -0
- data/lib/repull/models/update_vrbo_listing_description200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_description200_response_data.rb +168 -0
- data/lib/repull/models/update_vrbo_listing_description_request.rb +212 -0
- data/lib/repull/models/update_vrbo_listing_fees200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +223 -0
- data/lib/repull/models/update_vrbo_listing_fees_request.rb +179 -0
- data/lib/repull/models/update_vrbo_listing_fees_request_cleaning.rb +225 -0
- data/lib/repull/models/update_vrbo_listing_fees_request_custom_inner.rb +280 -0
- data/lib/repull/models/update_vrbo_listing_fees_request_extra_guests.rb +246 -0
- data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +277 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request.rb +332 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_children.rb +168 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_events.rb +177 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_pets.rb +187 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_allowed_pets.rb +104 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_max_weight.rb +104 -0
- data/lib/repull/models/update_vrbo_listing_house_rules_request_smoking.rb +177 -0
- data/lib/repull/models/update_vrbo_listing_location200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +169 -0
- data/lib/repull/models/update_vrbo_listing_location_request.rb +164 -0
- data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +160 -0
- data/lib/repull/models/update_vrbo_listing_payment_terms_request.rb +193 -0
- data/lib/repull/models/update_vrbo_listing_payment_terms_request_payments_inner.rb +199 -0
- data/lib/repull/models/update_vrbo_listing_photos200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_photos200_response_data.rb +170 -0
- data/lib/repull/models/update_vrbo_listing_photos_request.rb +192 -0
- data/lib/repull/models/update_vrbo_listing_photos_request_add_inner.rb +184 -0
- data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +202 -0
- data/lib/repull/models/update_vrbo_listing_pricing_request.rb +173 -0
- data/lib/repull/models/update_vrbo_listing_property200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_property200_response_data.rb +199 -0
- data/lib/repull/models/update_vrbo_listing_property_request.rb +185 -0
- data/lib/repull/models/update_vrbo_listing_property_request_interior_size.rb +223 -0
- data/lib/repull/models/update_vrbo_listing_protection200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +190 -0
- data/lib/repull/models/update_vrbo_listing_protection_request.rb +159 -0
- data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit.rb +104 -0
- data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit_one_of.rb +173 -0
- data/lib/repull/models/update_vrbo_listing_rates200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +178 -0
- data/lib/repull/models/update_vrbo_listing_rates_request.rb +305 -0
- data/lib/repull/models/update_vrbo_listing_rates_request_nightly_rates.rb +335 -0
- data/lib/repull/models/update_vrbo_listing_registration200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_registration200_response_data.rb +160 -0
- data/lib/repull/models/update_vrbo_listing_registration_request.rb +166 -0
- data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner.rb +177 -0
- data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner_value.rb +105 -0
- data/lib/repull/models/update_vrbo_listing_rooms200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_rooms200_response_data.rb +193 -0
- data/lib/repull/models/update_vrbo_listing_rooms_request.rb +171 -0
- data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner.rb +213 -0
- data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities.rb +105 -0
- data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities_one_of_inner.rb +165 -0
- data/lib/repull/models/update_vrbo_listing_rooms_request_update_inner.rb +212 -0
- data/lib/repull/models/update_vrbo_listing_story200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +180 -0
- data/lib/repull/models/update_vrbo_listing_story_request.rb +165 -0
- data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +180 -0
- data/lib/repull/models/update_vrbo_listing_taxes_request.rb +167 -0
- data/lib/repull/models/update_vrbo_listing_taxes_request_partner_tax_settings.rb +175 -0
- data/lib/repull/models/update_vrbo_listing_taxes_request_stay_tax.rb +173 -0
- data/lib/repull/models/update_vrbo_listing_translations200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_translations200_response_data.rb +161 -0
- data/lib/repull/models/update_vrbo_listing_translations_request.rb +160 -0
- data/lib/repull/models/update_vrbo_listing_translations_request_set_inner.rb +184 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide200_response.rb +298 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide200_response_data.rb +222 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide_request.rb +204 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide_request_access.rb +203 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide_request_check_in.rb +173 -0
- data/lib/repull/models/update_vrbo_listing_welcome_guide_request_wifi.rb +222 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +199 -0
- data/openapi/v1.json +16331 -8
- metadata +201 -2
data/lib/repull/api/vrbo_api.rb
CHANGED
|
@@ -19,35 +19,121 @@ module Repull
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
23
|
-
#
|
|
22
|
+
# Add a video to the Vrbo listing
|
|
23
|
+
# Add one video to the listing's existing Vrbo listing from an https URL. POST `{url}`: an https URL of an MP4, MOV, WEBM, AVI or QT file (Vrbo takes up to 5 GB; we take up to 2 GB). The file is downloaded and uploaded to Vrbo, which then processes and reviews it. DELETE `?videoId=` removes videos. **Cost:** the file is downloaded and uploaded to Vrbo inside the request — allow several minutes for a large file. The answer lists the videos as Vrbo has them; a new one shows Vrbo's processing status, and `rejectedReasons` once its review refuses it. Each call adds a video, so a retry after a timeout should read the videos first. Needs full access (`403 vrbo_messaging_access` otherwise).
|
|
24
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
25
|
+
# @param add_vrbo_listing_video_request [AddVrboListingVideoRequest]
|
|
24
26
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @option opts [String] :
|
|
26
|
-
# @return [
|
|
27
|
-
def
|
|
28
|
-
data, _status_code, _headers =
|
|
27
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
28
|
+
# @return [AddVrboListingVideo200Response]
|
|
29
|
+
def add_vrbo_listing_video(id, add_vrbo_listing_video_request, opts = {})
|
|
30
|
+
data, _status_code, _headers = add_vrbo_listing_video_with_http_info(id, add_vrbo_listing_video_request, opts)
|
|
29
31
|
data
|
|
30
32
|
end
|
|
31
33
|
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
+
# Add a video to the Vrbo listing
|
|
35
|
+
# Add one video to the listing's existing Vrbo listing from an https URL. POST `{url}`: an https URL of an MP4, MOV, WEBM, AVI or QT file (Vrbo takes up to 5 GB; we take up to 2 GB). The file is downloaded and uploaded to Vrbo, which then processes and reviews it. DELETE `?videoId=` removes videos. **Cost:** the file is downloaded and uploaded to Vrbo inside the request — allow several minutes for a large file. The answer lists the videos as Vrbo has them; a new one shows Vrbo's processing status, and `rejectedReasons` once its review refuses it. Each call adds a video, so a retry after a timeout should read the videos first. Needs full access (`403 vrbo_messaging_access` otherwise).
|
|
36
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
37
|
+
# @param add_vrbo_listing_video_request [AddVrboListingVideoRequest]
|
|
34
38
|
# @param [Hash] opts the optional parameters
|
|
35
|
-
# @option opts [String] :
|
|
36
|
-
# @return [Array<(
|
|
37
|
-
def
|
|
39
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
40
|
+
# @return [Array<(AddVrboListingVideo200Response, Integer, Hash)>] AddVrboListingVideo200Response data, response status code and response headers
|
|
41
|
+
def add_vrbo_listing_video_with_http_info(id, add_vrbo_listing_video_request, opts = {})
|
|
38
42
|
if @api_client.config.debugging
|
|
39
|
-
@api_client.config.logger.debug 'Calling API: VRBOApi.
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.add_vrbo_listing_video ...'
|
|
40
44
|
end
|
|
41
|
-
|
|
42
|
-
if @api_client.config.client_side_validation &&
|
|
43
|
-
fail ArgumentError, "
|
|
45
|
+
# verify the required parameter 'id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.add_vrbo_listing_video"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'add_vrbo_listing_video_request' is set
|
|
50
|
+
if @api_client.config.client_side_validation && add_vrbo_listing_video_request.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'add_vrbo_listing_video_request' when calling VRBOApi.add_vrbo_listing_video"
|
|
44
52
|
end
|
|
45
53
|
# resource path
|
|
46
|
-
local_var_path = '/v1/channels/vrbo/listings'
|
|
54
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/videos'.sub('{id}', CGI.escape(id.to_s))
|
|
47
55
|
|
|
48
56
|
# query parameters
|
|
49
57
|
query_params = opts[:query_params] || {}
|
|
50
|
-
query_params[:'
|
|
58
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
59
|
+
|
|
60
|
+
# header parameters
|
|
61
|
+
header_params = opts[:header_params] || {}
|
|
62
|
+
# HTTP header 'Accept' (if needed)
|
|
63
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
64
|
+
# HTTP header 'Content-Type'
|
|
65
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
66
|
+
if !content_type.nil?
|
|
67
|
+
header_params['Content-Type'] = content_type
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# form parameters
|
|
71
|
+
form_params = opts[:form_params] || {}
|
|
72
|
+
|
|
73
|
+
# http body (model)
|
|
74
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(add_vrbo_listing_video_request)
|
|
75
|
+
|
|
76
|
+
# return_type
|
|
77
|
+
return_type = opts[:debug_return_type] || 'AddVrboListingVideo200Response'
|
|
78
|
+
|
|
79
|
+
# auth_names
|
|
80
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
81
|
+
|
|
82
|
+
new_options = opts.merge(
|
|
83
|
+
:operation => :"VRBOApi.add_vrbo_listing_video",
|
|
84
|
+
:header_params => header_params,
|
|
85
|
+
:query_params => query_params,
|
|
86
|
+
:form_params => form_params,
|
|
87
|
+
:body => post_body,
|
|
88
|
+
:auth_names => auth_names,
|
|
89
|
+
:return_type => return_type
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
93
|
+
if @api_client.config.debugging
|
|
94
|
+
@api_client.config.logger.debug "API called: VRBOApi#add_vrbo_listing_video\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
|
+
end
|
|
96
|
+
return data, status_code, headers
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Remove videos from the Vrbo listing
|
|
100
|
+
# Remove videos from the listing's existing Vrbo listing by their `id` (from `GET …/videos`). The answer lists the videos Vrbo has left. Needs full access (`403 vrbo_messaging_access` otherwise).
|
|
101
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
102
|
+
# @param video_id [String] The `id` of the video to remove (comma-separated for several).
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
105
|
+
# @return [AddVrboListingVideo200Response]
|
|
106
|
+
def delete_vrbo_listing_videos(id, video_id, opts = {})
|
|
107
|
+
data, _status_code, _headers = delete_vrbo_listing_videos_with_http_info(id, video_id, opts)
|
|
108
|
+
data
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Remove videos from the Vrbo listing
|
|
112
|
+
# Remove videos from the listing's existing Vrbo listing by their `id` (from `GET …/videos`). The answer lists the videos Vrbo has left. Needs full access (`403 vrbo_messaging_access` otherwise).
|
|
113
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
114
|
+
# @param video_id [String] The `id` of the video to remove (comma-separated for several).
|
|
115
|
+
# @param [Hash] opts the optional parameters
|
|
116
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
117
|
+
# @return [Array<(AddVrboListingVideo200Response, Integer, Hash)>] AddVrboListingVideo200Response data, response status code and response headers
|
|
118
|
+
def delete_vrbo_listing_videos_with_http_info(id, video_id, opts = {})
|
|
119
|
+
if @api_client.config.debugging
|
|
120
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.delete_vrbo_listing_videos ...'
|
|
121
|
+
end
|
|
122
|
+
# verify the required parameter 'id' is set
|
|
123
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
124
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.delete_vrbo_listing_videos"
|
|
125
|
+
end
|
|
126
|
+
# verify the required parameter 'video_id' is set
|
|
127
|
+
if @api_client.config.client_side_validation && video_id.nil?
|
|
128
|
+
fail ArgumentError, "Missing the required parameter 'video_id' when calling VRBOApi.delete_vrbo_listing_videos"
|
|
129
|
+
end
|
|
130
|
+
# resource path
|
|
131
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/videos'.sub('{id}', CGI.escape(id.to_s))
|
|
132
|
+
|
|
133
|
+
# query parameters
|
|
134
|
+
query_params = opts[:query_params] || {}
|
|
135
|
+
query_params[:'videoId'] = video_id
|
|
136
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
51
137
|
|
|
52
138
|
# header parameters
|
|
53
139
|
header_params = opts[:header_params] || {}
|
|
@@ -61,13 +147,79 @@ module Repull
|
|
|
61
147
|
post_body = opts[:debug_body]
|
|
62
148
|
|
|
63
149
|
# return_type
|
|
64
|
-
return_type = opts[:debug_return_type] || '
|
|
150
|
+
return_type = opts[:debug_return_type] || 'AddVrboListingVideo200Response'
|
|
65
151
|
|
|
66
152
|
# auth_names
|
|
67
153
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
68
154
|
|
|
69
155
|
new_options = opts.merge(
|
|
70
|
-
:operation => :"VRBOApi.
|
|
156
|
+
:operation => :"VRBOApi.delete_vrbo_listing_videos",
|
|
157
|
+
:header_params => header_params,
|
|
158
|
+
:query_params => query_params,
|
|
159
|
+
:form_params => form_params,
|
|
160
|
+
:body => post_body,
|
|
161
|
+
:auth_names => auth_names,
|
|
162
|
+
:return_type => return_type
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
166
|
+
if @api_client.config.debugging
|
|
167
|
+
@api_client.config.logger.debug "API called: VRBOApi#delete_vrbo_listing_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
168
|
+
end
|
|
169
|
+
return data, status_code, headers
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Get the Vrbo additional details
|
|
173
|
+
# The free-text additional details for the property, its bedrooms and its bathrooms. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
174
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
175
|
+
# @param [Hash] opts the optional parameters
|
|
176
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
177
|
+
# @return [GetVrboListingAdditionalInfo200Response]
|
|
178
|
+
def get_vrbo_listing_additional_info(id, opts = {})
|
|
179
|
+
data, _status_code, _headers = get_vrbo_listing_additional_info_with_http_info(id, opts)
|
|
180
|
+
data
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Get the Vrbo additional details
|
|
184
|
+
# The free-text additional details for the property, its bedrooms and its bathrooms. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
185
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
186
|
+
# @param [Hash] opts the optional parameters
|
|
187
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
188
|
+
# @return [Array<(GetVrboListingAdditionalInfo200Response, Integer, Hash)>] GetVrboListingAdditionalInfo200Response data, response status code and response headers
|
|
189
|
+
def get_vrbo_listing_additional_info_with_http_info(id, opts = {})
|
|
190
|
+
if @api_client.config.debugging
|
|
191
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_additional_info ...'
|
|
192
|
+
end
|
|
193
|
+
# verify the required parameter 'id' is set
|
|
194
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
195
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_additional_info"
|
|
196
|
+
end
|
|
197
|
+
# resource path
|
|
198
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/additional-info'.sub('{id}', CGI.escape(id.to_s))
|
|
199
|
+
|
|
200
|
+
# query parameters
|
|
201
|
+
query_params = opts[:query_params] || {}
|
|
202
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
203
|
+
|
|
204
|
+
# header parameters
|
|
205
|
+
header_params = opts[:header_params] || {}
|
|
206
|
+
# HTTP header 'Accept' (if needed)
|
|
207
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:debug_body]
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingAdditionalInfo200Response'
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:operation => :"VRBOApi.get_vrbo_listing_additional_info",
|
|
71
223
|
:header_params => header_params,
|
|
72
224
|
:query_params => query_params,
|
|
73
225
|
:form_params => form_params,
|
|
@@ -78,61 +230,177 @@ module Repull
|
|
|
78
230
|
|
|
79
231
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
80
232
|
if @api_client.config.debugging
|
|
81
|
-
@api_client.config.logger.debug "API called: VRBOApi#
|
|
233
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_additional_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
234
|
end
|
|
83
235
|
return data, status_code, headers
|
|
84
236
|
end
|
|
85
237
|
|
|
86
|
-
#
|
|
87
|
-
#
|
|
238
|
+
# Get the Vrbo amenities
|
|
239
|
+
# Vrbo's 19 amenity groups (~440 fields) — each field with its id, type (checkbox, choice, text, number, measurement, checkboxGroup), current value, options and the parent it is shown under (`shownWhen`). Includes location & view, nearby attractions and check-out instructions. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call per group (19 in all; narrow with `?groups=`) on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
240
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
88
241
|
# @param [Hash] opts the optional parameters
|
|
89
|
-
# @option opts [String] :
|
|
90
|
-
# @option opts [
|
|
91
|
-
# @
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def list_vrbo_reservations(opts = {})
|
|
95
|
-
data, _status_code, _headers = list_vrbo_reservations_with_http_info(opts)
|
|
242
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
243
|
+
# @option opts [String] :groups Amenity groups to read, comma-separated (default: all 19 — one Vrbo call each): essentials, internet, climateControl, general, office, kitchenAndDining, parking, poolAndSpa, sustainability, entertainment, outdoor, onsiteService, accessibility, homeSafety, safetyDevices, enhancedCleaning, locationAndView, localAttractionsAndActivities, checkoutInstructions.
|
|
244
|
+
# @return [GetVrboListingAmenities200Response]
|
|
245
|
+
def get_vrbo_listing_amenities(id, opts = {})
|
|
246
|
+
data, _status_code, _headers = get_vrbo_listing_amenities_with_http_info(id, opts)
|
|
96
247
|
data
|
|
97
248
|
end
|
|
98
249
|
|
|
99
|
-
#
|
|
100
|
-
#
|
|
250
|
+
# Get the Vrbo amenities
|
|
251
|
+
# Vrbo's 19 amenity groups (~440 fields) — each field with its id, type (checkbox, choice, text, number, measurement, checkboxGroup), current value, options and the parent it is shown under (`shownWhen`). Includes location & view, nearby attractions and check-out instructions. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call per group (19 in all; narrow with `?groups=`) on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
252
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
101
253
|
# @param [Hash] opts the optional parameters
|
|
102
|
-
# @option opts [String] :
|
|
103
|
-
# @option opts [
|
|
104
|
-
# @
|
|
105
|
-
|
|
106
|
-
# @return [Array<(VrboReservationListResponse, Integer, Hash)>] VrboReservationListResponse data, response status code and response headers
|
|
107
|
-
def list_vrbo_reservations_with_http_info(opts = {})
|
|
254
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
255
|
+
# @option opts [String] :groups Amenity groups to read, comma-separated (default: all 19 — one Vrbo call each): essentials, internet, climateControl, general, office, kitchenAndDining, parking, poolAndSpa, sustainability, entertainment, outdoor, onsiteService, accessibility, homeSafety, safetyDevices, enhancedCleaning, locationAndView, localAttractionsAndActivities, checkoutInstructions.
|
|
256
|
+
# @return [Array<(GetVrboListingAmenities200Response, Integer, Hash)>] GetVrboListingAmenities200Response data, response status code and response headers
|
|
257
|
+
def get_vrbo_listing_amenities_with_http_info(id, opts = {})
|
|
108
258
|
if @api_client.config.debugging
|
|
109
|
-
@api_client.config.logger.debug 'Calling API: VRBOApi.
|
|
259
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_amenities ...'
|
|
110
260
|
end
|
|
111
|
-
|
|
112
|
-
|
|
261
|
+
# verify the required parameter 'id' is set
|
|
262
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
263
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_amenities"
|
|
113
264
|
end
|
|
265
|
+
# resource path
|
|
266
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/amenities'.sub('{id}', CGI.escape(id.to_s))
|
|
114
267
|
|
|
115
|
-
|
|
116
|
-
|
|
268
|
+
# query parameters
|
|
269
|
+
query_params = opts[:query_params] || {}
|
|
270
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
271
|
+
query_params[:'groups'] = opts[:'groups'] if !opts[:'groups'].nil?
|
|
272
|
+
|
|
273
|
+
# header parameters
|
|
274
|
+
header_params = opts[:header_params] || {}
|
|
275
|
+
# HTTP header 'Accept' (if needed)
|
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
277
|
+
|
|
278
|
+
# form parameters
|
|
279
|
+
form_params = opts[:form_params] || {}
|
|
280
|
+
|
|
281
|
+
# http body (model)
|
|
282
|
+
post_body = opts[:debug_body]
|
|
283
|
+
|
|
284
|
+
# return_type
|
|
285
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingAmenities200Response'
|
|
286
|
+
|
|
287
|
+
# auth_names
|
|
288
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
289
|
+
|
|
290
|
+
new_options = opts.merge(
|
|
291
|
+
:operation => :"VRBOApi.get_vrbo_listing_amenities",
|
|
292
|
+
:header_params => header_params,
|
|
293
|
+
:query_params => query_params,
|
|
294
|
+
:form_params => form_params,
|
|
295
|
+
:body => post_body,
|
|
296
|
+
:auth_names => auth_names,
|
|
297
|
+
:return_type => return_type
|
|
298
|
+
)
|
|
299
|
+
|
|
300
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
301
|
+
if @api_client.config.debugging
|
|
302
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_amenities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
117
303
|
end
|
|
304
|
+
return data, status_code, headers
|
|
305
|
+
end
|
|
118
306
|
|
|
119
|
-
|
|
120
|
-
|
|
307
|
+
# Get the Vrbo booking settings
|
|
308
|
+
# Instant book or quote-and-hold, minimum nights, notice before arrival, how far ahead guests can book, maximum stay, access type. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
309
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
310
|
+
# @param [Hash] opts the optional parameters
|
|
311
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
312
|
+
# @return [GetVrboListingBookingSettings200Response]
|
|
313
|
+
def get_vrbo_listing_booking_settings(id, opts = {})
|
|
314
|
+
data, _status_code, _headers = get_vrbo_listing_booking_settings_with_http_info(id, opts)
|
|
315
|
+
data
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Get the Vrbo booking settings
|
|
319
|
+
# Instant book or quote-and-hold, minimum nights, notice before arrival, how far ahead guests can book, maximum stay, access type. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
320
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
323
|
+
# @return [Array<(GetVrboListingBookingSettings200Response, Integer, Hash)>] GetVrboListingBookingSettings200Response data, response status code and response headers
|
|
324
|
+
def get_vrbo_listing_booking_settings_with_http_info(id, opts = {})
|
|
325
|
+
if @api_client.config.debugging
|
|
326
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_booking_settings ...'
|
|
327
|
+
end
|
|
328
|
+
# verify the required parameter 'id' is set
|
|
329
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
330
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_booking_settings"
|
|
121
331
|
end
|
|
332
|
+
# resource path
|
|
333
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/booking-settings'.sub('{id}', CGI.escape(id.to_s))
|
|
122
334
|
|
|
123
|
-
|
|
124
|
-
|
|
335
|
+
# query parameters
|
|
336
|
+
query_params = opts[:query_params] || {}
|
|
337
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
338
|
+
|
|
339
|
+
# header parameters
|
|
340
|
+
header_params = opts[:header_params] || {}
|
|
341
|
+
# HTTP header 'Accept' (if needed)
|
|
342
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
343
|
+
|
|
344
|
+
# form parameters
|
|
345
|
+
form_params = opts[:form_params] || {}
|
|
346
|
+
|
|
347
|
+
# http body (model)
|
|
348
|
+
post_body = opts[:debug_body]
|
|
349
|
+
|
|
350
|
+
# return_type
|
|
351
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingBookingSettings200Response'
|
|
352
|
+
|
|
353
|
+
# auth_names
|
|
354
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
355
|
+
|
|
356
|
+
new_options = opts.merge(
|
|
357
|
+
:operation => :"VRBOApi.get_vrbo_listing_booking_settings",
|
|
358
|
+
:header_params => header_params,
|
|
359
|
+
:query_params => query_params,
|
|
360
|
+
:form_params => form_params,
|
|
361
|
+
:body => post_body,
|
|
362
|
+
:auth_names => auth_names,
|
|
363
|
+
:return_type => return_type
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_booking_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
125
369
|
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Get the Vrbo cancellation policy
|
|
374
|
+
# The policy (Vrbo's named ones or custom refund windows), seasonal overrides, and the named policies Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
375
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
376
|
+
# @param [Hash] opts the optional parameters
|
|
377
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
378
|
+
# @return [GetVrboListingCancellation200Response]
|
|
379
|
+
def get_vrbo_listing_cancellation(id, opts = {})
|
|
380
|
+
data, _status_code, _headers = get_vrbo_listing_cancellation_with_http_info(id, opts)
|
|
381
|
+
data
|
|
382
|
+
end
|
|
126
383
|
|
|
384
|
+
# Get the Vrbo cancellation policy
|
|
385
|
+
# The policy (Vrbo's named ones or custom refund windows), seasonal overrides, and the named policies Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
386
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
387
|
+
# @param [Hash] opts the optional parameters
|
|
388
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
389
|
+
# @return [Array<(GetVrboListingCancellation200Response, Integer, Hash)>] GetVrboListingCancellation200Response data, response status code and response headers
|
|
390
|
+
def get_vrbo_listing_cancellation_with_http_info(id, opts = {})
|
|
391
|
+
if @api_client.config.debugging
|
|
392
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_cancellation ...'
|
|
393
|
+
end
|
|
394
|
+
# verify the required parameter 'id' is set
|
|
395
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
396
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_cancellation"
|
|
397
|
+
end
|
|
127
398
|
# resource path
|
|
128
|
-
local_var_path = '/v1/channels/vrbo/
|
|
399
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/cancellation'.sub('{id}', CGI.escape(id.to_s))
|
|
129
400
|
|
|
130
401
|
# query parameters
|
|
131
402
|
query_params = opts[:query_params] || {}
|
|
132
|
-
query_params[:'
|
|
133
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
134
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
135
|
-
query_params[:'include_total'] = opts[:'include_total'] if !opts[:'include_total'].nil?
|
|
403
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
136
404
|
|
|
137
405
|
# header parameters
|
|
138
406
|
header_params = opts[:header_params] || {}
|
|
@@ -146,13 +414,13 @@ module Repull
|
|
|
146
414
|
post_body = opts[:debug_body]
|
|
147
415
|
|
|
148
416
|
# return_type
|
|
149
|
-
return_type = opts[:debug_return_type] || '
|
|
417
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingCancellation200Response'
|
|
150
418
|
|
|
151
419
|
# auth_names
|
|
152
420
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
153
421
|
|
|
154
422
|
new_options = opts.merge(
|
|
155
|
-
:operation => :"VRBOApi.
|
|
423
|
+
:operation => :"VRBOApi.get_vrbo_listing_cancellation",
|
|
156
424
|
:header_params => header_params,
|
|
157
425
|
:query_params => query_params,
|
|
158
426
|
:form_params => form_params,
|
|
@@ -163,7 +431,2897 @@ module Repull
|
|
|
163
431
|
|
|
164
432
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
165
433
|
if @api_client.config.debugging
|
|
166
|
-
@api_client.config.logger.debug "API called: VRBOApi#
|
|
434
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_cancellation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
435
|
+
end
|
|
436
|
+
return data, status_code, headers
|
|
437
|
+
end
|
|
438
|
+
|
|
439
|
+
# Get several Vrbo listing sections
|
|
440
|
+
# Read several sections of the listing's Vrbo listing in one call. `sections` is required: name them (`?sections=description,house-rules,fees`) or ask for `all`. **Cost:** each section is read live on Vrbo, with calls spaced ~3 s apart per account — `all` is about 45 Vrbo calls, **around 2.5 minutes**. Prefer the one-section endpoints (`GET /v1/channels/vrbo/listings/{id}/{section}`) and never poll this one. A section that fails carries `{ error: { code, message } }`; the others still answer. Returns `404` when the listing is not linked to Vrbo, and `403 listing_inactive` when the listing is inactive.
|
|
441
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
442
|
+
# @param sections [String] Comma-separated sections, or `all`: description, property, story, additional-info, translations, photos, amenities, rooms, location, house-rules, booking-settings, cancellation, fees, pricing, rates, payment-terms, protection, taxes, registration, welcome-guide, videos.
|
|
443
|
+
# @param [Hash] opts the optional parameters
|
|
444
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
445
|
+
# @return [GetVrboListingContent200Response]
|
|
446
|
+
def get_vrbo_listing_content(id, sections, opts = {})
|
|
447
|
+
data, _status_code, _headers = get_vrbo_listing_content_with_http_info(id, sections, opts)
|
|
448
|
+
data
|
|
449
|
+
end
|
|
450
|
+
|
|
451
|
+
# Get several Vrbo listing sections
|
|
452
|
+
# Read several sections of the listing's Vrbo listing in one call. `sections` is required: name them (`?sections=description,house-rules,fees`) or ask for `all`. **Cost:** each section is read live on Vrbo, with calls spaced ~3 s apart per account — `all` is about 45 Vrbo calls, **around 2.5 minutes**. Prefer the one-section endpoints (`GET /v1/channels/vrbo/listings/{id}/{section}`) and never poll this one. A section that fails carries `{ error: { code, message } }`; the others still answer. Returns `404` when the listing is not linked to Vrbo, and `403 listing_inactive` when the listing is inactive.
|
|
453
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
454
|
+
# @param sections [String] Comma-separated sections, or `all`: description, property, story, additional-info, translations, photos, amenities, rooms, location, house-rules, booking-settings, cancellation, fees, pricing, rates, payment-terms, protection, taxes, registration, welcome-guide, videos.
|
|
455
|
+
# @param [Hash] opts the optional parameters
|
|
456
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
457
|
+
# @return [Array<(GetVrboListingContent200Response, Integer, Hash)>] GetVrboListingContent200Response data, response status code and response headers
|
|
458
|
+
def get_vrbo_listing_content_with_http_info(id, sections, opts = {})
|
|
459
|
+
if @api_client.config.debugging
|
|
460
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_content ...'
|
|
461
|
+
end
|
|
462
|
+
# verify the required parameter 'id' is set
|
|
463
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
464
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_content"
|
|
465
|
+
end
|
|
466
|
+
# verify the required parameter 'sections' is set
|
|
467
|
+
if @api_client.config.client_side_validation && sections.nil?
|
|
468
|
+
fail ArgumentError, "Missing the required parameter 'sections' when calling VRBOApi.get_vrbo_listing_content"
|
|
469
|
+
end
|
|
470
|
+
# resource path
|
|
471
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/content'.sub('{id}', CGI.escape(id.to_s))
|
|
472
|
+
|
|
473
|
+
# query parameters
|
|
474
|
+
query_params = opts[:query_params] || {}
|
|
475
|
+
query_params[:'sections'] = sections
|
|
476
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
477
|
+
|
|
478
|
+
# header parameters
|
|
479
|
+
header_params = opts[:header_params] || {}
|
|
480
|
+
# HTTP header 'Accept' (if needed)
|
|
481
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
482
|
+
|
|
483
|
+
# form parameters
|
|
484
|
+
form_params = opts[:form_params] || {}
|
|
485
|
+
|
|
486
|
+
# http body (model)
|
|
487
|
+
post_body = opts[:debug_body]
|
|
488
|
+
|
|
489
|
+
# return_type
|
|
490
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingContent200Response'
|
|
491
|
+
|
|
492
|
+
# auth_names
|
|
493
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
494
|
+
|
|
495
|
+
new_options = opts.merge(
|
|
496
|
+
:operation => :"VRBOApi.get_vrbo_listing_content",
|
|
497
|
+
:header_params => header_params,
|
|
498
|
+
:query_params => query_params,
|
|
499
|
+
:form_params => form_params,
|
|
500
|
+
:body => post_body,
|
|
501
|
+
:auth_names => auth_names,
|
|
502
|
+
:return_type => return_type
|
|
503
|
+
)
|
|
504
|
+
|
|
505
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
506
|
+
if @api_client.config.debugging
|
|
507
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
508
|
+
end
|
|
509
|
+
return data, status_code, headers
|
|
510
|
+
end
|
|
511
|
+
|
|
512
|
+
# Get the Vrbo headline and description
|
|
513
|
+
# The headline (10–80 characters) and the description guests read. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
514
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
515
|
+
# @param [Hash] opts the optional parameters
|
|
516
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
517
|
+
# @return [GetVrboListingDescription200Response]
|
|
518
|
+
def get_vrbo_listing_description(id, opts = {})
|
|
519
|
+
data, _status_code, _headers = get_vrbo_listing_description_with_http_info(id, opts)
|
|
520
|
+
data
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Get the Vrbo headline and description
|
|
524
|
+
# The headline (10–80 characters) and the description guests read. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
525
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
526
|
+
# @param [Hash] opts the optional parameters
|
|
527
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
528
|
+
# @return [Array<(GetVrboListingDescription200Response, Integer, Hash)>] GetVrboListingDescription200Response data, response status code and response headers
|
|
529
|
+
def get_vrbo_listing_description_with_http_info(id, opts = {})
|
|
530
|
+
if @api_client.config.debugging
|
|
531
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_description ...'
|
|
532
|
+
end
|
|
533
|
+
# verify the required parameter 'id' is set
|
|
534
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
535
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_description"
|
|
536
|
+
end
|
|
537
|
+
# resource path
|
|
538
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/description'.sub('{id}', CGI.escape(id.to_s))
|
|
539
|
+
|
|
540
|
+
# query parameters
|
|
541
|
+
query_params = opts[:query_params] || {}
|
|
542
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
543
|
+
|
|
544
|
+
# header parameters
|
|
545
|
+
header_params = opts[:header_params] || {}
|
|
546
|
+
# HTTP header 'Accept' (if needed)
|
|
547
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
548
|
+
|
|
549
|
+
# form parameters
|
|
550
|
+
form_params = opts[:form_params] || {}
|
|
551
|
+
|
|
552
|
+
# http body (model)
|
|
553
|
+
post_body = opts[:debug_body]
|
|
554
|
+
|
|
555
|
+
# return_type
|
|
556
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingDescription200Response'
|
|
557
|
+
|
|
558
|
+
# auth_names
|
|
559
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
560
|
+
|
|
561
|
+
new_options = opts.merge(
|
|
562
|
+
:operation => :"VRBOApi.get_vrbo_listing_description",
|
|
563
|
+
:header_params => header_params,
|
|
564
|
+
:query_params => query_params,
|
|
565
|
+
:form_params => form_params,
|
|
566
|
+
:body => post_body,
|
|
567
|
+
:auth_names => auth_names,
|
|
568
|
+
:return_type => return_type
|
|
569
|
+
)
|
|
570
|
+
|
|
571
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
572
|
+
if @api_client.config.debugging
|
|
573
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_description\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
574
|
+
end
|
|
575
|
+
return data, status_code, headers
|
|
576
|
+
end
|
|
577
|
+
|
|
578
|
+
# Get the Vrbo fees
|
|
579
|
+
# Cleaning, pet and extra-guest fees and custom fees, with their type (per stay / per night) and whether they are taxable. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
580
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
581
|
+
# @param [Hash] opts the optional parameters
|
|
582
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
583
|
+
# @return [GetVrboListingFees200Response]
|
|
584
|
+
def get_vrbo_listing_fees(id, opts = {})
|
|
585
|
+
data, _status_code, _headers = get_vrbo_listing_fees_with_http_info(id, opts)
|
|
586
|
+
data
|
|
587
|
+
end
|
|
588
|
+
|
|
589
|
+
# Get the Vrbo fees
|
|
590
|
+
# Cleaning, pet and extra-guest fees and custom fees, with their type (per stay / per night) and whether they are taxable. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
591
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
592
|
+
# @param [Hash] opts the optional parameters
|
|
593
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
594
|
+
# @return [Array<(GetVrboListingFees200Response, Integer, Hash)>] GetVrboListingFees200Response data, response status code and response headers
|
|
595
|
+
def get_vrbo_listing_fees_with_http_info(id, opts = {})
|
|
596
|
+
if @api_client.config.debugging
|
|
597
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_fees ...'
|
|
598
|
+
end
|
|
599
|
+
# verify the required parameter 'id' is set
|
|
600
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
601
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_fees"
|
|
602
|
+
end
|
|
603
|
+
# resource path
|
|
604
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/fees'.sub('{id}', CGI.escape(id.to_s))
|
|
605
|
+
|
|
606
|
+
# query parameters
|
|
607
|
+
query_params = opts[:query_params] || {}
|
|
608
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
609
|
+
|
|
610
|
+
# header parameters
|
|
611
|
+
header_params = opts[:header_params] || {}
|
|
612
|
+
# HTTP header 'Accept' (if needed)
|
|
613
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
614
|
+
|
|
615
|
+
# form parameters
|
|
616
|
+
form_params = opts[:form_params] || {}
|
|
617
|
+
|
|
618
|
+
# http body (model)
|
|
619
|
+
post_body = opts[:debug_body]
|
|
620
|
+
|
|
621
|
+
# return_type
|
|
622
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingFees200Response'
|
|
623
|
+
|
|
624
|
+
# auth_names
|
|
625
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
626
|
+
|
|
627
|
+
new_options = opts.merge(
|
|
628
|
+
:operation => :"VRBOApi.get_vrbo_listing_fees",
|
|
629
|
+
:header_params => header_params,
|
|
630
|
+
:query_params => query_params,
|
|
631
|
+
:form_params => form_params,
|
|
632
|
+
:body => post_body,
|
|
633
|
+
:auth_names => auth_names,
|
|
634
|
+
:return_type => return_type
|
|
635
|
+
)
|
|
636
|
+
|
|
637
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
638
|
+
if @api_client.config.debugging
|
|
639
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_fees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
640
|
+
end
|
|
641
|
+
return data, status_code, headers
|
|
642
|
+
end
|
|
643
|
+
|
|
644
|
+
# Get the Vrbo house rules
|
|
645
|
+
# Check-in/out times, maximum guests and adults, minimum age, children (with age bands), pets (count, weight), smoking (inside/outside), events (attendee cap), up to 3 custom rules, the rental agreement. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
646
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
647
|
+
# @param [Hash] opts the optional parameters
|
|
648
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
649
|
+
# @return [GetVrboListingHouseRules200Response]
|
|
650
|
+
def get_vrbo_listing_house_rules(id, opts = {})
|
|
651
|
+
data, _status_code, _headers = get_vrbo_listing_house_rules_with_http_info(id, opts)
|
|
652
|
+
data
|
|
653
|
+
end
|
|
654
|
+
|
|
655
|
+
# Get the Vrbo house rules
|
|
656
|
+
# Check-in/out times, maximum guests and adults, minimum age, children (with age bands), pets (count, weight), smoking (inside/outside), events (attendee cap), up to 3 custom rules, the rental agreement. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
657
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
658
|
+
# @param [Hash] opts the optional parameters
|
|
659
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
660
|
+
# @return [Array<(GetVrboListingHouseRules200Response, Integer, Hash)>] GetVrboListingHouseRules200Response data, response status code and response headers
|
|
661
|
+
def get_vrbo_listing_house_rules_with_http_info(id, opts = {})
|
|
662
|
+
if @api_client.config.debugging
|
|
663
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_house_rules ...'
|
|
664
|
+
end
|
|
665
|
+
# verify the required parameter 'id' is set
|
|
666
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
667
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_house_rules"
|
|
668
|
+
end
|
|
669
|
+
# resource path
|
|
670
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/house-rules'.sub('{id}', CGI.escape(id.to_s))
|
|
671
|
+
|
|
672
|
+
# query parameters
|
|
673
|
+
query_params = opts[:query_params] || {}
|
|
674
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
675
|
+
|
|
676
|
+
# header parameters
|
|
677
|
+
header_params = opts[:header_params] || {}
|
|
678
|
+
# HTTP header 'Accept' (if needed)
|
|
679
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
680
|
+
|
|
681
|
+
# form parameters
|
|
682
|
+
form_params = opts[:form_params] || {}
|
|
683
|
+
|
|
684
|
+
# http body (model)
|
|
685
|
+
post_body = opts[:debug_body]
|
|
686
|
+
|
|
687
|
+
# return_type
|
|
688
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingHouseRules200Response'
|
|
689
|
+
|
|
690
|
+
# auth_names
|
|
691
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
692
|
+
|
|
693
|
+
new_options = opts.merge(
|
|
694
|
+
:operation => :"VRBOApi.get_vrbo_listing_house_rules",
|
|
695
|
+
:header_params => header_params,
|
|
696
|
+
:query_params => query_params,
|
|
697
|
+
:form_params => form_params,
|
|
698
|
+
:body => post_body,
|
|
699
|
+
:auth_names => auth_names,
|
|
700
|
+
:return_type => return_type
|
|
701
|
+
)
|
|
702
|
+
|
|
703
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
704
|
+
if @api_client.config.debugging
|
|
705
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_house_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
706
|
+
end
|
|
707
|
+
return data, status_code, headers
|
|
708
|
+
end
|
|
709
|
+
|
|
710
|
+
# Get the Vrbo map setting
|
|
711
|
+
# The address (read-only: Vrbo changes it only through its support) and whether guests see the exact location or an area. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
712
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
713
|
+
# @param [Hash] opts the optional parameters
|
|
714
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
715
|
+
# @return [GetVrboListingLocation200Response]
|
|
716
|
+
def get_vrbo_listing_location(id, opts = {})
|
|
717
|
+
data, _status_code, _headers = get_vrbo_listing_location_with_http_info(id, opts)
|
|
718
|
+
data
|
|
719
|
+
end
|
|
720
|
+
|
|
721
|
+
# Get the Vrbo map setting
|
|
722
|
+
# The address (read-only: Vrbo changes it only through its support) and whether guests see the exact location or an area. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
723
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
724
|
+
# @param [Hash] opts the optional parameters
|
|
725
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
726
|
+
# @return [Array<(GetVrboListingLocation200Response, Integer, Hash)>] GetVrboListingLocation200Response data, response status code and response headers
|
|
727
|
+
def get_vrbo_listing_location_with_http_info(id, opts = {})
|
|
728
|
+
if @api_client.config.debugging
|
|
729
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_location ...'
|
|
730
|
+
end
|
|
731
|
+
# verify the required parameter 'id' is set
|
|
732
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
733
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_location"
|
|
734
|
+
end
|
|
735
|
+
# resource path
|
|
736
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/location'.sub('{id}', CGI.escape(id.to_s))
|
|
737
|
+
|
|
738
|
+
# query parameters
|
|
739
|
+
query_params = opts[:query_params] || {}
|
|
740
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
741
|
+
|
|
742
|
+
# header parameters
|
|
743
|
+
header_params = opts[:header_params] || {}
|
|
744
|
+
# HTTP header 'Accept' (if needed)
|
|
745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
746
|
+
|
|
747
|
+
# form parameters
|
|
748
|
+
form_params = opts[:form_params] || {}
|
|
749
|
+
|
|
750
|
+
# http body (model)
|
|
751
|
+
post_body = opts[:debug_body]
|
|
752
|
+
|
|
753
|
+
# return_type
|
|
754
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingLocation200Response'
|
|
755
|
+
|
|
756
|
+
# auth_names
|
|
757
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
758
|
+
|
|
759
|
+
new_options = opts.merge(
|
|
760
|
+
:operation => :"VRBOApi.get_vrbo_listing_location",
|
|
761
|
+
:header_params => header_params,
|
|
762
|
+
:query_params => query_params,
|
|
763
|
+
:form_params => form_params,
|
|
764
|
+
:body => post_body,
|
|
765
|
+
:auth_names => auth_names,
|
|
766
|
+
:return_type => return_type
|
|
767
|
+
)
|
|
768
|
+
|
|
769
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
770
|
+
if @api_client.config.debugging
|
|
771
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
772
|
+
end
|
|
773
|
+
return data, status_code, headers
|
|
774
|
+
end
|
|
775
|
+
|
|
776
|
+
# Get the Vrbo payment terms
|
|
777
|
+
# How much the guest pays at booking and when the rest is due. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
778
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
779
|
+
# @param [Hash] opts the optional parameters
|
|
780
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
781
|
+
# @return [GetVrboListingPaymentTerms200Response]
|
|
782
|
+
def get_vrbo_listing_payment_terms(id, opts = {})
|
|
783
|
+
data, _status_code, _headers = get_vrbo_listing_payment_terms_with_http_info(id, opts)
|
|
784
|
+
data
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
# Get the Vrbo payment terms
|
|
788
|
+
# How much the guest pays at booking and when the rest is due. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
789
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
790
|
+
# @param [Hash] opts the optional parameters
|
|
791
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
792
|
+
# @return [Array<(GetVrboListingPaymentTerms200Response, Integer, Hash)>] GetVrboListingPaymentTerms200Response data, response status code and response headers
|
|
793
|
+
def get_vrbo_listing_payment_terms_with_http_info(id, opts = {})
|
|
794
|
+
if @api_client.config.debugging
|
|
795
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_payment_terms ...'
|
|
796
|
+
end
|
|
797
|
+
# verify the required parameter 'id' is set
|
|
798
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
799
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_payment_terms"
|
|
800
|
+
end
|
|
801
|
+
# resource path
|
|
802
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/payment-terms'.sub('{id}', CGI.escape(id.to_s))
|
|
803
|
+
|
|
804
|
+
# query parameters
|
|
805
|
+
query_params = opts[:query_params] || {}
|
|
806
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
807
|
+
|
|
808
|
+
# header parameters
|
|
809
|
+
header_params = opts[:header_params] || {}
|
|
810
|
+
# HTTP header 'Accept' (if needed)
|
|
811
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
812
|
+
|
|
813
|
+
# form parameters
|
|
814
|
+
form_params = opts[:form_params] || {}
|
|
815
|
+
|
|
816
|
+
# http body (model)
|
|
817
|
+
post_body = opts[:debug_body]
|
|
818
|
+
|
|
819
|
+
# return_type
|
|
820
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingPaymentTerms200Response'
|
|
821
|
+
|
|
822
|
+
# auth_names
|
|
823
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
824
|
+
|
|
825
|
+
new_options = opts.merge(
|
|
826
|
+
:operation => :"VRBOApi.get_vrbo_listing_payment_terms",
|
|
827
|
+
:header_params => header_params,
|
|
828
|
+
:query_params => query_params,
|
|
829
|
+
:form_params => form_params,
|
|
830
|
+
:body => post_body,
|
|
831
|
+
:auth_names => auth_names,
|
|
832
|
+
:return_type => return_type
|
|
833
|
+
)
|
|
834
|
+
|
|
835
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
836
|
+
if @api_client.config.debugging
|
|
837
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_payment_terms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
838
|
+
end
|
|
839
|
+
return data, status_code, headers
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
# Get the Vrbo photos
|
|
843
|
+
# Photos in order (id, url, caption, Vrbo's own tags, rank, rooms), plus any Vrbo moderation rejected and why. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
844
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
845
|
+
# @param [Hash] opts the optional parameters
|
|
846
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
847
|
+
# @return [GetVrboListingPhotos200Response]
|
|
848
|
+
def get_vrbo_listing_photos(id, opts = {})
|
|
849
|
+
data, _status_code, _headers = get_vrbo_listing_photos_with_http_info(id, opts)
|
|
850
|
+
data
|
|
851
|
+
end
|
|
852
|
+
|
|
853
|
+
# Get the Vrbo photos
|
|
854
|
+
# Photos in order (id, url, caption, Vrbo's own tags, rank, rooms), plus any Vrbo moderation rejected and why. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 2 Vrbo calls on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
855
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
856
|
+
# @param [Hash] opts the optional parameters
|
|
857
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
858
|
+
# @return [Array<(GetVrboListingPhotos200Response, Integer, Hash)>] GetVrboListingPhotos200Response data, response status code and response headers
|
|
859
|
+
def get_vrbo_listing_photos_with_http_info(id, opts = {})
|
|
860
|
+
if @api_client.config.debugging
|
|
861
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_photos ...'
|
|
862
|
+
end
|
|
863
|
+
# verify the required parameter 'id' is set
|
|
864
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
865
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_photos"
|
|
866
|
+
end
|
|
867
|
+
# resource path
|
|
868
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/photos'.sub('{id}', CGI.escape(id.to_s))
|
|
869
|
+
|
|
870
|
+
# query parameters
|
|
871
|
+
query_params = opts[:query_params] || {}
|
|
872
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
873
|
+
|
|
874
|
+
# header parameters
|
|
875
|
+
header_params = opts[:header_params] || {}
|
|
876
|
+
# HTTP header 'Accept' (if needed)
|
|
877
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
878
|
+
|
|
879
|
+
# form parameters
|
|
880
|
+
form_params = opts[:form_params] || {}
|
|
881
|
+
|
|
882
|
+
# http body (model)
|
|
883
|
+
post_body = opts[:debug_body]
|
|
884
|
+
|
|
885
|
+
# return_type
|
|
886
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingPhotos200Response'
|
|
887
|
+
|
|
888
|
+
# auth_names
|
|
889
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
890
|
+
|
|
891
|
+
new_options = opts.merge(
|
|
892
|
+
:operation => :"VRBOApi.get_vrbo_listing_photos",
|
|
893
|
+
:header_params => header_params,
|
|
894
|
+
:query_params => query_params,
|
|
895
|
+
:form_params => form_params,
|
|
896
|
+
:body => post_body,
|
|
897
|
+
:auth_names => auth_names,
|
|
898
|
+
:return_type => return_type
|
|
899
|
+
)
|
|
900
|
+
|
|
901
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
902
|
+
if @api_client.config.debugging
|
|
903
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_photos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
904
|
+
end
|
|
905
|
+
return data, status_code, headers
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
# Get the Vrbo base pricing
|
|
909
|
+
# Base nightly rate per weekday, weekly and monthly discounts, default minimum stay, rate limits. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
910
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
911
|
+
# @param [Hash] opts the optional parameters
|
|
912
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
913
|
+
# @return [GetVrboListingPricing200Response]
|
|
914
|
+
def get_vrbo_listing_pricing(id, opts = {})
|
|
915
|
+
data, _status_code, _headers = get_vrbo_listing_pricing_with_http_info(id, opts)
|
|
916
|
+
data
|
|
917
|
+
end
|
|
918
|
+
|
|
919
|
+
# Get the Vrbo base pricing
|
|
920
|
+
# Base nightly rate per weekday, weekly and monthly discounts, default minimum stay, rate limits. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
921
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
922
|
+
# @param [Hash] opts the optional parameters
|
|
923
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
924
|
+
# @return [Array<(GetVrboListingPricing200Response, Integer, Hash)>] GetVrboListingPricing200Response data, response status code and response headers
|
|
925
|
+
def get_vrbo_listing_pricing_with_http_info(id, opts = {})
|
|
926
|
+
if @api_client.config.debugging
|
|
927
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_pricing ...'
|
|
928
|
+
end
|
|
929
|
+
# verify the required parameter 'id' is set
|
|
930
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
931
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_pricing"
|
|
932
|
+
end
|
|
933
|
+
# resource path
|
|
934
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/pricing'.sub('{id}', CGI.escape(id.to_s))
|
|
935
|
+
|
|
936
|
+
# query parameters
|
|
937
|
+
query_params = opts[:query_params] || {}
|
|
938
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
939
|
+
|
|
940
|
+
# header parameters
|
|
941
|
+
header_params = opts[:header_params] || {}
|
|
942
|
+
# HTTP header 'Accept' (if needed)
|
|
943
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
944
|
+
|
|
945
|
+
# form parameters
|
|
946
|
+
form_params = opts[:form_params] || {}
|
|
947
|
+
|
|
948
|
+
# http body (model)
|
|
949
|
+
post_body = opts[:debug_body]
|
|
950
|
+
|
|
951
|
+
# return_type
|
|
952
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingPricing200Response'
|
|
953
|
+
|
|
954
|
+
# auth_names
|
|
955
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
956
|
+
|
|
957
|
+
new_options = opts.merge(
|
|
958
|
+
:operation => :"VRBOApi.get_vrbo_listing_pricing",
|
|
959
|
+
:header_params => header_params,
|
|
960
|
+
:query_params => query_params,
|
|
961
|
+
:form_params => form_params,
|
|
962
|
+
:body => post_body,
|
|
963
|
+
:auth_names => auth_names,
|
|
964
|
+
:return_type => return_type
|
|
965
|
+
)
|
|
966
|
+
|
|
967
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
968
|
+
if @api_client.config.debugging
|
|
969
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
970
|
+
end
|
|
971
|
+
return data, status_code, headers
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
# Get the Vrbo property details
|
|
975
|
+
# Property type (and the types Vrbo offers), internal name, interior size, seniors-only and long-term-renter flags. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
976
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
977
|
+
# @param [Hash] opts the optional parameters
|
|
978
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
979
|
+
# @return [GetVrboListingProperty200Response]
|
|
980
|
+
def get_vrbo_listing_property(id, opts = {})
|
|
981
|
+
data, _status_code, _headers = get_vrbo_listing_property_with_http_info(id, opts)
|
|
982
|
+
data
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# Get the Vrbo property details
|
|
986
|
+
# Property type (and the types Vrbo offers), internal name, interior size, seniors-only and long-term-renter flags. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
987
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
988
|
+
# @param [Hash] opts the optional parameters
|
|
989
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
990
|
+
# @return [Array<(GetVrboListingProperty200Response, Integer, Hash)>] GetVrboListingProperty200Response data, response status code and response headers
|
|
991
|
+
def get_vrbo_listing_property_with_http_info(id, opts = {})
|
|
992
|
+
if @api_client.config.debugging
|
|
993
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_property ...'
|
|
994
|
+
end
|
|
995
|
+
# verify the required parameter 'id' is set
|
|
996
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
997
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_property"
|
|
998
|
+
end
|
|
999
|
+
# resource path
|
|
1000
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/property'.sub('{id}', CGI.escape(id.to_s))
|
|
1001
|
+
|
|
1002
|
+
# query parameters
|
|
1003
|
+
query_params = opts[:query_params] || {}
|
|
1004
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1005
|
+
|
|
1006
|
+
# header parameters
|
|
1007
|
+
header_params = opts[:header_params] || {}
|
|
1008
|
+
# HTTP header 'Accept' (if needed)
|
|
1009
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1010
|
+
|
|
1011
|
+
# form parameters
|
|
1012
|
+
form_params = opts[:form_params] || {}
|
|
1013
|
+
|
|
1014
|
+
# http body (model)
|
|
1015
|
+
post_body = opts[:debug_body]
|
|
1016
|
+
|
|
1017
|
+
# return_type
|
|
1018
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingProperty200Response'
|
|
1019
|
+
|
|
1020
|
+
# auth_names
|
|
1021
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1022
|
+
|
|
1023
|
+
new_options = opts.merge(
|
|
1024
|
+
:operation => :"VRBOApi.get_vrbo_listing_property",
|
|
1025
|
+
:header_params => header_params,
|
|
1026
|
+
:query_params => query_params,
|
|
1027
|
+
:form_params => form_params,
|
|
1028
|
+
:body => post_body,
|
|
1029
|
+
:auth_names => auth_names,
|
|
1030
|
+
:return_type => return_type
|
|
1031
|
+
)
|
|
1032
|
+
|
|
1033
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1034
|
+
if @api_client.config.debugging
|
|
1035
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1036
|
+
end
|
|
1037
|
+
return data, status_code, headers
|
|
1038
|
+
end
|
|
1039
|
+
|
|
1040
|
+
# Get the Vrbo damage protection
|
|
1041
|
+
# Refundable damage deposit and damage protection. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1042
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1043
|
+
# @param [Hash] opts the optional parameters
|
|
1044
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1045
|
+
# @return [GetVrboListingProtection200Response]
|
|
1046
|
+
def get_vrbo_listing_protection(id, opts = {})
|
|
1047
|
+
data, _status_code, _headers = get_vrbo_listing_protection_with_http_info(id, opts)
|
|
1048
|
+
data
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
# Get the Vrbo damage protection
|
|
1052
|
+
# Refundable damage deposit and damage protection. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1053
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1054
|
+
# @param [Hash] opts the optional parameters
|
|
1055
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1056
|
+
# @return [Array<(GetVrboListingProtection200Response, Integer, Hash)>] GetVrboListingProtection200Response data, response status code and response headers
|
|
1057
|
+
def get_vrbo_listing_protection_with_http_info(id, opts = {})
|
|
1058
|
+
if @api_client.config.debugging
|
|
1059
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_protection ...'
|
|
1060
|
+
end
|
|
1061
|
+
# verify the required parameter 'id' is set
|
|
1062
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1063
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_protection"
|
|
1064
|
+
end
|
|
1065
|
+
# resource path
|
|
1066
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/protection'.sub('{id}', CGI.escape(id.to_s))
|
|
1067
|
+
|
|
1068
|
+
# query parameters
|
|
1069
|
+
query_params = opts[:query_params] || {}
|
|
1070
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1071
|
+
|
|
1072
|
+
# header parameters
|
|
1073
|
+
header_params = opts[:header_params] || {}
|
|
1074
|
+
# HTTP header 'Accept' (if needed)
|
|
1075
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1076
|
+
|
|
1077
|
+
# form parameters
|
|
1078
|
+
form_params = opts[:form_params] || {}
|
|
1079
|
+
|
|
1080
|
+
# http body (model)
|
|
1081
|
+
post_body = opts[:debug_body]
|
|
1082
|
+
|
|
1083
|
+
# return_type
|
|
1084
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingProtection200Response'
|
|
1085
|
+
|
|
1086
|
+
# auth_names
|
|
1087
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1088
|
+
|
|
1089
|
+
new_options = opts.merge(
|
|
1090
|
+
:operation => :"VRBOApi.get_vrbo_listing_protection",
|
|
1091
|
+
:header_params => header_params,
|
|
1092
|
+
:query_params => query_params,
|
|
1093
|
+
:form_params => form_params,
|
|
1094
|
+
:body => post_body,
|
|
1095
|
+
:auth_names => auth_names,
|
|
1096
|
+
:return_type => return_type
|
|
1097
|
+
)
|
|
1098
|
+
|
|
1099
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1100
|
+
if @api_client.config.debugging
|
|
1101
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_protection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1102
|
+
end
|
|
1103
|
+
return data, status_code, headers
|
|
1104
|
+
end
|
|
1105
|
+
|
|
1106
|
+
# Get the Vrbo rates and stay discounts
|
|
1107
|
+
# Per night over a date range: the nightly rate, its weekday, the weekly (7–27 nights) and monthly (28+ nights) discounts and the minimum stay. Vrbo offers only these two stay discounts, saved per night with the weekday prices. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo calendar call (`?start=&end=`, default today + 13 days) on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1108
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1109
|
+
# @param [Hash] opts the optional parameters
|
|
1110
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1111
|
+
# @option opts [Date] :start First night to read (default today).
|
|
1112
|
+
# @option opts [Date] :_end Last night to read (default start + 13 days; at most 3 years).
|
|
1113
|
+
# @return [GetVrboListingRates200Response]
|
|
1114
|
+
def get_vrbo_listing_rates(id, opts = {})
|
|
1115
|
+
data, _status_code, _headers = get_vrbo_listing_rates_with_http_info(id, opts)
|
|
1116
|
+
data
|
|
1117
|
+
end
|
|
1118
|
+
|
|
1119
|
+
# Get the Vrbo rates and stay discounts
|
|
1120
|
+
# Per night over a date range: the nightly rate, its weekday, the weekly (7–27 nights) and monthly (28+ nights) discounts and the minimum stay. Vrbo offers only these two stay discounts, saved per night with the weekday prices. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo calendar call (`?start=&end=`, default today + 13 days) on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1121
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1122
|
+
# @param [Hash] opts the optional parameters
|
|
1123
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1124
|
+
# @option opts [Date] :start First night to read (default today).
|
|
1125
|
+
# @option opts [Date] :_end Last night to read (default start + 13 days; at most 3 years).
|
|
1126
|
+
# @return [Array<(GetVrboListingRates200Response, Integer, Hash)>] GetVrboListingRates200Response data, response status code and response headers
|
|
1127
|
+
def get_vrbo_listing_rates_with_http_info(id, opts = {})
|
|
1128
|
+
if @api_client.config.debugging
|
|
1129
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_rates ...'
|
|
1130
|
+
end
|
|
1131
|
+
# verify the required parameter 'id' is set
|
|
1132
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1133
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_rates"
|
|
1134
|
+
end
|
|
1135
|
+
# resource path
|
|
1136
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/rates'.sub('{id}', CGI.escape(id.to_s))
|
|
1137
|
+
|
|
1138
|
+
# query parameters
|
|
1139
|
+
query_params = opts[:query_params] || {}
|
|
1140
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1141
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
|
1142
|
+
query_params[:'end'] = opts[:'_end'] if !opts[:'_end'].nil?
|
|
1143
|
+
|
|
1144
|
+
# header parameters
|
|
1145
|
+
header_params = opts[:header_params] || {}
|
|
1146
|
+
# HTTP header 'Accept' (if needed)
|
|
1147
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1148
|
+
|
|
1149
|
+
# form parameters
|
|
1150
|
+
form_params = opts[:form_params] || {}
|
|
1151
|
+
|
|
1152
|
+
# http body (model)
|
|
1153
|
+
post_body = opts[:debug_body]
|
|
1154
|
+
|
|
1155
|
+
# return_type
|
|
1156
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingRates200Response'
|
|
1157
|
+
|
|
1158
|
+
# auth_names
|
|
1159
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1160
|
+
|
|
1161
|
+
new_options = opts.merge(
|
|
1162
|
+
:operation => :"VRBOApi.get_vrbo_listing_rates",
|
|
1163
|
+
:header_params => header_params,
|
|
1164
|
+
:query_params => query_params,
|
|
1165
|
+
:form_params => form_params,
|
|
1166
|
+
:body => post_body,
|
|
1167
|
+
:auth_names => auth_names,
|
|
1168
|
+
:return_type => return_type
|
|
1169
|
+
)
|
|
1170
|
+
|
|
1171
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1172
|
+
if @api_client.config.debugging
|
|
1173
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1174
|
+
end
|
|
1175
|
+
return data, status_code, headers
|
|
1176
|
+
end
|
|
1177
|
+
|
|
1178
|
+
# Get the Vrbo registration / licence
|
|
1179
|
+
# The local registration or licence fields Vrbo asks for in the listing's jurisdiction, and their status. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1180
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1181
|
+
# @param [Hash] opts the optional parameters
|
|
1182
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1183
|
+
# @return [GetVrboListingRegistration200Response]
|
|
1184
|
+
def get_vrbo_listing_registration(id, opts = {})
|
|
1185
|
+
data, _status_code, _headers = get_vrbo_listing_registration_with_http_info(id, opts)
|
|
1186
|
+
data
|
|
1187
|
+
end
|
|
1188
|
+
|
|
1189
|
+
# Get the Vrbo registration / licence
|
|
1190
|
+
# The local registration or licence fields Vrbo asks for in the listing's jurisdiction, and their status. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1191
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1192
|
+
# @param [Hash] opts the optional parameters
|
|
1193
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1194
|
+
# @return [Array<(GetVrboListingRegistration200Response, Integer, Hash)>] GetVrboListingRegistration200Response data, response status code and response headers
|
|
1195
|
+
def get_vrbo_listing_registration_with_http_info(id, opts = {})
|
|
1196
|
+
if @api_client.config.debugging
|
|
1197
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_registration ...'
|
|
1198
|
+
end
|
|
1199
|
+
# verify the required parameter 'id' is set
|
|
1200
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1201
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_registration"
|
|
1202
|
+
end
|
|
1203
|
+
# resource path
|
|
1204
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/registration'.sub('{id}', CGI.escape(id.to_s))
|
|
1205
|
+
|
|
1206
|
+
# query parameters
|
|
1207
|
+
query_params = opts[:query_params] || {}
|
|
1208
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1209
|
+
|
|
1210
|
+
# header parameters
|
|
1211
|
+
header_params = opts[:header_params] || {}
|
|
1212
|
+
# HTTP header 'Accept' (if needed)
|
|
1213
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1214
|
+
|
|
1215
|
+
# form parameters
|
|
1216
|
+
form_params = opts[:form_params] || {}
|
|
1217
|
+
|
|
1218
|
+
# http body (model)
|
|
1219
|
+
post_body = opts[:debug_body]
|
|
1220
|
+
|
|
1221
|
+
# return_type
|
|
1222
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingRegistration200Response'
|
|
1223
|
+
|
|
1224
|
+
# auth_names
|
|
1225
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1226
|
+
|
|
1227
|
+
new_options = opts.merge(
|
|
1228
|
+
:operation => :"VRBOApi.get_vrbo_listing_registration",
|
|
1229
|
+
:header_params => header_params,
|
|
1230
|
+
:query_params => query_params,
|
|
1231
|
+
:form_params => form_params,
|
|
1232
|
+
:body => post_body,
|
|
1233
|
+
:auth_names => auth_names,
|
|
1234
|
+
:return_type => return_type
|
|
1235
|
+
)
|
|
1236
|
+
|
|
1237
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1238
|
+
if @api_client.config.debugging
|
|
1239
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1240
|
+
end
|
|
1241
|
+
return data, status_code, headers
|
|
1242
|
+
end
|
|
1243
|
+
|
|
1244
|
+
# Get the Vrbo rooms and spaces
|
|
1245
|
+
# Bedrooms, bathrooms, living rooms and other spaces with their beds and room amenities; the space, bed and bathroom types Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call + 1 per room on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1246
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1247
|
+
# @param [Hash] opts the optional parameters
|
|
1248
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1249
|
+
# @return [GetVrboListingRooms200Response]
|
|
1250
|
+
def get_vrbo_listing_rooms(id, opts = {})
|
|
1251
|
+
data, _status_code, _headers = get_vrbo_listing_rooms_with_http_info(id, opts)
|
|
1252
|
+
data
|
|
1253
|
+
end
|
|
1254
|
+
|
|
1255
|
+
# Get the Vrbo rooms and spaces
|
|
1256
|
+
# Bedrooms, bathrooms, living rooms and other spaces with their beds and room amenities; the space, bed and bathroom types Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call + 1 per room on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1257
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1258
|
+
# @param [Hash] opts the optional parameters
|
|
1259
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1260
|
+
# @return [Array<(GetVrboListingRooms200Response, Integer, Hash)>] GetVrboListingRooms200Response data, response status code and response headers
|
|
1261
|
+
def get_vrbo_listing_rooms_with_http_info(id, opts = {})
|
|
1262
|
+
if @api_client.config.debugging
|
|
1263
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_rooms ...'
|
|
1264
|
+
end
|
|
1265
|
+
# verify the required parameter 'id' is set
|
|
1266
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1267
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_rooms"
|
|
1268
|
+
end
|
|
1269
|
+
# resource path
|
|
1270
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/rooms'.sub('{id}', CGI.escape(id.to_s))
|
|
1271
|
+
|
|
1272
|
+
# query parameters
|
|
1273
|
+
query_params = opts[:query_params] || {}
|
|
1274
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1275
|
+
|
|
1276
|
+
# header parameters
|
|
1277
|
+
header_params = opts[:header_params] || {}
|
|
1278
|
+
# HTTP header 'Accept' (if needed)
|
|
1279
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1280
|
+
|
|
1281
|
+
# form parameters
|
|
1282
|
+
form_params = opts[:form_params] || {}
|
|
1283
|
+
|
|
1284
|
+
# http body (model)
|
|
1285
|
+
post_body = opts[:debug_body]
|
|
1286
|
+
|
|
1287
|
+
# return_type
|
|
1288
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingRooms200Response'
|
|
1289
|
+
|
|
1290
|
+
# auth_names
|
|
1291
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1292
|
+
|
|
1293
|
+
new_options = opts.merge(
|
|
1294
|
+
:operation => :"VRBOApi.get_vrbo_listing_rooms",
|
|
1295
|
+
:header_params => header_params,
|
|
1296
|
+
:query_params => query_params,
|
|
1297
|
+
:form_params => form_params,
|
|
1298
|
+
:body => post_body,
|
|
1299
|
+
:auth_names => auth_names,
|
|
1300
|
+
:return_type => return_type
|
|
1301
|
+
)
|
|
1302
|
+
|
|
1303
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1304
|
+
if @api_client.config.debugging
|
|
1305
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_rooms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1306
|
+
end
|
|
1307
|
+
return data, status_code, headers
|
|
1308
|
+
end
|
|
1309
|
+
|
|
1310
|
+
# Get the Vrbo host story
|
|
1311
|
+
# \"Your story\" on the listing: about you, why this property, what makes it unique. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1312
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1313
|
+
# @param [Hash] opts the optional parameters
|
|
1314
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1315
|
+
# @return [GetVrboListingStory200Response]
|
|
1316
|
+
def get_vrbo_listing_story(id, opts = {})
|
|
1317
|
+
data, _status_code, _headers = get_vrbo_listing_story_with_http_info(id, opts)
|
|
1318
|
+
data
|
|
1319
|
+
end
|
|
1320
|
+
|
|
1321
|
+
# Get the Vrbo host story
|
|
1322
|
+
# \"Your story\" on the listing: about you, why this property, what makes it unique. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1323
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1324
|
+
# @param [Hash] opts the optional parameters
|
|
1325
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1326
|
+
# @return [Array<(GetVrboListingStory200Response, Integer, Hash)>] GetVrboListingStory200Response data, response status code and response headers
|
|
1327
|
+
def get_vrbo_listing_story_with_http_info(id, opts = {})
|
|
1328
|
+
if @api_client.config.debugging
|
|
1329
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_story ...'
|
|
1330
|
+
end
|
|
1331
|
+
# verify the required parameter 'id' is set
|
|
1332
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1333
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_story"
|
|
1334
|
+
end
|
|
1335
|
+
# resource path
|
|
1336
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/story'.sub('{id}', CGI.escape(id.to_s))
|
|
1337
|
+
|
|
1338
|
+
# query parameters
|
|
1339
|
+
query_params = opts[:query_params] || {}
|
|
1340
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1341
|
+
|
|
1342
|
+
# header parameters
|
|
1343
|
+
header_params = opts[:header_params] || {}
|
|
1344
|
+
# HTTP header 'Accept' (if needed)
|
|
1345
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1346
|
+
|
|
1347
|
+
# form parameters
|
|
1348
|
+
form_params = opts[:form_params] || {}
|
|
1349
|
+
|
|
1350
|
+
# http body (model)
|
|
1351
|
+
post_body = opts[:debug_body]
|
|
1352
|
+
|
|
1353
|
+
# return_type
|
|
1354
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingStory200Response'
|
|
1355
|
+
|
|
1356
|
+
# auth_names
|
|
1357
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1358
|
+
|
|
1359
|
+
new_options = opts.merge(
|
|
1360
|
+
:operation => :"VRBOApi.get_vrbo_listing_story",
|
|
1361
|
+
:header_params => header_params,
|
|
1362
|
+
:query_params => query_params,
|
|
1363
|
+
:form_params => form_params,
|
|
1364
|
+
:body => post_body,
|
|
1365
|
+
:auth_names => auth_names,
|
|
1366
|
+
:return_type => return_type
|
|
1367
|
+
)
|
|
1368
|
+
|
|
1369
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1370
|
+
if @api_client.config.debugging
|
|
1371
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_story\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1372
|
+
end
|
|
1373
|
+
return data, status_code, headers
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
# Get the Vrbo taxes
|
|
1377
|
+
# Who collects tax and the rules that apply. Where Vrbo collects (e.g. British Columbia) the rules are read-only. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1378
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1379
|
+
# @param [Hash] opts the optional parameters
|
|
1380
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1381
|
+
# @return [GetVrboListingTaxes200Response]
|
|
1382
|
+
def get_vrbo_listing_taxes(id, opts = {})
|
|
1383
|
+
data, _status_code, _headers = get_vrbo_listing_taxes_with_http_info(id, opts)
|
|
1384
|
+
data
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
# Get the Vrbo taxes
|
|
1388
|
+
# Who collects tax and the rules that apply. Where Vrbo collects (e.g. British Columbia) the rules are read-only. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1389
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1390
|
+
# @param [Hash] opts the optional parameters
|
|
1391
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1392
|
+
# @return [Array<(GetVrboListingTaxes200Response, Integer, Hash)>] GetVrboListingTaxes200Response data, response status code and response headers
|
|
1393
|
+
def get_vrbo_listing_taxes_with_http_info(id, opts = {})
|
|
1394
|
+
if @api_client.config.debugging
|
|
1395
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_taxes ...'
|
|
1396
|
+
end
|
|
1397
|
+
# verify the required parameter 'id' is set
|
|
1398
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1399
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_taxes"
|
|
1400
|
+
end
|
|
1401
|
+
# resource path
|
|
1402
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/taxes'.sub('{id}', CGI.escape(id.to_s))
|
|
1403
|
+
|
|
1404
|
+
# query parameters
|
|
1405
|
+
query_params = opts[:query_params] || {}
|
|
1406
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1407
|
+
|
|
1408
|
+
# header parameters
|
|
1409
|
+
header_params = opts[:header_params] || {}
|
|
1410
|
+
# HTTP header 'Accept' (if needed)
|
|
1411
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1412
|
+
|
|
1413
|
+
# form parameters
|
|
1414
|
+
form_params = opts[:form_params] || {}
|
|
1415
|
+
|
|
1416
|
+
# http body (model)
|
|
1417
|
+
post_body = opts[:debug_body]
|
|
1418
|
+
|
|
1419
|
+
# return_type
|
|
1420
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingTaxes200Response'
|
|
1421
|
+
|
|
1422
|
+
# auth_names
|
|
1423
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1424
|
+
|
|
1425
|
+
new_options = opts.merge(
|
|
1426
|
+
:operation => :"VRBOApi.get_vrbo_listing_taxes",
|
|
1427
|
+
:header_params => header_params,
|
|
1428
|
+
:query_params => query_params,
|
|
1429
|
+
:form_params => form_params,
|
|
1430
|
+
:body => post_body,
|
|
1431
|
+
:auth_names => auth_names,
|
|
1432
|
+
:return_type => return_type
|
|
1433
|
+
)
|
|
1434
|
+
|
|
1435
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1436
|
+
if @api_client.config.debugging
|
|
1437
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_taxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1438
|
+
end
|
|
1439
|
+
return data, status_code, headers
|
|
1440
|
+
end
|
|
1441
|
+
|
|
1442
|
+
# Get the Vrbo manual translations
|
|
1443
|
+
# Headline and description written per language (they replace Vrbo's automatic translation), and the languages Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call + 1 per language on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1444
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1445
|
+
# @param [Hash] opts the optional parameters
|
|
1446
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1447
|
+
# @return [GetVrboListingTranslations200Response]
|
|
1448
|
+
def get_vrbo_listing_translations(id, opts = {})
|
|
1449
|
+
data, _status_code, _headers = get_vrbo_listing_translations_with_http_info(id, opts)
|
|
1450
|
+
data
|
|
1451
|
+
end
|
|
1452
|
+
|
|
1453
|
+
# Get the Vrbo manual translations
|
|
1454
|
+
# Headline and description written per language (they replace Vrbo's automatic translation), and the languages Vrbo offers. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call + 1 per language on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1455
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1456
|
+
# @param [Hash] opts the optional parameters
|
|
1457
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1458
|
+
# @return [Array<(GetVrboListingTranslations200Response, Integer, Hash)>] GetVrboListingTranslations200Response data, response status code and response headers
|
|
1459
|
+
def get_vrbo_listing_translations_with_http_info(id, opts = {})
|
|
1460
|
+
if @api_client.config.debugging
|
|
1461
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_translations ...'
|
|
1462
|
+
end
|
|
1463
|
+
# verify the required parameter 'id' is set
|
|
1464
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1465
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_translations"
|
|
1466
|
+
end
|
|
1467
|
+
# resource path
|
|
1468
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/translations'.sub('{id}', CGI.escape(id.to_s))
|
|
1469
|
+
|
|
1470
|
+
# query parameters
|
|
1471
|
+
query_params = opts[:query_params] || {}
|
|
1472
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1473
|
+
|
|
1474
|
+
# header parameters
|
|
1475
|
+
header_params = opts[:header_params] || {}
|
|
1476
|
+
# HTTP header 'Accept' (if needed)
|
|
1477
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1478
|
+
|
|
1479
|
+
# form parameters
|
|
1480
|
+
form_params = opts[:form_params] || {}
|
|
1481
|
+
|
|
1482
|
+
# http body (model)
|
|
1483
|
+
post_body = opts[:debug_body]
|
|
1484
|
+
|
|
1485
|
+
# return_type
|
|
1486
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingTranslations200Response'
|
|
1487
|
+
|
|
1488
|
+
# auth_names
|
|
1489
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1490
|
+
|
|
1491
|
+
new_options = opts.merge(
|
|
1492
|
+
:operation => :"VRBOApi.get_vrbo_listing_translations",
|
|
1493
|
+
:header_params => header_params,
|
|
1494
|
+
:query_params => query_params,
|
|
1495
|
+
:form_params => form_params,
|
|
1496
|
+
:body => post_body,
|
|
1497
|
+
:auth_names => auth_names,
|
|
1498
|
+
:return_type => return_type
|
|
1499
|
+
)
|
|
1500
|
+
|
|
1501
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1502
|
+
if @api_client.config.debugging
|
|
1503
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_translations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1504
|
+
end
|
|
1505
|
+
return data, status_code, headers
|
|
1506
|
+
end
|
|
1507
|
+
|
|
1508
|
+
# Get the Vrbo videos
|
|
1509
|
+
# The listing's videos with their file name, Vrbo's processing and review status, player and thumbnail URLs, upload time and any reasons Vrbo rejected them. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1510
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1511
|
+
# @param [Hash] opts the optional parameters
|
|
1512
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1513
|
+
# @return [GetVrboListingVideos200Response]
|
|
1514
|
+
def get_vrbo_listing_videos(id, opts = {})
|
|
1515
|
+
data, _status_code, _headers = get_vrbo_listing_videos_with_http_info(id, opts)
|
|
1516
|
+
data
|
|
1517
|
+
end
|
|
1518
|
+
|
|
1519
|
+
# Get the Vrbo videos
|
|
1520
|
+
# The listing's videos with their file name, Vrbo's processing and review status, player and thumbnail URLs, upload time and any reasons Vrbo rejected them. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1521
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1522
|
+
# @param [Hash] opts the optional parameters
|
|
1523
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1524
|
+
# @return [Array<(GetVrboListingVideos200Response, Integer, Hash)>] GetVrboListingVideos200Response data, response status code and response headers
|
|
1525
|
+
def get_vrbo_listing_videos_with_http_info(id, opts = {})
|
|
1526
|
+
if @api_client.config.debugging
|
|
1527
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_videos ...'
|
|
1528
|
+
end
|
|
1529
|
+
# verify the required parameter 'id' is set
|
|
1530
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1531
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_videos"
|
|
1532
|
+
end
|
|
1533
|
+
# resource path
|
|
1534
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/videos'.sub('{id}', CGI.escape(id.to_s))
|
|
1535
|
+
|
|
1536
|
+
# query parameters
|
|
1537
|
+
query_params = opts[:query_params] || {}
|
|
1538
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1539
|
+
|
|
1540
|
+
# header parameters
|
|
1541
|
+
header_params = opts[:header_params] || {}
|
|
1542
|
+
# HTTP header 'Accept' (if needed)
|
|
1543
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1544
|
+
|
|
1545
|
+
# form parameters
|
|
1546
|
+
form_params = opts[:form_params] || {}
|
|
1547
|
+
|
|
1548
|
+
# http body (model)
|
|
1549
|
+
post_body = opts[:debug_body]
|
|
1550
|
+
|
|
1551
|
+
# return_type
|
|
1552
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingVideos200Response'
|
|
1553
|
+
|
|
1554
|
+
# auth_names
|
|
1555
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1556
|
+
|
|
1557
|
+
new_options = opts.merge(
|
|
1558
|
+
:operation => :"VRBOApi.get_vrbo_listing_videos",
|
|
1559
|
+
:header_params => header_params,
|
|
1560
|
+
:query_params => query_params,
|
|
1561
|
+
:form_params => form_params,
|
|
1562
|
+
:body => post_body,
|
|
1563
|
+
:auth_names => auth_names,
|
|
1564
|
+
:return_type => return_type
|
|
1565
|
+
)
|
|
1566
|
+
|
|
1567
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1568
|
+
if @api_client.config.debugging
|
|
1569
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_videos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1570
|
+
end
|
|
1571
|
+
return data, status_code, headers
|
|
1572
|
+
end
|
|
1573
|
+
|
|
1574
|
+
# Get the Vrbo welcome guide
|
|
1575
|
+
# What guests receive before arrival: check-in and check-out instructions, driving and parking directions, access (type, code), wifi, per-amenity instructions, contacts. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1576
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1577
|
+
# @param [Hash] opts the optional parameters
|
|
1578
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1579
|
+
# @return [GetVrboListingWelcomeGuide200Response]
|
|
1580
|
+
def get_vrbo_listing_welcome_guide(id, opts = {})
|
|
1581
|
+
data, _status_code, _headers = get_vrbo_listing_welcome_guide_with_http_info(id, opts)
|
|
1582
|
+
data
|
|
1583
|
+
end
|
|
1584
|
+
|
|
1585
|
+
# Get the Vrbo welcome guide
|
|
1586
|
+
# What guests receive before arrival: check-in and check-out instructions, driving and parking directions, access (type, code), wifi, per-amenity instructions, contacts. Read live from the listing's Vrbo listing in the host's connected Vrbo account. **Cost:** 1 Vrbo call on Vrbo, spaced ~3 s apart per account — a few seconds. Vrbo is read live on every request (nothing is cached), so read the section you need rather than polling. 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.
|
|
1587
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1588
|
+
# @param [Hash] opts the optional parameters
|
|
1589
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1590
|
+
# @return [Array<(GetVrboListingWelcomeGuide200Response, Integer, Hash)>] GetVrboListingWelcomeGuide200Response data, response status code and response headers
|
|
1591
|
+
def get_vrbo_listing_welcome_guide_with_http_info(id, opts = {})
|
|
1592
|
+
if @api_client.config.debugging
|
|
1593
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.get_vrbo_listing_welcome_guide ...'
|
|
1594
|
+
end
|
|
1595
|
+
# verify the required parameter 'id' is set
|
|
1596
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1597
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.get_vrbo_listing_welcome_guide"
|
|
1598
|
+
end
|
|
1599
|
+
# resource path
|
|
1600
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/welcome-guide'.sub('{id}', CGI.escape(id.to_s))
|
|
1601
|
+
|
|
1602
|
+
# query parameters
|
|
1603
|
+
query_params = opts[:query_params] || {}
|
|
1604
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1605
|
+
|
|
1606
|
+
# header parameters
|
|
1607
|
+
header_params = opts[:header_params] || {}
|
|
1608
|
+
# HTTP header 'Accept' (if needed)
|
|
1609
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1610
|
+
|
|
1611
|
+
# form parameters
|
|
1612
|
+
form_params = opts[:form_params] || {}
|
|
1613
|
+
|
|
1614
|
+
# http body (model)
|
|
1615
|
+
post_body = opts[:debug_body]
|
|
1616
|
+
|
|
1617
|
+
# return_type
|
|
1618
|
+
return_type = opts[:debug_return_type] || 'GetVrboListingWelcomeGuide200Response'
|
|
1619
|
+
|
|
1620
|
+
# auth_names
|
|
1621
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1622
|
+
|
|
1623
|
+
new_options = opts.merge(
|
|
1624
|
+
:operation => :"VRBOApi.get_vrbo_listing_welcome_guide",
|
|
1625
|
+
:header_params => header_params,
|
|
1626
|
+
:query_params => query_params,
|
|
1627
|
+
:form_params => form_params,
|
|
1628
|
+
:body => post_body,
|
|
1629
|
+
:auth_names => auth_names,
|
|
1630
|
+
:return_type => return_type
|
|
1631
|
+
)
|
|
1632
|
+
|
|
1633
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1634
|
+
if @api_client.config.debugging
|
|
1635
|
+
@api_client.config.logger.debug "API called: VRBOApi#get_vrbo_listing_welcome_guide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1636
|
+
end
|
|
1637
|
+
return data, status_code, headers
|
|
1638
|
+
end
|
|
1639
|
+
|
|
1640
|
+
# List VRBO listings
|
|
1641
|
+
# List the Vrbo units linked to this workspace's listings, from the host's connected Vrbo account (host sign-in, beta). Inactive listings are left out unless `?status=inactive|all` asks for them; they then come back with identity fields only (ids, `listingName`, `listingCity`, `status`, `inactiveReason`). They keep syncing and are complete again once activated.
|
|
1642
|
+
# @param [Hash] opts the optional parameters
|
|
1643
|
+
# @option opts [String] :status `active` (default) leaves inactive listings out. `inactive` returns only them and `all` returns both. An inactive listing comes back with identity fields only (ids, `name`, `city`, `status`, `inactiveReason`, its account), which is enough to show what can be activated. Every row carries `status`. (default to 'active')
|
|
1644
|
+
# @return [Array<VrboListing>]
|
|
1645
|
+
def list_vrbo_listings(opts = {})
|
|
1646
|
+
data, _status_code, _headers = list_vrbo_listings_with_http_info(opts)
|
|
1647
|
+
data
|
|
1648
|
+
end
|
|
1649
|
+
|
|
1650
|
+
# List VRBO listings
|
|
1651
|
+
# List the Vrbo units linked to this workspace's listings, from the host's connected Vrbo account (host sign-in, beta). Inactive listings are left out unless `?status=inactive|all` asks for them; they then come back with identity fields only (ids, `listingName`, `listingCity`, `status`, `inactiveReason`). They keep syncing and are complete again once activated.
|
|
1652
|
+
# @param [Hash] opts the optional parameters
|
|
1653
|
+
# @option opts [String] :status `active` (default) leaves inactive listings out. `inactive` returns only them and `all` returns both. An inactive listing comes back with identity fields only (ids, `name`, `city`, `status`, `inactiveReason`, its account), which is enough to show what can be activated. Every row carries `status`. (default to 'active')
|
|
1654
|
+
# @return [Array<(Array<VrboListing>, Integer, Hash)>] Array<VrboListing> data, response status code and response headers
|
|
1655
|
+
def list_vrbo_listings_with_http_info(opts = {})
|
|
1656
|
+
if @api_client.config.debugging
|
|
1657
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.list_vrbo_listings ...'
|
|
1658
|
+
end
|
|
1659
|
+
allowable_values = ["active", "inactive", "all"]
|
|
1660
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
1661
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
1662
|
+
end
|
|
1663
|
+
# resource path
|
|
1664
|
+
local_var_path = '/v1/channels/vrbo/listings'
|
|
1665
|
+
|
|
1666
|
+
# query parameters
|
|
1667
|
+
query_params = opts[:query_params] || {}
|
|
1668
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
|
1669
|
+
|
|
1670
|
+
# header parameters
|
|
1671
|
+
header_params = opts[:header_params] || {}
|
|
1672
|
+
# HTTP header 'Accept' (if needed)
|
|
1673
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1674
|
+
|
|
1675
|
+
# form parameters
|
|
1676
|
+
form_params = opts[:form_params] || {}
|
|
1677
|
+
|
|
1678
|
+
# http body (model)
|
|
1679
|
+
post_body = opts[:debug_body]
|
|
1680
|
+
|
|
1681
|
+
# return_type
|
|
1682
|
+
return_type = opts[:debug_return_type] || 'Array<VrboListing>'
|
|
1683
|
+
|
|
1684
|
+
# auth_names
|
|
1685
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1686
|
+
|
|
1687
|
+
new_options = opts.merge(
|
|
1688
|
+
:operation => :"VRBOApi.list_vrbo_listings",
|
|
1689
|
+
:header_params => header_params,
|
|
1690
|
+
:query_params => query_params,
|
|
1691
|
+
:form_params => form_params,
|
|
1692
|
+
:body => post_body,
|
|
1693
|
+
:auth_names => auth_names,
|
|
1694
|
+
:return_type => return_type
|
|
1695
|
+
)
|
|
1696
|
+
|
|
1697
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1698
|
+
if @api_client.config.debugging
|
|
1699
|
+
@api_client.config.logger.debug "API called: VRBOApi#list_vrbo_listings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1700
|
+
end
|
|
1701
|
+
return data, status_code, headers
|
|
1702
|
+
end
|
|
1703
|
+
|
|
1704
|
+
# List VRBO reservations
|
|
1705
|
+
# Cursor-paginated list of Vrbo reservations imported from the host's connected Vrbo account (host sign-in, beta). The full normalised record — guest, price breakdown, policy — is on `GET /v1/reservations?platform=vrbo`. `?offset=` is accepted as a first-class alias for `?cursor=` (mutually exclusive; offset capped at 10000). Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated.
|
|
1706
|
+
# @param [Hash] opts the optional parameters
|
|
1707
|
+
# @option opts [String] :cursor Opaque cursor returned in the previous response's `pagination.nextCursor`.
|
|
1708
|
+
# @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with `cursor` — passing both returns 422. Accepts integers in `[0, 10000]`; deeper walks must use `cursor` (constant per-page cost). The response always includes `pagination.nextCursor` so consumers can switch from offset → cursor mid-walk for deep pagination without re-keying. (default to 0)
|
|
1709
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1710
|
+
# @option opts [Boolean] :include_total When `true` (default), the response's `pagination.total` carries the count of rows matching the current filter, across all pages. Pass `false` to skip the count for very large workspaces where the per-page COUNT(*) cost matters. (default to true)
|
|
1711
|
+
# @return [VrboReservationListResponse]
|
|
1712
|
+
def list_vrbo_reservations(opts = {})
|
|
1713
|
+
data, _status_code, _headers = list_vrbo_reservations_with_http_info(opts)
|
|
1714
|
+
data
|
|
1715
|
+
end
|
|
1716
|
+
|
|
1717
|
+
# List VRBO reservations
|
|
1718
|
+
# Cursor-paginated list of Vrbo reservations imported from the host's connected Vrbo account (host sign-in, beta). The full normalised record — guest, price breakdown, policy — is on `GET /v1/reservations?platform=vrbo`. `?offset=` is accepted as a first-class alias for `?cursor=` (mutually exclusive; offset capped at 10000). Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated.
|
|
1719
|
+
# @param [Hash] opts the optional parameters
|
|
1720
|
+
# @option opts [String] :cursor Opaque cursor returned in the previous response's `pagination.nextCursor`.
|
|
1721
|
+
# @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with `cursor` — passing both returns 422. Accepts integers in `[0, 10000]`; deeper walks must use `cursor` (constant per-page cost). The response always includes `pagination.nextCursor` so consumers can switch from offset → cursor mid-walk for deep pagination without re-keying. (default to 0)
|
|
1722
|
+
# @option opts [Integer] :limit (default to 50)
|
|
1723
|
+
# @option opts [Boolean] :include_total When `true` (default), the response's `pagination.total` carries the count of rows matching the current filter, across all pages. Pass `false` to skip the count for very large workspaces where the per-page COUNT(*) cost matters. (default to true)
|
|
1724
|
+
# @return [Array<(VrboReservationListResponse, Integer, Hash)>] VrboReservationListResponse data, response status code and response headers
|
|
1725
|
+
def list_vrbo_reservations_with_http_info(opts = {})
|
|
1726
|
+
if @api_client.config.debugging
|
|
1727
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.list_vrbo_reservations ...'
|
|
1728
|
+
end
|
|
1729
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
|
|
1730
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling VRBOApi.list_vrbo_reservations, must be smaller than or equal to 10000.'
|
|
1731
|
+
end
|
|
1732
|
+
|
|
1733
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
1734
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling VRBOApi.list_vrbo_reservations, must be greater than or equal to 0.'
|
|
1735
|
+
end
|
|
1736
|
+
|
|
1737
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
1738
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling VRBOApi.list_vrbo_reservations, must be smaller than or equal to 100.'
|
|
1739
|
+
end
|
|
1740
|
+
|
|
1741
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
1742
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling VRBOApi.list_vrbo_reservations, must be greater than or equal to 1.'
|
|
1743
|
+
end
|
|
1744
|
+
|
|
1745
|
+
# resource path
|
|
1746
|
+
local_var_path = '/v1/channels/vrbo/reservations'
|
|
1747
|
+
|
|
1748
|
+
# query parameters
|
|
1749
|
+
query_params = opts[:query_params] || {}
|
|
1750
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
1751
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
1752
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
1753
|
+
query_params[:'include_total'] = opts[:'include_total'] if !opts[:'include_total'].nil?
|
|
1754
|
+
|
|
1755
|
+
# header parameters
|
|
1756
|
+
header_params = opts[:header_params] || {}
|
|
1757
|
+
# HTTP header 'Accept' (if needed)
|
|
1758
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1759
|
+
|
|
1760
|
+
# form parameters
|
|
1761
|
+
form_params = opts[:form_params] || {}
|
|
1762
|
+
|
|
1763
|
+
# http body (model)
|
|
1764
|
+
post_body = opts[:debug_body]
|
|
1765
|
+
|
|
1766
|
+
# return_type
|
|
1767
|
+
return_type = opts[:debug_return_type] || 'VrboReservationListResponse'
|
|
1768
|
+
|
|
1769
|
+
# auth_names
|
|
1770
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1771
|
+
|
|
1772
|
+
new_options = opts.merge(
|
|
1773
|
+
:operation => :"VRBOApi.list_vrbo_reservations",
|
|
1774
|
+
:header_params => header_params,
|
|
1775
|
+
:query_params => query_params,
|
|
1776
|
+
:form_params => form_params,
|
|
1777
|
+
:body => post_body,
|
|
1778
|
+
:auth_names => auth_names,
|
|
1779
|
+
:return_type => return_type
|
|
1780
|
+
)
|
|
1781
|
+
|
|
1782
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1783
|
+
if @api_client.config.debugging
|
|
1784
|
+
@api_client.config.logger.debug "API called: VRBOApi#list_vrbo_reservations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1785
|
+
end
|
|
1786
|
+
return data, status_code, headers
|
|
1787
|
+
end
|
|
1788
|
+
|
|
1789
|
+
# Update the Vrbo additional details
|
|
1790
|
+
# Change the additional details of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `property`, `bedrooms`, `bathrooms`. **Cost:** 1 call + 2 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1791
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1792
|
+
# @param update_vrbo_listing_additional_info_request [UpdateVrboListingAdditionalInfoRequest]
|
|
1793
|
+
# @param [Hash] opts the optional parameters
|
|
1794
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1795
|
+
# @return [UpdateVrboListingAdditionalInfo200Response]
|
|
1796
|
+
def update_vrbo_listing_additional_info(id, update_vrbo_listing_additional_info_request, opts = {})
|
|
1797
|
+
data, _status_code, _headers = update_vrbo_listing_additional_info_with_http_info(id, update_vrbo_listing_additional_info_request, opts)
|
|
1798
|
+
data
|
|
1799
|
+
end
|
|
1800
|
+
|
|
1801
|
+
# Update the Vrbo additional details
|
|
1802
|
+
# Change the additional details of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `property`, `bedrooms`, `bathrooms`. **Cost:** 1 call + 2 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1803
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1804
|
+
# @param update_vrbo_listing_additional_info_request [UpdateVrboListingAdditionalInfoRequest]
|
|
1805
|
+
# @param [Hash] opts the optional parameters
|
|
1806
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1807
|
+
# @return [Array<(UpdateVrboListingAdditionalInfo200Response, Integer, Hash)>] UpdateVrboListingAdditionalInfo200Response data, response status code and response headers
|
|
1808
|
+
def update_vrbo_listing_additional_info_with_http_info(id, update_vrbo_listing_additional_info_request, opts = {})
|
|
1809
|
+
if @api_client.config.debugging
|
|
1810
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_additional_info ...'
|
|
1811
|
+
end
|
|
1812
|
+
# verify the required parameter 'id' is set
|
|
1813
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1814
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_additional_info"
|
|
1815
|
+
end
|
|
1816
|
+
# verify the required parameter 'update_vrbo_listing_additional_info_request' is set
|
|
1817
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_additional_info_request.nil?
|
|
1818
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_additional_info_request' when calling VRBOApi.update_vrbo_listing_additional_info"
|
|
1819
|
+
end
|
|
1820
|
+
# resource path
|
|
1821
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/additional-info'.sub('{id}', CGI.escape(id.to_s))
|
|
1822
|
+
|
|
1823
|
+
# query parameters
|
|
1824
|
+
query_params = opts[:query_params] || {}
|
|
1825
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1826
|
+
|
|
1827
|
+
# header parameters
|
|
1828
|
+
header_params = opts[:header_params] || {}
|
|
1829
|
+
# HTTP header 'Accept' (if needed)
|
|
1830
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1831
|
+
# HTTP header 'Content-Type'
|
|
1832
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1833
|
+
if !content_type.nil?
|
|
1834
|
+
header_params['Content-Type'] = content_type
|
|
1835
|
+
end
|
|
1836
|
+
|
|
1837
|
+
# form parameters
|
|
1838
|
+
form_params = opts[:form_params] || {}
|
|
1839
|
+
|
|
1840
|
+
# http body (model)
|
|
1841
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_additional_info_request)
|
|
1842
|
+
|
|
1843
|
+
# return_type
|
|
1844
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingAdditionalInfo200Response'
|
|
1845
|
+
|
|
1846
|
+
# auth_names
|
|
1847
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1848
|
+
|
|
1849
|
+
new_options = opts.merge(
|
|
1850
|
+
:operation => :"VRBOApi.update_vrbo_listing_additional_info",
|
|
1851
|
+
:header_params => header_params,
|
|
1852
|
+
:query_params => query_params,
|
|
1853
|
+
:form_params => form_params,
|
|
1854
|
+
:body => post_body,
|
|
1855
|
+
:auth_names => auth_names,
|
|
1856
|
+
:return_type => return_type
|
|
1857
|
+
)
|
|
1858
|
+
|
|
1859
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1860
|
+
if @api_client.config.debugging
|
|
1861
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_additional_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1862
|
+
end
|
|
1863
|
+
return data, status_code, headers
|
|
1864
|
+
end
|
|
1865
|
+
|
|
1866
|
+
# Update the Vrbo amenities
|
|
1867
|
+
# Change the amenities of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `groups: {<group>: {values: {<field id>: value}}}`. Checkbox `true`/`false`; choice one of the field's `options`; text and numbers as such. Setting a parent to \"no\" clears its children, as Vrbo's own form does. **Cost:** 1 call per group written + the read back of those groups on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1868
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1869
|
+
# @param update_vrbo_listing_amenities_request [UpdateVrboListingAmenitiesRequest]
|
|
1870
|
+
# @param [Hash] opts the optional parameters
|
|
1871
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1872
|
+
# @return [UpdateVrboListingAmenities200Response]
|
|
1873
|
+
def update_vrbo_listing_amenities(id, update_vrbo_listing_amenities_request, opts = {})
|
|
1874
|
+
data, _status_code, _headers = update_vrbo_listing_amenities_with_http_info(id, update_vrbo_listing_amenities_request, opts)
|
|
1875
|
+
data
|
|
1876
|
+
end
|
|
1877
|
+
|
|
1878
|
+
# Update the Vrbo amenities
|
|
1879
|
+
# Change the amenities of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `groups: {<group>: {values: {<field id>: value}}}`. Checkbox `true`/`false`; choice one of the field's `options`; text and numbers as such. Setting a parent to \"no\" clears its children, as Vrbo's own form does. **Cost:** 1 call per group written + the read back of those groups on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1880
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1881
|
+
# @param update_vrbo_listing_amenities_request [UpdateVrboListingAmenitiesRequest]
|
|
1882
|
+
# @param [Hash] opts the optional parameters
|
|
1883
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1884
|
+
# @return [Array<(UpdateVrboListingAmenities200Response, Integer, Hash)>] UpdateVrboListingAmenities200Response data, response status code and response headers
|
|
1885
|
+
def update_vrbo_listing_amenities_with_http_info(id, update_vrbo_listing_amenities_request, opts = {})
|
|
1886
|
+
if @api_client.config.debugging
|
|
1887
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_amenities ...'
|
|
1888
|
+
end
|
|
1889
|
+
# verify the required parameter 'id' is set
|
|
1890
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1891
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_amenities"
|
|
1892
|
+
end
|
|
1893
|
+
# verify the required parameter 'update_vrbo_listing_amenities_request' is set
|
|
1894
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_amenities_request.nil?
|
|
1895
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_amenities_request' when calling VRBOApi.update_vrbo_listing_amenities"
|
|
1896
|
+
end
|
|
1897
|
+
# resource path
|
|
1898
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/amenities'.sub('{id}', CGI.escape(id.to_s))
|
|
1899
|
+
|
|
1900
|
+
# query parameters
|
|
1901
|
+
query_params = opts[:query_params] || {}
|
|
1902
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1903
|
+
|
|
1904
|
+
# header parameters
|
|
1905
|
+
header_params = opts[:header_params] || {}
|
|
1906
|
+
# HTTP header 'Accept' (if needed)
|
|
1907
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1908
|
+
# HTTP header 'Content-Type'
|
|
1909
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1910
|
+
if !content_type.nil?
|
|
1911
|
+
header_params['Content-Type'] = content_type
|
|
1912
|
+
end
|
|
1913
|
+
|
|
1914
|
+
# form parameters
|
|
1915
|
+
form_params = opts[:form_params] || {}
|
|
1916
|
+
|
|
1917
|
+
# http body (model)
|
|
1918
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_amenities_request)
|
|
1919
|
+
|
|
1920
|
+
# return_type
|
|
1921
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingAmenities200Response'
|
|
1922
|
+
|
|
1923
|
+
# auth_names
|
|
1924
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
1925
|
+
|
|
1926
|
+
new_options = opts.merge(
|
|
1927
|
+
:operation => :"VRBOApi.update_vrbo_listing_amenities",
|
|
1928
|
+
:header_params => header_params,
|
|
1929
|
+
:query_params => query_params,
|
|
1930
|
+
:form_params => form_params,
|
|
1931
|
+
:body => post_body,
|
|
1932
|
+
:auth_names => auth_names,
|
|
1933
|
+
:return_type => return_type
|
|
1934
|
+
)
|
|
1935
|
+
|
|
1936
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1937
|
+
if @api_client.config.debugging
|
|
1938
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_amenities\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1939
|
+
end
|
|
1940
|
+
return data, status_code, headers
|
|
1941
|
+
end
|
|
1942
|
+
|
|
1943
|
+
# Update the Vrbo booking settings
|
|
1944
|
+
# Change the booking settings of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `bookingType` (`INSTANT`|`QUOTEHOLD`), `minNights`, `minDaysBeforeBooking`, `maxMonthsBeforeBooking` (6, 9, 12, 18 or 24), `maxLengthOfStay`, `accessType`. Values must be ones the read lists. None of these can be cleared once set — **including `accessType`**: Vrbo keeps the last access type, so it can be changed to another but not removed. **Cost:** 1–3 calls + 2 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1945
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1946
|
+
# @param update_vrbo_listing_booking_settings_request [UpdateVrboListingBookingSettingsRequest]
|
|
1947
|
+
# @param [Hash] opts the optional parameters
|
|
1948
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1949
|
+
# @return [UpdateVrboListingBookingSettings200Response]
|
|
1950
|
+
def update_vrbo_listing_booking_settings(id, update_vrbo_listing_booking_settings_request, opts = {})
|
|
1951
|
+
data, _status_code, _headers = update_vrbo_listing_booking_settings_with_http_info(id, update_vrbo_listing_booking_settings_request, opts)
|
|
1952
|
+
data
|
|
1953
|
+
end
|
|
1954
|
+
|
|
1955
|
+
# Update the Vrbo booking settings
|
|
1956
|
+
# Change the booking settings of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `bookingType` (`INSTANT`|`QUOTEHOLD`), `minNights`, `minDaysBeforeBooking`, `maxMonthsBeforeBooking` (6, 9, 12, 18 or 24), `maxLengthOfStay`, `accessType`. Values must be ones the read lists. None of these can be cleared once set — **including `accessType`**: Vrbo keeps the last access type, so it can be changed to another but not removed. **Cost:** 1–3 calls + 2 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
1957
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
1958
|
+
# @param update_vrbo_listing_booking_settings_request [UpdateVrboListingBookingSettingsRequest]
|
|
1959
|
+
# @param [Hash] opts the optional parameters
|
|
1960
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
1961
|
+
# @return [Array<(UpdateVrboListingBookingSettings200Response, Integer, Hash)>] UpdateVrboListingBookingSettings200Response data, response status code and response headers
|
|
1962
|
+
def update_vrbo_listing_booking_settings_with_http_info(id, update_vrbo_listing_booking_settings_request, opts = {})
|
|
1963
|
+
if @api_client.config.debugging
|
|
1964
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_booking_settings ...'
|
|
1965
|
+
end
|
|
1966
|
+
# verify the required parameter 'id' is set
|
|
1967
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
1968
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_booking_settings"
|
|
1969
|
+
end
|
|
1970
|
+
# verify the required parameter 'update_vrbo_listing_booking_settings_request' is set
|
|
1971
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_booking_settings_request.nil?
|
|
1972
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_booking_settings_request' when calling VRBOApi.update_vrbo_listing_booking_settings"
|
|
1973
|
+
end
|
|
1974
|
+
# resource path
|
|
1975
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/booking-settings'.sub('{id}', CGI.escape(id.to_s))
|
|
1976
|
+
|
|
1977
|
+
# query parameters
|
|
1978
|
+
query_params = opts[:query_params] || {}
|
|
1979
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
1980
|
+
|
|
1981
|
+
# header parameters
|
|
1982
|
+
header_params = opts[:header_params] || {}
|
|
1983
|
+
# HTTP header 'Accept' (if needed)
|
|
1984
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1985
|
+
# HTTP header 'Content-Type'
|
|
1986
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1987
|
+
if !content_type.nil?
|
|
1988
|
+
header_params['Content-Type'] = content_type
|
|
1989
|
+
end
|
|
1990
|
+
|
|
1991
|
+
# form parameters
|
|
1992
|
+
form_params = opts[:form_params] || {}
|
|
1993
|
+
|
|
1994
|
+
# http body (model)
|
|
1995
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_booking_settings_request)
|
|
1996
|
+
|
|
1997
|
+
# return_type
|
|
1998
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingBookingSettings200Response'
|
|
1999
|
+
|
|
2000
|
+
# auth_names
|
|
2001
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2002
|
+
|
|
2003
|
+
new_options = opts.merge(
|
|
2004
|
+
:operation => :"VRBOApi.update_vrbo_listing_booking_settings",
|
|
2005
|
+
:header_params => header_params,
|
|
2006
|
+
:query_params => query_params,
|
|
2007
|
+
:form_params => form_params,
|
|
2008
|
+
:body => post_body,
|
|
2009
|
+
:auth_names => auth_names,
|
|
2010
|
+
:return_type => return_type
|
|
2011
|
+
)
|
|
2012
|
+
|
|
2013
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2014
|
+
if @api_client.config.debugging
|
|
2015
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_booking_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2016
|
+
end
|
|
2017
|
+
return data, status_code, headers
|
|
2018
|
+
end
|
|
2019
|
+
|
|
2020
|
+
# Update the Vrbo cancellation policy
|
|
2021
|
+
# Change the cancellation policy of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `policyType` (e.g. `POLICY_TYPE_VR_RELAXED`, `_MODERATE`, `_FIRM`, `_STRICT`, or `POLICY_TYPE_CUSTOM` with `tiers: [{daysBefore, refundPercent}]`). Seasonal overrides are kept. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2022
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2023
|
+
# @param update_vrbo_listing_cancellation_request [UpdateVrboListingCancellationRequest]
|
|
2024
|
+
# @param [Hash] opts the optional parameters
|
|
2025
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2026
|
+
# @return [UpdateVrboListingCancellation200Response]
|
|
2027
|
+
def update_vrbo_listing_cancellation(id, update_vrbo_listing_cancellation_request, opts = {})
|
|
2028
|
+
data, _status_code, _headers = update_vrbo_listing_cancellation_with_http_info(id, update_vrbo_listing_cancellation_request, opts)
|
|
2029
|
+
data
|
|
2030
|
+
end
|
|
2031
|
+
|
|
2032
|
+
# Update the Vrbo cancellation policy
|
|
2033
|
+
# Change the cancellation policy of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `policyType` (e.g. `POLICY_TYPE_VR_RELAXED`, `_MODERATE`, `_FIRM`, `_STRICT`, or `POLICY_TYPE_CUSTOM` with `tiers: [{daysBefore, refundPercent}]`). Seasonal overrides are kept. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2034
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2035
|
+
# @param update_vrbo_listing_cancellation_request [UpdateVrboListingCancellationRequest]
|
|
2036
|
+
# @param [Hash] opts the optional parameters
|
|
2037
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2038
|
+
# @return [Array<(UpdateVrboListingCancellation200Response, Integer, Hash)>] UpdateVrboListingCancellation200Response data, response status code and response headers
|
|
2039
|
+
def update_vrbo_listing_cancellation_with_http_info(id, update_vrbo_listing_cancellation_request, opts = {})
|
|
2040
|
+
if @api_client.config.debugging
|
|
2041
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_cancellation ...'
|
|
2042
|
+
end
|
|
2043
|
+
# verify the required parameter 'id' is set
|
|
2044
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2045
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_cancellation"
|
|
2046
|
+
end
|
|
2047
|
+
# verify the required parameter 'update_vrbo_listing_cancellation_request' is set
|
|
2048
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_cancellation_request.nil?
|
|
2049
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_cancellation_request' when calling VRBOApi.update_vrbo_listing_cancellation"
|
|
2050
|
+
end
|
|
2051
|
+
# resource path
|
|
2052
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/cancellation'.sub('{id}', CGI.escape(id.to_s))
|
|
2053
|
+
|
|
2054
|
+
# query parameters
|
|
2055
|
+
query_params = opts[:query_params] || {}
|
|
2056
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2057
|
+
|
|
2058
|
+
# header parameters
|
|
2059
|
+
header_params = opts[:header_params] || {}
|
|
2060
|
+
# HTTP header 'Accept' (if needed)
|
|
2061
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2062
|
+
# HTTP header 'Content-Type'
|
|
2063
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2064
|
+
if !content_type.nil?
|
|
2065
|
+
header_params['Content-Type'] = content_type
|
|
2066
|
+
end
|
|
2067
|
+
|
|
2068
|
+
# form parameters
|
|
2069
|
+
form_params = opts[:form_params] || {}
|
|
2070
|
+
|
|
2071
|
+
# http body (model)
|
|
2072
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_cancellation_request)
|
|
2073
|
+
|
|
2074
|
+
# return_type
|
|
2075
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingCancellation200Response'
|
|
2076
|
+
|
|
2077
|
+
# auth_names
|
|
2078
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2079
|
+
|
|
2080
|
+
new_options = opts.merge(
|
|
2081
|
+
:operation => :"VRBOApi.update_vrbo_listing_cancellation",
|
|
2082
|
+
:header_params => header_params,
|
|
2083
|
+
:query_params => query_params,
|
|
2084
|
+
:form_params => form_params,
|
|
2085
|
+
:body => post_body,
|
|
2086
|
+
:auth_names => auth_names,
|
|
2087
|
+
:return_type => return_type
|
|
2088
|
+
)
|
|
2089
|
+
|
|
2090
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2091
|
+
if @api_client.config.debugging
|
|
2092
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_cancellation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2093
|
+
end
|
|
2094
|
+
return data, status_code, headers
|
|
2095
|
+
end
|
|
2096
|
+
|
|
2097
|
+
# Update the Vrbo headline and description
|
|
2098
|
+
# Change the headline and description of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `headline` and/or `description`. Vrbo refuses some characters and words (`( ) * $ €`, other platforms' names, \"covid\") and says which. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2099
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2100
|
+
# @param update_vrbo_listing_description_request [UpdateVrboListingDescriptionRequest]
|
|
2101
|
+
# @param [Hash] opts the optional parameters
|
|
2102
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2103
|
+
# @return [UpdateVrboListingDescription200Response]
|
|
2104
|
+
def update_vrbo_listing_description(id, update_vrbo_listing_description_request, opts = {})
|
|
2105
|
+
data, _status_code, _headers = update_vrbo_listing_description_with_http_info(id, update_vrbo_listing_description_request, opts)
|
|
2106
|
+
data
|
|
2107
|
+
end
|
|
2108
|
+
|
|
2109
|
+
# Update the Vrbo headline and description
|
|
2110
|
+
# Change the headline and description of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `headline` and/or `description`. Vrbo refuses some characters and words (`( ) * $ €`, other platforms' names, \"covid\") and says which. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2111
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2112
|
+
# @param update_vrbo_listing_description_request [UpdateVrboListingDescriptionRequest]
|
|
2113
|
+
# @param [Hash] opts the optional parameters
|
|
2114
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2115
|
+
# @return [Array<(UpdateVrboListingDescription200Response, Integer, Hash)>] UpdateVrboListingDescription200Response data, response status code and response headers
|
|
2116
|
+
def update_vrbo_listing_description_with_http_info(id, update_vrbo_listing_description_request, opts = {})
|
|
2117
|
+
if @api_client.config.debugging
|
|
2118
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_description ...'
|
|
2119
|
+
end
|
|
2120
|
+
# verify the required parameter 'id' is set
|
|
2121
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2122
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_description"
|
|
2123
|
+
end
|
|
2124
|
+
# verify the required parameter 'update_vrbo_listing_description_request' is set
|
|
2125
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_description_request.nil?
|
|
2126
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_description_request' when calling VRBOApi.update_vrbo_listing_description"
|
|
2127
|
+
end
|
|
2128
|
+
# resource path
|
|
2129
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/description'.sub('{id}', CGI.escape(id.to_s))
|
|
2130
|
+
|
|
2131
|
+
# query parameters
|
|
2132
|
+
query_params = opts[:query_params] || {}
|
|
2133
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2134
|
+
|
|
2135
|
+
# header parameters
|
|
2136
|
+
header_params = opts[:header_params] || {}
|
|
2137
|
+
# HTTP header 'Accept' (if needed)
|
|
2138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2139
|
+
# HTTP header 'Content-Type'
|
|
2140
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2141
|
+
if !content_type.nil?
|
|
2142
|
+
header_params['Content-Type'] = content_type
|
|
2143
|
+
end
|
|
2144
|
+
|
|
2145
|
+
# form parameters
|
|
2146
|
+
form_params = opts[:form_params] || {}
|
|
2147
|
+
|
|
2148
|
+
# http body (model)
|
|
2149
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_description_request)
|
|
2150
|
+
|
|
2151
|
+
# return_type
|
|
2152
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingDescription200Response'
|
|
2153
|
+
|
|
2154
|
+
# auth_names
|
|
2155
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2156
|
+
|
|
2157
|
+
new_options = opts.merge(
|
|
2158
|
+
:operation => :"VRBOApi.update_vrbo_listing_description",
|
|
2159
|
+
:header_params => header_params,
|
|
2160
|
+
:query_params => query_params,
|
|
2161
|
+
:form_params => form_params,
|
|
2162
|
+
:body => post_body,
|
|
2163
|
+
:auth_names => auth_names,
|
|
2164
|
+
:return_type => return_type
|
|
2165
|
+
)
|
|
2166
|
+
|
|
2167
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2168
|
+
if @api_client.config.debugging
|
|
2169
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_description\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2170
|
+
end
|
|
2171
|
+
return data, status_code, headers
|
|
2172
|
+
end
|
|
2173
|
+
|
|
2174
|
+
# Update the Vrbo fees
|
|
2175
|
+
# Change the fees of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `cleaning`, `pets`, `extraGuests`, `custom`. `null` clears a fee; `custom` replaces the custom-fee list (`[]` removes them all), each `{productCode, amount, type?, taxable?, taxRate?}` with `productCode` one of the read's `customFeeCodes`. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2176
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2177
|
+
# @param update_vrbo_listing_fees_request [UpdateVrboListingFeesRequest]
|
|
2178
|
+
# @param [Hash] opts the optional parameters
|
|
2179
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2180
|
+
# @return [UpdateVrboListingFees200Response]
|
|
2181
|
+
def update_vrbo_listing_fees(id, update_vrbo_listing_fees_request, opts = {})
|
|
2182
|
+
data, _status_code, _headers = update_vrbo_listing_fees_with_http_info(id, update_vrbo_listing_fees_request, opts)
|
|
2183
|
+
data
|
|
2184
|
+
end
|
|
2185
|
+
|
|
2186
|
+
# Update the Vrbo fees
|
|
2187
|
+
# Change the fees of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `cleaning`, `pets`, `extraGuests`, `custom`. `null` clears a fee; `custom` replaces the custom-fee list (`[]` removes them all), each `{productCode, amount, type?, taxable?, taxRate?}` with `productCode` one of the read's `customFeeCodes`. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2188
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2189
|
+
# @param update_vrbo_listing_fees_request [UpdateVrboListingFeesRequest]
|
|
2190
|
+
# @param [Hash] opts the optional parameters
|
|
2191
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2192
|
+
# @return [Array<(UpdateVrboListingFees200Response, Integer, Hash)>] UpdateVrboListingFees200Response data, response status code and response headers
|
|
2193
|
+
def update_vrbo_listing_fees_with_http_info(id, update_vrbo_listing_fees_request, opts = {})
|
|
2194
|
+
if @api_client.config.debugging
|
|
2195
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_fees ...'
|
|
2196
|
+
end
|
|
2197
|
+
# verify the required parameter 'id' is set
|
|
2198
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2199
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_fees"
|
|
2200
|
+
end
|
|
2201
|
+
# verify the required parameter 'update_vrbo_listing_fees_request' is set
|
|
2202
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_fees_request.nil?
|
|
2203
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_fees_request' when calling VRBOApi.update_vrbo_listing_fees"
|
|
2204
|
+
end
|
|
2205
|
+
# resource path
|
|
2206
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/fees'.sub('{id}', CGI.escape(id.to_s))
|
|
2207
|
+
|
|
2208
|
+
# query parameters
|
|
2209
|
+
query_params = opts[:query_params] || {}
|
|
2210
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2211
|
+
|
|
2212
|
+
# header parameters
|
|
2213
|
+
header_params = opts[:header_params] || {}
|
|
2214
|
+
# HTTP header 'Accept' (if needed)
|
|
2215
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2216
|
+
# HTTP header 'Content-Type'
|
|
2217
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2218
|
+
if !content_type.nil?
|
|
2219
|
+
header_params['Content-Type'] = content_type
|
|
2220
|
+
end
|
|
2221
|
+
|
|
2222
|
+
# form parameters
|
|
2223
|
+
form_params = opts[:form_params] || {}
|
|
2224
|
+
|
|
2225
|
+
# http body (model)
|
|
2226
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_fees_request)
|
|
2227
|
+
|
|
2228
|
+
# return_type
|
|
2229
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingFees200Response'
|
|
2230
|
+
|
|
2231
|
+
# auth_names
|
|
2232
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2233
|
+
|
|
2234
|
+
new_options = opts.merge(
|
|
2235
|
+
:operation => :"VRBOApi.update_vrbo_listing_fees",
|
|
2236
|
+
:header_params => header_params,
|
|
2237
|
+
:query_params => query_params,
|
|
2238
|
+
:form_params => form_params,
|
|
2239
|
+
:body => post_body,
|
|
2240
|
+
:auth_names => auth_names,
|
|
2241
|
+
:return_type => return_type
|
|
2242
|
+
)
|
|
2243
|
+
|
|
2244
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2245
|
+
if @api_client.config.debugging
|
|
2246
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_fees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2247
|
+
end
|
|
2248
|
+
return data, status_code, headers
|
|
2249
|
+
end
|
|
2250
|
+
|
|
2251
|
+
# Update the Vrbo house rules
|
|
2252
|
+
# Change the house rules of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `checkInTime`/`checkOutTime` (`Flexible` or `HH:MM` on the half hour), `maxGuests`, `maxAdults`, `occupancyNote`, `minimumAge`, `minimumAgeNote`, `children`, `pets`, `smoking`, `events`, `customRules` (at most 3). `maxAdults` may not exceed `maxGuests`: when lowering `maxGuests`, send `maxAdults` with it. `maxGuests` cannot be cleared; `minimumAge: null` removes the minimum age. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2253
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2254
|
+
# @param update_vrbo_listing_house_rules_request [UpdateVrboListingHouseRulesRequest]
|
|
2255
|
+
# @param [Hash] opts the optional parameters
|
|
2256
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2257
|
+
# @return [UpdateVrboListingHouseRules200Response]
|
|
2258
|
+
def update_vrbo_listing_house_rules(id, update_vrbo_listing_house_rules_request, opts = {})
|
|
2259
|
+
data, _status_code, _headers = update_vrbo_listing_house_rules_with_http_info(id, update_vrbo_listing_house_rules_request, opts)
|
|
2260
|
+
data
|
|
2261
|
+
end
|
|
2262
|
+
|
|
2263
|
+
# Update the Vrbo house rules
|
|
2264
|
+
# Change the house rules of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `checkInTime`/`checkOutTime` (`Flexible` or `HH:MM` on the half hour), `maxGuests`, `maxAdults`, `occupancyNote`, `minimumAge`, `minimumAgeNote`, `children`, `pets`, `smoking`, `events`, `customRules` (at most 3). `maxAdults` may not exceed `maxGuests`: when lowering `maxGuests`, send `maxAdults` with it. `maxGuests` cannot be cleared; `minimumAge: null` removes the minimum age. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2265
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2266
|
+
# @param update_vrbo_listing_house_rules_request [UpdateVrboListingHouseRulesRequest]
|
|
2267
|
+
# @param [Hash] opts the optional parameters
|
|
2268
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2269
|
+
# @return [Array<(UpdateVrboListingHouseRules200Response, Integer, Hash)>] UpdateVrboListingHouseRules200Response data, response status code and response headers
|
|
2270
|
+
def update_vrbo_listing_house_rules_with_http_info(id, update_vrbo_listing_house_rules_request, opts = {})
|
|
2271
|
+
if @api_client.config.debugging
|
|
2272
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_house_rules ...'
|
|
2273
|
+
end
|
|
2274
|
+
# verify the required parameter 'id' is set
|
|
2275
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2276
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_house_rules"
|
|
2277
|
+
end
|
|
2278
|
+
# verify the required parameter 'update_vrbo_listing_house_rules_request' is set
|
|
2279
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_house_rules_request.nil?
|
|
2280
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_house_rules_request' when calling VRBOApi.update_vrbo_listing_house_rules"
|
|
2281
|
+
end
|
|
2282
|
+
# resource path
|
|
2283
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/house-rules'.sub('{id}', CGI.escape(id.to_s))
|
|
2284
|
+
|
|
2285
|
+
# query parameters
|
|
2286
|
+
query_params = opts[:query_params] || {}
|
|
2287
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2288
|
+
|
|
2289
|
+
# header parameters
|
|
2290
|
+
header_params = opts[:header_params] || {}
|
|
2291
|
+
# HTTP header 'Accept' (if needed)
|
|
2292
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2293
|
+
# HTTP header 'Content-Type'
|
|
2294
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2295
|
+
if !content_type.nil?
|
|
2296
|
+
header_params['Content-Type'] = content_type
|
|
2297
|
+
end
|
|
2298
|
+
|
|
2299
|
+
# form parameters
|
|
2300
|
+
form_params = opts[:form_params] || {}
|
|
2301
|
+
|
|
2302
|
+
# http body (model)
|
|
2303
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_house_rules_request)
|
|
2304
|
+
|
|
2305
|
+
# return_type
|
|
2306
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingHouseRules200Response'
|
|
2307
|
+
|
|
2308
|
+
# auth_names
|
|
2309
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2310
|
+
|
|
2311
|
+
new_options = opts.merge(
|
|
2312
|
+
:operation => :"VRBOApi.update_vrbo_listing_house_rules",
|
|
2313
|
+
:header_params => header_params,
|
|
2314
|
+
:query_params => query_params,
|
|
2315
|
+
:form_params => form_params,
|
|
2316
|
+
:body => post_body,
|
|
2317
|
+
:auth_names => auth_names,
|
|
2318
|
+
:return_type => return_type
|
|
2319
|
+
)
|
|
2320
|
+
|
|
2321
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2322
|
+
if @api_client.config.debugging
|
|
2323
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_house_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2324
|
+
end
|
|
2325
|
+
return data, status_code, headers
|
|
2326
|
+
end
|
|
2327
|
+
|
|
2328
|
+
# Update the Vrbo map setting
|
|
2329
|
+
# Change the map setting of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `showExactLocation: true|false`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2330
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2331
|
+
# @param update_vrbo_listing_location_request [UpdateVrboListingLocationRequest]
|
|
2332
|
+
# @param [Hash] opts the optional parameters
|
|
2333
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2334
|
+
# @return [UpdateVrboListingLocation200Response]
|
|
2335
|
+
def update_vrbo_listing_location(id, update_vrbo_listing_location_request, opts = {})
|
|
2336
|
+
data, _status_code, _headers = update_vrbo_listing_location_with_http_info(id, update_vrbo_listing_location_request, opts)
|
|
2337
|
+
data
|
|
2338
|
+
end
|
|
2339
|
+
|
|
2340
|
+
# Update the Vrbo map setting
|
|
2341
|
+
# Change the map setting of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `showExactLocation: true|false`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2342
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2343
|
+
# @param update_vrbo_listing_location_request [UpdateVrboListingLocationRequest]
|
|
2344
|
+
# @param [Hash] opts the optional parameters
|
|
2345
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2346
|
+
# @return [Array<(UpdateVrboListingLocation200Response, Integer, Hash)>] UpdateVrboListingLocation200Response data, response status code and response headers
|
|
2347
|
+
def update_vrbo_listing_location_with_http_info(id, update_vrbo_listing_location_request, opts = {})
|
|
2348
|
+
if @api_client.config.debugging
|
|
2349
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_location ...'
|
|
2350
|
+
end
|
|
2351
|
+
# verify the required parameter 'id' is set
|
|
2352
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2353
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_location"
|
|
2354
|
+
end
|
|
2355
|
+
# verify the required parameter 'update_vrbo_listing_location_request' is set
|
|
2356
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_location_request.nil?
|
|
2357
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_location_request' when calling VRBOApi.update_vrbo_listing_location"
|
|
2358
|
+
end
|
|
2359
|
+
# resource path
|
|
2360
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/location'.sub('{id}', CGI.escape(id.to_s))
|
|
2361
|
+
|
|
2362
|
+
# query parameters
|
|
2363
|
+
query_params = opts[:query_params] || {}
|
|
2364
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2365
|
+
|
|
2366
|
+
# header parameters
|
|
2367
|
+
header_params = opts[:header_params] || {}
|
|
2368
|
+
# HTTP header 'Accept' (if needed)
|
|
2369
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2370
|
+
# HTTP header 'Content-Type'
|
|
2371
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2372
|
+
if !content_type.nil?
|
|
2373
|
+
header_params['Content-Type'] = content_type
|
|
2374
|
+
end
|
|
2375
|
+
|
|
2376
|
+
# form parameters
|
|
2377
|
+
form_params = opts[:form_params] || {}
|
|
2378
|
+
|
|
2379
|
+
# http body (model)
|
|
2380
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_location_request)
|
|
2381
|
+
|
|
2382
|
+
# return_type
|
|
2383
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingLocation200Response'
|
|
2384
|
+
|
|
2385
|
+
# auth_names
|
|
2386
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2387
|
+
|
|
2388
|
+
new_options = opts.merge(
|
|
2389
|
+
:operation => :"VRBOApi.update_vrbo_listing_location",
|
|
2390
|
+
:header_params => header_params,
|
|
2391
|
+
:query_params => query_params,
|
|
2392
|
+
:form_params => form_params,
|
|
2393
|
+
:body => post_body,
|
|
2394
|
+
:auth_names => auth_names,
|
|
2395
|
+
:return_type => return_type
|
|
2396
|
+
)
|
|
2397
|
+
|
|
2398
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2399
|
+
if @api_client.config.debugging
|
|
2400
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_location\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2401
|
+
end
|
|
2402
|
+
return data, status_code, headers
|
|
2403
|
+
end
|
|
2404
|
+
|
|
2405
|
+
# Update the Vrbo payment terms
|
|
2406
|
+
# Change the payment terms of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `percentDueNow` and `payments: [{percent, daysBeforeArrival}]`, adding up to 100. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2407
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2408
|
+
# @param update_vrbo_listing_payment_terms_request [UpdateVrboListingPaymentTermsRequest]
|
|
2409
|
+
# @param [Hash] opts the optional parameters
|
|
2410
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2411
|
+
# @return [UpdateVrboListingPaymentTerms200Response]
|
|
2412
|
+
def update_vrbo_listing_payment_terms(id, update_vrbo_listing_payment_terms_request, opts = {})
|
|
2413
|
+
data, _status_code, _headers = update_vrbo_listing_payment_terms_with_http_info(id, update_vrbo_listing_payment_terms_request, opts)
|
|
2414
|
+
data
|
|
2415
|
+
end
|
|
2416
|
+
|
|
2417
|
+
# Update the Vrbo payment terms
|
|
2418
|
+
# Change the payment terms of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `percentDueNow` and `payments: [{percent, daysBeforeArrival}]`, adding up to 100. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2419
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2420
|
+
# @param update_vrbo_listing_payment_terms_request [UpdateVrboListingPaymentTermsRequest]
|
|
2421
|
+
# @param [Hash] opts the optional parameters
|
|
2422
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2423
|
+
# @return [Array<(UpdateVrboListingPaymentTerms200Response, Integer, Hash)>] UpdateVrboListingPaymentTerms200Response data, response status code and response headers
|
|
2424
|
+
def update_vrbo_listing_payment_terms_with_http_info(id, update_vrbo_listing_payment_terms_request, opts = {})
|
|
2425
|
+
if @api_client.config.debugging
|
|
2426
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_payment_terms ...'
|
|
2427
|
+
end
|
|
2428
|
+
# verify the required parameter 'id' is set
|
|
2429
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2430
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_payment_terms"
|
|
2431
|
+
end
|
|
2432
|
+
# verify the required parameter 'update_vrbo_listing_payment_terms_request' is set
|
|
2433
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_payment_terms_request.nil?
|
|
2434
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_payment_terms_request' when calling VRBOApi.update_vrbo_listing_payment_terms"
|
|
2435
|
+
end
|
|
2436
|
+
# resource path
|
|
2437
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/payment-terms'.sub('{id}', CGI.escape(id.to_s))
|
|
2438
|
+
|
|
2439
|
+
# query parameters
|
|
2440
|
+
query_params = opts[:query_params] || {}
|
|
2441
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2442
|
+
|
|
2443
|
+
# header parameters
|
|
2444
|
+
header_params = opts[:header_params] || {}
|
|
2445
|
+
# HTTP header 'Accept' (if needed)
|
|
2446
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2447
|
+
# HTTP header 'Content-Type'
|
|
2448
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2449
|
+
if !content_type.nil?
|
|
2450
|
+
header_params['Content-Type'] = content_type
|
|
2451
|
+
end
|
|
2452
|
+
|
|
2453
|
+
# form parameters
|
|
2454
|
+
form_params = opts[:form_params] || {}
|
|
2455
|
+
|
|
2456
|
+
# http body (model)
|
|
2457
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_payment_terms_request)
|
|
2458
|
+
|
|
2459
|
+
# return_type
|
|
2460
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingPaymentTerms200Response'
|
|
2461
|
+
|
|
2462
|
+
# auth_names
|
|
2463
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2464
|
+
|
|
2465
|
+
new_options = opts.merge(
|
|
2466
|
+
:operation => :"VRBOApi.update_vrbo_listing_payment_terms",
|
|
2467
|
+
:header_params => header_params,
|
|
2468
|
+
:query_params => query_params,
|
|
2469
|
+
:form_params => form_params,
|
|
2470
|
+
:body => post_body,
|
|
2471
|
+
:auth_names => auth_names,
|
|
2472
|
+
:return_type => return_type
|
|
2473
|
+
)
|
|
2474
|
+
|
|
2475
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2476
|
+
if @api_client.config.debugging
|
|
2477
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_payment_terms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2478
|
+
end
|
|
2479
|
+
return data, status_code, headers
|
|
2480
|
+
end
|
|
2481
|
+
|
|
2482
|
+
# Update the Vrbo photos
|
|
2483
|
+
# Change the photos of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `add: [{url, caption?}]` (https URLs Vrbo downloads), `delete: [id]`, `captions: {id: caption}`, `order: [id…]`, `cover: id`. Applied in that order. `order` may list only the first photos; the rest keep their order, and every photo is sent with its new position (as Vrbo's own page does). **Captions are one-way:** Vrbo has not been shown to clear a caption once set, so an empty caption is refused. Each `add` uploads a photo again — it is the one write that is not idempotent. **Cost:** about 2 calls per photo added, 1 per delete/caption/reorder, plus reads on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2484
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2485
|
+
# @param update_vrbo_listing_photos_request [UpdateVrboListingPhotosRequest]
|
|
2486
|
+
# @param [Hash] opts the optional parameters
|
|
2487
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2488
|
+
# @return [UpdateVrboListingPhotos200Response]
|
|
2489
|
+
def update_vrbo_listing_photos(id, update_vrbo_listing_photos_request, opts = {})
|
|
2490
|
+
data, _status_code, _headers = update_vrbo_listing_photos_with_http_info(id, update_vrbo_listing_photos_request, opts)
|
|
2491
|
+
data
|
|
2492
|
+
end
|
|
2493
|
+
|
|
2494
|
+
# Update the Vrbo photos
|
|
2495
|
+
# Change the photos of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `add: [{url, caption?}]` (https URLs Vrbo downloads), `delete: [id]`, `captions: {id: caption}`, `order: [id…]`, `cover: id`. Applied in that order. `order` may list only the first photos; the rest keep their order, and every photo is sent with its new position (as Vrbo's own page does). **Captions are one-way:** Vrbo has not been shown to clear a caption once set, so an empty caption is refused. Each `add` uploads a photo again — it is the one write that is not idempotent. **Cost:** about 2 calls per photo added, 1 per delete/caption/reorder, plus reads on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2496
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2497
|
+
# @param update_vrbo_listing_photos_request [UpdateVrboListingPhotosRequest]
|
|
2498
|
+
# @param [Hash] opts the optional parameters
|
|
2499
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2500
|
+
# @return [Array<(UpdateVrboListingPhotos200Response, Integer, Hash)>] UpdateVrboListingPhotos200Response data, response status code and response headers
|
|
2501
|
+
def update_vrbo_listing_photos_with_http_info(id, update_vrbo_listing_photos_request, opts = {})
|
|
2502
|
+
if @api_client.config.debugging
|
|
2503
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_photos ...'
|
|
2504
|
+
end
|
|
2505
|
+
# verify the required parameter 'id' is set
|
|
2506
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2507
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_photos"
|
|
2508
|
+
end
|
|
2509
|
+
# verify the required parameter 'update_vrbo_listing_photos_request' is set
|
|
2510
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_photos_request.nil?
|
|
2511
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_photos_request' when calling VRBOApi.update_vrbo_listing_photos"
|
|
2512
|
+
end
|
|
2513
|
+
# resource path
|
|
2514
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/photos'.sub('{id}', CGI.escape(id.to_s))
|
|
2515
|
+
|
|
2516
|
+
# query parameters
|
|
2517
|
+
query_params = opts[:query_params] || {}
|
|
2518
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2519
|
+
|
|
2520
|
+
# header parameters
|
|
2521
|
+
header_params = opts[:header_params] || {}
|
|
2522
|
+
# HTTP header 'Accept' (if needed)
|
|
2523
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2524
|
+
# HTTP header 'Content-Type'
|
|
2525
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2526
|
+
if !content_type.nil?
|
|
2527
|
+
header_params['Content-Type'] = content_type
|
|
2528
|
+
end
|
|
2529
|
+
|
|
2530
|
+
# form parameters
|
|
2531
|
+
form_params = opts[:form_params] || {}
|
|
2532
|
+
|
|
2533
|
+
# http body (model)
|
|
2534
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_photos_request)
|
|
2535
|
+
|
|
2536
|
+
# return_type
|
|
2537
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingPhotos200Response'
|
|
2538
|
+
|
|
2539
|
+
# auth_names
|
|
2540
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2541
|
+
|
|
2542
|
+
new_options = opts.merge(
|
|
2543
|
+
:operation => :"VRBOApi.update_vrbo_listing_photos",
|
|
2544
|
+
:header_params => header_params,
|
|
2545
|
+
:query_params => query_params,
|
|
2546
|
+
:form_params => form_params,
|
|
2547
|
+
:body => post_body,
|
|
2548
|
+
:auth_names => auth_names,
|
|
2549
|
+
:return_type => return_type
|
|
2550
|
+
)
|
|
2551
|
+
|
|
2552
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2553
|
+
if @api_client.config.debugging
|
|
2554
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_photos\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2555
|
+
end
|
|
2556
|
+
return data, status_code, headers
|
|
2557
|
+
end
|
|
2558
|
+
|
|
2559
|
+
# Update the Vrbo base pricing
|
|
2560
|
+
# Change the base pricing of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `baseRate`. The answer comes once Vrbo shows the new rate. Nightly prices per date come from the listing calendar (`PUT /v1/availability/{propertyId}`), which Vrbo shows over the base rate. Uses Vrbo's calendar quota: while the listing's calendar push is writing, the answer is `409 vrbo_calendar_busy` with `retry_after` and nothing is changed. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2561
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2562
|
+
# @param update_vrbo_listing_pricing_request [UpdateVrboListingPricingRequest]
|
|
2563
|
+
# @param [Hash] opts the optional parameters
|
|
2564
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2565
|
+
# @return [UpdateVrboListingPricing200Response]
|
|
2566
|
+
def update_vrbo_listing_pricing(id, update_vrbo_listing_pricing_request, opts = {})
|
|
2567
|
+
data, _status_code, _headers = update_vrbo_listing_pricing_with_http_info(id, update_vrbo_listing_pricing_request, opts)
|
|
2568
|
+
data
|
|
2569
|
+
end
|
|
2570
|
+
|
|
2571
|
+
# Update the Vrbo base pricing
|
|
2572
|
+
# Change the base pricing of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `baseRate`. The answer comes once Vrbo shows the new rate. Nightly prices per date come from the listing calendar (`PUT /v1/availability/{propertyId}`), which Vrbo shows over the base rate. Uses Vrbo's calendar quota: while the listing's calendar push is writing, the answer is `409 vrbo_calendar_busy` with `retry_after` and nothing is changed. **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2573
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2574
|
+
# @param update_vrbo_listing_pricing_request [UpdateVrboListingPricingRequest]
|
|
2575
|
+
# @param [Hash] opts the optional parameters
|
|
2576
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2577
|
+
# @return [Array<(UpdateVrboListingPricing200Response, Integer, Hash)>] UpdateVrboListingPricing200Response data, response status code and response headers
|
|
2578
|
+
def update_vrbo_listing_pricing_with_http_info(id, update_vrbo_listing_pricing_request, opts = {})
|
|
2579
|
+
if @api_client.config.debugging
|
|
2580
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_pricing ...'
|
|
2581
|
+
end
|
|
2582
|
+
# verify the required parameter 'id' is set
|
|
2583
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2584
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_pricing"
|
|
2585
|
+
end
|
|
2586
|
+
# verify the required parameter 'update_vrbo_listing_pricing_request' is set
|
|
2587
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_pricing_request.nil?
|
|
2588
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_pricing_request' when calling VRBOApi.update_vrbo_listing_pricing"
|
|
2589
|
+
end
|
|
2590
|
+
# resource path
|
|
2591
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/pricing'.sub('{id}', CGI.escape(id.to_s))
|
|
2592
|
+
|
|
2593
|
+
# query parameters
|
|
2594
|
+
query_params = opts[:query_params] || {}
|
|
2595
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2596
|
+
|
|
2597
|
+
# header parameters
|
|
2598
|
+
header_params = opts[:header_params] || {}
|
|
2599
|
+
# HTTP header 'Accept' (if needed)
|
|
2600
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2601
|
+
# HTTP header 'Content-Type'
|
|
2602
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2603
|
+
if !content_type.nil?
|
|
2604
|
+
header_params['Content-Type'] = content_type
|
|
2605
|
+
end
|
|
2606
|
+
|
|
2607
|
+
# form parameters
|
|
2608
|
+
form_params = opts[:form_params] || {}
|
|
2609
|
+
|
|
2610
|
+
# http body (model)
|
|
2611
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_pricing_request)
|
|
2612
|
+
|
|
2613
|
+
# return_type
|
|
2614
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingPricing200Response'
|
|
2615
|
+
|
|
2616
|
+
# auth_names
|
|
2617
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2618
|
+
|
|
2619
|
+
new_options = opts.merge(
|
|
2620
|
+
:operation => :"VRBOApi.update_vrbo_listing_pricing",
|
|
2621
|
+
:header_params => header_params,
|
|
2622
|
+
:query_params => query_params,
|
|
2623
|
+
:form_params => form_params,
|
|
2624
|
+
:body => post_body,
|
|
2625
|
+
:auth_names => auth_names,
|
|
2626
|
+
:return_type => return_type
|
|
2627
|
+
)
|
|
2628
|
+
|
|
2629
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2630
|
+
if @api_client.config.debugging
|
|
2631
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_pricing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2632
|
+
end
|
|
2633
|
+
return data, status_code, headers
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
# Update the Vrbo property details
|
|
2637
|
+
# Change the property details of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `propertyType` (one of `propertyTypeOptions`), `propertyName`, `interiorSize` `{value, unit: sqft|sqm}`, `seniorsOnly`, `longTermRentersWelcome`. `propertyType` and `propertyName` can be changed but not cleared. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2638
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2639
|
+
# @param update_vrbo_listing_property_request [UpdateVrboListingPropertyRequest]
|
|
2640
|
+
# @param [Hash] opts the optional parameters
|
|
2641
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2642
|
+
# @return [UpdateVrboListingProperty200Response]
|
|
2643
|
+
def update_vrbo_listing_property(id, update_vrbo_listing_property_request, opts = {})
|
|
2644
|
+
data, _status_code, _headers = update_vrbo_listing_property_with_http_info(id, update_vrbo_listing_property_request, opts)
|
|
2645
|
+
data
|
|
2646
|
+
end
|
|
2647
|
+
|
|
2648
|
+
# Update the Vrbo property details
|
|
2649
|
+
# Change the property details of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `propertyType` (one of `propertyTypeOptions`), `propertyName`, `interiorSize` `{value, unit: sqft|sqm}`, `seniorsOnly`, `longTermRentersWelcome`. `propertyType` and `propertyName` can be changed but not cleared. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2650
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2651
|
+
# @param update_vrbo_listing_property_request [UpdateVrboListingPropertyRequest]
|
|
2652
|
+
# @param [Hash] opts the optional parameters
|
|
2653
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2654
|
+
# @return [Array<(UpdateVrboListingProperty200Response, Integer, Hash)>] UpdateVrboListingProperty200Response data, response status code and response headers
|
|
2655
|
+
def update_vrbo_listing_property_with_http_info(id, update_vrbo_listing_property_request, opts = {})
|
|
2656
|
+
if @api_client.config.debugging
|
|
2657
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_property ...'
|
|
2658
|
+
end
|
|
2659
|
+
# verify the required parameter 'id' is set
|
|
2660
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2661
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_property"
|
|
2662
|
+
end
|
|
2663
|
+
# verify the required parameter 'update_vrbo_listing_property_request' is set
|
|
2664
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_property_request.nil?
|
|
2665
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_property_request' when calling VRBOApi.update_vrbo_listing_property"
|
|
2666
|
+
end
|
|
2667
|
+
# resource path
|
|
2668
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/property'.sub('{id}', CGI.escape(id.to_s))
|
|
2669
|
+
|
|
2670
|
+
# query parameters
|
|
2671
|
+
query_params = opts[:query_params] || {}
|
|
2672
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2673
|
+
|
|
2674
|
+
# header parameters
|
|
2675
|
+
header_params = opts[:header_params] || {}
|
|
2676
|
+
# HTTP header 'Accept' (if needed)
|
|
2677
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2678
|
+
# HTTP header 'Content-Type'
|
|
2679
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2680
|
+
if !content_type.nil?
|
|
2681
|
+
header_params['Content-Type'] = content_type
|
|
2682
|
+
end
|
|
2683
|
+
|
|
2684
|
+
# form parameters
|
|
2685
|
+
form_params = opts[:form_params] || {}
|
|
2686
|
+
|
|
2687
|
+
# http body (model)
|
|
2688
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_property_request)
|
|
2689
|
+
|
|
2690
|
+
# return_type
|
|
2691
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingProperty200Response'
|
|
2692
|
+
|
|
2693
|
+
# auth_names
|
|
2694
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2695
|
+
|
|
2696
|
+
new_options = opts.merge(
|
|
2697
|
+
:operation => :"VRBOApi.update_vrbo_listing_property",
|
|
2698
|
+
:header_params => header_params,
|
|
2699
|
+
:query_params => query_params,
|
|
2700
|
+
:form_params => form_params,
|
|
2701
|
+
:body => post_body,
|
|
2702
|
+
:auth_names => auth_names,
|
|
2703
|
+
:return_type => return_type
|
|
2704
|
+
)
|
|
2705
|
+
|
|
2706
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2707
|
+
if @api_client.config.debugging
|
|
2708
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2709
|
+
end
|
|
2710
|
+
return data, status_code, headers
|
|
2711
|
+
end
|
|
2712
|
+
|
|
2713
|
+
# Update the Vrbo damage protection
|
|
2714
|
+
# Change the damage protection of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `damageDeposit` (`{amount}` or `null`), `damageProtection`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2715
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2716
|
+
# @param update_vrbo_listing_protection_request [UpdateVrboListingProtectionRequest]
|
|
2717
|
+
# @param [Hash] opts the optional parameters
|
|
2718
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2719
|
+
# @return [UpdateVrboListingProtection200Response]
|
|
2720
|
+
def update_vrbo_listing_protection(id, update_vrbo_listing_protection_request, opts = {})
|
|
2721
|
+
data, _status_code, _headers = update_vrbo_listing_protection_with_http_info(id, update_vrbo_listing_protection_request, opts)
|
|
2722
|
+
data
|
|
2723
|
+
end
|
|
2724
|
+
|
|
2725
|
+
# Update the Vrbo damage protection
|
|
2726
|
+
# Change the damage protection of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `damageDeposit` (`{amount}` or `null`), `damageProtection`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2727
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2728
|
+
# @param update_vrbo_listing_protection_request [UpdateVrboListingProtectionRequest]
|
|
2729
|
+
# @param [Hash] opts the optional parameters
|
|
2730
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2731
|
+
# @return [Array<(UpdateVrboListingProtection200Response, Integer, Hash)>] UpdateVrboListingProtection200Response data, response status code and response headers
|
|
2732
|
+
def update_vrbo_listing_protection_with_http_info(id, update_vrbo_listing_protection_request, opts = {})
|
|
2733
|
+
if @api_client.config.debugging
|
|
2734
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_protection ...'
|
|
2735
|
+
end
|
|
2736
|
+
# verify the required parameter 'id' is set
|
|
2737
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2738
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_protection"
|
|
2739
|
+
end
|
|
2740
|
+
# verify the required parameter 'update_vrbo_listing_protection_request' is set
|
|
2741
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_protection_request.nil?
|
|
2742
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_protection_request' when calling VRBOApi.update_vrbo_listing_protection"
|
|
2743
|
+
end
|
|
2744
|
+
# resource path
|
|
2745
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/protection'.sub('{id}', CGI.escape(id.to_s))
|
|
2746
|
+
|
|
2747
|
+
# query parameters
|
|
2748
|
+
query_params = opts[:query_params] || {}
|
|
2749
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2750
|
+
|
|
2751
|
+
# header parameters
|
|
2752
|
+
header_params = opts[:header_params] || {}
|
|
2753
|
+
# HTTP header 'Accept' (if needed)
|
|
2754
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2755
|
+
# HTTP header 'Content-Type'
|
|
2756
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2757
|
+
if !content_type.nil?
|
|
2758
|
+
header_params['Content-Type'] = content_type
|
|
2759
|
+
end
|
|
2760
|
+
|
|
2761
|
+
# form parameters
|
|
2762
|
+
form_params = opts[:form_params] || {}
|
|
2763
|
+
|
|
2764
|
+
# http body (model)
|
|
2765
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_protection_request)
|
|
2766
|
+
|
|
2767
|
+
# return_type
|
|
2768
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingProtection200Response'
|
|
2769
|
+
|
|
2770
|
+
# auth_names
|
|
2771
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2772
|
+
|
|
2773
|
+
new_options = opts.merge(
|
|
2774
|
+
:operation => :"VRBOApi.update_vrbo_listing_protection",
|
|
2775
|
+
:header_params => header_params,
|
|
2776
|
+
:query_params => query_params,
|
|
2777
|
+
:form_params => form_params,
|
|
2778
|
+
:body => post_body,
|
|
2779
|
+
:auth_names => auth_names,
|
|
2780
|
+
:return_type => return_type
|
|
2781
|
+
)
|
|
2782
|
+
|
|
2783
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2784
|
+
if @api_client.config.debugging
|
|
2785
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_protection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2786
|
+
end
|
|
2787
|
+
return data, status_code, headers
|
|
2788
|
+
end
|
|
2789
|
+
|
|
2790
|
+
# Update the Vrbo rates and stay discounts
|
|
2791
|
+
# Change the rates and stay discounts of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `startDate`, `endDate` (at most 3 years) and any of `nightlyRate` (one price), `nightlyRates` (`{sunday…saturday}`), `weeklyDiscountPercent`, `monthlyDiscountPercent` (0–99). A discount-only write keeps the current prices when each weekday has one price in the range; otherwise send `nightlyRates`. Nightly prices belong to the listing calendar (`PUT /v1/availability/{propertyId}`), whose push to Vrbo may put back a price set here; use this for the discounts and for prices on nights the calendar does not manage. While the listing's calendar push is writing, the answer is `409 vrbo_calendar_busy` with `retry_after` and nothing is changed. **Cost:** 1–2 calendar calls + 1 to read back (Vrbo's calendar quota, the one price pushes use) on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2792
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2793
|
+
# @param update_vrbo_listing_rates_request [UpdateVrboListingRatesRequest]
|
|
2794
|
+
# @param [Hash] opts the optional parameters
|
|
2795
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2796
|
+
# @return [UpdateVrboListingRates200Response]
|
|
2797
|
+
def update_vrbo_listing_rates(id, update_vrbo_listing_rates_request, opts = {})
|
|
2798
|
+
data, _status_code, _headers = update_vrbo_listing_rates_with_http_info(id, update_vrbo_listing_rates_request, opts)
|
|
2799
|
+
data
|
|
2800
|
+
end
|
|
2801
|
+
|
|
2802
|
+
# Update the Vrbo rates and stay discounts
|
|
2803
|
+
# Change the rates and stay discounts of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `startDate`, `endDate` (at most 3 years) and any of `nightlyRate` (one price), `nightlyRates` (`{sunday…saturday}`), `weeklyDiscountPercent`, `monthlyDiscountPercent` (0–99). A discount-only write keeps the current prices when each weekday has one price in the range; otherwise send `nightlyRates`. Nightly prices belong to the listing calendar (`PUT /v1/availability/{propertyId}`), whose push to Vrbo may put back a price set here; use this for the discounts and for prices on nights the calendar does not manage. While the listing's calendar push is writing, the answer is `409 vrbo_calendar_busy` with `retry_after` and nothing is changed. **Cost:** 1–2 calendar calls + 1 to read back (Vrbo's calendar quota, the one price pushes use) on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2804
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2805
|
+
# @param update_vrbo_listing_rates_request [UpdateVrboListingRatesRequest]
|
|
2806
|
+
# @param [Hash] opts the optional parameters
|
|
2807
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2808
|
+
# @return [Array<(UpdateVrboListingRates200Response, Integer, Hash)>] UpdateVrboListingRates200Response data, response status code and response headers
|
|
2809
|
+
def update_vrbo_listing_rates_with_http_info(id, update_vrbo_listing_rates_request, opts = {})
|
|
2810
|
+
if @api_client.config.debugging
|
|
2811
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_rates ...'
|
|
2812
|
+
end
|
|
2813
|
+
# verify the required parameter 'id' is set
|
|
2814
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2815
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_rates"
|
|
2816
|
+
end
|
|
2817
|
+
# verify the required parameter 'update_vrbo_listing_rates_request' is set
|
|
2818
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_rates_request.nil?
|
|
2819
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_rates_request' when calling VRBOApi.update_vrbo_listing_rates"
|
|
2820
|
+
end
|
|
2821
|
+
# resource path
|
|
2822
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/rates'.sub('{id}', CGI.escape(id.to_s))
|
|
2823
|
+
|
|
2824
|
+
# query parameters
|
|
2825
|
+
query_params = opts[:query_params] || {}
|
|
2826
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2827
|
+
|
|
2828
|
+
# header parameters
|
|
2829
|
+
header_params = opts[:header_params] || {}
|
|
2830
|
+
# HTTP header 'Accept' (if needed)
|
|
2831
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2832
|
+
# HTTP header 'Content-Type'
|
|
2833
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2834
|
+
if !content_type.nil?
|
|
2835
|
+
header_params['Content-Type'] = content_type
|
|
2836
|
+
end
|
|
2837
|
+
|
|
2838
|
+
# form parameters
|
|
2839
|
+
form_params = opts[:form_params] || {}
|
|
2840
|
+
|
|
2841
|
+
# http body (model)
|
|
2842
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_rates_request)
|
|
2843
|
+
|
|
2844
|
+
# return_type
|
|
2845
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingRates200Response'
|
|
2846
|
+
|
|
2847
|
+
# auth_names
|
|
2848
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2849
|
+
|
|
2850
|
+
new_options = opts.merge(
|
|
2851
|
+
:operation => :"VRBOApi.update_vrbo_listing_rates",
|
|
2852
|
+
:header_params => header_params,
|
|
2853
|
+
:query_params => query_params,
|
|
2854
|
+
:form_params => form_params,
|
|
2855
|
+
:body => post_body,
|
|
2856
|
+
:auth_names => auth_names,
|
|
2857
|
+
:return_type => return_type
|
|
2858
|
+
)
|
|
2859
|
+
|
|
2860
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2861
|
+
if @api_client.config.debugging
|
|
2862
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2863
|
+
end
|
|
2864
|
+
return data, status_code, headers
|
|
2865
|
+
end
|
|
2866
|
+
|
|
2867
|
+
# Update the Vrbo registration / licence
|
|
2868
|
+
# Change the registration / licence of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `settings: [{name, value}]` with the `name`s the read lists (they differ per city). Vrbo checks them against the registry. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2869
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2870
|
+
# @param update_vrbo_listing_registration_request [UpdateVrboListingRegistrationRequest]
|
|
2871
|
+
# @param [Hash] opts the optional parameters
|
|
2872
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2873
|
+
# @return [UpdateVrboListingRegistration200Response]
|
|
2874
|
+
def update_vrbo_listing_registration(id, update_vrbo_listing_registration_request, opts = {})
|
|
2875
|
+
data, _status_code, _headers = update_vrbo_listing_registration_with_http_info(id, update_vrbo_listing_registration_request, opts)
|
|
2876
|
+
data
|
|
2877
|
+
end
|
|
2878
|
+
|
|
2879
|
+
# Update the Vrbo registration / licence
|
|
2880
|
+
# Change the registration / licence of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `settings: [{name, value}]` with the `name`s the read lists (they differ per city). Vrbo checks them against the registry. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2881
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2882
|
+
# @param update_vrbo_listing_registration_request [UpdateVrboListingRegistrationRequest]
|
|
2883
|
+
# @param [Hash] opts the optional parameters
|
|
2884
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2885
|
+
# @return [Array<(UpdateVrboListingRegistration200Response, Integer, Hash)>] UpdateVrboListingRegistration200Response data, response status code and response headers
|
|
2886
|
+
def update_vrbo_listing_registration_with_http_info(id, update_vrbo_listing_registration_request, opts = {})
|
|
2887
|
+
if @api_client.config.debugging
|
|
2888
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_registration ...'
|
|
2889
|
+
end
|
|
2890
|
+
# verify the required parameter 'id' is set
|
|
2891
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2892
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_registration"
|
|
2893
|
+
end
|
|
2894
|
+
# verify the required parameter 'update_vrbo_listing_registration_request' is set
|
|
2895
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_registration_request.nil?
|
|
2896
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_registration_request' when calling VRBOApi.update_vrbo_listing_registration"
|
|
2897
|
+
end
|
|
2898
|
+
# resource path
|
|
2899
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/registration'.sub('{id}', CGI.escape(id.to_s))
|
|
2900
|
+
|
|
2901
|
+
# query parameters
|
|
2902
|
+
query_params = opts[:query_params] || {}
|
|
2903
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2904
|
+
|
|
2905
|
+
# header parameters
|
|
2906
|
+
header_params = opts[:header_params] || {}
|
|
2907
|
+
# HTTP header 'Accept' (if needed)
|
|
2908
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2909
|
+
# HTTP header 'Content-Type'
|
|
2910
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2911
|
+
if !content_type.nil?
|
|
2912
|
+
header_params['Content-Type'] = content_type
|
|
2913
|
+
end
|
|
2914
|
+
|
|
2915
|
+
# form parameters
|
|
2916
|
+
form_params = opts[:form_params] || {}
|
|
2917
|
+
|
|
2918
|
+
# http body (model)
|
|
2919
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_registration_request)
|
|
2920
|
+
|
|
2921
|
+
# return_type
|
|
2922
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingRegistration200Response'
|
|
2923
|
+
|
|
2924
|
+
# auth_names
|
|
2925
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
2926
|
+
|
|
2927
|
+
new_options = opts.merge(
|
|
2928
|
+
:operation => :"VRBOApi.update_vrbo_listing_registration",
|
|
2929
|
+
:header_params => header_params,
|
|
2930
|
+
:query_params => query_params,
|
|
2931
|
+
:form_params => form_params,
|
|
2932
|
+
:body => post_body,
|
|
2933
|
+
:auth_names => auth_names,
|
|
2934
|
+
:return_type => return_type
|
|
2935
|
+
)
|
|
2936
|
+
|
|
2937
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2938
|
+
if @api_client.config.debugging
|
|
2939
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2940
|
+
end
|
|
2941
|
+
return data, status_code, headers
|
|
2942
|
+
end
|
|
2943
|
+
|
|
2944
|
+
# Update the Vrbo rooms and spaces
|
|
2945
|
+
# Change the rooms and spaces of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `add: [{type, name?, subType?, description?, beds?, amenities?}]`, `update: [{spaceId, …}]`, `delete: [spaceId]`. Beds `{type, size?, quantity 1–99}`: `type` one of the read's `bedTypes`, and `size` is required where that bed type lists `sizes` (bunk, sofa…). **A room description can be replaced but not cleared** (Vrbo never saves an empty one), so an empty `description` is refused. **Cost:** 1 call per room changed + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2946
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2947
|
+
# @param update_vrbo_listing_rooms_request [UpdateVrboListingRoomsRequest]
|
|
2948
|
+
# @param [Hash] opts the optional parameters
|
|
2949
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2950
|
+
# @return [UpdateVrboListingRooms200Response]
|
|
2951
|
+
def update_vrbo_listing_rooms(id, update_vrbo_listing_rooms_request, opts = {})
|
|
2952
|
+
data, _status_code, _headers = update_vrbo_listing_rooms_with_http_info(id, update_vrbo_listing_rooms_request, opts)
|
|
2953
|
+
data
|
|
2954
|
+
end
|
|
2955
|
+
|
|
2956
|
+
# Update the Vrbo rooms and spaces
|
|
2957
|
+
# Change the rooms and spaces of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `add: [{type, name?, subType?, description?, beds?, amenities?}]`, `update: [{spaceId, …}]`, `delete: [spaceId]`. Beds `{type, size?, quantity 1–99}`: `type` one of the read's `bedTypes`, and `size` is required where that bed type lists `sizes` (bunk, sofa…). **A room description can be replaced but not cleared** (Vrbo never saves an empty one), so an empty `description` is refused. **Cost:** 1 call per room changed + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
2958
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
2959
|
+
# @param update_vrbo_listing_rooms_request [UpdateVrboListingRoomsRequest]
|
|
2960
|
+
# @param [Hash] opts the optional parameters
|
|
2961
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
2962
|
+
# @return [Array<(UpdateVrboListingRooms200Response, Integer, Hash)>] UpdateVrboListingRooms200Response data, response status code and response headers
|
|
2963
|
+
def update_vrbo_listing_rooms_with_http_info(id, update_vrbo_listing_rooms_request, opts = {})
|
|
2964
|
+
if @api_client.config.debugging
|
|
2965
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_rooms ...'
|
|
2966
|
+
end
|
|
2967
|
+
# verify the required parameter 'id' is set
|
|
2968
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
2969
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_rooms"
|
|
2970
|
+
end
|
|
2971
|
+
# verify the required parameter 'update_vrbo_listing_rooms_request' is set
|
|
2972
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_rooms_request.nil?
|
|
2973
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_rooms_request' when calling VRBOApi.update_vrbo_listing_rooms"
|
|
2974
|
+
end
|
|
2975
|
+
# resource path
|
|
2976
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/rooms'.sub('{id}', CGI.escape(id.to_s))
|
|
2977
|
+
|
|
2978
|
+
# query parameters
|
|
2979
|
+
query_params = opts[:query_params] || {}
|
|
2980
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
2981
|
+
|
|
2982
|
+
# header parameters
|
|
2983
|
+
header_params = opts[:header_params] || {}
|
|
2984
|
+
# HTTP header 'Accept' (if needed)
|
|
2985
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2986
|
+
# HTTP header 'Content-Type'
|
|
2987
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2988
|
+
if !content_type.nil?
|
|
2989
|
+
header_params['Content-Type'] = content_type
|
|
2990
|
+
end
|
|
2991
|
+
|
|
2992
|
+
# form parameters
|
|
2993
|
+
form_params = opts[:form_params] || {}
|
|
2994
|
+
|
|
2995
|
+
# http body (model)
|
|
2996
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_rooms_request)
|
|
2997
|
+
|
|
2998
|
+
# return_type
|
|
2999
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingRooms200Response'
|
|
3000
|
+
|
|
3001
|
+
# auth_names
|
|
3002
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
3003
|
+
|
|
3004
|
+
new_options = opts.merge(
|
|
3005
|
+
:operation => :"VRBOApi.update_vrbo_listing_rooms",
|
|
3006
|
+
:header_params => header_params,
|
|
3007
|
+
:query_params => query_params,
|
|
3008
|
+
:form_params => form_params,
|
|
3009
|
+
:body => post_body,
|
|
3010
|
+
:auth_names => auth_names,
|
|
3011
|
+
:return_type => return_type
|
|
3012
|
+
)
|
|
3013
|
+
|
|
3014
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3015
|
+
if @api_client.config.debugging
|
|
3016
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_rooms\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3017
|
+
end
|
|
3018
|
+
return data, status_code, headers
|
|
3019
|
+
end
|
|
3020
|
+
|
|
3021
|
+
# Update the Vrbo host story
|
|
3022
|
+
# Change the host story of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `aboutYou`, `whyThisProperty`, `uniqueBenefits`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3023
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3024
|
+
# @param update_vrbo_listing_story_request [UpdateVrboListingStoryRequest]
|
|
3025
|
+
# @param [Hash] opts the optional parameters
|
|
3026
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3027
|
+
# @return [UpdateVrboListingStory200Response]
|
|
3028
|
+
def update_vrbo_listing_story(id, update_vrbo_listing_story_request, opts = {})
|
|
3029
|
+
data, _status_code, _headers = update_vrbo_listing_story_with_http_info(id, update_vrbo_listing_story_request, opts)
|
|
3030
|
+
data
|
|
3031
|
+
end
|
|
3032
|
+
|
|
3033
|
+
# Update the Vrbo host story
|
|
3034
|
+
# Change the host story of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `aboutYou`, `whyThisProperty`, `uniqueBenefits`. **Cost:** 1 call + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3035
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3036
|
+
# @param update_vrbo_listing_story_request [UpdateVrboListingStoryRequest]
|
|
3037
|
+
# @param [Hash] opts the optional parameters
|
|
3038
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3039
|
+
# @return [Array<(UpdateVrboListingStory200Response, Integer, Hash)>] UpdateVrboListingStory200Response data, response status code and response headers
|
|
3040
|
+
def update_vrbo_listing_story_with_http_info(id, update_vrbo_listing_story_request, opts = {})
|
|
3041
|
+
if @api_client.config.debugging
|
|
3042
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_story ...'
|
|
3043
|
+
end
|
|
3044
|
+
# verify the required parameter 'id' is set
|
|
3045
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3046
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_story"
|
|
3047
|
+
end
|
|
3048
|
+
# verify the required parameter 'update_vrbo_listing_story_request' is set
|
|
3049
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_story_request.nil?
|
|
3050
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_story_request' when calling VRBOApi.update_vrbo_listing_story"
|
|
3051
|
+
end
|
|
3052
|
+
# resource path
|
|
3053
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/story'.sub('{id}', CGI.escape(id.to_s))
|
|
3054
|
+
|
|
3055
|
+
# query parameters
|
|
3056
|
+
query_params = opts[:query_params] || {}
|
|
3057
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
3058
|
+
|
|
3059
|
+
# header parameters
|
|
3060
|
+
header_params = opts[:header_params] || {}
|
|
3061
|
+
# HTTP header 'Accept' (if needed)
|
|
3062
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3063
|
+
# HTTP header 'Content-Type'
|
|
3064
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3065
|
+
if !content_type.nil?
|
|
3066
|
+
header_params['Content-Type'] = content_type
|
|
3067
|
+
end
|
|
3068
|
+
|
|
3069
|
+
# form parameters
|
|
3070
|
+
form_params = opts[:form_params] || {}
|
|
3071
|
+
|
|
3072
|
+
# http body (model)
|
|
3073
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_story_request)
|
|
3074
|
+
|
|
3075
|
+
# return_type
|
|
3076
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingStory200Response'
|
|
3077
|
+
|
|
3078
|
+
# auth_names
|
|
3079
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
3080
|
+
|
|
3081
|
+
new_options = opts.merge(
|
|
3082
|
+
:operation => :"VRBOApi.update_vrbo_listing_story",
|
|
3083
|
+
:header_params => header_params,
|
|
3084
|
+
:query_params => query_params,
|
|
3085
|
+
:form_params => form_params,
|
|
3086
|
+
:body => post_body,
|
|
3087
|
+
:auth_names => auth_names,
|
|
3088
|
+
:return_type => return_type
|
|
3089
|
+
)
|
|
3090
|
+
|
|
3091
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3092
|
+
if @api_client.config.debugging
|
|
3093
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_story\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3094
|
+
end
|
|
3095
|
+
return data, status_code, headers
|
|
3096
|
+
end
|
|
3097
|
+
|
|
3098
|
+
# Update the Vrbo taxes
|
|
3099
|
+
# Change the taxes of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `tax`, `stayTax` or `partnerTaxSettings`, in Vrbo's shape (see the read's `raw`). **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3100
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3101
|
+
# @param update_vrbo_listing_taxes_request [UpdateVrboListingTaxesRequest]
|
|
3102
|
+
# @param [Hash] opts the optional parameters
|
|
3103
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3104
|
+
# @return [UpdateVrboListingTaxes200Response]
|
|
3105
|
+
def update_vrbo_listing_taxes(id, update_vrbo_listing_taxes_request, opts = {})
|
|
3106
|
+
data, _status_code, _headers = update_vrbo_listing_taxes_with_http_info(id, update_vrbo_listing_taxes_request, opts)
|
|
3107
|
+
data
|
|
3108
|
+
end
|
|
3109
|
+
|
|
3110
|
+
# Update the Vrbo taxes
|
|
3111
|
+
# Change the taxes of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `tax`, `stayTax` or `partnerTaxSettings`, in Vrbo's shape (see the read's `raw`). **Cost:** 2 calls + 1 to read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3112
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3113
|
+
# @param update_vrbo_listing_taxes_request [UpdateVrboListingTaxesRequest]
|
|
3114
|
+
# @param [Hash] opts the optional parameters
|
|
3115
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3116
|
+
# @return [Array<(UpdateVrboListingTaxes200Response, Integer, Hash)>] UpdateVrboListingTaxes200Response data, response status code and response headers
|
|
3117
|
+
def update_vrbo_listing_taxes_with_http_info(id, update_vrbo_listing_taxes_request, opts = {})
|
|
3118
|
+
if @api_client.config.debugging
|
|
3119
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_taxes ...'
|
|
3120
|
+
end
|
|
3121
|
+
# verify the required parameter 'id' is set
|
|
3122
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3123
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_taxes"
|
|
3124
|
+
end
|
|
3125
|
+
# verify the required parameter 'update_vrbo_listing_taxes_request' is set
|
|
3126
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_taxes_request.nil?
|
|
3127
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_taxes_request' when calling VRBOApi.update_vrbo_listing_taxes"
|
|
3128
|
+
end
|
|
3129
|
+
# resource path
|
|
3130
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/taxes'.sub('{id}', CGI.escape(id.to_s))
|
|
3131
|
+
|
|
3132
|
+
# query parameters
|
|
3133
|
+
query_params = opts[:query_params] || {}
|
|
3134
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
3135
|
+
|
|
3136
|
+
# header parameters
|
|
3137
|
+
header_params = opts[:header_params] || {}
|
|
3138
|
+
# HTTP header 'Accept' (if needed)
|
|
3139
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3140
|
+
# HTTP header 'Content-Type'
|
|
3141
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3142
|
+
if !content_type.nil?
|
|
3143
|
+
header_params['Content-Type'] = content_type
|
|
3144
|
+
end
|
|
3145
|
+
|
|
3146
|
+
# form parameters
|
|
3147
|
+
form_params = opts[:form_params] || {}
|
|
3148
|
+
|
|
3149
|
+
# http body (model)
|
|
3150
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_taxes_request)
|
|
3151
|
+
|
|
3152
|
+
# return_type
|
|
3153
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingTaxes200Response'
|
|
3154
|
+
|
|
3155
|
+
# auth_names
|
|
3156
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
3157
|
+
|
|
3158
|
+
new_options = opts.merge(
|
|
3159
|
+
:operation => :"VRBOApi.update_vrbo_listing_taxes",
|
|
3160
|
+
:header_params => header_params,
|
|
3161
|
+
:query_params => query_params,
|
|
3162
|
+
:form_params => form_params,
|
|
3163
|
+
:body => post_body,
|
|
3164
|
+
:auth_names => auth_names,
|
|
3165
|
+
:return_type => return_type
|
|
3166
|
+
)
|
|
3167
|
+
|
|
3168
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3169
|
+
if @api_client.config.debugging
|
|
3170
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_taxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3171
|
+
end
|
|
3172
|
+
return data, status_code, headers
|
|
3173
|
+
end
|
|
3174
|
+
|
|
3175
|
+
# Update the Vrbo manual translations
|
|
3176
|
+
# Change the manual translations of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `set: [{locale, headline, description}]` and/or `delete: [locale]`. **Cost:** 1 call per language + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3177
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3178
|
+
# @param update_vrbo_listing_translations_request [UpdateVrboListingTranslationsRequest]
|
|
3179
|
+
# @param [Hash] opts the optional parameters
|
|
3180
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3181
|
+
# @return [UpdateVrboListingTranslations200Response]
|
|
3182
|
+
def update_vrbo_listing_translations(id, update_vrbo_listing_translations_request, opts = {})
|
|
3183
|
+
data, _status_code, _headers = update_vrbo_listing_translations_with_http_info(id, update_vrbo_listing_translations_request, opts)
|
|
3184
|
+
data
|
|
3185
|
+
end
|
|
3186
|
+
|
|
3187
|
+
# Update the Vrbo manual translations
|
|
3188
|
+
# Change the manual translations of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. `set: [{locale, headline, description}]` and/or `delete: [locale]`. **Cost:** 1 call per language + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3189
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3190
|
+
# @param update_vrbo_listing_translations_request [UpdateVrboListingTranslationsRequest]
|
|
3191
|
+
# @param [Hash] opts the optional parameters
|
|
3192
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3193
|
+
# @return [Array<(UpdateVrboListingTranslations200Response, Integer, Hash)>] UpdateVrboListingTranslations200Response data, response status code and response headers
|
|
3194
|
+
def update_vrbo_listing_translations_with_http_info(id, update_vrbo_listing_translations_request, opts = {})
|
|
3195
|
+
if @api_client.config.debugging
|
|
3196
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_translations ...'
|
|
3197
|
+
end
|
|
3198
|
+
# verify the required parameter 'id' is set
|
|
3199
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3200
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_translations"
|
|
3201
|
+
end
|
|
3202
|
+
# verify the required parameter 'update_vrbo_listing_translations_request' is set
|
|
3203
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_translations_request.nil?
|
|
3204
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_translations_request' when calling VRBOApi.update_vrbo_listing_translations"
|
|
3205
|
+
end
|
|
3206
|
+
# resource path
|
|
3207
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/translations'.sub('{id}', CGI.escape(id.to_s))
|
|
3208
|
+
|
|
3209
|
+
# query parameters
|
|
3210
|
+
query_params = opts[:query_params] || {}
|
|
3211
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
3212
|
+
|
|
3213
|
+
# header parameters
|
|
3214
|
+
header_params = opts[:header_params] || {}
|
|
3215
|
+
# HTTP header 'Accept' (if needed)
|
|
3216
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3217
|
+
# HTTP header 'Content-Type'
|
|
3218
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3219
|
+
if !content_type.nil?
|
|
3220
|
+
header_params['Content-Type'] = content_type
|
|
3221
|
+
end
|
|
3222
|
+
|
|
3223
|
+
# form parameters
|
|
3224
|
+
form_params = opts[:form_params] || {}
|
|
3225
|
+
|
|
3226
|
+
# http body (model)
|
|
3227
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_translations_request)
|
|
3228
|
+
|
|
3229
|
+
# return_type
|
|
3230
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingTranslations200Response'
|
|
3231
|
+
|
|
3232
|
+
# auth_names
|
|
3233
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
3234
|
+
|
|
3235
|
+
new_options = opts.merge(
|
|
3236
|
+
:operation => :"VRBOApi.update_vrbo_listing_translations",
|
|
3237
|
+
:header_params => header_params,
|
|
3238
|
+
:query_params => query_params,
|
|
3239
|
+
:form_params => form_params,
|
|
3240
|
+
:body => post_body,
|
|
3241
|
+
:auth_names => auth_names,
|
|
3242
|
+
:return_type => return_type
|
|
3243
|
+
)
|
|
3244
|
+
|
|
3245
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3246
|
+
if @api_client.config.debugging
|
|
3247
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_translations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3248
|
+
end
|
|
3249
|
+
return data, status_code, headers
|
|
3250
|
+
end
|
|
3251
|
+
|
|
3252
|
+
# Update the Vrbo welcome guide
|
|
3253
|
+
# Change the welcome guide of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `checkIn`, `checkOut`, `drivingDirections`, `parkingDirections` (`{instructions}`), `wifi`, `access`, `amenities` (`{AMENITY_ID: {instructions}}`). **The notes are one-way:** Vrbo has not been shown to remove a note once added, so `null` and empty text are refused — change a note to other text instead. **Cost:** 1–2 calls per item + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3254
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3255
|
+
# @param update_vrbo_listing_welcome_guide_request [UpdateVrboListingWelcomeGuideRequest]
|
|
3256
|
+
# @param [Hash] opts the optional parameters
|
|
3257
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3258
|
+
# @return [UpdateVrboListingWelcomeGuide200Response]
|
|
3259
|
+
def update_vrbo_listing_welcome_guide(id, update_vrbo_listing_welcome_guide_request, opts = {})
|
|
3260
|
+
data, _status_code, _headers = update_vrbo_listing_welcome_guide_with_http_info(id, update_vrbo_listing_welcome_guide_request, opts)
|
|
3261
|
+
data
|
|
3262
|
+
end
|
|
3263
|
+
|
|
3264
|
+
# Update the Vrbo welcome guide
|
|
3265
|
+
# Change the welcome guide of the listing's existing Vrbo listing. **Partial:** send only the fields to change; a field you leave out is never changed on Vrbo, and a field sent as `null` means \"none\" (where the field can be cleared). Fields Vrbo can change but never empty once set are refused with `422 invalid_params` when sent empty or `null`, rather than answering OK while Vrbo keeps the old value. Any of `checkIn`, `checkOut`, `drivingDirections`, `parkingDirections` (`{instructions}`), `wifi`, `access`, `amenities` (`{AMENITY_ID: {instructions}}`). **The notes are one-way:** Vrbo has not been shown to remove a note once added, so `null` and empty text are refused — change a note to other text instead. **Cost:** 1–2 calls per item + the read back on Vrbo, spaced ~3 s apart per account. The answer comes once Vrbo has saved and the section has been read back. **When Vrbo refuses** a value the answer is `422 vrbo_rejected` with Vrbo's own message, the refused fields in `errors` and what Vrbo has now in `data` (fields Vrbo accepted in the same request are saved). A malformed body is `422 invalid_params` naming the field, and nothing is sent to Vrbo. Needs a Vrbo account connected with full access: one connected with messaging access answers `403 vrbo_messaging_access`. Returns `403 listing_inactive` when the listing is inactive.
|
|
3266
|
+
# @param id [String] Repull listing id (numeric string) of a listing linked to Vrbo.
|
|
3267
|
+
# @param update_vrbo_listing_welcome_guide_request [UpdateVrboListingWelcomeGuideRequest]
|
|
3268
|
+
# @param [Hash] opts the optional parameters
|
|
3269
|
+
# @option opts [String] :vrbo_listing_number The Vrbo listing number to work on, when the listing is linked to more than one Vrbo unit.
|
|
3270
|
+
# @return [Array<(UpdateVrboListingWelcomeGuide200Response, Integer, Hash)>] UpdateVrboListingWelcomeGuide200Response data, response status code and response headers
|
|
3271
|
+
def update_vrbo_listing_welcome_guide_with_http_info(id, update_vrbo_listing_welcome_guide_request, opts = {})
|
|
3272
|
+
if @api_client.config.debugging
|
|
3273
|
+
@api_client.config.logger.debug 'Calling API: VRBOApi.update_vrbo_listing_welcome_guide ...'
|
|
3274
|
+
end
|
|
3275
|
+
# verify the required parameter 'id' is set
|
|
3276
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
3277
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VRBOApi.update_vrbo_listing_welcome_guide"
|
|
3278
|
+
end
|
|
3279
|
+
# verify the required parameter 'update_vrbo_listing_welcome_guide_request' is set
|
|
3280
|
+
if @api_client.config.client_side_validation && update_vrbo_listing_welcome_guide_request.nil?
|
|
3281
|
+
fail ArgumentError, "Missing the required parameter 'update_vrbo_listing_welcome_guide_request' when calling VRBOApi.update_vrbo_listing_welcome_guide"
|
|
3282
|
+
end
|
|
3283
|
+
# resource path
|
|
3284
|
+
local_var_path = '/v1/channels/vrbo/listings/{id}/welcome-guide'.sub('{id}', CGI.escape(id.to_s))
|
|
3285
|
+
|
|
3286
|
+
# query parameters
|
|
3287
|
+
query_params = opts[:query_params] || {}
|
|
3288
|
+
query_params[:'vrboListingNumber'] = opts[:'vrbo_listing_number'] if !opts[:'vrbo_listing_number'].nil?
|
|
3289
|
+
|
|
3290
|
+
# header parameters
|
|
3291
|
+
header_params = opts[:header_params] || {}
|
|
3292
|
+
# HTTP header 'Accept' (if needed)
|
|
3293
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
3294
|
+
# HTTP header 'Content-Type'
|
|
3295
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3296
|
+
if !content_type.nil?
|
|
3297
|
+
header_params['Content-Type'] = content_type
|
|
3298
|
+
end
|
|
3299
|
+
|
|
3300
|
+
# form parameters
|
|
3301
|
+
form_params = opts[:form_params] || {}
|
|
3302
|
+
|
|
3303
|
+
# http body (model)
|
|
3304
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_vrbo_listing_welcome_guide_request)
|
|
3305
|
+
|
|
3306
|
+
# return_type
|
|
3307
|
+
return_type = opts[:debug_return_type] || 'UpdateVrboListingWelcomeGuide200Response'
|
|
3308
|
+
|
|
3309
|
+
# auth_names
|
|
3310
|
+
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
3311
|
+
|
|
3312
|
+
new_options = opts.merge(
|
|
3313
|
+
:operation => :"VRBOApi.update_vrbo_listing_welcome_guide",
|
|
3314
|
+
:header_params => header_params,
|
|
3315
|
+
:query_params => query_params,
|
|
3316
|
+
:form_params => form_params,
|
|
3317
|
+
:body => post_body,
|
|
3318
|
+
:auth_names => auth_names,
|
|
3319
|
+
:return_type => return_type
|
|
3320
|
+
)
|
|
3321
|
+
|
|
3322
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
3323
|
+
if @api_client.config.debugging
|
|
3324
|
+
@api_client.config.logger.debug "API called: VRBOApi#update_vrbo_listing_welcome_guide\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
167
3325
|
end
|
|
168
3326
|
return data, status_code, headers
|
|
169
3327
|
end
|