repull 0.2.53 → 0.2.55
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 +10 -10
- data/lib/repull/api/vrbo_api.rb +4393 -57
- data/lib/repull/models/add_vrbo_listing_photos200_response.rb +245 -0
- data/lib/repull/models/add_vrbo_listing_photos200_response_data.rb +170 -0
- data/lib/repull/models/add_vrbo_listing_photos_request.rb +184 -0
- data/lib/repull/models/add_vrbo_listing_photos_request_photos_inner.rb +207 -0
- data/lib/repull/models/add_vrbo_listing_room_request.rb +309 -0
- data/lib/repull/models/add_vrbo_listing_video200_response.rb +245 -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_connection200_response.rb +147 -0
- data/lib/repull/models/get_vrbo_connection200_response_data.rb +210 -0
- data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner.rb +292 -0
- data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner_sync.rb +156 -0
- data/lib/repull/models/get_vrbo_listing200_response.rb +175 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_freshness.rb +187 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_freshness_accounts_inner.rb +194 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +548 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_address.rb +208 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity.rb +177 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity_pets.rb +158 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_content.rb +162 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_rating.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness.rb +308 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness_accounts_inner.rb +194 -0
- data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +217 -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_availability200_response.rb +186 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data.rb +104 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of.rb +208 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of_inner.rb +260 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_range.rb +156 -0
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +217 -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 +217 -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_checkin_guide200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_checkin_guide200_response_data.rb +222 -0
- data/lib/repull/models/get_vrbo_listing_checkout_guide200_response.rb +203 -0
- data/lib/repull/models/get_vrbo_listing_checkout_guide200_response_data.rb +170 -0
- data/lib/repull/models/get_vrbo_listing_content200_response.rb +216 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +312 -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_checkin_guide.rb +221 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_access.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_check_in.rb +169 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_contacts_inner.rb +168 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_wifi.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner.rb +188 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner_limits.rb +159 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner_limits_headline.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_details.rb +198 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_details_interior_size.rb +192 -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_permits.rb +159 -0
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_permits_fields_inner.rb +178 -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_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_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_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_descriptions200_response.rb +232 -0
- data/lib/repull/models/get_vrbo_listing_details200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_details200_response_data.rb +199 -0
- data/lib/repull/models/get_vrbo_listing_fees200_response.rb +217 -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 +217 -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 +217 -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 +217 -0
- data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +160 -0
- data/lib/repull/models/get_vrbo_listing_permits200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_permits200_response_data.rb +160 -0
- data/lib/repull/models/get_vrbo_listing_photos200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +170 -0
- data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +202 -0
- data/lib/repull/models/get_vrbo_listing_protection200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +190 -0
- data/lib/repull/models/get_vrbo_listing_rates200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +178 -0
- data/lib/repull/models/get_vrbo_listing_rates200_response_data_days_inner.rb +196 -0
- data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +193 -0
- data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
- data/lib/repull/models/get_vrbo_listing_story200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +180 -0
- data/lib/repull/models/get_vrbo_listing_videos200_response.rb +217 -0
- data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +150 -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/map_vrbo_listing200_response.rb +183 -0
- data/lib/repull/models/map_vrbo_listing_request.rb +205 -0
- data/lib/repull/models/publish_listing_to_vrbo_request.rb +48 -4
- data/lib/repull/models/reorder_vrbo_listing_photos_request.rb +184 -0
- data/lib/repull/models/set_vrbo_listing_cover_photo_request.rb +164 -0
- data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +245 -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 +245 -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_availability202_response.rb +156 -0
- data/lib/repull/models/update_vrbo_listing_availability202_response_data.rb +165 -0
- data/lib/repull/models/update_vrbo_listing_availability_request.rb +220 -0
- data/lib/repull/models/update_vrbo_listing_availability_request_operations_inner.rb +299 -0
- data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +245 -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 +245 -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_checkin_guide200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_checkin_guide200_response_data.rb +222 -0
- data/lib/repull/models/update_vrbo_listing_checkin_guide_request.rb +204 -0
- data/lib/repull/models/update_vrbo_listing_checkin_guide_request_access.rb +203 -0
- data/lib/repull/models/update_vrbo_listing_checkin_guide_request_check_in.rb +173 -0
- data/lib/repull/models/update_vrbo_listing_checkin_guide_request_wifi.rb +222 -0
- data/lib/repull/models/update_vrbo_listing_descriptions200_response.rb +248 -0
- data/lib/repull/models/update_vrbo_listing_descriptions_request.rb +222 -0
- data/lib/repull/models/update_vrbo_listing_details200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_details200_response_data.rb +199 -0
- data/lib/repull/models/update_vrbo_listing_details_request.rb +185 -0
- data/lib/repull/models/update_vrbo_listing_details_request_interior_size.rb +223 -0
- data/lib/repull/models/update_vrbo_listing_fees200_response.rb +245 -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 +245 -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 +245 -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 +245 -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_permits200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_permits200_response_data.rb +160 -0
- data/lib/repull/models/update_vrbo_listing_permits_request.rb +166 -0
- data/lib/repull/models/update_vrbo_listing_permits_request_settings_inner.rb +177 -0
- data/lib/repull/models/update_vrbo_listing_permits_request_settings_inner_value.rb +105 -0
- data/lib/repull/models/update_vrbo_listing_photo_request.rb +229 -0
- data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +245 -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_protection200_response.rb +245 -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 +245 -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_room200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_room200_response_data.rb +193 -0
- data/lib/repull/models/update_vrbo_listing_room_request.rb +254 -0
- data/lib/repull/models/update_vrbo_listing_room_request_amenities.rb +105 -0
- data/lib/repull/models/update_vrbo_listing_room_request_amenities_one_of_inner.rb +165 -0
- data/lib/repull/models/update_vrbo_listing_room_request_beds_inner.rb +219 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures_request.rb +164 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups.rb +156 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups_home_safety.rb +166 -0
- data/lib/repull/models/update_vrbo_listing_story200_response.rb +245 -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 +245 -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/vrbo_listing_action200_response.rb +196 -0
- data/lib/repull/models/vrbo_listing_action200_response_units_inner.rb +192 -0
- data/lib/repull/models/vrbo_listing_action_request.rb +210 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +228 -0
- data/openapi/v1.json +23506 -11
- metadata +230 -2
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
class GetVrboListingVideos200Response < ApiModelBase
|
|
18
|
+
attr_accessor :data
|
|
19
|
+
|
|
20
|
+
attr_accessor :data_freshness
|
|
21
|
+
|
|
22
|
+
# The Vrbo listing number this is about.
|
|
23
|
+
attr_accessor :vrbo_listing_number
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'data' => :'data',
|
|
29
|
+
:'data_freshness' => :'dataFreshness',
|
|
30
|
+
:'vrbo_listing_number' => :'vrboListingNumber'
|
|
31
|
+
}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Returns attribute mapping this model knows about
|
|
35
|
+
def self.acceptable_attribute_map
|
|
36
|
+
attribute_map
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# Returns all the JSON keys this model knows about
|
|
40
|
+
def self.acceptable_attributes
|
|
41
|
+
acceptable_attribute_map.values
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.openapi_types
|
|
46
|
+
{
|
|
47
|
+
:'data' => :'GetVrboListingVideos200ResponseData',
|
|
48
|
+
:'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
|
|
49
|
+
:'vrbo_listing_number' => :'String'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# List of attributes with nullable: true
|
|
54
|
+
def self.openapi_nullable
|
|
55
|
+
Set.new([
|
|
56
|
+
])
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# Initializes the object
|
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
61
|
+
def initialize(attributes = {})
|
|
62
|
+
if (!attributes.is_a?(Hash))
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingVideos200Response` initialize method"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
67
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
68
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
69
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingVideos200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
71
|
+
end
|
|
72
|
+
h[k.to_sym] = v
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'data')
|
|
76
|
+
self.data = attributes[:'data']
|
|
77
|
+
else
|
|
78
|
+
self.data = nil
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'data_freshness')
|
|
82
|
+
self.data_freshness = attributes[:'data_freshness']
|
|
83
|
+
else
|
|
84
|
+
self.data_freshness = nil
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'vrbo_listing_number')
|
|
88
|
+
self.vrbo_listing_number = attributes[:'vrbo_listing_number']
|
|
89
|
+
else
|
|
90
|
+
self.vrbo_listing_number = nil
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
|
+
invalid_properties = Array.new
|
|
99
|
+
if @data.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if @data_freshness.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if @vrbo_listing_number.nil?
|
|
108
|
+
invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
invalid_properties
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Check to see if the all the properties in the model are valid
|
|
115
|
+
# @return true if the model is valid
|
|
116
|
+
def valid?
|
|
117
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
+
return false if @data.nil?
|
|
119
|
+
return false if @data_freshness.nil?
|
|
120
|
+
return false if @vrbo_listing_number.nil?
|
|
121
|
+
true
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
# Custom attribute writer method with validation
|
|
125
|
+
# @param [Object] data Value to be assigned
|
|
126
|
+
def data=(data)
|
|
127
|
+
if data.nil?
|
|
128
|
+
fail ArgumentError, 'data cannot be nil'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
@data = data
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] data_freshness Value to be assigned
|
|
136
|
+
def data_freshness=(data_freshness)
|
|
137
|
+
if data_freshness.nil?
|
|
138
|
+
fail ArgumentError, 'data_freshness cannot be nil'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@data_freshness = data_freshness
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Custom attribute writer method with validation
|
|
145
|
+
# @param [Object] vrbo_listing_number Value to be assigned
|
|
146
|
+
def vrbo_listing_number=(vrbo_listing_number)
|
|
147
|
+
if vrbo_listing_number.nil?
|
|
148
|
+
fail ArgumentError, 'vrbo_listing_number cannot be nil'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
@vrbo_listing_number = vrbo_listing_number
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# Checks equality by comparing each attribute.
|
|
155
|
+
# @param [Object] Object to be compared
|
|
156
|
+
def ==(o)
|
|
157
|
+
return true if self.equal?(o)
|
|
158
|
+
self.class == o.class &&
|
|
159
|
+
data == o.data &&
|
|
160
|
+
data_freshness == o.data_freshness &&
|
|
161
|
+
vrbo_listing_number == o.vrbo_listing_number
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# @see the `==` method
|
|
165
|
+
# @param [Object] Object to be compared
|
|
166
|
+
def eql?(o)
|
|
167
|
+
self == o
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# Calculates hash code according to all attributes.
|
|
171
|
+
# @return [Integer] Hash code
|
|
172
|
+
def hash
|
|
173
|
+
[data, data_freshness, vrbo_listing_number].hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Builds the object from hash
|
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
178
|
+
# @return [Object] Returns the model itself
|
|
179
|
+
def self.build_from_hash(attributes)
|
|
180
|
+
return nil unless attributes.is_a?(Hash)
|
|
181
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
182
|
+
transformed_hash = {}
|
|
183
|
+
openapi_types.each_pair do |key, type|
|
|
184
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
185
|
+
transformed_hash["#{key}"] = nil
|
|
186
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
187
|
+
# check to ensure the input is an array given that the attribute
|
|
188
|
+
# is documented as an array but the input is not
|
|
189
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
190
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
191
|
+
end
|
|
192
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
193
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
new(transformed_hash)
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Returns the object in the form of hash
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_hash
|
|
202
|
+
hash = {}
|
|
203
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
204
|
+
value = self.send(attr)
|
|
205
|
+
if value.nil?
|
|
206
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
207
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
hash[param] = _to_hash(value)
|
|
211
|
+
end
|
|
212
|
+
hash
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
end
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Repull API
|
|
3
|
+
|
|
4
|
+
#The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.22.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Repull
|
|
17
|
+
# The section as Vrbo has it.
|
|
18
|
+
class GetVrboListingVideos200ResponseData < ApiModelBase
|
|
19
|
+
attr_accessor :items
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'items' => :'items'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns attribute mapping this model knows about
|
|
29
|
+
def self.acceptable_attribute_map
|
|
30
|
+
attribute_map
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
acceptable_attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'items' => :'Array<GetVrboListingContent200ResponseSectionsVideosItemsInner>'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingVideos200ResponseData` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingVideos200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'items')
|
|
68
|
+
if (value = attributes[:'items']).is_a?(Array)
|
|
69
|
+
self.items = value
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
75
|
+
# @return Array for valid properties with the reasons
|
|
76
|
+
def list_invalid_properties
|
|
77
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
invalid_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
def valid?
|
|
85
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Checks equality by comparing each attribute.
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
items == o.items
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[items].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
|
114
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
115
|
+
transformed_hash = {}
|
|
116
|
+
openapi_types.each_pair do |key, type|
|
|
117
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
118
|
+
transformed_hash["#{key}"] = nil
|
|
119
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
120
|
+
# check to ensure the input is an array given that the attribute
|
|
121
|
+
# is documented as an array but the input is not
|
|
122
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
123
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
124
|
+
end
|
|
125
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
126
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
new(transformed_hash)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Returns the object in the form of hash
|
|
133
|
+
# @return [Hash] Returns the object in the form of hash
|
|
134
|
+
def to_hash
|
|
135
|
+
hash = {}
|
|
136
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
137
|
+
value = self.send(attr)
|
|
138
|
+
if value.nil?
|
|
139
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
140
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
hash[param] = _to_hash(value)
|
|
144
|
+
end
|
|
145
|
+
hash
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
end
|
|
@@ -19,6 +19,8 @@ module Repull
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :channel
|
|
21
21
|
|
|
22
|
+
attr_accessor :mode
|
|
23
|
+
|
|
22
24
|
attr_accessor :job
|
|
23
25
|
|
|
24
26
|
class EnumAttributeValidator
|
|
@@ -48,6 +50,7 @@ module Repull
|
|
|
48
50
|
{
|
|
49
51
|
:'listing_id' => :'listingId',
|
|
50
52
|
:'channel' => :'channel',
|
|
53
|
+
:'mode' => :'mode',
|
|
51
54
|
:'job' => :'job'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module Repull
|
|
|
67
70
|
{
|
|
68
71
|
:'listing_id' => :'Integer',
|
|
69
72
|
:'channel' => :'String',
|
|
73
|
+
:'mode' => :'String',
|
|
70
74
|
:'job' => :'GetVrboPublishJob200ResponseJob'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -101,6 +105,10 @@ module Repull
|
|
|
101
105
|
self.channel = attributes[:'channel']
|
|
102
106
|
end
|
|
103
107
|
|
|
108
|
+
if attributes.key?(:'mode')
|
|
109
|
+
self.mode = attributes[:'mode']
|
|
110
|
+
end
|
|
111
|
+
|
|
104
112
|
if attributes.key?(:'job')
|
|
105
113
|
self.job = attributes[:'job']
|
|
106
114
|
end
|
|
@@ -120,6 +128,8 @@ module Repull
|
|
|
120
128
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
121
129
|
channel_validator = EnumAttributeValidator.new('String', ["vrbo"])
|
|
122
130
|
return false unless channel_validator.valid?(@channel)
|
|
131
|
+
mode_validator = EnumAttributeValidator.new('String', ["create", "update"])
|
|
132
|
+
return false unless mode_validator.valid?(@mode)
|
|
123
133
|
true
|
|
124
134
|
end
|
|
125
135
|
|
|
@@ -133,6 +143,16 @@ module Repull
|
|
|
133
143
|
@channel = channel
|
|
134
144
|
end
|
|
135
145
|
|
|
146
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
147
|
+
# @param [Object] mode Object to be assigned
|
|
148
|
+
def mode=(mode)
|
|
149
|
+
validator = EnumAttributeValidator.new('String', ["create", "update"])
|
|
150
|
+
unless validator.valid?(mode)
|
|
151
|
+
fail ArgumentError, "invalid value for \"mode\", must be one of #{validator.allowable_values}."
|
|
152
|
+
end
|
|
153
|
+
@mode = mode
|
|
154
|
+
end
|
|
155
|
+
|
|
136
156
|
# Checks equality by comparing each attribute.
|
|
137
157
|
# @param [Object] Object to be compared
|
|
138
158
|
def ==(o)
|
|
@@ -140,6 +160,7 @@ module Repull
|
|
|
140
160
|
self.class == o.class &&
|
|
141
161
|
listing_id == o.listing_id &&
|
|
142
162
|
channel == o.channel &&
|
|
163
|
+
mode == o.mode &&
|
|
143
164
|
job == o.job
|
|
144
165
|
end
|
|
145
166
|
|
|
@@ -152,7 +173,7 @@ module Repull
|
|
|
152
173
|
# Calculates hash code according to all attributes.
|
|
153
174
|
# @return [Integer] Hash code
|
|
154
175
|
def hash
|
|
155
|
-
[listing_id, channel, job].hash
|
|
176
|
+
[listing_id, channel, mode, job].hash
|
|
156
177
|
end
|
|
157
178
|
|
|
158
179
|
# Builds the object from hash
|
|
@@ -15,9 +15,12 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class GetVrboPublishJob200ResponseJob < ApiModelBase
|
|
18
|
-
# Pass to `GET /v1/listings/{id}/publish/vrbo?jobId=`.
|
|
18
|
+
# Pass to `GET /v1/listings/{id}/publish/vrbo?jobId=`. A creation is `vrbo_<n>_<n>`, a push onto an existing Vrbo listing `vrbo_push_<n>_<n>`.
|
|
19
19
|
attr_accessor :job_id
|
|
20
20
|
|
|
21
|
+
# `create`: the listing is being created on Vrbo. `update`: it was already on Vrbo and its content is being pushed onto that listing.
|
|
22
|
+
attr_accessor :mode
|
|
23
|
+
|
|
21
24
|
attr_accessor :status
|
|
22
25
|
|
|
23
26
|
attr_accessor :listing_id
|
|
@@ -49,6 +52,18 @@ module Repull
|
|
|
49
52
|
# POST only: set when an unfinished Vrbo property of this listing is completed instead of starting a new one.
|
|
50
53
|
attr_accessor :resumed_property_id
|
|
51
54
|
|
|
55
|
+
# Update only: each section pushed, in order, with what was sent, Vrbo's refusals and what Vrbo has stored after the write.
|
|
56
|
+
attr_accessor :sections
|
|
57
|
+
|
|
58
|
+
# Update only: sections the push leaves as they are on Vrbo, and why (rooms, photos, permits, or no value in the listing content).
|
|
59
|
+
attr_accessor :skipped
|
|
60
|
+
|
|
61
|
+
# Update only.
|
|
62
|
+
attr_accessor :started_at
|
|
63
|
+
|
|
64
|
+
# Update only.
|
|
65
|
+
attr_accessor :finished_at
|
|
66
|
+
|
|
52
67
|
class EnumAttributeValidator
|
|
53
68
|
attr_reader :datatype
|
|
54
69
|
attr_reader :allowable_values
|
|
@@ -75,6 +90,7 @@ module Repull
|
|
|
75
90
|
def self.attribute_map
|
|
76
91
|
{
|
|
77
92
|
:'job_id' => :'jobId',
|
|
93
|
+
:'mode' => :'mode',
|
|
78
94
|
:'status' => :'status',
|
|
79
95
|
:'listing_id' => :'listingId',
|
|
80
96
|
:'account_id' => :'accountId',
|
|
@@ -85,7 +101,11 @@ module Repull
|
|
|
85
101
|
:'linked' => :'linked',
|
|
86
102
|
:'rejected_photos' => :'rejectedPhotos',
|
|
87
103
|
:'adjustments' => :'adjustments',
|
|
88
|
-
:'resumed_property_id' => :'resumedPropertyId'
|
|
104
|
+
:'resumed_property_id' => :'resumedPropertyId',
|
|
105
|
+
:'sections' => :'sections',
|
|
106
|
+
:'skipped' => :'skipped',
|
|
107
|
+
:'started_at' => :'startedAt',
|
|
108
|
+
:'finished_at' => :'finishedAt'
|
|
89
109
|
}
|
|
90
110
|
end
|
|
91
111
|
|
|
@@ -103,6 +123,7 @@ module Repull
|
|
|
103
123
|
def self.openapi_types
|
|
104
124
|
{
|
|
105
125
|
:'job_id' => :'String',
|
|
126
|
+
:'mode' => :'String',
|
|
106
127
|
:'status' => :'String',
|
|
107
128
|
:'listing_id' => :'Integer',
|
|
108
129
|
:'account_id' => :'String',
|
|
@@ -113,7 +134,11 @@ module Repull
|
|
|
113
134
|
:'linked' => :'Boolean',
|
|
114
135
|
:'rejected_photos' => :'Array<GetVrboPublishJob200ResponseJobRejectedPhotosInner>',
|
|
115
136
|
:'adjustments' => :'Array<String>',
|
|
116
|
-
:'resumed_property_id' => :'String'
|
|
137
|
+
:'resumed_property_id' => :'String',
|
|
138
|
+
:'sections' => :'Array<GetVrboPublishJob200ResponseJobSectionsInner>',
|
|
139
|
+
:'skipped' => :'Array<GetVrboPublishJob200ResponseJobSkippedInner>',
|
|
140
|
+
:'started_at' => :'Time',
|
|
141
|
+
:'finished_at' => :'Time'
|
|
117
142
|
}
|
|
118
143
|
end
|
|
119
144
|
|
|
@@ -124,7 +149,8 @@ module Repull
|
|
|
124
149
|
:'error',
|
|
125
150
|
:'vrbo_listing_number',
|
|
126
151
|
:'property_id',
|
|
127
|
-
:'resumed_property_id'
|
|
152
|
+
:'resumed_property_id',
|
|
153
|
+
:'finished_at'
|
|
128
154
|
])
|
|
129
155
|
end
|
|
130
156
|
|
|
@@ -148,6 +174,10 @@ module Repull
|
|
|
148
174
|
self.job_id = attributes[:'job_id']
|
|
149
175
|
end
|
|
150
176
|
|
|
177
|
+
if attributes.key?(:'mode')
|
|
178
|
+
self.mode = attributes[:'mode']
|
|
179
|
+
end
|
|
180
|
+
|
|
151
181
|
if attributes.key?(:'status')
|
|
152
182
|
self.status = attributes[:'status']
|
|
153
183
|
end
|
|
@@ -197,6 +227,26 @@ module Repull
|
|
|
197
227
|
if attributes.key?(:'resumed_property_id')
|
|
198
228
|
self.resumed_property_id = attributes[:'resumed_property_id']
|
|
199
229
|
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'sections')
|
|
232
|
+
if (value = attributes[:'sections']).is_a?(Array)
|
|
233
|
+
self.sections = value
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if attributes.key?(:'skipped')
|
|
238
|
+
if (value = attributes[:'skipped']).is_a?(Array)
|
|
239
|
+
self.skipped = value
|
|
240
|
+
end
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'started_at')
|
|
244
|
+
self.started_at = attributes[:'started_at']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'finished_at')
|
|
248
|
+
self.finished_at = attributes[:'finished_at']
|
|
249
|
+
end
|
|
200
250
|
end
|
|
201
251
|
|
|
202
252
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -211,11 +261,23 @@ module Repull
|
|
|
211
261
|
# @return true if the model is valid
|
|
212
262
|
def valid?
|
|
213
263
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
264
|
+
mode_validator = EnumAttributeValidator.new('String', ["create", "update"])
|
|
265
|
+
return false unless mode_validator.valid?(@mode)
|
|
214
266
|
status_validator = EnumAttributeValidator.new('String', ["running", "done", "failed"])
|
|
215
267
|
return false unless status_validator.valid?(@status)
|
|
216
268
|
true
|
|
217
269
|
end
|
|
218
270
|
|
|
271
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
272
|
+
# @param [Object] mode Object to be assigned
|
|
273
|
+
def mode=(mode)
|
|
274
|
+
validator = EnumAttributeValidator.new('String', ["create", "update"])
|
|
275
|
+
unless validator.valid?(mode)
|
|
276
|
+
fail ArgumentError, "invalid value for \"mode\", must be one of #{validator.allowable_values}."
|
|
277
|
+
end
|
|
278
|
+
@mode = mode
|
|
279
|
+
end
|
|
280
|
+
|
|
219
281
|
# Custom attribute writer method checking allowed values (enum).
|
|
220
282
|
# @param [Object] status Object to be assigned
|
|
221
283
|
def status=(status)
|
|
@@ -232,6 +294,7 @@ module Repull
|
|
|
232
294
|
return true if self.equal?(o)
|
|
233
295
|
self.class == o.class &&
|
|
234
296
|
job_id == o.job_id &&
|
|
297
|
+
mode == o.mode &&
|
|
235
298
|
status == o.status &&
|
|
236
299
|
listing_id == o.listing_id &&
|
|
237
300
|
account_id == o.account_id &&
|
|
@@ -242,7 +305,11 @@ module Repull
|
|
|
242
305
|
linked == o.linked &&
|
|
243
306
|
rejected_photos == o.rejected_photos &&
|
|
244
307
|
adjustments == o.adjustments &&
|
|
245
|
-
resumed_property_id == o.resumed_property_id
|
|
308
|
+
resumed_property_id == o.resumed_property_id &&
|
|
309
|
+
sections == o.sections &&
|
|
310
|
+
skipped == o.skipped &&
|
|
311
|
+
started_at == o.started_at &&
|
|
312
|
+
finished_at == o.finished_at
|
|
246
313
|
end
|
|
247
314
|
|
|
248
315
|
# @see the `==` method
|
|
@@ -254,7 +321,7 @@ module Repull
|
|
|
254
321
|
# Calculates hash code according to all attributes.
|
|
255
322
|
# @return [Integer] Hash code
|
|
256
323
|
def hash
|
|
257
|
-
[job_id, status, listing_id, account_id, steps, error, vrbo_listing_number, property_id, linked, rejected_photos, adjustments, resumed_property_id].hash
|
|
324
|
+
[job_id, mode, status, listing_id, account_id, steps, error, vrbo_listing_number, property_id, linked, rejected_photos, adjustments, resumed_property_id, sections, skipped, started_at, finished_at].hash
|
|
258
325
|
end
|
|
259
326
|
|
|
260
327
|
# Builds the object from hash
|