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: 9d38005486a939b5dfb0f6a2855fe4eb5758274b
4
- data.tar.gz: 99b3ae45aedb096239af814e276a8c0fb0c9c989
3
+ metadata.gz: f2413855c00e08135d0eacd4efaa66c5c0c3e7a6
4
+ data.tar.gz: 88819a731ce17d5bd17f797bf94022e128caf118
5
5
  SHA512:
6
- metadata.gz: 119d470f4b5bffdffca9a0c7e1a18c8762b40530ab9e20b03fda93bc64e8cfe8625cd8938cbcecf46cfa715ed0653ba44546d1b9000dccd1a1e54d4217f5a64c
7
- data.tar.gz: b7d8a6f87a6115e1f1cbed70f88658d1b70b680aba049bc8628fa20b5169cf91c04ab7be8b600822119de8d926ae749eaa9854c925a96057a204ed13d019bb3b
6
+ metadata.gz: 846e2b2bbfdb74db2a21e6cd18a9ef4a359c60922cc68e34dd92089c72705b08ca581679191af322ea3c2d93e94ce05c8a302ed66d73508904e70f190a713227
7
+ data.tar.gz: 422e723acc538b89bee81f69ccc6e22dad91ab2465a0fcb946552fb1b7f69cb24611b1e78d838bd2de88613cc377d9f151fa7003b6b23f9b1c5fe866594141c3
@@ -29,9 +29,10 @@ module GoTransverseTractApi
29
29
  }
30
30
  }
31
31
 
32
- if(billing_account)
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(options.present? && options.is_a?(Hash))
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(billing_account.has_key?(:daily_bill_cycle))
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(billing_account.has_key?(:monthly_bill_cycle))
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(billing_account.has_key?(:quarterly_bill_cycle))
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(billing_account.has_key?(:yearly_bill_cycle))
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(billing_account.has_key?(:recurring_payments))
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?},
@@ -1,6 +1,6 @@
1
1
  module GoTransverseTractApi
2
2
 
3
- VERSION = "0.17.2"
3
+ VERSION = "0.18.0"
4
4
  TARGET_API_VERSION = "1.29"
5
5
 
6
6
  end
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.17.2
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-15 00:00:00.000000000 Z
12
+ date: 2016-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler