gotransverse-tract-api 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 160022314df712d63d2cf599e1436827e076d67f
|
4
|
+
data.tar.gz: b002761e404d142079beb36bb8a8639fa1bbcd53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e7efe5962e32df8d35027be940b16bd17185baccc9a55d68c2ba6822f72271a2c935d3f227324c59ee092cf4c5941920fee21cfb53ed7e9309c50c252b99855
|
7
|
+
data.tar.gz: 67d39a4b2aba6bf4924ad76d8494b3fff7b1da9ee895f42de82a6e3697da04f7a6098419f7b8b32874765e72450ce2509d3f2f42fed28690aa1b4d450011c8e8
|
@@ -387,6 +387,7 @@ module GoTransverseTractApi
|
|
387
387
|
def create_billing_account billing_account
|
388
388
|
bill_cycle = {}
|
389
389
|
recurring_payments = {}
|
390
|
+
custom_field_values = {}
|
390
391
|
|
391
392
|
bill_type = {
|
392
393
|
billingAccount: {
|
@@ -436,7 +437,7 @@ module GoTransverseTractApi
|
|
436
437
|
eid: billing_account[:payment_term][:eid]
|
437
438
|
}
|
438
439
|
}
|
439
|
-
|
440
|
+
|
440
441
|
if billing_account.has_key?(:recurring_payments)
|
441
442
|
recurring_payments = {
|
442
443
|
recurringPayments: {
|
@@ -451,7 +452,11 @@ module GoTransverseTractApi
|
|
451
452
|
}
|
452
453
|
end
|
453
454
|
|
454
|
-
|
455
|
+
if billing_account.has_key?(:custom_field_values)
|
456
|
+
custom_field_values = CustomFieldValue.get_custom_field_values(billing_account[:custom_field_values])
|
457
|
+
end
|
458
|
+
|
459
|
+
data = GoTransverseTractApi::ApiData.new.compact(bill_type.merge bill_cycle.merge data.merge recurring_payments.merge custom_field_values)
|
455
460
|
|
456
461
|
xml_data = GoTransverseTractApi.generateXML(data, 'billingAccount')
|
457
462
|
GoTransverseTractApi.post_request_for(self, {}, xml_data, "")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gotransverse-tract-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien DeFrance
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
259
259
|
version: '0'
|
260
260
|
requirements: []
|
261
261
|
rubyforge_project:
|
262
|
-
rubygems_version: 2.4.
|
262
|
+
rubygems_version: 2.4.8
|
263
263
|
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: A ruby gem allowing developers to conveniently integrate with GoTransverse's
|