zuora_connect 3.0.2.pre.h → 3.0.2.pre.i
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 +4 -0
- data/lib/zuora_connect/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: acded16be82a4aa36090fda0248e1d62b739e6ea1bbe39a7b365c137c07c4481
|
|
4
|
+
data.tar.gz: 263c629b6b718b068f4a6dcc3b9603ab04f0c6895d928a6f1841eae2e5343149
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f06d9884240c45a96f17dc2a3927a8addca134d74d96fcdc38e0905b7d1d53f54e32babc95745fb241a754fbbc56d82e835bc1162f459364917abe8295861b63
|
|
7
|
+
data.tar.gz: 14deefe69fe5b535538f93092606b228397c60ef5ae11417d9c193ec349e50786abd1155673bec58b005cb0fae244f23411850f21cf3b7e5b1f5ef6ecd9f99e8
|
|
@@ -267,6 +267,7 @@ module ZuoraConnect
|
|
|
267
267
|
params = {
|
|
268
268
|
name: self.task_data.dig('name'),
|
|
269
269
|
zuora_entity_ids: (self.task_data.dig(LOGIN_TENANT_DESTINATION,'entities') || []).select {|entity| !entity['skip'].to_bool}.map{|e| e['id']}.uniq,
|
|
270
|
+
zuora_global_entity_id: task_data.dig(LOGIN_TENANT_DESTINATION, 'entities', 0, 'globalEntityId').to_i, # tenant id of the global/parent entity, 0 if nil
|
|
270
271
|
zuora_tenant_ids: tenants.map(&:to_s).uniq,
|
|
271
272
|
organizations: organizations
|
|
272
273
|
}
|
|
@@ -277,6 +278,9 @@ module ZuoraConnect
|
|
|
277
278
|
params.merge!({zuora_domain: client.rest_domain, environment: client.environment })
|
|
278
279
|
end
|
|
279
280
|
end
|
|
281
|
+
|
|
282
|
+
# makes it safe to add elements to params which don't correspond to existing columns in an app's schema
|
|
283
|
+
# rejects those elements which do not correspond to model attributes for your app
|
|
280
284
|
params = params.reject{|k,v| !self.attributes.keys.member?(k.to_s) || self[k] == v}
|
|
281
285
|
self.update_columns(params) if params.present?
|
|
282
286
|
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: 3.0.2.pre.
|
|
4
|
+
version: 3.0.2.pre.i
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Connect Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: apartment
|