vaulted_billing-termcap 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
@@ -173,10 +173,10 @@ VaultedBilling::Gateways::Ipcommerce.class_eval do
|
|
173
173
|
def capture_difference(difference)
|
174
174
|
{
|
175
175
|
:"__type" => "BankcardCapture:http://schemas.ipcommerce.com/CWS/v2.0/Transactions/Bankcard",
|
176
|
-
:TransactionId => difference[:id],
|
177
|
-
:
|
178
|
-
:
|
179
|
-
}
|
176
|
+
:TransactionId => difference[:id],
|
177
|
+
:Amount => "%.2f" % difference[:amount],
|
178
|
+
:ShipDate => difference[:ship_date].nil? ? nil : "\/Date(#{difference[:ship_date].try(:to_i)}000)\/"
|
179
|
+
}.select { |k, v| !v.nil? }.merge({ :Addendum => nil })
|
180
180
|
end
|
181
181
|
|
182
182
|
def date_range(key, start_date, end_date)
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: vaulted_billing-termcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Adam Fortuna
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-09-
|
13
|
+
date: 2011-09-14 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 1.1.
|
24
|
+
version: 1.1.6
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|