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
@@ -14,7 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsDescriptionLimits < ApiModelBase
17
+ # On the primary item: the lengths Vrbo allows.
18
+ class GetVrboListingContent200ResponseSectionsDescriptionsInnerLimits < ApiModelBase
18
19
  attr_accessor :headline
19
20
 
20
21
  attr_accessor :description
@@ -40,8 +41,8 @@ module Repull
40
41
  # Attribute type mapping.
41
42
  def self.openapi_types
42
43
  {
43
- :'headline' => :'GetVrboListingContent200ResponseSectionsDescriptionLimitsHeadline',
44
- :'description' => :'GetVrboListingContent200ResponseSectionsDescriptionLimitsHeadline'
44
+ :'headline' => :'GetVrboListingContent200ResponseSectionsDescriptionsInnerLimitsHeadline',
45
+ :'description' => :'GetVrboListingContent200ResponseSectionsDescriptionsInnerLimitsHeadline'
45
46
  }
46
47
  end
47
48
 
@@ -57,14 +58,14 @@ module Repull
57
58
  # @param [Hash] attributes Model attributes in the form of hash
58
59
  def initialize(attributes = {})
59
60
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescriptionLimits` initialize method"
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInnerLimits` initialize method"
61
62
  end
62
63
 
63
64
  # check to see if the attribute exists and convert string to symbol for hash key
64
65
  acceptable_attribute_map = self.class.acceptable_attribute_map
65
66
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
67
  if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescriptionLimits`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInnerLimits`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
69
  end
69
70
  h[k.to_sym] = v
70
71
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsDescriptionLimitsHeadline < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsDescriptionsInnerLimitsHeadline < ApiModelBase
18
18
  attr_accessor :min_length
19
19
 
20
20
  attr_accessor :max_length
@@ -57,14 +57,14 @@ module Repull
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescriptionLimitsHeadline` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInnerLimitsHeadline` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  acceptable_attribute_map = self.class.acceptable_attribute_map
65
65
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
66
  if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescriptionLimitsHeadline`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInnerLimitsHeadline`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
68
  end
69
69
  h[k.to_sym] = v
70
70
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsProperty < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsDetails < ApiModelBase
18
18
  attr_accessor :property_type
19
19
 
20
20
  attr_accessor :property_type_options
@@ -55,7 +55,7 @@ module Repull
55
55
  :'property_type' => :'String',
56
56
  :'property_type_options' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner>',
57
57
  :'property_name' => :'String',
58
- :'interior_size' => :'GetVrboListingContent200ResponseSectionsPropertyInteriorSize',
58
+ :'interior_size' => :'GetVrboListingContent200ResponseSectionsDetailsInteriorSize',
59
59
  :'seniors_only' => :'Boolean',
60
60
  :'long_term_renters_welcome' => :'Boolean'
61
61
  }
@@ -75,14 +75,14 @@ module Repull
75
75
  # @param [Hash] attributes Model attributes in the form of hash
76
76
  def initialize(attributes = {})
77
77
  if (!attributes.is_a?(Hash))
78
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsProperty` initialize method"
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDetails` initialize method"
79
79
  end
80
80
 
81
81
  # check to see if the attribute exists and convert string to symbol for hash key
82
82
  acceptable_attribute_map = self.class.acceptable_attribute_map
83
83
  attributes = attributes.each_with_object({}) { |(k, v), h|
84
84
  if (!acceptable_attribute_map.key?(k.to_sym))
85
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsProperty`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
86
  end
87
87
  h[k.to_sym] = v
88
88
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsPropertyInteriorSize < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsDetailsInteriorSize < ApiModelBase
18
18
  attr_accessor :value
19
19
 
20
20
  attr_accessor :unit
@@ -79,14 +79,14 @@ module Repull
79
79
  # @param [Hash] attributes Model attributes in the form of hash
80
80
  def initialize(attributes = {})
81
81
  if (!attributes.is_a?(Hash))
82
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsPropertyInteriorSize` initialize method"
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDetailsInteriorSize` initialize method"
83
83
  end
84
84
 
85
85
  # check to see if the attribute exists and convert string to symbol for hash key
86
86
  acceptable_attribute_map = self.class.acceptable_attribute_map
87
87
  attributes = attributes.each_with_object({}) { |(k, v), h|
88
88
  if (!acceptable_attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsPropertyInteriorSize`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDetailsInteriorSize`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
90
  end
91
91
  h[k.to_sym] = v
92
92
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsRegistration < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsPermits < ApiModelBase
18
18
  attr_accessor :status
19
19
 
20
20
  attr_accessor :fields
@@ -41,7 +41,7 @@ module Repull
41
41
  def self.openapi_types
42
42
  {
43
43
  :'status' => :'String',
44
- :'fields' => :'Array<GetVrboListingContent200ResponseSectionsRegistrationFieldsInner>'
44
+ :'fields' => :'Array<GetVrboListingContent200ResponseSectionsPermitsFieldsInner>'
45
45
  }
46
46
  end
47
47
 
@@ -56,14 +56,14 @@ module Repull
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
58
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsRegistration` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsPermits` initialize method"
60
60
  end
61
61
 
62
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
63
  acceptable_attribute_map = self.class.acceptable_attribute_map
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
65
  if (!acceptable_attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsRegistration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsPermits`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsRegistrationFieldsInner < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsPermitsFieldsInner < ApiModelBase
18
18
  attr_accessor :name
19
19
 
20
20
  attr_accessor :label
@@ -65,14 +65,14 @@ module Repull
65
65
  # @param [Hash] attributes Model attributes in the form of hash
66
66
  def initialize(attributes = {})
67
67
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsRegistrationFieldsInner` initialize method"
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsPermitsFieldsInner` initialize method"
69
69
  end
70
70
 
71
71
  # check to see if the attribute exists and convert string to symbol for hash key
72
72
  acceptable_attribute_map = self.class.acceptable_attribute_map
73
73
  attributes = attributes.each_with_object({}) { |(k, v), h|
74
74
  if (!acceptable_attribute_map.key?(k.to_sym))
75
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsRegistrationFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
75
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsPermitsFieldsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
76
  end
77
77
  h[k.to_sym] = v
78
78
  }
@@ -14,26 +14,25 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingTranslations200Response < ApiModelBase
18
- attr_accessor :listing_id
19
-
20
- attr_accessor :vrbo_listing_number
17
+ class GetVrboListingDescriptions200Response < ApiModelBase
18
+ # The section as Vrbo has it.
19
+ attr_accessor :data
21
20
 
22
- # Vrbo's property id for the unit.
23
- attr_accessor :property_id
21
+ # The languages a translation can be written in (`value` is the `locale`).
22
+ attr_accessor :languages
24
23
 
25
- attr_accessor :section
24
+ attr_accessor :data_freshness
26
25
 
27
- attr_accessor :data
26
+ # The Vrbo listing number this is about.
27
+ attr_accessor :vrbo_listing_number
28
28
 
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'listing_id' => :'listingId',
33
- :'vrbo_listing_number' => :'vrboListingNumber',
34
- :'property_id' => :'propertyId',
35
- :'section' => :'section',
36
- :'data' => :'data'
32
+ :'data' => :'data',
33
+ :'languages' => :'languages',
34
+ :'data_freshness' => :'dataFreshness',
35
+ :'vrbo_listing_number' => :'vrboListingNumber'
37
36
  }
38
37
  end
39
38
 
@@ -50,11 +49,10 @@ module Repull
50
49
  # Attribute type mapping.
51
50
  def self.openapi_types
52
51
  {
53
- :'listing_id' => :'String',
54
- :'vrbo_listing_number' => :'String',
55
- :'property_id' => :'String',
56
- :'section' => :'String',
57
- :'data' => :'GetVrboListingTranslations200ResponseData'
52
+ :'data' => :'Array<GetVrboListingContent200ResponseSectionsDescriptionsInner>',
53
+ :'languages' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner>',
54
+ :'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
55
+ :'vrbo_listing_number' => :'String'
58
56
  }
59
57
  end
60
58
 
@@ -68,46 +66,42 @@ module Repull
68
66
  # @param [Hash] attributes Model attributes in the form of hash
69
67
  def initialize(attributes = {})
70
68
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingTranslations200Response` initialize method"
69
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingDescriptions200Response` initialize method"
72
70
  end
73
71
 
74
72
  # check to see if the attribute exists and convert string to symbol for hash key
75
73
  acceptable_attribute_map = self.class.acceptable_attribute_map
76
74
  attributes = attributes.each_with_object({}) { |(k, v), h|
77
75
  if (!acceptable_attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingTranslations200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingDescriptions200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
79
77
  end
80
78
  h[k.to_sym] = v
81
79
  }
82
80
 
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']
81
+ if attributes.key?(:'data')
82
+ if (value = attributes[:'data']).is_a?(Array)
83
+ self.data = value
84
+ end
91
85
  else
92
- self.vrbo_listing_number = nil
86
+ self.data = nil
93
87
  end
94
88
 
95
- if attributes.key?(:'property_id')
96
- self.property_id = attributes[:'property_id']
97
- else
98
- self.property_id = nil
89
+ if attributes.key?(:'languages')
90
+ if (value = attributes[:'languages']).is_a?(Array)
91
+ self.languages = value
92
+ end
99
93
  end
100
94
 
101
- if attributes.key?(:'section')
102
- self.section = attributes[:'section']
95
+ if attributes.key?(:'data_freshness')
96
+ self.data_freshness = attributes[:'data_freshness']
103
97
  else
104
- self.section = nil
98
+ self.data_freshness = nil
105
99
  end
106
100
 
107
- if attributes.key?(:'data')
108
- self.data = attributes[:'data']
101
+ if attributes.key?(:'vrbo_listing_number')
102
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
109
103
  else
110
- self.data = nil
104
+ self.vrbo_listing_number = nil
111
105
  end
112
106
  end
113
107
 
@@ -116,24 +110,16 @@ module Repull
116
110
  def list_invalid_properties
117
111
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
118
112
  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.')
113
+ if @data.nil?
114
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
129
115
  end
130
116
 
131
- if @section.nil?
132
- invalid_properties.push('invalid value for "section", section cannot be nil.')
117
+ if @data_freshness.nil?
118
+ invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
133
119
  end
134
120
 
135
- if @data.nil?
136
- invalid_properties.push('invalid value for "data", data cannot be nil.')
121
+ if @vrbo_listing_number.nil?
122
+ invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
137
123
  end
138
124
 
139
125
  invalid_properties
@@ -143,62 +129,40 @@ module Repull
143
129
  # @return true if the model is valid
144
130
  def valid?
145
131
  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
132
  return false if @data.nil?
133
+ return false if @data_freshness.nil?
134
+ return false if @vrbo_listing_number.nil?
151
135
  true
152
136
  end
153
137
 
154
138
  # 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'
139
+ # @param [Object] data Value to be assigned
140
+ def data=(data)
141
+ if data.nil?
142
+ fail ArgumentError, 'data cannot be nil'
179
143
  end
180
144
 
181
- @property_id = property_id
145
+ @data = data
182
146
  end
183
147
 
184
148
  # 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'
149
+ # @param [Object] data_freshness Value to be assigned
150
+ def data_freshness=(data_freshness)
151
+ if data_freshness.nil?
152
+ fail ArgumentError, 'data_freshness cannot be nil'
189
153
  end
190
154
 
191
- @section = section
155
+ @data_freshness = data_freshness
192
156
  end
193
157
 
194
158
  # 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'
159
+ # @param [Object] vrbo_listing_number Value to be assigned
160
+ def vrbo_listing_number=(vrbo_listing_number)
161
+ if vrbo_listing_number.nil?
162
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
199
163
  end
200
164
 
201
- @data = data
165
+ @vrbo_listing_number = vrbo_listing_number
202
166
  end
203
167
 
204
168
  # Checks equality by comparing each attribute.
@@ -206,11 +170,10 @@ module Repull
206
170
  def ==(o)
207
171
  return true if self.equal?(o)
208
172
  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
173
+ data == o.data &&
174
+ languages == o.languages &&
175
+ data_freshness == o.data_freshness &&
176
+ vrbo_listing_number == o.vrbo_listing_number
214
177
  end
215
178
 
216
179
  # @see the `==` method
@@ -222,7 +185,7 @@ module Repull
222
185
  # Calculates hash code according to all attributes.
223
186
  # @return [Integer] Hash code
224
187
  def hash
225
- [listing_id, vrbo_listing_number, property_id, section, data].hash
188
+ [data, languages, data_freshness, vrbo_listing_number].hash
226
189
  end
227
190
 
228
191
  # Builds the object from hash