caboose-cms 0.7.20 → 0.7.21

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: 62dbb5aa1115b04fe3820acb420ba1bf43549113
4
- data.tar.gz: 137ae33f379ec7b6712acc6fd950934fd81570e9
3
+ metadata.gz: 6ef225fd70b95f2debbfbb29bbdb69eaed9e9019
4
+ data.tar.gz: 7bc5bba7f9317cc9a5698aa88408db8174bff2e4
5
5
  SHA512:
6
- metadata.gz: a830e378c48652c6b1c921ee98fc0320dd62d1635e9930b78c68fc643fca5f69bf3afca28a917aabbecc3d65a07fca7a9020a275f768c69b810803102b09f0db
7
- data.tar.gz: 019d52c5eede0fc75037117b585995124c70cd119d5f61ca77f7fc9343ac5db6bc05ab1915558870862c3dd3c51978cd43db7767bdafbd8ca268693e8f9de8c4
6
+ metadata.gz: 40e1510160f257a3b3e04725b9ce859f31f78ef8f012277ae320e0391f8acf3e1880ee3554d24d0fce291bad05715631a127d25db4499cb2407fe8a407818a2e
7
+ data.tar.gz: b4034cba417d1a988834cd741e9cd43d7d234ac7562e6c85731cc3c534946d689468add4c08c78653832a4bea0a4bdffcfc319f4b6f4df16b48663b906371863
@@ -341,7 +341,7 @@ module Caboose
341
341
  order.date_authorized = DateTime.now.utc
342
342
 
343
343
  # Tell taxcloud the order was authorized
344
- #Caboose::TaxCalculator.authorized(order)
344
+ Caboose::TaxCalculator.authorized(order)
345
345
 
346
346
  # Take funds from any gift cards that were used on the order
347
347
  order.take_gift_card_funds
@@ -92,7 +92,7 @@ module Caboose
92
92
  resp = order.capture_funds
93
93
 
94
94
  # Tell taxcloud the order was captured
95
- #Caboose::TaxCalculator.captured(order)
95
+ Caboose::TaxCalculator.captured(order)
96
96
 
97
97
  render :json => resp
98
98
  end
@@ -30,14 +30,14 @@ module Caboose
30
30
 
31
31
  def self.authorized(order)
32
32
  t = self.transaction(order)
33
- return if t.nil?
33
+ return if t.nil? || t.cart_items.nil? || t.cart_items.count == 0
34
34
  t.order_id = order.id
35
35
  t.authorized
36
36
  end
37
37
 
38
38
  def self.captured(order)
39
- t = self.transaction(order)
40
- return if t.nil?
39
+ t = self.transaction(order)
40
+ return if t.nil? || t.cart_items.nil? || t.cart_items.count == 0
41
41
  t.order_id = order.id
42
42
  t.captured
43
43
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.7.20'
2
+ VERSION = '0.7.21'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.20
4
+ version: 0.7.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry