gotransverse-tract-api 0.17.2 → 0.18.0
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2413855c00e08135d0eacd4efaa66c5c0c3e7a6
|
|
4
|
+
data.tar.gz: 88819a731ce17d5bd17f797bf94022e128caf118
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 846e2b2bbfdb74db2a21e6cd18a9ef4a359c60922cc68e34dd92089c72705b08ca581679191af322ea3c2d93e94ce05c8a302ed66d73508904e70f190a713227
|
|
7
|
+
data.tar.gz: 422e723acc538b89bee81f69ccc6e22dad91ab2465a0fcb946552fb1b7f69cb24611b1e78d838bd2de88613cc377d9f151fa7003b6b23f9b1c5fe866594141c3
|
|
@@ -29,9 +29,10 @@ module GoTransverseTractApi
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
if
|
|
32
|
+
if billing_account
|
|
33
33
|
data[:payment][:creditCardPayment][:description] = invoice[:payment][:credit_card_payment][:description]
|
|
34
34
|
end
|
|
35
|
+
|
|
35
36
|
GoTransverseTractApi.generateXML(data, 'applyPayment')
|
|
36
37
|
end
|
|
37
38
|
|
|
@@ -249,7 +250,7 @@ module GoTransverseTractApi
|
|
|
249
250
|
end
|
|
250
251
|
|
|
251
252
|
def get_query_params(params, options={})
|
|
252
|
-
if
|
|
253
|
+
if options.present? && options.is_a?(Hash)
|
|
253
254
|
params.merge!(options)
|
|
254
255
|
end
|
|
255
256
|
|
|
@@ -394,25 +394,25 @@ module GoTransverseTractApi
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
if
|
|
397
|
+
if billing_account.has_key?(:daily_bill_cycle)
|
|
398
398
|
bill_cycle = {
|
|
399
399
|
dailyBillCycle: {
|
|
400
400
|
eid: billing_account[:daily_bill_cycle][:eid]
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
elsif
|
|
403
|
+
elsif billing_account.has_key?(:monthly_bill_cycle)
|
|
404
404
|
bill_cycle = {
|
|
405
405
|
monthlyBillCycle: {
|
|
406
406
|
eid: billing_account[:monthly_bill_cycle][:eid]
|
|
407
407
|
}
|
|
408
408
|
}
|
|
409
|
-
elsif
|
|
409
|
+
elsif billing_account.has_key?(:quarterly_bill_cycle)
|
|
410
410
|
bill_cycle = {
|
|
411
411
|
quarterlyBillCycle: {
|
|
412
412
|
eid: billing_account[:quarterly_bill_cycle][:eid]
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
|
-
elsif
|
|
415
|
+
elsif billing_account.has_key?(:yearly_bill_cycle)
|
|
416
416
|
bill_cycle = {
|
|
417
417
|
yearlyBillCycle: {
|
|
418
418
|
eid: billing_account[:yearly_bill_cycle][:eid]
|
|
@@ -436,7 +436,7 @@ module GoTransverseTractApi
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
|
|
439
|
-
if
|
|
439
|
+
if billing_account.has_key?(:recurring_payments)
|
|
440
440
|
recurring_payments = {
|
|
441
441
|
recurringPayments: {
|
|
442
442
|
attributes: {},
|
|
@@ -456,7 +456,6 @@ module GoTransverseTractApi
|
|
|
456
456
|
GoTransverseTractApi.post_request_for(self, {}, xml_data, "")
|
|
457
457
|
end
|
|
458
458
|
|
|
459
|
-
|
|
460
459
|
# @param {Long} eid
|
|
461
460
|
# @param {Hash} billing_account
|
|
462
461
|
#
|
|
@@ -291,6 +291,7 @@ module GoTransverseTractApi
|
|
|
291
291
|
onetimeProductPrice: order_item[:onetime_product_price].try(:[],0),
|
|
292
292
|
quantity: order_item[:quantity],
|
|
293
293
|
sequence: order_item[:sequence],
|
|
294
|
+
parentServiceEid: order_item[:parent_service_eid],
|
|
294
295
|
description: order_item[:description],
|
|
295
296
|
eid: order_item[:eid]
|
|
296
297
|
}.delete_if{|k,v| v.nil?},
|
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.18.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-06-
|
|
12
|
+
date: 2016-06-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|