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.
Files changed (209) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/listings_api.rb +8 -8
  3. data/lib/repull/api/vrbo_api.rb +3212 -54
  4. data/lib/repull/models/add_vrbo_listing_video200_response.rb +298 -0
  5. data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +150 -0
  6. data/lib/repull/models/add_vrbo_listing_video_request.rb +176 -0
  7. data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +269 -0
  8. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +180 -0
  9. data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +269 -0
  10. data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +151 -0
  11. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value.rb +158 -0
  12. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner.rb +272 -0
  13. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_options_inner.rb +157 -0
  14. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_shown_when.rb +157 -0
  15. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_value.rb +106 -0
  16. data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +269 -0
  17. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +305 -0
  18. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data_min_nights_range.rb +158 -0
  19. data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +269 -0
  20. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +182 -0
  21. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_options_inner.rb +158 -0
  22. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_tiers_inner.rb +168 -0
  23. data/lib/repull/models/get_vrbo_listing_content200_response.rb +252 -0
  24. data/lib/repull/models/get_vrbo_listing_content200_response_listing.rb +198 -0
  25. data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +328 -0
  26. data/lib/repull/models/get_vrbo_listing_content200_response_sections_additional_info.rb +179 -0
  27. data/lib/repull/models/get_vrbo_listing_content200_response_sections_amenities.rb +150 -0
  28. data/lib/repull/models/get_vrbo_listing_content200_response_sections_booking_settings.rb +304 -0
  29. data/lib/repull/models/get_vrbo_listing_content200_response_sections_cancellation.rb +181 -0
  30. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description.rb +167 -0
  31. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits.rb +158 -0
  32. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits_headline.rb +158 -0
  33. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees.rb +222 -0
  34. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_cleaning.rb +168 -0
  35. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_custom_inner.rb +178 -0
  36. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_extra_guests.rb +188 -0
  37. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules.rb +276 -0
  38. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children.rb +169 -0
  39. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children_ages_inner.rb +156 -0
  40. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_events.rb +178 -0
  41. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_pets.rb +188 -0
  42. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_smoking.rb +178 -0
  43. data/lib/repull/models/get_vrbo_listing_content200_response_sections_location.rb +168 -0
  44. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms.rb +159 -0
  45. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms_payments_inner.rb +156 -0
  46. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos.rb +169 -0
  47. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_items_inner.rb +209 -0
  48. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_rejected_inner.rb +166 -0
  49. data/lib/repull/models/get_vrbo_listing_content200_response_sections_pricing.rb +201 -0
  50. data/lib/repull/models/get_vrbo_listing_content200_response_sections_property.rb +198 -0
  51. data/lib/repull/models/get_vrbo_listing_content200_response_sections_property_interior_size.rb +192 -0
  52. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection.rb +189 -0
  53. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection_options_inner.rb +177 -0
  54. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates.rb +177 -0
  55. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates_days_inner.rb +196 -0
  56. data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration.rb +159 -0
  57. data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration_fields_inner.rb +178 -0
  58. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms.rb +192 -0
  59. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_bed_types_inner.rb +168 -0
  60. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner.rb +217 -0
  61. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_amenities_inner.rb +186 -0
  62. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_beds_inner.rb +194 -0
  63. data/lib/repull/models/get_vrbo_listing_content200_response_sections_story.rb +179 -0
  64. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes.rb +179 -0
  65. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes_rules_inner.rb +188 -0
  66. data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations.rb +160 -0
  67. data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations_items_inner.rb +167 -0
  68. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos.rb +149 -0
  69. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos_items_inner.rb +209 -0
  70. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide.rb +221 -0
  71. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_access.rb +168 -0
  72. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_check_in.rb +169 -0
  73. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_contacts_inner.rb +168 -0
  74. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_wifi.rb +178 -0
  75. data/lib/repull/models/get_vrbo_listing_description200_response.rb +269 -0
  76. data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +168 -0
  77. data/lib/repull/models/get_vrbo_listing_fees200_response.rb +269 -0
  78. data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +223 -0
  79. data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +269 -0
  80. data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +277 -0
  81. data/lib/repull/models/get_vrbo_listing_location200_response.rb +269 -0
  82. data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +169 -0
  83. data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +269 -0
  84. data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +160 -0
  85. data/lib/repull/models/get_vrbo_listing_photos200_response.rb +269 -0
  86. data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +170 -0
  87. data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +269 -0
  88. data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +202 -0
  89. data/lib/repull/models/get_vrbo_listing_property200_response.rb +269 -0
  90. data/lib/repull/models/get_vrbo_listing_property200_response_data.rb +199 -0
  91. data/lib/repull/models/get_vrbo_listing_protection200_response.rb +269 -0
  92. data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +190 -0
  93. data/lib/repull/models/get_vrbo_listing_rates200_response.rb +269 -0
  94. data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +178 -0
  95. data/lib/repull/models/get_vrbo_listing_registration200_response.rb +269 -0
  96. data/lib/repull/models/get_vrbo_listing_registration200_response_data.rb +160 -0
  97. data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +269 -0
  98. data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +193 -0
  99. data/lib/repull/models/get_vrbo_listing_story200_response.rb +269 -0
  100. data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +180 -0
  101. data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +269 -0
  102. data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +180 -0
  103. data/lib/repull/models/get_vrbo_listing_translations200_response.rb +269 -0
  104. data/lib/repull/models/get_vrbo_listing_translations200_response_data.rb +161 -0
  105. data/lib/repull/models/get_vrbo_listing_videos200_response.rb +269 -0
  106. data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +150 -0
  107. data/lib/repull/models/get_vrbo_listing_welcome_guide200_response.rb +269 -0
  108. data/lib/repull/models/get_vrbo_listing_welcome_guide200_response_data.rb +222 -0
  109. data/lib/repull/models/get_vrbo_publish_job200_response.rb +22 -1
  110. data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +73 -6
  111. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner.rb +235 -0
  112. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner_errors_inner.rb +167 -0
  113. data/lib/repull/models/get_vrbo_publish_job200_response_job_skipped_inner.rb +156 -0
  114. data/lib/repull/models/publish_listing_to_vrbo_request.rb +48 -4
  115. data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +298 -0
  116. data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +180 -0
  117. data/lib/repull/models/update_vrbo_listing_additional_info_request.rb +165 -0
  118. data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +298 -0
  119. data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +151 -0
  120. data/lib/repull/models/update_vrbo_listing_amenities_request.rb +164 -0
  121. data/lib/repull/models/update_vrbo_listing_amenities_request_groups.rb +310 -0
  122. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials.rb +167 -0
  123. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials_values_value.rb +105 -0
  124. data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +298 -0
  125. data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +305 -0
  126. data/lib/repull/models/update_vrbo_listing_booking_settings_request.rb +279 -0
  127. data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +298 -0
  128. data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +182 -0
  129. data/lib/repull/models/update_vrbo_listing_cancellation_request.rb +176 -0
  130. data/lib/repull/models/update_vrbo_listing_cancellation_request_tiers_inner.rb +217 -0
  131. data/lib/repull/models/update_vrbo_listing_description200_response.rb +298 -0
  132. data/lib/repull/models/update_vrbo_listing_description200_response_data.rb +168 -0
  133. data/lib/repull/models/update_vrbo_listing_description_request.rb +212 -0
  134. data/lib/repull/models/update_vrbo_listing_fees200_response.rb +298 -0
  135. data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +223 -0
  136. data/lib/repull/models/update_vrbo_listing_fees_request.rb +179 -0
  137. data/lib/repull/models/update_vrbo_listing_fees_request_cleaning.rb +225 -0
  138. data/lib/repull/models/update_vrbo_listing_fees_request_custom_inner.rb +280 -0
  139. data/lib/repull/models/update_vrbo_listing_fees_request_extra_guests.rb +246 -0
  140. data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +298 -0
  141. data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +277 -0
  142. data/lib/repull/models/update_vrbo_listing_house_rules_request.rb +332 -0
  143. data/lib/repull/models/update_vrbo_listing_house_rules_request_children.rb +168 -0
  144. data/lib/repull/models/update_vrbo_listing_house_rules_request_events.rb +177 -0
  145. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets.rb +187 -0
  146. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_allowed_pets.rb +104 -0
  147. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_max_weight.rb +104 -0
  148. data/lib/repull/models/update_vrbo_listing_house_rules_request_smoking.rb +177 -0
  149. data/lib/repull/models/update_vrbo_listing_location200_response.rb +298 -0
  150. data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +169 -0
  151. data/lib/repull/models/update_vrbo_listing_location_request.rb +164 -0
  152. data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +298 -0
  153. data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +160 -0
  154. data/lib/repull/models/update_vrbo_listing_payment_terms_request.rb +193 -0
  155. data/lib/repull/models/update_vrbo_listing_payment_terms_request_payments_inner.rb +199 -0
  156. data/lib/repull/models/update_vrbo_listing_photos200_response.rb +298 -0
  157. data/lib/repull/models/update_vrbo_listing_photos200_response_data.rb +170 -0
  158. data/lib/repull/models/update_vrbo_listing_photos_request.rb +192 -0
  159. data/lib/repull/models/update_vrbo_listing_photos_request_add_inner.rb +184 -0
  160. data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +298 -0
  161. data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +202 -0
  162. data/lib/repull/models/update_vrbo_listing_pricing_request.rb +173 -0
  163. data/lib/repull/models/update_vrbo_listing_property200_response.rb +298 -0
  164. data/lib/repull/models/update_vrbo_listing_property200_response_data.rb +199 -0
  165. data/lib/repull/models/update_vrbo_listing_property_request.rb +185 -0
  166. data/lib/repull/models/update_vrbo_listing_property_request_interior_size.rb +223 -0
  167. data/lib/repull/models/update_vrbo_listing_protection200_response.rb +298 -0
  168. data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +190 -0
  169. data/lib/repull/models/update_vrbo_listing_protection_request.rb +159 -0
  170. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit.rb +104 -0
  171. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit_one_of.rb +173 -0
  172. data/lib/repull/models/update_vrbo_listing_rates200_response.rb +298 -0
  173. data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +178 -0
  174. data/lib/repull/models/update_vrbo_listing_rates_request.rb +305 -0
  175. data/lib/repull/models/update_vrbo_listing_rates_request_nightly_rates.rb +335 -0
  176. data/lib/repull/models/update_vrbo_listing_registration200_response.rb +298 -0
  177. data/lib/repull/models/update_vrbo_listing_registration200_response_data.rb +160 -0
  178. data/lib/repull/models/update_vrbo_listing_registration_request.rb +166 -0
  179. data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner.rb +177 -0
  180. data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner_value.rb +105 -0
  181. data/lib/repull/models/update_vrbo_listing_rooms200_response.rb +298 -0
  182. data/lib/repull/models/update_vrbo_listing_rooms200_response_data.rb +193 -0
  183. data/lib/repull/models/update_vrbo_listing_rooms_request.rb +171 -0
  184. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner.rb +213 -0
  185. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities.rb +105 -0
  186. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities_one_of_inner.rb +165 -0
  187. data/lib/repull/models/update_vrbo_listing_rooms_request_update_inner.rb +212 -0
  188. data/lib/repull/models/update_vrbo_listing_story200_response.rb +298 -0
  189. data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +180 -0
  190. data/lib/repull/models/update_vrbo_listing_story_request.rb +165 -0
  191. data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +298 -0
  192. data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +180 -0
  193. data/lib/repull/models/update_vrbo_listing_taxes_request.rb +167 -0
  194. data/lib/repull/models/update_vrbo_listing_taxes_request_partner_tax_settings.rb +175 -0
  195. data/lib/repull/models/update_vrbo_listing_taxes_request_stay_tax.rb +173 -0
  196. data/lib/repull/models/update_vrbo_listing_translations200_response.rb +298 -0
  197. data/lib/repull/models/update_vrbo_listing_translations200_response_data.rb +161 -0
  198. data/lib/repull/models/update_vrbo_listing_translations_request.rb +160 -0
  199. data/lib/repull/models/update_vrbo_listing_translations_request_set_inner.rb +184 -0
  200. data/lib/repull/models/update_vrbo_listing_welcome_guide200_response.rb +298 -0
  201. data/lib/repull/models/update_vrbo_listing_welcome_guide200_response_data.rb +222 -0
  202. data/lib/repull/models/update_vrbo_listing_welcome_guide_request.rb +204 -0
  203. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_access.rb +203 -0
  204. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_check_in.rb +173 -0
  205. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_wifi.rb +222 -0
  206. data/lib/repull/version.rb +1 -1
  207. data/lib/repull.rb +199 -0
  208. data/openapi/v1.json +16331 -8
  209. metadata +201 -2
@@ -0,0 +1,160 @@
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
+ # What Vrbo has stored for the section, read back after the write.
18
+ class UpdateVrboListingRegistration200ResponseData < ApiModelBase
19
+ attr_accessor :status
20
+
21
+ attr_accessor :fields
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'status' => :'status',
27
+ :'fields' => :'fields'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'status' => :'String',
45
+ :'fields' => :'Array<GetVrboListingContent200ResponseSectionsRegistrationFieldsInner>'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ :'status',
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingRegistration200ResponseData` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingRegistration200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'status')
73
+ self.status = attributes[:'status']
74
+ end
75
+
76
+ if attributes.key?(:'fields')
77
+ if (value = attributes[:'fields']).is_a?(Array)
78
+ self.fields = value
79
+ end
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ warn '[DEPRECATED] the `valid?` method is obsolete'
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ status == o.status &&
104
+ fields == o.fields
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [status, fields].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ attributes = attributes.transform_keys(&:to_sym)
125
+ transformed_hash = {}
126
+ openapi_types.each_pair do |key, type|
127
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = nil
129
+ elsif type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[attribute_map[key]].is_a?(Array)
133
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
134
+ end
135
+ elsif !attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
137
+ end
138
+ end
139
+ new(transformed_hash)
140
+ end
141
+
142
+ # Returns the object in the form of hash
143
+ # @return [Hash] Returns the object in the form of hash
144
+ def to_hash
145
+ hash = {}
146
+ self.class.attribute_map.each_pair do |attr, param|
147
+ value = self.send(attr)
148
+ if value.nil?
149
+ is_nullable = self.class.openapi_nullable.include?(attr)
150
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
151
+ end
152
+
153
+ hash[param] = _to_hash(value)
154
+ end
155
+ hash
156
+ end
157
+
158
+ end
159
+
160
+ end
@@ -0,0 +1,166 @@
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 UpdateVrboListingRegistrationRequest < ApiModelBase
18
+ attr_accessor :settings
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'settings' => :'settings'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'settings' => :'Array<UpdateVrboListingRegistrationRequestSettingsInner>'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingRegistrationRequest` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingRegistrationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'settings')
67
+ if (value = attributes[:'settings']).is_a?(Array)
68
+ self.settings = value
69
+ end
70
+ else
71
+ self.settings = nil
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
79
+ invalid_properties = Array.new
80
+ if @settings.nil?
81
+ invalid_properties.push('invalid value for "settings", settings cannot be nil.')
82
+ end
83
+
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ warn '[DEPRECATED] the `valid?` method is obsolete'
91
+ return false if @settings.nil?
92
+ true
93
+ end
94
+
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] settings Value to be assigned
97
+ def settings=(settings)
98
+ if settings.nil?
99
+ fail ArgumentError, 'settings cannot be nil'
100
+ end
101
+
102
+ @settings = settings
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ settings == o.settings
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [settings].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ transformed_hash = {}
132
+ openapi_types.each_pair do |key, type|
133
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = nil
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[attribute_map[key]].is_a?(Array)
139
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
+ end
141
+ elsif !attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
+ end
144
+ end
145
+ new(transformed_hash)
146
+ end
147
+
148
+ # Returns the object in the form of hash
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_hash
151
+ hash = {}
152
+ self.class.attribute_map.each_pair do |attr, param|
153
+ value = self.send(attr)
154
+ if value.nil?
155
+ is_nullable = self.class.openapi_nullable.include?(attr)
156
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
157
+ end
158
+
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ end
165
+
166
+ end
@@ -0,0 +1,177 @@
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 UpdateVrboListingRegistrationRequestSettingsInner < ApiModelBase
18
+ # A `fields[].name` from the read (they differ per jurisdiction).
19
+ attr_accessor :name
20
+
21
+ attr_accessor :value
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'name' => :'name',
27
+ :'value' => :'value'
28
+ }
29
+ end
30
+
31
+ # Returns attribute mapping this model knows about
32
+ def self.acceptable_attribute_map
33
+ attribute_map
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ acceptable_attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'name' => :'String',
45
+ :'value' => :'UpdateVrboListingRegistrationRequestSettingsInnerValue'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ :'value'
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingRegistrationRequestSettingsInner` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ acceptable_attribute_map = self.class.acceptable_attribute_map
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!acceptable_attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingRegistrationRequestSettingsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ end
69
+ h[k.to_sym] = v
70
+ }
71
+
72
+ if attributes.key?(:'name')
73
+ self.name = attributes[:'name']
74
+ else
75
+ self.name = nil
76
+ end
77
+
78
+ if attributes.key?(:'value')
79
+ self.value = attributes[:'value']
80
+ else
81
+ self.value = nil
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
+ invalid_properties = Array.new
90
+ if @name.nil?
91
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
92
+ end
93
+
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ warn '[DEPRECATED] the `valid?` method is obsolete'
101
+ return false if @name.nil?
102
+ true
103
+ end
104
+
105
+ # Custom attribute writer method with validation
106
+ # @param [Object] name Value to be assigned
107
+ def name=(name)
108
+ if name.nil?
109
+ fail ArgumentError, 'name cannot be nil'
110
+ end
111
+
112
+ @name = name
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ name == o.name &&
121
+ value == o.value
122
+ end
123
+
124
+ # @see the `==` method
125
+ # @param [Object] Object to be compared
126
+ def eql?(o)
127
+ self == o
128
+ end
129
+
130
+ # Calculates hash code according to all attributes.
131
+ # @return [Integer] Hash code
132
+ def hash
133
+ [name, value].hash
134
+ end
135
+
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def self.build_from_hash(attributes)
140
+ return nil unless attributes.is_a?(Hash)
141
+ attributes = attributes.transform_keys(&:to_sym)
142
+ transformed_hash = {}
143
+ openapi_types.each_pair do |key, type|
144
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = nil
146
+ elsif type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[attribute_map[key]].is_a?(Array)
150
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
151
+ end
152
+ elsif !attributes[attribute_map[key]].nil?
153
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
154
+ end
155
+ end
156
+ new(transformed_hash)
157
+ end
158
+
159
+ # Returns the object in the form of hash
160
+ # @return [Hash] Returns the object in the form of hash
161
+ def to_hash
162
+ hash = {}
163
+ self.class.attribute_map.each_pair do |attr, param|
164
+ value = self.send(attr)
165
+ if value.nil?
166
+ is_nullable = self.class.openapi_nullable.include?(attr)
167
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
168
+ end
169
+
170
+ hash[param] = _to_hash(value)
171
+ end
172
+ hash
173
+ end
174
+
175
+ end
176
+
177
+ end
@@ -0,0 +1,105 @@
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
+ module UpdateVrboListingRegistrationRequestSettingsInnerValue
18
+ class << self
19
+ # List of class defined in oneOf (OpenAPI v3)
20
+ def openapi_one_of
21
+ [
22
+ :'Boolean',
23
+ :'Float',
24
+ :'String'
25
+ ]
26
+ end
27
+
28
+ # Builds the object
29
+ # @param [Mixed] Data to be matched against the list of oneOf items
30
+ # @return [Object] Returns the model or the data itself
31
+ def build(data)
32
+ # Go through the list of oneOf items and attempt to identify the appropriate one.
33
+ # Note:
34
+ # - We do not attempt to check whether exactly one item matches.
35
+ # - No advanced validation of types in some cases (e.g. "x: { type: string }" will happily match { x: 123 })
36
+ # due to the way the deserialization is made in the base_object template (it just casts without verifying).
37
+ # - TODO: scalar values are de facto behaving as if they were nullable.
38
+ # - TODO: logging when debugging is set.
39
+ openapi_one_of.each do |klass|
40
+ begin
41
+ next if klass == :AnyType # "nullable: true"
42
+ return find_and_cast_into_type(klass, data)
43
+ rescue # rescue all errors so we keep iterating even if the current item lookup raises
44
+ end
45
+ end
46
+
47
+ openapi_one_of.include?(:AnyType) ? data : nil
48
+ end
49
+
50
+ private
51
+
52
+ SchemaMismatchError = Class.new(StandardError)
53
+
54
+ # Note: 'File' is missing here because in the regular case we get the data _after_ a call to JSON.parse.
55
+ def find_and_cast_into_type(klass, data)
56
+ return if data.nil?
57
+
58
+ case klass.to_s
59
+ when 'Boolean'
60
+ return data if data.instance_of?(TrueClass) || data.instance_of?(FalseClass)
61
+ when 'Float'
62
+ return data if data.instance_of?(Float)
63
+ when 'Integer'
64
+ return data if data.instance_of?(Integer)
65
+ when 'Time'
66
+ return Time.parse(data)
67
+ when 'Date'
68
+ return Date.iso8601(data)
69
+ when 'String'
70
+ return data if data.instance_of?(String)
71
+ when 'Object' # "type: object"
72
+ return data if data.instance_of?(Hash)
73
+ when /\AArray<(?<sub_type>.+)>\z/ # "type: array"
74
+ if data.instance_of?(Array)
75
+ sub_type = Regexp.last_match[:sub_type]
76
+ return data.map { |item| find_and_cast_into_type(sub_type, item) }
77
+ end
78
+ when /\AHash<String, (?<sub_type>.+)>\z/ # "type: object" with "additionalProperties: { ... }"
79
+ if data.instance_of?(Hash) && data.keys.all? { |k| k.instance_of?(Symbol) || k.instance_of?(String) }
80
+ sub_type = Regexp.last_match[:sub_type]
81
+ return data.each_with_object({}) { |(k, v), hsh| hsh[k] = find_and_cast_into_type(sub_type, v) }
82
+ end
83
+ else # model
84
+ const = Repull.const_get(klass)
85
+ if const
86
+ if const.respond_to?(:openapi_one_of) # nested oneOf model
87
+ model = const.build(data)
88
+ return model if model
89
+ else
90
+ # raise if data contains keys that are not known to the model
91
+ raise if const.respond_to?(:acceptable_attributes) && !(data.keys - const.acceptable_attributes).empty?
92
+ model = const.build_from_hash(data)
93
+ return model if model
94
+ end
95
+ end
96
+ end
97
+
98
+ raise # if no match by now, raise
99
+ rescue
100
+ raise SchemaMismatchError, "#{data} doesn't match the #{klass} type"
101
+ end
102
+ end
103
+ end
104
+
105
+ end