zuora_connect 1.5.305 → 1.5.306
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/app/models/zuora_connect/app_instance_base.rb +7 -5
- data/lib/zuora_connect/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c08b49e16159478638184c40aae22936e79c623
|
4
|
+
data.tar.gz: e792811b1dc502e67cf28b61df90600d3fb24469
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 811fd54b2f1e52b41fe8270826d99da1ef1ac285324925ae06fe0ecdb39586c939c97647c6c43693231182db378d8e913dea533abbd8b4d37eea89fcb198d45b
|
7
|
+
data.tar.gz: 52653ea897ae382dc0a87febdff212a624130480c954dc74ad671c96ad4aaa908b09249cd7aa17911b05fbd1d598624788d31fefe777832712a1398ec7be1fe9
|
@@ -198,8 +198,10 @@ module ZuoraConnect
|
|
198
198
|
#### START Connect OAUTH methods ####
|
199
199
|
def check_oauth_state(method)
|
200
200
|
#Refresh token if already expired
|
201
|
-
|
202
|
-
|
201
|
+
if self.oauth_expired?
|
202
|
+
Rails.logger.debug("[#{self.id}] Before '#{method}' method, Oauth expired")
|
203
|
+
self.refresh_oauth
|
204
|
+
end
|
203
205
|
end
|
204
206
|
|
205
207
|
def oauth_expired?
|
@@ -477,7 +479,7 @@ module ZuoraConnect
|
|
477
479
|
|
478
480
|
case object
|
479
481
|
when :product
|
480
|
-
if object_id.
|
482
|
+
if object_id.nil?
|
481
483
|
string =
|
482
484
|
"SELECT "\
|
483
485
|
"json_object_agg(product_id, product #{child_objects ? '' : '- \'productRatePlans\''}) AS item "\
|
@@ -509,7 +511,7 @@ module ZuoraConnect
|
|
509
511
|
end
|
510
512
|
|
511
513
|
when :rateplan
|
512
|
-
if object_id.
|
514
|
+
if object_id.nil?
|
513
515
|
string =
|
514
516
|
"SELECT "\
|
515
517
|
"json_object_agg(rateplan_id, rateplan #{child_objects ? '' : '- \'productRatePlanCharges\''}) AS item "\
|
@@ -543,7 +545,7 @@ module ZuoraConnect
|
|
543
545
|
end
|
544
546
|
|
545
547
|
when :charge
|
546
|
-
if object_id.
|
548
|
+
if object_id.nil?
|
547
549
|
string =
|
548
550
|
"SELECT "\
|
549
551
|
"json_object_agg(charge_id, charge) as item "\
|
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: 1.5.
|
4
|
+
version: 1.5.306
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connect Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apartment
|