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
|
@@ -29,6 +29,9 @@ module Repull
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :account
|
|
31
31
|
|
|
32
|
+
# 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.
|
|
33
|
+
attr_accessor :workspace_id
|
|
34
|
+
|
|
32
35
|
attr_accessor :data
|
|
33
36
|
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -39,6 +42,7 @@ module Repull
|
|
|
39
42
|
:'api_version' => :'apiVersion',
|
|
40
43
|
:'timestamp' => :'timestamp',
|
|
41
44
|
:'account' => :'account',
|
|
45
|
+
:'workspace_id' => :'workspaceId',
|
|
42
46
|
:'data' => :'data'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
@@ -61,6 +65,7 @@ module Repull
|
|
|
61
65
|
:'api_version' => :'String',
|
|
62
66
|
:'timestamp' => :'Time',
|
|
63
67
|
:'account' => :'WebhookEventAccount',
|
|
68
|
+
:'workspace_id' => :'Integer',
|
|
64
69
|
:'data' => :'AccountNotificationsMissingPayload'
|
|
65
70
|
}
|
|
66
71
|
end
|
|
@@ -116,6 +121,10 @@ module Repull
|
|
|
116
121
|
self.account = attributes[:'account']
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
if attributes.key?(:'workspace_id')
|
|
125
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
126
|
+
end
|
|
127
|
+
|
|
119
128
|
if attributes.key?(:'data')
|
|
120
129
|
self.data = attributes[:'data']
|
|
121
130
|
else
|
|
@@ -223,6 +232,7 @@ module Repull
|
|
|
223
232
|
api_version == o.api_version &&
|
|
224
233
|
timestamp == o.timestamp &&
|
|
225
234
|
account == o.account &&
|
|
235
|
+
workspace_id == o.workspace_id &&
|
|
226
236
|
data == o.data
|
|
227
237
|
end
|
|
228
238
|
|
|
@@ -235,7 +245,7 @@ module Repull
|
|
|
235
245
|
# Calculates hash code according to all attributes.
|
|
236
246
|
# @return [Integer] Hash code
|
|
237
247
|
def hash
|
|
238
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
248
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
239
249
|
end
|
|
240
250
|
|
|
241
251
|
# Builds the object from hash
|
|
@@ -29,6 +29,9 @@ module Repull
|
|
|
29
29
|
|
|
30
30
|
attr_accessor :account
|
|
31
31
|
|
|
32
|
+
# 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.
|
|
33
|
+
attr_accessor :workspace_id
|
|
34
|
+
|
|
32
35
|
attr_accessor :data
|
|
33
36
|
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -39,6 +42,7 @@ module Repull
|
|
|
39
42
|
:'api_version' => :'apiVersion',
|
|
40
43
|
:'timestamp' => :'timestamp',
|
|
41
44
|
:'account' => :'account',
|
|
45
|
+
:'workspace_id' => :'workspaceId',
|
|
42
46
|
:'data' => :'data'
|
|
43
47
|
}
|
|
44
48
|
end
|
|
@@ -61,6 +65,7 @@ module Repull
|
|
|
61
65
|
:'api_version' => :'String',
|
|
62
66
|
:'timestamp' => :'Time',
|
|
63
67
|
:'account' => :'WebhookEventAccount',
|
|
68
|
+
:'workspace_id' => :'Integer',
|
|
64
69
|
:'data' => :'AccountUnitsAddedPayload'
|
|
65
70
|
}
|
|
66
71
|
end
|
|
@@ -116,6 +121,10 @@ module Repull
|
|
|
116
121
|
self.account = attributes[:'account']
|
|
117
122
|
end
|
|
118
123
|
|
|
124
|
+
if attributes.key?(:'workspace_id')
|
|
125
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
126
|
+
end
|
|
127
|
+
|
|
119
128
|
if attributes.key?(:'data')
|
|
120
129
|
self.data = attributes[:'data']
|
|
121
130
|
else
|
|
@@ -223,6 +232,7 @@ module Repull
|
|
|
223
232
|
api_version == o.api_version &&
|
|
224
233
|
timestamp == o.timestamp &&
|
|
225
234
|
account == o.account &&
|
|
235
|
+
workspace_id == o.workspace_id &&
|
|
226
236
|
data == o.data
|
|
227
237
|
end
|
|
228
238
|
|
|
@@ -235,7 +245,7 @@ module Repull
|
|
|
235
245
|
# Calculates hash code according to all attributes.
|
|
236
246
|
# @return [Integer] Hash code
|
|
237
247
|
def hash
|
|
238
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
248
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
239
249
|
end
|
|
240
250
|
|
|
241
251
|
# 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' => :'AiOperationCompletedPayload'
|
|
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' => :'AiOperationFailedPayload'
|
|
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
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Repull
|
|
17
17
|
# Top-level freshness indicator for any DB-backed Airbnb read. Tells consumers WHY a column may be `null` or stale without sprinkling per-row error envelopes through the response. The endpoint always returns 200 + DB data; this field is the single signal for \"should I prompt the user to reconnect / wait for sync?\". A workspace can connect several Airbnb accounts, so the answer has two levels. `accounts[]` carries the verdict per account; the top-level fields aggregate it. Scope a request with `?account_id=` and `accounts[]` holds exactly that account, with the top-level fields mirroring it.
|
|
18
18
|
class AirbnbDataFreshness < ApiModelBase
|
|
19
|
-
# The most recent Airbnb import COMPLETED by any account in scope
|
|
19
|
+
# The most recent Airbnb import COMPLETED by any account in scope — a full re-read of the account, which runs on connect, about once a day, and on `POST /v1/connections/{id}/imports`. `null` when none of them ever has. A run that failed or was rate-limited does not move it. It is not how current reservations and messages are: Airbnb notifies Repull of every new booking, change, cancellation and message as it happens, and those land within seconds between imports, on every access level.
|
|
20
20
|
attr_accessor :last_synced_at
|
|
21
21
|
|
|
22
22
|
# `true` only when EVERY connected Airbnb account is stale — nothing in this response can be trusted to be current. With one account (the common case) that is the same as it has always been. With several, one disconnected host no longer condemns the other's rows: `stale` stays `false` and `reason` becomes `partial_account_staleness`. Read `accounts[]` for which is which.
|
|
@@ -24,7 +24,7 @@ module Repull
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :account_name
|
|
26
26
|
|
|
27
|
-
# `COMPLETED`: settled in a payout. `
|
|
27
|
+
# `COMPLETED`: settled in a payout. `RELEASED`: Airbnb released it (its date has passed) but has not paid it out yet — the payout is held, or accumulating toward the host's next one; it becomes `COMPLETED` under its payout when paid. `UPCOMING`: expected, not released yet.
|
|
28
28
|
attr_accessor :status
|
|
29
29
|
|
|
30
30
|
# Airbnb's line type, verbatim: `Payout`, `Reservation`, `Adjustment`, `Resolution Payout`, `Resolution Adjustment`, `Cancellation Fee`, `Pass Through Tot`, …
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class AirbnbTransactionPayout < ApiModelBase
|
|
18
|
-
# The payout this line was settled in (its own id on a Payout row). `null` on an UPCOMING line.
|
|
18
|
+
# The payout this line was settled in (its own id on a Payout row). `null` on an unpaid (`RELEASED` / `UPCOMING`) line.
|
|
19
19
|
attr_accessor :payout_id
|
|
20
20
|
|
|
21
21
|
# `true` when Airbnb sent no payout id (a payout netting to $0.00) and Repull derived a stable one.
|
|
@@ -23,7 +23,7 @@ module Repull
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :payout_date
|
|
25
25
|
|
|
26
|
-
# Position within the payout, from 1. `null` on the Payout row and on
|
|
26
|
+
# Position within the payout, from 1. `null` on the Payout row and on unpaid lines.
|
|
27
27
|
attr_accessor :line_index
|
|
28
28
|
|
|
29
29
|
# On the Payout row only: the amount paid out. Its lines sum to it.
|
|
@@ -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' => :'BookingUnacknowledgedPayload'
|
|
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' => :'ChannelDegradedPayload'
|
|
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
|
|
@@ -27,6 +27,9 @@ module Repull
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :account
|
|
29
29
|
|
|
30
|
+
# 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.
|
|
31
|
+
attr_accessor :workspace_id
|
|
32
|
+
|
|
30
33
|
attr_accessor :data
|
|
31
34
|
|
|
32
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -37,6 +40,7 @@ module Repull
|
|
|
37
40
|
:'api_version' => :'apiVersion',
|
|
38
41
|
:'timestamp' => :'timestamp',
|
|
39
42
|
:'account' => :'account',
|
|
43
|
+
:'workspace_id' => :'workspaceId',
|
|
40
44
|
:'data' => :'data'
|
|
41
45
|
}
|
|
42
46
|
end
|
|
@@ -59,6 +63,7 @@ module Repull
|
|
|
59
63
|
:'api_version' => :'String',
|
|
60
64
|
:'timestamp' => :'Time',
|
|
61
65
|
:'account' => :'WebhookEventAccount',
|
|
66
|
+
:'workspace_id' => :'Integer',
|
|
62
67
|
:'data' => :'ChannelSyncFailurePayload'
|
|
63
68
|
}
|
|
64
69
|
end
|
|
@@ -114,6 +119,10 @@ module Repull
|
|
|
114
119
|
self.account = attributes[:'account']
|
|
115
120
|
end
|
|
116
121
|
|
|
122
|
+
if attributes.key?(:'workspace_id')
|
|
123
|
+
self.workspace_id = attributes[:'workspace_id']
|
|
124
|
+
end
|
|
125
|
+
|
|
117
126
|
if attributes.key?(:'data')
|
|
118
127
|
self.data = attributes[:'data']
|
|
119
128
|
else
|
|
@@ -221,6 +230,7 @@ module Repull
|
|
|
221
230
|
api_version == o.api_version &&
|
|
222
231
|
timestamp == o.timestamp &&
|
|
223
232
|
account == o.account &&
|
|
233
|
+
workspace_id == o.workspace_id &&
|
|
224
234
|
data == o.data
|
|
225
235
|
end
|
|
226
236
|
|
|
@@ -233,7 +243,7 @@ module Repull
|
|
|
233
243
|
# Calculates hash code according to all attributes.
|
|
234
244
|
# @return [Integer] Hash code
|
|
235
245
|
def hash
|
|
236
|
-
[event, event_id, api_version, timestamp, account, data].hash
|
|
246
|
+
[event, event_id, api_version, timestamp, account, workspace_id, data].hash
|
|
237
247
|
end
|
|
238
248
|
|
|
239
249
|
# 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' => :'ConnectSessionAbandonedPayload'
|
|
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' => :'ConnectSessionCompletedPayload'
|
|
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
|
|
@@ -45,6 +45,9 @@ module Repull
|
|
|
45
45
|
# PMS connections only: what the app may change in the PMS. Change it with `PATCH /v1/connect/{provider}/write-policy`.
|
|
46
46
|
attr_accessor :write_policy
|
|
47
47
|
|
|
48
|
+
# Hospitable only (`GET /v1/connect/hospitable`): the webhook URL the host pastes into Hospitable (Apps → Webhooks → + Add new) and whether deliveries are arriving.
|
|
49
|
+
attr_accessor :webhook
|
|
50
|
+
|
|
48
51
|
attr_accessor :capabilities
|
|
49
52
|
|
|
50
53
|
# Vrbo only: the same freshness envelope the Airbnb read endpoints return, per account and in aggregate. Its reason is never_synced until a mapping is confirmed and importing while upcoming bookings come in.
|
|
@@ -92,6 +95,7 @@ module Repull
|
|
|
92
95
|
:'host' => :'host',
|
|
93
96
|
:'accounts' => :'accounts',
|
|
94
97
|
:'write_policy' => :'writePolicy',
|
|
98
|
+
:'webhook' => :'webhook',
|
|
95
99
|
:'capabilities' => :'capabilities',
|
|
96
100
|
:'data_freshness' => :'dataFreshness',
|
|
97
101
|
:'action' => :'action',
|
|
@@ -123,6 +127,7 @@ module Repull
|
|
|
123
127
|
:'host' => :'ConnectHost',
|
|
124
128
|
:'accounts' => :'Array<ConnectStatusAccountsInner>',
|
|
125
129
|
:'write_policy' => :'PmsWritePolicy',
|
|
130
|
+
:'webhook' => :'HospitableWebhook',
|
|
126
131
|
:'capabilities' => :'ConnectStatusCapabilities',
|
|
127
132
|
:'data_freshness' => :'Object',
|
|
128
133
|
:'action' => :'ConnectionAction',
|
|
@@ -136,6 +141,7 @@ module Repull
|
|
|
136
141
|
:'external_account_id',
|
|
137
142
|
:'access_type',
|
|
138
143
|
:'host',
|
|
144
|
+
:'webhook',
|
|
139
145
|
:'action',
|
|
140
146
|
:'fix_url'
|
|
141
147
|
])
|
|
@@ -203,6 +209,10 @@ module Repull
|
|
|
203
209
|
self.write_policy = attributes[:'write_policy']
|
|
204
210
|
end
|
|
205
211
|
|
|
212
|
+
if attributes.key?(:'webhook')
|
|
213
|
+
self.webhook = attributes[:'webhook']
|
|
214
|
+
end
|
|
215
|
+
|
|
206
216
|
if attributes.key?(:'capabilities')
|
|
207
217
|
self.capabilities = attributes[:'capabilities']
|
|
208
218
|
end
|
|
@@ -251,6 +261,7 @@ module Repull
|
|
|
251
261
|
host == o.host &&
|
|
252
262
|
accounts == o.accounts &&
|
|
253
263
|
write_policy == o.write_policy &&
|
|
264
|
+
webhook == o.webhook &&
|
|
254
265
|
capabilities == o.capabilities &&
|
|
255
266
|
data_freshness == o.data_freshness &&
|
|
256
267
|
action == o.action &&
|
|
@@ -266,7 +277,7 @@ module Repull
|
|
|
266
277
|
# Calculates hash code according to all attributes.
|
|
267
278
|
# @return [Integer] Hash code
|
|
268
279
|
def hash
|
|
269
|
-
[connected, provider, id, connection_id, status, external_account_id, created_at, access_type, host, accounts, write_policy, capabilities, data_freshness, action, fix_url].hash
|
|
280
|
+
[connected, provider, id, connection_id, status, external_account_id, created_at, access_type, host, accounts, write_policy, webhook, capabilities, data_freshness, action, fix_url].hash
|
|
270
281
|
end
|
|
271
282
|
|
|
272
283
|
# Builds the object from hash
|
|
@@ -63,6 +63,9 @@ module Repull
|
|
|
63
63
|
# Apps only: how the app is doing on this connection. `null` once disconnected.
|
|
64
64
|
attr_accessor :health
|
|
65
65
|
|
|
66
|
+
# Hospitable only: the webhook URL the host pastes into Hospitable (Apps → Webhooks → + Add new) and whether deliveries are arriving. Show it in your own UI so the host can set it up. Absent for other providers.
|
|
67
|
+
attr_accessor :webhook
|
|
68
|
+
|
|
66
69
|
class EnumAttributeValidator
|
|
67
70
|
attr_reader :datatype
|
|
68
71
|
attr_reader :allowable_values
|
|
@@ -104,7 +107,8 @@ module Repull
|
|
|
104
107
|
:'key_masked' => :'keyMasked',
|
|
105
108
|
:'label' => :'label',
|
|
106
109
|
:'disconnected_at' => :'disconnectedAt',
|
|
107
|
-
:'health' => :'health'
|
|
110
|
+
:'health' => :'health',
|
|
111
|
+
:'webhook' => :'webhook'
|
|
108
112
|
}
|
|
109
113
|
end
|
|
110
114
|
|
|
@@ -137,7 +141,8 @@ module Repull
|
|
|
137
141
|
:'key_masked' => :'String',
|
|
138
142
|
:'label' => :'String',
|
|
139
143
|
:'disconnected_at' => :'Time',
|
|
140
|
-
:'health' => :'AppConnectionHealth'
|
|
144
|
+
:'health' => :'AppConnectionHealth',
|
|
145
|
+
:'webhook' => :'HospitableWebhook'
|
|
141
146
|
}
|
|
142
147
|
end
|
|
143
148
|
|
|
@@ -153,7 +158,8 @@ module Repull
|
|
|
153
158
|
:'listing_ids',
|
|
154
159
|
:'label',
|
|
155
160
|
:'disconnected_at',
|
|
156
|
-
:'health'
|
|
161
|
+
:'health',
|
|
162
|
+
:'webhook'
|
|
157
163
|
])
|
|
158
164
|
end
|
|
159
165
|
|
|
@@ -242,6 +248,10 @@ module Repull
|
|
|
242
248
|
if attributes.key?(:'health')
|
|
243
249
|
self.health = attributes[:'health']
|
|
244
250
|
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'webhook')
|
|
253
|
+
self.webhook = attributes[:'webhook']
|
|
254
|
+
end
|
|
245
255
|
end
|
|
246
256
|
|
|
247
257
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -280,7 +290,8 @@ module Repull
|
|
|
280
290
|
key_masked == o.key_masked &&
|
|
281
291
|
label == o.label &&
|
|
282
292
|
disconnected_at == o.disconnected_at &&
|
|
283
|
-
health == o.health
|
|
293
|
+
health == o.health &&
|
|
294
|
+
webhook == o.webhook
|
|
284
295
|
end
|
|
285
296
|
|
|
286
297
|
# @see the `==` method
|
|
@@ -292,7 +303,7 @@ module Repull
|
|
|
292
303
|
# Calculates hash code according to all attributes.
|
|
293
304
|
# @return [Integer] Hash code
|
|
294
305
|
def hash
|
|
295
|
-
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health].hash
|
|
306
|
+
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health, webhook].hash
|
|
296
307
|
end
|
|
297
308
|
|
|
298
309
|
# Builds the object from hash
|