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.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/lib/repull/api/airbnb_api.rb +11 -11
  3. data/lib/repull/api/connect_api.rb +5 -5
  4. data/lib/repull/api/connections_api.rb +4 -4
  5. data/lib/repull/api/reviews_api.rb +4 -4
  6. data/lib/repull/models/account_calendar_access_changed_event.rb +11 -1
  7. data/lib/repull/models/account_created_event.rb +11 -1
  8. data/lib/repull/models/account_disconnected_event.rb +11 -1
  9. data/lib/repull/models/account_import_completed_event.rb +11 -1
  10. data/lib/repull/models/account_import_failed_event.rb +11 -1
  11. data/lib/repull/models/account_import_started_event.rb +11 -1
  12. data/lib/repull/models/account_notifications_missing_event.rb +11 -1
  13. data/lib/repull/models/account_units_added_event.rb +11 -1
  14. data/lib/repull/models/ai_operation_completed_event.rb +11 -1
  15. data/lib/repull/models/ai_operation_failed_event.rb +11 -1
  16. data/lib/repull/models/airbnb_data_freshness.rb +1 -1
  17. data/lib/repull/models/airbnb_transaction.rb +1 -1
  18. data/lib/repull/models/airbnb_transaction_payout.rb +2 -2
  19. data/lib/repull/models/booking_unacknowledged_event.rb +11 -1
  20. data/lib/repull/models/channel_degraded_event.rb +11 -1
  21. data/lib/repull/models/channel_sync_failed_event.rb +11 -1
  22. data/lib/repull/models/connect_session_abandoned_event.rb +11 -1
  23. data/lib/repull/models/connect_session_completed_event.rb +11 -1
  24. data/lib/repull/models/connect_status.rb +12 -1
  25. data/lib/repull/models/connection.rb +16 -5
  26. data/lib/repull/models/conversation_message_status_changed_event.rb +11 -1
  27. data/lib/repull/models/create_price_labs_key201_response.rb +12 -1
  28. data/lib/repull/models/hospitable_webhook.rb +218 -0
  29. data/lib/repull/models/inquiry_created_event.rb +11 -1
  30. data/lib/repull/models/inquiry_updated_event.rb +11 -1
  31. data/lib/repull/models/listing_created_event.rb +11 -1
  32. data/lib/repull/models/listing_deleted_event.rb +11 -1
  33. data/lib/repull/models/listing_ical_feed_changed_event.rb +11 -1
  34. data/lib/repull/models/listing_reactivated_event.rb +11 -1
  35. data/lib/repull/models/listing_suspended_event.rb +11 -1
  36. data/lib/repull/models/listing_updated_event.rb +11 -1
  37. data/lib/repull/models/migration_completed_event.rb +1 -1
  38. data/lib/repull/models/migration_failed_event.rb +1 -1
  39. data/lib/repull/models/payment_completed_event.rb +11 -1
  40. data/lib/repull/models/payment_refunded_event.rb +11 -1
  41. data/lib/repull/models/payout_completed_event.rb +11 -1
  42. data/lib/repull/models/repull_ping_event.rb +11 -1
  43. data/lib/repull/models/reservation_alteration_created_event.rb +11 -1
  44. data/lib/repull/models/reservation_alteration_responded_event.rb +11 -1
  45. data/lib/repull/models/reservation_cancelled_event.rb +11 -1
  46. data/lib/repull/models/reservation_created_event.rb +11 -1
  47. data/lib/repull/models/reservation_message_reaction_event.rb +11 -1
  48. data/lib/repull/models/reservation_message_read_event.rb +11 -1
  49. data/lib/repull/models/reservation_message_received_event.rb +11 -1
  50. data/lib/repull/models/reservation_message_sent_event.rb +11 -1
  51. data/lib/repull/models/reservation_message_updated_event.rb +11 -1
  52. data/lib/repull/models/reservation_request_created_event.rb +11 -1
  53. data/lib/repull/models/reservation_request_updated_event.rb +11 -1
  54. data/lib/repull/models/reservation_thread_assigned_event.rb +11 -1
  55. data/lib/repull/models/reservation_updated_event.rb +11 -1
  56. data/lib/repull/models/review.rb +1 -1
  57. data/lib/repull/models/review_created_event.rb +11 -1
  58. data/lib/repull/models/review_responded_event.rb +11 -1
  59. data/lib/repull/models/start_connection_import202_response_data.rb +2 -2
  60. data/lib/repull/models/start_connection_import_request.rb +3 -3
  61. data/lib/repull/models/submit_hospitable_credentials200_response.rb +169 -0
  62. data/lib/repull/models/sync_airbnb_transactions200_response_accounts_inner.rb +1 -1
  63. data/lib/repull/models/sync_airbnb_transactions_request.rb +1 -1
  64. data/lib/repull/models/usage_quota_warning_event.rb +11 -1
  65. data/lib/repull/version.rb +1 -1
  66. data/lib/repull.rb +2 -0
  67. data/openapi/v1.json +314 -23
  68. metadata +4 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51f868d8a2397d51c596535c39c69c72ccfe941fd3e8ea5918771b9b2d694d87
4
- data.tar.gz: aff8905b78d11073fb4280b224b6d021ae4fefb7f6ab36e9821d1893a2ab83ea
3
+ metadata.gz: 2dd89f41149cb24a0923b9b82f9db81d3fbfe1e7b5f68d07c3aef6ce873596c1
4
+ data.tar.gz: 576fbad0f3b45836523f36b28ab469f2314bcc2e75cb0226cd81d19d22a27fab
5
5
  SHA512:
6
- metadata.gz: 00001265004ef575a17f126bd7354ebc9b52dc662578efd03d1a62fe647300cdca6f95c4bf4f0e108e5a655a5ae54463fdf2e53c6a06ec72639ddf1098cc5417
7
- data.tar.gz: 9349b5d24c13864a6824c0f23ae97583aa2fc8883c8a5f470c3f1a0d21e0faff384f97f858c7a926e7dba890d5197b4e61bc3e15b8bf22e8a8ffdb0b2e94d816
6
+ metadata.gz: d8ff10e39c15a80f930c5589ed68ac200ea5d635dbb219503f77833b5d1afacf835d878c87707ca2192377fef04b4e19f7994c4fae93b242c4209d372def0a4d
7
+ data.tar.gz: 8c57f8df8b29837097254cb0eb73471652f14e6099744e2d695af8da692b6a4497128d6023e9209b4604b509bc3e392f90ccddcc99297c3a79f58f55186ad731
@@ -2562,7 +2562,7 @@ module Repull
2562
2562
  end
2563
2563
 
2564
2564
  # List Airbnb reservations
2565
- # Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away. Walk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`. The cursor is opaque — never construct or parse it client-side. `?offset=` is also accepted as a first-class alias for shallow paging (0..10000) — see the `offset` parameter below. Mutually exclusive with `cursor`. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination. When `status` is omitted, all statuses are returned (Airbnb defaults to `accepted` only on its own surface, but this endpoint normalises to \"all\"). Pass `?status=accepted` to scope. Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account's rows; pass `?account_id=<airbnb host id>` to scope to one. Every row carries `accountId` + `accountName` either way, and `dataFreshness.accounts[]` reports each account's freshness separately, so one disconnected host no longer marks the whole response stale.
2565
+ # Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified `/v1/reservations` endpoint flattens away. **Real time.** Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included): it is here within seconds and fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. `dataFreshness.lastSyncedAt` is the last full re-read of the account, not the age of these rows. To re-read an account now, `POST /v1/connections/{id}/imports` with `{\"scope\": \"reservations\"}`. Walk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`. The cursor is opaque — never construct or parse it client-side. `?offset=` is also accepted as a first-class alias for shallow paging (0..10000) — see the `offset` parameter below. Mutually exclusive with `cursor`. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination. When `status` is omitted, all statuses are returned (Airbnb defaults to `accepted` only on its own surface, but this endpoint normalises to \"all\"). Pass `?status=accepted` to scope. Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account's rows; pass `?account_id=<airbnb host id>` to scope to one. Every row carries `accountId` + `accountName` either way, and `dataFreshness.accounts[]` reports each account's freshness separately, so one disconnected host no longer marks the whole response stale.
2566
2566
  # @param [Hash] opts the optional parameters
2567
2567
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2568
2568
  # @option opts [String] :cursor Opaque cursor returned by the previous response&#39;s &#x60;pagination.nextCursor&#x60;. Omit to fetch the first page.
@@ -2580,7 +2580,7 @@ module Repull
2580
2580
  end
2581
2581
 
2582
2582
  # List Airbnb reservations
2583
- # Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified &#x60;/v1/reservations&#x60; endpoint flattens away. Walk pages with &#x60;?cursor&#x3D;&lt;pagination.nextCursor&gt;&#x60; until &#x60;pagination.hasMore&#x60; is &#x60;false&#x60;. The cursor is opaque — never construct or parse it client-side. &#x60;?offset&#x3D;&#x60; is also accepted as a first-class alias for shallow paging (0..10000) — see the &#x60;offset&#x60; parameter below. Mutually exclusive with &#x60;cursor&#x60;. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination. When &#x60;status&#x60; is omitted, all statuses are returned (Airbnb defaults to &#x60;accepted&#x60; only on its own surface, but this endpoint normalises to \&quot;all\&quot;). Pass &#x60;?status&#x3D;accepted&#x60; to scope. Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (&#x60;listing_id&#x60;) returns &#x60;403 listing_inactive&#x60;. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account&#39;s rows; pass &#x60;?account_id&#x3D;&lt;airbnb host id&gt;&#x60; to scope to one. Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, and &#x60;dataFreshness.accounts[]&#x60; reports each account&#39;s freshness separately, so one disconnected host no longer marks the whole response stale.
2583
+ # Cursor-paginated list of reservations sourced directly from Airbnb. Use this when you need Airbnb-specific fields (guest payout split, cancellation policy snapshot) that the unified &#x60;/v1/reservations&#x60; endpoint flattens away. **Real time.** Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included): it is here within seconds and fires &#x60;reservation.created&#x60; / &#x60;reservation.updated&#x60; / &#x60;reservation.cancelled&#x60; within about a minute. &#x60;dataFreshness.lastSyncedAt&#x60; is the last full re-read of the account, not the age of these rows. To re-read an account now, &#x60;POST /v1/connections/{id}/imports&#x60; with &#x60;{\&quot;scope\&quot;: \&quot;reservations\&quot;}&#x60;. Walk pages with &#x60;?cursor&#x3D;&lt;pagination.nextCursor&gt;&#x60; until &#x60;pagination.hasMore&#x60; is &#x60;false&#x60;. The cursor is opaque — never construct or parse it client-side. &#x60;?offset&#x3D;&#x60; is also accepted as a first-class alias for shallow paging (0..10000) — see the &#x60;offset&#x60; parameter below. Mutually exclusive with &#x60;cursor&#x60;. Internally this walks upstream Airbnb cursor pages to skip rows, so deep offsets cost N/limit upstream round-trips; cursor remains the better choice for deep pagination. When &#x60;status&#x60; is omitted, all statuses are returned (Airbnb defaults to &#x60;accepted&#x60; only on its own surface, but this endpoint normalises to \&quot;all\&quot;). Pass &#x60;?status&#x3D;accepted&#x60; to scope. Reservations on inactive listings are left out (counts and cursors included); they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (&#x60;listing_id&#x60;) returns &#x60;403 listing_inactive&#x60;. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account&#39;s rows; pass &#x60;?account_id&#x3D;&lt;airbnb host id&gt;&#x60; to scope to one. Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, and &#x60;dataFreshness.accounts[]&#x60; reports each account&#39;s freshness separately, so one disconnected host no longer marks the whole response stale.
2584
2584
  # @param [Hash] opts the optional parameters
2585
2585
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2586
2586
  # @option opts [String] :cursor Opaque cursor returned by the previous response&#39;s &#x60;pagination.nextCursor&#x60;. Omit to fetch the first page.
@@ -2855,12 +2855,12 @@ module Repull
2855
2855
  end
2856
2856
 
2857
2857
  # List Airbnb transactions (settlement ledger)
2858
- # The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid — reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout's lines' signed `amount`s sum to its `payout.paidOutAmount` exactly, negative lines included (an adjustment offset against a later payout appears under that payout). `status: UPCOMING` lines are expected earnings not paid out yet; they belong to no payout. **Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row's id is Airbnb's payout id; a line's is `<payoutId>:<type>:<confirmationCode>:<n>`. The same line has the same id on every refresh and every page, so you can upsert on `transactionId`. A payout that nets to $0.00 has no Airbnb id; it gets a derived `Z-<date>-<hash>` id with `payout.payoutIdSynthetic: true`. **Order:** newest first by the payout's date; each Payout row is followed by its lines in Airbnb's order (`payout.lineIndex`). **Dates:** `start_date` / `end_date` match the payout's date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line's own date for UPCOMING lines. **Pure DB read** — never calls Airbnb. Refresh with `POST` on this path. `dataFreshness` reports when each account's ledger was last refreshed. Lines on listings that are inactive in Repull are included and flagged `onInactiveListing: true`, so every payout reconciles. Lines Repull cannot match to a reservation keep `reservationId: null`. **Not in Airbnb's transaction history** (listed in `unavailableFields`): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation's financial breakdown); pass-through occupancy tax paid to the host does appear, as its own `Pass Through Tot` lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).
2858
+ # The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid — reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout's lines' signed `amount`s sum to its `payout.paidOutAmount` exactly, negative lines included (an adjustment offset against a later payout appears under that payout). Lines not paid out yet belong to no payout: `status: RELEASED` lines were released by Airbnb (their date has passed) and are waiting for a payout — a held payout, or one accumulating toward the host's payout threshold or schedule; `status: UPCOMING` lines are not released yet. When a line is paid it appears as `COMPLETED` under its payout and its unpaid line goes away. **Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row's id is Airbnb's payout id; a line's is `<payoutId>:<type>:<confirmationCode>:<n>`. The same line has the same id on every refresh and every page, so you can upsert on `transactionId`. A payout that nets to $0.00 has no Airbnb id; it gets a derived `Z-<date>-<hash>` id with `payout.payoutIdSynthetic: true`. **Order:** newest first by the payout's date; each Payout row is followed by its lines in Airbnb's order (`payout.lineIndex`). **Dates:** `start_date` / `end_date` match the payout's date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line's own date for UPCOMING lines. **Pure DB read** — never calls Airbnb. Refresh with `POST` on this path. `dataFreshness` reports when each account's ledger was last refreshed. Lines on listings that are inactive in Repull are included and flagged `onInactiveListing: true`, so every payout reconciles. Lines Repull cannot match to a reservation keep `reservationId: null`. **Not in Airbnb's transaction history** (listed in `unavailableFields`): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation's financial breakdown); pass-through occupancy tax paid to the host does appear, as its own `Pass Through Tot` lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).
2859
2859
  # @param [Hash] opts the optional parameters
2860
2860
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2861
- # @option opts [Date] :start_date Inclusive lower bound on the payout&#39;s date (the line&#39;s own date for UPCOMING lines). YYYY-MM-DD.
2861
+ # @option opts [Date] :start_date Inclusive lower bound on the payout&#39;s date (the line&#39;s own date for unpaid &#x60;RELEASED&#x60; / &#x60;UPCOMING&#x60; lines). YYYY-MM-DD.
2862
2862
  # @option opts [Date] :end_date Inclusive upper bound, as &#x60;start_date&#x60;.
2863
- # @option opts [String] :status &#x60;COMPLETED&#x60; (settled) or &#x60;UPCOMING&#x60; (expected).
2863
+ # @option opts [String] :status &#x60;COMPLETED&#x60; (paid out), &#x60;RELEASED&#x60; (released by Airbnb, not paid out yet) or &#x60;UPCOMING&#x60; (not released yet).
2864
2864
  # @option opts [String] :type Airbnb&#39;s line type, exact match ignoring case — e.g. &#x60;Payout&#x60;, &#x60;Reservation&#x60;, &#x60;Adjustment&#x60;, &#x60;Resolution Payout&#x60;.
2865
2865
  # @option opts [String] :payout_id One payout: its Payout row and all its lines.
2866
2866
  # @option opts [String] :confirmation_code Every line for one reservation — each installment, adjustment and resolution.
@@ -2873,12 +2873,12 @@ module Repull
2873
2873
  end
2874
2874
 
2875
2875
  # List Airbnb transactions (settlement ledger)
2876
- # The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid — reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout&#39;s lines&#39; signed &#x60;amount&#x60;s sum to its &#x60;payout.paidOutAmount&#x60; exactly, negative lines included (an adjustment offset against a later payout appears under that payout). &#x60;status: UPCOMING&#x60; lines are expected earnings not paid out yet; they belong to no payout. **Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row&#39;s id is Airbnb&#39;s payout id; a line&#39;s is &#x60;&lt;payoutId&gt;:&lt;type&gt;:&lt;confirmationCode&gt;:&lt;n&gt;&#x60;. The same line has the same id on every refresh and every page, so you can upsert on &#x60;transactionId&#x60;. A payout that nets to $0.00 has no Airbnb id; it gets a derived &#x60;Z-&lt;date&gt;-&lt;hash&gt;&#x60; id with &#x60;payout.payoutIdSynthetic: true&#x60;. **Order:** newest first by the payout&#39;s date; each Payout row is followed by its lines in Airbnb&#39;s order (&#x60;payout.lineIndex&#x60;). **Dates:** &#x60;start_date&#x60; / &#x60;end_date&#x60; match the payout&#39;s date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line&#39;s own date for UPCOMING lines. **Pure DB read** — never calls Airbnb. Refresh with &#x60;POST&#x60; on this path. &#x60;dataFreshness&#x60; reports when each account&#39;s ledger was last refreshed. Lines on listings that are inactive in Repull are included and flagged &#x60;onInactiveListing: true&#x60;, so every payout reconciles. Lines Repull cannot match to a reservation keep &#x60;reservationId: null&#x60;. **Not in Airbnb&#39;s transaction history** (listed in &#x60;unavailableFields&#x60;): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation&#39;s financial breakdown); pass-through occupancy tax paid to the host does appear, as its own &#x60;Pass Through Tot&#x60; lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).
2876
+ # The Airbnb settlement ledger for this workspace: every payout Airbnb sent to the host, each followed by the lines it paid — reservations and their installments, adjustments, resolution payouts and adjustments, cancellation fees. A payout&#39;s lines&#39; signed &#x60;amount&#x60;s sum to its &#x60;payout.paidOutAmount&#x60; exactly, negative lines included (an adjustment offset against a later payout appears under that payout). Lines not paid out yet belong to no payout: &#x60;status: RELEASED&#x60; lines were released by Airbnb (their date has passed) and are waiting for a payout — a held payout, or one accumulating toward the host&#39;s payout threshold or schedule; &#x60;status: UPCOMING&#x60; lines are not released yet. When a line is paid it appears as &#x60;COMPLETED&#x60; under its payout and its unpaid line goes away. **Ids are stable.** Airbnb sends no line id and no payout id on lines, so Repull derives them deterministically: a Payout row&#39;s id is Airbnb&#39;s payout id; a line&#39;s is &#x60;&lt;payoutId&gt;:&lt;type&gt;:&lt;confirmationCode&gt;:&lt;n&gt;&#x60;. The same line has the same id on every refresh and every page, so you can upsert on &#x60;transactionId&#x60;. A payout that nets to $0.00 has no Airbnb id; it gets a derived &#x60;Z-&lt;date&gt;-&lt;hash&gt;&#x60; id with &#x60;payout.payoutIdSynthetic: true&#x60;. **Order:** newest first by the payout&#39;s date; each Payout row is followed by its lines in Airbnb&#39;s order (&#x60;payout.lineIndex&#x60;). **Dates:** &#x60;start_date&#x60; / &#x60;end_date&#x60; match the payout&#39;s date for settled lines (a line can be dated the day before its payout, and is still returned with it) and the line&#39;s own date for UPCOMING lines. **Pure DB read** — never calls Airbnb. Refresh with &#x60;POST&#x60; on this path. &#x60;dataFreshness&#x60; reports when each account&#39;s ledger was last refreshed. Lines on listings that are inactive in Repull are included and flagged &#x60;onInactiveListing: true&#x60;, so every payout reconciles. Lines Repull cannot match to a reservation keep &#x60;reservationId: null&#x60;. **Not in Airbnb&#39;s transaction history** (listed in &#x60;unavailableFields&#x60;): taxes Airbnb collects and remits itself, and the guest-paid total (see the reservation&#39;s financial breakdown); pass-through occupancy tax paid to the host does appear, as its own &#x60;Pass Through Tot&#x60; lines, the original line a refund or reversal reverses (it names the stay and the resolution), and currency-conversion amounts (only the payout currency is reported).
2877
2877
  # @param [Hash] opts the optional parameters
2878
2878
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2879
- # @option opts [Date] :start_date Inclusive lower bound on the payout&#39;s date (the line&#39;s own date for UPCOMING lines). YYYY-MM-DD.
2879
+ # @option opts [Date] :start_date Inclusive lower bound on the payout&#39;s date (the line&#39;s own date for unpaid &#x60;RELEASED&#x60; / &#x60;UPCOMING&#x60; lines). YYYY-MM-DD.
2880
2880
  # @option opts [Date] :end_date Inclusive upper bound, as &#x60;start_date&#x60;.
2881
- # @option opts [String] :status &#x60;COMPLETED&#x60; (settled) or &#x60;UPCOMING&#x60; (expected).
2881
+ # @option opts [String] :status &#x60;COMPLETED&#x60; (paid out), &#x60;RELEASED&#x60; (released by Airbnb, not paid out yet) or &#x60;UPCOMING&#x60; (not released yet).
2882
2882
  # @option opts [String] :type Airbnb&#39;s line type, exact match ignoring case — e.g. &#x60;Payout&#x60;, &#x60;Reservation&#x60;, &#x60;Adjustment&#x60;, &#x60;Resolution Payout&#x60;.
2883
2883
  # @option opts [String] :payout_id One payout: its Payout row and all its lines.
2884
2884
  # @option opts [String] :confirmation_code Every line for one reservation — each installment, adjustment and resolution.
@@ -2889,7 +2889,7 @@ module Repull
2889
2889
  if @api_client.config.debugging
2890
2890
  @api_client.config.logger.debug 'Calling API: AirbnbApi.list_airbnb_transactions ...'
2891
2891
  end
2892
- allowable_values = ["COMPLETED", "UPCOMING"]
2892
+ allowable_values = ["COMPLETED", "RELEASED", "UPCOMING"]
2893
2893
  if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
2894
2894
  fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
2895
2895
  end
@@ -3372,7 +3372,7 @@ module Repull
3372
3372
  end
3373
3373
 
3374
3374
  # Refresh Airbnb transactions
3375
- # Pull the transaction history from Airbnb into the ledger `GET` serves. Every connected Airbnb account is refreshed, or only `?account_id=`. Without dates: settled lines from the last 12 months and the forecast for the next 12. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the UPCOMING forecast inside the fetched window is replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in `accounts[]`: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb's reason and does not stop the others. When every account fails, the response is Airbnb's answer with its usual code.
3375
+ # Pull the transaction history from Airbnb into the ledger `GET` serves. Every connected Airbnb account is refreshed, or only `?account_id=`. Without dates: settled lines from the last 12 months, and every line not paid out yet from 12 months back to 12 months ahead — released lines that are held or accumulating keep their past release date, so the window reaches back for them. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the unpaid lines inside the fetched window are replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in `accounts[]`: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb's reason and does not stop the others. When every account fails, the response is Airbnb's answer with its usual code.
3376
3376
  # @param [Hash] opts the optional parameters
3377
3377
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
3378
3378
  # @option opts [SyncAirbnbTransactionsRequest] :sync_airbnb_transactions_request
@@ -3383,7 +3383,7 @@ module Repull
3383
3383
  end
3384
3384
 
3385
3385
  # Refresh Airbnb transactions
3386
- # Pull the transaction history from Airbnb into the ledger &#x60;GET&#x60; serves. Every connected Airbnb account is refreshed, or only &#x60;?account_id&#x3D;&#x60;. Without dates: settled lines from the last 12 months and the forecast for the next 12. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the UPCOMING forecast inside the fetched window is replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in &#x60;accounts[]&#x60;: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb&#39;s reason and does not stop the others. When every account fails, the response is Airbnb&#39;s answer with its usual code.
3386
+ # Pull the transaction history from Airbnb into the ledger &#x60;GET&#x60; serves. Every connected Airbnb account is refreshed, or only &#x60;?account_id&#x3D;&#x60;. Without dates: settled lines from the last 12 months, and every line not paid out yet from 12 months back to 12 months ahead — released lines that are held or accumulating keep their past release date, so the window reaches back for them. Safe to repeat: settled lines are upserted on their stable ids, never duplicated or removed; the unpaid lines inside the fetched window are replaced, so a line that has since been paid out moves to its payout. Each account reports its own outcome in &#x60;accounts[]&#x60;: one account Airbnb refuses (a revoked host, a listing Airbnb no longer serves) is reported there with Airbnb&#39;s reason and does not stop the others. When every account fails, the response is Airbnb&#39;s answer with its usual code.
3387
3387
  # @param [Hash] opts the optional parameters
3388
3388
  # @option opts [String] :account_id Scope the response to ONE connected Airbnb account. The value is the Airbnb host id — the same &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
3389
3389
  # @option opts [SyncAirbnbTransactionsRequest] :sync_airbnb_transactions_request
@@ -1824,20 +1824,20 @@ module Repull
1824
1824
  end
1825
1825
 
1826
1826
  # Submit Hospitable credentials for a Connect session
1827
- # Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable → Settings → API. The credentials are validated against Hospitable before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. No API key required when called with a `sessionId` — the session is the capability token.
1827
+ # Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable → Apps → API access → Access tokens. The credentials are validated against Hospitable before anything is persisted, so an invalid pair returns `invalid_credentials` rather than creating a dead connection. On success the `pms_connections` row is written and the Connect session moves to its terminal state. The response carries the connection's `webhook` URL: Hospitable has no API to subscribe webhooks, so show it to the host, who adds it in Hospitable (Apps → Webhooks → + Add new) for instant updates. No API key required when called with a `sessionId` — the session is the capability token.
1828
1828
  # @param submit_hospitable_credentials_request [SubmitHospitableCredentialsRequest]
1829
1829
  # @param [Hash] opts the optional parameters
1830
- # @return [SubmitBeds24Credentials200Response]
1830
+ # @return [SubmitHospitableCredentials200Response]
1831
1831
  def submit_hospitable_credentials(submit_hospitable_credentials_request, opts = {})
1832
1832
  data, _status_code, _headers = submit_hospitable_credentials_with_http_info(submit_hospitable_credentials_request, opts)
1833
1833
  data
1834
1834
  end
1835
1835
 
1836
1836
  # Submit Hospitable credentials for a Connect session
1837
- # Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable → Settings → API. The credentials are validated against Hospitable before anything is persisted, so an invalid pair returns &#x60;invalid_credentials&#x60; rather than creating a dead connection. On success the &#x60;pms_connections&#x60; row is written and the Connect session moves to its terminal state. No API key required when called with a &#x60;sessionId&#x60; — the session is the capability token.
1837
+ # Completes a credentials-pattern connection for Hospitable. Personal access token from Hospitable → Apps → API access → Access tokens. The credentials are validated against Hospitable before anything is persisted, so an invalid pair returns &#x60;invalid_credentials&#x60; rather than creating a dead connection. On success the &#x60;pms_connections&#x60; row is written and the Connect session moves to its terminal state. The response carries the connection&#39;s &#x60;webhook&#x60; URL: Hospitable has no API to subscribe webhooks, so show it to the host, who adds it in Hospitable (Apps → Webhooks → + Add new) for instant updates. No API key required when called with a &#x60;sessionId&#x60; — the session is the capability token.
1838
1838
  # @param submit_hospitable_credentials_request [SubmitHospitableCredentialsRequest]
1839
1839
  # @param [Hash] opts the optional parameters
1840
- # @return [Array<(SubmitBeds24Credentials200Response, Integer, Hash)>] SubmitBeds24Credentials200Response data, response status code and response headers
1840
+ # @return [Array<(SubmitHospitableCredentials200Response, Integer, Hash)>] SubmitHospitableCredentials200Response data, response status code and response headers
1841
1841
  def submit_hospitable_credentials_with_http_info(submit_hospitable_credentials_request, opts = {})
1842
1842
  if @api_client.config.debugging
1843
1843
  @api_client.config.logger.debug 'Calling API: ConnectApi.submit_hospitable_credentials ...'
@@ -1869,7 +1869,7 @@ module Repull
1869
1869
  post_body = opts[:debug_body] || @api_client.object_to_http_body(submit_hospitable_credentials_request)
1870
1870
 
1871
1871
  # return_type
1872
- return_type = opts[:debug_return_type] || 'SubmitBeds24Credentials200Response'
1872
+ return_type = opts[:debug_return_type] || 'SubmitHospitableCredentials200Response'
1873
1873
 
1874
1874
  # auth_names
1875
1875
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -386,8 +386,8 @@ module Repull
386
386
  return data, status_code, headers
387
387
  end
388
388
 
389
- # Refresh a connection's listings
390
- # Refresh listings: picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait. New listings obey your plan's active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status. The import runs in the background (`202`). It is recorded like any other import (trigger `resync`, one `listings` stage): follow it on `GET /v1/connections/{id}/imports` or wait for `account.import.completed`, then read the new listings with `GET /v1/listings`. Airbnb connections only for now. Returns `409 conflict` while a listings import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.
389
+ # Refresh a connection's listings or reservations
390
+ # Two scopes: `listings` (the default) and `reservations`. **`listings`** — picks up listings you've added on Airbnb since you connected. Re-reads the connected account's listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait. **`reservations`** — re-reads the account's reservations from Airbnb (stays from the last month and every future one) and applies anything that differs, firing the usual `reservation.*` webhooks for it. You do not need it to stay current: Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included), and Repull fires `reservation.created` / `reservation.updated` / `reservation.cancelled` within about a minute. Use it as a catch-up — for example after your own webhook endpoint was down — or to confirm a stay right now. New listings obey your plan's active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status. Both run in the background (`202`) and are recorded like any other import (trigger `resync`, one `listings` or `reservations` stage): follow it on `GET /v1/connections/{id}/imports` or wait for `account.import.completed`, then read the result with `GET /v1/listings` or `GET /v1/reservations`. Airbnb connections only for now. Returns `409 conflict` while a listings import of the account is already running, and `409 connection_reauth_required` when the account is disconnected. Two reservations refreshes of one account in the same minute are one refresh.
391
391
  # @param id [String] Airbnb connection handle &#x60;airbnb:{hostId}&#x60; — the &#x60;provider&#x60; and &#x60;externalAccountId&#x60; of an Airbnb connection on &#x60;GET /v1/connect&#x60;, or the account of an &#x60;account.*&#x60; webhook.
392
392
  # @param [Hash] opts the optional parameters
393
393
  # @option opts [StartConnectionImportRequest] :start_connection_import_request
@@ -397,8 +397,8 @@ module Repull
397
397
  data
398
398
  end
399
399
 
400
- # Refresh a connection&#39;s listings
401
- # Refresh listings: picks up listings you&#39;ve added on Airbnb since you connected. Re-reads the connected account&#39;s listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait. New listings obey your plan&#39;s active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status. The import runs in the background (&#x60;202&#x60;). It is recorded like any other import (trigger &#x60;resync&#x60;, one &#x60;listings&#x60; stage): follow it on &#x60;GET /v1/connections/{id}/imports&#x60; or wait for &#x60;account.import.completed&#x60;, then read the new listings with &#x60;GET /v1/listings&#x60;. Airbnb connections only for now. Returns &#x60;409 conflict&#x60; while a listings import of the account is already running, and &#x60;409 connection_reauth_required&#x60; when the account is disconnected.
400
+ # Refresh a connection&#39;s listings or reservations
401
+ # Two scopes: &#x60;listings&#x60; (the default) and &#x60;reservations&#x60;. **&#x60;listings&#x60;** — picks up listings you&#39;ve added on Airbnb since you connected. Re-reads the connected account&#39;s listings now: a new property comes in as a new listing, together with its calendar (pricing and availability), and existing listings are refreshed. On a full-access connection Repull is the source of your calendars, so the calendars of listings already in Repull are not re-read from Airbnb; on read-only and messaging connections they are. Nothing else is re-imported: no reservations, conversations, reviews or payouts. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. Call this when you know a property was just added and do not want to wait. **&#x60;reservations&#x60;** — re-reads the account&#39;s reservations from Airbnb (stays from the last month and every future one) and applies anything that differs, firing the usual &#x60;reservation.*&#x60; webhooks for it. You do not need it to stay current: Airbnb notifies Repull of every new booking, change and cancellation as it happens, on every access level (read-only included), and Repull fires &#x60;reservation.created&#x60; / &#x60;reservation.updated&#x60; / &#x60;reservation.cancelled&#x60; within about a minute. Use it as a catch-up — for example after your own webhook endpoint was down — or to confirm a stay right now. New listings obey your plan&#39;s active-listing limit: past it, and when the property is unlisted on Airbnb, they arrive inactive. Existing listings keep their status. Both run in the background (&#x60;202&#x60;) and are recorded like any other import (trigger &#x60;resync&#x60;, one &#x60;listings&#x60; or &#x60;reservations&#x60; stage): follow it on &#x60;GET /v1/connections/{id}/imports&#x60; or wait for &#x60;account.import.completed&#x60;, then read the result with &#x60;GET /v1/listings&#x60; or &#x60;GET /v1/reservations&#x60;. Airbnb connections only for now. Returns &#x60;409 conflict&#x60; while a listings import of the account is already running, and &#x60;409 connection_reauth_required&#x60; when the account is disconnected. Two reservations refreshes of one account in the same minute are one refresh.
402
402
  # @param id [String] Airbnb connection handle &#x60;airbnb:{hostId}&#x60; — the &#x60;provider&#x60; and &#x60;externalAccountId&#x60; of an Airbnb connection on &#x60;GET /v1/connect&#x60;, or the account of an &#x60;account.*&#x60; webhook.
403
403
  # @param [Hash] opts the optional parameters
404
404
  # @option opts [StartConnectionImportRequest] :start_connection_import_request
@@ -86,7 +86,7 @@ module Repull
86
86
  end
87
87
 
88
88
  # List reviews
89
- # Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history — separate from `/v1/channels/airbnb/reviews` which hits Airbnb live. `?offset=` is also accepted as a first-class alias for shallow paging (0..10000) — see the `offset` parameter below. Mutually exclusive with `cursor`. Filters: `platform` (`airbnb`|`booking`|`vrbo`), `listing_id` (internal Repull listing id), `rating_min` / `rating_max` (inclusive bounds, 0..5), `status` (`responded`|`unanswered`|`all`), `reviewer_role` (`guest` (default) | `host` | `all`). **Inactive listings:** reviews of inactive listings are left out of the page and of `pagination.total`. Filtering by an inactive `listing_id` returns `403 listing_inactive`. Inactive listings keep syncing; activate the listing to use it here.
89
+ # Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history — separate from `/v1/channels/airbnb/reviews` which hits Airbnb live. `?offset=` is also accepted as a first-class alias for shallow paging (0..10000) — see the `offset` parameter below. Mutually exclusive with `cursor`. **Reviews from a connected PMS** (Guesty, Hostaway, Hospitable) are in the same stream, with `pms` naming the PMS and `platform` the channel the guest wrote on (so `platform=airbnb` includes Airbnb reviews relayed by a PMS). They arrive with the PMS's first import and then within 30 minutes of the PMS receiving them. When the same stay's review comes both from a channel you connected directly and from a PMS, it is returned once: the channel's copy wins. Filters: `platform` (`airbnb`|`booking`|`vrbo`), `listing_id` (internal Repull listing id), `rating_min` / `rating_max` (inclusive bounds, 0..5), `status` (`responded`|`unanswered`|`all`), `reviewer_role` (`guest` (default) | `host` | `all`). **Inactive listings:** reviews of inactive listings are left out of the page and of `pagination.total`. Filtering by an inactive `listing_id` returns `403 listing_inactive`. Inactive listings keep syncing; activate the listing to use it here.
90
90
  # @param [Hash] opts the optional parameters
91
91
  # @option opts [String] :account Only the records of one connected account, as &#x60;provider:externalAccountId&#x60; — the pair from a webhook &#x60;account&#x60; block, &#x60;connect.session.completed&#x60;, or &#x60;GET /v1/connect/{provider}&#x60; → &#x60;accounts&#x60;. &#x60;externalAccountId&#x60; is the platform&#39;s own id (e.g. &#x60;airbnb:79730216&#x60;, &#x60;booking:17627428&#x60;, &#x60;booking_extranet:20123456&#x60;). The old Extranet / Vrbo login ids (&#x60;booking_extranet:88&#x60;, &#x60;vrbo:46&#x60;) still work until 2027-02-12. A record belongs to an account when it is on that account&#39;s listings and on its channel (a PMS account: came in through that PMS). An account with no listings returns an empty page.
92
92
  # @option opts [String] :x_schema Apply a custom or built-in schema to transform the response. Built-in: &#x60;native&#x60; (default), &#x60;calry&#x60;, &#x60;calry-v1&#x60;. Custom: any schema name created via &#x60;POST /v1/schema/custom&#x60;. Unknown / inactive schema names fall back to &#x60;native&#x60;.
@@ -106,7 +106,7 @@ module Repull
106
106
  end
107
107
 
108
108
  # List reviews
109
- # Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history — separate from &#x60;/v1/channels/airbnb/reviews&#x60; which hits Airbnb live. &#x60;?offset&#x3D;&#x60; is also accepted as a first-class alias for shallow paging (0..10000) — see the &#x60;offset&#x60; parameter below. Mutually exclusive with &#x60;cursor&#x60;. Filters: &#x60;platform&#x60; (&#x60;airbnb&#x60;|&#x60;booking&#x60;|&#x60;vrbo&#x60;), &#x60;listing_id&#x60; (internal Repull listing id), &#x60;rating_min&#x60; / &#x60;rating_max&#x60; (inclusive bounds, 0..5), &#x60;status&#x60; (&#x60;responded&#x60;|&#x60;unanswered&#x60;|&#x60;all&#x60;), &#x60;reviewer_role&#x60; (&#x60;guest&#x60; (default) | &#x60;host&#x60; | &#x60;all&#x60;). **Inactive listings:** reviews of inactive listings are left out of the page and of &#x60;pagination.total&#x60;. Filtering by an inactive &#x60;listing_id&#x60; returns &#x60;403 listing_inactive&#x60;. Inactive listings keep syncing; activate the listing to use it here.
109
+ # Cursor-paginated guest + host review stream for the workspace. This surface returns the complete cross-channel history — separate from &#x60;/v1/channels/airbnb/reviews&#x60; which hits Airbnb live. &#x60;?offset&#x3D;&#x60; is also accepted as a first-class alias for shallow paging (0..10000) — see the &#x60;offset&#x60; parameter below. Mutually exclusive with &#x60;cursor&#x60;. **Reviews from a connected PMS** (Guesty, Hostaway, Hospitable) are in the same stream, with &#x60;pms&#x60; naming the PMS and &#x60;platform&#x60; the channel the guest wrote on (so &#x60;platform&#x3D;airbnb&#x60; includes Airbnb reviews relayed by a PMS). They arrive with the PMS&#39;s first import and then within 30 minutes of the PMS receiving them. When the same stay&#39;s review comes both from a channel you connected directly and from a PMS, it is returned once: the channel&#39;s copy wins. Filters: &#x60;platform&#x60; (&#x60;airbnb&#x60;|&#x60;booking&#x60;|&#x60;vrbo&#x60;), &#x60;listing_id&#x60; (internal Repull listing id), &#x60;rating_min&#x60; / &#x60;rating_max&#x60; (inclusive bounds, 0..5), &#x60;status&#x60; (&#x60;responded&#x60;|&#x60;unanswered&#x60;|&#x60;all&#x60;), &#x60;reviewer_role&#x60; (&#x60;guest&#x60; (default) | &#x60;host&#x60; | &#x60;all&#x60;). **Inactive listings:** reviews of inactive listings are left out of the page and of &#x60;pagination.total&#x60;. Filtering by an inactive &#x60;listing_id&#x60; returns &#x60;403 listing_inactive&#x60;. Inactive listings keep syncing; activate the listing to use it here.
110
110
  # @param [Hash] opts the optional parameters
111
111
  # @option opts [String] :account Only the records of one connected account, as &#x60;provider:externalAccountId&#x60; — the pair from a webhook &#x60;account&#x60; block, &#x60;connect.session.completed&#x60;, or &#x60;GET /v1/connect/{provider}&#x60; → &#x60;accounts&#x60;. &#x60;externalAccountId&#x60; is the platform&#39;s own id (e.g. &#x60;airbnb:79730216&#x60;, &#x60;booking:17627428&#x60;, &#x60;booking_extranet:20123456&#x60;). The old Extranet / Vrbo login ids (&#x60;booking_extranet:88&#x60;, &#x60;vrbo:46&#x60;) still work until 2027-02-12. A record belongs to an account when it is on that account&#39;s listings and on its channel (a PMS account: came in through that PMS). An account with no listings returns an empty page.
112
112
  # @option opts [String] :x_schema Apply a custom or built-in schema to transform the response. Built-in: &#x60;native&#x60; (default), &#x60;calry&#x60;, &#x60;calry-v1&#x60;. Custom: any schema name created via &#x60;POST /v1/schema/custom&#x60;. Unknown / inactive schema names fall back to &#x60;native&#x60;.
@@ -220,7 +220,7 @@ module Repull
220
220
  end
221
221
 
222
222
  # Reply to a review on any channel
223
- # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
223
+ # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is `409 already_replied`; a review VRBO no longer takes a response to is `409 reply_not_allowed`). On VRBO the response is signed with a name — the connected account's host name, or `name` if you send it. A review from a channel without a reply API returns `422 unsupported_channel` naming the channels that do work. **Reviews read from a PMS** (`pms` set on the review — Guesty, Hostaway, Hospitable, …) are answered through that PMS. Guesty and Hospitable reply on Airbnb and Booking.com reviews; Hospitable takes one response per review while the channel's window is open, and refuses otherwise with `422 pms_rejected` carrying its reason. A PMS whose API has no reply returns `422 pms_write_unsupported` naming it (Hostaway today); `GET /v1/connect/{provider}` → `capabilities.pms.reviews.reply` says so beforehand. A revoked PMS connection is `403 connection_reauth_required`. To review a guest (Airbnb and Vrbo), use `POST /v1/reviews/{id}/guest-review`. **Inactive listings:** a review of an inactive listing returns `403 listing_inactive` and no reply reaches the channel. Activate the listing first.
224
224
  # @param id [Integer] Internal Repull review id.
225
225
  # @param reply_to_review_request [ReplyToReviewRequest]
226
226
  # @param [Hash] opts the optional parameters
@@ -231,7 +231,7 @@ module Repull
231
231
  end
232
232
 
233
233
  # Reply to a review on any channel
234
- # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is &#x60;409 already_replied&#x60;; a review VRBO no longer takes a response to is &#x60;409 reply_not_allowed&#x60;). On VRBO the response is signed with a name — the connected account&#39;s host name, or &#x60;name&#x60; if you send it. A review from a channel without a reply API returns &#x60;422 unsupported_channel&#x60; naming the channels that do work. **Reviews read from a PMS** (&#x60;pms&#x60; set on the review — Guesty, Hostaway, …) are answered through that PMS. A PMS whose API has no reply returns &#x60;422 pms_write_unsupported&#x60; naming it (Hostaway today); &#x60;GET /v1/connect/{provider}&#x60; → &#x60;capabilities.pms.reviews.reply&#x60; says so beforehand. A revoked PMS connection is &#x60;403 connection_reauth_required&#x60;. To review a guest (Airbnb and Vrbo), use &#x60;POST /v1/reviews/{id}/guest-review&#x60;. **Inactive listings:** a review of an inactive listing returns &#x60;403 listing_inactive&#x60; and no reply reaches the channel. Activate the listing first.
234
+ # Resolves the review, reads its channel and dispatches the reply. Channel-neutral: you do not need to know where the review came from. Replies work on Airbnb, Booking.com and VRBO. Each channel accepts one reply per review (VRBO: a second is &#x60;409 already_replied&#x60;; a review VRBO no longer takes a response to is &#x60;409 reply_not_allowed&#x60;). On VRBO the response is signed with a name — the connected account&#39;s host name, or &#x60;name&#x60; if you send it. A review from a channel without a reply API returns &#x60;422 unsupported_channel&#x60; naming the channels that do work. **Reviews read from a PMS** (&#x60;pms&#x60; set on the review — Guesty, Hostaway, Hospitable, …) are answered through that PMS. Guesty and Hospitable reply on Airbnb and Booking.com reviews; Hospitable takes one response per review while the channel&#39;s window is open, and refuses otherwise with &#x60;422 pms_rejected&#x60; carrying its reason. A PMS whose API has no reply returns &#x60;422 pms_write_unsupported&#x60; naming it (Hostaway today); &#x60;GET /v1/connect/{provider}&#x60; → &#x60;capabilities.pms.reviews.reply&#x60; says so beforehand. A revoked PMS connection is &#x60;403 connection_reauth_required&#x60;. To review a guest (Airbnb and Vrbo), use &#x60;POST /v1/reviews/{id}/guest-review&#x60;. **Inactive listings:** a review of an inactive listing returns &#x60;403 listing_inactive&#x60; and no reply reaches the channel. Activate the listing first.
235
235
  # @param id [Integer] Internal Repull review id.
236
236
  # @param reply_to_review_request [ReplyToReviewRequest]
237
237
  # @param [Hash] opts the optional parameters
@@ -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' => :'AccountCalendarAccessChangedPayload'
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' => :'AccountCreatedPayload'
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' => :'AccountDisconnectedPayload'
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' => :'AccountImportFinishedPayload'
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' => :'AccountImportFinishedPayload'
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' => :'AccountImportStartedPayload'
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