repull 0.2.54 → 0.2.56

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 (192) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/listings_api.rb +4 -4
  3. data/lib/repull/api/reservations_api.rb +4 -4
  4. data/lib/repull/api/reviews_api.rb +6 -6
  5. data/lib/repull/api/vrbo_api.rb +2231 -682
  6. data/lib/repull/models/{update_vrbo_listing_rooms200_response.rb → add_vrbo_listing_photos200_response.rb} +60 -113
  7. data/lib/repull/models/{update_vrbo_listing_photos200_response_data.rb → add_vrbo_listing_photos200_response_data.rb} +4 -4
  8. data/lib/repull/models/add_vrbo_listing_photos_request.rb +184 -0
  9. data/lib/repull/models/{update_vrbo_listing_photos_request_add_inner.rb → add_vrbo_listing_photos_request_photos_inner.rb} +36 -13
  10. data/lib/repull/models/add_vrbo_listing_room_request.rb +309 -0
  11. data/lib/repull/models/add_vrbo_listing_video200_response.rb +57 -110
  12. data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +1 -1
  13. data/lib/repull/models/{update_vrbo_listing_translations_request.rb → create_vrbo_alteration200_response.rb} +17 -20
  14. data/lib/repull/models/create_vrbo_alteration200_response_data.rb +202 -0
  15. data/lib/repull/models/create_vrbo_alteration200_response_data_before.rb +201 -0
  16. data/lib/repull/models/create_vrbo_alteration200_response_data_due_date.rb +168 -0
  17. data/lib/repull/models/create_vrbo_alteration200_response_data_payment.rb +168 -0
  18. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_translations.rb → create_vrbo_alteration200_response_data_payment_lines_inner.rb} +17 -20
  19. data/lib/repull/models/create_vrbo_alteration200_response_data_payment_total.rb +159 -0
  20. data/lib/repull/models/create_vrbo_alteration201_response.rb +157 -0
  21. data/lib/repull/models/create_vrbo_alteration201_response_data.rb +193 -0
  22. data/lib/repull/models/{update_vrbo_listing_registration200_response.rb → create_vrbo_alteration_request.rb} +127 -120
  23. data/lib/repull/models/get_vrbo_connection200_response.rb +147 -0
  24. data/lib/repull/models/get_vrbo_connection200_response_data.rb +210 -0
  25. data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner.rb +292 -0
  26. data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner_sync.rb +156 -0
  27. data/lib/repull/models/get_vrbo_listing200_response.rb +175 -0
  28. data/lib/repull/models/get_vrbo_listing200_response_data_freshness.rb +187 -0
  29. data/lib/repull/models/get_vrbo_listing200_response_data_freshness_accounts_inner.rb +194 -0
  30. data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +548 -0
  31. data/lib/repull/models/get_vrbo_listing200_response_data_inner_address.rb +208 -0
  32. data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity.rb +177 -0
  33. data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity_pets.rb +158 -0
  34. data/lib/repull/models/get_vrbo_listing200_response_data_inner_content.rb +162 -0
  35. data/lib/repull/models/get_vrbo_listing200_response_data_inner_rating.rb +158 -0
  36. data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +46 -98
  37. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +1 -1
  38. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness.rb +308 -0
  39. data/lib/repull/models/{get_vrbo_listing_content200_response_listing.rb → get_vrbo_listing_additional_info200_response_data_freshness_accounts_inner.rb} +42 -46
  40. data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +46 -98
  41. data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +1 -1
  42. data/lib/repull/models/get_vrbo_listing_availability200_response.rb +186 -0
  43. data/lib/repull/models/get_vrbo_listing_availability200_response_data.rb +104 -0
  44. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of.rb +208 -0
  45. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of_inner.rb +260 -0
  46. data/lib/repull/models/get_vrbo_listing_availability200_response_range.rb +156 -0
  47. data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +46 -98
  48. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +1 -1
  49. data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +46 -98
  50. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +1 -1
  51. data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response.rb → get_vrbo_listing_checkin_guide200_response.rb} +49 -101
  52. data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response_data.rb → get_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
  53. data/lib/repull/models/{update_vrbo_listing_rooms_request_update_inner.rb → get_vrbo_listing_checkout_guide200_response.rb} +52 -61
  54. data/lib/repull/models/get_vrbo_listing_checkout_guide200_response_data.rb +170 -0
  55. data/lib/repull/models/get_vrbo_listing_content200_response.rb +45 -81
  56. data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +28 -44
  57. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide.rb → get_vrbo_listing_content200_response_sections_checkin_guide.rb} +11 -11
  58. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide_access.rb → get_vrbo_listing_content200_response_sections_checkin_guide_access.rb} +3 -3
  59. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide_check_in.rb → get_vrbo_listing_content200_response_sections_checkin_guide_check_in.rb} +3 -3
  60. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide_contacts_inner.rb → get_vrbo_listing_content200_response_sections_checkin_guide_contacts_inner.rb} +3 -3
  61. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide_wifi.rb → get_vrbo_listing_content200_response_sections_checkin_guide_wifi.rb} +3 -3
  62. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_description.rb → get_vrbo_listing_content200_response_sections_descriptions_inner.rb} +26 -5
  63. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_description_limits.rb → get_vrbo_listing_content200_response_sections_descriptions_inner_limits.rb} +6 -5
  64. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_description_limits_headline.rb → get_vrbo_listing_content200_response_sections_descriptions_inner_limits_headline.rb} +3 -3
  65. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_property.rb → get_vrbo_listing_content200_response_sections_details.rb} +4 -4
  66. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_property_interior_size.rb → get_vrbo_listing_content200_response_sections_details_interior_size.rb} +3 -3
  67. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_registration.rb → get_vrbo_listing_content200_response_sections_permits.rb} +4 -4
  68. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_registration_fields_inner.rb → get_vrbo_listing_content200_response_sections_permits_fields_inner.rb} +3 -3
  69. data/lib/repull/models/{get_vrbo_listing_translations200_response.rb → get_vrbo_listing_descriptions200_response.rb} +61 -98
  70. data/lib/repull/models/{get_vrbo_listing_property200_response.rb → get_vrbo_listing_details200_response.rb} +49 -101
  71. data/lib/repull/models/{get_vrbo_listing_property200_response_data.rb → get_vrbo_listing_details200_response_data.rb} +5 -5
  72. data/lib/repull/models/get_vrbo_listing_fees200_response.rb +46 -98
  73. data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +1 -1
  74. data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +46 -98
  75. data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +1 -1
  76. data/lib/repull/models/get_vrbo_listing_location200_response.rb +46 -98
  77. data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +1 -1
  78. data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +46 -98
  79. data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +1 -1
  80. data/lib/repull/models/{get_vrbo_listing_description200_response.rb → get_vrbo_listing_permits200_response.rb} +49 -101
  81. data/lib/repull/models/{get_vrbo_listing_registration200_response_data.rb → get_vrbo_listing_permits200_response_data.rb} +5 -5
  82. data/lib/repull/models/get_vrbo_listing_photos200_response.rb +46 -98
  83. data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +1 -1
  84. data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +46 -98
  85. data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +1 -1
  86. data/lib/repull/models/get_vrbo_listing_protection200_response.rb +46 -98
  87. data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +1 -1
  88. data/lib/repull/models/get_vrbo_listing_rates200_response.rb +46 -98
  89. data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +2 -2
  90. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_rates_days_inner.rb → get_vrbo_listing_rates200_response_data_days_inner.rb} +3 -3
  91. data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +46 -98
  92. data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +1 -1
  93. data/lib/repull/models/{get_vrbo_listing_registration200_response.rb → get_vrbo_listing_safety_disclosures200_response.rb} +49 -101
  94. data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  95. data/lib/repull/models/get_vrbo_listing_story200_response.rb +46 -98
  96. data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +1 -1
  97. data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +46 -98
  98. data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +1 -1
  99. data/lib/repull/models/get_vrbo_listing_videos200_response.rb +46 -98
  100. data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +1 -1
  101. data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +1 -1
  102. data/lib/repull/models/get_vrbo_reservation200_response.rb +175 -0
  103. data/lib/repull/models/get_vrbo_reservation200_response_data.rb +310 -0
  104. data/lib/repull/models/get_vrbo_reservation200_response_data_available_actions_inner.rb +156 -0
  105. data/lib/repull/models/get_vrbo_reservation200_response_data_freshness.rb +219 -0
  106. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_translations_items_inner.rb → get_vrbo_reservation200_response_data_freshness_accounts_inner.rb} +31 -24
  107. data/lib/repull/models/{update_vrbo_listing_rooms_request.rb → list_vrbo_transactions200_response.rb} +23 -27
  108. data/lib/repull/models/list_vrbo_transactions200_response_data_freshness.rb +220 -0
  109. data/lib/repull/models/list_vrbo_transactions200_response_data_inner.rb +362 -0
  110. data/lib/repull/models/list_vrbo_transactions200_response_data_inner_payout.rb +189 -0
  111. data/lib/repull/models/map_vrbo_listing200_response.rb +183 -0
  112. data/lib/repull/models/map_vrbo_listing_request.rb +205 -0
  113. data/lib/repull/models/reorder_vrbo_listing_photos_request.rb +184 -0
  114. data/lib/repull/models/set_vrbo_listing_cover_photo_request.rb +164 -0
  115. data/lib/repull/models/submit_guest_review200_response.rb +26 -4
  116. data/lib/repull/models/sync_vrbo_transactions200_response.rb +167 -0
  117. data/lib/repull/models/{update_vrbo_listing_translations_request_set_inner.rb → sync_vrbo_transactions200_response_accounts_inner.rb} +40 -41
  118. data/lib/repull/models/sync_vrbo_transactions200_response_accounts_inner_error.rb +156 -0
  119. data/lib/repull/models/sync_vrbo_transactions_request.rb +156 -0
  120. data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +57 -110
  121. data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +1 -1
  122. data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +57 -110
  123. data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +1 -1
  124. data/lib/repull/models/update_vrbo_listing_availability202_response.rb +156 -0
  125. data/lib/repull/models/{update_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_availability202_response_data.rb} +25 -21
  126. data/lib/repull/models/update_vrbo_listing_availability_request.rb +220 -0
  127. data/lib/repull/models/update_vrbo_listing_availability_request_operations_inner.rb +299 -0
  128. data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +57 -110
  129. data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +1 -1
  130. data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +57 -110
  131. data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +1 -1
  132. data/lib/repull/models/{update_vrbo_listing_translations200_response.rb → update_vrbo_listing_checkin_guide200_response.rb} +60 -113
  133. data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response_data.rb → update_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
  134. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request.rb → update_vrbo_listing_checkin_guide_request.rb} +10 -10
  135. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_access.rb → update_vrbo_listing_checkin_guide_request_access.rb} +3 -3
  136. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_check_in.rb → update_vrbo_listing_checkin_guide_request_check_in.rb} +3 -3
  137. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_wifi.rb → update_vrbo_listing_checkin_guide_request_wifi.rb} +3 -3
  138. data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response.rb → update_vrbo_listing_descriptions200_response.rb} +63 -113
  139. data/lib/repull/models/{update_vrbo_listing_description_request.rb → update_vrbo_listing_descriptions_request.rb} +14 -4
  140. data/lib/repull/models/{update_vrbo_listing_photos200_response.rb → update_vrbo_listing_details200_response.rb} +60 -113
  141. data/lib/repull/models/{update_vrbo_listing_property200_response_data.rb → update_vrbo_listing_details200_response_data.rb} +5 -5
  142. data/lib/repull/models/{update_vrbo_listing_property_request.rb → update_vrbo_listing_details_request.rb} +4 -4
  143. data/lib/repull/models/{update_vrbo_listing_property_request_interior_size.rb → update_vrbo_listing_details_request_interior_size.rb} +3 -3
  144. data/lib/repull/models/update_vrbo_listing_fees200_response.rb +57 -110
  145. data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +1 -1
  146. data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +57 -110
  147. data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +1 -1
  148. data/lib/repull/models/update_vrbo_listing_location200_response.rb +57 -110
  149. data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +1 -1
  150. data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +57 -110
  151. data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +1 -1
  152. data/lib/repull/models/{update_vrbo_listing_property200_response.rb → update_vrbo_listing_permits200_response.rb} +60 -113
  153. data/lib/repull/models/{update_vrbo_listing_registration200_response_data.rb → update_vrbo_listing_permits200_response_data.rb} +5 -5
  154. data/lib/repull/models/{update_vrbo_listing_registration_request.rb → update_vrbo_listing_permits_request.rb} +4 -4
  155. data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner.rb → update_vrbo_listing_permits_request_settings_inner.rb} +4 -4
  156. data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner_value.rb → update_vrbo_listing_permits_request_settings_inner_value.rb} +1 -1
  157. data/lib/repull/models/update_vrbo_listing_photo_request.rb +229 -0
  158. data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +57 -110
  159. data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +1 -1
  160. data/lib/repull/models/update_vrbo_listing_protection200_response.rb +57 -110
  161. data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +1 -1
  162. data/lib/repull/models/update_vrbo_listing_rates200_response.rb +57 -110
  163. data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +2 -2
  164. data/lib/repull/models/{update_vrbo_listing_description200_response.rb → update_vrbo_listing_room200_response.rb} +60 -113
  165. data/lib/repull/models/{update_vrbo_listing_rooms200_response_data.rb → update_vrbo_listing_room200_response_data.rb} +4 -4
  166. data/lib/repull/models/update_vrbo_listing_room_request.rb +254 -0
  167. data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner_amenities.rb → update_vrbo_listing_room_request_amenities.rb} +3 -3
  168. data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner_amenities_one_of_inner.rb → update_vrbo_listing_room_request_amenities_one_of_inner.rb} +3 -3
  169. data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner.rb → update_vrbo_listing_room_request_beds_inner.rb} +53 -47
  170. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response.rb +245 -0
  171. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  172. data/lib/repull/models/{get_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_safety_disclosures_request.rb} +27 -24
  173. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups.rb +156 -0
  174. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups_home_safety.rb +166 -0
  175. data/lib/repull/models/update_vrbo_listing_story200_response.rb +57 -110
  176. data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +1 -1
  177. data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +57 -110
  178. data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +1 -1
  179. data/lib/repull/models/{update_vrbo_listing_photos_request.rb → vrbo_listing_action200_response.rb} +47 -43
  180. data/lib/repull/models/vrbo_listing_action200_response_units_inner.rb +192 -0
  181. data/lib/repull/models/vrbo_listing_action_request.rb +210 -0
  182. data/lib/repull/models/vrbo_reservation_action200_response.rb +166 -0
  183. data/lib/repull/models/vrbo_reservation_action200_response_data.rb +215 -0
  184. data/lib/repull/models/{update_vrbo_listing_description200_response_data.rb → vrbo_reservation_action200_response_data_payment.rb} +26 -25
  185. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_rates.rb → vrbo_reservation_action200_response_data_penalties.rb} +25 -34
  186. data/lib/repull/models/vrbo_reservation_action200_response_data_terms_inner.rb +158 -0
  187. data/lib/repull/models/vrbo_reservation_action_request.rb +268 -0
  188. data/lib/repull/version.rb +1 -1
  189. data/lib/repull.rb +118 -60
  190. data/openapi/v1.json +11811 -2951
  191. metadata +119 -61
  192. data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +0 -168
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5681eeff9d13a413a33a2e6677bfd84b3ae0706483e511cc87ed6e9c3dda38af
4
- data.tar.gz: 68c4622b06cbc18ecc1ad9acccceb3de21f106b5c426ff1c96313e13c86b958b
3
+ metadata.gz: cf03ecc7cb195158373bf4de2cd41f9dc84180561164418ade71aa76abfc926d
4
+ data.tar.gz: c41eef0abb2a251a6a8e0fd3e2c05b6f5604bd08ca5496869142056956213214
5
5
  SHA512:
6
- metadata.gz: a8fabdc3daba3dd413314c80a589b2829d3c66b2b3c142d69fe901f36291b421d989140a80478328e7a2454d31405811b55394fa87d8b158a926c4c398ff9403
7
- data.tar.gz: 1a66fb02bce1e2a110a64b6120148fb23a0c409f99a90ffdceb21a3a73b19b95e9c54cb5df978280487ed9a5a714d1cc46e8625e0d9232c73f292b3005d679dc
6
+ metadata.gz: 8b721a00c0c3a86990a9ad23674587e87707be21393a45aaf9bfeea467fc484639570bc7481cd6db65f72ed50120aeef7a082ba78d9d500368a75d84917c3804
7
+ data.tar.gz: 98c39c4dbfb1fe89e4a55addc3c7febbbf99f63790702f1d3053d9185a06a10b1a9ae4cabb52a9946608bb2aba333c85c3db6445dfcef0b088b929dd1513503a
@@ -1137,7 +1137,7 @@ module Repull
1137
1137
  end
1138
1138
 
1139
1139
  # Create or update a listing on Vrbo
1140
- # **A listing not yet on Vrbo** is created there; **a listing already linked to a Vrbo listing** gets its content pushed onto that listing (`mode: update`, below). Creates the listing on Vrbo in the host's connected Vrbo account, from the listing's content: title and description, property type, rooms and beds, amenities, photos, house rules (guests, minimum age, children, pets, smoking, events), check-in and check-out times, minimum stay, advance notice and booking window, the nightly price, cleaning, pet and extra-guest fees, the cancellation policy and the licence number. Vrbo's automatic new-listing discount is turned off so the listing sells at your prices. **It is a job.** Vrbo's onboarding takes 5–15 minutes (photos go up one at a time), so this answers `202` with `job.jobId`. Poll `GET /v1/listings/{id}/publish/vrbo?jobId=` for each finished step. When Vrbo has published the listing, that read links the new Vrbo unit to the listing with calendar sync on and queues the whole calendar (prices, availability, minimum stay) to Vrbo: **keep polling until `linked` is true.** **Which account.** A workspace with one Vrbo account needs nothing. With several, name it with `accountId` (`\"vrbo:13\"`, as the connection id). An account connected with messaging access is refused with `403 vrbo_messaging_access`. **Missing content** (street address, city, photos, nightly price, description) is refused with `422 listing_incomplete` naming what is missing. A run that failed part-way leaves an unpublished Vrbo property: publishing again completes it instead of creating a second one. **Update (listing already on Vrbo).** Write the content with `PUT /v1/listings/{id}/content`, then publish: the listing's content is pushed onto its existing Vrbo listing, section by section — headline and description, property type, amenities, house rules (check-in/out, guests, children, pets, smoking, events), booking settings (instant book, minimum stay, notice, booking window), cancellation policy, cleaning/pet/extra-guest fees, the base rate (with the unit's markup) and the weekly and monthly stay discounts over the booking window (`rates`; the nights keep the prices Vrbo has). Rates and the base rate share Vrbo's calendar quota with the listing's calendar push: when it is writing, those steps wait for it (up to 3 minutes) and try once more, else they end `failed` with `vrbo_calendar_busy` — publish again later. Each write is partial (a field the content has no value for is left alone) and is read back from Vrbo. Rooms, photos and registration are not replaced on an existing listing (`skipped` says so): edit them with `PUT /v1/channels/vrbo/listings/{id}/{section}`. It is a job too (a few minutes: Vrbo calls are spaced ~3 s apart per account): poll `GET ?jobId=` — each entry of `job.sections` has its `status`, Vrbo's refusals and what Vrbo stored. Limit it with `sections` (e.g. `[\"description\", \"fees\"]`); name the Vrbo listing with `vrboListingNumber` when the listing is linked to several. One push per listing at a time (`409 vrbo_push_running`). Needs full access (`403 vrbo_messaging_access` otherwise). Prices, availability and minimum stay per night always go through the calendar: `PUT /v1/availability/{propertyId}`.
1140
+ # **A listing not yet on Vrbo** is created there; **a listing already linked to a Vrbo listing** gets its content pushed onto that listing (`mode: update`, below). Creates the listing on Vrbo in the host's connected Vrbo account, from the listing's content: title and description, property type, rooms and beds, amenities, photos, house rules (guests, minimum age, children, pets, smoking, events), check-in and check-out times, minimum stay, advance notice and booking window, the nightly price, cleaning, pet and extra-guest fees, the cancellation policy and the licence number. Vrbo's automatic new-listing discount is turned off so the listing sells at your prices. **It is a job.** Vrbo's onboarding takes 5–15 minutes (photos go up one at a time), so this answers `202` with `job.jobId`. Poll `GET /v1/listings/{id}/publish/vrbo?jobId=` for each finished step. When Vrbo has published the listing, that read links the new Vrbo unit to the listing with calendar sync on and queues the whole calendar (prices, availability, minimum stay) to Vrbo: **keep polling until `linked` is true.** **Which account.** A workspace with one Vrbo account needs nothing. With several, name it with `accountId` (`\"vrbo:13\"`, as the connection id). An account connected with messaging access is refused with `403 vrbo_messaging_access`. **Missing content** (street address, city, photos, nightly price, description) is refused with `422 listing_incomplete` naming what is missing. A run that failed part-way leaves an unpublished Vrbo property: publishing again completes it instead of creating a second one. **Update (listing already on Vrbo).** Write the content with `PUT /v1/listings/{id}/content`, then publish: the listing's content is pushed onto its existing Vrbo listing, section by section — headline and description, property type, amenities, house rules (check-in/out, guests, children, pets, smoking, events), booking settings (instant book, minimum stay, notice, booking window), cancellation policy, cleaning/pet/extra-guest fees, the base rate (with the unit's markup) and the weekly and monthly stay discounts over the booking window (`rates`; the nights keep the prices Vrbo has). Rates and the base rate share Vrbo's calendar quota with the listing's calendar push: when it is writing, those steps wait for it (up to 3 minutes) and try once more, else they end `failed` with `vrbo_calendar_busy` — publish again later. Each write is partial (a field the content has no value for is left alone) and is read back from Vrbo. Rooms, photos and permits are not replaced on an existing listing (`skipped` says so): edit them with `/v1/channels/vrbo/listings/{id}/rooms`, `…/photos` and `…/permits`. It is a job too (a few minutes: Vrbo calls are spaced ~3 s apart per account): poll `GET ?jobId=` — each entry of `job.sections` has its `status`, Vrbo's refusals and what Vrbo stored. Limit it with `sections` (e.g. `[\"descriptions\", \"fees\"]`); name the Vrbo listing with `vrboListingNumber` when the listing is linked to several. One push per listing at a time (`409 vrbo_push_running`). Needs full access (`403 vrbo_messaging_access` otherwise). Prices, availability and minimum stay per night always go through the calendar: `PUT /v1/availability/{propertyId}`.
1141
1141
  # @param id [Integer] Repull listing id
1142
1142
  # @param [Hash] opts the optional parameters
1143
1143
  # @option opts [PublishListingToVrboRequest] :publish_listing_to_vrbo_request
@@ -1148,7 +1148,7 @@ module Repull
1148
1148
  end
1149
1149
 
1150
1150
  # Create or update a listing on Vrbo
1151
- # **A listing not yet on Vrbo** is created there; **a listing already linked to a Vrbo listing** gets its content pushed onto that listing (`mode: update`, below). Creates the listing on Vrbo in the host's connected Vrbo account, from the listing's content: title and description, property type, rooms and beds, amenities, photos, house rules (guests, minimum age, children, pets, smoking, events), check-in and check-out times, minimum stay, advance notice and booking window, the nightly price, cleaning, pet and extra-guest fees, the cancellation policy and the licence number. Vrbo's automatic new-listing discount is turned off so the listing sells at your prices. **It is a job.** Vrbo's onboarding takes 5–15 minutes (photos go up one at a time), so this answers `202` with `job.jobId`. Poll `GET /v1/listings/{id}/publish/vrbo?jobId=` for each finished step. When Vrbo has published the listing, that read links the new Vrbo unit to the listing with calendar sync on and queues the whole calendar (prices, availability, minimum stay) to Vrbo: **keep polling until `linked` is true.** **Which account.** A workspace with one Vrbo account needs nothing. With several, name it with `accountId` (`\"vrbo:13\"`, as the connection id). An account connected with messaging access is refused with `403 vrbo_messaging_access`. **Missing content** (street address, city, photos, nightly price, description) is refused with `422 listing_incomplete` naming what is missing. A run that failed part-way leaves an unpublished Vrbo property: publishing again completes it instead of creating a second one. **Update (listing already on Vrbo).** Write the content with `PUT /v1/listings/{id}/content`, then publish: the listing's content is pushed onto its existing Vrbo listing, section by section — headline and description, property type, amenities, house rules (check-in/out, guests, children, pets, smoking, events), booking settings (instant book, minimum stay, notice, booking window), cancellation policy, cleaning/pet/extra-guest fees, the base rate (with the unit's markup) and the weekly and monthly stay discounts over the booking window (`rates`; the nights keep the prices Vrbo has). Rates and the base rate share Vrbo's calendar quota with the listing's calendar push: when it is writing, those steps wait for it (up to 3 minutes) and try once more, else they end `failed` with `vrbo_calendar_busy` — publish again later. Each write is partial (a field the content has no value for is left alone) and is read back from Vrbo. Rooms, photos and registration are not replaced on an existing listing (`skipped` says so): edit them with `PUT /v1/channels/vrbo/listings/{id}/{section}`. It is a job too (a few minutes: Vrbo calls are spaced ~3 s apart per account): poll `GET ?jobId=` — each entry of `job.sections` has its `status`, Vrbo's refusals and what Vrbo stored. Limit it with `sections` (e.g. `[\"description\", \"fees\"]`); name the Vrbo listing with `vrboListingNumber` when the listing is linked to several. One push per listing at a time (`409 vrbo_push_running`). Needs full access (`403 vrbo_messaging_access` otherwise). Prices, availability and minimum stay per night always go through the calendar: `PUT /v1/availability/{propertyId}`.
1151
+ # **A listing not yet on Vrbo** is created there; **a listing already linked to a Vrbo listing** gets its content pushed onto that listing (`mode: update`, below). Creates the listing on Vrbo in the host's connected Vrbo account, from the listing's content: title and description, property type, rooms and beds, amenities, photos, house rules (guests, minimum age, children, pets, smoking, events), check-in and check-out times, minimum stay, advance notice and booking window, the nightly price, cleaning, pet and extra-guest fees, the cancellation policy and the licence number. Vrbo's automatic new-listing discount is turned off so the listing sells at your prices. **It is a job.** Vrbo's onboarding takes 5–15 minutes (photos go up one at a time), so this answers `202` with `job.jobId`. Poll `GET /v1/listings/{id}/publish/vrbo?jobId=` for each finished step. When Vrbo has published the listing, that read links the new Vrbo unit to the listing with calendar sync on and queues the whole calendar (prices, availability, minimum stay) to Vrbo: **keep polling until `linked` is true.** **Which account.** A workspace with one Vrbo account needs nothing. With several, name it with `accountId` (`\"vrbo:13\"`, as the connection id). An account connected with messaging access is refused with `403 vrbo_messaging_access`. **Missing content** (street address, city, photos, nightly price, description) is refused with `422 listing_incomplete` naming what is missing. A run that failed part-way leaves an unpublished Vrbo property: publishing again completes it instead of creating a second one. **Update (listing already on Vrbo).** Write the content with `PUT /v1/listings/{id}/content`, then publish: the listing's content is pushed onto its existing Vrbo listing, section by section — headline and description, property type, amenities, house rules (check-in/out, guests, children, pets, smoking, events), booking settings (instant book, minimum stay, notice, booking window), cancellation policy, cleaning/pet/extra-guest fees, the base rate (with the unit's markup) and the weekly and monthly stay discounts over the booking window (`rates`; the nights keep the prices Vrbo has). Rates and the base rate share Vrbo's calendar quota with the listing's calendar push: when it is writing, those steps wait for it (up to 3 minutes) and try once more, else they end `failed` with `vrbo_calendar_busy` — publish again later. Each write is partial (a field the content has no value for is left alone) and is read back from Vrbo. Rooms, photos and permits are not replaced on an existing listing (`skipped` says so): edit them with `/v1/channels/vrbo/listings/{id}/rooms`, `…/photos` and `…/permits`. It is a job too (a few minutes: Vrbo calls are spaced ~3 s apart per account): poll `GET ?jobId=` — each entry of `job.sections` has its `status`, Vrbo's refusals and what Vrbo stored. Limit it with `sections` (e.g. `[\"descriptions\", \"fees\"]`); name the Vrbo listing with `vrboListingNumber` when the listing is linked to several. One push per listing at a time (`409 vrbo_push_running`). Needs full access (`403 vrbo_messaging_access` otherwise). Prices, availability and minimum stay per night always go through the calendar: `PUT /v1/availability/{propertyId}`.
1152
1152
  # @param id [Integer] Repull listing id
1153
1153
  # @param [Hash] opts the optional parameters
1154
1154
  # @option opts [PublishListingToVrboRequest] :publish_listing_to_vrbo_request
@@ -1653,7 +1653,7 @@ module Repull
1653
1653
  end
1654
1654
 
1655
1655
  # Update canonical listing content
1656
- # Write your PMS's canonical listing content — title, description, amenities, address, occupancy, and policies — into a Repull listing, making it the source of truth. This is the flagship \"the PMS owns listing content, Repull distributes it\" enabler. **Listings managed in a connected PMS** (Guesty, Hostaway, …): the PMS owns their content, so title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos are written to the PMS first; Repull keeps only what it accepted (refused sections are in `deferred`, its per-section outcome in `pms`). A section that PMS cannot write returns `422 pms_write_unsupported` naming it when nothing was applied (or is listed in `deferred` when other sections were); `GET /v1/listings/{id}` → `capabilities.pms.listings` says which sections it takes. A PMS whose connector writes no listing content at all (Mews, Cloudbeds, Lodgify, …) keeps today's behaviour: the content is written to Repull only. Send photos with `photosMode: \"append\"` — replacing a PMS listing's photo set needs the PMS's own photo ids. A revoked PMS connection is `403 connection_reauth_required`. **Partial update:** every field is optional. Only the fields you send are written; absent fields are left untouched. `amenities` is a FULL replacement of the amenity set (omit to leave untouched, send `[]` to clear). **Multilingual:** send `locale` to say which language this copy is in (`it`, `pt-BR`, …). Canonical content is stored per locale, so each language keeps its own row instead of overwriting the English one. Omit it for English. **Local write only — NOT a channel publish.** This mutates Repull's own copy of the content. It does NOT push to Airbnb / Booking.com; it marks the channels dirty so a later publish knows what changed. Distribution stays a separate explicit step. **Photos:** `photos` is a list of hosted image URLs (or structured refs) saved to the listing in order: a full replacement by default, or added after the existing ones with `photosMode: \"append\"`. A publish sends them to the channels. An array with no valid http(s) URL is reported in `deferred` and the existing photos are left alone. Cross-tenant access (a listing that belongs to a different workspace) returns 404 — never 403. This endpoint is served even when the account is over the plan-listings cap, since editing content on a listing you already own never grows the portfolio. Returns `403 listing_inactive` when the listing is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
1656
+ # Write your PMS's canonical listing content — title, description, amenities, address, occupancy, and policies — into a Repull listing, making it the source of truth. This is the flagship \"the PMS owns listing content, Repull distributes it\" enabler. **Listings managed in a connected PMS** (Guesty, Hostaway, …): the PMS owns their content, so title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos are written to the PMS first; Repull keeps only what it accepted (refused sections are in `deferred`, its per-section outcome in `pms`). A section that PMS cannot write returns `422 pms_write_unsupported` naming it when nothing was applied (or is listed in `deferred` when other sections were); `GET /v1/listings/{id}` → `capabilities.pms.listings` says which sections it takes. A PMS whose connector writes no listing content at all (Mews, Cloudbeds, Lodgify, …) keeps today's behaviour: the content is written to Repull only. Send photos with `photosMode: \"append\"` — replacing a PMS listing's photo set needs the PMS's own photo ids. A revoked PMS connection is `403 connection_reauth_required`. **Partial update:** every field is optional. Only the fields you send are written; absent fields are left untouched. `amenities` is a FULL replacement of the amenity set (omit to leave untouched, send `[]` to clear). **Multilingual:** send `locale` to say which language this copy is in (`it`, `pt-BR`, …). Canonical content is stored per locale, so each language keeps its own row instead of overwriting the English one. Omit it for English. **Local write only — NOT a channel publish.** This mutates Repull's own copy of the content. It does NOT push to Airbnb, Booking.com or Vrbo; it marks the channels dirty so a later publish knows what changed. Distribution stays a separate explicit step: `POST /v1/listings/{id}/publish/airbnb`, `/publish/booking` or `/publish/vrbo` (each creates the listing on the channel, or updates the one already there). To change one channel only, use its own endpoints (`/v1/channels/airbnb/listings/{id}/…`, `/v1/channels/vrbo/listings/{id}/…`). **Photos:** `photos` is a list of hosted image URLs (or structured refs) saved to the listing in order: a full replacement by default, or added after the existing ones with `photosMode: \"append\"`. A publish sends them to the channels. An array with no valid http(s) URL is reported in `deferred` and the existing photos are left alone. Cross-tenant access (a listing that belongs to a different workspace) returns 404 — never 403. This endpoint is served even when the account is over the plan-listings cap, since editing content on a listing you already own never grows the portfolio. Returns `403 listing_inactive` when the listing is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
1657
1657
  # @param id [Integer] Repull listing id
1658
1658
  # @param listing_content_update_request [ListingContentUpdateRequest]
1659
1659
  # @param [Hash] opts the optional parameters
@@ -1665,7 +1665,7 @@ module Repull
1665
1665
  end
1666
1666
 
1667
1667
  # Update canonical listing content
1668
- # Write your PMS's canonical listing content — title, description, amenities, address, occupancy, and policies — into a Repull listing, making it the source of truth. This is the flagship \"the PMS owns listing content, Repull distributes it\" enabler. **Listings managed in a connected PMS** (Guesty, Hostaway, …): the PMS owns their content, so title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos are written to the PMS first; Repull keeps only what it accepted (refused sections are in `deferred`, its per-section outcome in `pms`). A section that PMS cannot write returns `422 pms_write_unsupported` naming it when nothing was applied (or is listed in `deferred` when other sections were); `GET /v1/listings/{id}` → `capabilities.pms.listings` says which sections it takes. A PMS whose connector writes no listing content at all (Mews, Cloudbeds, Lodgify, …) keeps today's behaviour: the content is written to Repull only. Send photos with `photosMode: \"append\"` — replacing a PMS listing's photo set needs the PMS's own photo ids. A revoked PMS connection is `403 connection_reauth_required`. **Partial update:** every field is optional. Only the fields you send are written; absent fields are left untouched. `amenities` is a FULL replacement of the amenity set (omit to leave untouched, send `[]` to clear). **Multilingual:** send `locale` to say which language this copy is in (`it`, `pt-BR`, …). Canonical content is stored per locale, so each language keeps its own row instead of overwriting the English one. Omit it for English. **Local write only — NOT a channel publish.** This mutates Repull's own copy of the content. It does NOT push to Airbnb / Booking.com; it marks the channels dirty so a later publish knows what changed. Distribution stays a separate explicit step. **Photos:** `photos` is a list of hosted image URLs (or structured refs) saved to the listing in order: a full replacement by default, or added after the existing ones with `photosMode: \"append\"`. A publish sends them to the channels. An array with no valid http(s) URL is reported in `deferred` and the existing photos are left alone. Cross-tenant access (a listing that belongs to a different workspace) returns 404 — never 403. This endpoint is served even when the account is over the plan-listings cap, since editing content on a listing you already own never grows the portfolio. Returns `403 listing_inactive` when the listing is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
1668
+ # Write your PMS's canonical listing content — title, description, amenities, address, occupancy, and policies — into a Repull listing, making it the source of truth. This is the flagship \"the PMS owns listing content, Repull distributes it\" enabler. **Listings managed in a connected PMS** (Guesty, Hostaway, …): the PMS owns their content, so title, descriptions, check-in/out times, capacity, amenities, house rules, address and added photos are written to the PMS first; Repull keeps only what it accepted (refused sections are in `deferred`, its per-section outcome in `pms`). A section that PMS cannot write returns `422 pms_write_unsupported` naming it when nothing was applied (or is listed in `deferred` when other sections were); `GET /v1/listings/{id}` → `capabilities.pms.listings` says which sections it takes. A PMS whose connector writes no listing content at all (Mews, Cloudbeds, Lodgify, …) keeps today's behaviour: the content is written to Repull only. Send photos with `photosMode: \"append\"` — replacing a PMS listing's photo set needs the PMS's own photo ids. A revoked PMS connection is `403 connection_reauth_required`. **Partial update:** every field is optional. Only the fields you send are written; absent fields are left untouched. `amenities` is a FULL replacement of the amenity set (omit to leave untouched, send `[]` to clear). **Multilingual:** send `locale` to say which language this copy is in (`it`, `pt-BR`, …). Canonical content is stored per locale, so each language keeps its own row instead of overwriting the English one. Omit it for English. **Local write only — NOT a channel publish.** This mutates Repull's own copy of the content. It does NOT push to Airbnb, Booking.com or Vrbo; it marks the channels dirty so a later publish knows what changed. Distribution stays a separate explicit step: `POST /v1/listings/{id}/publish/airbnb`, `/publish/booking` or `/publish/vrbo` (each creates the listing on the channel, or updates the one already there). To change one channel only, use its own endpoints (`/v1/channels/airbnb/listings/{id}/…`, `/v1/channels/vrbo/listings/{id}/…`). **Photos:** `photos` is a list of hosted image URLs (or structured refs) saved to the listing in order: a full replacement by default, or added after the existing ones with `photosMode: \"append\"`. A publish sends them to the channels. An array with no valid http(s) URL is reported in `deferred` and the existing photos are left alone. Cross-tenant access (a listing that belongs to a different workspace) returns 404 — never 403. This endpoint is served even when the account is over the plan-listings cap, since editing content on a listing you already own never grows the portfolio. Returns `403 listing_inactive` when the listing is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
1669
1669
  # @param id [Integer] Repull listing id
1670
1670
  # @param listing_content_update_request [ListingContentUpdateRequest]
1671
1671
  # @param [Hash] opts the optional parameters
@@ -20,7 +20,7 @@ module Repull
20
20
  @api_client = api_client
21
21
  end
22
22
  # Accept a booking request
23
- # Accept a pending Airbnb booking request — a reservation with status `pending`, made on a listing without Instant Book. Find them with `GET /v1/reservations?status=pending`. Airbnb expires a request the host has not answered within 24 hours. Airbnb confirms asynchronously: the reservation’s status moves to confirmed, and a `reservation.updated` webhook fires, when Airbnb’s notification lands (usually within seconds). The response reports what Airbnb was asked to do. **Airbnb**, for listings connected to Airbnb directly; other channels have no request step (`422 channel_not_supported`). **A request relayed by a PMS** (Guesty, Hostaway, …) is answered in that PMS, whatever channel it came from; a PMS whose API cannot answer requests returns `422 pms_write_unsupported` naming it (Hostaway today), and `GET /v1/connect/{provider}` → `capabilities.pms.reservations.respond` says so beforehand. The response then carries `pms`. A reservation that is not pending is refused before Airbnb is contacted (`409 reservation_not_pending`); one Airbnb says already moved on is `409 request_no_longer_pending`. Neither is worth retrying. Takes no body. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
23
+ # Accept a pending Airbnb or Vrbo booking request — a reservation with status `pending`, made on a listing without Instant Book. Find them with `GET /v1/reservations?status=pending`. Airbnb and Vrbo expire a request the host has not answered within 24 hours. Airbnb confirms asynchronously: the reservation’s status moves to confirmed, and a `reservation.updated` webhook fires, when Airbnb’s notification lands (usually within seconds). The response reports what Airbnb was asked to do. **Airbnb**, for listings connected to Airbnb directly, and **Vrbo**, where the request is answered on Vrbo itself (the same as `POST /v1/channels/vrbo/reservations/{code}`); other channels have no request step (`422 channel_not_supported`). **A request relayed by a PMS** (Guesty, Hostaway, …) is answered in that PMS, whatever channel it came from; a PMS whose API cannot answer requests returns `422 pms_write_unsupported` naming it (Hostaway today), and `GET /v1/connect/{provider}` → `capabilities.pms.reservations.respond` says so beforehand. The response then carries `pms`. A reservation that is not pending is refused before Airbnb is contacted (`409 reservation_not_pending`); one Airbnb says already moved on is `409 request_no_longer_pending`. Neither is worth retrying. Takes no body. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
24
24
  # @param id [Integer] Repull reservation id (from `GET /v1/reservations?status=pending`) — not the Airbnb confirmation code.
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :idempotency_key Makes a retry of this request safe. Send a unique string (a UUID generated at the point you build the request) and the response is stored for 24 hours: a repeat with the SAME key replays that stored response — tagged `Idempotency-Status: cached` — without running the operation again, so no duplicate reservation, guest or guest message is created. - Same key while the first request is still in flight → `409 idempotency_key_in_use`. - Same key with a DIFFERENT payload → `422 idempotency_key_reused`. Generate a new key per distinct request; reuse one only when retrying that exact request. - Retryable outcomes are deliberately not stored, so a retry with the same key runs for real: any status >= 500, `408`, `425` and `429`, and the refusals that happen before anything is done and tell you to fix something outside the request first — `connection_reauth_required`, `listing_inactive`, and the rate/daily limits. Every other answer, including a final refusal such as `422 airbnb_rejected`, is stored and replayed.
@@ -31,7 +31,7 @@ module Repull
31
31
  end
32
32
 
33
33
  # Accept a booking request
34
- # Accept a pending Airbnb booking request — a reservation with status `pending`, made on a listing without Instant Book. Find them with `GET /v1/reservations?status=pending`. Airbnb expires a request the host has not answered within 24 hours. Airbnb confirms asynchronously: the reservation’s status moves to confirmed, and a `reservation.updated` webhook fires, when Airbnb’s notification lands (usually within seconds). The response reports what Airbnb was asked to do. **Airbnb**, for listings connected to Airbnb directly; other channels have no request step (`422 channel_not_supported`). **A request relayed by a PMS** (Guesty, Hostaway, …) is answered in that PMS, whatever channel it came from; a PMS whose API cannot answer requests returns `422 pms_write_unsupported` naming it (Hostaway today), and `GET /v1/connect/{provider}` → `capabilities.pms.reservations.respond` says so beforehand. The response then carries `pms`. A reservation that is not pending is refused before Airbnb is contacted (`409 reservation_not_pending`); one Airbnb says already moved on is `409 request_no_longer_pending`. Neither is worth retrying. Takes no body. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
34
+ # Accept a pending Airbnb or Vrbo booking request — a reservation with status `pending`, made on a listing without Instant Book. Find them with `GET /v1/reservations?status=pending`. Airbnb and Vrbo expire a request the host has not answered within 24 hours. Airbnb confirms asynchronously: the reservation’s status moves to confirmed, and a `reservation.updated` webhook fires, when Airbnb’s notification lands (usually within seconds). The response reports what Airbnb was asked to do. **Airbnb**, for listings connected to Airbnb directly, and **Vrbo**, where the request is answered on Vrbo itself (the same as `POST /v1/channels/vrbo/reservations/{code}`); other channels have no request step (`422 channel_not_supported`). **A request relayed by a PMS** (Guesty, Hostaway, …) is answered in that PMS, whatever channel it came from; a PMS whose API cannot answer requests returns `422 pms_write_unsupported` naming it (Hostaway today), and `GET /v1/connect/{provider}` → `capabilities.pms.reservations.respond` says so beforehand. The response then carries `pms`. A reservation that is not pending is refused before Airbnb is contacted (`409 reservation_not_pending`); one Airbnb says already moved on is `409 request_no_longer_pending`. Neither is worth retrying. Takes no body. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
35
35
  # @param id [Integer] Repull reservation id (from `GET /v1/reservations?status=pending`) — not the Airbnb confirmation code.
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @option opts [String] :idempotency_key Makes a retry of this request safe. Send a unique string (a UUID generated at the point you build the request) and the response is stored for 24 hours: a repeat with the SAME key replays that stored response — tagged `Idempotency-Status: cached` — without running the operation again, so no duplicate reservation, guest or guest message is created. - Same key while the first request is still in flight → `409 idempotency_key_in_use`. - Same key with a DIFFERENT payload → `422 idempotency_key_reused`. Generate a new key per distinct request; reuse one only when retrying that exact request. - Retryable outcomes are deliberately not stored, so a retry with the same key runs for real: any status >= 500, `408`, `425` and `429`, and the refusals that happen before anything is done and tell you to fix something outside the request first — `connection_reauth_required`, `listing_inactive`, and the rate/daily limits. Every other answer, including a final refusal such as `422 airbnb_rejected`, is stored and replayed.
@@ -248,7 +248,7 @@ module Repull
248
248
  end
249
249
 
250
250
  # Decline a booking request
251
- # Decline a pending Airbnb booking request (a reservation with status `pending`; find them with `GET /v1/reservations?status=pending`). `reason` must be one of Airbnb’s own decline reasons. `message` is required: Airbnb sends it to the guest with the decline (at most 500 characters). It is not defaulted — a canned message would put words in your mouth. Airbnb confirms asynchronously; the reservation’s status moves, and `reservation.updated` fires, when its notification lands. Same channel and status rules as `POST /v1/reservations/{id}/accept`. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
251
+ # Decline a pending Airbnb or Vrbo booking request (a reservation with status `pending`; find them with `GET /v1/reservations?status=pending`). `reason` must be one of Airbnb’s own decline reasons. `message` is required: the channel sends it to the guest with the decline (Airbnb: at most 500 characters; Vrbo: 250). It is not defaulted — a canned message would put words in your mouth. **Vrbo** has its own decline reasons: `dates_not_available` is sent as Vrbo’s “dates unavailable” (and blocks the dates, as Vrbo does); any other reason is refused with `422 invalid_params` pointing at `POST /v1/channels/vrbo/reservations/{code}`, which takes Vrbo’s reasons directly. Airbnb confirms asynchronously; the reservation’s status moves, and `reservation.updated` fires, when its notification lands. Same channel and status rules as `POST /v1/reservations/{id}/accept`. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
252
252
  # @param id [Integer] Repull reservation id (from `GET /v1/reservations?status=pending`) — not the Airbnb confirmation code.
253
253
  # @param decline_reservation_request_request [DeclineReservationRequestRequest]
254
254
  # @param [Hash] opts the optional parameters
@@ -260,7 +260,7 @@ module Repull
260
260
  end
261
261
 
262
262
  # Decline a booking request
263
- # Decline a pending Airbnb booking request (a reservation with status `pending`; find them with `GET /v1/reservations?status=pending`). `reason` must be one of Airbnb’s own decline reasons. `message` is required: Airbnb sends it to the guest with the decline (at most 500 characters). It is not defaulted — a canned message would put words in your mouth. Airbnb confirms asynchronously; the reservation’s status moves, and `reservation.updated` fires, when its notification lands. Same channel and status rules as `POST /v1/reservations/{id}/accept`. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
263
+ # Decline a pending Airbnb or Vrbo booking request (a reservation with status `pending`; find them with `GET /v1/reservations?status=pending`). `reason` must be one of Airbnb’s own decline reasons. `message` is required: the channel sends it to the guest with the decline (Airbnb: at most 500 characters; Vrbo: 250). It is not defaulted — a canned message would put words in your mouth. **Vrbo** has its own decline reasons: `dates_not_available` is sent as Vrbo’s “dates unavailable” (and blocks the dates, as Vrbo does); any other reason is refused with `422 invalid_params` pointing at `POST /v1/channels/vrbo/reservations/{code}`, which takes Vrbo’s reasons directly. Airbnb confirms asynchronously; the reservation’s status moves, and `reservation.updated` fires, when its notification lands. Same channel and status rules as `POST /v1/reservations/{id}/accept`. Send `Idempotency-Key`: a repeat with the same key replays the first response instead of acting twice (a `409 idempotency_key_in_use` while the first is still running). A 5xx, a `429 airbnb_rate_limited` or a `403 connection_reauth_required` is not stored — nothing was done — so retrying with the same key reaches Airbnb again.
264
264
  # @param id [Integer] Repull reservation id (from `GET /v1/reservations?status=pending`) — not the Airbnb confirmation code.
265
265
  # @param decline_reservation_request_request [DeclineReservationRequestRequest]
266
266
  # @param [Hash] opts the optional parameters
@@ -220,7 +220,7 @@ module Repull
220
220
  end
221
221
 
222
222
  # Reply to a review on any channel
223
- # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb only), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
223
+ # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
224
224
  # @param id [Integer] Internal Repull review id.
225
225
  # @param reply_to_review_request [ReplyToReviewRequest]
226
226
  # @param [Hash] opts the optional parameters
@@ -231,7 +231,7 @@ module Repull
231
231
  end
232
232
 
233
233
  # Reply to a review on any channel
234
- # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb only), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
234
+ # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
235
235
  # @param id [Integer] Internal Repull review id.
236
236
  # @param reply_to_review_request [ReplyToReviewRequest]
237
237
  # @param [Hash] opts the optional parameters
@@ -293,8 +293,8 @@ module Repull
293
293
  return data, status_code, headers
294
294
  end
295
295
 
296
- # Review a guest (publishes, final)
297
- # Submit your review of a guest — a review with `reviewerRole: \"host\"` from `GET /v1/reviews?reviewerRole=host`. Only Airbnb lets hosts review guests; a review from another channel returns `422 unsupported_channel`. **Submitting publishes it and is final:** Airbnb has no draft and does not allow edits; a second submission is `409 review_already_submitted`. Airbnb accepts it up to 14 days after checkout (`expiresAt`); after that, `409 review_window_closed`. Required: `publicReview`, `isRevieweeRecommended` (whether you would host the guest again), and a 1–5 rating for **each** of `cleanliness`, `communication` and `respect_house_rules` — send `rating` to use one score for all three, `categoryRatings` to score them individually, or both (`rating` fills any category you did not rate). Optional: `privateFeedback`, a note to the guest that is not published. A request missing a required piece is refused with `422 invalid_params` naming it, before anything is sent to Airbnb. ```json { \"publicReview\": \"Joanne was a great guest.\", \"rating\": 5, \"privateFeedback\": \"Thanks for leaving the place so tidy!\", \"isRevieweeRecommended\": true } ``` A guest's review of you (`reviewerRole: \"guest\"`) cannot be written here — `409 not_host_review`; answer it with `POST /v1/reviews/{id}/reply`. Same behaviour as `PUT /v1/channels/airbnb/reviews/{id}`. Guide: https://repull.dev/docs/reviews#review-a-guest
296
+ # Review a guest
297
+ # Submit your review of a guest — a review with `reviewerRole: \"host\"` from `GET /v1/reviews?reviewerRole=host`. Airbnb and Vrbo let hosts review guests; a review from another channel returns `422 unsupported_channel`. **Airbnb — publishes it, final:** Airbnb has no draft and does not allow edits; a second submission is `409 review_already_submitted`. Airbnb accepts it up to 14 days after checkout (`expiresAt`); after that, `409 review_window_closed`. Required: `publicReview`, `isRevieweeRecommended` (whether you would host the guest again), and a 1–5 rating for **each** of `cleanliness`, `communication` and `respect_house_rules` — send `rating` to use one score for all three, `categoryRatings` to score them individually, or both (`rating` fills any category you did not rate). Optional: `privateFeedback`, a note to the guest that is not published. ```json { \"publicReview\": \"Joanne was a great guest.\", \"rating\": 5, \"privateFeedback\": \"Thanks for leaving the place so tidy!\", \"isRevieweeRecommended\": true } ``` **Vrbo — Vrbo's \"Rate guest\":** stars and \"would you rent to this guest again\", with no text, and never shown to the guest. `rating` (the overall experience, 1–5) is required; `categoryRatings` (cleanliness, communication, respect_house_rules) and `isRevieweeRecommended` are optional. `publicReview` and `privateFeedback` must be left out or empty (typed SDKs send them empty) — text is refused by name. A stay already rated is `409 review_already_submitted`; one Vrbo no longer takes a rating for, `409 review_window_closed`. ```json { \"rating\": 5, \"categoryRatings\": [{ \"category\": \"cleanliness\", \"rating\": 4 }], \"isRevieweeRecommended\": true } ``` A request missing a required piece is refused with `422 invalid_params` naming it, before anything is sent to the channel. A guest's review of you (`reviewerRole: \"guest\"`) cannot be written here — `409 not_host_review` (Vrbo: `422`); answer it with `POST /v1/reviews/{id}/reply`. Guide: https://repull.dev/docs/reviews#review-a-guest
298
298
  # @param id [Integer] The review `id` from `GET /v1/reviews`.
299
299
  # @param airbnb_host_review_submit [AirbnbHostReviewSubmit]
300
300
  # @param [Hash] opts the optional parameters
@@ -304,8 +304,8 @@ module Repull
304
304
  data
305
305
  end
306
306
 
307
- # Review a guest (publishes, final)
308
- # Submit your review of a guest — a review with `reviewerRole: \"host\"` from `GET /v1/reviews?reviewerRole=host`. Only Airbnb lets hosts review guests; a review from another channel returns `422 unsupported_channel`. **Submitting publishes it and is final:** Airbnb has no draft and does not allow edits; a second submission is `409 review_already_submitted`. Airbnb accepts it up to 14 days after checkout (`expiresAt`); after that, `409 review_window_closed`. Required: `publicReview`, `isRevieweeRecommended` (whether you would host the guest again), and a 1–5 rating for **each** of `cleanliness`, `communication` and `respect_house_rules` — send `rating` to use one score for all three, `categoryRatings` to score them individually, or both (`rating` fills any category you did not rate). Optional: `privateFeedback`, a note to the guest that is not published. A request missing a required piece is refused with `422 invalid_params` naming it, before anything is sent to Airbnb. ```json { \"publicReview\": \"Joanne was a great guest.\", \"rating\": 5, \"privateFeedback\": \"Thanks for leaving the place so tidy!\", \"isRevieweeRecommended\": true } ``` A guest's review of you (`reviewerRole: \"guest\"`) cannot be written here — `409 not_host_review`; answer it with `POST /v1/reviews/{id}/reply`. Same behaviour as `PUT /v1/channels/airbnb/reviews/{id}`. Guide: https://repull.dev/docs/reviews#review-a-guest
307
+ # Review a guest
308
+ # Submit your review of a guest — a review with `reviewerRole: \"host\"` from `GET /v1/reviews?reviewerRole=host`. Airbnb and Vrbo let hosts review guests; a review from another channel returns `422 unsupported_channel`. **Airbnb — publishes it, final:** Airbnb has no draft and does not allow edits; a second submission is `409 review_already_submitted`. Airbnb accepts it up to 14 days after checkout (`expiresAt`); after that, `409 review_window_closed`. Required: `publicReview`, `isRevieweeRecommended` (whether you would host the guest again), and a 1–5 rating for **each** of `cleanliness`, `communication` and `respect_house_rules` — send `rating` to use one score for all three, `categoryRatings` to score them individually, or both (`rating` fills any category you did not rate). Optional: `privateFeedback`, a note to the guest that is not published. ```json { \"publicReview\": \"Joanne was a great guest.\", \"rating\": 5, \"privateFeedback\": \"Thanks for leaving the place so tidy!\", \"isRevieweeRecommended\": true } ``` **Vrbo — Vrbo's \"Rate guest\":** stars and \"would you rent to this guest again\", with no text, and never shown to the guest. `rating` (the overall experience, 1–5) is required; `categoryRatings` (cleanliness, communication, respect_house_rules) and `isRevieweeRecommended` are optional. `publicReview` and `privateFeedback` must be left out or empty (typed SDKs send them empty) — text is refused by name. A stay already rated is `409 review_already_submitted`; one Vrbo no longer takes a rating for, `409 review_window_closed`. ```json { \"rating\": 5, \"categoryRatings\": [{ \"category\": \"cleanliness\", \"rating\": 4 }], \"isRevieweeRecommended\": true } ``` A request missing a required piece is refused with `422 invalid_params` naming it, before anything is sent to the channel. A guest's review of you (`reviewerRole: \"guest\"`) cannot be written here — `409 not_host_review` (Vrbo: `422`); answer it with `POST /v1/reviews/{id}/reply`. Guide: https://repull.dev/docs/reviews#review-a-guest
309
309
  # @param id [Integer] The review `id` from `GET /v1/reviews`.
310
310
  # @param airbnb_host_review_submit [AirbnbHostReviewSubmit]
311
311
  # @param [Hash] opts the optional parameters