repull 0.2.54 → 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 (163) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/listings_api.rb +4 -4
  3. data/lib/repull/api/vrbo_api.rb +1976 -798
  4. data/lib/repull/models/{update_vrbo_listing_rooms200_response.rb → add_vrbo_listing_photos200_response.rb} +60 -113
  5. data/lib/repull/models/{update_vrbo_listing_photos200_response_data.rb → add_vrbo_listing_photos200_response_data.rb} +4 -4
  6. data/lib/repull/models/add_vrbo_listing_photos_request.rb +184 -0
  7. data/lib/repull/models/{update_vrbo_listing_photos_request_add_inner.rb → add_vrbo_listing_photos_request_photos_inner.rb} +36 -13
  8. data/lib/repull/models/add_vrbo_listing_room_request.rb +309 -0
  9. data/lib/repull/models/add_vrbo_listing_video200_response.rb +57 -110
  10. data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +1 -1
  11. data/lib/repull/models/get_vrbo_connection200_response.rb +147 -0
  12. data/lib/repull/models/get_vrbo_connection200_response_data.rb +210 -0
  13. data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner.rb +292 -0
  14. data/lib/repull/models/{update_vrbo_listing_translations_request.rb → get_vrbo_connection200_response_data_accounts_inner_sync.rb} +16 -20
  15. data/lib/repull/models/get_vrbo_listing200_response.rb +175 -0
  16. data/lib/repull/models/get_vrbo_listing200_response_data_freshness.rb +187 -0
  17. data/lib/repull/models/get_vrbo_listing200_response_data_freshness_accounts_inner.rb +194 -0
  18. data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +548 -0
  19. data/lib/repull/models/get_vrbo_listing200_response_data_inner_address.rb +208 -0
  20. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_rates.rb → get_vrbo_listing200_response_data_inner_capacity.rb} +31 -31
  21. data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity_pets.rb +158 -0
  22. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_translations.rb → get_vrbo_listing200_response_data_inner_content.rb} +20 -18
  23. data/lib/repull/models/get_vrbo_listing200_response_data_inner_rating.rb +158 -0
  24. data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +46 -98
  25. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +1 -1
  26. data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness.rb +308 -0
  27. data/lib/repull/models/{get_vrbo_listing_content200_response_listing.rb → get_vrbo_listing_additional_info200_response_data_freshness_accounts_inner.rb} +42 -46
  28. data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +46 -98
  29. data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +1 -1
  30. data/lib/repull/models/get_vrbo_listing_availability200_response.rb +186 -0
  31. data/lib/repull/models/get_vrbo_listing_availability200_response_data.rb +104 -0
  32. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of.rb +208 -0
  33. data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of_inner.rb +260 -0
  34. data/lib/repull/models/get_vrbo_listing_availability200_response_range.rb +156 -0
  35. data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +46 -98
  36. data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +1 -1
  37. data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +46 -98
  38. data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +1 -1
  39. data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response.rb → get_vrbo_listing_checkin_guide200_response.rb} +49 -101
  40. data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response_data.rb → get_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
  41. data/lib/repull/models/{update_vrbo_listing_rooms_request_update_inner.rb → get_vrbo_listing_checkout_guide200_response.rb} +52 -61
  42. data/lib/repull/models/{update_vrbo_listing_rooms_request.rb → get_vrbo_listing_checkout_guide200_response_data.rb} +26 -27
  43. data/lib/repull/models/get_vrbo_listing_content200_response.rb +45 -81
  44. data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +28 -44
  45. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide.rb → get_vrbo_listing_content200_response_sections_checkin_guide.rb} +11 -11
  46. 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
  47. 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
  48. 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
  49. 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
  50. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_description.rb → get_vrbo_listing_content200_response_sections_descriptions_inner.rb} +26 -5
  51. 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
  52. 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
  53. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_property.rb → get_vrbo_listing_content200_response_sections_details.rb} +4 -4
  54. 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
  55. data/lib/repull/models/{get_vrbo_listing_content200_response_sections_registration.rb → get_vrbo_listing_content200_response_sections_permits.rb} +4 -4
  56. 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
  57. data/lib/repull/models/{get_vrbo_listing_translations200_response.rb → get_vrbo_listing_descriptions200_response.rb} +61 -98
  58. data/lib/repull/models/{get_vrbo_listing_property200_response.rb → get_vrbo_listing_details200_response.rb} +49 -101
  59. data/lib/repull/models/{get_vrbo_listing_property200_response_data.rb → get_vrbo_listing_details200_response_data.rb} +5 -5
  60. data/lib/repull/models/get_vrbo_listing_fees200_response.rb +46 -98
  61. data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +1 -1
  62. data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +46 -98
  63. data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +1 -1
  64. data/lib/repull/models/get_vrbo_listing_location200_response.rb +46 -98
  65. data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +1 -1
  66. data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +46 -98
  67. data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +1 -1
  68. data/lib/repull/models/{get_vrbo_listing_description200_response.rb → get_vrbo_listing_permits200_response.rb} +49 -101
  69. data/lib/repull/models/{get_vrbo_listing_registration200_response_data.rb → get_vrbo_listing_permits200_response_data.rb} +5 -5
  70. data/lib/repull/models/get_vrbo_listing_photos200_response.rb +46 -98
  71. data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +1 -1
  72. data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +46 -98
  73. data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +1 -1
  74. data/lib/repull/models/get_vrbo_listing_protection200_response.rb +46 -98
  75. data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +1 -1
  76. data/lib/repull/models/get_vrbo_listing_rates200_response.rb +46 -98
  77. data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +2 -2
  78. 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
  79. data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +46 -98
  80. data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +1 -1
  81. data/lib/repull/models/{get_vrbo_listing_registration200_response.rb → get_vrbo_listing_safety_disclosures200_response.rb} +49 -101
  82. data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  83. data/lib/repull/models/get_vrbo_listing_story200_response.rb +46 -98
  84. data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +1 -1
  85. data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +46 -98
  86. data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +1 -1
  87. data/lib/repull/models/get_vrbo_listing_videos200_response.rb +46 -98
  88. data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +1 -1
  89. data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +1 -1
  90. data/lib/repull/models/{update_vrbo_listing_translations_request_set_inner.rb → map_vrbo_listing200_response.rb} +40 -41
  91. data/lib/repull/models/map_vrbo_listing_request.rb +205 -0
  92. data/lib/repull/models/reorder_vrbo_listing_photos_request.rb +184 -0
  93. data/lib/repull/models/set_vrbo_listing_cover_photo_request.rb +164 -0
  94. data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +57 -110
  95. data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +1 -1
  96. data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +57 -110
  97. data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +1 -1
  98. data/lib/repull/models/update_vrbo_listing_availability202_response.rb +156 -0
  99. data/lib/repull/models/{update_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_availability202_response_data.rb} +25 -21
  100. data/lib/repull/models/update_vrbo_listing_availability_request.rb +220 -0
  101. data/lib/repull/models/update_vrbo_listing_availability_request_operations_inner.rb +299 -0
  102. data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +57 -110
  103. data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +1 -1
  104. data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +57 -110
  105. data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +1 -1
  106. data/lib/repull/models/{update_vrbo_listing_translations200_response.rb → update_vrbo_listing_checkin_guide200_response.rb} +60 -113
  107. data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response_data.rb → update_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
  108. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request.rb → update_vrbo_listing_checkin_guide_request.rb} +10 -10
  109. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_access.rb → update_vrbo_listing_checkin_guide_request_access.rb} +3 -3
  110. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_check_in.rb → update_vrbo_listing_checkin_guide_request_check_in.rb} +3 -3
  111. data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_wifi.rb → update_vrbo_listing_checkin_guide_request_wifi.rb} +3 -3
  112. data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response.rb → update_vrbo_listing_descriptions200_response.rb} +63 -113
  113. data/lib/repull/models/{update_vrbo_listing_description_request.rb → update_vrbo_listing_descriptions_request.rb} +14 -4
  114. data/lib/repull/models/{update_vrbo_listing_photos200_response.rb → update_vrbo_listing_details200_response.rb} +60 -113
  115. data/lib/repull/models/{update_vrbo_listing_property200_response_data.rb → update_vrbo_listing_details200_response_data.rb} +5 -5
  116. data/lib/repull/models/{update_vrbo_listing_property_request.rb → update_vrbo_listing_details_request.rb} +4 -4
  117. data/lib/repull/models/{update_vrbo_listing_property_request_interior_size.rb → update_vrbo_listing_details_request_interior_size.rb} +3 -3
  118. data/lib/repull/models/update_vrbo_listing_fees200_response.rb +57 -110
  119. data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +1 -1
  120. data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +57 -110
  121. data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +1 -1
  122. data/lib/repull/models/update_vrbo_listing_location200_response.rb +57 -110
  123. data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +1 -1
  124. data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +57 -110
  125. data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +1 -1
  126. data/lib/repull/models/{update_vrbo_listing_property200_response.rb → update_vrbo_listing_permits200_response.rb} +60 -113
  127. data/lib/repull/models/{update_vrbo_listing_registration200_response_data.rb → update_vrbo_listing_permits200_response_data.rb} +5 -5
  128. data/lib/repull/models/{update_vrbo_listing_registration_request.rb → update_vrbo_listing_permits_request.rb} +4 -4
  129. data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner.rb → update_vrbo_listing_permits_request_settings_inner.rb} +4 -4
  130. data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner_value.rb → update_vrbo_listing_permits_request_settings_inner_value.rb} +1 -1
  131. data/lib/repull/models/update_vrbo_listing_photo_request.rb +229 -0
  132. data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +57 -110
  133. data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +1 -1
  134. data/lib/repull/models/update_vrbo_listing_protection200_response.rb +57 -110
  135. data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +1 -1
  136. data/lib/repull/models/update_vrbo_listing_rates200_response.rb +57 -110
  137. data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +2 -2
  138. data/lib/repull/models/{update_vrbo_listing_description200_response.rb → update_vrbo_listing_room200_response.rb} +60 -113
  139. data/lib/repull/models/{update_vrbo_listing_rooms200_response_data.rb → update_vrbo_listing_room200_response_data.rb} +4 -4
  140. data/lib/repull/models/update_vrbo_listing_room_request.rb +254 -0
  141. data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner_amenities.rb → update_vrbo_listing_room_request_amenities.rb} +3 -3
  142. 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
  143. data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner.rb → update_vrbo_listing_room_request_beds_inner.rb} +53 -47
  144. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response.rb +245 -0
  145. data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
  146. data/lib/repull/models/{get_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_safety_disclosures_request.rb} +27 -24
  147. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups.rb +156 -0
  148. data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups_home_safety.rb +166 -0
  149. data/lib/repull/models/update_vrbo_listing_story200_response.rb +57 -110
  150. data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +1 -1
  151. data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +57 -110
  152. data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +1 -1
  153. data/lib/repull/models/{update_vrbo_listing_photos_request.rb → vrbo_listing_action200_response.rb} +47 -43
  154. data/lib/repull/models/vrbo_listing_action200_response_units_inner.rb +192 -0
  155. data/lib/repull/models/vrbo_listing_action_request.rb +210 -0
  156. data/lib/repull/version.rb +1 -1
  157. data/lib/repull.rb +89 -60
  158. data/openapi/v1.json +10116 -2944
  159. metadata +90 -61
  160. data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations_items_inner.rb +0 -167
  161. data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +0 -168
  162. data/lib/repull/models/update_vrbo_listing_description200_response_data.rb +0 -168
  163. data/lib/repull/models/update_vrbo_listing_registration200_response.rb +0 -298
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5681eeff9d13a413a33a2e6677bfd84b3ae0706483e511cc87ed6e9c3dda38af
4
- data.tar.gz: 68c4622b06cbc18ecc1ad9acccceb3de21f106b5c426ff1c96313e13c86b958b
3
+ metadata.gz: 9e66d0e8203cc71d41a5d062bbdab673db398bd35d4fcaff3ee67029535cfd50
4
+ data.tar.gz: d68f41734b0452fa8116721452941fcf2777c5968ff1bda6d5b77b146538e1f6
5
5
  SHA512:
6
- metadata.gz: a8fabdc3daba3dd413314c80a589b2829d3c66b2b3c142d69fe901f36291b421d989140a80478328e7a2454d31405811b55394fa87d8b158a926c4c398ff9403
7
- data.tar.gz: 1a66fb02bce1e2a110a64b6120148fb23a0c409f99a90ffdceb21a3a73b19b95e9c54cb5df978280487ed9a5a714d1cc46e8625e0d9232c73f292b3005d679dc
6
+ metadata.gz: 690bb88c8c3409e802690a7f137c897909f4f286220439937a1f1b2ddb7474b7c7304b3010e9a1a81f9f223d97f3164275b8c0e8a701b8e0832da2a85fe9b8bf
7
+ data.tar.gz: bb6c2eeeda1e24b760485ffc1c0ec57fc50272f8f76b1e2c60b3c7564a5748b8d0230e85a7dd80a8ddba5c68122dd71bbb3ae5cab56cbda47b3f13c4e8cc4889
@@ -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