repull 0.2.34 → 0.2.35
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/connect_api.rb +4 -4
- data/lib/repull/api/health_api.rb +3 -3
- data/lib/repull/models/connect_session_completed_payload.rb +1 -1
- data/lib/repull/models/connect_status_accounts_inner.rb +12 -1
- data/lib/repull/models/create_connect_session_request.rb +25 -1
- data/lib/repull/models/create_connection_request.rb +2 -22
- data/lib/repull/models/list_connection_units200_response.rb +12 -1
- data/lib/repull/models/list_connection_units200_response_units_inner.rb +1 -0
- data/lib/repull/models/listing_address.rb +62 -5
- data/lib/repull/models/message.rb +24 -1
- data/lib/repull/models/{calendar_updated_payload.rb → postal_address.rb} +67 -35
- data/lib/repull/models/property.rb +12 -2
- data/lib/repull/models/webhook_event.rb +0 -2
- data/lib/repull/models/webhook_event_type.rb +1 -2
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +1 -6
- data/openapi/v1.json +132 -355
- metadata +3 -8
- data/lib/repull/api/plumguide_api.rb +0 -552
- data/lib/repull/models/calendar_updated_event.rb +0 -281
- data/lib/repull/models/calendar_updated_payload_range.rb +0 -156
- data/lib/repull/models/plumguide_listing.rb +0 -167
- data/lib/repull/models/plumguide_listing_list_response.rb +0 -158
|
@@ -14,26 +14,34 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
#
|
|
18
|
-
class
|
|
19
|
-
|
|
17
|
+
# The full postal address, unit included. Returned on every active row of `GET /v1/properties`, `GET /v1/properties/{id}`, `GET /v1/listings` and `GET /v1/listings/{id}` (on listings, these fields sit inside `address`). Each part is read from the listing first, then from the connected channels (Airbnb, Vrbo, Booking.com), so `line2` carries the apartment or unit number that tells units in the same building apart. A part nobody has stored is `null`.
|
|
18
|
+
class PostalAddress < ApiModelBase
|
|
19
|
+
# Street address: number and street.
|
|
20
|
+
attr_accessor :line1
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
# Apartment, unit, suite or building.
|
|
23
|
+
attr_accessor :line2
|
|
22
24
|
|
|
23
|
-
attr_accessor :
|
|
25
|
+
attr_accessor :city
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
# State, province or region.
|
|
28
|
+
attr_accessor :state
|
|
26
29
|
|
|
27
|
-
|
|
30
|
+
# Postal or ZIP code.
|
|
31
|
+
attr_accessor :postal_code
|
|
32
|
+
|
|
33
|
+
# ISO 3166-1 alpha-2 country code.
|
|
34
|
+
attr_accessor :country_code
|
|
28
35
|
|
|
29
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
37
|
def self.attribute_map
|
|
31
38
|
{
|
|
32
|
-
:'
|
|
33
|
-
:'
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
36
|
-
:'
|
|
39
|
+
:'line1' => :'line1',
|
|
40
|
+
:'line2' => :'line2',
|
|
41
|
+
:'city' => :'city',
|
|
42
|
+
:'state' => :'state',
|
|
43
|
+
:'postal_code' => :'postalCode',
|
|
44
|
+
:'country_code' => :'countryCode'
|
|
37
45
|
}
|
|
38
46
|
end
|
|
39
47
|
|
|
@@ -50,17 +58,24 @@ module Repull
|
|
|
50
58
|
# Attribute type mapping.
|
|
51
59
|
def self.openapi_types
|
|
52
60
|
{
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
56
|
-
:'
|
|
57
|
-
:'
|
|
61
|
+
:'line1' => :'String',
|
|
62
|
+
:'line2' => :'String',
|
|
63
|
+
:'city' => :'String',
|
|
64
|
+
:'state' => :'String',
|
|
65
|
+
:'postal_code' => :'String',
|
|
66
|
+
:'country_code' => :'String'
|
|
58
67
|
}
|
|
59
68
|
end
|
|
60
69
|
|
|
61
70
|
# List of attributes with nullable: true
|
|
62
71
|
def self.openapi_nullable
|
|
63
72
|
Set.new([
|
|
73
|
+
:'line1',
|
|
74
|
+
:'line2',
|
|
75
|
+
:'city',
|
|
76
|
+
:'state',
|
|
77
|
+
:'postal_code',
|
|
78
|
+
:'country_code'
|
|
64
79
|
])
|
|
65
80
|
end
|
|
66
81
|
|
|
@@ -68,36 +83,52 @@ module Repull
|
|
|
68
83
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
69
84
|
def initialize(attributes = {})
|
|
70
85
|
if (!attributes.is_a?(Hash))
|
|
71
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::
|
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::PostalAddress` initialize method"
|
|
72
87
|
end
|
|
73
88
|
|
|
74
89
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
75
90
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
76
91
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
77
92
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
78
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::
|
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::PostalAddress`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
79
94
|
end
|
|
80
95
|
h[k.to_sym] = v
|
|
81
96
|
}
|
|
82
97
|
|
|
83
|
-
if attributes.key?(:'
|
|
84
|
-
self.
|
|
98
|
+
if attributes.key?(:'line1')
|
|
99
|
+
self.line1 = attributes[:'line1']
|
|
100
|
+
else
|
|
101
|
+
self.line1 = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'line2')
|
|
105
|
+
self.line2 = attributes[:'line2']
|
|
106
|
+
else
|
|
107
|
+
self.line2 = nil
|
|
85
108
|
end
|
|
86
109
|
|
|
87
|
-
if attributes.key?(:'
|
|
88
|
-
self.
|
|
110
|
+
if attributes.key?(:'city')
|
|
111
|
+
self.city = attributes[:'city']
|
|
112
|
+
else
|
|
113
|
+
self.city = nil
|
|
89
114
|
end
|
|
90
115
|
|
|
91
|
-
if attributes.key?(:'
|
|
92
|
-
self.
|
|
116
|
+
if attributes.key?(:'state')
|
|
117
|
+
self.state = attributes[:'state']
|
|
118
|
+
else
|
|
119
|
+
self.state = nil
|
|
93
120
|
end
|
|
94
121
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
122
|
+
if attributes.key?(:'postal_code')
|
|
123
|
+
self.postal_code = attributes[:'postal_code']
|
|
124
|
+
else
|
|
125
|
+
self.postal_code = nil
|
|
97
126
|
end
|
|
98
127
|
|
|
99
|
-
if attributes.key?(:'
|
|
100
|
-
self.
|
|
128
|
+
if attributes.key?(:'country_code')
|
|
129
|
+
self.country_code = attributes[:'country_code']
|
|
130
|
+
else
|
|
131
|
+
self.country_code = nil
|
|
101
132
|
end
|
|
102
133
|
end
|
|
103
134
|
|
|
@@ -121,11 +152,12 @@ module Repull
|
|
|
121
152
|
def ==(o)
|
|
122
153
|
return true if self.equal?(o)
|
|
123
154
|
self.class == o.class &&
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
155
|
+
line1 == o.line1 &&
|
|
156
|
+
line2 == o.line2 &&
|
|
157
|
+
city == o.city &&
|
|
158
|
+
state == o.state &&
|
|
159
|
+
postal_code == o.postal_code &&
|
|
160
|
+
country_code == o.country_code
|
|
129
161
|
end
|
|
130
162
|
|
|
131
163
|
# @see the `==` method
|
|
@@ -137,7 +169,7 @@ module Repull
|
|
|
137
169
|
# Calculates hash code according to all attributes.
|
|
138
170
|
# @return [Integer] Hash code
|
|
139
171
|
def hash
|
|
140
|
-
[
|
|
172
|
+
[line1, line2, city, state, postal_code, country_code].hash
|
|
141
173
|
end
|
|
142
174
|
|
|
143
175
|
# Builds the object from hash
|
|
@@ -28,11 +28,14 @@ module Repull
|
|
|
28
28
|
# The title guests see on the channel (e.g. the Airbnb listing title). `name` is the host's internal nickname for the listing; show `publicName` in anything a guest or end user reads. Present on inactive rows too.
|
|
29
29
|
attr_accessor :public_name
|
|
30
30
|
|
|
31
|
-
# Street
|
|
31
|
+
# Street line only, as stored on the listing — no unit, state or postal code. Kept for existing integrations; read `addressDetails` for the full postal address.
|
|
32
32
|
attr_accessor :address
|
|
33
33
|
|
|
34
|
+
# City as stored on the listing. Kept for existing integrations; `addressDetails.city` is the resolved city.
|
|
34
35
|
attr_accessor :city
|
|
35
36
|
|
|
37
|
+
attr_accessor :address_details
|
|
38
|
+
|
|
36
39
|
# Detail endpoint only. Decimal degrees, as a string.
|
|
37
40
|
attr_accessor :latitude
|
|
38
41
|
|
|
@@ -69,6 +72,7 @@ module Repull
|
|
|
69
72
|
:'public_name' => :'publicName',
|
|
70
73
|
:'address' => :'address',
|
|
71
74
|
:'city' => :'city',
|
|
75
|
+
:'address_details' => :'addressDetails',
|
|
72
76
|
:'latitude' => :'latitude',
|
|
73
77
|
:'longitude' => :'longitude',
|
|
74
78
|
:'currency' => :'currency',
|
|
@@ -100,6 +104,7 @@ module Repull
|
|
|
100
104
|
:'public_name' => :'String',
|
|
101
105
|
:'address' => :'String',
|
|
102
106
|
:'city' => :'String',
|
|
107
|
+
:'address_details' => :'PostalAddress',
|
|
103
108
|
:'latitude' => :'String',
|
|
104
109
|
:'longitude' => :'String',
|
|
105
110
|
:'currency' => :'String',
|
|
@@ -167,6 +172,10 @@ module Repull
|
|
|
167
172
|
self.city = attributes[:'city']
|
|
168
173
|
end
|
|
169
174
|
|
|
175
|
+
if attributes.key?(:'address_details')
|
|
176
|
+
self.address_details = attributes[:'address_details']
|
|
177
|
+
end
|
|
178
|
+
|
|
170
179
|
if attributes.key?(:'latitude')
|
|
171
180
|
self.latitude = attributes[:'latitude']
|
|
172
181
|
end
|
|
@@ -234,6 +243,7 @@ module Repull
|
|
|
234
243
|
public_name == o.public_name &&
|
|
235
244
|
address == o.address &&
|
|
236
245
|
city == o.city &&
|
|
246
|
+
address_details == o.address_details &&
|
|
237
247
|
latitude == o.latitude &&
|
|
238
248
|
longitude == o.longitude &&
|
|
239
249
|
currency == o.currency &&
|
|
@@ -254,7 +264,7 @@ module Repull
|
|
|
254
264
|
# Calculates hash code according to all attributes.
|
|
255
265
|
# @return [Integer] Hash code
|
|
256
266
|
def hash
|
|
257
|
-
[accounts, id, name, public_name, address, city, latitude, longitude, currency, status, lifecycle_status, created_at, updated_at, channels, amenities].hash
|
|
267
|
+
[accounts, id, name, public_name, address, city, address_details, latitude, longitude, currency, status, lifecycle_status, created_at, updated_at, channels, amenities].hash
|
|
258
268
|
end
|
|
259
269
|
|
|
260
270
|
# Builds the object from hash
|
|
@@ -27,7 +27,6 @@ module Repull
|
|
|
27
27
|
:'AccountImportStartedEvent',
|
|
28
28
|
:'AiOperationCompletedEvent',
|
|
29
29
|
:'AiOperationFailedEvent',
|
|
30
|
-
:'CalendarUpdatedEvent',
|
|
31
30
|
:'ConnectSessionCompletedEvent',
|
|
32
31
|
:'InquiryCreatedEvent',
|
|
33
32
|
:'InquiryUpdatedEvent',
|
|
@@ -73,7 +72,6 @@ module Repull
|
|
|
73
72
|
:'account.import.started' => :'AccountImportStartedEvent',
|
|
74
73
|
:'ai.operation.completed' => :'AiOperationCompletedEvent',
|
|
75
74
|
:'ai.operation.failed' => :'AiOperationFailedEvent',
|
|
76
|
-
:'calendar.updated' => :'CalendarUpdatedEvent',
|
|
77
75
|
:'connect.session.completed' => :'ConnectSessionCompletedEvent',
|
|
78
76
|
:'inquiry.created' => :'InquiryCreatedEvent',
|
|
79
77
|
:'inquiry.updated' => :'InquiryUpdatedEvent',
|
|
@@ -32,7 +32,6 @@ module Repull
|
|
|
32
32
|
LISTING_DELETED = "listing.deleted".freeze
|
|
33
33
|
LISTING_SUSPENDED = "listing.suspended".freeze
|
|
34
34
|
LISTING_REACTIVATED = "listing.reactivated".freeze
|
|
35
|
-
CALENDAR_UPDATED = "calendar.updated".freeze
|
|
36
35
|
ACCOUNT_CREATED = "account.created".freeze
|
|
37
36
|
CONNECT_SESSION_COMPLETED = "connect.session.completed".freeze
|
|
38
37
|
ACCOUNT_DISCONNECTED = "account.disconnected".freeze
|
|
@@ -52,7 +51,7 @@ module Repull
|
|
|
52
51
|
USAGE_QUOTA_WARNING = "usage.quota.warning".freeze
|
|
53
52
|
|
|
54
53
|
def self.all_vars
|
|
55
|
-
@all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED,
|
|
54
|
+
@all_vars ||= [RESERVATION_CREATED, RESERVATION_UPDATED, RESERVATION_CANCELLED, RESERVATION_MESSAGE_RECEIVED, RESERVATION_MESSAGE_SENT, RESERVATION_MESSAGE_UPDATED, RESERVATION_ALTERATION_CREATED, RESERVATION_ALTERATION_RESPONDED, RESERVATION_REQUEST_CREATED, RESERVATION_REQUEST_UPDATED, INQUIRY_CREATED, INQUIRY_UPDATED, LISTING_CREATED, LISTING_UPDATED, LISTING_DELETED, LISTING_SUSPENDED, LISTING_REACTIVATED, ACCOUNT_CREATED, CONNECT_SESSION_COMPLETED, ACCOUNT_DISCONNECTED, ACCOUNT_IMPORT_STARTED, ACCOUNT_IMPORT_COMPLETED, ACCOUNT_IMPORT_FAILED, REVIEW_CREATED, REVIEW_RESPONDED, AI_OPERATION_COMPLETED, AI_OPERATION_FAILED, PAYMENT_COMPLETED, PAYMENT_REFUNDED, PAYOUT_COMPLETED, MIGRATION_COMPLETED, MIGRATION_FAILED, REPULL_PING, USAGE_QUOTA_WARNING].freeze
|
|
56
55
|
end
|
|
57
56
|
|
|
58
57
|
# Builds the enum from string
|
data/lib/repull/version.rb
CHANGED
data/lib/repull.rb
CHANGED
|
@@ -152,9 +152,6 @@ require 'repull/models/bulk_pricing_request'
|
|
|
152
152
|
require 'repull/models/bulk_pricing_response'
|
|
153
153
|
require 'repull/models/calendar_day'
|
|
154
154
|
require 'repull/models/calendar_response'
|
|
155
|
-
require 'repull/models/calendar_updated_event'
|
|
156
|
-
require 'repull/models/calendar_updated_payload'
|
|
157
|
-
require 'repull/models/calendar_updated_payload_range'
|
|
158
155
|
require 'repull/models/cancel_reservation200_response'
|
|
159
156
|
require 'repull/models/cancel_reservation_request'
|
|
160
157
|
require 'repull/models/channel_market_state_item'
|
|
@@ -467,8 +464,6 @@ require 'repull/models/payment_webhook_object'
|
|
|
467
464
|
require 'repull/models/payout_completed_event'
|
|
468
465
|
require 'repull/models/payout_completed_payload'
|
|
469
466
|
require 'repull/models/plan_notice'
|
|
470
|
-
require 'repull/models/plumguide_listing'
|
|
471
|
-
require 'repull/models/plumguide_listing_list_response'
|
|
472
467
|
require 'repull/models/pms_capabilities'
|
|
473
468
|
require 'repull/models/pms_capabilities_calendar'
|
|
474
469
|
require 'repull/models/pms_capabilities_conversations'
|
|
@@ -481,6 +476,7 @@ require 'repull/models/pms_capabilities_tasks'
|
|
|
481
476
|
require 'repull/models/pms_write_policy'
|
|
482
477
|
require 'repull/models/pms_write_policy_calendar'
|
|
483
478
|
require 'repull/models/pms_write_policy_reservations'
|
|
479
|
+
require 'repull/models/postal_address'
|
|
484
480
|
require 'repull/models/preapprove_conversation201_response'
|
|
485
481
|
require 'repull/models/preapprove_conversation_request'
|
|
486
482
|
require 'repull/models/preview_conversation_special_offer_request'
|
|
@@ -743,7 +739,6 @@ require 'repull/api/kv_api'
|
|
|
743
739
|
require 'repull/api/listings_api'
|
|
744
740
|
require 'repull/api/markets_api'
|
|
745
741
|
require 'repull/api/migrate_api'
|
|
746
|
-
require 'repull/api/plumguide_api'
|
|
747
742
|
require 'repull/api/pricing_api'
|
|
748
743
|
require 'repull/api/promotions_api'
|
|
749
744
|
require 'repull/api/properties_api'
|