repull 0.2.52 → 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 (213) 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/conversation_guest.rb +1 -11
  8. data/lib/repull/models/conversation_host.rb +4 -14
  9. data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +269 -0
  10. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +180 -0
  11. data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +269 -0
  12. data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +151 -0
  13. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value.rb +158 -0
  14. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner.rb +272 -0
  15. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_options_inner.rb +157 -0
  16. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_shown_when.rb +157 -0
  17. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_value.rb +106 -0
  18. data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +269 -0
  19. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +305 -0
  20. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data_min_nights_range.rb +158 -0
  21. data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +269 -0
  22. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +182 -0
  23. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_options_inner.rb +158 -0
  24. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_tiers_inner.rb +168 -0
  25. data/lib/repull/models/get_vrbo_listing_content200_response.rb +252 -0
  26. data/lib/repull/models/get_vrbo_listing_content200_response_listing.rb +198 -0
  27. data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +328 -0
  28. data/lib/repull/models/get_vrbo_listing_content200_response_sections_additional_info.rb +179 -0
  29. data/lib/repull/models/get_vrbo_listing_content200_response_sections_amenities.rb +150 -0
  30. data/lib/repull/models/get_vrbo_listing_content200_response_sections_booking_settings.rb +304 -0
  31. data/lib/repull/models/get_vrbo_listing_content200_response_sections_cancellation.rb +181 -0
  32. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description.rb +167 -0
  33. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits.rb +158 -0
  34. data/lib/repull/models/get_vrbo_listing_content200_response_sections_description_limits_headline.rb +158 -0
  35. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees.rb +222 -0
  36. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_cleaning.rb +168 -0
  37. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_custom_inner.rb +178 -0
  38. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_extra_guests.rb +188 -0
  39. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules.rb +276 -0
  40. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children.rb +169 -0
  41. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children_ages_inner.rb +156 -0
  42. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_events.rb +178 -0
  43. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_pets.rb +188 -0
  44. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_smoking.rb +178 -0
  45. data/lib/repull/models/get_vrbo_listing_content200_response_sections_location.rb +168 -0
  46. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms.rb +159 -0
  47. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms_payments_inner.rb +156 -0
  48. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos.rb +169 -0
  49. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_items_inner.rb +209 -0
  50. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_rejected_inner.rb +166 -0
  51. data/lib/repull/models/get_vrbo_listing_content200_response_sections_pricing.rb +201 -0
  52. data/lib/repull/models/get_vrbo_listing_content200_response_sections_property.rb +198 -0
  53. data/lib/repull/models/get_vrbo_listing_content200_response_sections_property_interior_size.rb +192 -0
  54. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection.rb +189 -0
  55. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection_options_inner.rb +177 -0
  56. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates.rb +177 -0
  57. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rates_days_inner.rb +196 -0
  58. data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration.rb +159 -0
  59. data/lib/repull/models/get_vrbo_listing_content200_response_sections_registration_fields_inner.rb +178 -0
  60. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms.rb +192 -0
  61. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_bed_types_inner.rb +168 -0
  62. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner.rb +217 -0
  63. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_amenities_inner.rb +186 -0
  64. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_beds_inner.rb +194 -0
  65. data/lib/repull/models/get_vrbo_listing_content200_response_sections_story.rb +179 -0
  66. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes.rb +179 -0
  67. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes_rules_inner.rb +188 -0
  68. data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations.rb +160 -0
  69. data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations_items_inner.rb +167 -0
  70. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos.rb +149 -0
  71. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos_items_inner.rb +209 -0
  72. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide.rb +221 -0
  73. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_access.rb +168 -0
  74. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_check_in.rb +169 -0
  75. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_contacts_inner.rb +168 -0
  76. data/lib/repull/models/get_vrbo_listing_content200_response_sections_welcome_guide_wifi.rb +178 -0
  77. data/lib/repull/models/get_vrbo_listing_description200_response.rb +269 -0
  78. data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +168 -0
  79. data/lib/repull/models/get_vrbo_listing_fees200_response.rb +269 -0
  80. data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +223 -0
  81. data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +269 -0
  82. data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +277 -0
  83. data/lib/repull/models/get_vrbo_listing_location200_response.rb +269 -0
  84. data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +169 -0
  85. data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +269 -0
  86. data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +160 -0
  87. data/lib/repull/models/get_vrbo_listing_photos200_response.rb +269 -0
  88. data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +170 -0
  89. data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +269 -0
  90. data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +202 -0
  91. data/lib/repull/models/get_vrbo_listing_property200_response.rb +269 -0
  92. data/lib/repull/models/get_vrbo_listing_property200_response_data.rb +199 -0
  93. data/lib/repull/models/get_vrbo_listing_protection200_response.rb +269 -0
  94. data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +190 -0
  95. data/lib/repull/models/get_vrbo_listing_rates200_response.rb +269 -0
  96. data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +178 -0
  97. data/lib/repull/models/get_vrbo_listing_registration200_response.rb +269 -0
  98. data/lib/repull/models/get_vrbo_listing_registration200_response_data.rb +160 -0
  99. data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +269 -0
  100. data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +193 -0
  101. data/lib/repull/models/get_vrbo_listing_story200_response.rb +269 -0
  102. data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +180 -0
  103. data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +269 -0
  104. data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +180 -0
  105. data/lib/repull/models/get_vrbo_listing_translations200_response.rb +269 -0
  106. data/lib/repull/models/get_vrbo_listing_translations200_response_data.rb +161 -0
  107. data/lib/repull/models/get_vrbo_listing_videos200_response.rb +269 -0
  108. data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +150 -0
  109. data/lib/repull/models/get_vrbo_listing_welcome_guide200_response.rb +269 -0
  110. data/lib/repull/models/get_vrbo_listing_welcome_guide200_response_data.rb +222 -0
  111. data/lib/repull/models/get_vrbo_publish_job200_response.rb +22 -1
  112. data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +73 -6
  113. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner.rb +235 -0
  114. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner_errors_inner.rb +167 -0
  115. data/lib/repull/models/get_vrbo_publish_job200_response_job_skipped_inner.rb +156 -0
  116. data/lib/repull/models/guest.rb +1 -11
  117. data/lib/repull/models/guest_profile.rb +1 -11
  118. data/lib/repull/models/publish_listing_to_vrbo_request.rb +48 -4
  119. data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +298 -0
  120. data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +180 -0
  121. data/lib/repull/models/update_vrbo_listing_additional_info_request.rb +165 -0
  122. data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +298 -0
  123. data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +151 -0
  124. data/lib/repull/models/update_vrbo_listing_amenities_request.rb +164 -0
  125. data/lib/repull/models/update_vrbo_listing_amenities_request_groups.rb +310 -0
  126. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials.rb +167 -0
  127. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials_values_value.rb +105 -0
  128. data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +298 -0
  129. data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +305 -0
  130. data/lib/repull/models/update_vrbo_listing_booking_settings_request.rb +279 -0
  131. data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +298 -0
  132. data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +182 -0
  133. data/lib/repull/models/update_vrbo_listing_cancellation_request.rb +176 -0
  134. data/lib/repull/models/update_vrbo_listing_cancellation_request_tiers_inner.rb +217 -0
  135. data/lib/repull/models/update_vrbo_listing_description200_response.rb +298 -0
  136. data/lib/repull/models/update_vrbo_listing_description200_response_data.rb +168 -0
  137. data/lib/repull/models/update_vrbo_listing_description_request.rb +212 -0
  138. data/lib/repull/models/update_vrbo_listing_fees200_response.rb +298 -0
  139. data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +223 -0
  140. data/lib/repull/models/update_vrbo_listing_fees_request.rb +179 -0
  141. data/lib/repull/models/update_vrbo_listing_fees_request_cleaning.rb +225 -0
  142. data/lib/repull/models/update_vrbo_listing_fees_request_custom_inner.rb +280 -0
  143. data/lib/repull/models/update_vrbo_listing_fees_request_extra_guests.rb +246 -0
  144. data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +298 -0
  145. data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +277 -0
  146. data/lib/repull/models/update_vrbo_listing_house_rules_request.rb +332 -0
  147. data/lib/repull/models/update_vrbo_listing_house_rules_request_children.rb +168 -0
  148. data/lib/repull/models/update_vrbo_listing_house_rules_request_events.rb +177 -0
  149. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets.rb +187 -0
  150. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_allowed_pets.rb +104 -0
  151. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_max_weight.rb +104 -0
  152. data/lib/repull/models/update_vrbo_listing_house_rules_request_smoking.rb +177 -0
  153. data/lib/repull/models/update_vrbo_listing_location200_response.rb +298 -0
  154. data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +169 -0
  155. data/lib/repull/models/update_vrbo_listing_location_request.rb +164 -0
  156. data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +298 -0
  157. data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +160 -0
  158. data/lib/repull/models/update_vrbo_listing_payment_terms_request.rb +193 -0
  159. data/lib/repull/models/update_vrbo_listing_payment_terms_request_payments_inner.rb +199 -0
  160. data/lib/repull/models/update_vrbo_listing_photos200_response.rb +298 -0
  161. data/lib/repull/models/update_vrbo_listing_photos200_response_data.rb +170 -0
  162. data/lib/repull/models/update_vrbo_listing_photos_request.rb +192 -0
  163. data/lib/repull/models/update_vrbo_listing_photos_request_add_inner.rb +184 -0
  164. data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +298 -0
  165. data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +202 -0
  166. data/lib/repull/models/update_vrbo_listing_pricing_request.rb +173 -0
  167. data/lib/repull/models/update_vrbo_listing_property200_response.rb +298 -0
  168. data/lib/repull/models/update_vrbo_listing_property200_response_data.rb +199 -0
  169. data/lib/repull/models/update_vrbo_listing_property_request.rb +185 -0
  170. data/lib/repull/models/update_vrbo_listing_property_request_interior_size.rb +223 -0
  171. data/lib/repull/models/update_vrbo_listing_protection200_response.rb +298 -0
  172. data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +190 -0
  173. data/lib/repull/models/update_vrbo_listing_protection_request.rb +159 -0
  174. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit.rb +104 -0
  175. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit_one_of.rb +173 -0
  176. data/lib/repull/models/update_vrbo_listing_rates200_response.rb +298 -0
  177. data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +178 -0
  178. data/lib/repull/models/update_vrbo_listing_rates_request.rb +305 -0
  179. data/lib/repull/models/update_vrbo_listing_rates_request_nightly_rates.rb +335 -0
  180. data/lib/repull/models/update_vrbo_listing_registration200_response.rb +298 -0
  181. data/lib/repull/models/update_vrbo_listing_registration200_response_data.rb +160 -0
  182. data/lib/repull/models/update_vrbo_listing_registration_request.rb +166 -0
  183. data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner.rb +177 -0
  184. data/lib/repull/models/update_vrbo_listing_registration_request_settings_inner_value.rb +105 -0
  185. data/lib/repull/models/update_vrbo_listing_rooms200_response.rb +298 -0
  186. data/lib/repull/models/update_vrbo_listing_rooms200_response_data.rb +193 -0
  187. data/lib/repull/models/update_vrbo_listing_rooms_request.rb +171 -0
  188. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner.rb +213 -0
  189. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities.rb +105 -0
  190. data/lib/repull/models/update_vrbo_listing_rooms_request_add_inner_amenities_one_of_inner.rb +165 -0
  191. data/lib/repull/models/update_vrbo_listing_rooms_request_update_inner.rb +212 -0
  192. data/lib/repull/models/update_vrbo_listing_story200_response.rb +298 -0
  193. data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +180 -0
  194. data/lib/repull/models/update_vrbo_listing_story_request.rb +165 -0
  195. data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +298 -0
  196. data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +180 -0
  197. data/lib/repull/models/update_vrbo_listing_taxes_request.rb +167 -0
  198. data/lib/repull/models/update_vrbo_listing_taxes_request_partner_tax_settings.rb +175 -0
  199. data/lib/repull/models/update_vrbo_listing_taxes_request_stay_tax.rb +173 -0
  200. data/lib/repull/models/update_vrbo_listing_translations200_response.rb +298 -0
  201. data/lib/repull/models/update_vrbo_listing_translations200_response_data.rb +161 -0
  202. data/lib/repull/models/update_vrbo_listing_translations_request.rb +160 -0
  203. data/lib/repull/models/update_vrbo_listing_translations_request_set_inner.rb +184 -0
  204. data/lib/repull/models/update_vrbo_listing_welcome_guide200_response.rb +298 -0
  205. data/lib/repull/models/update_vrbo_listing_welcome_guide200_response_data.rb +222 -0
  206. data/lib/repull/models/update_vrbo_listing_welcome_guide_request.rb +204 -0
  207. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_access.rb +203 -0
  208. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_check_in.rb +173 -0
  209. data/lib/repull/models/update_vrbo_listing_welcome_guide_request_wifi.rb +222 -0
  210. data/lib/repull/version.rb +1 -1
  211. data/lib/repull.rb +199 -0
  212. data/openapi/v1.json +16331 -28
  213. metadata +201 -2
@@ -0,0 +1,298 @@
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 UpdateVrboListingCancellation200Response < ApiModelBase
18
+ attr_accessor :listing_id
19
+
20
+ attr_accessor :vrbo_listing_number
21
+
22
+ # Vrbo's property id for the unit.
23
+ attr_accessor :property_id
24
+
25
+ attr_accessor :section
26
+
27
+ # The fields this request sent.
28
+ attr_accessor :written
29
+
30
+ attr_accessor :data
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'listing_id' => :'listingId',
36
+ :'vrbo_listing_number' => :'vrboListingNumber',
37
+ :'property_id' => :'propertyId',
38
+ :'section' => :'section',
39
+ :'written' => :'written',
40
+ :'data' => :'data'
41
+ }
42
+ end
43
+
44
+ # Returns attribute mapping this model knows about
45
+ def self.acceptable_attribute_map
46
+ attribute_map
47
+ end
48
+
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ acceptable_attribute_map.values
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'listing_id' => :'String',
58
+ :'vrbo_listing_number' => :'String',
59
+ :'property_id' => :'String',
60
+ :'section' => :'String',
61
+ :'written' => :'Array<String>',
62
+ :'data' => :'UpdateVrboListingCancellation200ResponseData'
63
+ }
64
+ end
65
+
66
+ # List of attributes with nullable: true
67
+ def self.openapi_nullable
68
+ Set.new([
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingCancellation200Response` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingCancellation200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'listing_id')
89
+ self.listing_id = attributes[:'listing_id']
90
+ else
91
+ self.listing_id = nil
92
+ end
93
+
94
+ if attributes.key?(:'vrbo_listing_number')
95
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
96
+ else
97
+ self.vrbo_listing_number = nil
98
+ end
99
+
100
+ if attributes.key?(:'property_id')
101
+ self.property_id = attributes[:'property_id']
102
+ else
103
+ self.property_id = nil
104
+ end
105
+
106
+ if attributes.key?(:'section')
107
+ self.section = attributes[:'section']
108
+ else
109
+ self.section = nil
110
+ end
111
+
112
+ if attributes.key?(:'written')
113
+ if (value = attributes[:'written']).is_a?(Array)
114
+ self.written = value
115
+ end
116
+ else
117
+ self.written = nil
118
+ end
119
+
120
+ if attributes.key?(:'data')
121
+ self.data = attributes[:'data']
122
+ else
123
+ self.data = nil
124
+ end
125
+ end
126
+
127
+ # Show invalid properties with the reasons. Usually used together with valid?
128
+ # @return Array for valid properties with the reasons
129
+ def list_invalid_properties
130
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
+ invalid_properties = Array.new
132
+ if @listing_id.nil?
133
+ invalid_properties.push('invalid value for "listing_id", listing_id cannot be nil.')
134
+ end
135
+
136
+ if @vrbo_listing_number.nil?
137
+ invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
138
+ end
139
+
140
+ if @property_id.nil?
141
+ invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
142
+ end
143
+
144
+ if @section.nil?
145
+ invalid_properties.push('invalid value for "section", section cannot be nil.')
146
+ end
147
+
148
+ if @written.nil?
149
+ invalid_properties.push('invalid value for "written", written cannot be nil.')
150
+ end
151
+
152
+ if @data.nil?
153
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
154
+ end
155
+
156
+ invalid_properties
157
+ end
158
+
159
+ # Check to see if the all the properties in the model are valid
160
+ # @return true if the model is valid
161
+ def valid?
162
+ warn '[DEPRECATED] the `valid?` method is obsolete'
163
+ return false if @listing_id.nil?
164
+ return false if @vrbo_listing_number.nil?
165
+ return false if @property_id.nil?
166
+ return false if @section.nil?
167
+ return false if @written.nil?
168
+ return false if @data.nil?
169
+ true
170
+ end
171
+
172
+ # Custom attribute writer method with validation
173
+ # @param [Object] listing_id Value to be assigned
174
+ def listing_id=(listing_id)
175
+ if listing_id.nil?
176
+ fail ArgumentError, 'listing_id cannot be nil'
177
+ end
178
+
179
+ @listing_id = listing_id
180
+ end
181
+
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] vrbo_listing_number Value to be assigned
184
+ def vrbo_listing_number=(vrbo_listing_number)
185
+ if vrbo_listing_number.nil?
186
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
187
+ end
188
+
189
+ @vrbo_listing_number = vrbo_listing_number
190
+ end
191
+
192
+ # Custom attribute writer method with validation
193
+ # @param [Object] property_id Value to be assigned
194
+ def property_id=(property_id)
195
+ if property_id.nil?
196
+ fail ArgumentError, 'property_id cannot be nil'
197
+ end
198
+
199
+ @property_id = property_id
200
+ end
201
+
202
+ # Custom attribute writer method with validation
203
+ # @param [Object] section Value to be assigned
204
+ def section=(section)
205
+ if section.nil?
206
+ fail ArgumentError, 'section cannot be nil'
207
+ end
208
+
209
+ @section = section
210
+ end
211
+
212
+ # Custom attribute writer method with validation
213
+ # @param [Object] written Value to be assigned
214
+ def written=(written)
215
+ if written.nil?
216
+ fail ArgumentError, 'written cannot be nil'
217
+ end
218
+
219
+ @written = written
220
+ end
221
+
222
+ # Custom attribute writer method with validation
223
+ # @param [Object] data Value to be assigned
224
+ def data=(data)
225
+ if data.nil?
226
+ fail ArgumentError, 'data cannot be nil'
227
+ end
228
+
229
+ @data = data
230
+ end
231
+
232
+ # Checks equality by comparing each attribute.
233
+ # @param [Object] Object to be compared
234
+ def ==(o)
235
+ return true if self.equal?(o)
236
+ self.class == o.class &&
237
+ listing_id == o.listing_id &&
238
+ vrbo_listing_number == o.vrbo_listing_number &&
239
+ property_id == o.property_id &&
240
+ section == o.section &&
241
+ written == o.written &&
242
+ data == o.data
243
+ end
244
+
245
+ # @see the `==` method
246
+ # @param [Object] Object to be compared
247
+ def eql?(o)
248
+ self == o
249
+ end
250
+
251
+ # Calculates hash code according to all attributes.
252
+ # @return [Integer] Hash code
253
+ def hash
254
+ [listing_id, vrbo_listing_number, property_id, section, written, data].hash
255
+ end
256
+
257
+ # Builds the object from hash
258
+ # @param [Hash] attributes Model attributes in the form of hash
259
+ # @return [Object] Returns the model itself
260
+ def self.build_from_hash(attributes)
261
+ return nil unless attributes.is_a?(Hash)
262
+ attributes = attributes.transform_keys(&:to_sym)
263
+ transformed_hash = {}
264
+ openapi_types.each_pair do |key, type|
265
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
266
+ transformed_hash["#{key}"] = nil
267
+ elsif type =~ /\AArray<(.*)>/i
268
+ # check to ensure the input is an array given that the attribute
269
+ # is documented as an array but the input is not
270
+ if attributes[attribute_map[key]].is_a?(Array)
271
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
272
+ end
273
+ elsif !attributes[attribute_map[key]].nil?
274
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
275
+ end
276
+ end
277
+ new(transformed_hash)
278
+ end
279
+
280
+ # Returns the object in the form of hash
281
+ # @return [Hash] Returns the object in the form of hash
282
+ def to_hash
283
+ hash = {}
284
+ self.class.attribute_map.each_pair do |attr, param|
285
+ value = self.send(attr)
286
+ if value.nil?
287
+ is_nullable = self.class.openapi_nullable.include?(attr)
288
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
289
+ end
290
+
291
+ hash[param] = _to_hash(value)
292
+ end
293
+ hash
294
+ end
295
+
296
+ end
297
+
298
+ end
@@ -0,0 +1,182 @@
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 UpdateVrboListingCancellation200ResponseData < ApiModelBase
19
+ attr_accessor :policy_type
20
+
21
+ attr_accessor :tiers
22
+
23
+ attr_accessor :seasonal
24
+
25
+ attr_accessor :options
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'policy_type' => :'policyType',
31
+ :'tiers' => :'tiers',
32
+ :'seasonal' => :'seasonal',
33
+ :'options' => :'options'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'policy_type' => :'String',
51
+ :'tiers' => :'Array<GetVrboListingCancellation200ResponseDataTiersInner>',
52
+ :'seasonal' => :'Array<Hash<String, Object>>',
53
+ :'options' => :'Array<GetVrboListingCancellation200ResponseDataOptionsInner>'
54
+ }
55
+ end
56
+
57
+ # List of attributes with nullable: true
58
+ def self.openapi_nullable
59
+ Set.new([
60
+ :'policy_type',
61
+ ])
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ if (!attributes.is_a?(Hash))
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingCancellation200ResponseData` initialize method"
69
+ end
70
+
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ acceptable_attribute_map = self.class.acceptable_attribute_map
73
+ attributes = attributes.each_with_object({}) { |(k, v), h|
74
+ if (!acceptable_attribute_map.key?(k.to_sym))
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingCancellation200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
+ end
77
+ h[k.to_sym] = v
78
+ }
79
+
80
+ if attributes.key?(:'policy_type')
81
+ self.policy_type = attributes[:'policy_type']
82
+ end
83
+
84
+ if attributes.key?(:'tiers')
85
+ if (value = attributes[:'tiers']).is_a?(Array)
86
+ self.tiers = value
87
+ end
88
+ end
89
+
90
+ if attributes.key?(:'seasonal')
91
+ if (value = attributes[:'seasonal']).is_a?(Array)
92
+ self.seasonal = value
93
+ end
94
+ end
95
+
96
+ if attributes.key?(:'options')
97
+ if (value = attributes[:'options']).is_a?(Array)
98
+ self.options = value
99
+ end
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
+ invalid_properties = Array.new
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ warn '[DEPRECATED] the `valid?` method is obsolete'
115
+ true
116
+ end
117
+
118
+ # Checks equality by comparing each attribute.
119
+ # @param [Object] Object to be compared
120
+ def ==(o)
121
+ return true if self.equal?(o)
122
+ self.class == o.class &&
123
+ policy_type == o.policy_type &&
124
+ tiers == o.tiers &&
125
+ seasonal == o.seasonal &&
126
+ options == o.options
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Integer] Hash code
137
+ def hash
138
+ [policy_type, tiers, seasonal, options].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def self.build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ attributes = attributes.transform_keys(&:to_sym)
147
+ transformed_hash = {}
148
+ openapi_types.each_pair do |key, type|
149
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
+ transformed_hash["#{key}"] = nil
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[attribute_map[key]].is_a?(Array)
155
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
+ end
157
+ elsif !attributes[attribute_map[key]].nil?
158
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
+ end
160
+ end
161
+ new(transformed_hash)
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ if value.nil?
171
+ is_nullable = self.class.openapi_nullable.include?(attr)
172
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
+ end
174
+
175
+ hash[param] = _to_hash(value)
176
+ end
177
+ hash
178
+ end
179
+
180
+ end
181
+
182
+ end
@@ -0,0 +1,176 @@
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 UpdateVrboListingCancellationRequest < ApiModelBase
18
+ # POLICY_TYPE_VR_RELAXED (14/7 days), _MODERATE (30/14), _FIRM (60/30), _STRICT (60), … or POLICY_TYPE_CUSTOM with `tiers`. The read lists Vrbo's named policies in `options`.
19
+ attr_accessor :policy_type
20
+
21
+ attr_accessor :tiers
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'policy_type' => :'policyType',
27
+ :'tiers' => :'tiers'
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
+ :'policy_type' => :'String',
45
+ :'tiers' => :'Array<UpdateVrboListingCancellationRequestTiersInner>'
46
+ }
47
+ end
48
+
49
+ # List of attributes with nullable: true
50
+ def self.openapi_nullable
51
+ Set.new([
52
+ ])
53
+ end
54
+
55
+ # Initializes the object
56
+ # @param [Hash] attributes Model attributes in the form of hash
57
+ def initialize(attributes = {})
58
+ if (!attributes.is_a?(Hash))
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingCancellationRequest` initialize method"
60
+ end
61
+
62
+ # check to see if the attribute exists and convert string to symbol for hash key
63
+ acceptable_attribute_map = self.class.acceptable_attribute_map
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!acceptable_attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingCancellationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'policy_type')
72
+ self.policy_type = attributes[:'policy_type']
73
+ else
74
+ self.policy_type = nil
75
+ end
76
+
77
+ if attributes.key?(:'tiers')
78
+ if (value = attributes[:'tiers']).is_a?(Array)
79
+ self.tiers = value
80
+ end
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
88
+ invalid_properties = Array.new
89
+ if @policy_type.nil?
90
+ invalid_properties.push('invalid value for "policy_type", policy_type cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
+ return false if @policy_type.nil?
101
+ true
102
+ end
103
+
104
+ # Custom attribute writer method with validation
105
+ # @param [Object] policy_type Value to be assigned
106
+ def policy_type=(policy_type)
107
+ if policy_type.nil?
108
+ fail ArgumentError, 'policy_type cannot be nil'
109
+ end
110
+
111
+ @policy_type = policy_type
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ policy_type == o.policy_type &&
120
+ tiers == o.tiers
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [policy_type, tiers].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ return nil unless attributes.is_a?(Hash)
140
+ attributes = attributes.transform_keys(&:to_sym)
141
+ transformed_hash = {}
142
+ openapi_types.each_pair do |key, type|
143
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
144
+ transformed_hash["#{key}"] = nil
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[attribute_map[key]].is_a?(Array)
149
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
150
+ end
151
+ elsif !attributes[attribute_map[key]].nil?
152
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
153
+ end
154
+ end
155
+ new(transformed_hash)
156
+ end
157
+
158
+ # Returns the object in the form of hash
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_hash
161
+ hash = {}
162
+ self.class.attribute_map.each_pair do |attr, param|
163
+ value = self.send(attr)
164
+ if value.nil?
165
+ is_nullable = self.class.openapi_nullable.include?(attr)
166
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
167
+ end
168
+
169
+ hash[param] = _to_hash(value)
170
+ end
171
+ hash
172
+ end
173
+
174
+ end
175
+
176
+ end