repull 0.2.60 → 0.2.61
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/airbnb_api.rb +8 -8
- data/lib/repull/api/connect_api.rb +5 -5
- data/lib/repull/api/connections_api.rb +4 -4
- data/lib/repull/models/account_import.rb +1 -1
- data/lib/repull/models/airbnb_reservation.rb +346 -6
- data/lib/repull/models/airbnb_reservation_detail.rb +679 -0
- data/lib/repull/models/airbnb_reservation_detail_response.rb +173 -0
- data/lib/repull/models/connect_provider_session.rb +266 -0
- data/lib/repull/models/create_connect_session_request.rb +2 -2
- data/lib/repull/models/create_connection_request.rb +3 -2
- data/lib/repull/models/guest.rb +4 -2
- data/lib/repull/models/start_connection_import202_response_data.rb +32 -6
- data/lib/repull/models/start_connection_import_request.rb +3 -5
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +3 -0
- data/openapi/v1.json +483 -26
- metadata +4 -1
|
@@ -14,18 +14,30 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
|
-
# An Airbnb reservation as returned by the channel API. Use `confirmationCode` to address it in Airbnb operations.
|
|
17
|
+
# An Airbnb reservation as returned by the channel API. Use `confirmationCode` to address it in Airbnb operations, and `reservationId` to open the same stay on `GET /v1/reservations/{id}`. The fields after `payoutCurrency` are the Airbnb record as stored (Airbnb's raw status, amounts as decimal strings, stay datetimes); they are kept for existing integrations.
|
|
18
18
|
class AirbnbReservation < ApiModelBase
|
|
19
|
+
# This Airbnb record's id in Repull.
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# Airbnb confirmation code.
|
|
19
23
|
attr_accessor :confirmation_code
|
|
20
24
|
|
|
25
|
+
# The same stay on the unified reservations API: `GET /v1/reservations/{id}`. Null only while that record is still being created.
|
|
26
|
+
attr_accessor :reservation_id
|
|
27
|
+
|
|
28
|
+
# The Repull listing id (`GET /v1/listings/{id}`).
|
|
21
29
|
attr_accessor :listing_id
|
|
22
30
|
|
|
31
|
+
# Airbnb's own listing id — the value `?listing_id=` takes.
|
|
32
|
+
attr_accessor :airbnb_listing_id
|
|
33
|
+
|
|
23
34
|
# Which connected Airbnb account this row belongs to — the Airbnb host id, as a string (they exceed 2^53). The same value `?account_id=` accepts and `GET /v1/connect/airbnb` returns as `accounts[].externalAccountId`.
|
|
24
35
|
attr_accessor :account_id
|
|
25
36
|
|
|
26
37
|
# Display name of that connected Airbnb account.
|
|
27
38
|
attr_accessor :account_name
|
|
28
39
|
|
|
40
|
+
# Normalised status. Airbnb's own value is in `airbnbStatus`.
|
|
29
41
|
attr_accessor :status
|
|
30
42
|
|
|
31
43
|
attr_accessor :check_in
|
|
@@ -36,15 +48,79 @@ module Repull
|
|
|
36
48
|
|
|
37
49
|
attr_accessor :guest_count
|
|
38
50
|
|
|
51
|
+
# What the guest paid, in `currency`.
|
|
39
52
|
attr_accessor :total_price
|
|
40
53
|
|
|
41
54
|
attr_accessor :currency
|
|
42
55
|
|
|
56
|
+
# What the host is expected to receive, in `payoutCurrency`.
|
|
57
|
+
attr_accessor :payout
|
|
58
|
+
|
|
59
|
+
attr_accessor :payout_currency
|
|
60
|
+
|
|
61
|
+
# Internal link id of the Airbnb listing. Use `airbnbListingId` or `listingId` instead.
|
|
62
|
+
attr_accessor :listing_airbnb_id
|
|
63
|
+
|
|
64
|
+
# Same as `confirmationCode`.
|
|
65
|
+
attr_accessor :airbnb_reservation_id
|
|
66
|
+
|
|
67
|
+
# Same as `accountId`.
|
|
68
|
+
attr_accessor :host_id
|
|
69
|
+
|
|
70
|
+
# The guest's Airbnb user id.
|
|
71
|
+
attr_accessor :guest_airbnb_id
|
|
72
|
+
|
|
73
|
+
attr_accessor :guest_first_name
|
|
74
|
+
|
|
75
|
+
attr_accessor :guest_last_name
|
|
76
|
+
|
|
77
|
+
attr_accessor :guest_profile_picture
|
|
78
|
+
|
|
79
|
+
# Airbnb's raw status: `accept`, `pending`, `cancelled_by_guest`, `cancelled_by_host`, `cancelled_by_admin`, `deny`, `failed_verification`, `pending_voided`, `checkpoint_voided`, `timeout`, …
|
|
80
|
+
attr_accessor :airbnb_status
|
|
81
|
+
|
|
82
|
+
attr_accessor :cancellation_policy
|
|
83
|
+
|
|
84
|
+
attr_accessor :cancellation_reason
|
|
85
|
+
|
|
86
|
+
# `totalPrice` as a decimal string.
|
|
87
|
+
attr_accessor :total_paid_amount
|
|
88
|
+
|
|
89
|
+
attr_accessor :total_paid_currency
|
|
90
|
+
|
|
91
|
+
# `payout` as a decimal string.
|
|
92
|
+
attr_accessor :expected_payout_amount
|
|
93
|
+
|
|
94
|
+
attr_accessor :expected_payout_currency
|
|
95
|
+
|
|
96
|
+
attr_accessor :canceled_at
|
|
97
|
+
|
|
98
|
+
attr_accessor :created_at
|
|
99
|
+
|
|
100
|
+
attr_accessor :updated_at
|
|
101
|
+
|
|
102
|
+
# Check-in date at 00:00 UTC. Prefer `checkIn`.
|
|
103
|
+
attr_accessor :check_in_datetime
|
|
104
|
+
|
|
105
|
+
# Check-out date at 00:00 UTC. Prefer `checkOut`.
|
|
106
|
+
attr_accessor :check_out_datetime
|
|
107
|
+
|
|
108
|
+
attr_accessor :time_zone
|
|
109
|
+
|
|
110
|
+
# Your workspace id.
|
|
111
|
+
attr_accessor :customer_id
|
|
112
|
+
|
|
113
|
+
# The guest on `GET /v1/guests/{id}`.
|
|
114
|
+
attr_accessor :guest_id
|
|
115
|
+
|
|
43
116
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
117
|
def self.attribute_map
|
|
45
118
|
{
|
|
119
|
+
:'id' => :'id',
|
|
46
120
|
:'confirmation_code' => :'confirmationCode',
|
|
121
|
+
:'reservation_id' => :'reservationId',
|
|
47
122
|
:'listing_id' => :'listingId',
|
|
123
|
+
:'airbnb_listing_id' => :'airbnbListingId',
|
|
48
124
|
:'account_id' => :'accountId',
|
|
49
125
|
:'account_name' => :'accountName',
|
|
50
126
|
:'status' => :'status',
|
|
@@ -53,7 +129,31 @@ module Repull
|
|
|
53
129
|
:'guest_name' => :'guestName',
|
|
54
130
|
:'guest_count' => :'guestCount',
|
|
55
131
|
:'total_price' => :'totalPrice',
|
|
56
|
-
:'currency' => :'currency'
|
|
132
|
+
:'currency' => :'currency',
|
|
133
|
+
:'payout' => :'payout',
|
|
134
|
+
:'payout_currency' => :'payoutCurrency',
|
|
135
|
+
:'listing_airbnb_id' => :'listingAirbnbId',
|
|
136
|
+
:'airbnb_reservation_id' => :'airbnbReservationId',
|
|
137
|
+
:'host_id' => :'hostId',
|
|
138
|
+
:'guest_airbnb_id' => :'guestAirbnbId',
|
|
139
|
+
:'guest_first_name' => :'guestFirstName',
|
|
140
|
+
:'guest_last_name' => :'guestLastName',
|
|
141
|
+
:'guest_profile_picture' => :'guestProfilePicture',
|
|
142
|
+
:'airbnb_status' => :'airbnbStatus',
|
|
143
|
+
:'cancellation_policy' => :'cancellationPolicy',
|
|
144
|
+
:'cancellation_reason' => :'cancellationReason',
|
|
145
|
+
:'total_paid_amount' => :'totalPaidAmount',
|
|
146
|
+
:'total_paid_currency' => :'totalPaidCurrency',
|
|
147
|
+
:'expected_payout_amount' => :'expectedPayoutAmount',
|
|
148
|
+
:'expected_payout_currency' => :'expectedPayoutCurrency',
|
|
149
|
+
:'canceled_at' => :'canceledAt',
|
|
150
|
+
:'created_at' => :'createdAt',
|
|
151
|
+
:'updated_at' => :'updatedAt',
|
|
152
|
+
:'check_in_datetime' => :'checkInDatetime',
|
|
153
|
+
:'check_out_datetime' => :'checkOutDatetime',
|
|
154
|
+
:'time_zone' => :'timeZone',
|
|
155
|
+
:'customer_id' => :'customerId',
|
|
156
|
+
:'guest_id' => :'guestId'
|
|
57
157
|
}
|
|
58
158
|
end
|
|
59
159
|
|
|
@@ -70,8 +170,11 @@ module Repull
|
|
|
70
170
|
# Attribute type mapping.
|
|
71
171
|
def self.openapi_types
|
|
72
172
|
{
|
|
173
|
+
:'id' => :'String',
|
|
73
174
|
:'confirmation_code' => :'String',
|
|
175
|
+
:'reservation_id' => :'String',
|
|
74
176
|
:'listing_id' => :'String',
|
|
177
|
+
:'airbnb_listing_id' => :'String',
|
|
75
178
|
:'account_id' => :'String',
|
|
76
179
|
:'account_name' => :'String',
|
|
77
180
|
:'status' => :'String',
|
|
@@ -80,19 +183,74 @@ module Repull
|
|
|
80
183
|
:'guest_name' => :'String',
|
|
81
184
|
:'guest_count' => :'Integer',
|
|
82
185
|
:'total_price' => :'Float',
|
|
83
|
-
:'currency' => :'String'
|
|
186
|
+
:'currency' => :'String',
|
|
187
|
+
:'payout' => :'Float',
|
|
188
|
+
:'payout_currency' => :'String',
|
|
189
|
+
:'listing_airbnb_id' => :'String',
|
|
190
|
+
:'airbnb_reservation_id' => :'String',
|
|
191
|
+
:'host_id' => :'String',
|
|
192
|
+
:'guest_airbnb_id' => :'String',
|
|
193
|
+
:'guest_first_name' => :'String',
|
|
194
|
+
:'guest_last_name' => :'String',
|
|
195
|
+
:'guest_profile_picture' => :'String',
|
|
196
|
+
:'airbnb_status' => :'String',
|
|
197
|
+
:'cancellation_policy' => :'String',
|
|
198
|
+
:'cancellation_reason' => :'String',
|
|
199
|
+
:'total_paid_amount' => :'String',
|
|
200
|
+
:'total_paid_currency' => :'String',
|
|
201
|
+
:'expected_payout_amount' => :'String',
|
|
202
|
+
:'expected_payout_currency' => :'String',
|
|
203
|
+
:'canceled_at' => :'Time',
|
|
204
|
+
:'created_at' => :'Time',
|
|
205
|
+
:'updated_at' => :'Time',
|
|
206
|
+
:'check_in_datetime' => :'Time',
|
|
207
|
+
:'check_out_datetime' => :'Time',
|
|
208
|
+
:'time_zone' => :'String',
|
|
209
|
+
:'customer_id' => :'String',
|
|
210
|
+
:'guest_id' => :'String'
|
|
84
211
|
}
|
|
85
212
|
end
|
|
86
213
|
|
|
87
214
|
# List of attributes with nullable: true
|
|
88
215
|
def self.openapi_nullable
|
|
89
216
|
Set.new([
|
|
217
|
+
:'confirmation_code',
|
|
218
|
+
:'reservation_id',
|
|
219
|
+
:'listing_id',
|
|
220
|
+
:'airbnb_listing_id',
|
|
90
221
|
:'account_id',
|
|
91
222
|
:'account_name',
|
|
223
|
+
:'status',
|
|
224
|
+
:'check_in',
|
|
225
|
+
:'check_out',
|
|
92
226
|
:'guest_name',
|
|
93
227
|
:'guest_count',
|
|
94
228
|
:'total_price',
|
|
95
|
-
:'currency'
|
|
229
|
+
:'currency',
|
|
230
|
+
:'payout',
|
|
231
|
+
:'payout_currency',
|
|
232
|
+
:'listing_airbnb_id',
|
|
233
|
+
:'airbnb_reservation_id',
|
|
234
|
+
:'host_id',
|
|
235
|
+
:'guest_airbnb_id',
|
|
236
|
+
:'guest_first_name',
|
|
237
|
+
:'guest_last_name',
|
|
238
|
+
:'guest_profile_picture',
|
|
239
|
+
:'airbnb_status',
|
|
240
|
+
:'cancellation_policy',
|
|
241
|
+
:'cancellation_reason',
|
|
242
|
+
:'total_paid_amount',
|
|
243
|
+
:'total_paid_currency',
|
|
244
|
+
:'expected_payout_amount',
|
|
245
|
+
:'expected_payout_currency',
|
|
246
|
+
:'canceled_at',
|
|
247
|
+
:'created_at',
|
|
248
|
+
:'updated_at',
|
|
249
|
+
:'check_in_datetime',
|
|
250
|
+
:'check_out_datetime',
|
|
251
|
+
:'time_zone',
|
|
252
|
+
:'customer_id',
|
|
253
|
+
:'guest_id'
|
|
96
254
|
])
|
|
97
255
|
end
|
|
98
256
|
|
|
@@ -112,48 +270,188 @@ module Repull
|
|
|
112
270
|
h[k.to_sym] = v
|
|
113
271
|
}
|
|
114
272
|
|
|
273
|
+
if attributes.key?(:'id')
|
|
274
|
+
self.id = attributes[:'id']
|
|
275
|
+
else
|
|
276
|
+
self.id = nil
|
|
277
|
+
end
|
|
278
|
+
|
|
115
279
|
if attributes.key?(:'confirmation_code')
|
|
116
280
|
self.confirmation_code = attributes[:'confirmation_code']
|
|
281
|
+
else
|
|
282
|
+
self.confirmation_code = nil
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
if attributes.key?(:'reservation_id')
|
|
286
|
+
self.reservation_id = attributes[:'reservation_id']
|
|
287
|
+
else
|
|
288
|
+
self.reservation_id = nil
|
|
117
289
|
end
|
|
118
290
|
|
|
119
291
|
if attributes.key?(:'listing_id')
|
|
120
292
|
self.listing_id = attributes[:'listing_id']
|
|
293
|
+
else
|
|
294
|
+
self.listing_id = nil
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if attributes.key?(:'airbnb_listing_id')
|
|
298
|
+
self.airbnb_listing_id = attributes[:'airbnb_listing_id']
|
|
299
|
+
else
|
|
300
|
+
self.airbnb_listing_id = nil
|
|
121
301
|
end
|
|
122
302
|
|
|
123
303
|
if attributes.key?(:'account_id')
|
|
124
304
|
self.account_id = attributes[:'account_id']
|
|
305
|
+
else
|
|
306
|
+
self.account_id = nil
|
|
125
307
|
end
|
|
126
308
|
|
|
127
309
|
if attributes.key?(:'account_name')
|
|
128
310
|
self.account_name = attributes[:'account_name']
|
|
311
|
+
else
|
|
312
|
+
self.account_name = nil
|
|
129
313
|
end
|
|
130
314
|
|
|
131
315
|
if attributes.key?(:'status')
|
|
132
316
|
self.status = attributes[:'status']
|
|
317
|
+
else
|
|
318
|
+
self.status = nil
|
|
133
319
|
end
|
|
134
320
|
|
|
135
321
|
if attributes.key?(:'check_in')
|
|
136
322
|
self.check_in = attributes[:'check_in']
|
|
323
|
+
else
|
|
324
|
+
self.check_in = nil
|
|
137
325
|
end
|
|
138
326
|
|
|
139
327
|
if attributes.key?(:'check_out')
|
|
140
328
|
self.check_out = attributes[:'check_out']
|
|
329
|
+
else
|
|
330
|
+
self.check_out = nil
|
|
141
331
|
end
|
|
142
332
|
|
|
143
333
|
if attributes.key?(:'guest_name')
|
|
144
334
|
self.guest_name = attributes[:'guest_name']
|
|
335
|
+
else
|
|
336
|
+
self.guest_name = nil
|
|
145
337
|
end
|
|
146
338
|
|
|
147
339
|
if attributes.key?(:'guest_count')
|
|
148
340
|
self.guest_count = attributes[:'guest_count']
|
|
341
|
+
else
|
|
342
|
+
self.guest_count = nil
|
|
149
343
|
end
|
|
150
344
|
|
|
151
345
|
if attributes.key?(:'total_price')
|
|
152
346
|
self.total_price = attributes[:'total_price']
|
|
347
|
+
else
|
|
348
|
+
self.total_price = nil
|
|
153
349
|
end
|
|
154
350
|
|
|
155
351
|
if attributes.key?(:'currency')
|
|
156
352
|
self.currency = attributes[:'currency']
|
|
353
|
+
else
|
|
354
|
+
self.currency = nil
|
|
355
|
+
end
|
|
356
|
+
|
|
357
|
+
if attributes.key?(:'payout')
|
|
358
|
+
self.payout = attributes[:'payout']
|
|
359
|
+
else
|
|
360
|
+
self.payout = nil
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
if attributes.key?(:'payout_currency')
|
|
364
|
+
self.payout_currency = attributes[:'payout_currency']
|
|
365
|
+
else
|
|
366
|
+
self.payout_currency = nil
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
if attributes.key?(:'listing_airbnb_id')
|
|
370
|
+
self.listing_airbnb_id = attributes[:'listing_airbnb_id']
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
if attributes.key?(:'airbnb_reservation_id')
|
|
374
|
+
self.airbnb_reservation_id = attributes[:'airbnb_reservation_id']
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
if attributes.key?(:'host_id')
|
|
378
|
+
self.host_id = attributes[:'host_id']
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
if attributes.key?(:'guest_airbnb_id')
|
|
382
|
+
self.guest_airbnb_id = attributes[:'guest_airbnb_id']
|
|
383
|
+
end
|
|
384
|
+
|
|
385
|
+
if attributes.key?(:'guest_first_name')
|
|
386
|
+
self.guest_first_name = attributes[:'guest_first_name']
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'guest_last_name')
|
|
390
|
+
self.guest_last_name = attributes[:'guest_last_name']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'guest_profile_picture')
|
|
394
|
+
self.guest_profile_picture = attributes[:'guest_profile_picture']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'airbnb_status')
|
|
398
|
+
self.airbnb_status = attributes[:'airbnb_status']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'cancellation_policy')
|
|
402
|
+
self.cancellation_policy = attributes[:'cancellation_policy']
|
|
403
|
+
end
|
|
404
|
+
|
|
405
|
+
if attributes.key?(:'cancellation_reason')
|
|
406
|
+
self.cancellation_reason = attributes[:'cancellation_reason']
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
if attributes.key?(:'total_paid_amount')
|
|
410
|
+
self.total_paid_amount = attributes[:'total_paid_amount']
|
|
411
|
+
end
|
|
412
|
+
|
|
413
|
+
if attributes.key?(:'total_paid_currency')
|
|
414
|
+
self.total_paid_currency = attributes[:'total_paid_currency']
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
if attributes.key?(:'expected_payout_amount')
|
|
418
|
+
self.expected_payout_amount = attributes[:'expected_payout_amount']
|
|
419
|
+
end
|
|
420
|
+
|
|
421
|
+
if attributes.key?(:'expected_payout_currency')
|
|
422
|
+
self.expected_payout_currency = attributes[:'expected_payout_currency']
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
if attributes.key?(:'canceled_at')
|
|
426
|
+
self.canceled_at = attributes[:'canceled_at']
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
if attributes.key?(:'created_at')
|
|
430
|
+
self.created_at = attributes[:'created_at']
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
if attributes.key?(:'updated_at')
|
|
434
|
+
self.updated_at = attributes[:'updated_at']
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
if attributes.key?(:'check_in_datetime')
|
|
438
|
+
self.check_in_datetime = attributes[:'check_in_datetime']
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
if attributes.key?(:'check_out_datetime')
|
|
442
|
+
self.check_out_datetime = attributes[:'check_out_datetime']
|
|
443
|
+
end
|
|
444
|
+
|
|
445
|
+
if attributes.key?(:'time_zone')
|
|
446
|
+
self.time_zone = attributes[:'time_zone']
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
if attributes.key?(:'customer_id')
|
|
450
|
+
self.customer_id = attributes[:'customer_id']
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
if attributes.key?(:'guest_id')
|
|
454
|
+
self.guest_id = attributes[:'guest_id']
|
|
157
455
|
end
|
|
158
456
|
end
|
|
159
457
|
|
|
@@ -162,6 +460,10 @@ module Repull
|
|
|
162
460
|
def list_invalid_properties
|
|
163
461
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
164
462
|
invalid_properties = Array.new
|
|
463
|
+
if @id.nil?
|
|
464
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
465
|
+
end
|
|
466
|
+
|
|
165
467
|
invalid_properties
|
|
166
468
|
end
|
|
167
469
|
|
|
@@ -169,16 +471,30 @@ module Repull
|
|
|
169
471
|
# @return true if the model is valid
|
|
170
472
|
def valid?
|
|
171
473
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
474
|
+
return false if @id.nil?
|
|
172
475
|
true
|
|
173
476
|
end
|
|
174
477
|
|
|
478
|
+
# Custom attribute writer method with validation
|
|
479
|
+
# @param [Object] id Value to be assigned
|
|
480
|
+
def id=(id)
|
|
481
|
+
if id.nil?
|
|
482
|
+
fail ArgumentError, 'id cannot be nil'
|
|
483
|
+
end
|
|
484
|
+
|
|
485
|
+
@id = id
|
|
486
|
+
end
|
|
487
|
+
|
|
175
488
|
# Checks equality by comparing each attribute.
|
|
176
489
|
# @param [Object] Object to be compared
|
|
177
490
|
def ==(o)
|
|
178
491
|
return true if self.equal?(o)
|
|
179
492
|
self.class == o.class &&
|
|
493
|
+
id == o.id &&
|
|
180
494
|
confirmation_code == o.confirmation_code &&
|
|
495
|
+
reservation_id == o.reservation_id &&
|
|
181
496
|
listing_id == o.listing_id &&
|
|
497
|
+
airbnb_listing_id == o.airbnb_listing_id &&
|
|
182
498
|
account_id == o.account_id &&
|
|
183
499
|
account_name == o.account_name &&
|
|
184
500
|
status == o.status &&
|
|
@@ -187,7 +503,31 @@ module Repull
|
|
|
187
503
|
guest_name == o.guest_name &&
|
|
188
504
|
guest_count == o.guest_count &&
|
|
189
505
|
total_price == o.total_price &&
|
|
190
|
-
currency == o.currency
|
|
506
|
+
currency == o.currency &&
|
|
507
|
+
payout == o.payout &&
|
|
508
|
+
payout_currency == o.payout_currency &&
|
|
509
|
+
listing_airbnb_id == o.listing_airbnb_id &&
|
|
510
|
+
airbnb_reservation_id == o.airbnb_reservation_id &&
|
|
511
|
+
host_id == o.host_id &&
|
|
512
|
+
guest_airbnb_id == o.guest_airbnb_id &&
|
|
513
|
+
guest_first_name == o.guest_first_name &&
|
|
514
|
+
guest_last_name == o.guest_last_name &&
|
|
515
|
+
guest_profile_picture == o.guest_profile_picture &&
|
|
516
|
+
airbnb_status == o.airbnb_status &&
|
|
517
|
+
cancellation_policy == o.cancellation_policy &&
|
|
518
|
+
cancellation_reason == o.cancellation_reason &&
|
|
519
|
+
total_paid_amount == o.total_paid_amount &&
|
|
520
|
+
total_paid_currency == o.total_paid_currency &&
|
|
521
|
+
expected_payout_amount == o.expected_payout_amount &&
|
|
522
|
+
expected_payout_currency == o.expected_payout_currency &&
|
|
523
|
+
canceled_at == o.canceled_at &&
|
|
524
|
+
created_at == o.created_at &&
|
|
525
|
+
updated_at == o.updated_at &&
|
|
526
|
+
check_in_datetime == o.check_in_datetime &&
|
|
527
|
+
check_out_datetime == o.check_out_datetime &&
|
|
528
|
+
time_zone == o.time_zone &&
|
|
529
|
+
customer_id == o.customer_id &&
|
|
530
|
+
guest_id == o.guest_id
|
|
191
531
|
end
|
|
192
532
|
|
|
193
533
|
# @see the `==` method
|
|
@@ -199,7 +539,7 @@ module Repull
|
|
|
199
539
|
# Calculates hash code according to all attributes.
|
|
200
540
|
# @return [Integer] Hash code
|
|
201
541
|
def hash
|
|
202
|
-
[confirmation_code, listing_id, account_id, account_name, status, check_in, check_out, guest_name, guest_count, total_price, currency].hash
|
|
542
|
+
[id, confirmation_code, reservation_id, listing_id, airbnb_listing_id, account_id, account_name, status, check_in, check_out, guest_name, guest_count, total_price, currency, payout, payout_currency, listing_airbnb_id, airbnb_reservation_id, host_id, guest_airbnb_id, guest_first_name, guest_last_name, guest_profile_picture, airbnb_status, cancellation_policy, cancellation_reason, total_paid_amount, total_paid_currency, expected_payout_amount, expected_payout_currency, canceled_at, created_at, updated_at, check_in_datetime, check_out_datetime, time_zone, customer_id, guest_id].hash
|
|
203
543
|
end
|
|
204
544
|
|
|
205
545
|
# Builds the object from hash
|