repull 0.2.58 → 0.2.60
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 +11 -11
- data/lib/repull/api/connect_api.rb +5 -5
- data/lib/repull/api/connections_api.rb +4 -4
- data/lib/repull/api/reviews_api.rb +4 -4
- data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
- data/lib/repull/models/account_created_event.rb +11 -1
- data/lib/repull/models/account_disconnected_event.rb +11 -1
- data/lib/repull/models/account_import_completed_event.rb +11 -1
- data/lib/repull/models/account_import_failed_event.rb +11 -1
- data/lib/repull/models/account_import_started_event.rb +11 -1
- data/lib/repull/models/account_notifications_missing_event.rb +11 -1
- data/lib/repull/models/account_units_added_event.rb +11 -1
- data/lib/repull/models/ai_operation_completed_event.rb +11 -1
- data/lib/repull/models/ai_operation_failed_event.rb +11 -1
- data/lib/repull/models/airbnb_data_freshness.rb +1 -1
- data/lib/repull/models/airbnb_transaction.rb +1 -1
- data/lib/repull/models/airbnb_transaction_payout.rb +2 -2
- data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
- data/lib/repull/models/channel_degraded_event.rb +11 -1
- data/lib/repull/models/channel_sync_failed_event.rb +11 -1
- data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
- data/lib/repull/models/connect_session_completed_event.rb +11 -1
- data/lib/repull/models/connect_status.rb +12 -1
- data/lib/repull/models/connection.rb +16 -5
- data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
- data/lib/repull/models/create_price_labs_key201_response.rb +12 -1
- data/lib/repull/models/hospitable_webhook.rb +218 -0
- data/lib/repull/models/inquiry_created_event.rb +11 -1
- data/lib/repull/models/inquiry_updated_event.rb +11 -1
- data/lib/repull/models/listing_created_event.rb +11 -1
- data/lib/repull/models/listing_deleted_event.rb +11 -1
- data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
- data/lib/repull/models/listing_reactivated_event.rb +11 -1
- data/lib/repull/models/listing_suspended_event.rb +11 -1
- data/lib/repull/models/listing_updated_event.rb +11 -1
- data/lib/repull/models/migration_completed_event.rb +1 -1
- data/lib/repull/models/migration_failed_event.rb +1 -1
- data/lib/repull/models/payment_completed_event.rb +11 -1
- data/lib/repull/models/payment_refunded_event.rb +11 -1
- data/lib/repull/models/payout_completed_event.rb +11 -1
- data/lib/repull/models/repull_ping_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
- data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
- data/lib/repull/models/reservation_cancelled_event.rb +11 -1
- data/lib/repull/models/reservation_created_event.rb +11 -1
- data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
- data/lib/repull/models/reservation_message_read_event.rb +11 -1
- data/lib/repull/models/reservation_message_received_event.rb +11 -1
- data/lib/repull/models/reservation_message_sent_event.rb +11 -1
- data/lib/repull/models/reservation_message_updated_event.rb +11 -1
- data/lib/repull/models/reservation_request_created_event.rb +11 -1
- data/lib/repull/models/reservation_request_updated_event.rb +11 -1
- data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
- data/lib/repull/models/reservation_updated_event.rb +11 -1
- data/lib/repull/models/review.rb +1 -1
- data/lib/repull/models/review_created_event.rb +11 -1
- data/lib/repull/models/review_responded_event.rb +11 -1
- data/lib/repull/models/start_connection_import202_response_data.rb +2 -2
- data/lib/repull/models/start_connection_import_request.rb +3 -3
- data/lib/repull/models/submit_hospitable_credentials200_response.rb +169 -0
- data/lib/repull/models/sync_airbnb_transactions200_response_accounts_inner.rb +1 -1
- data/lib/repull/models/sync_airbnb_transactions_request.rb +1 -1
- data/lib/repull/models/usage_quota_warning_event.rb +11 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +2 -0
- data/openapi/v1.json +314 -23
- metadata +4 -2
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationMessageReceivedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationMessageSentPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationMessageUpdatedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationRequestCreatedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationRequestUpdatedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -26,6 +26,9 @@ module Repull
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :account
|
|
28
28
|
|
|
29
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
30
|
+
attr_accessor :workspace_id
|
|
31
|
+
|
|
29
32
|
attr_accessor :data
|
|
30
33
|
|
|
31
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -36,6 +39,7 @@ module Repull
|
|
|
36
39
|
:'api_version' => :'apiVersion',
|
|
37
40
|
:'timestamp' => :'timestamp',
|
|
38
41
|
:'account' => :'account',
|
|
42
|
+
:'workspace_id' => :'workspaceId',
|
|
39
43
|
:'data' => :'data'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
@@ -58,6 +62,7 @@ module Repull
|
|
|
58
62
|
:'api_version' => :'String',
|
|
59
63
|
:'timestamp' => :'Time',
|
|
60
64
|
:'account' => :'WebhookEventAccount',
|
|
65
|
+
:'workspace_id' => :'Integer',
|
|
61
66
|
:'data' => :'ReservationThreadAssignedPayload'
|
|
62
67
|
}
|
|
63
68
|
end
|
|
@@ -113,6 +118,10 @@ module Repull
|
|
|
113
118
|
self.account = attributes[:'account']
|
|
114
119
|
end
|
|
115
120
|
|
|
121
|
+
if attributes.key?(:'workspace_id')
|
|
122
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
123
|
+
end
|
|
124
|
+
|
|
116
125
|
if attributes.key?(:'data')
|
|
117
126
|
self.data = attributes[:'data']
|
|
118
127
|
else
|
|
@@ -220,6 +229,7 @@ module Repull
|
|
|
220
229
|
api_version == o.api_version &&
|
|
221
230
|
timestamp == o.timestamp &&
|
|
222
231
|
account == o.account &&
|
|
232
|
+
workspace_id == o.workspace_id &&
|
|
223
233
|
data == o.data
|
|
224
234
|
end
|
|
225
235
|
|
|
@@ -232,7 +242,7 @@ module Repull
|
|
|
232
242
|
# Calculates hash code according to all attributes.
|
|
233
243
|
# @return [Integer] Hash code
|
|
234
244
|
def hash
|
|
235
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
245
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
236
246
|
end
|
|
237
247
|
|
|
238
248
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReservationUpdatedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
data/lib/repull/models/review.rb
CHANGED
|
@@ -27,7 +27,7 @@ module Repull
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :platform
|
|
29
29
|
|
|
30
|
-
# The PMS this review was read from (`guesty`, `hostaway`, …) when it came through one — `platform` is still the channel the guest wrote it on. A reply (`POST /v1/reviews/{id}/reply`) goes through this PMS; `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says whether it can. `null` for a review from a directly connected channel.
|
|
30
|
+
# The PMS this review was read from (`guesty`, `hostaway`, `hospitable`, …) when it came through one — `platform` is still the channel the guest wrote it on, and `reservationId` / `reservationConfirmationCode` point at the stay. A review that also arrives from a directly connected channel is returned once, as the channel's copy (`pms: null`). A reply (`POST /v1/reviews/{id}/reply`) goes through this PMS; `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says whether it can. `null` for a review from a directly connected channel.
|
|
31
31
|
attr_accessor :pms
|
|
32
32
|
|
|
33
33
|
# Internal Repull listing id the review is attached to.
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReviewCreatedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -28,6 +28,9 @@ module Repull
|
|
|
28
28
|
|
|
29
29
|
attr_accessor :account
|
|
30
30
|
|
|
31
|
+
# The sub-workspace this event happened in. Present only on events from a sub-workspace your workspace opened (`POST /v1/connect` with `workspace`, or Repull Migrate); omitted on your own workspace's events. It is the same workspace as `workspaceId` on `POST /v1/connect` and `GET /v1/workspaces` and the `X-Workspace-Id` header, but those return it as a string (`\"2042\"`) while the event carries a JSON number (`2042`): compare as strings, e.g. `String(event.workspaceId) === workspace.workspaceId`. The UUID `data.workspaceId` on `account.created` / `account.disconnected` is a different identifier.
|
|
32
|
+
attr_accessor :workspace_id
|
|
33
|
+
|
|
31
34
|
attr_accessor :data
|
|
32
35
|
|
|
33
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -38,6 +41,7 @@ module Repull
|
|
|
38
41
|
:'api_version' => :'apiVersion',
|
|
39
42
|
:'timestamp' => :'timestamp',
|
|
40
43
|
:'account' => :'account',
|
|
44
|
+
:'workspace_id' => :'workspaceId',
|
|
41
45
|
:'data' => :'data'
|
|
42
46
|
}
|
|
43
47
|
end
|
|
@@ -60,6 +64,7 @@ module Repull
|
|
|
60
64
|
:'api_version' => :'String',
|
|
61
65
|
:'timestamp' => :'Time',
|
|
62
66
|
:'account' => :'WebhookEventAccount',
|
|
67
|
+
:'workspace_id' => :'Integer',
|
|
63
68
|
:'data' => :'ReviewRespondedPayload'
|
|
64
69
|
}
|
|
65
70
|
end
|
|
@@ -115,6 +120,10 @@ module Repull
|
|
|
115
120
|
self.account = attributes[:'account']
|
|
116
121
|
end
|
|
117
122
|
|
|
123
|
+
if attributes.key?(:'workspace_id')
|
|
124
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
125
|
+
end
|
|
126
|
+
|
|
118
127
|
if attributes.key?(:'data')
|
|
119
128
|
self.data = attributes[:'data']
|
|
120
129
|
else
|
|
@@ -222,6 +231,7 @@ module Repull
|
|
|
222
231
|
api_version == o.api_version &&
|
|
223
232
|
timestamp == o.timestamp &&
|
|
224
233
|
account == o.account &&
|
|
234
|
+
workspace_id == o.workspace_id &&
|
|
225
235
|
data == o.data
|
|
226
236
|
end
|
|
227
237
|
|
|
@@ -234,7 +244,7 @@ module Repull
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Integer] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
247
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -153,7 +153,7 @@ module Repull
|
|
|
153
153
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
154
154
|
return false if @connection.nil?
|
|
155
155
|
return false if @scope.nil?
|
|
156
|
-
scope_validator = EnumAttributeValidator.new('String', ["listings"])
|
|
156
|
+
scope_validator = EnumAttributeValidator.new('String', ["listings", "reservations"])
|
|
157
157
|
return false unless scope_validator.valid?(@scope)
|
|
158
158
|
return false if @status.nil?
|
|
159
159
|
status_validator = EnumAttributeValidator.new('String', ["queued"])
|
|
@@ -175,7 +175,7 @@ module Repull
|
|
|
175
175
|
# Custom attribute writer method checking allowed values (enum).
|
|
176
176
|
# @param [Object] scope Object to be assigned
|
|
177
177
|
def scope=(scope)
|
|
178
|
-
validator = EnumAttributeValidator.new('String', ["listings"])
|
|
178
|
+
validator = EnumAttributeValidator.new('String', ["listings", "reservations"])
|
|
179
179
|
unless validator.valid?(scope)
|
|
180
180
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
|
181
181
|
end
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class StartConnectionImportRequest < ApiModelBase
|
|
18
|
-
# What to import. `listings` = the account's listings
|
|
18
|
+
# What to import. `listings` = the account's listings; new listings come in with their calendar (pricing and availability); on a full-access connection, calendars of listings already in Repull are not re-read. `reservations` = the account's reservations, stays from the last month and every future one. The full import runs when an account is connected.
|
|
19
19
|
attr_accessor :scope
|
|
20
20
|
|
|
21
21
|
class EnumAttributeValidator
|
|
@@ -105,7 +105,7 @@ module Repull
|
|
|
105
105
|
# @return true if the model is valid
|
|
106
106
|
def valid?
|
|
107
107
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
108
|
-
scope_validator = EnumAttributeValidator.new('String', ["listings"])
|
|
108
|
+
scope_validator = EnumAttributeValidator.new('String', ["listings", "reservations"])
|
|
109
109
|
return false unless scope_validator.valid?(@scope)
|
|
110
110
|
true
|
|
111
111
|
end
|
|
@@ -113,7 +113,7 @@ module Repull
|
|
|
113
113
|
# Custom attribute writer method checking allowed values (enum).
|
|
114
114
|
# @param [Object] scope Object to be assigned
|
|
115
115
|
def scope=(scope)
|
|
116
|
-
validator = EnumAttributeValidator.new('String', ["listings"])
|
|
116
|
+
validator = EnumAttributeValidator.new('String', ["listings", "reservations"])
|
|
117
117
|
unless validator.valid?(scope)
|
|
118
118
|
fail ArgumentError, "invalid value for \"scope\", must be one of #{validator.allowable_values}."
|
|
119
119
|
end
|