repull 0.2.57 → 0.2.58

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d3fe8068106c74b9c9ddbb4d2d79ed0eb011013266f0fe32abe76c7fbafe298
4
- data.tar.gz: 966a42fbee6db5f66ade25015063eab4676e6cf24787e9d5560ce061d71ad20d
3
+ metadata.gz: 51f868d8a2397d51c596535c39c69c72ccfe941fd3e8ea5918771b9b2d694d87
4
+ data.tar.gz: aff8905b78d11073fb4280b224b6d021ae4fefb7f6ab36e9821d1893a2ab83ea
5
5
  SHA512:
6
- metadata.gz: 85dcd2b8f452a04528ab090154ba1fd7e6f8601655bdde7969d6e3abe110b7e96a84f61a59bf51e10143fb19a8e36ec725496ecb5bd8d13b9a05978c670551f8
7
- data.tar.gz: 1bba3b2729163830e92e0b7e990b47fe3deb4865a4833639e6521de99b2eea711a750259ac551f64fa337637148414e1e19f7547f35491672aaf0edccfcbc341
6
+ metadata.gz: 00001265004ef575a17f126bd7354ebc9b52dc662578efd03d1a62fe647300cdca6f95c4bf4f0e108e5a655a5ae54463fdf2e53c6a06ec72639ddf1098cc5417
7
+ data.tar.gz: 9349b5d24c13864a6824c0f23ae97583aa2fc8883c8a5f470c3f1a0d21e0faff384f97f858c7a926e7dba890d5197b4e61bc3e15b8bf22e8a8ffdb0b2e94d816
@@ -156,7 +156,7 @@ 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`.
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`.
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
@@ -167,7 +167,7 @@ module Repull
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`.
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`.
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
@@ -225,11 +225,76 @@ module Repull
225
225
  return data, status_code, headers
226
226
  end
227
227
 
228
+ # Create a PriceLabs key (headless)
229
+ # Issue a PriceLabs key without the hosted page, for platforms that show it in their own app. The key is for this workspace, or the one `X-Workspace-Id` names; it is returned once, in `key`, and the host pastes it into PriceLabs (add an integration, choose Repull). - No `listingIds`: every listing of the workspace, including listings added later. Recommended, with the listings PriceLabs should price in their own sub-workspace. - `listingIds`: only those listings (they must belong to the workspace). Listings added later are not included. The key works only inside PriceLabs; it is refused on every Repull API endpoint. The connection appears on `GET /v1/connect/pricelabs` with its `health`; `account.created` is sent when PriceLabs first uses the key. Revoke it with `DELETE /v1/connect/pricelabs?id=`.
230
+ # @param [Hash] opts the optional parameters
231
+ # @option opts [CreatePriceLabsKeyRequest] :create_price_labs_key_request
232
+ # @return [CreatePriceLabsKey201Response]
233
+ def create_price_labs_key(opts = {})
234
+ data, _status_code, _headers = create_price_labs_key_with_http_info(opts)
235
+ data
236
+ end
237
+
238
+ # Create a PriceLabs key (headless)
239
+ # Issue a PriceLabs key without the hosted page, for platforms that show it in their own app. The key is for this workspace, or the one `X-Workspace-Id` names; it is returned once, in `key`, and the host pastes it into PriceLabs (add an integration, choose Repull). - No `listingIds`: every listing of the workspace, including listings added later. Recommended, with the listings PriceLabs should price in their own sub-workspace. - `listingIds`: only those listings (they must belong to the workspace). Listings added later are not included. The key works only inside PriceLabs; it is refused on every Repull API endpoint. The connection appears on `GET /v1/connect/pricelabs` with its `health`; `account.created` is sent when PriceLabs first uses the key. Revoke it with `DELETE /v1/connect/pricelabs?id=`.
240
+ # @param [Hash] opts the optional parameters
241
+ # @option opts [CreatePriceLabsKeyRequest] :create_price_labs_key_request
242
+ # @return [Array<(CreatePriceLabsKey201Response, Integer, Hash)>] CreatePriceLabsKey201Response data, response status code and response headers
243
+ def create_price_labs_key_with_http_info(opts = {})
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug 'Calling API: ConnectApi.create_price_labs_key ...'
246
+ end
247
+ # resource path
248
+ local_var_path = '/v1/connect/pricelabs/key'
249
+
250
+ # query parameters
251
+ query_params = opts[:query_params] || {}
252
+
253
+ # header parameters
254
+ header_params = opts[:header_params] || {}
255
+ # HTTP header 'Accept' (if needed)
256
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
257
+ # HTTP header 'Content-Type'
258
+ content_type = @api_client.select_header_content_type(['application/json'])
259
+ if !content_type.nil?
260
+ header_params['Content-Type'] = content_type
261
+ end
262
+
263
+ # form parameters
264
+ form_params = opts[:form_params] || {}
265
+
266
+ # http body (model)
267
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_price_labs_key_request'])
268
+
269
+ # return_type
270
+ return_type = opts[:debug_return_type] || 'CreatePriceLabsKey201Response'
271
+
272
+ # auth_names
273
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
274
+
275
+ new_options = opts.merge(
276
+ :operation => :"ConnectApi.create_price_labs_key",
277
+ :header_params => header_params,
278
+ :query_params => query_params,
279
+ :form_params => form_params,
280
+ :body => post_body,
281
+ :auth_names => auth_names,
282
+ :return_type => return_type
283
+ )
284
+
285
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: ConnectApi#create_price_labs_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+
228
292
  # Disconnect provider
229
- # Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, …). **Which account.** Pass `accountId` — for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected. **What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`. The change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account → Privacy & sharing → Connected apps); that alone does not update this workspace, so call this endpoint as well. **PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session. Other providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here).
293
+ # Disconnect ONE connected account of a provider from this workspace. Supported for `airbnb`, `booking`, `vrbo-login` and every PMS (`guesty`, `hostaway`, `hospitable`, …). **Which account.** Pass `accountId` — for Airbnb the host id (`accounts[].externalAccountId` from `GET /v1/connect/airbnb`), for Booking.com the hotel id, for `vrbo-login` the sign-in's Vrbo account id (`accounts[].externalAccountId` from `GET /v1/connect/vrbo-login`; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no `accountId`, the call returns `422` with the account ids in `valid_values` instead of guessing. An `accountId` that is not connected to this workspace returns `404`. Disconnecting one account leaves the others connected. **What happens.** The account's stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan's listing limit, their data is kept, and they are returned in `listingsDeactivated`. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with `POST /v1/listings/status`. The change is all or nothing. For Airbnb, the host can also revoke access on Airbnb's side (Account → Privacy & sharing → Connected apps); that alone does not update this workspace, so call this endpoint as well. **PMS.** A workspace has one connection per PMS, so no `accountId` is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection's listings; nothing is deleted, and reservations and messages stay. The response also carries `connectionId`. The PMS's own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session. Other providers return `501 not_implemented` with instructions for disconnecting on the provider's side. That answer depends only on the provider, not on your workspace: an unsupported provider returns `501` whether or not you have a connection to it. `404 not_found` on a supported provider means this workspace has no connection to it (or, with `accountId`, that the account is not connected here). **PriceLabs (an app).** Revokes one PriceLabs connection (its key): PriceLabs loses access at once; nothing it already pushed changes and no listing is deactivated. Pass `id` (an `accounts[].id` from `GET /v1/connect/pricelabs`); it is optional only when the workspace has one connected. Sends `account.disconnected` with reason `manual_disconnect`.
230
294
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
231
295
  # @param [Hash] opts the optional parameters
232
296
  # @option opts [String] :account_id The account to disconnect: the Airbnb host id (&#x60;accounts[].externalAccountId&#x60; on &#x60;GET /v1/connect/airbnb&#x60;) or the Booking.com hotel id. Required when the workspace has more than one connected account for the provider. Not the same as the &#x60;X-Account-Id&#x60; header.
297
+ # @option opts [String] :id PriceLabs only: the connection to revoke (&#x60;accounts[].id&#x60; on &#x60;GET /v1/connect/pricelabs&#x60;). Required when the workspace has more than one.
233
298
  # @return [DeleteConnection200Response]
234
299
  def delete_connection(provider, opts = {})
235
300
  data, _status_code, _headers = delete_connection_with_http_info(provider, opts)
@@ -237,10 +302,11 @@ module Repull
237
302
  end
238
303
 
239
304
  # Disconnect provider
240
- # Disconnect ONE connected account of a provider from this workspace. Supported for &#x60;airbnb&#x60;, &#x60;booking&#x60;, &#x60;vrbo-login&#x60; and every PMS (&#x60;guesty&#x60;, &#x60;hostaway&#x60;, &#x60;hospitable&#x60;, …). **Which account.** Pass &#x60;accountId&#x60; — for Airbnb the host id (&#x60;accounts[].externalAccountId&#x60; from &#x60;GET /v1/connect/airbnb&#x60;), for Booking.com the hotel id, for &#x60;vrbo-login&#x60; the sign-in&#39;s Vrbo account id (&#x60;accounts[].externalAccountId&#x60; from &#x60;GET /v1/connect/vrbo-login&#x60;; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no &#x60;accountId&#x60;, the call returns &#x60;422&#x60; with the account ids in &#x60;valid_values&#x60; instead of guessing. An &#x60;accountId&#x60; that is not connected to this workspace returns &#x60;404&#x60;. Disconnecting one account leaves the others connected. **What happens.** The account&#39;s stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan&#39;s listing limit, their data is kept, and they are returned in &#x60;listingsDeactivated&#x60;. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with &#x60;POST /v1/listings/status&#x60;. The change is all or nothing. For Airbnb, the host can also revoke access on Airbnb&#39;s side (Account → Privacy &amp; sharing → Connected apps); that alone does not update this workspace, so call this endpoint as well. **PMS.** A workspace has one connection per PMS, so no &#x60;accountId&#x60; is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection&#39;s listings; nothing is deleted, and reservations and messages stay. The response also carries &#x60;connectionId&#x60;. The PMS&#39;s own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session. Other providers return &#x60;501 not_implemented&#x60; with instructions for disconnecting on the provider&#39;s side. That answer depends only on the provider, not on your workspace: an unsupported provider returns &#x60;501&#x60; whether or not you have a connection to it. &#x60;404 not_found&#x60; on a supported provider means this workspace has no connection to it (or, with &#x60;accountId&#x60;, that the account is not connected here).
305
+ # Disconnect ONE connected account of a provider from this workspace. Supported for &#x60;airbnb&#x60;, &#x60;booking&#x60;, &#x60;vrbo-login&#x60; and every PMS (&#x60;guesty&#x60;, &#x60;hostaway&#x60;, &#x60;hospitable&#x60;, …). **Which account.** Pass &#x60;accountId&#x60; — for Airbnb the host id (&#x60;accounts[].externalAccountId&#x60; from &#x60;GET /v1/connect/airbnb&#x60;), for Booking.com the hotel id, for &#x60;vrbo-login&#x60; the sign-in&#39;s Vrbo account id (&#x60;accounts[].externalAccountId&#x60; from &#x60;GET /v1/connect/vrbo-login&#x60;; the old sign-in id still works until 2027-02-12). It is optional only when the workspace has exactly one account for the provider. With several and no &#x60;accountId&#x60;, the call returns &#x60;422&#x60; with the account ids in &#x60;valid_values&#x60; instead of guessing. An &#x60;accountId&#x60; that is not connected to this workspace returns &#x60;404&#x60;. Disconnecting one account leaves the others connected. **What happens.** The account&#39;s stored authorization is removed and it stops syncing. Its listings are **deactivated**, not deleted: they stop counting toward your plan&#39;s listing limit, their data is kept, and they are returned in &#x60;listingsDeactivated&#x60;. A listing that is still connected through another account or channel stays active. Reconnect the account, then activate the listings with &#x60;POST /v1/listings/status&#x60;. The change is all or nothing. For Airbnb, the host can also revoke access on Airbnb&#39;s side (Account → Privacy &amp; sharing → Connected apps); that alone does not update this workspace, so call this endpoint as well. **PMS.** A workspace has one connection per PMS, so no &#x60;accountId&#x60; is needed. Disconnecting stops syncing, clears the stored credentials and deactivates the connection&#39;s listings; nothing is deleted, and reservations and messages stay. The response also carries &#x60;connectionId&#x60;. The PMS&#39;s own webhook subscription is left in place, because the same PMS account can be connected to another workspace (such as a Repull Migrate workspace). Reconnect with a new Connect session. Other providers return &#x60;501 not_implemented&#x60; with instructions for disconnecting on the provider&#39;s side. That answer depends only on the provider, not on your workspace: an unsupported provider returns &#x60;501&#x60; whether or not you have a connection to it. &#x60;404 not_found&#x60; on a supported provider means this workspace has no connection to it (or, with &#x60;accountId&#x60;, that the account is not connected here). **PriceLabs (an app).** Revokes one PriceLabs connection (its key): PriceLabs loses access at once; nothing it already pushed changes and no listing is deactivated. Pass &#x60;id&#x60; (an &#x60;accounts[].id&#x60; from &#x60;GET /v1/connect/pricelabs&#x60;); it is optional only when the workspace has one connected. Sends &#x60;account.disconnected&#x60; with reason &#x60;manual_disconnect&#x60;.
241
306
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
242
307
  # @param [Hash] opts the optional parameters
243
308
  # @option opts [String] :account_id The account to disconnect: the Airbnb host id (&#x60;accounts[].externalAccountId&#x60; on &#x60;GET /v1/connect/airbnb&#x60;) or the Booking.com hotel id. Required when the workspace has more than one connected account for the provider. Not the same as the &#x60;X-Account-Id&#x60; header.
309
+ # @option opts [String] :id PriceLabs only: the connection to revoke (&#x60;accounts[].id&#x60; on &#x60;GET /v1/connect/pricelabs&#x60;). Required when the workspace has more than one.
244
310
  # @return [Array<(DeleteConnection200Response, Integer, Hash)>] DeleteConnection200Response data, response status code and response headers
245
311
  def delete_connection_with_http_info(provider, opts = {})
246
312
  if @api_client.config.debugging
@@ -256,6 +322,7 @@ module Repull
256
322
  # query parameters
257
323
  query_params = opts[:query_params] || {}
258
324
  query_params[:'accountId'] = opts[:'account_id'] if !opts[:'account_id'].nil?
325
+ query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
259
326
 
260
327
  # header parameters
261
328
  header_params = opts[:header_params] || {}
@@ -427,7 +494,7 @@ module Repull
427
494
  end
428
495
 
429
496
  # Get connection status
430
- # Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI. **Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider.
497
+ # Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI. **Access level.** `accessType` says what the connection may do: `read_only`, `messaging` or `full_access` (`null` when unknown). Airbnb reports it per host on `accounts[]` (the tier each host's token was granted with) and at the top level for the host in `externalAccountId`; Vrbo (`vrbo-login`) per account; Booking.com is always `full_access`, the Booking.com Extranet always `messaging`; a PMS is `read_only` when every `writePolicy` switch is off, else `full_access`. See the `ConnectionAccessType` schema for the meaning per provider. **PriceLabs (an app).** `accounts[]` lists every PriceLabs connection of the workspace (each one key), with `scope`, `listingCount`, `keyMasked` and `health`: `status` (`active`, `idle`, `failing`, `never_connected`), last request, last successful price push, pushes per day for 7 days, error rates and the latest errors. Revoked ones stay listed as `disconnected` with `health: null`. `externalAccountId` is `null` (PriceLabs has no account id to give us); `id` is the connection.
431
498
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
432
499
  # @param [Hash] opts the optional parameters
433
500
  # @return [ConnectStatus]
@@ -437,7 +504,7 @@ module Repull
437
504
  end
438
505
 
439
506
  # Get connection status
440
- # Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI. **Access level.** &#x60;accessType&#x60; says what the connection may do: &#x60;read_only&#x60;, &#x60;messaging&#x60; or &#x60;full_access&#x60; (&#x60;null&#x60; when unknown). Airbnb reports it per host on &#x60;accounts[]&#x60; (the tier each host&#39;s token was granted with) and at the top level for the host in &#x60;externalAccountId&#x60;; Vrbo (&#x60;vrbo-login&#x60;) per account; Booking.com is always &#x60;full_access&#x60;, the Booking.com Extranet always &#x60;messaging&#x60;; a PMS is &#x60;read_only&#x60; when every &#x60;writePolicy&#x60; switch is off, else &#x60;full_access&#x60;. See the &#x60;ConnectionAccessType&#x60; schema for the meaning per provider.
507
+ # Returns the current connection status for a provider, including host metadata (display name + avatar) for Airbnb so clients can render an account-level confirmation UI. **Access level.** &#x60;accessType&#x60; says what the connection may do: &#x60;read_only&#x60;, &#x60;messaging&#x60; or &#x60;full_access&#x60; (&#x60;null&#x60; when unknown). Airbnb reports it per host on &#x60;accounts[]&#x60; (the tier each host&#39;s token was granted with) and at the top level for the host in &#x60;externalAccountId&#x60;; Vrbo (&#x60;vrbo-login&#x60;) per account; Booking.com is always &#x60;full_access&#x60;, the Booking.com Extranet always &#x60;messaging&#x60;; a PMS is &#x60;read_only&#x60; when every &#x60;writePolicy&#x60; switch is off, else &#x60;full_access&#x60;. See the &#x60;ConnectionAccessType&#x60; schema for the meaning per provider. **PriceLabs (an app).** &#x60;accounts[]&#x60; lists every PriceLabs connection of the workspace (each one key), with &#x60;scope&#x60;, &#x60;listingCount&#x60;, &#x60;keyMasked&#x60; and &#x60;health&#x60;: &#x60;status&#x60; (&#x60;active&#x60;, &#x60;idle&#x60;, &#x60;failing&#x60;, &#x60;never_connected&#x60;), last request, last successful price push, pushes per day for 7 days, error rates and the latest errors. Revoked ones stay listed as &#x60;disconnected&#x60; with &#x60;health: null&#x60;. &#x60;externalAccountId&#x60; is &#x60;null&#x60; (PriceLabs has no account id to give us); &#x60;id&#x60; is the connection.
441
508
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
442
509
  # @param [Hash] opts the optional parameters
443
510
  # @return [Array<(ConnectStatus, Integer, Hash)>] ConnectStatus data, response status code and response headers
@@ -552,6 +619,70 @@ module Repull
552
619
  return data, status_code, headers
553
620
  end
554
621
 
622
+ # PriceLabs session status
623
+ # Where a hosted PriceLabs session stands: `pending` (no key issued yet), `waiting` (the key is shown, PriceLabs has not called yet), `connected` (PriceLabs has called with the key; the session is complete) or `expired`. Called by the hosted Connect page while it waits. No API key — the session ID is the capability token.
624
+ # @param session_id [String]
625
+ # @param [Hash] opts the optional parameters
626
+ # @return [GetPriceLabsSessionStatus200Response]
627
+ def get_price_labs_session_status(session_id, opts = {})
628
+ data, _status_code, _headers = get_price_labs_session_status_with_http_info(session_id, opts)
629
+ data
630
+ end
631
+
632
+ # PriceLabs session status
633
+ # Where a hosted PriceLabs session stands: &#x60;pending&#x60; (no key issued yet), &#x60;waiting&#x60; (the key is shown, PriceLabs has not called yet), &#x60;connected&#x60; (PriceLabs has called with the key; the session is complete) or &#x60;expired&#x60;. Called by the hosted Connect page while it waits. No API key — the session ID is the capability token.
634
+ # @param session_id [String]
635
+ # @param [Hash] opts the optional parameters
636
+ # @return [Array<(GetPriceLabsSessionStatus200Response, Integer, Hash)>] GetPriceLabsSessionStatus200Response data, response status code and response headers
637
+ def get_price_labs_session_status_with_http_info(session_id, opts = {})
638
+ if @api_client.config.debugging
639
+ @api_client.config.logger.debug 'Calling API: ConnectApi.get_price_labs_session_status ...'
640
+ end
641
+ # verify the required parameter 'session_id' is set
642
+ if @api_client.config.client_side_validation && session_id.nil?
643
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ConnectApi.get_price_labs_session_status"
644
+ end
645
+ # resource path
646
+ local_var_path = '/v1/connect/pricelabs/session'
647
+
648
+ # query parameters
649
+ query_params = opts[:query_params] || {}
650
+ query_params[:'sessionId'] = session_id
651
+
652
+ # header parameters
653
+ header_params = opts[:header_params] || {}
654
+ # HTTP header 'Accept' (if needed)
655
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
656
+
657
+ # form parameters
658
+ form_params = opts[:form_params] || {}
659
+
660
+ # http body (model)
661
+ post_body = opts[:debug_body]
662
+
663
+ # return_type
664
+ return_type = opts[:debug_return_type] || 'GetPriceLabsSessionStatus200Response'
665
+
666
+ # auth_names
667
+ auth_names = opts[:debug_auth_names] || []
668
+
669
+ new_options = opts.merge(
670
+ :operation => :"ConnectApi.get_price_labs_session_status",
671
+ :header_params => header_params,
672
+ :query_params => query_params,
673
+ :form_params => form_params,
674
+ :body => post_body,
675
+ :auth_names => auth_names,
676
+ :return_type => return_type
677
+ )
678
+
679
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
680
+ if @api_client.config.debugging
681
+ @api_client.config.logger.debug "API called: ConnectApi#get_price_labs_session_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
682
+ end
683
+ return data, status_code, headers
684
+ end
685
+
555
686
  # Import progress of the session's Vrbo account
556
687
  # After the mapping is confirmed: `importing` (upcoming bookings and the last 30 days of messages) → `importing_history` (the rest of the account, in the background) → `imported`. Called by the hosted Connect page. No API key — the session ID is the capability token.
557
688
  # @param session_id [String]
@@ -0,0 +1,301 @@
1
+ =begin
2
+ #Repull API
3
+
4
+ #The unified API for vacation rental tech. Connect Airbnb, Booking.com, Vrbo and more channels, plus 14 PMS platforms, through one REST API. ## Designed for AI agents Every error response on this API includes machine-parseable fields so an LLM (Claude in MCP, Cursor, Cline, GPT, etc.) can self-recover without escalating to a human: - `error.code` — stable string identifier (e.g. `invalid_params`, `rate_limit_exceeded`) - `error.message` — human-readable cause - `error.fix` — exact recovery steps (e.g. \"Pass `check_in_after` as ISO 8601: `?check_in_after=2026-01-15`\") - `error.docs_url` — link to the canonical write-up at `https://repull.dev/docs/errors/{code}` - `error.request_id` — id to correlate with server-side logs - `error.field` / `error.value_received` / `error.valid_values` / `error.did_you_mean` — when the error is parameter-specific - `error.retry_after` — seconds to wait before retrying (rate-limit + transient upstream) `Access-Control-Expose-Headers` lists `x-request-id` and the `X-RateLimit-*` family so browsers can read them on cross-origin responses. ## Quick Start 1. Get an API key at https://repull.dev/dashboard 2. Connect a PMS: `POST /v1/connect/{provider}` 3. List properties: `GET /v1/properties` 4. Get reservations: `GET /v1/reservations` ## Authentication All requests require a Bearer token: ``` Authorization: Bearer sk_live_YOUR_API_KEY ``` ## Request Correlation (X-Request-ID) Every response carries an `X-Request-ID` header, e.g. `X-Request-ID: req_01HXY...`. Include this id in support tickets and bug reports — we can trace the full request lifecycle (auth, rate limit, handler, downstream calls, log row) from a single id. You may set the header on the inbound request to forward your own trace id; we will echo it back instead of generating a new one. Accepted format: `^[\\\\w.-]{1,128}$`. The id is also embedded in error envelopes as `request_id` so server-side log diffs work even when the response headers are stripped by an intermediate proxy. ## Rate Limits The public API enforces a per-API-key sliding-window rate limit on top of the per-tier monthly + daily-AI quotas. **Default policy:** 600 requests per 60 seconds, per API key. Sliding window — there is no fixed-minute boundary you can burst across. Every response includes: | Header | Meaning | |---|---| | `X-RateLimit-Limit` | Requests permitted in the current window. | | `X-RateLimit-Remaining` | Requests left in the current window after this call. | | `X-RateLimit-Reset` | Unix epoch (seconds) when the next slot opens. | | `X-RateLimit-Policy` | Machine-readable policy descriptor, e.g. `600;w=60`. | | `Retry-After` | Seconds to wait before retrying. **Only present on 429 responses.** | **On 429 (rate_limit_exceeded):** the response body matches the standard error envelope with `code: \"rate_limit_exceeded\"`, plus `limit`, `window_seconds`, `retry_after`, and `request_id` fields. SDKs MUST honor `Retry-After` and use exponential backoff with jitter on subsequent retries — never a tight loop. Recommended backoff: ``` sleep_ms = (Retry-After * 1000) + random(0..250) ``` Monthly + daily-AI tier quotas (`free`, `starter`, `custom`) are enforced separately and also surface as 429s; they include `tier`, `scope`, `limit`, `used` and `resets_at` fields. **The way past a request quota.** The monthly quota refusal (`429 rate_limit_exceeded` with `scope: \"monthly\"`), `402 credits_exhausted` and `429 daily_limit_exceeded` also carry `upgrade` (the cheapest plan that covers your usage: its exact monthly price for your listings, its request quotas and a `checkout_url` that opens checkout for that price; `plan: \"custom\"` with a `contact_email` when no self-serve plan covers it), `credits` (pay-as-you-go: `usd_per_1000_requests`, `top_up_url`, your `balance_usd`), `resets_at` and `projected_monthly_requests`. The per-minute 429 (`scope: \"per_api_key\"`) carries none of these: wait `Retry-After`. ## Plan listing limits Each plan includes a number of **active listings**: | Tier | Active listings | |---|---| | `free` | 3 | | `starter` | no cap: 10 included, then billed per listing | | `custom` | no cap | Going over the plan never blocks your API calls. Listings beyond the plan are **held back**: they stay connected and keep syncing, but they are not served. A held-back listing answers `403 listing_inactive` with `reason: \"plan_limit\"`, and collection routes leave it out. Every JSON response then carries a `planNotice` and the `X-Repull-Listings-Held-Back` header, so you know there is more to see. Choose which listings are active with `POST /v1/listings/status`. Upgrading at `https://repull.dev/dashboard/billing` lifts the cap but does not switch held-back listings on: you choose which to activate afterwards, with the same call or from the dashboard, and each one you switch on is billed from then. Only a call that would itself take you over the plan is refused, with **`402 listings_limit_exceeded`**: activating listings (`PATCH /v1/listings/{id}` with `{ \"active\": true }`, `POST /v1/listings/status`) or creating one (`POST /v1/listings`). Nothing else changes. The envelope carries the tier, the limit, the active count and an upgrade link next to the standard `code` / `message` / `fix` / `docs_url` / `request_id`. If an account has more active listings than its plan (for example after a downgrade), calls are still served and `planNotice` says so (code \"listings_over_plan\"). ## Failed payments If your plan's renewal payment fails, nothing is blocked: your API calls keep working while Stripe retries the card. Every successful JSON response then carries a `billingNotice` (code `payment_failed`) with the amount, when it failed, the next automatic retry (`nextRetryAt`) and `payUrl`, the invoice to pay. It disappears once the invoice is paid.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Repull
17
+ # How an app (PriceLabs) is doing on one connection, from its calls with the key.
18
+ class AppConnectionHealth < ApiModelBase
19
+ # `active`: a successful price or minimum-stay push in the last 24 hours. `idle`: the app connected before but has not pushed in the last 24 hours. `failing`: more than 25% of the last 24 hours' requests failed (at least 5 requests); read `recentErrors`. `never_connected`: the app has not used the key yet.
20
+ attr_accessor :status
21
+
22
+ # The app's last request with the key, of any kind.
23
+ attr_accessor :last_request_at
24
+
25
+ # The app's last successful price or minimum-stay push.
26
+ attr_accessor :last_successful_write_at
27
+
28
+ # Successful price and minimum-stay pushes per UTC day, the last 7 days, oldest first.
29
+ attr_accessor :writes_per_day
30
+
31
+ attr_accessor :requests24h
32
+
33
+ attr_accessor :errors24h
34
+
35
+ # `errors24h / requests24h`; 0 when there were no requests.
36
+ attr_accessor :error_rate24h
37
+
38
+ attr_accessor :requests7d
39
+
40
+ attr_accessor :errors7d
41
+
42
+ attr_accessor :error_rate7d
43
+
44
+ # The 10 most recent failed requests, newest first.
45
+ attr_accessor :recent_errors
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'status' => :'status',
51
+ :'last_request_at' => :'lastRequestAt',
52
+ :'last_successful_write_at' => :'lastSuccessfulWriteAt',
53
+ :'writes_per_day' => :'writesPerDay',
54
+ :'requests24h' => :'requests24h',
55
+ :'errors24h' => :'errors24h',
56
+ :'error_rate24h' => :'errorRate24h',
57
+ :'requests7d' => :'requests7d',
58
+ :'errors7d' => :'errors7d',
59
+ :'error_rate7d' => :'errorRate7d',
60
+ :'recent_errors' => :'recentErrors'
61
+ }
62
+ end
63
+
64
+ # Returns attribute mapping this model knows about
65
+ def self.acceptable_attribute_map
66
+ attribute_map
67
+ end
68
+
69
+ # Returns all the JSON keys this model knows about
70
+ def self.acceptable_attributes
71
+ acceptable_attribute_map.values
72
+ end
73
+
74
+ # Attribute type mapping.
75
+ def self.openapi_types
76
+ {
77
+ :'status' => :'String',
78
+ :'last_request_at' => :'Time',
79
+ :'last_successful_write_at' => :'Time',
80
+ :'writes_per_day' => :'Array<AppConnectionHealthWritesPerDayInner>',
81
+ :'requests24h' => :'Integer',
82
+ :'errors24h' => :'Integer',
83
+ :'error_rate24h' => :'Float',
84
+ :'requests7d' => :'Integer',
85
+ :'errors7d' => :'Integer',
86
+ :'error_rate7d' => :'Float',
87
+ :'recent_errors' => :'Array<AppConnectionHealthRecentErrorsInner>'
88
+ }
89
+ end
90
+
91
+ # List of attributes with nullable: true
92
+ def self.openapi_nullable
93
+ Set.new([
94
+ :'last_request_at',
95
+ :'last_successful_write_at',
96
+ ])
97
+ end
98
+
99
+ # Initializes the object
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ def initialize(attributes = {})
102
+ if (!attributes.is_a?(Hash))
103
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Repull::AppConnectionHealth` initialize method"
104
+ end
105
+
106
+ # check to see if the attribute exists and convert string to symbol for hash key
107
+ acceptable_attribute_map = self.class.acceptable_attribute_map
108
+ attributes = attributes.each_with_object({}) { |(k, v), h|
109
+ if (!acceptable_attribute_map.key?(k.to_sym))
110
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Repull::AppConnectionHealth`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
111
+ end
112
+ h[k.to_sym] = v
113
+ }
114
+
115
+ if attributes.key?(:'status')
116
+ self.status = attributes[:'status']
117
+ else
118
+ self.status = nil
119
+ end
120
+
121
+ if attributes.key?(:'last_request_at')
122
+ self.last_request_at = attributes[:'last_request_at']
123
+ end
124
+
125
+ if attributes.key?(:'last_successful_write_at')
126
+ self.last_successful_write_at = attributes[:'last_successful_write_at']
127
+ end
128
+
129
+ if attributes.key?(:'writes_per_day')
130
+ if (value = attributes[:'writes_per_day']).is_a?(Array)
131
+ self.writes_per_day = value
132
+ end
133
+ else
134
+ self.writes_per_day = nil
135
+ end
136
+
137
+ if attributes.key?(:'requests24h')
138
+ self.requests24h = attributes[:'requests24h']
139
+ end
140
+
141
+ if attributes.key?(:'errors24h')
142
+ self.errors24h = attributes[:'errors24h']
143
+ end
144
+
145
+ if attributes.key?(:'error_rate24h')
146
+ self.error_rate24h = attributes[:'error_rate24h']
147
+ end
148
+
149
+ if attributes.key?(:'requests7d')
150
+ self.requests7d = attributes[:'requests7d']
151
+ end
152
+
153
+ if attributes.key?(:'errors7d')
154
+ self.errors7d = attributes[:'errors7d']
155
+ end
156
+
157
+ if attributes.key?(:'error_rate7d')
158
+ self.error_rate7d = attributes[:'error_rate7d']
159
+ end
160
+
161
+ if attributes.key?(:'recent_errors')
162
+ if (value = attributes[:'recent_errors']).is_a?(Array)
163
+ self.recent_errors = value
164
+ end
165
+ else
166
+ self.recent_errors = nil
167
+ end
168
+ end
169
+
170
+ # Show invalid properties with the reasons. Usually used together with valid?
171
+ # @return Array for valid properties with the reasons
172
+ def list_invalid_properties
173
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
174
+ invalid_properties = Array.new
175
+ if @status.nil?
176
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
177
+ end
178
+
179
+ if @writes_per_day.nil?
180
+ invalid_properties.push('invalid value for "writes_per_day", writes_per_day cannot be nil.')
181
+ end
182
+
183
+ if @recent_errors.nil?
184
+ invalid_properties.push('invalid value for "recent_errors", recent_errors cannot be nil.')
185
+ end
186
+
187
+ invalid_properties
188
+ end
189
+
190
+ # Check to see if the all the properties in the model are valid
191
+ # @return true if the model is valid
192
+ def valid?
193
+ warn '[DEPRECATED] the `valid?` method is obsolete'
194
+ return false if @status.nil?
195
+ return false if @writes_per_day.nil?
196
+ return false if @recent_errors.nil?
197
+ true
198
+ end
199
+
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] status Value to be assigned
202
+ def status=(status)
203
+ if status.nil?
204
+ fail ArgumentError, 'status cannot be nil'
205
+ end
206
+
207
+ @status = status
208
+ end
209
+
210
+ # Custom attribute writer method with validation
211
+ # @param [Object] writes_per_day Value to be assigned
212
+ def writes_per_day=(writes_per_day)
213
+ if writes_per_day.nil?
214
+ fail ArgumentError, 'writes_per_day cannot be nil'
215
+ end
216
+
217
+ @writes_per_day = writes_per_day
218
+ end
219
+
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] recent_errors Value to be assigned
222
+ def recent_errors=(recent_errors)
223
+ if recent_errors.nil?
224
+ fail ArgumentError, 'recent_errors cannot be nil'
225
+ end
226
+
227
+ @recent_errors = recent_errors
228
+ end
229
+
230
+ # Checks equality by comparing each attribute.
231
+ # @param [Object] Object to be compared
232
+ def ==(o)
233
+ return true if self.equal?(o)
234
+ self.class == o.class &&
235
+ status == o.status &&
236
+ last_request_at == o.last_request_at &&
237
+ last_successful_write_at == o.last_successful_write_at &&
238
+ writes_per_day == o.writes_per_day &&
239
+ requests24h == o.requests24h &&
240
+ errors24h == o.errors24h &&
241
+ error_rate24h == o.error_rate24h &&
242
+ requests7d == o.requests7d &&
243
+ errors7d == o.errors7d &&
244
+ error_rate7d == o.error_rate7d &&
245
+ recent_errors == o.recent_errors
246
+ end
247
+
248
+ # @see the `==` method
249
+ # @param [Object] Object to be compared
250
+ def eql?(o)
251
+ self == o
252
+ end
253
+
254
+ # Calculates hash code according to all attributes.
255
+ # @return [Integer] Hash code
256
+ def hash
257
+ [status, last_request_at, last_successful_write_at, writes_per_day, requests24h, errors24h, error_rate24h, requests7d, errors7d, error_rate7d, recent_errors].hash
258
+ end
259
+
260
+ # Builds the object from hash
261
+ # @param [Hash] attributes Model attributes in the form of hash
262
+ # @return [Object] Returns the model itself
263
+ def self.build_from_hash(attributes)
264
+ return nil unless attributes.is_a?(Hash)
265
+ attributes = attributes.transform_keys(&:to_sym)
266
+ transformed_hash = {}
267
+ openapi_types.each_pair do |key, type|
268
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
269
+ transformed_hash["#{key}"] = nil
270
+ elsif type =~ /\AArray<(.*)>/i
271
+ # check to ensure the input is an array given that the attribute
272
+ # is documented as an array but the input is not
273
+ if attributes[attribute_map[key]].is_a?(Array)
274
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
275
+ end
276
+ elsif !attributes[attribute_map[key]].nil?
277
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
278
+ end
279
+ end
280
+ new(transformed_hash)
281
+ end
282
+
283
+ # Returns the object in the form of hash
284
+ # @return [Hash] Returns the object in the form of hash
285
+ def to_hash
286
+ hash = {}
287
+ self.class.attribute_map.each_pair do |attr, param|
288
+ value = self.send(attr)
289
+ if value.nil?
290
+ is_nullable = self.class.openapi_nullable.include?(attr)
291
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
292
+ end
293
+
294
+ hash[param] = _to_hash(value)
295
+ end
296
+ hash
297
+ end
298
+
299
+ end
300
+
301
+ end