repull 0.2.57 → 0.2.59

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.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/connect_api.rb +137 -6
  3. data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
  4. data/lib/repull/models/account_created_event.rb +11 -1
  5. data/lib/repull/models/account_disconnected_event.rb +11 -1
  6. data/lib/repull/models/account_import_completed_event.rb +11 -1
  7. data/lib/repull/models/account_import_failed_event.rb +11 -1
  8. data/lib/repull/models/account_import_started_event.rb +11 -1
  9. data/lib/repull/models/account_notifications_missing_event.rb +11 -1
  10. data/lib/repull/models/account_units_added_event.rb +11 -1
  11. data/lib/repull/models/ai_operation_completed_event.rb +11 -1
  12. data/lib/repull/models/ai_operation_failed_event.rb +11 -1
  13. data/lib/repull/models/app_connection_health.rb +301 -0
  14. data/lib/repull/models/app_connection_health_recent_errors_inner.rb +184 -0
  15. data/lib/repull/models/app_connection_health_writes_per_day_inner.rb +156 -0
  16. data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
  17. data/lib/repull/models/channel_degraded_event.rb +11 -1
  18. data/lib/repull/models/channel_sync_failed_event.rb +11 -1
  19. data/lib/repull/models/connect_provider.rb +2 -2
  20. data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
  21. data/lib/repull/models/connect_session_completed_event.rb +11 -1
  22. data/lib/repull/models/connect_status.rb +1 -1
  23. data/lib/repull/models/connection.rb +81 -5
  24. data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
  25. data/lib/repull/models/create_connection_request.rb +10 -1
  26. data/lib/repull/models/create_connection_request_workspace.rb +203 -0
  27. data/lib/repull/models/create_price_labs_key201_response.rb +399 -0
  28. data/lib/repull/models/create_price_labs_key201_response_all_of_instructions.rb +159 -0
  29. data/lib/repull/models/create_price_labs_key_request.rb +207 -0
  30. data/lib/repull/models/get_price_labs_session_status200_response.rb +192 -0
  31. data/lib/repull/models/inquiry_created_event.rb +11 -1
  32. data/lib/repull/models/inquiry_updated_event.rb +11 -1
  33. data/lib/repull/models/listing_created_event.rb +11 -1
  34. data/lib/repull/models/listing_deleted_event.rb +11 -1
  35. data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
  36. data/lib/repull/models/listing_reactivated_event.rb +11 -1
  37. data/lib/repull/models/listing_suspended_event.rb +11 -1
  38. data/lib/repull/models/listing_updated_event.rb +11 -1
  39. data/lib/repull/models/migration_completed_event.rb +1 -1
  40. data/lib/repull/models/migration_failed_event.rb +1 -1
  41. data/lib/repull/models/payment_completed_event.rb +11 -1
  42. data/lib/repull/models/payment_refunded_event.rb +11 -1
  43. data/lib/repull/models/payout_completed_event.rb +11 -1
  44. data/lib/repull/models/repull_ping_event.rb +11 -1
  45. data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
  46. data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
  47. data/lib/repull/models/reservation_cancelled_event.rb +11 -1
  48. data/lib/repull/models/reservation_created_event.rb +11 -1
  49. data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
  50. data/lib/repull/models/reservation_message_read_event.rb +11 -1
  51. data/lib/repull/models/reservation_message_received_event.rb +11 -1
  52. data/lib/repull/models/reservation_message_sent_event.rb +11 -1
  53. data/lib/repull/models/reservation_message_updated_event.rb +11 -1
  54. data/lib/repull/models/reservation_request_created_event.rb +11 -1
  55. data/lib/repull/models/reservation_request_updated_event.rb +11 -1
  56. data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
  57. data/lib/repull/models/reservation_updated_event.rb +11 -1
  58. data/lib/repull/models/review_created_event.rb +11 -1
  59. data/lib/repull/models/review_responded_event.rb +11 -1
  60. data/lib/repull/models/usage_quota_warning_event.rb +11 -1
  61. data/lib/repull/version.rb +1 -1
  62. data/lib/repull.rb +8 -0
  63. data/openapi/v1.json +576 -8
  64. metadata +10 -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' => :'InquiryUpdatedPayload'
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' => :'ListingCreatedPayload'
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' => :'ListingDeletedPayload'
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
@@ -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' => :'ListingIcalFeedChangedPayload'
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' => :'ListingSuspensionPayload'
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' => :'ListingSuspensionPayload'
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' => :'ListingUpdatedPayload'
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
@@ -29,7 +29,7 @@ module Repull
29
29
 
30
30
  attr_accessor :account
31
31
 
32
- # The migration's workspace — pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`.
32
+ # The migration's workspace — pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings.
33
33
  attr_accessor :workspace_id
34
34
 
35
35
  attr_accessor :data
@@ -29,7 +29,7 @@ module Repull
29
29
 
30
30
  attr_accessor :account
31
31
 
32
- # The migration's workspace — pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`.
32
+ # The migration's workspace — pass it as `X-Workspace-Id`, or to `GET /v1/migrations/{workspaceId}`. Always present on migration events. A JSON number here; `POST /v1/connect` and `GET /v1/workspaces` return the same id as a string, so compare as strings.
33
33
  attr_accessor :workspace_id
34
34
 
35
35
  attr_accessor :data
@@ -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' => :'PaymentCompletedPayload'
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' => :'PaymentRefundedPayload'
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' => :'PayoutCompletedPayload'
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' => :'RepullPingPayload'
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' => :'ReservationAlterationCreatedPayload'
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