zuora_connect 1.5.307 → 1.5.308
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 +5 -4
- data/lib/zuora_connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 09be39cab2c45b87c56edd2e40fd7b8f9dfe415a
|
|
4
|
+
data.tar.gz: 92cf0a81920e35c35d926de1073988b7e4e3fc1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7b4496bcff48706882649e919244c55e1e2c1136318b08492e81be2892066fdc4076b9830d212129708c704144579af69f596a1349713c8c52e562f47fef2a28
|
|
7
|
+
data.tar.gz: 62495da1778becee7a73d4b74c9ecd3e354f222a82c85314581c5cb1ec69f50fb200f521e2c43618391bedba21bb281b9a46df1fa5765f1adea5d53841dd2c40
|
|
@@ -9,7 +9,8 @@ module ZuoraConnect
|
|
|
9
9
|
INSTANCE_REFRESH_WINDOW = 30.minutes #Used to set how how long till app starts attempting to refresh cached task connect data
|
|
10
10
|
INSTANCE_REDIS_CACHE_PERIOD = 60.minutes #Used to determine how long to cached task data will live for
|
|
11
11
|
API_LIMIT_TIMEOUT = 2.minutes #Used to set the default for expiring timeout when api rate limiting is in effect
|
|
12
|
-
|
|
12
|
+
BLANK_OBJECT_ID_LOOKUP = 'BlankValueSupplied'
|
|
13
|
+
|
|
13
14
|
def init
|
|
14
15
|
@options = Hash.new
|
|
15
16
|
@logins = Hash.new
|
|
@@ -496,7 +497,7 @@ module ZuoraConnect
|
|
|
496
497
|
"FROM "\
|
|
497
498
|
"\"public\".\"zuora_connect_app_instances\" "\
|
|
498
499
|
"WHERE "\
|
|
499
|
-
"\"id\" = %s" % [entity_reference, object_id.blank? ?
|
|
500
|
+
"\"id\" = %s" % [entity_reference, object_id.blank? ? BLANK_OBJECT_ID_LOOKUP : object_id, self.id]
|
|
500
501
|
elsif object_id.class == Array
|
|
501
502
|
string =
|
|
502
503
|
"SELECT "\
|
|
@@ -529,7 +530,7 @@ module ZuoraConnect
|
|
|
529
530
|
"FROM "\
|
|
530
531
|
"\"public\".\"zuora_connect_app_instances\" "\
|
|
531
532
|
"WHERE "\
|
|
532
|
-
"\"id\" = %s" % [entity_reference, object_hierarchy['productId'], object_id.blank? ?
|
|
533
|
+
"\"id\" = %s" % [entity_reference, object_hierarchy['productId'], object_id.blank? ? BLANK_OBJECT_ID_LOOKUP : object_id, self.id]
|
|
533
534
|
elsif object_id.class == Array
|
|
534
535
|
string =
|
|
535
536
|
"SELECT "\
|
|
@@ -564,7 +565,7 @@ module ZuoraConnect
|
|
|
564
565
|
"FROM "\
|
|
565
566
|
"\"public\".\"zuora_connect_app_instances\" "\
|
|
566
567
|
"WHERE "\
|
|
567
|
-
"\"id\" = %s" % [entity_reference, object_hierarchy['productId'], object_hierarchy['productRatePlanId'], object_id.blank? ?
|
|
568
|
+
"\"id\" = %s" % [entity_reference, object_hierarchy['productId'], object_hierarchy['productRatePlanId'], object_id.blank? ? BLANK_OBJECT_ID_LOOKUP : object_id , self.id]
|
|
568
569
|
|
|
569
570
|
elsif object_id.class == Array
|
|
570
571
|
string =
|