repull 0.2.4 → 0.2.5

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: 7a8711c11237d7c45a1db2befdb0f645d03ad5895ee09867bf4e7ace01824afe
4
- data.tar.gz: 307bb76c3ebf2b10913878538d4a1a9deee795e892d00eb7f25ca3f23fd4bf11
3
+ metadata.gz: 5453d00d2254c37064fb3d591020d9e271661e295606bcc092651c529c9297ca
4
+ data.tar.gz: a07e127de3d76576429fad4115560ee74fceacb5a1e9045092eaa87704c11896
5
5
  SHA512:
6
- metadata.gz: a98de54e600e1f1fdbe922cc66f4a1ee40cdbce4200bf30d754d804e7b5a3aad06610cd000b202238c6ab926d5e0e9e44ab8eafff5a44068b80d051597fcce4b
7
- data.tar.gz: 522c6471a555bea4d0134f4a9423eb06af49540fbfb259efed19ae553dac4177c0ac61c15ef795faf53dee8277fc44886ce34313fea3d2b66d119ca1fb87df99
6
+ metadata.gz: 2ef3b9b10250794a6d8f00dc6ab02dfb35de1647330259e79eeb2a14a4f40a29aa03a361db6fcdc087c3c11ea5bd6880bdeda5f8652f7f1456ef7eba1ac751d1
7
+ data.tar.gz: b269cfed6040af04000f8a432328dbc12c215dd667d74497aa62a954b45f42de2e92524f2b3f70a043529dedfbda6a7d66ff5232174dd1d3e86e538c6af5984c
@@ -88,7 +88,7 @@ module Repull
88
88
  end
89
89
 
90
90
  # Connect to PMS/OTA provider
91
- # 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` (`read_only` for calendar-only OAuth scopes, or `full_access` — the default — for full host scopes). The response returns a hosted `url` to redirect the user to.
91
+ # 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` grants read scopes plus message read/send 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.
92
92
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @option opts [CreateConnectionRequest] :create_connection_request
@@ -99,7 +99,7 @@ module Repull
99
99
  end
100
100
 
101
101
  # Connect to PMS/OTA provider
102
- # 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` (`read_only` for calendar-only OAuth scopes, or `full_access` — the default — for full host scopes). The response returns a hosted `url` to redirect the user to.
102
+ # 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` grants read scopes plus message read/send 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.
103
103
  # @param provider [String] PMS provider slug (e.g., hostaway, guesty, ownerrez)
104
104
  # @param [Hash] opts the optional parameters
105
105
  # @option opts [CreateConnectionRequest] :create_connection_request
@@ -19,7 +19,7 @@ module Repull
19
19
  # Airbnb only — where to redirect the user after the OAuth flow completes.
20
20
  attr_accessor :redirect_url
21
21
 
22
- # Airbnb only — selects the OAuth scope set. 'read_only' grants calendar-only access; 'full_access' grants full host scopes (default).
22
+ # Airbnb only — selects the OAuth scope set. 'read_only' grants read-only scopes; 'messaging' grants read scopes plus message read/send 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' (default) grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it).
23
23
  attr_accessor :access_type
24
24
 
25
25
  # PMS providers — API key.
@@ -142,7 +142,7 @@ module Repull
142
142
  # @return true if the model is valid
143
143
  def valid?
144
144
  warn '[DEPRECATED] the `valid?` method is obsolete'
145
- access_type_validator = EnumAttributeValidator.new('String', ["read_only", "full_access"])
145
+ access_type_validator = EnumAttributeValidator.new('String', ["read_only", "full_access", "messaging"])
146
146
  return false unless access_type_validator.valid?(@access_type)
147
147
  true
148
148
  end
@@ -150,7 +150,7 @@ module Repull
150
150
  # Custom attribute writer method checking allowed values (enum).
151
151
  # @param [Object] access_type Object to be assigned
152
152
  def access_type=(access_type)
153
- validator = EnumAttributeValidator.new('String', ["read_only", "full_access"])
153
+ validator = EnumAttributeValidator.new('String', ["read_only", "full_access", "messaging"])
154
154
  unless validator.valid?(access_type)
155
155
  fail ArgumentError, "invalid value for \"access_type\", must be one of #{validator.allowable_values}."
156
156
  end
@@ -11,5 +11,5 @@ Generator version: 7.22.0
11
11
  =end
12
12
 
13
13
  module Repull
14
- VERSION = '0.2.4'
14
+ VERSION = '0.2.5'
15
15
  end
data/openapi/v1.json CHANGED
@@ -7733,7 +7733,7 @@
7733
7733
  "post": {
7734
7734
  "operationId": "create_connection",
7735
7735
  "summary": "Connect to PMS/OTA provider",
7736
- "description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType` (`read_only` for calendar-only OAuth scopes, or `full_access` \u2014 the default \u2014 for full host scopes). The response returns a hosted `url` to redirect the user to.",
7736
+ "description": "Establish a connection to a PMS or OTA platform. Credentials vary by provider \u2014 see docs for each provider.\n\nAirbnb-specific: pass `redirectUrl` (where to send the user after consent) and optionally `accessType`. Three tiers: `read_only` grants read-only scopes; `messaging` grants read scopes plus message read/send 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` \u2014 the default \u2014 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.",
7737
7737
  "tags": [
7738
7738
  "Connect"
7739
7739
  ],
@@ -7758,10 +7758,11 @@
7758
7758
  "type": "string",
7759
7759
  "enum": [
7760
7760
  "read_only",
7761
- "full_access"
7761
+ "full_access",
7762
+ "messaging"
7762
7763
  ],
7763
7764
  "default": "full_access",
7764
- "description": "Airbnb only \u2014 selects the OAuth scope set. 'read_only' grants calendar-only access; 'full_access' grants full host scopes (default)."
7765
+ "description": "Airbnb only \u2014 selects the OAuth scope set. 'read_only' grants read-only scopes; 'messaging' grants read scopes plus message read/send 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' (default) grants full host scopes including the exclusive property management (only one app per Airbnb account can hold it)."
7765
7766
  },
7766
7767
  "apiKey": {
7767
7768
  "type": "string",
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
4
+ version: 0.2.5
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-05-15 00:00:00.000000000 Z
11
+ date: 2026-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus