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,158 @@
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 GetVrboListingAmenities200ResponseDataGroupsValue < ApiModelBase
18
+ attr_accessor :group_id
19
+
20
+ attr_accessor :fields
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'group_id' => :'groupId',
26
+ :'fields' => :'fields'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'group_id' => :'String',
44
+ :'fields' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInner>'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingAmenities200ResponseDataGroupsValue` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingAmenities200ResponseDataGroupsValue`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'group_id')
71
+ self.group_id = attributes[:'group_id']
72
+ end
73
+
74
+ if attributes.key?(:'fields')
75
+ if (value = attributes[:'fields']).is_a?(Array)
76
+ self.fields = value
77
+ end
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
+ invalid_properties = Array.new
86
+ invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ warn '[DEPRECATED] the `valid?` method is obsolete'
93
+ true
94
+ end
95
+
96
+ # Checks equality by comparing each attribute.
97
+ # @param [Object] Object to be compared
98
+ def ==(o)
99
+ return true if self.equal?(o)
100
+ self.class == o.class &&
101
+ group_id == o.group_id &&
102
+ fields == o.fields
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Integer] Hash code
113
+ def hash
114
+ [group_id, fields].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def self.build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ attributes = attributes.transform_keys(&:to_sym)
123
+ transformed_hash = {}
124
+ openapi_types.each_pair do |key, type|
125
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
126
+ transformed_hash["#{key}"] = nil
127
+ elsif type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[attribute_map[key]].is_a?(Array)
131
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
132
+ end
133
+ elsif !attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
135
+ end
136
+ end
137
+ new(transformed_hash)
138
+ end
139
+
140
+ # Returns the object in the form of hash
141
+ # @return [Hash] Returns the object in the form of hash
142
+ def to_hash
143
+ hash = {}
144
+ self.class.attribute_map.each_pair do |attr, param|
145
+ value = self.send(attr)
146
+ if value.nil?
147
+ is_nullable = self.class.openapi_nullable.include?(attr)
148
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
149
+ end
150
+
151
+ hash[param] = _to_hash(value)
152
+ end
153
+ hash
154
+ end
155
+
156
+ end
157
+
158
+ end
@@ -0,0 +1,272 @@
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 GetVrboListingAmenities200ResponseDataGroupsValueFieldsInner < ApiModelBase
18
+ # The field id to write in `values`.
19
+ attr_accessor :id
20
+
21
+ attr_accessor :type
22
+
23
+ attr_accessor :title
24
+
25
+ attr_accessor :section
26
+
27
+ attr_accessor :value
28
+
29
+ attr_accessor :options
30
+
31
+ attr_accessor :min
32
+
33
+ attr_accessor :max
34
+
35
+ attr_accessor :max_length
36
+
37
+ attr_accessor :shown_when
38
+
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
55
+
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
60
+
61
+ # Attribute mapping from ruby-style variable name to JSON key.
62
+ def self.attribute_map
63
+ {
64
+ :'id' => :'id',
65
+ :'type' => :'type',
66
+ :'title' => :'title',
67
+ :'section' => :'section',
68
+ :'value' => :'value',
69
+ :'options' => :'options',
70
+ :'min' => :'min',
71
+ :'max' => :'max',
72
+ :'max_length' => :'maxLength',
73
+ :'shown_when' => :'shownWhen'
74
+ }
75
+ end
76
+
77
+ # Returns attribute mapping this model knows about
78
+ def self.acceptable_attribute_map
79
+ attribute_map
80
+ end
81
+
82
+ # Returns all the JSON keys this model knows about
83
+ def self.acceptable_attributes
84
+ acceptable_attribute_map.values
85
+ end
86
+
87
+ # Attribute type mapping.
88
+ def self.openapi_types
89
+ {
90
+ :'id' => :'String',
91
+ :'type' => :'String',
92
+ :'title' => :'String',
93
+ :'section' => :'String',
94
+ :'value' => :'GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerValue',
95
+ :'options' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner>',
96
+ :'min' => :'Float',
97
+ :'max' => :'Float',
98
+ :'max_length' => :'Integer',
99
+ :'shown_when' => :'GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerShownWhen'
100
+ }
101
+ end
102
+
103
+ # List of attributes with nullable: true
104
+ def self.openapi_nullable
105
+ Set.new([
106
+ :'title',
107
+ :'section',
108
+ :'value',
109
+ :'min',
110
+ :'max',
111
+ :'max_length',
112
+ :'shown_when'
113
+ ])
114
+ end
115
+
116
+ # Initializes the object
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ def initialize(attributes = {})
119
+ if (!attributes.is_a?(Hash))
120
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingAmenities200ResponseDataGroupsValueFieldsInner` initialize method"
121
+ end
122
+
123
+ # check to see if the attribute exists and convert string to symbol for hash key
124
+ acceptable_attribute_map = self.class.acceptable_attribute_map
125
+ attributes = attributes.each_with_object({}) { |(k, v), h|
126
+ if (!acceptable_attribute_map.key?(k.to_sym))
127
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingAmenities200ResponseDataGroupsValueFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
128
+ end
129
+ h[k.to_sym] = v
130
+ }
131
+
132
+ if attributes.key?(:'id')
133
+ self.id = attributes[:'id']
134
+ end
135
+
136
+ if attributes.key?(:'type')
137
+ self.type = attributes[:'type']
138
+ end
139
+
140
+ if attributes.key?(:'title')
141
+ self.title = attributes[:'title']
142
+ end
143
+
144
+ if attributes.key?(:'section')
145
+ self.section = attributes[:'section']
146
+ end
147
+
148
+ if attributes.key?(:'value')
149
+ self.value = attributes[:'value']
150
+ end
151
+
152
+ if attributes.key?(:'options')
153
+ if (value = attributes[:'options']).is_a?(Array)
154
+ self.options = value
155
+ end
156
+ end
157
+
158
+ if attributes.key?(:'min')
159
+ self.min = attributes[:'min']
160
+ end
161
+
162
+ if attributes.key?(:'max')
163
+ self.max = attributes[:'max']
164
+ end
165
+
166
+ if attributes.key?(:'max_length')
167
+ self.max_length = attributes[:'max_length']
168
+ end
169
+
170
+ if attributes.key?(:'shown_when')
171
+ self.shown_when = attributes[:'shown_when']
172
+ end
173
+ end
174
+
175
+ # Show invalid properties with the reasons. Usually used together with valid?
176
+ # @return Array for valid properties with the reasons
177
+ def list_invalid_properties
178
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
179
+ invalid_properties = Array.new
180
+ invalid_properties
181
+ end
182
+
183
+ # Check to see if the all the properties in the model are valid
184
+ # @return true if the model is valid
185
+ def valid?
186
+ warn '[DEPRECATED] the `valid?` method is obsolete'
187
+ type_validator = EnumAttributeValidator.new('String', ["checkbox", "choice", "text", "number", "measurement", "checkboxGroup"])
188
+ return false unless type_validator.valid?(@type)
189
+ true
190
+ end
191
+
192
+ # Custom attribute writer method checking allowed values (enum).
193
+ # @param [Object] type Object to be assigned
194
+ def type=(type)
195
+ validator = EnumAttributeValidator.new('String', ["checkbox", "choice", "text", "number", "measurement", "checkboxGroup"])
196
+ unless validator.valid?(type)
197
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
198
+ end
199
+ @type = type
200
+ end
201
+
202
+ # Checks equality by comparing each attribute.
203
+ # @param [Object] Object to be compared
204
+ def ==(o)
205
+ return true if self.equal?(o)
206
+ self.class == o.class &&
207
+ id == o.id &&
208
+ type == o.type &&
209
+ title == o.title &&
210
+ section == o.section &&
211
+ value == o.value &&
212
+ options == o.options &&
213
+ min == o.min &&
214
+ max == o.max &&
215
+ max_length == o.max_length &&
216
+ shown_when == o.shown_when
217
+ end
218
+
219
+ # @see the `==` method
220
+ # @param [Object] Object to be compared
221
+ def eql?(o)
222
+ self == o
223
+ end
224
+
225
+ # Calculates hash code according to all attributes.
226
+ # @return [Integer] Hash code
227
+ def hash
228
+ [id, type, title, section, value, options, min, max, max_length, shown_when].hash
229
+ end
230
+
231
+ # Builds the object from hash
232
+ # @param [Hash] attributes Model attributes in the form of hash
233
+ # @return [Object] Returns the model itself
234
+ def self.build_from_hash(attributes)
235
+ return nil unless attributes.is_a?(Hash)
236
+ attributes = attributes.transform_keys(&:to_sym)
237
+ transformed_hash = {}
238
+ openapi_types.each_pair do |key, type|
239
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
240
+ transformed_hash["#{key}"] = nil
241
+ elsif type =~ /\AArray<(.*)>/i
242
+ # check to ensure the input is an array given that the attribute
243
+ # is documented as an array but the input is not
244
+ if attributes[attribute_map[key]].is_a?(Array)
245
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
246
+ end
247
+ elsif !attributes[attribute_map[key]].nil?
248
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
249
+ end
250
+ end
251
+ new(transformed_hash)
252
+ end
253
+
254
+ # Returns the object in the form of hash
255
+ # @return [Hash] Returns the object in the form of hash
256
+ def to_hash
257
+ hash = {}
258
+ self.class.attribute_map.each_pair do |attr, param|
259
+ value = self.send(attr)
260
+ if value.nil?
261
+ is_nullable = self.class.openapi_nullable.include?(attr)
262
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
263
+ end
264
+
265
+ hash[param] = _to_hash(value)
266
+ end
267
+ hash
268
+ end
269
+
270
+ end
271
+
272
+ end
@@ -0,0 +1,157 @@
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 GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner < ApiModelBase
18
+ attr_accessor :value
19
+
20
+ attr_accessor :label
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'value' => :'value',
26
+ :'label' => :'label'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'value' => :'String',
44
+ :'label' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ :'label'
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::GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner` 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::GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner`. 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?(:'value')
72
+ self.value = attributes[:'value']
73
+ end
74
+
75
+ if attributes.key?(:'label')
76
+ self.label = attributes[:'label']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
84
+ invalid_properties = Array.new
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
+ true
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ value == o.value &&
101
+ label == o.label
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Integer] Hash code
112
+ def hash
113
+ [value, label].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def self.build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ transformed_hash = {}
123
+ openapi_types.each_pair do |key, type|
124
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
125
+ transformed_hash["#{key}"] = nil
126
+ elsif type =~ /\AArray<(.*)>/i
127
+ # check to ensure the input is an array given that the attribute
128
+ # is documented as an array but the input is not
129
+ if attributes[attribute_map[key]].is_a?(Array)
130
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
131
+ end
132
+ elsif !attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
134
+ end
135
+ end
136
+ new(transformed_hash)
137
+ end
138
+
139
+ # Returns the object in the form of hash
140
+ # @return [Hash] Returns the object in the form of hash
141
+ def to_hash
142
+ hash = {}
143
+ self.class.attribute_map.each_pair do |attr, param|
144
+ value = self.send(attr)
145
+ if value.nil?
146
+ is_nullable = self.class.openapi_nullable.include?(attr)
147
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
148
+ end
149
+
150
+ hash[param] = _to_hash(value)
151
+ end
152
+ hash
153
+ end
154
+
155
+ end
156
+
157
+ end