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,24 +15,18 @@ require 'time'
15
15
 
16
16
  module Repull
17
17
  class GetVrboListingContent200Response < ApiModelBase
18
- attr_accessor :listing_id
19
-
20
- attr_accessor :vrbo_listing_number
21
-
22
- attr_accessor :property_id
18
+ attr_accessor :sections
23
19
 
24
- attr_accessor :listing
20
+ attr_accessor :data_freshness
25
21
 
26
- attr_accessor :sections
22
+ attr_accessor :vrbo_listing_number
27
23
 
28
24
  # Attribute mapping from ruby-style variable name to JSON key.
29
25
  def self.attribute_map
30
26
  {
31
- :'listing_id' => :'listingId',
32
- :'vrbo_listing_number' => :'vrboListingNumber',
33
- :'property_id' => :'propertyId',
34
- :'listing' => :'listing',
35
- :'sections' => :'sections'
27
+ :'sections' => :'sections',
28
+ :'data_freshness' => :'dataFreshness',
29
+ :'vrbo_listing_number' => :'vrboListingNumber'
36
30
  }
37
31
  end
38
32
 
@@ -49,18 +43,15 @@ module Repull
49
43
  # Attribute type mapping.
50
44
  def self.openapi_types
51
45
  {
52
- :'listing_id' => :'String',
53
- :'vrbo_listing_number' => :'String',
54
- :'property_id' => :'String',
55
- :'listing' => :'GetVrboListingContent200ResponseListing',
56
- :'sections' => :'GetVrboListingContent200ResponseSections'
46
+ :'sections' => :'GetVrboListingContent200ResponseSections',
47
+ :'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
48
+ :'vrbo_listing_number' => :'String'
57
49
  }
58
50
  end
59
51
 
60
52
  # List of attributes with nullable: true
61
53
  def self.openapi_nullable
62
54
  Set.new([
63
- :'listing',
64
55
  ])
65
56
  end
66
57
 
@@ -80,32 +71,22 @@ module Repull
80
71
  h[k.to_sym] = v
81
72
  }
82
73
 
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']
74
+ if attributes.key?(:'sections')
75
+ self.sections = attributes[:'sections']
91
76
  else
92
- self.vrbo_listing_number = nil
77
+ self.sections = nil
93
78
  end
94
79
 
95
- if attributes.key?(:'property_id')
96
- self.property_id = attributes[:'property_id']
80
+ if attributes.key?(:'data_freshness')
81
+ self.data_freshness = attributes[:'data_freshness']
97
82
  else
98
- self.property_id = nil
83
+ self.data_freshness = nil
99
84
  end
100
85
 
101
- if attributes.key?(:'listing')
102
- self.listing = attributes[:'listing']
103
- end
104
-
105
- if attributes.key?(:'sections')
106
- self.sections = attributes[:'sections']
86
+ if attributes.key?(:'vrbo_listing_number')
87
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
107
88
  else
108
- self.sections = nil
89
+ self.vrbo_listing_number = nil
109
90
  end
110
91
  end
111
92
 
@@ -114,20 +95,16 @@ module Repull
114
95
  def list_invalid_properties
115
96
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
116
97
  invalid_properties = Array.new
117
- if @listing_id.nil?
118
- invalid_properties.push('invalid value for "listing_id", listing_id cannot be nil.')
119
- end
120
-
121
- if @vrbo_listing_number.nil?
122
- invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
98
+ if @sections.nil?
99
+ invalid_properties.push('invalid value for "sections", sections cannot be nil.')
123
100
  end
124
101
 
125
- if @property_id.nil?
126
- invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
102
+ if @data_freshness.nil?
103
+ invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
127
104
  end
128
105
 
129
- if @sections.nil?
130
- invalid_properties.push('invalid value for "sections", sections cannot be nil.')
106
+ if @vrbo_listing_number.nil?
107
+ invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
131
108
  end
132
109
 
133
110
  invalid_properties
@@ -137,51 +114,40 @@ module Repull
137
114
  # @return true if the model is valid
138
115
  def valid?
139
116
  warn '[DEPRECATED] the `valid?` method is obsolete'
140
- return false if @listing_id.nil?
141
- return false if @vrbo_listing_number.nil?
142
- return false if @property_id.nil?
143
117
  return false if @sections.nil?
118
+ return false if @data_freshness.nil?
119
+ return false if @vrbo_listing_number.nil?
144
120
  true
145
121
  end
146
122
 
147
123
  # Custom attribute writer method with validation
148
- # @param [Object] listing_id Value to be assigned
149
- def listing_id=(listing_id)
150
- if listing_id.nil?
151
- fail ArgumentError, 'listing_id cannot be nil'
152
- end
153
-
154
- @listing_id = listing_id
155
- end
156
-
157
- # Custom attribute writer method with validation
158
- # @param [Object] vrbo_listing_number Value to be assigned
159
- def vrbo_listing_number=(vrbo_listing_number)
160
- if vrbo_listing_number.nil?
161
- fail ArgumentError, 'vrbo_listing_number cannot be nil'
124
+ # @param [Object] sections Value to be assigned
125
+ def sections=(sections)
126
+ if sections.nil?
127
+ fail ArgumentError, 'sections cannot be nil'
162
128
  end
163
129
 
164
- @vrbo_listing_number = vrbo_listing_number
130
+ @sections = sections
165
131
  end
166
132
 
167
133
  # Custom attribute writer method with validation
168
- # @param [Object] property_id Value to be assigned
169
- def property_id=(property_id)
170
- if property_id.nil?
171
- fail ArgumentError, 'property_id cannot be nil'
134
+ # @param [Object] data_freshness Value to be assigned
135
+ def data_freshness=(data_freshness)
136
+ if data_freshness.nil?
137
+ fail ArgumentError, 'data_freshness cannot be nil'
172
138
  end
173
139
 
174
- @property_id = property_id
140
+ @data_freshness = data_freshness
175
141
  end
176
142
 
177
143
  # Custom attribute writer method with validation
178
- # @param [Object] sections Value to be assigned
179
- def sections=(sections)
180
- if sections.nil?
181
- fail ArgumentError, 'sections cannot be nil'
144
+ # @param [Object] vrbo_listing_number Value to be assigned
145
+ def vrbo_listing_number=(vrbo_listing_number)
146
+ if vrbo_listing_number.nil?
147
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
182
148
  end
183
149
 
184
- @sections = sections
150
+ @vrbo_listing_number = vrbo_listing_number
185
151
  end
186
152
 
187
153
  # Checks equality by comparing each attribute.
@@ -189,11 +155,9 @@ module Repull
189
155
  def ==(o)
190
156
  return true if self.equal?(o)
191
157
  self.class == o.class &&
192
- listing_id == o.listing_id &&
193
- vrbo_listing_number == o.vrbo_listing_number &&
194
- property_id == o.property_id &&
195
- listing == o.listing &&
196
- sections == o.sections
158
+ sections == o.sections &&
159
+ data_freshness == o.data_freshness &&
160
+ vrbo_listing_number == o.vrbo_listing_number
197
161
  end
198
162
 
199
163
  # @see the `==` method
@@ -205,7 +169,7 @@ module Repull
205
169
  # Calculates hash code according to all attributes.
206
170
  # @return [Integer] Hash code
207
171
  def hash
208
- [listing_id, vrbo_listing_number, property_id, listing, sections].hash
172
+ [sections, data_freshness, vrbo_listing_number].hash
209
173
  end
210
174
 
211
175
  # Builds the object from hash
@@ -14,18 +14,16 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- # Keyed by section; each is the data of `GET /v1/channels/vrbo/listings/{id}/{section}`, or `{ error: { code, message } }` when that section failed.
17
+ # Keyed by section; each is the `data` of `GET /v1/channels/vrbo/listings/{id}/{section}`, or `{ error: { code, message } }` when that section failed.
18
18
  class GetVrboListingContent200ResponseSections < ApiModelBase
19
- attr_accessor :description
19
+ attr_accessor :descriptions
20
20
 
21
- attr_accessor :property
21
+ attr_accessor :details
22
22
 
23
23
  attr_accessor :story
24
24
 
25
25
  attr_accessor :additional_info
26
26
 
27
- attr_accessor :translations
28
-
29
27
  attr_accessor :photos
30
28
 
31
29
  attr_accessor :amenities
@@ -44,28 +42,25 @@ module Repull
44
42
 
45
43
  attr_accessor :pricing
46
44
 
47
- attr_accessor :rates
48
-
49
45
  attr_accessor :payment_terms
50
46
 
51
47
  attr_accessor :protection
52
48
 
53
49
  attr_accessor :taxes
54
50
 
55
- attr_accessor :registration
51
+ attr_accessor :permits
56
52
 
57
- attr_accessor :welcome_guide
53
+ attr_accessor :checkin_guide
58
54
 
59
55
  attr_accessor :videos
60
56
 
61
57
  # Attribute mapping from ruby-style variable name to JSON key.
62
58
  def self.attribute_map
63
59
  {
64
- :'description' => :'description',
65
- :'property' => :'property',
60
+ :'descriptions' => :'descriptions',
61
+ :'details' => :'details',
66
62
  :'story' => :'story',
67
63
  :'additional_info' => :'additional-info',
68
- :'translations' => :'translations',
69
64
  :'photos' => :'photos',
70
65
  :'amenities' => :'amenities',
71
66
  :'rooms' => :'rooms',
@@ -75,12 +70,11 @@ module Repull
75
70
  :'cancellation' => :'cancellation',
76
71
  :'fees' => :'fees',
77
72
  :'pricing' => :'pricing',
78
- :'rates' => :'rates',
79
73
  :'payment_terms' => :'payment-terms',
80
74
  :'protection' => :'protection',
81
75
  :'taxes' => :'taxes',
82
- :'registration' => :'registration',
83
- :'welcome_guide' => :'welcome-guide',
76
+ :'permits' => :'permits',
77
+ :'checkin_guide' => :'checkin-guide',
84
78
  :'videos' => :'videos'
85
79
  }
86
80
  end
@@ -98,11 +92,10 @@ module Repull
98
92
  # Attribute type mapping.
99
93
  def self.openapi_types
100
94
  {
101
- :'description' => :'GetVrboListingContent200ResponseSectionsDescription',
102
- :'property' => :'GetVrboListingContent200ResponseSectionsProperty',
95
+ :'descriptions' => :'Array<GetVrboListingContent200ResponseSectionsDescriptionsInner>',
96
+ :'details' => :'GetVrboListingContent200ResponseSectionsDetails',
103
97
  :'story' => :'GetVrboListingContent200ResponseSectionsStory',
104
98
  :'additional_info' => :'GetVrboListingContent200ResponseSectionsAdditionalInfo',
105
- :'translations' => :'GetVrboListingContent200ResponseSectionsTranslations',
106
99
  :'photos' => :'GetVrboListingContent200ResponseSectionsPhotos',
107
100
  :'amenities' => :'GetVrboListingContent200ResponseSectionsAmenities',
108
101
  :'rooms' => :'GetVrboListingContent200ResponseSectionsRooms',
@@ -112,12 +105,11 @@ module Repull
112
105
  :'cancellation' => :'GetVrboListingContent200ResponseSectionsCancellation',
113
106
  :'fees' => :'GetVrboListingContent200ResponseSectionsFees',
114
107
  :'pricing' => :'GetVrboListingContent200ResponseSectionsPricing',
115
- :'rates' => :'GetVrboListingContent200ResponseSectionsRates',
116
108
  :'payment_terms' => :'GetVrboListingContent200ResponseSectionsPaymentTerms',
117
109
  :'protection' => :'GetVrboListingContent200ResponseSectionsProtection',
118
110
  :'taxes' => :'GetVrboListingContent200ResponseSectionsTaxes',
119
- :'registration' => :'GetVrboListingContent200ResponseSectionsRegistration',
120
- :'welcome_guide' => :'GetVrboListingContent200ResponseSectionsWelcomeGuide',
111
+ :'permits' => :'GetVrboListingContent200ResponseSectionsPermits',
112
+ :'checkin_guide' => :'GetVrboListingContent200ResponseSectionsCheckinGuide',
121
113
  :'videos' => :'GetVrboListingContent200ResponseSectionsVideos'
122
114
  }
123
115
  end
@@ -144,12 +136,14 @@ module Repull
144
136
  h[k.to_sym] = v
145
137
  }
146
138
 
147
- if attributes.key?(:'description')
148
- self.description = attributes[:'description']
139
+ if attributes.key?(:'descriptions')
140
+ if (value = attributes[:'descriptions']).is_a?(Array)
141
+ self.descriptions = value
142
+ end
149
143
  end
150
144
 
151
- if attributes.key?(:'property')
152
- self.property = attributes[:'property']
145
+ if attributes.key?(:'details')
146
+ self.details = attributes[:'details']
153
147
  end
154
148
 
155
149
  if attributes.key?(:'story')
@@ -160,10 +154,6 @@ module Repull
160
154
  self.additional_info = attributes[:'additional_info']
161
155
  end
162
156
 
163
- if attributes.key?(:'translations')
164
- self.translations = attributes[:'translations']
165
- end
166
-
167
157
  if attributes.key?(:'photos')
168
158
  self.photos = attributes[:'photos']
169
159
  end
@@ -200,10 +190,6 @@ module Repull
200
190
  self.pricing = attributes[:'pricing']
201
191
  end
202
192
 
203
- if attributes.key?(:'rates')
204
- self.rates = attributes[:'rates']
205
- end
206
-
207
193
  if attributes.key?(:'payment_terms')
208
194
  self.payment_terms = attributes[:'payment_terms']
209
195
  end
@@ -216,12 +202,12 @@ module Repull
216
202
  self.taxes = attributes[:'taxes']
217
203
  end
218
204
 
219
- if attributes.key?(:'registration')
220
- self.registration = attributes[:'registration']
205
+ if attributes.key?(:'permits')
206
+ self.permits = attributes[:'permits']
221
207
  end
222
208
 
223
- if attributes.key?(:'welcome_guide')
224
- self.welcome_guide = attributes[:'welcome_guide']
209
+ if attributes.key?(:'checkin_guide')
210
+ self.checkin_guide = attributes[:'checkin_guide']
225
211
  end
226
212
 
227
213
  if attributes.key?(:'videos')
@@ -249,11 +235,10 @@ module Repull
249
235
  def ==(o)
250
236
  return true if self.equal?(o)
251
237
  self.class == o.class &&
252
- description == o.description &&
253
- property == o.property &&
238
+ descriptions == o.descriptions &&
239
+ details == o.details &&
254
240
  story == o.story &&
255
241
  additional_info == o.additional_info &&
256
- translations == o.translations &&
257
242
  photos == o.photos &&
258
243
  amenities == o.amenities &&
259
244
  rooms == o.rooms &&
@@ -263,12 +248,11 @@ module Repull
263
248
  cancellation == o.cancellation &&
264
249
  fees == o.fees &&
265
250
  pricing == o.pricing &&
266
- rates == o.rates &&
267
251
  payment_terms == o.payment_terms &&
268
252
  protection == o.protection &&
269
253
  taxes == o.taxes &&
270
- registration == o.registration &&
271
- welcome_guide == o.welcome_guide &&
254
+ permits == o.permits &&
255
+ checkin_guide == o.checkin_guide &&
272
256
  videos == o.videos
273
257
  end
274
258
 
@@ -281,7 +265,7 @@ module Repull
281
265
  # Calculates hash code according to all attributes.
282
266
  # @return [Integer] Hash code
283
267
  def hash
284
- [description, property, story, additional_info, translations, photos, amenities, rooms, location, house_rules, booking_settings, cancellation, fees, pricing, rates, payment_terms, protection, taxes, registration, welcome_guide, videos].hash
268
+ [descriptions, details, story, additional_info, photos, amenities, rooms, location, house_rules, booking_settings, cancellation, fees, pricing, payment_terms, protection, taxes, permits, checkin_guide, videos].hash
285
269
  end
286
270
 
287
271
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsWelcomeGuide < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsCheckinGuide < ApiModelBase
18
18
  attr_accessor :check_in
19
19
 
20
20
  attr_accessor :check_out
@@ -59,14 +59,14 @@ module Repull
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'check_in' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn',
63
- :'check_out' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn',
64
- :'driving_directions' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn',
65
- :'parking_directions' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn',
66
- :'access' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideAccess',
67
- :'wifi' => :'GetVrboListingContent200ResponseSectionsWelcomeGuideWifi',
68
- :'amenities' => :'Hash<String, GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn>',
69
- :'contacts' => :'Array<GetVrboListingContent200ResponseSectionsWelcomeGuideContactsInner>'
62
+ :'check_in' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
63
+ :'check_out' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
64
+ :'driving_directions' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
65
+ :'parking_directions' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
66
+ :'access' => :'GetVrboListingContent200ResponseSectionsCheckinGuideAccess',
67
+ :'wifi' => :'GetVrboListingContent200ResponseSectionsCheckinGuideWifi',
68
+ :'amenities' => :'Hash<String, GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn>',
69
+ :'contacts' => :'Array<GetVrboListingContent200ResponseSectionsCheckinGuideContactsInner>'
70
70
  }
71
71
  end
72
72
 
@@ -86,14 +86,14 @@ module Repull
86
86
  # @param [Hash] attributes Model attributes in the form of hash
87
87
  def initialize(attributes = {})
88
88
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuide` initialize method"
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuide` initialize method"
90
90
  end
91
91
 
92
92
  # check to see if the attribute exists and convert string to symbol for hash key
93
93
  acceptable_attribute_map = self.class.acceptable_attribute_map
94
94
  attributes = attributes.each_with_object({}) { |(k, v), h|
95
95
  if (!acceptable_attribute_map.key?(k.to_sym))
96
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuide`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuide`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
97
97
  end
98
98
  h[k.to_sym] = v
99
99
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsWelcomeGuideAccess < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsCheckinGuideAccess < ApiModelBase
18
18
  attr_accessor :type
19
19
 
20
20
  attr_accessor :code
@@ -62,14 +62,14 @@ module Repull
62
62
  # @param [Hash] attributes Model attributes in the form of hash
63
63
  def initialize(attributes = {})
64
64
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideAccess` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideAccess` initialize method"
66
66
  end
67
67
 
68
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
69
  acceptable_attribute_map = self.class.acceptable_attribute_map
70
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
71
  if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideAccess`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideAccess`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
73
  end
74
74
  h[k.to_sym] = v
75
75
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn < ApiModelBase
18
18
  attr_accessor :instructions
19
19
 
20
20
  attr_accessor :available
@@ -61,14 +61,14 @@ module Repull
61
61
  # @param [Hash] attributes Model attributes in the form of hash
62
62
  def initialize(attributes = {})
63
63
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn` initialize method"
65
65
  end
66
66
 
67
67
  # check to see if the attribute exists and convert string to symbol for hash key
68
68
  acceptable_attribute_map = self.class.acceptable_attribute_map
69
69
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
70
  if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideCheckIn`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
72
  end
73
73
  h[k.to_sym] = v
74
74
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsWelcomeGuideContactsInner < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsCheckinGuideContactsInner < ApiModelBase
18
18
  attr_accessor :scope
19
19
 
20
20
  attr_accessor :name
@@ -62,14 +62,14 @@ module Repull
62
62
  # @param [Hash] attributes Model attributes in the form of hash
63
63
  def initialize(attributes = {})
64
64
  if (!attributes.is_a?(Hash))
65
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideContactsInner` initialize method"
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideContactsInner` initialize method"
66
66
  end
67
67
 
68
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
69
  acceptable_attribute_map = self.class.acceptable_attribute_map
70
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
71
  if (!acceptable_attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideContactsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideContactsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
73
73
  end
74
74
  h[k.to_sym] = v
75
75
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsWelcomeGuideWifi < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsCheckinGuideWifi < ApiModelBase
18
18
  attr_accessor :network_name
19
19
 
20
20
  attr_accessor :password
@@ -67,14 +67,14 @@ module Repull
67
67
  # @param [Hash] attributes Model attributes in the form of hash
68
68
  def initialize(attributes = {})
69
69
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideWifi` initialize method"
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsCheckinGuideWifi` initialize method"
71
71
  end
72
72
 
73
73
  # check to see if the attribute exists and convert string to symbol for hash key
74
74
  acceptable_attribute_map = self.class.acceptable_attribute_map
75
75
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
76
  if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsWelcomeGuideWifi`. 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::GetVrboListingContent200ResponseSectionsCheckinGuideWifi`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
78
  end
79
79
  h[k.to_sym] = v
80
80
  }
@@ -14,7 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class GetVrboListingContent200ResponseSectionsDescription < ApiModelBase
17
+ class GetVrboListingContent200ResponseSectionsDescriptionsInner < ApiModelBase
18
+ # `null` for the listing's own language; a language code for a hand-written translation.
19
+ attr_accessor :locale
20
+
21
+ # `true` for the listing's own language.
22
+ attr_accessor :primary
23
+
18
24
  attr_accessor :headline
19
25
 
20
26
  attr_accessor :description
@@ -24,6 +30,8 @@ module Repull
24
30
  # Attribute mapping from ruby-style variable name to JSON key.
25
31
  def self.attribute_map
26
32
  {
33
+ :'locale' => :'locale',
34
+ :'primary' => :'primary',
27
35
  :'headline' => :'headline',
28
36
  :'description' => :'description',
29
37
  :'limits' => :'limits'
@@ -43,15 +51,18 @@ module Repull
43
51
  # Attribute type mapping.
44
52
  def self.openapi_types
45
53
  {
54
+ :'locale' => :'String',
55
+ :'primary' => :'Boolean',
46
56
  :'headline' => :'String',
47
57
  :'description' => :'String',
48
- :'limits' => :'GetVrboListingContent200ResponseSectionsDescriptionLimits'
58
+ :'limits' => :'GetVrboListingContent200ResponseSectionsDescriptionsInnerLimits'
49
59
  }
50
60
  end
51
61
 
52
62
  # List of attributes with nullable: true
53
63
  def self.openapi_nullable
54
64
  Set.new([
65
+ :'locale',
55
66
  :'headline',
56
67
  :'description',
57
68
  ])
@@ -61,18 +72,26 @@ module Repull
61
72
  # @param [Hash] attributes Model attributes in the form of hash
62
73
  def initialize(attributes = {})
63
74
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescription` initialize method"
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInner` initialize method"
65
76
  end
66
77
 
67
78
  # check to see if the attribute exists and convert string to symbol for hash key
68
79
  acceptable_attribute_map = self.class.acceptable_attribute_map
69
80
  attributes = attributes.each_with_object({}) { |(k, v), h|
70
81
  if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescription`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingContent200ResponseSectionsDescriptionsInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
83
  end
73
84
  h[k.to_sym] = v
74
85
  }
75
86
 
87
+ if attributes.key?(:'locale')
88
+ self.locale = attributes[:'locale']
89
+ end
90
+
91
+ if attributes.key?(:'primary')
92
+ self.primary = attributes[:'primary']
93
+ end
94
+
76
95
  if attributes.key?(:'headline')
77
96
  self.headline = attributes[:'headline']
78
97
  end
@@ -106,6 +125,8 @@ module Repull
106
125
  def ==(o)
107
126
  return true if self.equal?(o)
108
127
  self.class == o.class &&
128
+ locale == o.locale &&
129
+ primary == o.primary &&
109
130
  headline == o.headline &&
110
131
  description == o.description &&
111
132
  limits == o.limits
@@ -120,7 +141,7 @@ module Repull
120
141
  # Calculates hash code according to all attributes.
121
142
  # @return [Integer] Hash code
122
143
  def hash
123
- [headline, description, limits].hash
144
+ [locale, primary, headline, description, limits].hash
124
145
  end
125
146
 
126
147
  # Builds the object from hash