repull 0.2.60 → 0.2.61
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 +8 -8
- data/lib/repull/api/connect_api.rb +5 -5
- data/lib/repull/api/connections_api.rb +4 -4
- data/lib/repull/models/account_import.rb +1 -1
- data/lib/repull/models/airbnb_reservation.rb +346 -6
- data/lib/repull/models/airbnb_reservation_detail.rb +679 -0
- data/lib/repull/models/airbnb_reservation_detail_response.rb +173 -0
- data/lib/repull/models/connect_provider_session.rb +266 -0
- data/lib/repull/models/create_connect_session_request.rb +2 -2
- data/lib/repull/models/create_connection_request.rb +3 -2
- data/lib/repull/models/guest.rb +4 -2
- data/lib/repull/models/start_connection_import202_response_data.rb +32 -6
- data/lib/repull/models/start_connection_import_request.rb +3 -5
- data/lib/repull/version.rb +1 -1
- data/lib/repull.rb +3 -0
- data/openapi/v1.json +483 -26
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: bd339e552b340cd83630e25c55d0dc8e99cf3241ae2d6bc2ccb7a937c5cdc9b6
|
|
4
|
+
data.tar.gz: 7279d9c5ffdf3fd2d8fdde2de27da7247951a8b6c8dfbab3a709db1d5b234b5b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f90a35d6c1fa2c15bcc65b07c72b7cbc0d2478e3820c3c7597f4856589e6b05034a2b739f2c5ec786c4237cee06d8ae9d06fcaaaab35e660c56f7d83a0c2852f
|
|
7
|
+
data.tar.gz: 0c1355bfbc9116f28d98863b4323cc3f3eb653890eb0a815c9fc80ed247353a119f273cdd11b6a001a252ff73588a19e183c7ac3cd285f97b60e15cf1d723865
|
|
@@ -1908,7 +1908,7 @@ module Repull
|
|
|
1908
1908
|
# Fetch a single Airbnb reservation by Airbnb confirmation code (e.g. `HMABCDEF12`). Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
1909
1909
|
# @param code [String]
|
|
1910
1910
|
# @param [Hash] opts the optional parameters
|
|
1911
|
-
# @return [
|
|
1911
|
+
# @return [AirbnbReservationDetailResponse]
|
|
1912
1912
|
def get_airbnb_reservation(code, opts = {})
|
|
1913
1913
|
data, _status_code, _headers = get_airbnb_reservation_with_http_info(code, opts)
|
|
1914
1914
|
data
|
|
@@ -1918,7 +1918,7 @@ module Repull
|
|
|
1918
1918
|
# Fetch a single Airbnb reservation by Airbnb confirmation code (e.g. `HMABCDEF12`). Returns `403 listing_inactive` when the listing this resolves to is inactive. An inactive listing keeps syncing, but cannot be read or changed through the API until it is activated.
|
|
1919
1919
|
# @param code [String]
|
|
1920
1920
|
# @param [Hash] opts the optional parameters
|
|
1921
|
-
# @return [Array<(
|
|
1921
|
+
# @return [Array<(AirbnbReservationDetailResponse, Integer, Hash)>] AirbnbReservationDetailResponse data, response status code and response headers
|
|
1922
1922
|
def get_airbnb_reservation_with_http_info(code, opts = {})
|
|
1923
1923
|
if @api_client.config.debugging
|
|
1924
1924
|
@api_client.config.logger.debug 'Calling API: AirbnbApi.get_airbnb_reservation ...'
|
|
@@ -1945,7 +1945,7 @@ module Repull
|
|
|
1945
1945
|
post_body = opts[:debug_body]
|
|
1946
1946
|
|
|
1947
1947
|
# return_type
|
|
1948
|
-
return_type = opts[:debug_return_type] || '
|
|
1948
|
+
return_type = opts[:debug_return_type] || 'AirbnbReservationDetailResponse'
|
|
1949
1949
|
|
|
1950
1950
|
# auth_names
|
|
1951
1951
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -2562,14 +2562,14 @@ 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. **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.
|
|
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. Each row has the Airbnb `confirmationCode`, the `reservationId` of the same stay on `GET /v1/reservations/{id}`, the Repull `listingId` and Airbnb `airbnbListingId`, a normalised `status`, `checkIn`/`checkOut` dates, `totalPrice` + `currency` (what the guest paid) and `payout` + `payoutCurrency` (what the host receives). Airbnb's own record follows (`airbnbStatus`, `totalPaidAmount`, `expectedPayoutAmount`, …) for integrations already reading it. **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. 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.
|
|
2569
2569
|
# @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with `cursor` — passing both returns 422. Accepts integers in `[0, 10000]`; deeper walks must use `cursor` (constant per-page cost). The response always includes `pagination.nextCursor` so consumers can switch from offset → cursor mid-walk for deep pagination without re-keying. (default to 0)
|
|
2570
2570
|
# @option opts [Integer] :limit Max items per page. Hard cap is 100. (default to 50)
|
|
2571
2571
|
# @option opts [String] :listing_id Filter to one Airbnb listing id (numeric string).
|
|
2572
|
-
# @option opts [String] :status Filter by
|
|
2572
|
+
# @option opts [String] :status Filter by the normalised `status`. `completed` = accepted and already checked out. Airbnb's raw values (`accept`, `cancelled_by_guest`, …) are accepted too. Omit to receive all statuses; an unknown value returns `400 invalid_params`.
|
|
2573
2573
|
# @option opts [Date] :start_date ISO 8601 (YYYY-MM-DD) lower bound on Airbnb's date range filter.
|
|
2574
2574
|
# @option opts [Date] :end_date ISO 8601 (YYYY-MM-DD) upper bound on Airbnb's date range filter.
|
|
2575
2575
|
# @option opts [Boolean] :include_total Whether to include `pagination.total`. Always populated when Airbnb returns a total count (effectively always); accepted for shape symmetry with the rest of the API. (default to true)
|
|
@@ -2580,14 +2580,14 @@ 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. **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.
|
|
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. Each row has the Airbnb `confirmationCode`, the `reservationId` of the same stay on `GET /v1/reservations/{id}`, the Repull `listingId` and Airbnb `airbnbListingId`, a normalised `status`, `checkIn`/`checkOut` dates, `totalPrice` + `currency` (what the guest paid) and `payout` + `payoutCurrency` (what the host receives). Airbnb's own record follows (`airbnbStatus`, `totalPaidAmount`, `expectedPayoutAmount`, …) for integrations already reading it. **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. 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.
|
|
2587
2587
|
# @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with `cursor` — passing both returns 422. Accepts integers in `[0, 10000]`; deeper walks must use `cursor` (constant per-page cost). The response always includes `pagination.nextCursor` so consumers can switch from offset → cursor mid-walk for deep pagination without re-keying. (default to 0)
|
|
2588
2588
|
# @option opts [Integer] :limit Max items per page. Hard cap is 100. (default to 50)
|
|
2589
2589
|
# @option opts [String] :listing_id Filter to one Airbnb listing id (numeric string).
|
|
2590
|
-
# @option opts [String] :status Filter by
|
|
2590
|
+
# @option opts [String] :status Filter by the normalised `status`. `completed` = accepted and already checked out. Airbnb's raw values (`accept`, `cancelled_by_guest`, …) are accepted too. Omit to receive all statuses; an unknown value returns `400 invalid_params`.
|
|
2591
2591
|
# @option opts [Date] :start_date ISO 8601 (YYYY-MM-DD) lower bound on Airbnb's date range filter.
|
|
2592
2592
|
# @option opts [Date] :end_date ISO 8601 (YYYY-MM-DD) upper bound on Airbnb's date range filter.
|
|
2593
2593
|
# @option opts [Boolean] :include_total Whether to include `pagination.total`. Always populated when Airbnb returns a total count (effectively always); accepted for shape symmetry with the rest of the API. (default to true)
|
|
@@ -2612,7 +2612,7 @@ module Repull
|
|
|
2612
2612
|
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AirbnbApi.list_airbnb_reservations, must be greater than or equal to 1.'
|
|
2613
2613
|
end
|
|
2614
2614
|
|
|
2615
|
-
allowable_values = ["pending", "accepted", "denied", "cancelled", "completed", "failed_verification", "request_voided"]
|
|
2615
|
+
allowable_values = ["pending", "accepted", "denied", "cancelled", "completed", "failed_verification", "request_voided", "expired", "error"]
|
|
2616
2616
|
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
|
2617
2617
|
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
|
2618
2618
|
end
|
|
@@ -156,22 +156,22 @@ module Repull
|
|
|
156
156
|
end
|
|
157
157
|
|
|
158
158
|
# Connect to PMS/OTA provider
|
|
159
|
-
# Establish a connection to a PMS or OTA platform. Credentials vary by provider — see docs for each provider. Airbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews — Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` — the default — grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to. Booking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` — send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`). PMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`. **PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=…`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.
|
|
159
|
+
# Establish a connection to a PMS or OTA platform. Credentials vary by provider — see docs for each provider. Airbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews — Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` — the default — grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to. Booking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` — send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`, `state`). **Returning to your app.** Every return to `redirectUrl` carries `status`, `sessionId` and your `state`, whether the host connected, cancelled, hit an error or let the session expire, so you can always tie it back to the call that started it. PMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`. **PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=…`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.
|
|
160
160
|
# @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @option opts [CreateConnectionRequest] :create_connection_request
|
|
163
|
-
# @return [
|
|
163
|
+
# @return [ConnectProviderSession]
|
|
164
164
|
def create_connection(provider, opts = {})
|
|
165
165
|
data, _status_code, _headers = create_connection_with_http_info(provider, opts)
|
|
166
166
|
data
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
# Connect to PMS/OTA provider
|
|
170
|
-
# Establish a connection to a PMS or OTA platform. Credentials vary by provider — see docs for each provider. Airbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews — Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` — the default — grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to. Booking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` — send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`). PMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`. **PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=…`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.
|
|
170
|
+
# Establish a connection to a PMS or OTA platform. Credentials vary by provider — see docs for each provider. Airbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` (shown to hosts as \"Messaging & reviews\") grants read scopes plus message read/send and review writes (reply to guest reviews, submit host reviews — Airbnb's `reviews_write`) but NOT property management, so it can coexist with another app (e.g. an existing PMS) that already holds property management on the same Airbnb account; `full_access` — the default — grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it). The response returns a hosted `url` to redirect the user to. Booking.com: pass `redirectUrl` (no `accessType`). The response returns a hosted `url` — send the user there to select our connectivity provider in their Booking.com Extranet and paste their Hotel ID. Same response shape as Airbnb (`url`, `sessionId`, `expiresAt`, `state`). **Returning to your app.** Every return to `redirectUrl` carries `status`, `sessionId` and your `state`, whether the host connected, cancelled, hit an error or let the session expire, so you can always tie it back to the call that started it. PMS providers are not connected by this call: send their credentials to `POST /v1/connect/{provider}/credentials`, or start a hosted session with `POST /v1/connect`. **PriceLabs (an app).** Pass `redirectUrl` (and optionally `state`, `locale`, `workspace`). The response returns a hosted `url` for the session's workspace: yours, the one `X-Workspace-Id` names, or a new sub-workspace when you send `workspace.name` (its id comes back as `workspaceId`). The page shows the host a key for **every listing of that workspace, including listings added later**, with the steps to paste it into PriceLabs, then waits for PriceLabs' first call and completes like every provider: redirect to `redirectUrl` (`status=connected&connectionId=…`) or the `repull:connect:completed` popup message, and `connect.session.completed`. When PriceLabs first uses the key, `account.created` is sent. To keep PriceLabs away from the rest of an account, put the listings it should price in a sub-workspace and connect PriceLabs there. To issue the key yourself (no hosted page, or only some listings) use `POST /v1/connect/pricelabs/key`.
|
|
171
171
|
# @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
|
|
172
172
|
# @param [Hash] opts the optional parameters
|
|
173
173
|
# @option opts [CreateConnectionRequest] :create_connection_request
|
|
174
|
-
# @return [Array<(
|
|
174
|
+
# @return [Array<(ConnectProviderSession, Integer, Hash)>] ConnectProviderSession data, response status code and response headers
|
|
175
175
|
def create_connection_with_http_info(provider, opts = {})
|
|
176
176
|
if @api_client.config.debugging
|
|
177
177
|
@api_client.config.logger.debug 'Calling API: ConnectApi.create_connection ...'
|
|
@@ -203,7 +203,7 @@ module Repull
|
|
|
203
203
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_connection_request'])
|
|
204
204
|
|
|
205
205
|
# return_type
|
|
206
|
-
return_type = opts[:debug_return_type] || '
|
|
206
|
+
return_type = opts[:debug_return_type] || 'ConnectProviderSession'
|
|
207
207
|
|
|
208
208
|
# auth_names
|
|
209
209
|
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
|
-
#
|
|
390
|
-
# Two scopes:
|
|
389
|
+
# Start an import of a connection
|
|
390
|
+
# Start an import of a connected Airbnb account now. Two scopes: **`full`** — the import that runs when an account is first connected, again: listings with their calendars (pricing and availability), reservations, then payouts, reviews and conversations. For an account that has never fully imported, e.g. a first import that never started or stalled. Returns `409 conflict` once the account has been fully imported (everything keeps syncing on its own after that). **`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. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. With no body, Repull chooses: `full` for an account that has never fully imported, `listings` otherwise. 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. Every scope runs in the background (`202`) and is recorded like any other import: follow it on `GET /v1/connections/{id}/imports` (`importId`, when returned, is its id there) or wait for `account.import.completed`. An import no worker picks up within 10 minutes ends `failed` with reason `did_not_start` (and `account.import.failed`); call this again. A `full` request also replaces such an import itself (`replacedImportId`). Airbnb connections only for now. Returns `409 conflict` while an import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.
|
|
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
|
-
#
|
|
401
|
-
# Two scopes:
|
|
400
|
+
# Start an import of a connection
|
|
401
|
+
# Start an import of a connected Airbnb account now. Two scopes: **`full`** — the import that runs when an account is first connected, again: listings with their calendars (pricing and availability), reservations, then payouts, reviews and conversations. For an account that has never fully imported, e.g. a first import that never started or stalled. Returns `409 conflict` once the account has been fully imported (everything keeps syncing on its own after that). **`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. The same import runs on its own once a day for every connected Airbnb account, and when the host reconnects. With no body, Repull chooses: `full` for an account that has never fully imported, `listings` otherwise. 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. Every scope runs in the background (`202`) and is recorded like any other import: follow it on `GET /v1/connections/{id}/imports` (`importId`, when returned, is its id there) or wait for `account.import.completed`. An import no worker picks up within 10 minutes ends `failed` with reason `did_not_start` (and `account.import.failed`); call this again. A `full` request also replaces such an import itself (`replacedImportId`). Airbnb connections only for now. Returns `409 conflict` while an import of the account is already running, and `409 connection_reauth_required` when the account is disconnected.
|
|
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
|
|
@@ -26,7 +26,7 @@ module Repull
|
|
|
26
26
|
# `completed` imports only: `partial` when some units failed (see `stages`).
|
|
27
27
|
attr_accessor :outcome
|
|
28
28
|
|
|
29
|
-
# `failed` imports only: why it stopped — e.g. `needs_permissions`, `duplicate_account`, `stalled
|
|
29
|
+
# `failed` imports only: why it stopped — e.g. `needs_permissions`, `duplicate_account`, `stalled` (stopped reporting progress), `did_not_start` (queued, but no worker picked it up within 10 minutes: start it again with `POST /v1/connections/{id}/imports`), `queue_failed` (could not be queued).
|
|
30
30
|
attr_accessor :reason
|
|
31
31
|
|
|
32
32
|
attr_accessor :started_at
|