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,169 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Repull
17
+ # What Vrbo has after the write, read back from Vrbo.
18
+ class UpdateVrboListingLocation200ResponseData < ApiModelBase
19
+ # The address (read-only: Vrbo changes it only through its support).
20
+ attr_accessor :address
21
+
22
+ attr_accessor :address_editable
23
+
24
+ attr_accessor :show_exact_location
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'address' => :'address',
30
+ :'address_editable' => :'addressEditable',
31
+ :'show_exact_location' => :'showExactLocation'
32
+ }
33
+ end
34
+
35
+ # Returns attribute mapping this model knows about
36
+ def self.acceptable_attribute_map
37
+ attribute_map
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ acceptable_attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'address' => :'Object',
49
+ :'address_editable' => :'Boolean',
50
+ :'show_exact_location' => :'Boolean'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.openapi_nullable
56
+ Set.new([
57
+ :'address',
58
+ :'show_exact_location'
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingLocation200ResponseData` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingLocation200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'address')
79
+ self.address = attributes[:'address']
80
+ end
81
+
82
+ if attributes.key?(:'address_editable')
83
+ self.address_editable = attributes[:'address_editable']
84
+ end
85
+
86
+ if attributes.key?(:'show_exact_location')
87
+ self.show_exact_location = attributes[:'show_exact_location']
88
+ end
89
+ end
90
+
91
+ # Show invalid properties with the reasons. Usually used together with valid?
92
+ # @return Array for valid properties with the reasons
93
+ def list_invalid_properties
94
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
+ invalid_properties = Array.new
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ warn '[DEPRECATED] the `valid?` method is obsolete'
103
+ true
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ address == o.address &&
112
+ address_editable == o.address_editable &&
113
+ show_exact_location == o.show_exact_location
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Integer] Hash code
124
+ def hash
125
+ [address, address_editable, show_exact_location].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def self.build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ attributes = attributes.transform_keys(&:to_sym)
134
+ transformed_hash = {}
135
+ openapi_types.each_pair do |key, type|
136
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
137
+ transformed_hash["#{key}"] = nil
138
+ elsif type =~ /\AArray<(.*)>/i
139
+ # check to ensure the input is an array given that the attribute
140
+ # is documented as an array but the input is not
141
+ if attributes[attribute_map[key]].is_a?(Array)
142
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
143
+ end
144
+ elsif !attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
146
+ end
147
+ end
148
+ new(transformed_hash)
149
+ end
150
+
151
+ # Returns the object in the form of hash
152
+ # @return [Hash] Returns the object in the form of hash
153
+ def to_hash
154
+ hash = {}
155
+ self.class.attribute_map.each_pair do |attr, param|
156
+ value = self.send(attr)
157
+ if value.nil?
158
+ is_nullable = self.class.openapi_nullable.include?(attr)
159
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
160
+ end
161
+
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ end
168
+
169
+ end
@@ -0,0 +1,164 @@
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 UpdateVrboListingLocationRequest < ApiModelBase
18
+ attr_accessor :show_exact_location
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'show_exact_location' => :'showExactLocation'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'show_exact_location' => :'Boolean'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingLocationRequest` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingLocationRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'show_exact_location')
67
+ self.show_exact_location = attributes[:'show_exact_location']
68
+ else
69
+ self.show_exact_location = nil
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ if @show_exact_location.nil?
79
+ invalid_properties.push('invalid value for "show_exact_location", show_exact_location cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
+ return false if @show_exact_location.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] show_exact_location Value to be assigned
95
+ def show_exact_location=(show_exact_location)
96
+ if show_exact_location.nil?
97
+ fail ArgumentError, 'show_exact_location cannot be nil'
98
+ end
99
+
100
+ @show_exact_location = show_exact_location
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ show_exact_location == o.show_exact_location
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [show_exact_location].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ transformed_hash = {}
130
+ openapi_types.each_pair do |key, type|
131
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = nil
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[attribute_map[key]].is_a?(Array)
137
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
+ end
139
+ elsif !attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
+ end
142
+ end
143
+ new(transformed_hash)
144
+ end
145
+
146
+ # Returns the object in the form of hash
147
+ # @return [Hash] Returns the object in the form of hash
148
+ def to_hash
149
+ hash = {}
150
+ self.class.attribute_map.each_pair do |attr, param|
151
+ value = self.send(attr)
152
+ if value.nil?
153
+ is_nullable = self.class.openapi_nullable.include?(attr)
154
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
+ end
156
+
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ hash
160
+ end
161
+
162
+ end
163
+
164
+ end
@@ -0,0 +1,245 @@
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 UpdateVrboListingPaymentTerms200Response < ApiModelBase
18
+ attr_accessor :data
19
+
20
+ # The fields this request sent.
21
+ attr_accessor :written
22
+
23
+ attr_accessor :data_freshness
24
+
25
+ attr_accessor :vrbo_listing_number
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'data' => :'data',
31
+ :'written' => :'written',
32
+ :'data_freshness' => :'dataFreshness',
33
+ :'vrbo_listing_number' => :'vrboListingNumber'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'data' => :'UpdateVrboListingPaymentTerms200ResponseData',
51
+ :'written' => :'Array<String>',
52
+ :'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
53
+ :'vrbo_listing_number' => :'String'
54
+ }
55
+ end
56
+
57
+ # List of attributes with nullable: true
58
+ def self.openapi_nullable
59
+ Set.new([
60
+ ])
61
+ end
62
+
63
+ # Initializes the object
64
+ # @param [Hash] attributes Model attributes in the form of hash
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingPaymentTerms200Response` initialize method"
68
+ end
69
+
70
+ # check to see if the attribute exists and convert string to symbol for hash key
71
+ acceptable_attribute_map = self.class.acceptable_attribute_map
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!acceptable_attribute_map.key?(k.to_sym))
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingPaymentTerms200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
+ end
76
+ h[k.to_sym] = v
77
+ }
78
+
79
+ if attributes.key?(:'data')
80
+ self.data = attributes[:'data']
81
+ else
82
+ self.data = nil
83
+ end
84
+
85
+ if attributes.key?(:'written')
86
+ if (value = attributes[:'written']).is_a?(Array)
87
+ self.written = value
88
+ end
89
+ else
90
+ self.written = nil
91
+ end
92
+
93
+ if attributes.key?(:'data_freshness')
94
+ self.data_freshness = attributes[:'data_freshness']
95
+ else
96
+ self.data_freshness = nil
97
+ end
98
+
99
+ if attributes.key?(:'vrbo_listing_number')
100
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
101
+ else
102
+ self.vrbo_listing_number = nil
103
+ end
104
+ end
105
+
106
+ # Show invalid properties with the reasons. Usually used together with valid?
107
+ # @return Array for valid properties with the reasons
108
+ def list_invalid_properties
109
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
110
+ invalid_properties = Array.new
111
+ if @data.nil?
112
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
113
+ end
114
+
115
+ if @written.nil?
116
+ invalid_properties.push('invalid value for "written", written cannot be nil.')
117
+ end
118
+
119
+ if @data_freshness.nil?
120
+ invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
121
+ end
122
+
123
+ if @vrbo_listing_number.nil?
124
+ invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ warn '[DEPRECATED] the `valid?` method is obsolete'
134
+ return false if @data.nil?
135
+ return false if @written.nil?
136
+ return false if @data_freshness.nil?
137
+ return false if @vrbo_listing_number.nil?
138
+ true
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] data Value to be assigned
143
+ def data=(data)
144
+ if data.nil?
145
+ fail ArgumentError, 'data cannot be nil'
146
+ end
147
+
148
+ @data = data
149
+ end
150
+
151
+ # Custom attribute writer method with validation
152
+ # @param [Object] written Value to be assigned
153
+ def written=(written)
154
+ if written.nil?
155
+ fail ArgumentError, 'written cannot be nil'
156
+ end
157
+
158
+ @written = written
159
+ end
160
+
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] data_freshness Value to be assigned
163
+ def data_freshness=(data_freshness)
164
+ if data_freshness.nil?
165
+ fail ArgumentError, 'data_freshness cannot be nil'
166
+ end
167
+
168
+ @data_freshness = data_freshness
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] vrbo_listing_number Value to be assigned
173
+ def vrbo_listing_number=(vrbo_listing_number)
174
+ if vrbo_listing_number.nil?
175
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
176
+ end
177
+
178
+ @vrbo_listing_number = vrbo_listing_number
179
+ end
180
+
181
+ # Checks equality by comparing each attribute.
182
+ # @param [Object] Object to be compared
183
+ def ==(o)
184
+ return true if self.equal?(o)
185
+ self.class == o.class &&
186
+ data == o.data &&
187
+ written == o.written &&
188
+ data_freshness == o.data_freshness &&
189
+ vrbo_listing_number == o.vrbo_listing_number
190
+ end
191
+
192
+ # @see the `==` method
193
+ # @param [Object] Object to be compared
194
+ def eql?(o)
195
+ self == o
196
+ end
197
+
198
+ # Calculates hash code according to all attributes.
199
+ # @return [Integer] Hash code
200
+ def hash
201
+ [data, written, data_freshness, vrbo_listing_number].hash
202
+ end
203
+
204
+ # Builds the object from hash
205
+ # @param [Hash] attributes Model attributes in the form of hash
206
+ # @return [Object] Returns the model itself
207
+ def self.build_from_hash(attributes)
208
+ return nil unless attributes.is_a?(Hash)
209
+ attributes = attributes.transform_keys(&:to_sym)
210
+ transformed_hash = {}
211
+ openapi_types.each_pair do |key, type|
212
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
213
+ transformed_hash["#{key}"] = nil
214
+ elsif type =~ /\AArray<(.*)>/i
215
+ # check to ensure the input is an array given that the attribute
216
+ # is documented as an array but the input is not
217
+ if attributes[attribute_map[key]].is_a?(Array)
218
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
219
+ end
220
+ elsif !attributes[attribute_map[key]].nil?
221
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
222
+ end
223
+ end
224
+ new(transformed_hash)
225
+ end
226
+
227
+ # Returns the object in the form of hash
228
+ # @return [Hash] Returns the object in the form of hash
229
+ def to_hash
230
+ hash = {}
231
+ self.class.attribute_map.each_pair do |attr, param|
232
+ value = self.send(attr)
233
+ if value.nil?
234
+ is_nullable = self.class.openapi_nullable.include?(attr)
235
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
236
+ end
237
+
238
+ hash[param] = _to_hash(value)
239
+ end
240
+ hash
241
+ end
242
+
243
+ end
244
+
245
+ end