repull 0.2.59 → 0.2.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/repull/api/airbnb_api.rb +11 -11
- data/lib/repull/api/connect_api.rb +5 -5
- data/lib/repull/api/connections_api.rb +4 -4
- data/lib/repull/api/reviews_api.rb +4 -4
- data/lib/repull/models/airbnb_data_freshness.rb +1 -1
- data/lib/repull/models/airbnb_transaction.rb +1 -1
- data/lib/repull/models/airbnb_transaction_payout.rb +2 -2
- data/lib/repull/models/connect_status.rb +12 -1
- data/lib/repull/models/connection.rb +16 -5
- data/lib/repull/models/create_price_labs_key201_response.rb +12 -1
- data/lib/repull/models/hospitable_webhook.rb +218 -0
- data/lib/repull/models/review.rb +1 -1
- data/lib/repull/models/start_connection_import202_response_data.rb +2 -2
- data/lib/repull/models/start_connection_import_request.rb +3 -3
- data/lib/repull/models/submit_hospitable_credentials200_response.rb +169 -0
- data/lib/repull/models/sync_airbnb_transactions200_response_accounts_inner.rb +1 -1
- data/lib/repull/models/sync_airbnb_transactions_request.rb +1 -1
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +2 -0
- data/openapi/v1.json +92 -21
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2dd89f41149cb24a0923b9b82f9db81d3fbfe1e7b5f68d07c3aef6ce873596c1
|
|
4
|
+
data.tar.gz: 576fbad0f3b45836523f36b28ab469f2314bcc2e75cb0226cd81d19d22a27fab
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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's `pagination.nextCursor`. 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 `/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.
|
|
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 `/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.
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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's `pagination.nextCursor`. 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:
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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's date (the line's own date for UPCOMING lines). YYYY-MM-DD.
|
|
2861
|
+
# @option opts [Date] :start_date Inclusive lower bound on the payout's date (the line's own date for unpaid `RELEASED` / `UPCOMING` lines). YYYY-MM-DD.
|
|
2862
2862
|
# @option opts [Date] :end_date Inclusive upper bound, as `start_date`.
|
|
2863
|
-
# @option opts [String] :status `COMPLETED` (
|
|
2863
|
+
# @option opts [String] :status `COMPLETED` (paid out), `RELEASED` (released by Airbnb, not paid out yet) or `UPCOMING` (not released yet).
|
|
2864
2864
|
# @option opts [String] :type Airbnb's line type, exact match ignoring case — e.g. `Payout`, `Reservation`, `Adjustment`, `Resolution Payout`.
|
|
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'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:
|
|
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'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).
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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's date (the line's own date for UPCOMING lines). YYYY-MM-DD.
|
|
2879
|
+
# @option opts [Date] :start_date Inclusive lower bound on the payout's date (the line's own date for unpaid `RELEASED` / `UPCOMING` lines). YYYY-MM-DD.
|
|
2880
2880
|
# @option opts [Date] :end_date Inclusive upper bound, as `start_date`.
|
|
2881
|
-
# @option opts [String] :status `COMPLETED` (
|
|
2881
|
+
# @option opts [String] :status `COMPLETED` (paid out), `RELEASED` (released by Airbnb, not paid out yet) or `UPCOMING` (not released yet).
|
|
2882
2882
|
# @option opts [String] :type Airbnb's line type, exact match ignoring case — e.g. `Payout`, `Reservation`, `Adjustment`, `Resolution Payout`.
|
|
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
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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 `GET` serves. Every connected Airbnb account is refreshed, or only `?account_id=`. Without dates: settled lines from the last 12 months and
|
|
3386
|
+
# 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.
|
|
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 `accounts[].externalAccountId` that `GET /v1/connect/airbnb` returns and `DELETE /v1/connect/airbnb?accountId=` accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account's rows (the default, unchanged). Every row carries `accountId` + `accountName` either way, so you can group without a second call. An id that is not connected to THIS workspace returns `404 not_found` with your own ids in `valid_values` — we do not distinguish \"no such host\" from \"someone else's host\", because confirming the latter would leak another workspace's account. Note this is NOT the `X-Account-Id` 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 →
|
|
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 [
|
|
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 →
|
|
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 `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.
|
|
1838
1838
|
# @param submit_hospitable_credentials_request [SubmitHospitableCredentialsRequest]
|
|
1839
1839
|
# @param [Hash] opts the optional parameters
|
|
1840
|
-
# @return [Array<(
|
|
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] || '
|
|
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
|
-
#
|
|
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 `airbnb:{hostId}` — the `provider` and `externalAccountId` of an Airbnb connection on `GET /v1/connect`, or the account of an `account.*` 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's listings
|
|
401
|
-
#
|
|
400
|
+
# Refresh a connection's listings or reservations
|
|
401
|
+
# 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.
|
|
402
402
|
# @param id [String] Airbnb connection handle `airbnb:{hostId}` — the `provider` and `externalAccountId` of an Airbnb connection on `GET /v1/connect`, or the account of an `account.*` 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 `provider:externalAccountId` — the pair from a webhook `account` block, `connect.session.completed`, or `GET /v1/connect/{provider}` → `accounts`. `externalAccountId` is the platform's own id (e.g. `airbnb:79730216`, `booking:17627428`, `booking_extranet:20123456`). The old Extranet / Vrbo login ids (`booking_extranet:88`, `vrbo:46`) still work until 2027-02-12. A record belongs to an account when it is on that account'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: `native` (default), `calry`, `calry-v1`. Custom: any schema name created via `POST /v1/schema/custom`. Unknown / inactive schema names fall back to `native`.
|
|
@@ -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 `/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.
|
|
109
|
+
# 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.
|
|
110
110
|
# @param [Hash] opts the optional parameters
|
|
111
111
|
# @option opts [String] :account Only the records of one connected account, as `provider:externalAccountId` — the pair from a webhook `account` block, `connect.session.completed`, or `GET /v1/connect/{provider}` → `accounts`. `externalAccountId` is the platform's own id (e.g. `airbnb:79730216`, `booking:17627428`, `booking_extranet:20123456`). The old Extranet / Vrbo login ids (`booking_extranet:88`, `vrbo:46`) still work until 2027-02-12. A record belongs to an account when it is on that account'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: `native` (default), `calry`, `calry-v1`. Custom: any schema name created via `POST /v1/schema/custom`. Unknown / inactive schema names fall back to `native`.
|
|
@@ -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 `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.
|
|
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 `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.
|
|
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
|
|
@@ -16,7 +16,7 @@ require 'time'
|
|
|
16
16
|
module Repull
|
|
17
17
|
# Top-level freshness indicator for any DB-backed Airbnb read. Tells consumers WHY a column may be `null` or stale without sprinkling per-row error envelopes through the response. The endpoint always returns 200 + DB data; this field is the single signal for \"should I prompt the user to reconnect / wait for sync?\". A workspace can connect several Airbnb accounts, so the answer has two levels. `accounts[]` carries the verdict per account; the top-level fields aggregate it. Scope a request with `?account_id=` and `accounts[]` holds exactly that account, with the top-level fields mirroring it.
|
|
18
18
|
class AirbnbDataFreshness < ApiModelBase
|
|
19
|
-
# The most recent Airbnb import COMPLETED by any account in scope
|
|
19
|
+
# The most recent Airbnb import COMPLETED by any account in scope — a full re-read of the account, which runs on connect, about once a day, and on `POST /v1/connections/{id}/imports`. `null` when none of them ever has. A run that failed or was rate-limited does not move it. It is not how current reservations and messages are: Airbnb notifies Repull of every new booking, change, cancellation and message as it happens, and those land within seconds between imports, on every access level.
|
|
20
20
|
attr_accessor :last_synced_at
|
|
21
21
|
|
|
22
22
|
# `true` only when EVERY connected Airbnb account is stale — nothing in this response can be trusted to be current. With one account (the common case) that is the same as it has always been. With several, one disconnected host no longer condemns the other's rows: `stale` stays `false` and `reason` becomes `partial_account_staleness`. Read `accounts[]` for which is which.
|
|
@@ -24,7 +24,7 @@ module Repull
|
|
|
24
24
|
|
|
25
25
|
attr_accessor :account_name
|
|
26
26
|
|
|
27
|
-
# `COMPLETED`: settled in a payout. `
|
|
27
|
+
# `COMPLETED`: settled in a payout. `RELEASED`: Airbnb released it (its date has passed) but has not paid it out yet — the payout is held, or accumulating toward the host's next one; it becomes `COMPLETED` under its payout when paid. `UPCOMING`: expected, not released yet.
|
|
28
28
|
attr_accessor :status
|
|
29
29
|
|
|
30
30
|
# Airbnb's line type, verbatim: `Payout`, `Reservation`, `Adjustment`, `Resolution Payout`, `Resolution Adjustment`, `Cancellation Fee`, `Pass Through Tot`, …
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class AirbnbTransactionPayout < ApiModelBase
|
|
18
|
-
# The payout this line was settled in (its own id on a Payout row). `null` on an UPCOMING line.
|
|
18
|
+
# The payout this line was settled in (its own id on a Payout row). `null` on an unpaid (`RELEASED` / `UPCOMING`) line.
|
|
19
19
|
attr_accessor :payout_id
|
|
20
20
|
|
|
21
21
|
# `true` when Airbnb sent no payout id (a payout netting to $0.00) and Repull derived a stable one.
|
|
@@ -23,7 +23,7 @@ module Repull
|
|
|
23
23
|
|
|
24
24
|
attr_accessor :payout_date
|
|
25
25
|
|
|
26
|
-
# Position within the payout, from 1. `null` on the Payout row and on
|
|
26
|
+
# Position within the payout, from 1. `null` on the Payout row and on unpaid lines.
|
|
27
27
|
attr_accessor :line_index
|
|
28
28
|
|
|
29
29
|
# On the Payout row only: the amount paid out. Its lines sum to it.
|
|
@@ -45,6 +45,9 @@ module Repull
|
|
|
45
45
|
# PMS connections only: what the app may change in the PMS. Change it with `PATCH /v1/connect/{provider}/write-policy`.
|
|
46
46
|
attr_accessor :write_policy
|
|
47
47
|
|
|
48
|
+
# Hospitable only (`GET /v1/connect/hospitable`): the webhook URL the host pastes into Hospitable (Apps → Webhooks → + Add new) and whether deliveries are arriving.
|
|
49
|
+
attr_accessor :webhook
|
|
50
|
+
|
|
48
51
|
attr_accessor :capabilities
|
|
49
52
|
|
|
50
53
|
# Vrbo only: the same freshness envelope the Airbnb read endpoints return, per account and in aggregate. Its reason is never_synced until a mapping is confirmed and importing while upcoming bookings come in.
|
|
@@ -92,6 +95,7 @@ module Repull
|
|
|
92
95
|
:'host' => :'host',
|
|
93
96
|
:'accounts' => :'accounts',
|
|
94
97
|
:'write_policy' => :'writePolicy',
|
|
98
|
+
:'webhook' => :'webhook',
|
|
95
99
|
:'capabilities' => :'capabilities',
|
|
96
100
|
:'data_freshness' => :'dataFreshness',
|
|
97
101
|
:'action' => :'action',
|
|
@@ -123,6 +127,7 @@ module Repull
|
|
|
123
127
|
:'host' => :'ConnectHost',
|
|
124
128
|
:'accounts' => :'Array<ConnectStatusAccountsInner>',
|
|
125
129
|
:'write_policy' => :'PmsWritePolicy',
|
|
130
|
+
:'webhook' => :'HospitableWebhook',
|
|
126
131
|
:'capabilities' => :'ConnectStatusCapabilities',
|
|
127
132
|
:'data_freshness' => :'Object',
|
|
128
133
|
:'action' => :'ConnectionAction',
|
|
@@ -136,6 +141,7 @@ module Repull
|
|
|
136
141
|
:'external_account_id',
|
|
137
142
|
:'access_type',
|
|
138
143
|
:'host',
|
|
144
|
+
:'webhook',
|
|
139
145
|
:'action',
|
|
140
146
|
:'fix_url'
|
|
141
147
|
])
|
|
@@ -203,6 +209,10 @@ module Repull
|
|
|
203
209
|
self.write_policy = attributes[:'write_policy']
|
|
204
210
|
end
|
|
205
211
|
|
|
212
|
+
if attributes.key?(:'webhook')
|
|
213
|
+
self.webhook = attributes[:'webhook']
|
|
214
|
+
end
|
|
215
|
+
|
|
206
216
|
if attributes.key?(:'capabilities')
|
|
207
217
|
self.capabilities = attributes[:'capabilities']
|
|
208
218
|
end
|
|
@@ -251,6 +261,7 @@ module Repull
|
|
|
251
261
|
host == o.host &&
|
|
252
262
|
accounts == o.accounts &&
|
|
253
263
|
write_policy == o.write_policy &&
|
|
264
|
+
webhook == o.webhook &&
|
|
254
265
|
capabilities == o.capabilities &&
|
|
255
266
|
data_freshness == o.data_freshness &&
|
|
256
267
|
action == o.action &&
|
|
@@ -266,7 +277,7 @@ module Repull
|
|
|
266
277
|
# Calculates hash code according to all attributes.
|
|
267
278
|
# @return [Integer] Hash code
|
|
268
279
|
def hash
|
|
269
|
-
[connected, provider, id, connection_id, status, external_account_id, created_at, access_type, host, accounts, write_policy, capabilities, data_freshness, action, fix_url].hash
|
|
280
|
+
[connected, provider, id, connection_id, status, external_account_id, created_at, access_type, host, accounts, write_policy, webhook, capabilities, data_freshness, action, fix_url].hash
|
|
270
281
|
end
|
|
271
282
|
|
|
272
283
|
# Builds the object from hash
|
|
@@ -63,6 +63,9 @@ module Repull
|
|
|
63
63
|
# Apps only: how the app is doing on this connection. `null` once disconnected.
|
|
64
64
|
attr_accessor :health
|
|
65
65
|
|
|
66
|
+
# Hospitable only: the webhook URL the host pastes into Hospitable (Apps → Webhooks → + Add new) and whether deliveries are arriving. Show it in your own UI so the host can set it up. Absent for other providers.
|
|
67
|
+
attr_accessor :webhook
|
|
68
|
+
|
|
66
69
|
class EnumAttributeValidator
|
|
67
70
|
attr_reader :datatype
|
|
68
71
|
attr_reader :allowable_values
|
|
@@ -104,7 +107,8 @@ module Repull
|
|
|
104
107
|
:'key_masked' => :'keyMasked',
|
|
105
108
|
:'label' => :'label',
|
|
106
109
|
:'disconnected_at' => :'disconnectedAt',
|
|
107
|
-
:'health' => :'health'
|
|
110
|
+
:'health' => :'health',
|
|
111
|
+
:'webhook' => :'webhook'
|
|
108
112
|
}
|
|
109
113
|
end
|
|
110
114
|
|
|
@@ -137,7 +141,8 @@ module Repull
|
|
|
137
141
|
:'key_masked' => :'String',
|
|
138
142
|
:'label' => :'String',
|
|
139
143
|
:'disconnected_at' => :'Time',
|
|
140
|
-
:'health' => :'AppConnectionHealth'
|
|
144
|
+
:'health' => :'AppConnectionHealth',
|
|
145
|
+
:'webhook' => :'HospitableWebhook'
|
|
141
146
|
}
|
|
142
147
|
end
|
|
143
148
|
|
|
@@ -153,7 +158,8 @@ module Repull
|
|
|
153
158
|
:'listing_ids',
|
|
154
159
|
:'label',
|
|
155
160
|
:'disconnected_at',
|
|
156
|
-
:'health'
|
|
161
|
+
:'health',
|
|
162
|
+
:'webhook'
|
|
157
163
|
])
|
|
158
164
|
end
|
|
159
165
|
|
|
@@ -242,6 +248,10 @@ module Repull
|
|
|
242
248
|
if attributes.key?(:'health')
|
|
243
249
|
self.health = attributes[:'health']
|
|
244
250
|
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'webhook')
|
|
253
|
+
self.webhook = attributes[:'webhook']
|
|
254
|
+
end
|
|
245
255
|
end
|
|
246
256
|
|
|
247
257
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -280,7 +290,8 @@ module Repull
|
|
|
280
290
|
key_masked == o.key_masked &&
|
|
281
291
|
label == o.label &&
|
|
282
292
|
disconnected_at == o.disconnected_at &&
|
|
283
|
-
health == o.health
|
|
293
|
+
health == o.health &&
|
|
294
|
+
webhook == o.webhook
|
|
284
295
|
end
|
|
285
296
|
|
|
286
297
|
# @see the `==` method
|
|
@@ -292,7 +303,7 @@ module Repull
|
|
|
292
303
|
# Calculates hash code according to all attributes.
|
|
293
304
|
# @return [Integer] Hash code
|
|
294
305
|
def hash
|
|
295
|
-
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health].hash
|
|
306
|
+
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health, webhook].hash
|
|
296
307
|
end
|
|
297
308
|
|
|
298
309
|
# Builds the object from hash
|
|
@@ -63,6 +63,9 @@ module Repull
|
|
|
63
63
|
# Apps only: how the app is doing on this connection. `null` once disconnected.
|
|
64
64
|
attr_accessor :health
|
|
65
65
|
|
|
66
|
+
# Hospitable only: the webhook URL the host pastes into Hospitable (Apps → Webhooks → + Add new) and whether deliveries are arriving. Show it in your own UI so the host can set it up. Absent for other providers.
|
|
67
|
+
attr_accessor :webhook
|
|
68
|
+
|
|
66
69
|
# The key to paste into PriceLabs. Returned only here.
|
|
67
70
|
attr_accessor :key
|
|
68
71
|
|
|
@@ -110,6 +113,7 @@ module Repull
|
|
|
110
113
|
:'label' => :'label',
|
|
111
114
|
:'disconnected_at' => :'disconnectedAt',
|
|
112
115
|
:'health' => :'health',
|
|
116
|
+
:'webhook' => :'webhook',
|
|
113
117
|
:'key' => :'key',
|
|
114
118
|
:'instructions' => :'instructions'
|
|
115
119
|
}
|
|
@@ -145,6 +149,7 @@ module Repull
|
|
|
145
149
|
:'label' => :'String',
|
|
146
150
|
:'disconnected_at' => :'Time',
|
|
147
151
|
:'health' => :'AppConnectionHealth',
|
|
152
|
+
:'webhook' => :'HospitableWebhook',
|
|
148
153
|
:'key' => :'String',
|
|
149
154
|
:'instructions' => :'CreatePriceLabsKey201ResponseAllOfInstructions'
|
|
150
155
|
}
|
|
@@ -163,6 +168,7 @@ module Repull
|
|
|
163
168
|
:'label',
|
|
164
169
|
:'disconnected_at',
|
|
165
170
|
:'health',
|
|
171
|
+
:'webhook',
|
|
166
172
|
])
|
|
167
173
|
end
|
|
168
174
|
|
|
@@ -259,6 +265,10 @@ module Repull
|
|
|
259
265
|
self.health = attributes[:'health']
|
|
260
266
|
end
|
|
261
267
|
|
|
268
|
+
if attributes.key?(:'webhook')
|
|
269
|
+
self.webhook = attributes[:'webhook']
|
|
270
|
+
end
|
|
271
|
+
|
|
262
272
|
if attributes.key?(:'key')
|
|
263
273
|
self.key = attributes[:'key']
|
|
264
274
|
else
|
|
@@ -339,6 +349,7 @@ module Repull
|
|
|
339
349
|
label == o.label &&
|
|
340
350
|
disconnected_at == o.disconnected_at &&
|
|
341
351
|
health == o.health &&
|
|
352
|
+
webhook == o.webhook &&
|
|
342
353
|
key == o.key &&
|
|
343
354
|
instructions == o.instructions
|
|
344
355
|
end
|
|
@@ -352,7 +363,7 @@ module Repull
|
|
|
352
363
|
# Calculates hash code according to all attributes.
|
|
353
364
|
# @return [Integer] Hash code
|
|
354
365
|
def hash
|
|
355
|
-
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health, key, instructions].hash
|
|
366
|
+
[id, provider, status, external_account_id, access_type, created_at, host, action, fix_url, import, scope, listing_ids, listing_count, key_masked, label, disconnected_at, health, webhook, key, instructions].hash
|
|
356
367
|
end
|
|
357
368
|
|
|
358
369
|
# Builds the object from hash
|