active_shipping 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -250,7 +250,9 @@ module ActiveMerchant
|
|
250
250
|
package << XmlNode.new('Pounds', 0)
|
251
251
|
package << XmlNode.new('Ounces', [p.ounces,1].max.ceil) #takes an integer for some reason, must be rounded UP
|
252
252
|
package << XmlNode.new('MailType', MAIL_TYPES[p.options[:mail_type]] || 'Package')
|
253
|
-
|
253
|
+
if p.value && (p.value > 0) && (p.currency == 'USD')
|
254
|
+
package << XmlNode.new('ValueOfContents', p.value / 100.0)
|
255
|
+
end
|
254
256
|
package << XmlNode.new('Country') do |node|
|
255
257
|
node.cdata = country
|
256
258
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_shipping
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 41
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 9
|
9
|
-
-
|
10
|
-
version: 0.9.
|
9
|
+
- 9
|
10
|
+
version: 0.9.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- James MacAulay
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-02-
|
21
|
+
date: 2011-02-24 00:00:00 -05:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|