repull 0.2.62 → 0.2.63
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 +26 -2
- data/lib/repull/api/listings_api.rb +4 -4
- data/lib/repull/models/get_listing_markups200_response_airbnb_inner.rb +1 -1
- data/lib/repull/models/get_listing_markups200_response_vrbo_inner.rb +3 -3
- data/lib/repull/models/set_listing_markup_request.rb +7 -7
- data/lib/repull/models/submit_guest_review200_response.rb +14 -1
- data/lib/repull/version.rb +1 -1
- data/openapi/v1.json +50 -13
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2d1f655c9a667ded13d0627c1f95b86f94aece348a9722820f1581ae3e87645
|
|
4
|
+
data.tar.gz: 4ea93dcb6c1efd24048aad8b71a943c745fc6e4ca593c2de4dfaa21086b094d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cb5837c60f3a53d937d21eee17d577f7a72c0414b02e140517cd985e394e676ecbacc8e61a9ff64b8642a5cb41b3dc9bf864ce38b9c2a5312a492ee1ff20ed3
|
|
7
|
+
data.tar.gz: 13e4824dab1954175ef3f2eb792774f7c95cb046da78e4595f0b700574baac9663fa4bfa7e587578d5537d035f872cac10cf1580ef28b95f6a8e116181cba8b9
|
|
@@ -2666,9 +2666,13 @@ module Repull
|
|
|
2666
2666
|
end
|
|
2667
2667
|
|
|
2668
2668
|
# List Airbnb reviews
|
|
2669
|
-
# List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs). Reviews of inactive listings are left out; 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.
|
|
2669
|
+
# List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs). Newest first, with reviews not yet submitted ahead of them. Walk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`; `pagination.total` is the number of reviews matching the filters. The cursor is opaque — never construct or parse it client-side. Reviews of inactive listings are left out; 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.
|
|
2670
2670
|
# @param [Hash] opts the optional parameters
|
|
2671
2671
|
# @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.
|
|
2672
|
+
# @option opts [String] :cursor Opaque cursor returned by the previous response's `pagination.nextCursor`. Omit to fetch the first page.
|
|
2673
|
+
# @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)
|
|
2674
|
+
# @option opts [Integer] :limit Max items per page — max 200 per page. A larger value returns 200 per page; follow `pagination.nextCursor` for the rest. (default to 200)
|
|
2675
|
+
# @option opts [String] :listing_id Filter to one listing: its Airbnb listing id (`airbnbListingId` on each review) or its Repull listing id.
|
|
2672
2676
|
# @return [AirbnbReviewListResponse]
|
|
2673
2677
|
def list_airbnb_reviews(opts = {})
|
|
2674
2678
|
data, _status_code, _headers = list_airbnb_reviews_with_http_info(opts)
|
|
@@ -2676,20 +2680,40 @@ module Repull
|
|
|
2676
2680
|
end
|
|
2677
2681
|
|
|
2678
2682
|
# List Airbnb reviews
|
|
2679
|
-
# List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs). Reviews of inactive listings are left out; 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.
|
|
2683
|
+
# List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs). Newest first, with reviews not yet submitted ahead of them. Walk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`; `pagination.total` is the number of reviews matching the filters. The cursor is opaque — never construct or parse it client-side. Reviews of inactive listings are left out; 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.
|
|
2680
2684
|
# @param [Hash] opts the optional parameters
|
|
2681
2685
|
# @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.
|
|
2686
|
+
# @option opts [String] :cursor Opaque cursor returned by the previous response's `pagination.nextCursor`. Omit to fetch the first page.
|
|
2687
|
+
# @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)
|
|
2688
|
+
# @option opts [Integer] :limit Max items per page — max 200 per page. A larger value returns 200 per page; follow `pagination.nextCursor` for the rest. (default to 200)
|
|
2689
|
+
# @option opts [String] :listing_id Filter to one listing: its Airbnb listing id (`airbnbListingId` on each review) or its Repull listing id.
|
|
2682
2690
|
# @return [Array<(AirbnbReviewListResponse, Integer, Hash)>] AirbnbReviewListResponse data, response status code and response headers
|
|
2683
2691
|
def list_airbnb_reviews_with_http_info(opts = {})
|
|
2684
2692
|
if @api_client.config.debugging
|
|
2685
2693
|
@api_client.config.logger.debug 'Calling API: AirbnbApi.list_airbnb_reviews ...'
|
|
2686
2694
|
end
|
|
2695
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] > 10000
|
|
2696
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling AirbnbApi.list_airbnb_reviews, must be smaller than or equal to 10000.'
|
|
2697
|
+
end
|
|
2698
|
+
|
|
2699
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
2700
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling AirbnbApi.list_airbnb_reviews, must be greater than or equal to 0.'
|
|
2701
|
+
end
|
|
2702
|
+
|
|
2703
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
2704
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AirbnbApi.list_airbnb_reviews, must be greater than or equal to 1.'
|
|
2705
|
+
end
|
|
2706
|
+
|
|
2687
2707
|
# resource path
|
|
2688
2708
|
local_var_path = '/v1/channels/airbnb/reviews'
|
|
2689
2709
|
|
|
2690
2710
|
# query parameters
|
|
2691
2711
|
query_params = opts[:query_params] || {}
|
|
2692
2712
|
query_params[:'account_id'] = opts[:'account_id'] if !opts[:'account_id'].nil?
|
|
2713
|
+
query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
|
|
2714
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
2715
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
2716
|
+
query_params[:'listing_id'] = opts[:'listing_id'] if !opts[:'listing_id'].nil?
|
|
2693
2717
|
|
|
2694
2718
|
# header parameters
|
|
2695
2719
|
header_params = opts[:header_params] || {}
|
|
@@ -564,7 +564,7 @@ module Repull
|
|
|
564
564
|
end
|
|
565
565
|
|
|
566
566
|
# Get a listing's channel markups
|
|
567
|
-
# The markup each channel adds to this listing's price. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **
|
|
567
|
+
# The markup each channel adds to this listing's price. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Vrbo** — one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). Returns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one.
|
|
568
568
|
# @param id [String] Repull listing id.
|
|
569
569
|
# @param [Hash] opts the optional parameters
|
|
570
570
|
# @return [GetListingMarkups200Response]
|
|
@@ -574,7 +574,7 @@ module Repull
|
|
|
574
574
|
end
|
|
575
575
|
|
|
576
576
|
# Get a listing's channel markups
|
|
577
|
-
# The markup each channel adds to this listing's price. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **
|
|
577
|
+
# The markup each channel adds to this listing's price. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Vrbo** — one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). Returns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one.
|
|
578
578
|
# @param id [String] Repull listing id.
|
|
579
579
|
# @param [Hash] opts the optional parameters
|
|
580
580
|
# @return [Array<(GetListingMarkups200Response, Integer, Hash)>] GetListingMarkups200Response data, response status code and response headers
|
|
@@ -1417,7 +1417,7 @@ module Repull
|
|
|
1417
1417
|
end
|
|
1418
1418
|
|
|
1419
1419
|
# Set a listing's markup on a channel
|
|
1420
|
-
# Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **
|
|
1420
|
+
# Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Vrbo** — one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). Returns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one. On Booking.com the markup belongs to the property, so setting it reprices every listing on that property (`affectedListingIds`). A listing on more than one property must name one with `hotelId`; without it the request is refused with `409 ambiguous_booking_mapping` listing the candidates, rather than repricing a property it guessed. On Airbnb and Vrbo the markup belongs to the listing: setting it reprices this listing only (`affectedListingIds`), and other listings on the same Airbnb or Vrbo account keep their own. A listing not linked to Vrbo is `409 listing_not_on_vrbo`. `markupPercent` is a percentage above -100 and below 100 — `15` for +15%, `-2` for 2% below the listing's price (a $200 night is sent to the channel as $196). A value is kept to a whole percent, so one that rounds to -100 or less (it would send a price of zero or less) or to 100 or more is refused. A value between -1 and 1 other than 0 is refused as a probable fraction, with the number to send instead.
|
|
1421
1421
|
# @param id [String] Repull listing id.
|
|
1422
1422
|
# @param set_listing_markup_request [SetListingMarkupRequest]
|
|
1423
1423
|
# @param [Hash] opts the optional parameters
|
|
@@ -1428,7 +1428,7 @@ module Repull
|
|
|
1428
1428
|
end
|
|
1429
1429
|
|
|
1430
1430
|
# Set a listing's markup on a channel
|
|
1431
|
-
# Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **
|
|
1431
|
+
# Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent. A listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Vrbo** — one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). Returns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one. On Booking.com the markup belongs to the property, so setting it reprices every listing on that property (`affectedListingIds`). A listing on more than one property must name one with `hotelId`; without it the request is refused with `409 ambiguous_booking_mapping` listing the candidates, rather than repricing a property it guessed. On Airbnb and Vrbo the markup belongs to the listing: setting it reprices this listing only (`affectedListingIds`), and other listings on the same Airbnb or Vrbo account keep their own. A listing not linked to Vrbo is `409 listing_not_on_vrbo`. `markupPercent` is a percentage above -100 and below 100 — `15` for +15%, `-2` for 2% below the listing's price (a $200 night is sent to the channel as $196). A value is kept to a whole percent, so one that rounds to -100 or less (it would send a price of zero or less) or to 100 or more is refused. A value between -1 and 1 other than 0 is refused as a probable fraction, with the number to send instead.
|
|
1432
1432
|
# @param id [String] Repull listing id.
|
|
1433
1433
|
# @param set_listing_markup_request [SetListingMarkupRequest]
|
|
1434
1434
|
# @param [Hash] opts the optional parameters
|
|
@@ -18,7 +18,7 @@ module Repull
|
|
|
18
18
|
# Airbnb listing id.
|
|
19
19
|
attr_accessor :airbnb_id
|
|
20
20
|
|
|
21
|
-
# Percent added to the listing's price on Airbnb. 35 = +35
|
|
21
|
+
# Percent added to the listing's price on Airbnb. 35 = +35%; negative = below the listing's price. `null` = none.
|
|
22
22
|
attr_accessor :markup_percent
|
|
23
23
|
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -15,16 +15,16 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module Repull
|
|
17
17
|
class GetListingMarkups200ResponseVrboInner < ApiModelBase
|
|
18
|
-
# The Vrbo account, as its handle `vrbo:{Vrbo account id}`. `null` until Vrbo's account id is captured for the sign-in.
|
|
18
|
+
# The Vrbo account this listing's Vrbo unit is on, as its handle `vrbo:{Vrbo account id}`. `null` until Vrbo's account id is captured for the sign-in.
|
|
19
19
|
attr_accessor :account_id
|
|
20
20
|
|
|
21
21
|
# The Vrbo listing number this listing is linked to.
|
|
22
22
|
attr_accessor :vrbo_listing_number
|
|
23
23
|
|
|
24
|
-
# Percent added on Vrbo
|
|
24
|
+
# Percent added to this listing's price on Vrbo. 5 = +5%; negative = below the listing's price. `null` = none. Other listings on the same Vrbo account have their own.
|
|
25
25
|
attr_accessor :markup_percent
|
|
26
26
|
|
|
27
|
-
#
|
|
27
|
+
# The listing this markup applies to — always just this listing, since a Vrbo markup is per listing.
|
|
28
28
|
attr_accessor :listing_ids
|
|
29
29
|
|
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -17,13 +17,13 @@ module Repull
|
|
|
17
17
|
class SetListingMarkupRequest < ApiModelBase
|
|
18
18
|
attr_accessor :channel
|
|
19
19
|
|
|
20
|
-
# 15 = +15
|
|
20
|
+
# 15 = +15%; -2 = 2% below the listing's price. Above -100 and below 100. `null` removes the markup.
|
|
21
21
|
attr_accessor :markup_percent
|
|
22
22
|
|
|
23
23
|
# Booking.com property — required when the listing is on more than one.
|
|
24
24
|
attr_accessor :hotel_id
|
|
25
25
|
|
|
26
|
-
#
|
|
26
|
+
# Ignored. The Vrbo markup is per listing, so there is no account to name; accepted so existing calls keep working.
|
|
27
27
|
attr_accessor :account_id
|
|
28
28
|
|
|
29
29
|
class EnumAttributeValidator
|
|
@@ -135,8 +135,8 @@ module Repull
|
|
|
135
135
|
invalid_properties.push('invalid value for "markup_percent", must be smaller than 100.')
|
|
136
136
|
end
|
|
137
137
|
|
|
138
|
-
if @markup_percent
|
|
139
|
-
invalid_properties.push('invalid value for "markup_percent", must be greater than
|
|
138
|
+
if @markup_percent <= -100
|
|
139
|
+
invalid_properties.push('invalid value for "markup_percent", must be greater than -100.')
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
invalid_properties
|
|
@@ -150,7 +150,7 @@ module Repull
|
|
|
150
150
|
channel_validator = EnumAttributeValidator.new('String', ["airbnb", "booking", "vrbo"])
|
|
151
151
|
return false unless channel_validator.valid?(@channel)
|
|
152
152
|
return false if @markup_percent >= 100
|
|
153
|
-
return false if @markup_percent
|
|
153
|
+
return false if @markup_percent <= -100
|
|
154
154
|
true
|
|
155
155
|
end
|
|
156
156
|
|
|
@@ -171,8 +171,8 @@ module Repull
|
|
|
171
171
|
fail ArgumentError, 'invalid value for "markup_percent", must be smaller than 100.'
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
if !markup_percent.nil? && markup_percent
|
|
175
|
-
fail ArgumentError, 'invalid value for "markup_percent", must be greater than
|
|
174
|
+
if !markup_percent.nil? && markup_percent <= -100
|
|
175
|
+
fail ArgumentError, 'invalid value for "markup_percent", must be greater than -100.'
|
|
176
176
|
end
|
|
177
177
|
|
|
178
178
|
@markup_percent = markup_percent
|
|
@@ -21,6 +21,9 @@ module Repull
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :submitted
|
|
23
23
|
|
|
24
|
+
# Airbnb: the review as stored after the submission — the same object `GET /v1/reviews/{id}` returns, with `publicReview`, `rating`, `categories` and `submittedAt` set. It can stay `hidden` until the guest reviews too.
|
|
25
|
+
attr_accessor :review
|
|
26
|
+
|
|
24
27
|
# `vrbo` for a Vrbo rating.
|
|
25
28
|
attr_accessor :platform
|
|
26
29
|
|
|
@@ -33,6 +36,7 @@ module Repull
|
|
|
33
36
|
:'id' => :'id',
|
|
34
37
|
:'external_review_id' => :'externalReviewId',
|
|
35
38
|
:'submitted' => :'submitted',
|
|
39
|
+
:'review' => :'review',
|
|
36
40
|
:'platform' => :'platform',
|
|
37
41
|
:'rating' => :'rating'
|
|
38
42
|
}
|
|
@@ -54,6 +58,7 @@ module Repull
|
|
|
54
58
|
:'id' => :'String',
|
|
55
59
|
:'external_review_id' => :'String',
|
|
56
60
|
:'submitted' => :'Boolean',
|
|
61
|
+
:'review' => :'Hash<String, Object>',
|
|
57
62
|
:'platform' => :'String',
|
|
58
63
|
:'rating' => :'Hash<String, Object>'
|
|
59
64
|
}
|
|
@@ -62,6 +67,7 @@ module Repull
|
|
|
62
67
|
# List of attributes with nullable: true
|
|
63
68
|
def self.openapi_nullable
|
|
64
69
|
Set.new([
|
|
70
|
+
:'review',
|
|
65
71
|
])
|
|
66
72
|
end
|
|
67
73
|
|
|
@@ -93,6 +99,12 @@ module Repull
|
|
|
93
99
|
self.submitted = attributes[:'submitted']
|
|
94
100
|
end
|
|
95
101
|
|
|
102
|
+
if attributes.key?(:'review')
|
|
103
|
+
if (value = attributes[:'review']).is_a?(Hash)
|
|
104
|
+
self.review = value
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
96
108
|
if attributes.key?(:'platform')
|
|
97
109
|
self.platform = attributes[:'platform']
|
|
98
110
|
end
|
|
@@ -127,6 +139,7 @@ module Repull
|
|
|
127
139
|
id == o.id &&
|
|
128
140
|
external_review_id == o.external_review_id &&
|
|
129
141
|
submitted == o.submitted &&
|
|
142
|
+
review == o.review &&
|
|
130
143
|
platform == o.platform &&
|
|
131
144
|
rating == o.rating
|
|
132
145
|
end
|
|
@@ -140,7 +153,7 @@ module Repull
|
|
|
140
153
|
# Calculates hash code according to all attributes.
|
|
141
154
|
# @return [Integer] Hash code
|
|
142
155
|
def hash
|
|
143
|
-
[id, external_review_id, submitted, platform, rating].hash
|
|
156
|
+
[id, external_review_id, submitted, review, platform, rating].hash
|
|
144
157
|
end
|
|
145
158
|
|
|
146
159
|
# Builds the object from hash
|
data/lib/repull/version.rb
CHANGED
data/openapi/v1.json
CHANGED
|
@@ -27421,13 +27421,42 @@
|
|
|
27421
27421
|
"get": {
|
|
27422
27422
|
"operationId": "list_airbnb_reviews",
|
|
27423
27423
|
"summary": "List Airbnb reviews",
|
|
27424
|
-
"description": "List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs).\n\nReviews of inactive listings are left out; they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`.\n\n**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.",
|
|
27424
|
+
"description": "List reviews left by guests on Airbnb listings in this workspace. Includes both reviews of the host and reviews of the guest (where the host has not yet submitted theirs).\n\nNewest first, with reviews not yet submitted ahead of them. Walk pages with `?cursor=<pagination.nextCursor>` until `pagination.hasMore` is `false`; `pagination.total` is the number of reviews matching the filters. The cursor is opaque \u2014 never construct or parse it client-side.\n\nReviews of inactive listings are left out; they keep syncing and reappear once the listing is activated. Filtering by an inactive listing (`listing_id`) returns `403 listing_inactive`.\n\n**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.",
|
|
27425
27425
|
"tags": [
|
|
27426
27426
|
"Airbnb"
|
|
27427
27427
|
],
|
|
27428
27428
|
"parameters": [
|
|
27429
27429
|
{
|
|
27430
27430
|
"$ref": "#/components/parameters/AirbnbAccountId"
|
|
27431
|
+
},
|
|
27432
|
+
{
|
|
27433
|
+
"name": "cursor",
|
|
27434
|
+
"in": "query",
|
|
27435
|
+
"schema": {
|
|
27436
|
+
"type": "string"
|
|
27437
|
+
},
|
|
27438
|
+
"description": "Opaque cursor returned by the previous response's `pagination.nextCursor`. Omit to fetch the first page."
|
|
27439
|
+
},
|
|
27440
|
+
{
|
|
27441
|
+
"$ref": "#/components/parameters/Offset"
|
|
27442
|
+
},
|
|
27443
|
+
{
|
|
27444
|
+
"name": "limit",
|
|
27445
|
+
"in": "query",
|
|
27446
|
+
"schema": {
|
|
27447
|
+
"type": "integer",
|
|
27448
|
+
"default": 200,
|
|
27449
|
+
"minimum": 1
|
|
27450
|
+
},
|
|
27451
|
+
"description": "Max items per page \u2014 max 200 per page. A larger value returns 200 per page; follow `pagination.nextCursor` for the rest."
|
|
27452
|
+
},
|
|
27453
|
+
{
|
|
27454
|
+
"name": "listing_id",
|
|
27455
|
+
"in": "query",
|
|
27456
|
+
"schema": {
|
|
27457
|
+
"type": "string"
|
|
27458
|
+
},
|
|
27459
|
+
"description": "Filter to one listing: its Airbnb listing id (`airbnbListingId` on each review) or its Repull listing id."
|
|
27431
27460
|
}
|
|
27432
27461
|
],
|
|
27433
27462
|
"responses": {
|
|
@@ -40031,7 +40060,7 @@
|
|
|
40031
40060
|
"get": {
|
|
40032
40061
|
"operationId": "get_listing_markups",
|
|
40033
40062
|
"summary": "Get a listing's channel markups",
|
|
40034
|
-
"description": "The markup each channel adds to this listing's price.\n\nA listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel.\n\n- **Airbnb** \u2014 one markup per listing.\n- **
|
|
40063
|
+
"description": "The markup each channel adds to this listing's price.\n\nA listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel.\n\n- **Airbnb** \u2014 one markup per listing.\n- **Vrbo** \u2014 one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue.\n- **Booking.com** \u2014 one markup per **property**, shared by every listing priced through it (`listingIds` names them).\n\nReturns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one.",
|
|
40035
40064
|
"tags": [
|
|
40036
40065
|
"Listings"
|
|
40037
40066
|
],
|
|
@@ -40070,7 +40099,7 @@
|
|
|
40070
40099
|
"markupPercent": {
|
|
40071
40100
|
"type": "number",
|
|
40072
40101
|
"nullable": true,
|
|
40073
|
-
"description": "Percent added to the listing's price on Airbnb. 35 = +35
|
|
40102
|
+
"description": "Percent added to the listing's price on Airbnb. 35 = +35%; negative = below the listing's price. `null` = none.",
|
|
40074
40103
|
"example": 35
|
|
40075
40104
|
}
|
|
40076
40105
|
}
|
|
@@ -40109,7 +40138,7 @@
|
|
|
40109
40138
|
"accountId": {
|
|
40110
40139
|
"type": "string",
|
|
40111
40140
|
"nullable": true,
|
|
40112
|
-
"description": "The Vrbo account, as its handle `vrbo:{Vrbo account id}`. `null` until Vrbo's account id is captured for the sign-in."
|
|
40141
|
+
"description": "The Vrbo account this listing's Vrbo unit is on, as its handle `vrbo:{Vrbo account id}`. `null` until Vrbo's account id is captured for the sign-in."
|
|
40113
40142
|
},
|
|
40114
40143
|
"vrboListingNumber": {
|
|
40115
40144
|
"type": "string",
|
|
@@ -40118,15 +40147,15 @@
|
|
|
40118
40147
|
"markupPercent": {
|
|
40119
40148
|
"type": "number",
|
|
40120
40149
|
"nullable": true,
|
|
40121
|
-
"description": "Percent added on Vrbo
|
|
40122
|
-
"example":
|
|
40150
|
+
"description": "Percent added to this listing's price on Vrbo. 5 = +5%; negative = below the listing's price. `null` = none. Other listings on the same Vrbo account have their own.",
|
|
40151
|
+
"example": 5
|
|
40123
40152
|
},
|
|
40124
40153
|
"listingIds": {
|
|
40125
40154
|
"type": "array",
|
|
40126
40155
|
"items": {
|
|
40127
40156
|
"type": "string"
|
|
40128
40157
|
},
|
|
40129
|
-
"description": "
|
|
40158
|
+
"description": "The listing this markup applies to \u2014 always just this listing, since a Vrbo markup is per listing."
|
|
40130
40159
|
}
|
|
40131
40160
|
}
|
|
40132
40161
|
}
|
|
@@ -40150,7 +40179,7 @@
|
|
|
40150
40179
|
"put": {
|
|
40151
40180
|
"operationId": "set_listing_markup",
|
|
40152
40181
|
"summary": "Set a listing's markup on a channel",
|
|
40153
|
-
"description": "Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent.\n\nA listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel.\n\n- **Airbnb** \u2014 one markup per listing.\n- **
|
|
40182
|
+
"description": "Set the markup one channel adds to this listing's price. When the value changes, the affected listings' prices are re-sent to that channel straight away (`pricesResent`); nothing else is sent.\n\nA listing's price on a channel is its own nightly price plus the channel's markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing's own price (`GET /v1/availability/{propertyId}` returns it); the markup is added only when a price is sent to the channel.\n\n- **Airbnb** \u2014 one markup per listing.\n- **Vrbo** \u2014 one markup per listing, like Airbnb. Listings on the same Vrbo account each keep their own (one can be -2% and another +5%). Prices reach Vrbo through its calendar queue.\n- **Booking.com** \u2014 one markup per **property**, shared by every listing priced through it (`listingIds` names them).\n\nReturns `404 not_found` for a listing that does not exist or is not in this workspace, and `403 listing_inactive` for an inactive one.\n\nOn Booking.com the markup belongs to the property, so setting it reprices every listing on that property (`affectedListingIds`). A listing on more than one property must name one with `hotelId`; without it the request is refused with `409 ambiguous_booking_mapping` listing the candidates, rather than repricing a property it guessed.\n\nOn Airbnb and Vrbo the markup belongs to the listing: setting it reprices this listing only (`affectedListingIds`), and other listings on the same Airbnb or Vrbo account keep their own. A listing not linked to Vrbo is `409 listing_not_on_vrbo`.\n\n`markupPercent` is a percentage above -100 and below 100 \u2014 `15` for +15%, `-2` for 2% below the listing's price (a $200 night is sent to the channel as $196). A value is kept to a whole percent, so one that rounds to -100 or less (it would send a price of zero or less) or to 100 or more is refused. A value between -1 and 1 other than 0 is refused as a probable fraction, with the number to send instead.",
|
|
40154
40183
|
"tags": [
|
|
40155
40184
|
"Listings"
|
|
40156
40185
|
],
|
|
@@ -40187,10 +40216,11 @@
|
|
|
40187
40216
|
"markupPercent": {
|
|
40188
40217
|
"type": "number",
|
|
40189
40218
|
"nullable": true,
|
|
40190
|
-
"minimum":
|
|
40219
|
+
"minimum": -100,
|
|
40220
|
+
"exclusiveMinimum": true,
|
|
40191
40221
|
"maximum": 100,
|
|
40192
40222
|
"exclusiveMaximum": true,
|
|
40193
|
-
"description": "15 = +15
|
|
40223
|
+
"description": "15 = +15%; -2 = 2% below the listing's price. Above -100 and below 100. `null` removes the markup."
|
|
40194
40224
|
},
|
|
40195
40225
|
"hotelId": {
|
|
40196
40226
|
"type": "string",
|
|
@@ -40198,7 +40228,8 @@
|
|
|
40198
40228
|
},
|
|
40199
40229
|
"accountId": {
|
|
40200
40230
|
"type": "string",
|
|
40201
|
-
"
|
|
40231
|
+
"deprecated": true,
|
|
40232
|
+
"description": "Ignored. The Vrbo markup is per listing, so there is no account to name; accepted so existing calls keep working."
|
|
40202
40233
|
}
|
|
40203
40234
|
}
|
|
40204
40235
|
},
|
|
@@ -40211,7 +40242,7 @@
|
|
|
40211
40242
|
},
|
|
40212
40243
|
"responses": {
|
|
40213
40244
|
"200": {
|
|
40214
|
-
"description": "Saved. `{ id, channel, markupPercent, changed, hotelId? | accountId?, affectedListingIds, pricesResent }`."
|
|
40245
|
+
"description": "Saved. `{ id, channel, markupPercent, changed, hotelId? | accountId? + vrboListingNumbers?, affectedListingIds, pricesResent }`. On Vrbo, `accountId` is the Vrbo account this listing's unit is on and `affectedListingIds` is just this listing."
|
|
40215
40246
|
},
|
|
40216
40247
|
"401": {
|
|
40217
40248
|
"$ref": "#/components/responses/Unauthorized"
|
|
@@ -40223,7 +40254,7 @@
|
|
|
40223
40254
|
"$ref": "#/components/responses/NotFound"
|
|
40224
40255
|
},
|
|
40225
40256
|
"409": {
|
|
40226
|
-
"description": "`ambiguous_booking_mapping` \u2014 the listing is on several Booking.com properties; `valid_values` lists them. `
|
|
40257
|
+
"description": "`ambiguous_booking_mapping` \u2014 the listing is on several Booking.com properties; `valid_values` lists them. `listing_not_on_vrbo` \u2014 `channel: \"vrbo\"` on a listing with no Vrbo unit linked."
|
|
40227
40258
|
},
|
|
40228
40259
|
"422": {
|
|
40229
40260
|
"$ref": "#/components/responses/UnprocessableEntity"
|
|
@@ -40974,6 +41005,12 @@
|
|
|
40974
41005
|
"submitted": {
|
|
40975
41006
|
"type": "boolean"
|
|
40976
41007
|
},
|
|
41008
|
+
"review": {
|
|
41009
|
+
"type": "object",
|
|
41010
|
+
"nullable": true,
|
|
41011
|
+
"description": "Airbnb: the review as stored after the submission \u2014 the same object `GET /v1/reviews/{id}` returns, with `publicReview`, `rating`, `categories` and `submittedAt` set. It can stay `hidden` until the guest reviews too.",
|
|
41012
|
+
"additionalProperties": true
|
|
41013
|
+
},
|
|
40977
41014
|
"platform": {
|
|
40978
41015
|
"type": "string",
|
|
40979
41016
|
"description": "`vrbo` for a Vrbo rating."
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: repull
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.63
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nikolov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|