zuora_api 1.7.36 → 1.7.37
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zuora_api/logins/oauth.rb +2 -1
- data/lib/zuora_api/version.rb +1 -1
- 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: 4e551fbf8c27edf49e97cbdadb3ae70a75707395443186bf517934a3f80b493d
|
4
|
+
data.tar.gz: b92b4d11c9398a58aff351a13f2c266e639b5d72fedf14ba7500efda8fb26129
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba4dda0f63a723d00ae9bdbe534015d349824b4f8baf2596642c0266f65d40751af50a7cb91abae6c11310ff9a36a67fb7a0a73e94946c8b367600213a08d0e
|
7
|
+
data.tar.gz: d07792f277182d4a7cc5480f20ba0681dfbea5d17706ceb7e2b44bf24e40a5963ec8457a02cfc31ced711d41231aed2525fac5cb0a7328145fc42cd47b72d4b8
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module ZuoraAPI
|
2
2
|
class Oauth < Login
|
3
|
-
attr_accessor :oauth_client_id, :oauth_secret, :bearer_token, :oauth_session_expires_at
|
3
|
+
attr_accessor :oauth_client_id, :oauth_secret, :bearer_token, :oauth_session_expires_at, :scope_entities
|
4
4
|
|
5
5
|
def initialize(oauth_client_id: nil, oauth_secret: nil, bearer_token: nil, oauth_session_expires_at: nil, **keyword_args)
|
6
6
|
self.oauth_client_id = oauth_client_id
|
@@ -88,6 +88,7 @@ module ZuoraAPI
|
|
88
88
|
)
|
89
89
|
|
90
90
|
self.bearer_token = output_json["access_token"]
|
91
|
+
self.scope_entities = output_json.fetch('scope', '').split(" ").map { |scope| scope.split('.').last.gsub('-', '') if scope.include?('entity.') }.compact.uniq
|
91
92
|
self.oauth_session_expires_at = Time.now.to_i + output_json["expires_in"].to_i
|
92
93
|
self.current_error = nil
|
93
94
|
self.status = 'Active'
|
data/lib/zuora_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zuora_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zuora Strategic Solutions Group
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|