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 +4 -4
- data/lib/repull/api/connect_api.rb +2 -2
- data/lib/repull/models/create_connection_request.rb +3 -3
- data/lib/repull/version.rb +1 -1
- data/openapi/v1.json +4 -3
- 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: 5453d00d2254c37064fb3d591020d9e271661e295606bcc092651c529c9297ca
|
|
4
|
+
data.tar.gz: a07e127de3d76576429fad4115560ee74fceacb5a1e9045092eaa87704c11896
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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`
|
|
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
|
|
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
|
data/lib/repull/version.rb
CHANGED
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
|
|
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
|
|
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
|
+
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-
|
|
11
|
+
date: 2026-06-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|