repull 0.2.53 → 0.2.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (238) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/listings_api.rb +10 -10
  3. data/lib/repull/api/vrbo_api.rb +4393 -57
  4. data/lib/repull/models/add_vrbo_listing_photos200_response.rb +245 -0
  5. data/lib/repull/models/add_vrbo_listing_photos200_response_data.rb +170 -0
  6. data/lib/repull/models/add_vrbo_listing_photos_request.rb +184 -0
  7. data/lib/repull/models/add_vrbo_listing_photos_request_photos_inner.rb +207 -0
  8. data/lib/repull/models/add_vrbo_listing_room_request.rb +309 -0
  9. data/lib/repull/models/add_vrbo_listing_video200_response.rb +245 -0
  10. data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +150 -0
  11. data/lib/repull/models/add_vrbo_listing_video_request.rb +176 -0
  12. data/lib/repull/models/get_vrbo_connection200_response.rb +147 -0
  13. data/lib/repull/models/get_vrbo_connection200_response_data.rb +210 -0
  14. data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner.rb +292 -0
  15. data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner_sync.rb +156 -0
  16. data/lib/repull/models/get_vrbo_listing200_response.rb +175 -0
  17. data/lib/repull/models/get_vrbo_listing200_response_data_freshness.rb +187 -0
  18. data/lib/repull/models/get_vrbo_listing200_response_data_freshness_accounts_inner.rb +194 -0
  19. data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +548 -0
  20. data/lib/repull/models/get_vrbo_listing200_response_data_inner_address.rb +208 -0
  21. data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity.rb +177 -0
  22. data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity_pets.rb +158 -0
  23. data/lib/repull/models/get_vrbo_listing200_response_data_inner_content.rb +162 -0
  24. data/lib/repull/models/get_vrbo_listing200_response_data_inner_rating.rb +158 -0
  25. data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +217 -0
  26. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +180 -0
  27. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness.rb +308 -0
  28. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness_accounts_inner.rb +194 -0
  29. data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +217 -0
  30. data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +151 -0
  31. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value.rb +158 -0
  32. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner.rb +272 -0
  33. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_options_inner.rb +157 -0
  34. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_shown_when.rb +157 -0
  35. data/lib/repull/models/get_vrbo_listing_amenities200_response_data_groups_value_fields_inner_value.rb +106 -0
  36. data/lib/repull/models/get_vrbo_listing_availability200_response.rb +186 -0
  37. data/lib/repull/models/get_vrbo_listing_availability200_response_data.rb +104 -0
  38. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of.rb +208 -0
  39. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of_inner.rb +260 -0
  40. data/lib/repull/models/get_vrbo_listing_availability200_response_range.rb +156 -0
  41. data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +217 -0
  42. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +305 -0
  43. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data_min_nights_range.rb +158 -0
  44. data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +217 -0
  45. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +182 -0
  46. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_options_inner.rb +158 -0
  47. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data_tiers_inner.rb +168 -0
  48. data/lib/repull/models/get_vrbo_listing_checkin_guide200_response.rb +217 -0
  49. data/lib/repull/models/get_vrbo_listing_checkin_guide200_response_data.rb +222 -0
  50. data/lib/repull/models/get_vrbo_listing_checkout_guide200_response.rb +203 -0
  51. data/lib/repull/models/get_vrbo_listing_checkout_guide200_response_data.rb +170 -0
  52. data/lib/repull/models/get_vrbo_listing_content200_response.rb +216 -0
  53. data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +312 -0
  54. data/lib/repull/models/get_vrbo_listing_content200_response_sections_additional_info.rb +179 -0
  55. data/lib/repull/models/get_vrbo_listing_content200_response_sections_amenities.rb +150 -0
  56. data/lib/repull/models/get_vrbo_listing_content200_response_sections_booking_settings.rb +304 -0
  57. data/lib/repull/models/get_vrbo_listing_content200_response_sections_cancellation.rb +181 -0
  58. data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide.rb +221 -0
  59. data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_access.rb +168 -0
  60. data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_check_in.rb +169 -0
  61. data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_contacts_inner.rb +168 -0
  62. data/lib/repull/models/get_vrbo_listing_content200_response_sections_checkin_guide_wifi.rb +178 -0
  63. data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner.rb +188 -0
  64. data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner_limits.rb +159 -0
  65. data/lib/repull/models/get_vrbo_listing_content200_response_sections_descriptions_inner_limits_headline.rb +158 -0
  66. data/lib/repull/models/get_vrbo_listing_content200_response_sections_details.rb +198 -0
  67. data/lib/repull/models/get_vrbo_listing_content200_response_sections_details_interior_size.rb +192 -0
  68. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees.rb +222 -0
  69. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_cleaning.rb +168 -0
  70. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_custom_inner.rb +178 -0
  71. data/lib/repull/models/get_vrbo_listing_content200_response_sections_fees_extra_guests.rb +188 -0
  72. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules.rb +276 -0
  73. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children.rb +169 -0
  74. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_children_ages_inner.rb +156 -0
  75. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_events.rb +178 -0
  76. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_pets.rb +188 -0
  77. data/lib/repull/models/get_vrbo_listing_content200_response_sections_house_rules_smoking.rb +178 -0
  78. data/lib/repull/models/get_vrbo_listing_content200_response_sections_location.rb +168 -0
  79. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms.rb +159 -0
  80. data/lib/repull/models/get_vrbo_listing_content200_response_sections_payment_terms_payments_inner.rb +156 -0
  81. data/lib/repull/models/get_vrbo_listing_content200_response_sections_permits.rb +159 -0
  82. data/lib/repull/models/get_vrbo_listing_content200_response_sections_permits_fields_inner.rb +178 -0
  83. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos.rb +169 -0
  84. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_items_inner.rb +209 -0
  85. data/lib/repull/models/get_vrbo_listing_content200_response_sections_photos_rejected_inner.rb +166 -0
  86. data/lib/repull/models/get_vrbo_listing_content200_response_sections_pricing.rb +201 -0
  87. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection.rb +189 -0
  88. data/lib/repull/models/get_vrbo_listing_content200_response_sections_protection_options_inner.rb +177 -0
  89. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms.rb +192 -0
  90. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_bed_types_inner.rb +168 -0
  91. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner.rb +217 -0
  92. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_amenities_inner.rb +186 -0
  93. data/lib/repull/models/get_vrbo_listing_content200_response_sections_rooms_spaces_inner_beds_inner.rb +194 -0
  94. data/lib/repull/models/get_vrbo_listing_content200_response_sections_story.rb +179 -0
  95. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes.rb +179 -0
  96. data/lib/repull/models/get_vrbo_listing_content200_response_sections_taxes_rules_inner.rb +188 -0
  97. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos.rb +149 -0
  98. data/lib/repull/models/get_vrbo_listing_content200_response_sections_videos_items_inner.rb +209 -0
  99. data/lib/repull/models/get_vrbo_listing_descriptions200_response.rb +232 -0
  100. data/lib/repull/models/get_vrbo_listing_details200_response.rb +217 -0
  101. data/lib/repull/models/get_vrbo_listing_details200_response_data.rb +199 -0
  102. data/lib/repull/models/get_vrbo_listing_fees200_response.rb +217 -0
  103. data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +223 -0
  104. data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +217 -0
  105. data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +277 -0
  106. data/lib/repull/models/get_vrbo_listing_location200_response.rb +217 -0
  107. data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +169 -0
  108. data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +217 -0
  109. data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +160 -0
  110. data/lib/repull/models/get_vrbo_listing_permits200_response.rb +217 -0
  111. data/lib/repull/models/get_vrbo_listing_permits200_response_data.rb +160 -0
  112. data/lib/repull/models/get_vrbo_listing_photos200_response.rb +217 -0
  113. data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +170 -0
  114. data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +217 -0
  115. data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +202 -0
  116. data/lib/repull/models/get_vrbo_listing_protection200_response.rb +217 -0
  117. data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +190 -0
  118. data/lib/repull/models/get_vrbo_listing_rates200_response.rb +217 -0
  119. data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +178 -0
  120. data/lib/repull/models/get_vrbo_listing_rates200_response_data_days_inner.rb +196 -0
  121. data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +217 -0
  122. data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +193 -0
  123. data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response.rb +217 -0
  124. data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  125. data/lib/repull/models/get_vrbo_listing_story200_response.rb +217 -0
  126. data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +180 -0
  127. data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +217 -0
  128. data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +180 -0
  129. data/lib/repull/models/get_vrbo_listing_videos200_response.rb +217 -0
  130. data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +150 -0
  131. data/lib/repull/models/get_vrbo_publish_job200_response.rb +22 -1
  132. data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +73 -6
  133. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner.rb +235 -0
  134. data/lib/repull/models/get_vrbo_publish_job200_response_job_sections_inner_errors_inner.rb +167 -0
  135. data/lib/repull/models/get_vrbo_publish_job200_response_job_skipped_inner.rb +156 -0
  136. data/lib/repull/models/map_vrbo_listing200_response.rb +183 -0
  137. data/lib/repull/models/map_vrbo_listing_request.rb +205 -0
  138. data/lib/repull/models/publish_listing_to_vrbo_request.rb +48 -4
  139. data/lib/repull/models/reorder_vrbo_listing_photos_request.rb +184 -0
  140. data/lib/repull/models/set_vrbo_listing_cover_photo_request.rb +164 -0
  141. data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +245 -0
  142. data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +180 -0
  143. data/lib/repull/models/update_vrbo_listing_additional_info_request.rb +165 -0
  144. data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +245 -0
  145. data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +151 -0
  146. data/lib/repull/models/update_vrbo_listing_amenities_request.rb +164 -0
  147. data/lib/repull/models/update_vrbo_listing_amenities_request_groups.rb +310 -0
  148. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials.rb +167 -0
  149. data/lib/repull/models/update_vrbo_listing_amenities_request_groups_essentials_values_value.rb +105 -0
  150. data/lib/repull/models/update_vrbo_listing_availability202_response.rb +156 -0
  151. data/lib/repull/models/update_vrbo_listing_availability202_response_data.rb +165 -0
  152. data/lib/repull/models/update_vrbo_listing_availability_request.rb +220 -0
  153. data/lib/repull/models/update_vrbo_listing_availability_request_operations_inner.rb +299 -0
  154. data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +245 -0
  155. data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +305 -0
  156. data/lib/repull/models/update_vrbo_listing_booking_settings_request.rb +279 -0
  157. data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +245 -0
  158. data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +182 -0
  159. data/lib/repull/models/update_vrbo_listing_cancellation_request.rb +176 -0
  160. data/lib/repull/models/update_vrbo_listing_cancellation_request_tiers_inner.rb +217 -0
  161. data/lib/repull/models/update_vrbo_listing_checkin_guide200_response.rb +245 -0
  162. data/lib/repull/models/update_vrbo_listing_checkin_guide200_response_data.rb +222 -0
  163. data/lib/repull/models/update_vrbo_listing_checkin_guide_request.rb +204 -0
  164. data/lib/repull/models/update_vrbo_listing_checkin_guide_request_access.rb +203 -0
  165. data/lib/repull/models/update_vrbo_listing_checkin_guide_request_check_in.rb +173 -0
  166. data/lib/repull/models/update_vrbo_listing_checkin_guide_request_wifi.rb +222 -0
  167. data/lib/repull/models/update_vrbo_listing_descriptions200_response.rb +248 -0
  168. data/lib/repull/models/update_vrbo_listing_descriptions_request.rb +222 -0
  169. data/lib/repull/models/update_vrbo_listing_details200_response.rb +245 -0
  170. data/lib/repull/models/update_vrbo_listing_details200_response_data.rb +199 -0
  171. data/lib/repull/models/update_vrbo_listing_details_request.rb +185 -0
  172. data/lib/repull/models/update_vrbo_listing_details_request_interior_size.rb +223 -0
  173. data/lib/repull/models/update_vrbo_listing_fees200_response.rb +245 -0
  174. data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +223 -0
  175. data/lib/repull/models/update_vrbo_listing_fees_request.rb +179 -0
  176. data/lib/repull/models/update_vrbo_listing_fees_request_cleaning.rb +225 -0
  177. data/lib/repull/models/update_vrbo_listing_fees_request_custom_inner.rb +280 -0
  178. data/lib/repull/models/update_vrbo_listing_fees_request_extra_guests.rb +246 -0
  179. data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +245 -0
  180. data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +277 -0
  181. data/lib/repull/models/update_vrbo_listing_house_rules_request.rb +332 -0
  182. data/lib/repull/models/update_vrbo_listing_house_rules_request_children.rb +168 -0
  183. data/lib/repull/models/update_vrbo_listing_house_rules_request_events.rb +177 -0
  184. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets.rb +187 -0
  185. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_allowed_pets.rb +104 -0
  186. data/lib/repull/models/update_vrbo_listing_house_rules_request_pets_max_weight.rb +104 -0
  187. data/lib/repull/models/update_vrbo_listing_house_rules_request_smoking.rb +177 -0
  188. data/lib/repull/models/update_vrbo_listing_location200_response.rb +245 -0
  189. data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +169 -0
  190. data/lib/repull/models/update_vrbo_listing_location_request.rb +164 -0
  191. data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +245 -0
  192. data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +160 -0
  193. data/lib/repull/models/update_vrbo_listing_payment_terms_request.rb +193 -0
  194. data/lib/repull/models/update_vrbo_listing_payment_terms_request_payments_inner.rb +199 -0
  195. data/lib/repull/models/update_vrbo_listing_permits200_response.rb +245 -0
  196. data/lib/repull/models/update_vrbo_listing_permits200_response_data.rb +160 -0
  197. data/lib/repull/models/update_vrbo_listing_permits_request.rb +166 -0
  198. data/lib/repull/models/update_vrbo_listing_permits_request_settings_inner.rb +177 -0
  199. data/lib/repull/models/update_vrbo_listing_permits_request_settings_inner_value.rb +105 -0
  200. data/lib/repull/models/update_vrbo_listing_photo_request.rb +229 -0
  201. data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +245 -0
  202. data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +202 -0
  203. data/lib/repull/models/update_vrbo_listing_pricing_request.rb +173 -0
  204. data/lib/repull/models/update_vrbo_listing_protection200_response.rb +245 -0
  205. data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +190 -0
  206. data/lib/repull/models/update_vrbo_listing_protection_request.rb +159 -0
  207. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit.rb +104 -0
  208. data/lib/repull/models/update_vrbo_listing_protection_request_damage_deposit_one_of.rb +173 -0
  209. data/lib/repull/models/update_vrbo_listing_rates200_response.rb +245 -0
  210. data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +178 -0
  211. data/lib/repull/models/update_vrbo_listing_rates_request.rb +305 -0
  212. data/lib/repull/models/update_vrbo_listing_rates_request_nightly_rates.rb +335 -0
  213. data/lib/repull/models/update_vrbo_listing_room200_response.rb +245 -0
  214. data/lib/repull/models/update_vrbo_listing_room200_response_data.rb +193 -0
  215. data/lib/repull/models/update_vrbo_listing_room_request.rb +254 -0
  216. data/lib/repull/models/update_vrbo_listing_room_request_amenities.rb +105 -0
  217. data/lib/repull/models/update_vrbo_listing_room_request_amenities_one_of_inner.rb +165 -0
  218. data/lib/repull/models/update_vrbo_listing_room_request_beds_inner.rb +219 -0
  219. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response.rb +245 -0
  220. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  221. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request.rb +164 -0
  222. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups.rb +156 -0
  223. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups_home_safety.rb +166 -0
  224. data/lib/repull/models/update_vrbo_listing_story200_response.rb +245 -0
  225. data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +180 -0
  226. data/lib/repull/models/update_vrbo_listing_story_request.rb +165 -0
  227. data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +245 -0
  228. data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +180 -0
  229. data/lib/repull/models/update_vrbo_listing_taxes_request.rb +167 -0
  230. data/lib/repull/models/update_vrbo_listing_taxes_request_partner_tax_settings.rb +175 -0
  231. data/lib/repull/models/update_vrbo_listing_taxes_request_stay_tax.rb +173 -0
  232. data/lib/repull/models/vrbo_listing_action200_response.rb +196 -0
  233. data/lib/repull/models/vrbo_listing_action200_response_units_inner.rb +192 -0
  234. data/lib/repull/models/vrbo_listing_action_request.rb +210 -0
  235. data/lib/repull/version.rb +1 -1
  236. data/lib/repull.rb +228 -0
  237. data/openapi/v1.json +23506 -11
  238. metadata +230 -2
@@ -0,0 +1,179 @@
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 GetVrboListingContent200ResponseSectionsAdditionalInfo < ApiModelBase
18
+ attr_accessor :property
19
+
20
+ attr_accessor :bedrooms
21
+
22
+ attr_accessor :bathrooms
23
+
24
+ attr_accessor :limits
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'property' => :'property',
30
+ :'bedrooms' => :'bedrooms',
31
+ :'bathrooms' => :'bathrooms',
32
+ :'limits' => :'limits'
33
+ }
34
+ end
35
+
36
+ # Returns attribute mapping this model knows about
37
+ def self.acceptable_attribute_map
38
+ attribute_map
39
+ end
40
+
41
+ # Returns all the JSON keys this model knows about
42
+ def self.acceptable_attributes
43
+ acceptable_attribute_map.values
44
+ end
45
+
46
+ # Attribute type mapping.
47
+ def self.openapi_types
48
+ {
49
+ :'property' => :'String',
50
+ :'bedrooms' => :'String',
51
+ :'bathrooms' => :'String',
52
+ :'limits' => :'Hash<String, Object>'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ :'property',
60
+ :'bedrooms',
61
+ :'bathrooms',
62
+ ])
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ if (!attributes.is_a?(Hash))
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsAdditionalInfo` initialize method"
70
+ end
71
+
72
+ # check to see if the attribute exists and convert string to symbol for hash key
73
+ acceptable_attribute_map = self.class.acceptable_attribute_map
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!acceptable_attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsAdditionalInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'property')
82
+ self.property = attributes[:'property']
83
+ end
84
+
85
+ if attributes.key?(:'bedrooms')
86
+ self.bedrooms = attributes[:'bedrooms']
87
+ end
88
+
89
+ if attributes.key?(:'bathrooms')
90
+ self.bathrooms = attributes[:'bathrooms']
91
+ end
92
+
93
+ if attributes.key?(:'limits')
94
+ if (value = attributes[:'limits']).is_a?(Hash)
95
+ self.limits = value
96
+ end
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
104
+ invalid_properties = Array.new
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ warn '[DEPRECATED] the `valid?` method is obsolete'
112
+ true
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
+ property == o.property &&
121
+ bedrooms == o.bedrooms &&
122
+ bathrooms == o.bathrooms &&
123
+ limits == o.limits
124
+ end
125
+
126
+ # @see the `==` method
127
+ # @param [Object] Object to be compared
128
+ def eql?(o)
129
+ self == o
130
+ end
131
+
132
+ # Calculates hash code according to all attributes.
133
+ # @return [Integer] Hash code
134
+ def hash
135
+ [property, bedrooms, bathrooms, limits].hash
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def self.build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ attributes = attributes.transform_keys(&:to_sym)
144
+ transformed_hash = {}
145
+ openapi_types.each_pair do |key, type|
146
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
147
+ transformed_hash["#{key}"] = nil
148
+ elsif type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[attribute_map[key]].is_a?(Array)
152
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
153
+ end
154
+ elsif !attributes[attribute_map[key]].nil?
155
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
156
+ end
157
+ end
158
+ new(transformed_hash)
159
+ end
160
+
161
+ # Returns the object in the form of hash
162
+ # @return [Hash] Returns the object in the form of hash
163
+ def to_hash
164
+ hash = {}
165
+ self.class.attribute_map.each_pair do |attr, param|
166
+ value = self.send(attr)
167
+ if value.nil?
168
+ is_nullable = self.class.openapi_nullable.include?(attr)
169
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
170
+ end
171
+
172
+ hash[param] = _to_hash(value)
173
+ end
174
+ hash
175
+ end
176
+
177
+ end
178
+
179
+ end
@@ -0,0 +1,150 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Repull
17
+ class GetVrboListingContent200ResponseSectionsAmenities < ApiModelBase
18
+ # Keyed by group: essentials, internet, climateControl, general, office, kitchenAndDining, parking, poolAndSpa, sustainability, entertainment, outdoor, onsiteService, accessibility, homeSafety, safetyDevices, enhancedCleaning, locationAndView, localAttractionsAndActivities, checkoutInstructions.
19
+ attr_accessor :groups
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'groups' => :'groups'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'groups' => :'Hash<String, GetVrboListingAmenities200ResponseDataGroupsValue>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsAmenities` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsAmenities`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'groups')
68
+ if (value = attributes[:'groups']).is_a?(Hash)
69
+ self.groups = value
70
+ end
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ warn '[DEPRECATED] the `valid?` method is obsolete'
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ groups == o.groups
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [groups].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ return nil unless attributes.is_a?(Hash)
114
+ attributes = attributes.transform_keys(&:to_sym)
115
+ transformed_hash = {}
116
+ openapi_types.each_pair do |key, type|
117
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
118
+ transformed_hash["#{key}"] = nil
119
+ elsif type =~ /\AArray<(.*)>/i
120
+ # check to ensure the input is an array given that the attribute
121
+ # is documented as an array but the input is not
122
+ if attributes[attribute_map[key]].is_a?(Array)
123
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
124
+ end
125
+ elsif !attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
127
+ end
128
+ end
129
+ new(transformed_hash)
130
+ end
131
+
132
+ # Returns the object in the form of hash
133
+ # @return [Hash] Returns the object in the form of hash
134
+ def to_hash
135
+ hash = {}
136
+ self.class.attribute_map.each_pair do |attr, param|
137
+ value = self.send(attr)
138
+ if value.nil?
139
+ is_nullable = self.class.openapi_nullable.include?(attr)
140
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
141
+ end
142
+
143
+ hash[param] = _to_hash(value)
144
+ end
145
+ hash
146
+ end
147
+
148
+ end
149
+
150
+ end
@@ -0,0 +1,304 @@
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 GetVrboListingContent200ResponseSectionsBookingSettings < ApiModelBase
18
+ attr_accessor :booking_type
19
+
20
+ attr_accessor :instant_booking_eligible
21
+
22
+ attr_accessor :min_nights
23
+
24
+ attr_accessor :min_nights_range
25
+
26
+ attr_accessor :min_days_before_booking
27
+
28
+ attr_accessor :min_days_before_booking_options
29
+
30
+ attr_accessor :max_months_before_booking
31
+
32
+ attr_accessor :max_months_before_booking_options
33
+
34
+ attr_accessor :max_length_of_stay
35
+
36
+ attr_accessor :access_type
37
+
38
+ attr_accessor :access_type_options
39
+
40
+ attr_accessor :check_in_time
41
+
42
+ attr_accessor :check_out_time
43
+
44
+ class EnumAttributeValidator
45
+ attr_reader :datatype
46
+ attr_reader :allowable_values
47
+
48
+ def initialize(datatype, allowable_values)
49
+ @allowable_values = allowable_values.map do |value|
50
+ case datatype.to_s
51
+ when /Integer/i
52
+ value.to_i
53
+ when /Float/i
54
+ value.to_f
55
+ else
56
+ value
57
+ end
58
+ end
59
+ end
60
+
61
+ def valid?(value)
62
+ !value || allowable_values.include?(value)
63
+ end
64
+ end
65
+
66
+ # Attribute mapping from ruby-style variable name to JSON key.
67
+ def self.attribute_map
68
+ {
69
+ :'booking_type' => :'bookingType',
70
+ :'instant_booking_eligible' => :'instantBookingEligible',
71
+ :'min_nights' => :'minNights',
72
+ :'min_nights_range' => :'minNightsRange',
73
+ :'min_days_before_booking' => :'minDaysBeforeBooking',
74
+ :'min_days_before_booking_options' => :'minDaysBeforeBookingOptions',
75
+ :'max_months_before_booking' => :'maxMonthsBeforeBooking',
76
+ :'max_months_before_booking_options' => :'maxMonthsBeforeBookingOptions',
77
+ :'max_length_of_stay' => :'maxLengthOfStay',
78
+ :'access_type' => :'accessType',
79
+ :'access_type_options' => :'accessTypeOptions',
80
+ :'check_in_time' => :'checkInTime',
81
+ :'check_out_time' => :'checkOutTime'
82
+ }
83
+ end
84
+
85
+ # Returns attribute mapping this model knows about
86
+ def self.acceptable_attribute_map
87
+ attribute_map
88
+ end
89
+
90
+ # Returns all the JSON keys this model knows about
91
+ def self.acceptable_attributes
92
+ acceptable_attribute_map.values
93
+ end
94
+
95
+ # Attribute type mapping.
96
+ def self.openapi_types
97
+ {
98
+ :'booking_type' => :'String',
99
+ :'instant_booking_eligible' => :'Boolean',
100
+ :'min_nights' => :'Integer',
101
+ :'min_nights_range' => :'GetVrboListingBookingSettings200ResponseDataMinNightsRange',
102
+ :'min_days_before_booking' => :'Integer',
103
+ :'min_days_before_booking_options' => :'Array<Integer>',
104
+ :'max_months_before_booking' => :'Integer',
105
+ :'max_months_before_booking_options' => :'Array<Integer>',
106
+ :'max_length_of_stay' => :'Integer',
107
+ :'access_type' => :'String',
108
+ :'access_type_options' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner>',
109
+ :'check_in_time' => :'String',
110
+ :'check_out_time' => :'String'
111
+ }
112
+ end
113
+
114
+ # List of attributes with nullable: true
115
+ def self.openapi_nullable
116
+ Set.new([
117
+ :'booking_type',
118
+ :'instant_booking_eligible',
119
+ :'min_nights',
120
+ :'min_days_before_booking',
121
+ :'max_months_before_booking',
122
+ :'max_length_of_stay',
123
+ :'access_type',
124
+ :'check_in_time',
125
+ :'check_out_time'
126
+ ])
127
+ end
128
+
129
+ # Initializes the object
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ def initialize(attributes = {})
132
+ if (!attributes.is_a?(Hash))
133
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsBookingSettings` initialize method"
134
+ end
135
+
136
+ # check to see if the attribute exists and convert string to symbol for hash key
137
+ acceptable_attribute_map = self.class.acceptable_attribute_map
138
+ attributes = attributes.each_with_object({}) { |(k, v), h|
139
+ if (!acceptable_attribute_map.key?(k.to_sym))
140
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsBookingSettings`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
141
+ end
142
+ h[k.to_sym] = v
143
+ }
144
+
145
+ if attributes.key?(:'booking_type')
146
+ self.booking_type = attributes[:'booking_type']
147
+ end
148
+
149
+ if attributes.key?(:'instant_booking_eligible')
150
+ self.instant_booking_eligible = attributes[:'instant_booking_eligible']
151
+ end
152
+
153
+ if attributes.key?(:'min_nights')
154
+ self.min_nights = attributes[:'min_nights']
155
+ end
156
+
157
+ if attributes.key?(:'min_nights_range')
158
+ self.min_nights_range = attributes[:'min_nights_range']
159
+ end
160
+
161
+ if attributes.key?(:'min_days_before_booking')
162
+ self.min_days_before_booking = attributes[:'min_days_before_booking']
163
+ end
164
+
165
+ if attributes.key?(:'min_days_before_booking_options')
166
+ if (value = attributes[:'min_days_before_booking_options']).is_a?(Array)
167
+ self.min_days_before_booking_options = value
168
+ end
169
+ end
170
+
171
+ if attributes.key?(:'max_months_before_booking')
172
+ self.max_months_before_booking = attributes[:'max_months_before_booking']
173
+ end
174
+
175
+ if attributes.key?(:'max_months_before_booking_options')
176
+ if (value = attributes[:'max_months_before_booking_options']).is_a?(Array)
177
+ self.max_months_before_booking_options = value
178
+ end
179
+ end
180
+
181
+ if attributes.key?(:'max_length_of_stay')
182
+ self.max_length_of_stay = attributes[:'max_length_of_stay']
183
+ end
184
+
185
+ if attributes.key?(:'access_type')
186
+ self.access_type = attributes[:'access_type']
187
+ end
188
+
189
+ if attributes.key?(:'access_type_options')
190
+ if (value = attributes[:'access_type_options']).is_a?(Array)
191
+ self.access_type_options = value
192
+ end
193
+ end
194
+
195
+ if attributes.key?(:'check_in_time')
196
+ self.check_in_time = attributes[:'check_in_time']
197
+ end
198
+
199
+ if attributes.key?(:'check_out_time')
200
+ self.check_out_time = attributes[:'check_out_time']
201
+ end
202
+ end
203
+
204
+ # Show invalid properties with the reasons. Usually used together with valid?
205
+ # @return Array for valid properties with the reasons
206
+ def list_invalid_properties
207
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
208
+ invalid_properties = Array.new
209
+ invalid_properties
210
+ end
211
+
212
+ # Check to see if the all the properties in the model are valid
213
+ # @return true if the model is valid
214
+ def valid?
215
+ warn '[DEPRECATED] the `valid?` method is obsolete'
216
+ booking_type_validator = EnumAttributeValidator.new('String', ["INSTANT", "QUOTEHOLD"])
217
+ return false unless booking_type_validator.valid?(@booking_type)
218
+ true
219
+ end
220
+
221
+ # Custom attribute writer method checking allowed values (enum).
222
+ # @param [Object] booking_type Object to be assigned
223
+ def booking_type=(booking_type)
224
+ validator = EnumAttributeValidator.new('String', ["INSTANT", "QUOTEHOLD"])
225
+ unless validator.valid?(booking_type)
226
+ fail ArgumentError, "invalid value for \"booking_type\", must be one of #{validator.allowable_values}."
227
+ end
228
+ @booking_type = booking_type
229
+ end
230
+
231
+ # Checks equality by comparing each attribute.
232
+ # @param [Object] Object to be compared
233
+ def ==(o)
234
+ return true if self.equal?(o)
235
+ self.class == o.class &&
236
+ booking_type == o.booking_type &&
237
+ instant_booking_eligible == o.instant_booking_eligible &&
238
+ min_nights == o.min_nights &&
239
+ min_nights_range == o.min_nights_range &&
240
+ min_days_before_booking == o.min_days_before_booking &&
241
+ min_days_before_booking_options == o.min_days_before_booking_options &&
242
+ max_months_before_booking == o.max_months_before_booking &&
243
+ max_months_before_booking_options == o.max_months_before_booking_options &&
244
+ max_length_of_stay == o.max_length_of_stay &&
245
+ access_type == o.access_type &&
246
+ access_type_options == o.access_type_options &&
247
+ check_in_time == o.check_in_time &&
248
+ check_out_time == o.check_out_time
249
+ end
250
+
251
+ # @see the `==` method
252
+ # @param [Object] Object to be compared
253
+ def eql?(o)
254
+ self == o
255
+ end
256
+
257
+ # Calculates hash code according to all attributes.
258
+ # @return [Integer] Hash code
259
+ def hash
260
+ [booking_type, instant_booking_eligible, min_nights, min_nights_range, min_days_before_booking, min_days_before_booking_options, max_months_before_booking, max_months_before_booking_options, max_length_of_stay, access_type, access_type_options, check_in_time, check_out_time].hash
261
+ end
262
+
263
+ # Builds the object from hash
264
+ # @param [Hash] attributes Model attributes in the form of hash
265
+ # @return [Object] Returns the model itself
266
+ def self.build_from_hash(attributes)
267
+ return nil unless attributes.is_a?(Hash)
268
+ attributes = attributes.transform_keys(&:to_sym)
269
+ transformed_hash = {}
270
+ openapi_types.each_pair do |key, type|
271
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
272
+ transformed_hash["#{key}"] = nil
273
+ elsif type =~ /\AArray<(.*)>/i
274
+ # check to ensure the input is an array given that the attribute
275
+ # is documented as an array but the input is not
276
+ if attributes[attribute_map[key]].is_a?(Array)
277
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
278
+ end
279
+ elsif !attributes[attribute_map[key]].nil?
280
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
281
+ end
282
+ end
283
+ new(transformed_hash)
284
+ end
285
+
286
+ # Returns the object in the form of hash
287
+ # @return [Hash] Returns the object in the form of hash
288
+ def to_hash
289
+ hash = {}
290
+ self.class.attribute_map.each_pair do |attr, param|
291
+ value = self.send(attr)
292
+ if value.nil?
293
+ is_nullable = self.class.openapi_nullable.include?(attr)
294
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
295
+ end
296
+
297
+ hash[param] = _to_hash(value)
298
+ end
299
+ hash
300
+ end
301
+
302
+ end
303
+
304
+ end