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,30 +14,24 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class UpdateVrboListingWelcomeGuide200Response < 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
24
-
25
- attr_accessor :section
17
+ class UpdateVrboListingDescriptions200Response < ApiModelBase
18
+ # What Vrbo has after the write, read back from Vrbo.
19
+ attr_accessor :data
26
20
 
27
21
  # The fields this request sent.
28
22
  attr_accessor :written
29
23
 
30
- attr_accessor :data
24
+ attr_accessor :data_freshness
25
+
26
+ attr_accessor :vrbo_listing_number
31
27
 
32
28
  # Attribute mapping from ruby-style variable name to JSON key.
33
29
  def self.attribute_map
34
30
  {
35
- :'listing_id' => :'listingId',
36
- :'vrbo_listing_number' => :'vrboListingNumber',
37
- :'property_id' => :'propertyId',
38
- :'section' => :'section',
31
+ :'data' => :'data',
39
32
  :'written' => :'written',
40
- :'data' => :'data'
33
+ :'data_freshness' => :'dataFreshness',
34
+ :'vrbo_listing_number' => :'vrboListingNumber'
41
35
  }
42
36
  end
43
37
 
@@ -54,12 +48,10 @@ module Repull
54
48
  # Attribute type mapping.
55
49
  def self.openapi_types
56
50
  {
57
- :'listing_id' => :'String',
58
- :'vrbo_listing_number' => :'String',
59
- :'property_id' => :'String',
60
- :'section' => :'String',
51
+ :'data' => :'Array<GetVrboListingContent200ResponseSectionsDescriptionsInner>',
61
52
  :'written' => :'Array<String>',
62
- :'data' => :'UpdateVrboListingWelcomeGuide200ResponseData'
53
+ :'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
54
+ :'vrbo_listing_number' => :'String'
63
55
  }
64
56
  end
65
57
 
@@ -73,40 +65,24 @@ module Repull
73
65
  # @param [Hash] attributes Model attributes in the form of hash
74
66
  def initialize(attributes = {})
75
67
  if (!attributes.is_a?(Hash))
76
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingWelcomeGuide200Response` initialize method"
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingDescriptions200Response` initialize method"
77
69
  end
78
70
 
79
71
  # check to see if the attribute exists and convert string to symbol for hash key
80
72
  acceptable_attribute_map = self.class.acceptable_attribute_map
81
73
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
74
  if (!acceptable_attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingWelcomeGuide200Response`. 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::UpdateVrboListingDescriptions200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
76
  end
85
77
  h[k.to_sym] = v
86
78
  }
87
79
 
88
- if attributes.key?(:'listing_id')
89
- self.listing_id = attributes[:'listing_id']
90
- else
91
- self.listing_id = nil
92
- end
93
-
94
- if attributes.key?(:'vrbo_listing_number')
95
- self.vrbo_listing_number = attributes[:'vrbo_listing_number']
96
- else
97
- self.vrbo_listing_number = nil
98
- end
99
-
100
- if attributes.key?(:'property_id')
101
- self.property_id = attributes[:'property_id']
102
- else
103
- self.property_id = nil
104
- end
105
-
106
- if attributes.key?(:'section')
107
- self.section = attributes[:'section']
80
+ if attributes.key?(:'data')
81
+ if (value = attributes[:'data']).is_a?(Array)
82
+ self.data = value
83
+ end
108
84
  else
109
- self.section = nil
85
+ self.data = nil
110
86
  end
111
87
 
112
88
  if attributes.key?(:'written')
@@ -117,10 +93,16 @@ module Repull
117
93
  self.written = nil
118
94
  end
119
95
 
120
- if attributes.key?(:'data')
121
- self.data = attributes[:'data']
96
+ if attributes.key?(:'data_freshness')
97
+ self.data_freshness = attributes[:'data_freshness']
122
98
  else
123
- self.data = nil
99
+ self.data_freshness = nil
100
+ end
101
+
102
+ if attributes.key?(:'vrbo_listing_number')
103
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
104
+ else
105
+ self.vrbo_listing_number = nil
124
106
  end
125
107
  end
126
108
 
@@ -129,28 +111,20 @@ module Repull
129
111
  def list_invalid_properties
130
112
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
113
  invalid_properties = Array.new
132
- if @listing_id.nil?
133
- invalid_properties.push('invalid value for "listing_id", listing_id cannot be nil.')
134
- end
135
-
136
- if @vrbo_listing_number.nil?
137
- invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
138
- end
139
-
140
- if @property_id.nil?
141
- invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
142
- end
143
-
144
- if @section.nil?
145
- invalid_properties.push('invalid value for "section", section cannot be nil.')
114
+ if @data.nil?
115
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
146
116
  end
147
117
 
148
118
  if @written.nil?
149
119
  invalid_properties.push('invalid value for "written", written cannot be nil.')
150
120
  end
151
121
 
152
- if @data.nil?
153
- invalid_properties.push('invalid value for "data", data cannot be nil.')
122
+ if @data_freshness.nil?
123
+ invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
124
+ end
125
+
126
+ if @vrbo_listing_number.nil?
127
+ invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
154
128
  end
155
129
 
156
130
  invalid_properties
@@ -160,53 +134,21 @@ module Repull
160
134
  # @return true if the model is valid
161
135
  def valid?
162
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
163
- return false if @listing_id.nil?
164
- return false if @vrbo_listing_number.nil?
165
- return false if @property_id.nil?
166
- return false if @section.nil?
167
- return false if @written.nil?
168
137
  return false if @data.nil?
138
+ return false if @written.nil?
139
+ return false if @data_freshness.nil?
140
+ return false if @vrbo_listing_number.nil?
169
141
  true
170
142
  end
171
143
 
172
144
  # Custom attribute writer method with validation
173
- # @param [Object] listing_id Value to be assigned
174
- def listing_id=(listing_id)
175
- if listing_id.nil?
176
- fail ArgumentError, 'listing_id cannot be nil'
177
- end
178
-
179
- @listing_id = listing_id
180
- end
181
-
182
- # Custom attribute writer method with validation
183
- # @param [Object] vrbo_listing_number Value to be assigned
184
- def vrbo_listing_number=(vrbo_listing_number)
185
- if vrbo_listing_number.nil?
186
- fail ArgumentError, 'vrbo_listing_number cannot be nil'
187
- end
188
-
189
- @vrbo_listing_number = vrbo_listing_number
190
- end
191
-
192
- # Custom attribute writer method with validation
193
- # @param [Object] property_id Value to be assigned
194
- def property_id=(property_id)
195
- if property_id.nil?
196
- fail ArgumentError, 'property_id cannot be nil'
197
- end
198
-
199
- @property_id = property_id
200
- end
201
-
202
- # Custom attribute writer method with validation
203
- # @param [Object] section Value to be assigned
204
- def section=(section)
205
- if section.nil?
206
- fail ArgumentError, 'section cannot be nil'
145
+ # @param [Object] data Value to be assigned
146
+ def data=(data)
147
+ if data.nil?
148
+ fail ArgumentError, 'data cannot be nil'
207
149
  end
208
150
 
209
- @section = section
151
+ @data = data
210
152
  end
211
153
 
212
154
  # Custom attribute writer method with validation
@@ -220,13 +162,23 @@ module Repull
220
162
  end
221
163
 
222
164
  # Custom attribute writer method with validation
223
- # @param [Object] data Value to be assigned
224
- def data=(data)
225
- if data.nil?
226
- fail ArgumentError, 'data cannot be nil'
165
+ # @param [Object] data_freshness Value to be assigned
166
+ def data_freshness=(data_freshness)
167
+ if data_freshness.nil?
168
+ fail ArgumentError, 'data_freshness cannot be nil'
227
169
  end
228
170
 
229
- @data = data
171
+ @data_freshness = data_freshness
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] vrbo_listing_number Value to be assigned
176
+ def vrbo_listing_number=(vrbo_listing_number)
177
+ if vrbo_listing_number.nil?
178
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
179
+ end
180
+
181
+ @vrbo_listing_number = vrbo_listing_number
230
182
  end
231
183
 
232
184
  # Checks equality by comparing each attribute.
@@ -234,12 +186,10 @@ module Repull
234
186
  def ==(o)
235
187
  return true if self.equal?(o)
236
188
  self.class == o.class &&
237
- listing_id == o.listing_id &&
238
- vrbo_listing_number == o.vrbo_listing_number &&
239
- property_id == o.property_id &&
240
- section == o.section &&
189
+ data == o.data &&
241
190
  written == o.written &&
242
- data == o.data
191
+ data_freshness == o.data_freshness &&
192
+ vrbo_listing_number == o.vrbo_listing_number
243
193
  end
244
194
 
245
195
  # @see the `==` method
@@ -251,7 +201,7 @@ module Repull
251
201
  # Calculates hash code according to all attributes.
252
202
  # @return [Integer] Hash code
253
203
  def hash
254
- [listing_id, vrbo_listing_number, property_id, section, written, data].hash
204
+ [data, written, data_freshness, vrbo_listing_number].hash
255
205
  end
256
206
 
257
207
  # Builds the object from hash
@@ -14,7 +14,10 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class UpdateVrboListingDescriptionRequest < ApiModelBase
17
+ class UpdateVrboListingDescriptionsRequest < ApiModelBase
18
+ # Leave out for the listing's own language. A language code (one of `languages` in the read) writes that language's hand-written translation, which replaces Vrbo's automatic one.
19
+ attr_accessor :locale
20
+
18
21
  attr_accessor :headline
19
22
 
20
23
  attr_accessor :description
@@ -22,6 +25,7 @@ module Repull
22
25
  # Attribute mapping from ruby-style variable name to JSON key.
23
26
  def self.attribute_map
24
27
  {
28
+ :'locale' => :'locale',
25
29
  :'headline' => :'headline',
26
30
  :'description' => :'description'
27
31
  }
@@ -40,6 +44,7 @@ module Repull
40
44
  # Attribute type mapping.
41
45
  def self.openapi_types
42
46
  {
47
+ :'locale' => :'String',
43
48
  :'headline' => :'String',
44
49
  :'description' => :'String'
45
50
  }
@@ -55,18 +60,22 @@ module Repull
55
60
  # @param [Hash] attributes Model attributes in the form of hash
56
61
  def initialize(attributes = {})
57
62
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingDescriptionRequest` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingDescriptionsRequest` initialize method"
59
64
  end
60
65
 
61
66
  # check to see if the attribute exists and convert string to symbol for hash key
62
67
  acceptable_attribute_map = self.class.acceptable_attribute_map
63
68
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
69
  if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingDescriptionRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingDescriptionsRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
71
  end
67
72
  h[k.to_sym] = v
68
73
  }
69
74
 
75
+ if attributes.key?(:'locale')
76
+ self.locale = attributes[:'locale']
77
+ end
78
+
70
79
  if attributes.key?(:'headline')
71
80
  self.headline = attributes[:'headline']
72
81
  end
@@ -152,6 +161,7 @@ module Repull
152
161
  def ==(o)
153
162
  return true if self.equal?(o)
154
163
  self.class == o.class &&
164
+ locale == o.locale &&
155
165
  headline == o.headline &&
156
166
  description == o.description
157
167
  end
@@ -165,7 +175,7 @@ module Repull
165
175
  # Calculates hash code according to all attributes.
166
176
  # @return [Integer] Hash code
167
177
  def hash
168
- [headline, description].hash
178
+ [locale, headline, description].hash
169
179
  end
170
180
 
171
181
  # Builds the object from hash
@@ -14,30 +14,23 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- class UpdateVrboListingPhotos200Response < 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
24
-
25
- attr_accessor :section
17
+ class UpdateVrboListingDetails200Response < ApiModelBase
18
+ attr_accessor :data
26
19
 
27
20
  # The fields this request sent.
28
21
  attr_accessor :written
29
22
 
30
- attr_accessor :data
23
+ attr_accessor :data_freshness
24
+
25
+ attr_accessor :vrbo_listing_number
31
26
 
32
27
  # Attribute mapping from ruby-style variable name to JSON key.
33
28
  def self.attribute_map
34
29
  {
35
- :'listing_id' => :'listingId',
36
- :'vrbo_listing_number' => :'vrboListingNumber',
37
- :'property_id' => :'propertyId',
38
- :'section' => :'section',
30
+ :'data' => :'data',
39
31
  :'written' => :'written',
40
- :'data' => :'data'
32
+ :'data_freshness' => :'dataFreshness',
33
+ :'vrbo_listing_number' => :'vrboListingNumber'
41
34
  }
42
35
  end
43
36
 
@@ -54,12 +47,10 @@ module Repull
54
47
  # Attribute type mapping.
55
48
  def self.openapi_types
56
49
  {
57
- :'listing_id' => :'String',
58
- :'vrbo_listing_number' => :'String',
59
- :'property_id' => :'String',
60
- :'section' => :'String',
50
+ :'data' => :'UpdateVrboListingDetails200ResponseData',
61
51
  :'written' => :'Array<String>',
62
- :'data' => :'UpdateVrboListingPhotos200ResponseData'
52
+ :'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
53
+ :'vrbo_listing_number' => :'String'
63
54
  }
64
55
  end
65
56
 
@@ -73,40 +64,22 @@ module Repull
73
64
  # @param [Hash] attributes Model attributes in the form of hash
74
65
  def initialize(attributes = {})
75
66
  if (!attributes.is_a?(Hash))
76
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingPhotos200Response` initialize method"
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingDetails200Response` initialize method"
77
68
  end
78
69
 
79
70
  # check to see if the attribute exists and convert string to symbol for hash key
80
71
  acceptable_attribute_map = self.class.acceptable_attribute_map
81
72
  attributes = attributes.each_with_object({}) { |(k, v), h|
82
73
  if (!acceptable_attribute_map.key?(k.to_sym))
83
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingPhotos200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingDetails200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
75
  end
85
76
  h[k.to_sym] = v
86
77
  }
87
78
 
88
- if attributes.key?(:'listing_id')
89
- self.listing_id = attributes[:'listing_id']
90
- else
91
- self.listing_id = nil
92
- end
93
-
94
- if attributes.key?(:'vrbo_listing_number')
95
- self.vrbo_listing_number = attributes[:'vrbo_listing_number']
96
- else
97
- self.vrbo_listing_number = nil
98
- end
99
-
100
- if attributes.key?(:'property_id')
101
- self.property_id = attributes[:'property_id']
102
- else
103
- self.property_id = nil
104
- end
105
-
106
- if attributes.key?(:'section')
107
- self.section = attributes[:'section']
79
+ if attributes.key?(:'data')
80
+ self.data = attributes[:'data']
108
81
  else
109
- self.section = nil
82
+ self.data = nil
110
83
  end
111
84
 
112
85
  if attributes.key?(:'written')
@@ -117,10 +90,16 @@ module Repull
117
90
  self.written = nil
118
91
  end
119
92
 
120
- if attributes.key?(:'data')
121
- self.data = attributes[:'data']
93
+ if attributes.key?(:'data_freshness')
94
+ self.data_freshness = attributes[:'data_freshness']
122
95
  else
123
- self.data = nil
96
+ self.data_freshness = nil
97
+ end
98
+
99
+ if attributes.key?(:'vrbo_listing_number')
100
+ self.vrbo_listing_number = attributes[:'vrbo_listing_number']
101
+ else
102
+ self.vrbo_listing_number = nil
124
103
  end
125
104
  end
126
105
 
@@ -129,28 +108,20 @@ module Repull
129
108
  def list_invalid_properties
130
109
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
110
  invalid_properties = Array.new
132
- if @listing_id.nil?
133
- invalid_properties.push('invalid value for "listing_id", listing_id cannot be nil.')
134
- end
135
-
136
- if @vrbo_listing_number.nil?
137
- invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
138
- end
139
-
140
- if @property_id.nil?
141
- invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
142
- end
143
-
144
- if @section.nil?
145
- invalid_properties.push('invalid value for "section", section cannot be nil.')
111
+ if @data.nil?
112
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
146
113
  end
147
114
 
148
115
  if @written.nil?
149
116
  invalid_properties.push('invalid value for "written", written cannot be nil.')
150
117
  end
151
118
 
152
- if @data.nil?
153
- invalid_properties.push('invalid value for "data", data cannot be nil.')
119
+ if @data_freshness.nil?
120
+ invalid_properties.push('invalid value for "data_freshness", data_freshness 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.')
154
125
  end
155
126
 
156
127
  invalid_properties
@@ -160,53 +131,21 @@ module Repull
160
131
  # @return true if the model is valid
161
132
  def valid?
162
133
  warn '[DEPRECATED] the `valid?` method is obsolete'
163
- return false if @listing_id.nil?
164
- return false if @vrbo_listing_number.nil?
165
- return false if @property_id.nil?
166
- return false if @section.nil?
167
- return false if @written.nil?
168
134
  return false if @data.nil?
135
+ return false if @written.nil?
136
+ return false if @data_freshness.nil?
137
+ return false if @vrbo_listing_number.nil?
169
138
  true
170
139
  end
171
140
 
172
141
  # Custom attribute writer method with validation
173
- # @param [Object] listing_id Value to be assigned
174
- def listing_id=(listing_id)
175
- if listing_id.nil?
176
- fail ArgumentError, 'listing_id cannot be nil'
177
- end
178
-
179
- @listing_id = listing_id
180
- end
181
-
182
- # Custom attribute writer method with validation
183
- # @param [Object] vrbo_listing_number Value to be assigned
184
- def vrbo_listing_number=(vrbo_listing_number)
185
- if vrbo_listing_number.nil?
186
- fail ArgumentError, 'vrbo_listing_number cannot be nil'
187
- end
188
-
189
- @vrbo_listing_number = vrbo_listing_number
190
- end
191
-
192
- # Custom attribute writer method with validation
193
- # @param [Object] property_id Value to be assigned
194
- def property_id=(property_id)
195
- if property_id.nil?
196
- fail ArgumentError, 'property_id cannot be nil'
197
- end
198
-
199
- @property_id = property_id
200
- end
201
-
202
- # Custom attribute writer method with validation
203
- # @param [Object] section Value to be assigned
204
- def section=(section)
205
- if section.nil?
206
- fail ArgumentError, 'section cannot be nil'
142
+ # @param [Object] data Value to be assigned
143
+ def data=(data)
144
+ if data.nil?
145
+ fail ArgumentError, 'data cannot be nil'
207
146
  end
208
147
 
209
- @section = section
148
+ @data = data
210
149
  end
211
150
 
212
151
  # Custom attribute writer method with validation
@@ -220,13 +159,23 @@ module Repull
220
159
  end
221
160
 
222
161
  # Custom attribute writer method with validation
223
- # @param [Object] data Value to be assigned
224
- def data=(data)
225
- if data.nil?
226
- fail ArgumentError, 'data cannot be nil'
162
+ # @param [Object] data_freshness Value to be assigned
163
+ def data_freshness=(data_freshness)
164
+ if data_freshness.nil?
165
+ fail ArgumentError, 'data_freshness cannot be nil'
227
166
  end
228
167
 
229
- @data = data
168
+ @data_freshness = data_freshness
169
+ end
170
+
171
+ # Custom attribute writer method with validation
172
+ # @param [Object] vrbo_listing_number Value to be assigned
173
+ def vrbo_listing_number=(vrbo_listing_number)
174
+ if vrbo_listing_number.nil?
175
+ fail ArgumentError, 'vrbo_listing_number cannot be nil'
176
+ end
177
+
178
+ @vrbo_listing_number = vrbo_listing_number
230
179
  end
231
180
 
232
181
  # Checks equality by comparing each attribute.
@@ -234,12 +183,10 @@ module Repull
234
183
  def ==(o)
235
184
  return true if self.equal?(o)
236
185
  self.class == o.class &&
237
- listing_id == o.listing_id &&
238
- vrbo_listing_number == o.vrbo_listing_number &&
239
- property_id == o.property_id &&
240
- section == o.section &&
186
+ data == o.data &&
241
187
  written == o.written &&
242
- data == o.data
188
+ data_freshness == o.data_freshness &&
189
+ vrbo_listing_number == o.vrbo_listing_number
243
190
  end
244
191
 
245
192
  # @see the `==` method
@@ -251,7 +198,7 @@ module Repull
251
198
  # Calculates hash code according to all attributes.
252
199
  # @return [Integer] Hash code
253
200
  def hash
254
- [listing_id, vrbo_listing_number, property_id, section, written, data].hash
201
+ [data, written, data_freshness, vrbo_listing_number].hash
255
202
  end
256
203
 
257
204
  # Builds the object from hash
@@ -14,8 +14,8 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module Repull
17
- # What Vrbo has stored for the section, read back after the write.
18
- class UpdateVrboListingProperty200ResponseData < ApiModelBase
17
+ # What Vrbo has after the write, read back from Vrbo.
18
+ class UpdateVrboListingDetails200ResponseData < ApiModelBase
19
19
  attr_accessor :property_type
20
20
 
21
21
  attr_accessor :property_type_options
@@ -56,7 +56,7 @@ module Repull
56
56
  :'property_type' => :'String',
57
57
  :'property_type_options' => :'Array<GetVrboListingAmenities200ResponseDataGroupsValueFieldsInnerOptionsInner>',
58
58
  :'property_name' => :'String',
59
- :'interior_size' => :'GetVrboListingContent200ResponseSectionsPropertyInteriorSize',
59
+ :'interior_size' => :'GetVrboListingContent200ResponseSectionsDetailsInteriorSize',
60
60
  :'seniors_only' => :'Boolean',
61
61
  :'long_term_renters_welcome' => :'Boolean'
62
62
  }
@@ -76,14 +76,14 @@ module Repull
76
76
  # @param [Hash] attributes Model attributes in the form of hash
77
77
  def initialize(attributes = {})
78
78
  if (!attributes.is_a?(Hash))
79
- fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingProperty200ResponseData` initialize method"
79
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::UpdateVrboListingDetails200ResponseData` initialize method"
80
80
  end
81
81
 
82
82
  # check to see if the attribute exists and convert string to symbol for hash key
83
83
  acceptable_attribute_map = self.class.acceptable_attribute_map
84
84
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
85
  if (!acceptable_attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingProperty200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::UpdateVrboListingDetails200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
87
87
  end
88
88
  h[k.to_sym] = v
89
89
  }