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