repull 0.2.62 → 0.2.64

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: 798d0f2ac98496154eb1dc9dab24d72eae0f2f255f1df2ee5a9ca07076fceeb4
4
- data.tar.gz: b3e0bb01d1d40e7847de51e4eff57f60a5118944dd9ebf9e31fe340036cf52f0
3
+ metadata.gz: 70e3dd39e5b976385b6d3afc0f265fa7c877236189ba7d2cdf4933797440722b
4
+ data.tar.gz: 1b117029289555efacdd5874243443c32f70948663ef77e7cc012dff09389893
5
5
  SHA512:
6
- metadata.gz: 0c629170d20dbef88b46bdc591eb1e868612463285467c24c8dde8c72564ad116f4c2833620eee2ae9b434077a28a6aaac7b37d4b1a17e8e066448585ac3dfef
7
- data.tar.gz: 5d1293408c8d06d25da947929078c880b11e53018b5d7d71c8a5f13a710311e69c7bd604cc073c3943bfaefdc7167680b4e8bbbccbacdda120a63d860b3a6528
6
+ metadata.gz: '0836b99003a4a65906ccc5a79314e958ace92a18f4db8002008850452474e03ee48c41deae6e03383e711c1a6c2529d4bc4f4510bf76ebf7ba8fe45d9f562bb1'
7
+ data.tar.gz: e85a37de54928d1d9e54bd6012a195261f7f14eee85498b4edf54dfa33abdbf40f5b7e8de29ee647be4194759b269784f2de1e0dcc5ff228426efe78f09f9e2e
@@ -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 &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2672
+ # @option opts [String] :cursor Opaque cursor returned by the previous response&#39;s &#x60;pagination.nextCursor&#x60;. Omit to fetch the first page.
2673
+ # @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with &#x60;cursor&#x60; — passing both returns 422. Accepts integers in &#x60;[0, 10000]&#x60;; deeper walks must use &#x60;cursor&#x60; (constant per-page cost). The response always includes &#x60;pagination.nextCursor&#x60; 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 &#x60;pagination.nextCursor&#x60; for the rest. (default to 200)
2675
+ # @option opts [String] :listing_id Filter to one listing: its Airbnb listing id (&#x60;airbnbListingId&#x60; 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 (&#x60;listing_id&#x60;) returns &#x60;403 listing_inactive&#x60;. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account&#39;s rows; pass &#x60;?account_id&#x3D;&lt;airbnb host id&gt;&#x60; to scope to one. Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, and &#x60;dataFreshness.accounts[]&#x60; reports each account&#39;s freshness separately, so one disconnected host no longer marks the whole response stale.
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 &#x60;?cursor&#x3D;&lt;pagination.nextCursor&gt;&#x60; until &#x60;pagination.hasMore&#x60; is &#x60;false&#x60;; &#x60;pagination.total&#x60; 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 (&#x60;listing_id&#x60;) returns &#x60;403 listing_inactive&#x60;. **Several Airbnb accounts?** A workspace can connect more than one. By default this returns every connected account&#39;s rows; pass &#x60;?account_id&#x3D;&lt;airbnb host id&gt;&#x60; to scope to one. Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, and &#x60;dataFreshness.accounts[]&#x60; reports each account&#39;s freshness separately, so one disconnected host no longer marks the whole response stale.
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 &#x60;accounts[].externalAccountId&#x60; that &#x60;GET /v1/connect/airbnb&#x60; returns and &#x60;DELETE /v1/connect/airbnb?accountId&#x3D;&#x60; accepts. A workspace can connect several Airbnb accounts. Omit this and you get every account&#39;s rows (the default, unchanged). Every row carries &#x60;accountId&#x60; + &#x60;accountName&#x60; either way, so you can group without a second call. An id that is not connected to THIS workspace returns &#x60;404 not_found&#x60; with your own ids in &#x60;valid_values&#x60; — we do not distinguish \&quot;no such host\&quot; from \&quot;someone else&#39;s host\&quot;, because confirming the latter would leak another workspace&#39;s account. Note this is NOT the &#x60;X-Account-Id&#x60; header, which carries a connection id and cannot tell two Airbnb hosts apart.
2686
+ # @option opts [String] :cursor Opaque cursor returned by the previous response&#39;s &#x60;pagination.nextCursor&#x60;. Omit to fetch the first page.
2687
+ # @option opts [Integer] :offset First-class alias for cursor-based pagination. Mutually exclusive with &#x60;cursor&#x60; — passing both returns 422. Accepts integers in &#x60;[0, 10000]&#x60;; deeper walks must use &#x60;cursor&#x60; (constant per-page cost). The response always includes &#x60;pagination.nextCursor&#x60; 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 &#x60;pagination.nextCursor&#x60; for the rest. (default to 200)
2689
+ # @option opts [String] :listing_id Filter to one listing: its Airbnb listing id (&#x60;airbnbListingId&#x60; 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. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). - **Vrbo** — one markup per connected **Vrbo account**, shared by every listing linked on it (`listingIds` names them). Prices reach Vrbo through its calendar queue. 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.
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&#39;s channel markups
577
- # The markup each channel adds to this listing&#39;s price. A listing&#39;s price on a channel is its own nightly price plus the channel&#39;s markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing&#39;s own price (&#x60;GET /v1/availability/{propertyId}&#x60; returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Booking.com** — one markup per **property**, shared by every listing priced through it (&#x60;listingIds&#x60; names them). - **Vrbo** — one markup per connected **Vrbo account**, shared by every listing linked on it (&#x60;listingIds&#x60; names them). Prices reach Vrbo through its calendar queue. Returns &#x60;404 not_found&#x60; for a listing that does not exist or is not in this workspace, and &#x60;403 listing_inactive&#x60; for an inactive one.
577
+ # The markup each channel adds to this listing&#39;s price. A listing&#39;s price on a channel is its own nightly price plus the channel&#39;s markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing&#39;s own price (&#x60;GET /v1/availability/{propertyId}&#x60; 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 (&#x60;listingIds&#x60; names them). Returns &#x60;404 not_found&#x60; for a listing that does not exist or is not in this workspace, and &#x60;403 listing_inactive&#x60; 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. - **Booking.com** — one markup per **property**, shared by every listing priced through it (`listingIds` names them). - **Vrbo** — one markup per connected **Vrbo account**, shared by every listing linked on it (`listingIds` names them). Prices reach Vrbo through its calendar queue. 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 Vrbo the markup belongs to the connected Vrbo account, so setting it reprices every listing linked on that account (`affectedListingIds`). A listing linked on more than one account names one with `accountId`, else `409 ambiguous_vrbo_account`; a listing not linked to Vrbo is `409 listing_not_on_vrbo`. `markupPercent` is a percentage — `15` for 15%. A value between 0 and 1 is refused as a probable fraction, with the number to send instead.
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&#39;s markup on a channel
1431
- # Set the markup one channel adds to this listing&#39;s price. When the value changes, the affected listings&#39; prices are re-sent to that channel straight away (&#x60;pricesResent&#x60;); nothing else is sent. A listing&#39;s price on a channel is its own nightly price plus the channel&#39;s markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing&#39;s own price (&#x60;GET /v1/availability/{propertyId}&#x60; returns it); the markup is added only when a price is sent to the channel. - **Airbnb** — one markup per listing. - **Booking.com** — one markup per **property**, shared by every listing priced through it (&#x60;listingIds&#x60; names them). - **Vrbo** — one markup per connected **Vrbo account**, shared by every listing linked on it (&#x60;listingIds&#x60; names them). Prices reach Vrbo through its calendar queue. Returns &#x60;404 not_found&#x60; for a listing that does not exist or is not in this workspace, and &#x60;403 listing_inactive&#x60; for an inactive one. On Booking.com the markup belongs to the property, so setting it reprices every listing on that property (&#x60;affectedListingIds&#x60;). A listing on more than one property must name one with &#x60;hotelId&#x60;; without it the request is refused with &#x60;409 ambiguous_booking_mapping&#x60; listing the candidates, rather than repricing a property it guessed. On Vrbo the markup belongs to the connected Vrbo account, so setting it reprices every listing linked on that account (&#x60;affectedListingIds&#x60;). A listing linked on more than one account names one with &#x60;accountId&#x60;, else &#x60;409 ambiguous_vrbo_account&#x60;; a listing not linked to Vrbo is &#x60;409 listing_not_on_vrbo&#x60;. &#x60;markupPercent&#x60; is a percentage — &#x60;15&#x60; for 15%. A value between 0 and 1 is refused as a probable fraction, with the number to send instead.
1431
+ # Set the markup one channel adds to this listing&#39;s price. When the value changes, the affected listings&#39; prices are re-sent to that channel straight away (&#x60;pricesResent&#x60;); nothing else is sent. A listing&#39;s price on a channel is its own nightly price plus the channel&#39;s markup: a $200 night with a 35% Airbnb markup is sent to Airbnb as $270. The calendar keeps the listing&#39;s own price (&#x60;GET /v1/availability/{propertyId}&#x60; 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 (&#x60;listingIds&#x60; names them). Returns &#x60;404 not_found&#x60; for a listing that does not exist or is not in this workspace, and &#x60;403 listing_inactive&#x60; for an inactive one. On Booking.com the markup belongs to the property, so setting it reprices every listing on that property (&#x60;affectedListingIds&#x60;). A listing on more than one property must name one with &#x60;hotelId&#x60;; without it the request is refused with &#x60;409 ambiguous_booking_mapping&#x60; 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 (&#x60;affectedListingIds&#x60;), and other listings on the same Airbnb or Vrbo account keep their own. A listing not linked to Vrbo is &#x60;409 listing_not_on_vrbo&#x60;. &#x60;markupPercent&#x60; is a percentage above -100 and below 100 — &#x60;15&#x60; for +15%, &#x60;-2&#x60; for 2% below the listing&#39;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%. `null` = none.
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, for every listing linked on this account.
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
- # Listings in this workspace linked on this Vrbo account — all share this markup.
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%. `null` removes the markup.
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
- # Vrbo account (`vrbo:7001234`, Vrbo's own account id) — required when the listing is linked on more than one. The old sign-in ids (`vrbo:13`) still resolve until 2027-02-12.
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 < 0
139
- invalid_properties.push('invalid value for "markup_percent", must be greater than or equal to 0.')
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 < 0
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 < 0
175
- fail ArgumentError, 'invalid value for "markup_percent", must be greater than or equal to 0.'
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
@@ -54,6 +54,8 @@ module Repull
54
54
 
55
55
  attr_accessor :synced_at
56
56
 
57
+ attr_accessor :booking_payments_api
58
+
57
59
  # Attribute mapping from ruby-style variable name to JSON key.
58
60
  def self.attribute_map
59
61
  {
@@ -71,7 +73,8 @@ module Repull
71
73
  :'confirmation_code' => :'confirmationCode',
72
74
  :'reservation_id' => :'reservationId',
73
75
  :'listing_id' => :'listingId',
74
- :'synced_at' => :'syncedAt'
76
+ :'synced_at' => :'syncedAt',
77
+ :'booking_payments_api' => :'bookingPaymentsApi'
75
78
  }
76
79
  end
77
80
 
@@ -102,7 +105,8 @@ module Repull
102
105
  :'confirmation_code' => :'String',
103
106
  :'reservation_id' => :'Integer',
104
107
  :'listing_id' => :'Integer',
105
- :'synced_at' => :'Time'
108
+ :'synced_at' => :'Time',
109
+ :'booking_payments_api' => :'TransactionBookingPaymentsApi'
106
110
  }
107
111
  end
108
112
 
@@ -120,7 +124,8 @@ module Repull
120
124
  :'confirmation_code',
121
125
  :'reservation_id',
122
126
  :'listing_id',
123
- :'synced_at'
127
+ :'synced_at',
128
+ :'booking_payments_api'
124
129
  ])
125
130
  end
126
131
 
@@ -209,6 +214,10 @@ module Repull
209
214
  if attributes.key?(:'synced_at')
210
215
  self.synced_at = attributes[:'synced_at']
211
216
  end
217
+
218
+ if attributes.key?(:'booking_payments_api')
219
+ self.booking_payments_api = attributes[:'booking_payments_api']
220
+ end
212
221
  end
213
222
 
214
223
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -290,7 +299,8 @@ module Repull
290
299
  confirmation_code == o.confirmation_code &&
291
300
  reservation_id == o.reservation_id &&
292
301
  listing_id == o.listing_id &&
293
- synced_at == o.synced_at
302
+ synced_at == o.synced_at &&
303
+ booking_payments_api == o.booking_payments_api
294
304
  end
295
305
 
296
306
  # @see the `==` method
@@ -302,7 +312,7 @@ module Repull
302
312
  # Calculates hash code according to all attributes.
303
313
  # @return [Integer] Hash code
304
314
  def hash
305
- [transaction_id, platform, type, is_payout, status, date, currency, amount, gross_amount, fees, payout, confirmation_code, reservation_id, listing_id, synced_at].hash
315
+ [transaction_id, platform, type, is_payout, status, date, currency, amount, gross_amount, fees, payout, confirmation_code, reservation_id, listing_id, synced_at, booking_payments_api].hash
306
316
  end
307
317
 
308
318
  # Builds the object from hash