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.
- checksums.yaml +4 -4
- data/lib/repull/api/listings_api.rb +4 -4
- data/lib/repull/api/vrbo_api.rb +1976 -798
- data/lib/repull/models/{update_vrbo_listing_rooms200_response.rb → add_vrbo_listing_photos200_response.rb} +60 -113
- data/lib/repull/models/{update_vrbo_listing_photos200_response_data.rb → add_vrbo_listing_photos200_response_data.rb} +4 -4
- data/lib/repull/models/add_vrbo_listing_photos_request.rb +184 -0
- data/lib/repull/models/{update_vrbo_listing_photos_request_add_inner.rb → add_vrbo_listing_photos_request_photos_inner.rb} +36 -13
- data/lib/repull/models/add_vrbo_listing_room_request.rb +309 -0
- data/lib/repull/models/add_vrbo_listing_video200_response.rb +57 -110
- data/lib/repull/models/add_vrbo_listing_video200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_connection200_response.rb +147 -0
- data/lib/repull/models/get_vrbo_connection200_response_data.rb +210 -0
- data/lib/repull/models/get_vrbo_connection200_response_data_accounts_inner.rb +292 -0
- data/lib/repull/models/{update_vrbo_listing_translations_request.rb → get_vrbo_connection200_response_data_accounts_inner_sync.rb} +16 -20
- data/lib/repull/models/get_vrbo_listing200_response.rb +175 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_freshness.rb +187 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_freshness_accounts_inner.rb +194 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner.rb +548 -0
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_address.rb +208 -0
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_rates.rb → get_vrbo_listing200_response_data_inner_capacity.rb} +31 -31
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_capacity_pets.rb +158 -0
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_translations.rb → get_vrbo_listing200_response_data_inner_content.rb} +20 -18
- data/lib/repull/models/get_vrbo_listing200_response_data_inner_rating.rb +158 -0
- data/lib/repull/models/get_vrbo_listing_additional_info200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_additional_info200_response_data_freshness.rb +308 -0
- data/lib/repull/models/{get_vrbo_listing_content200_response_listing.rb → get_vrbo_listing_additional_info200_response_data_freshness_accounts_inner.rb} +42 -46
- data/lib/repull/models/get_vrbo_listing_amenities200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_amenities200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_availability200_response.rb +186 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data.rb +104 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of.rb +208 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_data_one_of_inner.rb +260 -0
- data/lib/repull/models/get_vrbo_listing_availability200_response_range.rb +156 -0
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_booking_settings200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_cancellation200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_cancellation200_response_data.rb +1 -1
- data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response.rb → get_vrbo_listing_checkin_guide200_response.rb} +49 -101
- data/lib/repull/models/{get_vrbo_listing_welcome_guide200_response_data.rb → get_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
- data/lib/repull/models/{update_vrbo_listing_rooms_request_update_inner.rb → get_vrbo_listing_checkout_guide200_response.rb} +52 -61
- data/lib/repull/models/{update_vrbo_listing_rooms_request.rb → get_vrbo_listing_checkout_guide200_response_data.rb} +26 -27
- data/lib/repull/models/get_vrbo_listing_content200_response.rb +45 -81
- data/lib/repull/models/get_vrbo_listing_content200_response_sections.rb +28 -44
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_welcome_guide.rb → get_vrbo_listing_content200_response_sections_checkin_guide.rb} +11 -11
- 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
- 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
- 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
- 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
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_description.rb → get_vrbo_listing_content200_response_sections_descriptions_inner.rb} +26 -5
- 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
- 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
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_property.rb → get_vrbo_listing_content200_response_sections_details.rb} +4 -4
- 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
- data/lib/repull/models/{get_vrbo_listing_content200_response_sections_registration.rb → get_vrbo_listing_content200_response_sections_permits.rb} +4 -4
- 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
- data/lib/repull/models/{get_vrbo_listing_translations200_response.rb → get_vrbo_listing_descriptions200_response.rb} +61 -98
- data/lib/repull/models/{get_vrbo_listing_property200_response.rb → get_vrbo_listing_details200_response.rb} +49 -101
- data/lib/repull/models/{get_vrbo_listing_property200_response_data.rb → get_vrbo_listing_details200_response_data.rb} +5 -5
- data/lib/repull/models/get_vrbo_listing_fees200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_fees200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_house_rules200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_house_rules200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_location200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_location200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_payment_terms200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_payment_terms200_response_data.rb +1 -1
- data/lib/repull/models/{get_vrbo_listing_description200_response.rb → get_vrbo_listing_permits200_response.rb} +49 -101
- data/lib/repull/models/{get_vrbo_listing_registration200_response_data.rb → get_vrbo_listing_permits200_response_data.rb} +5 -5
- data/lib/repull/models/get_vrbo_listing_photos200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_photos200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_pricing200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_pricing200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_protection200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_protection200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_rates200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_rates200_response_data.rb +2 -2
- 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
- data/lib/repull/models/get_vrbo_listing_rooms200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_rooms200_response_data.rb +1 -1
- data/lib/repull/models/{get_vrbo_listing_registration200_response.rb → get_vrbo_listing_safety_disclosures200_response.rb} +49 -101
- data/lib/repull/models/get_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
- data/lib/repull/models/get_vrbo_listing_story200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_story200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_taxes200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_taxes200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_listing_videos200_response.rb +46 -98
- data/lib/repull/models/get_vrbo_listing_videos200_response_data.rb +1 -1
- data/lib/repull/models/get_vrbo_publish_job200_response_job.rb +1 -1
- data/lib/repull/models/{update_vrbo_listing_translations_request_set_inner.rb → map_vrbo_listing200_response.rb} +40 -41
- data/lib/repull/models/map_vrbo_listing_request.rb +205 -0
- data/lib/repull/models/reorder_vrbo_listing_photos_request.rb +184 -0
- data/lib/repull/models/set_vrbo_listing_cover_photo_request.rb +164 -0
- data/lib/repull/models/update_vrbo_listing_additional_info200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_additional_info200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_amenities200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_amenities200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_availability202_response.rb +156 -0
- data/lib/repull/models/{update_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_availability202_response_data.rb} +25 -21
- data/lib/repull/models/update_vrbo_listing_availability_request.rb +220 -0
- data/lib/repull/models/update_vrbo_listing_availability_request_operations_inner.rb +299 -0
- data/lib/repull/models/update_vrbo_listing_booking_settings200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_booking_settings200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_cancellation200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_cancellation200_response_data.rb +1 -1
- data/lib/repull/models/{update_vrbo_listing_translations200_response.rb → update_vrbo_listing_checkin_guide200_response.rb} +60 -113
- data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response_data.rb → update_vrbo_listing_checkin_guide200_response_data.rb} +12 -12
- data/lib/repull/models/{update_vrbo_listing_welcome_guide_request.rb → update_vrbo_listing_checkin_guide_request.rb} +10 -10
- data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_access.rb → update_vrbo_listing_checkin_guide_request_access.rb} +3 -3
- data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_check_in.rb → update_vrbo_listing_checkin_guide_request_check_in.rb} +3 -3
- data/lib/repull/models/{update_vrbo_listing_welcome_guide_request_wifi.rb → update_vrbo_listing_checkin_guide_request_wifi.rb} +3 -3
- data/lib/repull/models/{update_vrbo_listing_welcome_guide200_response.rb → update_vrbo_listing_descriptions200_response.rb} +63 -113
- data/lib/repull/models/{update_vrbo_listing_description_request.rb → update_vrbo_listing_descriptions_request.rb} +14 -4
- data/lib/repull/models/{update_vrbo_listing_photos200_response.rb → update_vrbo_listing_details200_response.rb} +60 -113
- data/lib/repull/models/{update_vrbo_listing_property200_response_data.rb → update_vrbo_listing_details200_response_data.rb} +5 -5
- data/lib/repull/models/{update_vrbo_listing_property_request.rb → update_vrbo_listing_details_request.rb} +4 -4
- data/lib/repull/models/{update_vrbo_listing_property_request_interior_size.rb → update_vrbo_listing_details_request_interior_size.rb} +3 -3
- data/lib/repull/models/update_vrbo_listing_fees200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_fees200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_house_rules200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_house_rules200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_location200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_location200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_payment_terms200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_payment_terms200_response_data.rb +1 -1
- data/lib/repull/models/{update_vrbo_listing_property200_response.rb → update_vrbo_listing_permits200_response.rb} +60 -113
- data/lib/repull/models/{update_vrbo_listing_registration200_response_data.rb → update_vrbo_listing_permits200_response_data.rb} +5 -5
- data/lib/repull/models/{update_vrbo_listing_registration_request.rb → update_vrbo_listing_permits_request.rb} +4 -4
- data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner.rb → update_vrbo_listing_permits_request_settings_inner.rb} +4 -4
- data/lib/repull/models/{update_vrbo_listing_registration_request_settings_inner_value.rb → update_vrbo_listing_permits_request_settings_inner_value.rb} +1 -1
- data/lib/repull/models/update_vrbo_listing_photo_request.rb +229 -0
- data/lib/repull/models/update_vrbo_listing_pricing200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_pricing200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_protection200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_protection200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_rates200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_rates200_response_data.rb +2 -2
- data/lib/repull/models/{update_vrbo_listing_description200_response.rb → update_vrbo_listing_room200_response.rb} +60 -113
- data/lib/repull/models/{update_vrbo_listing_rooms200_response_data.rb → update_vrbo_listing_room200_response_data.rb} +4 -4
- data/lib/repull/models/update_vrbo_listing_room_request.rb +254 -0
- data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner_amenities.rb → update_vrbo_listing_room_request_amenities.rb} +3 -3
- 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
- data/lib/repull/models/{update_vrbo_listing_rooms_request_add_inner.rb → update_vrbo_listing_room_request_beds_inner.rb} +53 -47
- data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response.rb +245 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures200_response_data.rb +151 -0
- data/lib/repull/models/{get_vrbo_listing_translations200_response_data.rb → update_vrbo_listing_safety_disclosures_request.rb} +27 -24
- data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups.rb +156 -0
- data/lib/repull/models/update_vrbo_listing_safety_disclosures_request_groups_home_safety.rb +166 -0
- data/lib/repull/models/update_vrbo_listing_story200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_story200_response_data.rb +1 -1
- data/lib/repull/models/update_vrbo_listing_taxes200_response.rb +57 -110
- data/lib/repull/models/update_vrbo_listing_taxes200_response_data.rb +1 -1
- data/lib/repull/models/{update_vrbo_listing_photos_request.rb → vrbo_listing_action200_response.rb} +47 -43
- data/lib/repull/models/vrbo_listing_action200_response_units_inner.rb +192 -0
- data/lib/repull/models/vrbo_listing_action_request.rb +210 -0
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +89 -60
- data/openapi/v1.json +10116 -2944
- metadata +90 -61
- data/lib/repull/models/get_vrbo_listing_content200_response_sections_translations_items_inner.rb +0 -167
- data/lib/repull/models/get_vrbo_listing_description200_response_data.rb +0 -168
- data/lib/repull/models/update_vrbo_listing_description200_response_data.rb +0 -168
- data/lib/repull/models/update_vrbo_listing_registration200_response.rb +0 -298
|
@@ -14,26 +14,20 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
19
|
-
|
|
20
|
-
attr_accessor :vrbo_listing_number
|
|
21
|
-
|
|
22
|
-
# Vrbo's property id for the unit.
|
|
23
|
-
attr_accessor :property_id
|
|
17
|
+
class GetVrboListingCheckinGuide200Response < ApiModelBase
|
|
18
|
+
attr_accessor :data
|
|
24
19
|
|
|
25
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :data_freshness
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
# The Vrbo listing number this is about.
|
|
23
|
+
attr_accessor :vrbo_listing_number
|
|
28
24
|
|
|
29
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
26
|
def self.attribute_map
|
|
31
27
|
{
|
|
32
|
-
:'
|
|
33
|
-
:'
|
|
34
|
-
:'
|
|
35
|
-
:'section' => :'section',
|
|
36
|
-
:'data' => :'data'
|
|
28
|
+
:'data' => :'data',
|
|
29
|
+
:'data_freshness' => :'dataFreshness',
|
|
30
|
+
:'vrbo_listing_number' => :'vrboListingNumber'
|
|
37
31
|
}
|
|
38
32
|
end
|
|
39
33
|
|
|
@@ -50,11 +44,9 @@ module Repull
|
|
|
50
44
|
# Attribute type mapping.
|
|
51
45
|
def self.openapi_types
|
|
52
46
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'section' => :'String',
|
|
57
|
-
:'data' => :'GetVrboListingWelcomeGuide200ResponseData'
|
|
47
|
+
:'data' => :'GetVrboListingCheckinGuide200ResponseData',
|
|
48
|
+
:'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
|
|
49
|
+
:'vrbo_listing_number' => :'String'
|
|
58
50
|
}
|
|
59
51
|
end
|
|
60
52
|
|
|
@@ -68,46 +60,34 @@ module Repull
|
|
|
68
60
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
61
|
def initialize(attributes = {})
|
|
70
62
|
if (!attributes.is_a?(Hash))
|
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
63
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingCheckinGuide200Response` initialize method"
|
|
72
64
|
end
|
|
73
65
|
|
|
74
66
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
67
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
68
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
69
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
70
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingCheckinGuide200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
71
|
end
|
|
80
72
|
h[k.to_sym] = v
|
|
81
73
|
}
|
|
82
74
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
85
|
-
else
|
|
86
|
-
self.listing_id = nil
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
if attributes.key?(:'vrbo_listing_number')
|
|
90
|
-
self.vrbo_listing_number = attributes[:'vrbo_listing_number']
|
|
91
|
-
else
|
|
92
|
-
self.vrbo_listing_number = nil
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.key?(:'property_id')
|
|
96
|
-
self.property_id = attributes[:'property_id']
|
|
75
|
+
if attributes.key?(:'data')
|
|
76
|
+
self.data = attributes[:'data']
|
|
97
77
|
else
|
|
98
|
-
self.
|
|
78
|
+
self.data = nil
|
|
99
79
|
end
|
|
100
80
|
|
|
101
|
-
if attributes.key?(:'
|
|
102
|
-
self.
|
|
81
|
+
if attributes.key?(:'data_freshness')
|
|
82
|
+
self.data_freshness = attributes[:'data_freshness']
|
|
103
83
|
else
|
|
104
|
-
self.
|
|
84
|
+
self.data_freshness = nil
|
|
105
85
|
end
|
|
106
86
|
|
|
107
|
-
if attributes.key?(:'
|
|
108
|
-
self.
|
|
87
|
+
if attributes.key?(:'vrbo_listing_number')
|
|
88
|
+
self.vrbo_listing_number = attributes[:'vrbo_listing_number']
|
|
109
89
|
else
|
|
110
|
-
self.
|
|
90
|
+
self.vrbo_listing_number = nil
|
|
111
91
|
end
|
|
112
92
|
end
|
|
113
93
|
|
|
@@ -116,24 +96,16 @@ module Repull
|
|
|
116
96
|
def list_invalid_properties
|
|
117
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
118
98
|
invalid_properties = Array.new
|
|
119
|
-
if @
|
|
120
|
-
invalid_properties.push('invalid value for "
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
if @vrbo_listing_number.nil?
|
|
124
|
-
invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if @property_id.nil?
|
|
128
|
-
invalid_properties.push('invalid value for "property_id", property_id cannot be nil.')
|
|
99
|
+
if @data.nil?
|
|
100
|
+
invalid_properties.push('invalid value for "data", data cannot be nil.')
|
|
129
101
|
end
|
|
130
102
|
|
|
131
|
-
if @
|
|
132
|
-
invalid_properties.push('invalid value for "
|
|
103
|
+
if @data_freshness.nil?
|
|
104
|
+
invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
|
|
133
105
|
end
|
|
134
106
|
|
|
135
|
-
if @
|
|
136
|
-
invalid_properties.push('invalid value for "
|
|
107
|
+
if @vrbo_listing_number.nil?
|
|
108
|
+
invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
|
|
137
109
|
end
|
|
138
110
|
|
|
139
111
|
invalid_properties
|
|
@@ -143,62 +115,40 @@ module Repull
|
|
|
143
115
|
# @return true if the model is valid
|
|
144
116
|
def valid?
|
|
145
117
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
-
return false if @listing_id.nil?
|
|
147
|
-
return false if @vrbo_listing_number.nil?
|
|
148
|
-
return false if @property_id.nil?
|
|
149
|
-
return false if @section.nil?
|
|
150
118
|
return false if @data.nil?
|
|
119
|
+
return false if @data_freshness.nil?
|
|
120
|
+
return false if @vrbo_listing_number.nil?
|
|
151
121
|
true
|
|
152
122
|
end
|
|
153
123
|
|
|
154
124
|
# Custom attribute writer method with validation
|
|
155
|
-
# @param [Object]
|
|
156
|
-
def
|
|
157
|
-
if
|
|
158
|
-
fail ArgumentError, '
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
@listing_id = listing_id
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
# Custom attribute writer method with validation
|
|
165
|
-
# @param [Object] vrbo_listing_number Value to be assigned
|
|
166
|
-
def vrbo_listing_number=(vrbo_listing_number)
|
|
167
|
-
if vrbo_listing_number.nil?
|
|
168
|
-
fail ArgumentError, 'vrbo_listing_number cannot be nil'
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
@vrbo_listing_number = vrbo_listing_number
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# Custom attribute writer method with validation
|
|
175
|
-
# @param [Object] property_id Value to be assigned
|
|
176
|
-
def property_id=(property_id)
|
|
177
|
-
if property_id.nil?
|
|
178
|
-
fail ArgumentError, 'property_id cannot be nil'
|
|
125
|
+
# @param [Object] data Value to be assigned
|
|
126
|
+
def data=(data)
|
|
127
|
+
if data.nil?
|
|
128
|
+
fail ArgumentError, 'data cannot be nil'
|
|
179
129
|
end
|
|
180
130
|
|
|
181
|
-
@
|
|
131
|
+
@data = data
|
|
182
132
|
end
|
|
183
133
|
|
|
184
134
|
# Custom attribute writer method with validation
|
|
185
|
-
# @param [Object]
|
|
186
|
-
def
|
|
187
|
-
if
|
|
188
|
-
fail ArgumentError, '
|
|
135
|
+
# @param [Object] data_freshness Value to be assigned
|
|
136
|
+
def data_freshness=(data_freshness)
|
|
137
|
+
if data_freshness.nil?
|
|
138
|
+
fail ArgumentError, 'data_freshness cannot be nil'
|
|
189
139
|
end
|
|
190
140
|
|
|
191
|
-
@
|
|
141
|
+
@data_freshness = data_freshness
|
|
192
142
|
end
|
|
193
143
|
|
|
194
144
|
# Custom attribute writer method with validation
|
|
195
|
-
# @param [Object]
|
|
196
|
-
def
|
|
197
|
-
if
|
|
198
|
-
fail ArgumentError, '
|
|
145
|
+
# @param [Object] vrbo_listing_number Value to be assigned
|
|
146
|
+
def vrbo_listing_number=(vrbo_listing_number)
|
|
147
|
+
if vrbo_listing_number.nil?
|
|
148
|
+
fail ArgumentError, 'vrbo_listing_number cannot be nil'
|
|
199
149
|
end
|
|
200
150
|
|
|
201
|
-
@
|
|
151
|
+
@vrbo_listing_number = vrbo_listing_number
|
|
202
152
|
end
|
|
203
153
|
|
|
204
154
|
# Checks equality by comparing each attribute.
|
|
@@ -206,11 +156,9 @@ module Repull
|
|
|
206
156
|
def ==(o)
|
|
207
157
|
return true if self.equal?(o)
|
|
208
158
|
self.class == o.class &&
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
section == o.section &&
|
|
213
|
-
data == o.data
|
|
159
|
+
data == o.data &&
|
|
160
|
+
data_freshness == o.data_freshness &&
|
|
161
|
+
vrbo_listing_number == o.vrbo_listing_number
|
|
214
162
|
end
|
|
215
163
|
|
|
216
164
|
# @see the `==` method
|
|
@@ -222,7 +170,7 @@ module Repull
|
|
|
222
170
|
# Calculates hash code according to all attributes.
|
|
223
171
|
# @return [Integer] Hash code
|
|
224
172
|
def hash
|
|
225
|
-
[
|
|
173
|
+
[data, data_freshness, vrbo_listing_number].hash
|
|
226
174
|
end
|
|
227
175
|
|
|
228
176
|
# Builds the object from hash
|
|
@@ -14,8 +14,8 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
# The section as Vrbo has it
|
|
18
|
-
class
|
|
17
|
+
# The section as Vrbo has it.
|
|
18
|
+
class GetVrboListingCheckinGuide200ResponseData < ApiModelBase
|
|
19
19
|
attr_accessor :check_in
|
|
20
20
|
|
|
21
21
|
attr_accessor :check_out
|
|
@@ -60,14 +60,14 @@ module Repull
|
|
|
60
60
|
# Attribute type mapping.
|
|
61
61
|
def self.openapi_types
|
|
62
62
|
{
|
|
63
|
-
:'check_in' => :'
|
|
64
|
-
:'check_out' => :'
|
|
65
|
-
:'driving_directions' => :'
|
|
66
|
-
:'parking_directions' => :'
|
|
67
|
-
:'access' => :'
|
|
68
|
-
:'wifi' => :'
|
|
69
|
-
:'amenities' => :'Hash<String,
|
|
70
|
-
:'contacts' => :'Array<
|
|
63
|
+
:'check_in' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
|
|
64
|
+
:'check_out' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
|
|
65
|
+
:'driving_directions' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
|
|
66
|
+
:'parking_directions' => :'GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn',
|
|
67
|
+
:'access' => :'GetVrboListingContent200ResponseSectionsCheckinGuideAccess',
|
|
68
|
+
:'wifi' => :'GetVrboListingContent200ResponseSectionsCheckinGuideWifi',
|
|
69
|
+
:'amenities' => :'Hash<String, GetVrboListingContent200ResponseSectionsCheckinGuideCheckIn>',
|
|
70
|
+
:'contacts' => :'Array<GetVrboListingContent200ResponseSectionsCheckinGuideContactsInner>'
|
|
71
71
|
}
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -87,14 +87,14 @@ module Repull
|
|
|
87
87
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
88
|
def initialize(attributes = {})
|
|
89
89
|
if (!attributes.is_a?(Hash))
|
|
90
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingCheckinGuide200ResponseData` initialize method"
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
94
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
95
95
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
96
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingCheckinGuide200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
98
98
|
end
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
@@ -14,29 +14,20 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
class
|
|
18
|
-
attr_accessor :
|
|
17
|
+
class GetVrboListingCheckoutGuide200Response < ApiModelBase
|
|
18
|
+
attr_accessor :data
|
|
19
19
|
|
|
20
|
-
attr_accessor :
|
|
20
|
+
attr_accessor :data_freshness
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
24
|
-
|
|
25
|
-
attr_accessor :description
|
|
26
|
-
|
|
27
|
-
attr_accessor :beds
|
|
28
|
-
|
|
29
|
-
attr_accessor :amenities
|
|
22
|
+
# The Vrbo listing number this is about.
|
|
23
|
+
attr_accessor :vrbo_listing_number
|
|
30
24
|
|
|
31
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
26
|
def self.attribute_map
|
|
33
27
|
{
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
37
|
-
:'description' => :'description',
|
|
38
|
-
:'beds' => :'beds',
|
|
39
|
-
:'amenities' => :'amenities'
|
|
28
|
+
:'data' => :'data',
|
|
29
|
+
:'data_freshness' => :'dataFreshness',
|
|
30
|
+
:'vrbo_listing_number' => :'vrboListingNumber'
|
|
40
31
|
}
|
|
41
32
|
end
|
|
42
33
|
|
|
@@ -53,18 +44,16 @@ module Repull
|
|
|
53
44
|
# Attribute type mapping.
|
|
54
45
|
def self.openapi_types
|
|
55
46
|
{
|
|
56
|
-
:'
|
|
57
|
-
:'
|
|
58
|
-
:'
|
|
59
|
-
:'description' => :'String',
|
|
60
|
-
:'beds' => :'Array<GetVrboListingContent200ResponseSectionsRoomsSpacesInnerBedsInner>',
|
|
61
|
-
:'amenities' => :'UpdateVrboListingRoomsRequestAddInnerAmenities'
|
|
47
|
+
:'data' => :'GetVrboListingCheckoutGuide200ResponseData',
|
|
48
|
+
:'data_freshness' => :'GetVrboListingAdditionalInfo200ResponseDataFreshness',
|
|
49
|
+
:'vrbo_listing_number' => :'String'
|
|
62
50
|
}
|
|
63
51
|
end
|
|
64
52
|
|
|
65
53
|
# List of attributes with nullable: true
|
|
66
54
|
def self.openapi_nullable
|
|
67
55
|
Set.new([
|
|
56
|
+
:'data',
|
|
68
57
|
])
|
|
69
58
|
end
|
|
70
59
|
|
|
@@ -72,44 +61,34 @@ module Repull
|
|
|
72
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
62
|
def initialize(attributes = {})
|
|
74
63
|
if (!attributes.is_a?(Hash))
|
|
75
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
64
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingCheckoutGuide200Response` initialize method"
|
|
76
65
|
end
|
|
77
66
|
|
|
78
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
68
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
70
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingCheckoutGuide200Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
72
|
end
|
|
84
73
|
h[k.to_sym] = v
|
|
85
74
|
}
|
|
86
75
|
|
|
87
|
-
if attributes.key?(:'
|
|
88
|
-
self.
|
|
76
|
+
if attributes.key?(:'data')
|
|
77
|
+
self.data = attributes[:'data']
|
|
89
78
|
else
|
|
90
|
-
self.
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
if attributes.key?(:'name')
|
|
94
|
-
self.name = attributes[:'name']
|
|
79
|
+
self.data = nil
|
|
95
80
|
end
|
|
96
81
|
|
|
97
|
-
if attributes.key?(:'
|
|
98
|
-
self.
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if attributes.key?(:'description')
|
|
102
|
-
self.description = attributes[:'description']
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
if attributes.key?(:'beds')
|
|
106
|
-
if (value = attributes[:'beds']).is_a?(Array)
|
|
107
|
-
self.beds = value
|
|
108
|
-
end
|
|
82
|
+
if attributes.key?(:'data_freshness')
|
|
83
|
+
self.data_freshness = attributes[:'data_freshness']
|
|
84
|
+
else
|
|
85
|
+
self.data_freshness = nil
|
|
109
86
|
end
|
|
110
87
|
|
|
111
|
-
if attributes.key?(:'
|
|
112
|
-
self.
|
|
88
|
+
if attributes.key?(:'vrbo_listing_number')
|
|
89
|
+
self.vrbo_listing_number = attributes[:'vrbo_listing_number']
|
|
90
|
+
else
|
|
91
|
+
self.vrbo_listing_number = nil
|
|
113
92
|
end
|
|
114
93
|
end
|
|
115
94
|
|
|
@@ -118,8 +97,12 @@ module Repull
|
|
|
118
97
|
def list_invalid_properties
|
|
119
98
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
120
99
|
invalid_properties = Array.new
|
|
121
|
-
if @
|
|
122
|
-
invalid_properties.push('invalid value for "
|
|
100
|
+
if @data_freshness.nil?
|
|
101
|
+
invalid_properties.push('invalid value for "data_freshness", data_freshness cannot be nil.')
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if @vrbo_listing_number.nil?
|
|
105
|
+
invalid_properties.push('invalid value for "vrbo_listing_number", vrbo_listing_number cannot be nil.')
|
|
123
106
|
end
|
|
124
107
|
|
|
125
108
|
invalid_properties
|
|
@@ -129,18 +112,29 @@ module Repull
|
|
|
129
112
|
# @return true if the model is valid
|
|
130
113
|
def valid?
|
|
131
114
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
132
|
-
return false if @
|
|
115
|
+
return false if @data_freshness.nil?
|
|
116
|
+
return false if @vrbo_listing_number.nil?
|
|
133
117
|
true
|
|
134
118
|
end
|
|
135
119
|
|
|
136
120
|
# Custom attribute writer method with validation
|
|
137
|
-
# @param [Object]
|
|
138
|
-
def
|
|
139
|
-
if
|
|
140
|
-
fail ArgumentError, '
|
|
121
|
+
# @param [Object] data_freshness Value to be assigned
|
|
122
|
+
def data_freshness=(data_freshness)
|
|
123
|
+
if data_freshness.nil?
|
|
124
|
+
fail ArgumentError, 'data_freshness cannot be nil'
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
@data_freshness = data_freshness
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# Custom attribute writer method with validation
|
|
131
|
+
# @param [Object] vrbo_listing_number Value to be assigned
|
|
132
|
+
def vrbo_listing_number=(vrbo_listing_number)
|
|
133
|
+
if vrbo_listing_number.nil?
|
|
134
|
+
fail ArgumentError, 'vrbo_listing_number cannot be nil'
|
|
141
135
|
end
|
|
142
136
|
|
|
143
|
-
@
|
|
137
|
+
@vrbo_listing_number = vrbo_listing_number
|
|
144
138
|
end
|
|
145
139
|
|
|
146
140
|
# Checks equality by comparing each attribute.
|
|
@@ -148,12 +142,9 @@ module Repull
|
|
|
148
142
|
def ==(o)
|
|
149
143
|
return true if self.equal?(o)
|
|
150
144
|
self.class == o.class &&
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
description == o.description &&
|
|
155
|
-
beds == o.beds &&
|
|
156
|
-
amenities == o.amenities
|
|
145
|
+
data == o.data &&
|
|
146
|
+
data_freshness == o.data_freshness &&
|
|
147
|
+
vrbo_listing_number == o.vrbo_listing_number
|
|
157
148
|
end
|
|
158
149
|
|
|
159
150
|
# @see the `==` method
|
|
@@ -165,7 +156,7 @@ module Repull
|
|
|
165
156
|
# Calculates hash code according to all attributes.
|
|
166
157
|
# @return [Integer] Hash code
|
|
167
158
|
def hash
|
|
168
|
-
[
|
|
159
|
+
[data, data_freshness, vrbo_listing_number].hash
|
|
169
160
|
end
|
|
170
161
|
|
|
171
162
|
# Builds the object from hash
|
|
@@ -14,19 +14,20 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
# The section as Vrbo has it.
|
|
18
|
+
class GetVrboListingCheckoutGuide200ResponseData < ApiModelBase
|
|
19
|
+
attr_accessor :instructions
|
|
19
20
|
|
|
20
|
-
attr_accessor :
|
|
21
|
+
attr_accessor :available
|
|
21
22
|
|
|
22
|
-
attr_accessor :
|
|
23
|
+
attr_accessor :photos
|
|
23
24
|
|
|
24
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
26
|
def self.attribute_map
|
|
26
27
|
{
|
|
27
|
-
:'
|
|
28
|
-
:'
|
|
29
|
-
:'
|
|
28
|
+
:'instructions' => :'instructions',
|
|
29
|
+
:'available' => :'available',
|
|
30
|
+
:'photos' => :'photos'
|
|
30
31
|
}
|
|
31
32
|
end
|
|
32
33
|
|
|
@@ -43,15 +44,17 @@ module Repull
|
|
|
43
44
|
# Attribute type mapping.
|
|
44
45
|
def self.openapi_types
|
|
45
46
|
{
|
|
46
|
-
:'
|
|
47
|
-
:'
|
|
48
|
-
:'
|
|
47
|
+
:'instructions' => :'String',
|
|
48
|
+
:'available' => :'Boolean',
|
|
49
|
+
:'photos' => :'Array<String>'
|
|
49
50
|
}
|
|
50
51
|
end
|
|
51
52
|
|
|
52
53
|
# List of attributes with nullable: true
|
|
53
54
|
def self.openapi_nullable
|
|
54
55
|
Set.new([
|
|
56
|
+
:'instructions',
|
|
57
|
+
:'available',
|
|
55
58
|
])
|
|
56
59
|
end
|
|
57
60
|
|
|
@@ -59,33 +62,29 @@ module Repull
|
|
|
59
62
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
60
63
|
def initialize(attributes = {})
|
|
61
64
|
if (!attributes.is_a?(Hash))
|
|
62
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::GetVrboListingCheckoutGuide200ResponseData` initialize method"
|
|
63
66
|
end
|
|
64
67
|
|
|
65
68
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
66
69
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
67
70
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
68
71
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
69
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::GetVrboListingCheckoutGuide200ResponseData`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
70
73
|
end
|
|
71
74
|
h[k.to_sym] = v
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
if attributes.key?(:'
|
|
75
|
-
|
|
76
|
-
self.add = value
|
|
77
|
-
end
|
|
77
|
+
if attributes.key?(:'instructions')
|
|
78
|
+
self.instructions = attributes[:'instructions']
|
|
78
79
|
end
|
|
79
80
|
|
|
80
|
-
if attributes.key?(:'
|
|
81
|
-
|
|
82
|
-
self.update = value
|
|
83
|
-
end
|
|
81
|
+
if attributes.key?(:'available')
|
|
82
|
+
self.available = attributes[:'available']
|
|
84
83
|
end
|
|
85
84
|
|
|
86
|
-
if attributes.key?(:'
|
|
87
|
-
if (value = attributes[:'
|
|
88
|
-
self.
|
|
85
|
+
if attributes.key?(:'photos')
|
|
86
|
+
if (value = attributes[:'photos']).is_a?(Array)
|
|
87
|
+
self.photos = value
|
|
89
88
|
end
|
|
90
89
|
end
|
|
91
90
|
end
|
|
@@ -110,9 +109,9 @@ module Repull
|
|
|
110
109
|
def ==(o)
|
|
111
110
|
return true if self.equal?(o)
|
|
112
111
|
self.class == o.class &&
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
instructions == o.instructions &&
|
|
113
|
+
available == o.available &&
|
|
114
|
+
photos == o.photos
|
|
116
115
|
end
|
|
117
116
|
|
|
118
117
|
# @see the `==` method
|
|
@@ -124,7 +123,7 @@ module Repull
|
|
|
124
123
|
# Calculates hash code according to all attributes.
|
|
125
124
|
# @return [Integer] Hash code
|
|
126
125
|
def hash
|
|
127
|
-
[
|
|
126
|
+
[instructions, available, photos].hash
|
|
128
127
|
end
|
|
129
128
|
|
|
130
129
|
# Builds the object from hash
|