zuora_connect 2.0.3l → 2.0.3m

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: d93d7c0e7e64483ffaaf156912c0ee8c6b4f754063076ea079444b50bbb8f9fa
4
- data.tar.gz: 49bde2287a5d34a541af49071023442136adf1964e454fa6b85672d8f0f7ba7d
3
+ metadata.gz: 5498136bf87d9ef78d44123bd1b723b3f924c277b680fafec4ff31c1247b9fed
4
+ data.tar.gz: e9895c310557b47f5f350f14e740171d616bd10f1223d942e8c1b0cfaa785133
5
5
  SHA512:
6
- metadata.gz: 1f5c7faee03cebff025670ba7d5441c2ef796bbf7af0c8ebb0a21ffe80bc54bbab714d932220cff7882cf64da26bb6d6f8afc05c3c6a2083bcf18562fb156288
7
- data.tar.gz: bbb1096b513cf54ac8abae4a77719e76587b80189cafb17d1ceabc52b842cf3aaa5f6a5e1630465370a262a6fab1221fb69549958d2a6ff78524267592b7e45c
6
+ metadata.gz: 7f064300d023adc864bdcf239b979c278067846fc36bfb189f070a937ddf0fb2919b3be6dff673d7d5c92f8a4c012da29320b7e98ad77e786af9caec657d14f8
7
+ data.tar.gz: 8d9d988971198ff34978d5f425e4d581e4ba6b16f7400a1fcb7ad4a2304697da9b1da16f9be437f843d5e1407f29efad06b22eff912b8d9b03820ea81c55fbfe
@@ -163,8 +163,6 @@ module ZuoraConnect
163
163
  end
164
164
 
165
165
  body = {
166
- 'clientId' => SecureRandom.uuid,
167
- 'clientSecret' => SecureRandom.hex(10),
168
166
  'userId' => zuora_user_id,
169
167
  'entityIds' => [zuora_entity_id.unpack("a8a4a4a4a12").join('-')],
170
168
  'customAuthorities' => [],
@@ -178,7 +176,7 @@ module ZuoraConnect
178
176
 
179
177
  new_zuora_client = ZuoraAPI::Oauth.new(url: "https://#{zuora_host}", oauth_client_id: oauth_response["clientId"], oauth_secret: oauth_response["clientSecret"] )
180
178
 
181
- client_describe, response = new_zuora_client.rest_call(body: body.to_json, url: zuora_client.rest_endpoint("genesis/user/info").gsub('v1/', ''), session_type: :bearer)
179
+ client_describe, response = new_zuora_client.rest_call(url: zuora_client.rest_endpoint("genesis/user/info").gsub('v1/', ''), session_type: :bearer)
182
180
 
183
181
  Apartment::Tenant.switch!("public")
184
182
  next_id = (ZuoraConnect::AppInstance.all.where(:access_token => nil).order(id: :desc).limit(1).pluck(:id).first || 24999999) + 1
@@ -198,8 +196,8 @@ module ZuoraConnect
198
196
  "username": session["ZuoraCurrentIdentity"]["username"],
199
197
  "url": new_zuora_client.url,
200
198
  "status": "Active",
201
- "oauth_client_id": body['clientId'],
202
- "oauth_secret": body['clientSecret'],
199
+ "oauth_client_id": oauth_response['clientId'],
200
+ "oauth_secret": oauth_response['clientSecret'],
203
201
  "authentication_type": "OAUTH",
204
202
  "entities": client_describe["accessibleEntities"].map {|e| e.merge({'displayName' => client_describe["tenantName"]})} #needs work
205
203
  },
@@ -1,3 +1,3 @@
1
1
  module ZuoraConnect
2
- VERSION = "2.0.3l"
2
+ VERSION = "2.0.3m"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zuora_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3l
4
+ version: 2.0.3m
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connect Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-30 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apartment
@@ -44,20 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 1.6.42
47
+ version: 1.6.43
48
48
  - - "~>"
49
49
  - !ruby/object:Gem::Version
50
- version: 1.6.42
50
+ version: 1.6.43
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
55
  - - ">="
56
56
  - !ruby/object:Gem::Version
57
- version: 1.6.42
57
+ version: 1.6.43
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.6.42
60
+ version: 1.6.43
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: httparty
63
63
  requirement: !ruby/object:Gem::Requirement