killbill-cybersource 3.3.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -0
- data/Gemfile.lock +31 -13
- data/Jarfile +2 -2
- data/Jarfile.lock +63 -58
- data/NEWS +6 -0
- data/README.md +1 -0
- data/VERSION +1 -1
- data/killbill-cybersource.gemspec +2 -2
- data/lib/cybersource/api.rb +0 -2
- data/pom.xml +1 -1
- data/spec/cybersource/base_plugin_spec.rb +1 -1
- metadata +8 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 509812fec3bb76e81447d35a0bd303d388d8be94
|
4
|
+
data.tar.gz: 1bd797fd275d3b170aa230f6e1fbf149ba64ccaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fae2318e660f3ef8506b9720ae07364e4723dd7004c3af992ae2724ae34c9b60b030693303a2017aa371591d2bc07d139ddf24a5b5c3d7a2e58e6e750c7a07dc
|
7
|
+
data.tar.gz: 665b02a16bc66880a73a1b55e20da502e1c423b277d321776c27bb8ff600010d1fc2a161915254fb5d8b5d517a4a922d61c9e4ca1a8c7413872544379e7dd20b
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
killbill-cybersource (
|
4
|
+
killbill-cybersource (4.0.0)
|
5
5
|
actionpack (~> 4.1.0)
|
6
6
|
actionview (~> 4.1.0)
|
7
7
|
activemerchant (~> 1.48.0)
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
activerecord-bogacs (~> 0.3)
|
10
10
|
activerecord-jdbc-adapter (~> 1.3)
|
11
11
|
jruby-openssl (~> 0.9.6)
|
12
|
-
killbill (~>
|
12
|
+
killbill (~> 7.0)
|
13
13
|
monetize (~> 1.1.0)
|
14
14
|
money (~> 6.5.1)
|
15
15
|
offsite_payments (~> 2.1.0)
|
@@ -53,32 +53,46 @@ GEM
|
|
53
53
|
thread_safe (~> 0.1)
|
54
54
|
tzinfo (~> 1.1)
|
55
55
|
arel (5.0.1.20140414130214)
|
56
|
+
axiom-types (0.1.1)
|
57
|
+
descendants_tracker (~> 0.0.4)
|
58
|
+
ice_nine (~> 0.11.0)
|
59
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
56
60
|
builder (3.2.2)
|
61
|
+
coercible (1.0.0)
|
62
|
+
descendants_tracker (~> 0.0.1)
|
63
|
+
descendants_tracker (0.0.4)
|
64
|
+
thread_safe (~> 0.3, >= 0.3.1)
|
57
65
|
diff-lcs (1.1.3)
|
66
|
+
equalizer (0.0.11)
|
58
67
|
erubis (2.7.0)
|
59
68
|
ethon (0.8.0)
|
60
69
|
ffi (>= 1.3.0)
|
61
70
|
ffi (1.9.10-java)
|
62
71
|
i18n (0.7.0)
|
63
|
-
|
64
|
-
|
65
|
-
|
72
|
+
ice_nine (0.11.1)
|
73
|
+
jar-dependencies (0.3.1)
|
74
|
+
jbundler (0.9.2)
|
75
|
+
bundler (~> 1.5)
|
76
|
+
jar-dependencies (~> 0.2)
|
77
|
+
maven-tools (~> 1.0.10)
|
78
|
+
ruby-maven (~> 3.3, >= 3.3.3)
|
66
79
|
jdbc-mariadb (1.2.3)
|
67
80
|
jdbc-sqlite3 (3.8.11.2)
|
68
81
|
jruby-openssl (0.9.12-java)
|
69
82
|
json (1.8.3-java)
|
70
|
-
killbill (
|
83
|
+
killbill (7.0.0)
|
71
84
|
rack (>= 1.5.2)
|
72
85
|
sinatra (~> 1.3.4)
|
73
86
|
typhoeus (~> 0.6.9)
|
74
87
|
tzinfo (~> 1.2.0)
|
75
|
-
maven-tools (0.
|
88
|
+
maven-tools (1.0.13)
|
89
|
+
virtus (~> 1.0)
|
76
90
|
minitest (5.8.3)
|
77
91
|
monetize (1.1.0)
|
78
92
|
money (~> 6.5.0)
|
79
93
|
money (6.5.1)
|
80
94
|
i18n (>= 0.6.4, <= 0.7.0)
|
81
|
-
nokogiri (1.6.7-java)
|
95
|
+
nokogiri (1.6.7.1-java)
|
82
96
|
offsite_payments (2.1.0)
|
83
97
|
actionpack (>= 3.2.20, < 5.0.0)
|
84
98
|
active_utils (~> 3.0.0)
|
@@ -101,26 +115,30 @@ GEM
|
|
101
115
|
rspec-expectations (2.12.1)
|
102
116
|
diff-lcs (~> 1.1.3)
|
103
117
|
rspec-mocks (2.12.2)
|
104
|
-
ruby-maven (3.
|
105
|
-
maven-
|
106
|
-
|
118
|
+
ruby-maven (3.3.8)
|
119
|
+
ruby-maven-libs (~> 3.3.1)
|
120
|
+
ruby-maven-libs (3.3.3)
|
107
121
|
sinatra (1.3.6)
|
108
122
|
rack (~> 1.4)
|
109
123
|
rack-protection (~> 1.3)
|
110
124
|
tilt (~> 1.3, >= 1.3.3)
|
111
|
-
thor (0.19.1)
|
112
125
|
thread_safe (0.3.5-java)
|
113
126
|
tilt (1.4.1)
|
114
127
|
typhoeus (0.6.9)
|
115
128
|
ethon (>= 0.7.1)
|
116
129
|
tzinfo (1.2.2)
|
117
130
|
thread_safe (~> 0.1)
|
131
|
+
virtus (1.0.5)
|
132
|
+
axiom-types (~> 0.1)
|
133
|
+
coercible (~> 1.0)
|
134
|
+
descendants_tracker (~> 0.0, >= 0.0.3)
|
135
|
+
equalizer (~> 0.0, >= 0.0.9)
|
118
136
|
|
119
137
|
PLATFORMS
|
120
138
|
java
|
121
139
|
|
122
140
|
DEPENDENCIES
|
123
|
-
jbundler (~> 0.
|
141
|
+
jbundler (~> 0.9.2)
|
124
142
|
jdbc-mariadb (~> 1.1)
|
125
143
|
jdbc-sqlite3 (~> 3.7)
|
126
144
|
killbill-cybersource!
|
data/Jarfile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
jar 'org.kill-bill.billing:killbill-api', '0.
|
1
|
+
jar 'org.kill-bill.billing:killbill-api', '0.32'
|
2
2
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.18'
|
3
3
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.18'
|
4
4
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.18'
|
@@ -6,6 +6,6 @@ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.18'
|
|
6
6
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.18'
|
7
7
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.18'
|
8
8
|
jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.18'
|
9
|
-
jar 'org.kill-bill.billing:killbill-util:tests', '0.15.
|
9
|
+
jar 'org.kill-bill.billing:killbill-util:tests', '0.15.10'
|
10
10
|
jar 'org.mockito:mockito-all', '1.10.19'
|
11
11
|
jar 'javax.servlet:javax.servlet-api', '3.1.0'
|
data/Jarfile.lock
CHANGED
@@ -1,58 +1,63 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
org.kill-bill.billing.plugin:killbill-plugin-api-
|
5
|
-
|
6
|
-
|
7
|
-
org.
|
8
|
-
org.kill-bill.billing.plugin:killbill-plugin-api-
|
9
|
-
|
10
|
-
org.kill-bill.billing
|
11
|
-
org.kill-bill.
|
12
|
-
|
13
|
-
com.
|
14
|
-
|
15
|
-
|
16
|
-
com.samskivert:jmustache:jar:1.5
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
org.
|
23
|
-
|
24
|
-
|
25
|
-
org.apache.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
com.
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
org.
|
34
|
-
|
35
|
-
org.
|
36
|
-
org.
|
37
|
-
org.kill-bill.billing:killbill-platform-
|
38
|
-
|
39
|
-
org.
|
40
|
-
org.
|
41
|
-
org.
|
42
|
-
org.kill-bill.commons:killbill-
|
43
|
-
org.kill-bill.commons:killbill-
|
44
|
-
org.
|
45
|
-
org.
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
org.kill-bill.commons:killbill-
|
51
|
-
org.
|
52
|
-
org.
|
53
|
-
org.
|
54
|
-
|
55
|
-
org.
|
56
|
-
javax.
|
57
|
-
|
58
|
-
|
1
|
+
---
|
2
|
+
:runtime:
|
3
|
+
- io.dropwizard.metrics:metrics-core:jar:3.1.1
|
4
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.18
|
5
|
+
- com.fasterxml.jackson.core:jackson-core:jar:2.4.3
|
6
|
+
- joda-time:joda-time:jar:2.3
|
7
|
+
- org.weakref:jmxutils:jar:1.18
|
8
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.18
|
9
|
+
- commons-beanutils:commons-beanutils:jar:1.8.3
|
10
|
+
- org.kill-bill.billing:killbill-internal-api:jar:0.15.10
|
11
|
+
- org.kill-bill.commons:killbill-xmlloader:jar:0.11
|
12
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.18
|
13
|
+
- com.google.inject:guice:jar:3.0
|
14
|
+
- org.osgi:org.osgi.core:jar:5.0.0
|
15
|
+
- org.slf4j:slf4j-api:jar:1.7.12
|
16
|
+
- com.samskivert:jmustache:jar:1.5
|
17
|
+
- org.kill-bill.billing:killbill-util:jar:tests:0.15.10
|
18
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.18
|
19
|
+
- org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
|
20
|
+
- com.h2database:h2:jar:1.4.186
|
21
|
+
- javax.activation:activation:jar:1.1
|
22
|
+
- org.skife.config:config-magic:jar:0.14
|
23
|
+
- com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.3
|
24
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.18
|
25
|
+
- org.apache.commons:commons-email:jar:1.2
|
26
|
+
- org.mockito:mockito-all:jar:1.10.19
|
27
|
+
- antlr:antlr:jar:2.7.7
|
28
|
+
- aopalliance:aopalliance:jar:1.0
|
29
|
+
- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
|
30
|
+
- org.antlr:stringtemplate:jar:3.2.1
|
31
|
+
- org.kill-bill.commons:killbill-clock:jar:0.11
|
32
|
+
- javax.mail:mail:jar:1.4.1
|
33
|
+
- org.kill-bill.billing:killbill-platform-base:jar:0.15
|
34
|
+
- io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
|
35
|
+
- org.slf4j:jcl-over-slf4j:jar:1.7.12
|
36
|
+
- org.jdbi:jdbi:jar:2.62
|
37
|
+
- org.kill-bill.billing:killbill-platform-api:jar:0.15
|
38
|
+
- org.kill-bill.billing:killbill-platform-osgi:jar:0.15
|
39
|
+
- org.bouncycastle:bcprov-jdk15on:jar:1.50
|
40
|
+
- org.apache.felix:org.apache.felix.framework:jar:4.4.1
|
41
|
+
- org.joda:joda-money:jar:0.9
|
42
|
+
- org.kill-bill.commons:killbill-jdbi:jar:0.11
|
43
|
+
- org.kill-bill.commons:killbill-embeddeddb-common:jar:0.11
|
44
|
+
- org.apache.shiro:shiro-core:jar:1.2.3
|
45
|
+
- org.bouncycastle:bcpkix-jdk15on:jar:1.50
|
46
|
+
- org.kill-bill.billing:killbill-platform-osgi-api:jar:0.15
|
47
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.18
|
48
|
+
- com.fasterxml.jackson.core:jackson-databind:jar:2.4.3
|
49
|
+
- com.google.guava:guava:jar:r09
|
50
|
+
- org.kill-bill.commons:killbill-locker:jar:0.11
|
51
|
+
- org.osgi:org.osgi.compendium:jar:5.0.0
|
52
|
+
- org.kill-bill.commons:killbill-queue:jar:0.11
|
53
|
+
- org.kill-bill.commons:killbill-concurrent:jar:0.11
|
54
|
+
- javax.servlet:javax.servlet-api:jar:3.1.0
|
55
|
+
- org.apache.shiro:shiro-ehcache:jar:1.2.3
|
56
|
+
- javax.inject:javax.inject:jar:1
|
57
|
+
- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.3
|
58
|
+
- com.google.inject.extensions:guice-multibindings:jar:3.0
|
59
|
+
- net.sf.ehcache:ehcache:jar:2.9.1
|
60
|
+
- org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.18
|
61
|
+
- org.kill-bill.billing:killbill-api:jar:0.32
|
62
|
+
- org.apache.shiro:shiro-guice:jar:1.2.3
|
63
|
+
- com.google.code.findbugs:annotations:jar:3.0.0
|
data/NEWS
CHANGED
data/README.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
4.0.0
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.rdoc_options << '--exclude' << '.'
|
24
24
|
|
25
|
-
s.add_dependency 'killbill', '~>
|
25
|
+
s.add_dependency 'killbill', '~> 7.0'
|
26
26
|
|
27
27
|
s.add_dependency 'sinatra', '~> 1.3.4'
|
28
28
|
s.add_dependency 'thread_safe', '~> 0.3.4'
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.add_dependency 'monetize', '~> 1.1.0'
|
41
41
|
s.add_dependency 'money', '~> 6.5.1'
|
42
42
|
|
43
|
-
s.add_development_dependency 'jbundler', '~> 0.
|
43
|
+
s.add_development_dependency 'jbundler', '~> 0.9.2'
|
44
44
|
s.add_development_dependency 'rake', '>= 10.0.0'
|
45
45
|
s.add_development_dependency 'rspec', '~> 2.12.0'
|
46
46
|
if defined?(JRUBY_VERSION)
|
data/lib/cybersource/api.rb
CHANGED
@@ -239,8 +239,6 @@ module Killbill #:nodoc:
|
|
239
239
|
end
|
240
240
|
|
241
241
|
def should_credit?(kb_payment_id, context, options = {})
|
242
|
-
|
243
|
-
|
244
242
|
# Transform refunds on old payments into credits automatically unless the disable_auto_credit property is passed
|
245
243
|
return false if Killbill::Plugin::ActiveMerchant::Utils.normalized(options, :disable_auto_credit)
|
246
244
|
|
data/pom.xml
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
<groupId>org.kill-bill.billing.plugin.ruby</groupId>
|
26
26
|
<artifactId>cybersource-plugin</artifactId>
|
27
27
|
<packaging>pom</packaging>
|
28
|
-
<version>
|
28
|
+
<version>4.0.0</version>
|
29
29
|
<name>cybersource-plugin</name>
|
30
30
|
<url>http://github.com/killbill/killbill-cybersource-plugin</url>
|
31
31
|
<description>Plugin for accessing Cybersource as a payment gateway</description>
|
@@ -39,7 +39,7 @@ describe Killbill::Cybersource::PaymentPlugin do
|
|
39
39
|
with_transaction(kb_payment_id, :VOID, 60.days.ago, context) { @plugin.should_credit?(kb_payment_id, context).should be_false }
|
40
40
|
with_transaction(SecureRandom.uuid, :AUTHORIZE, 60.days.ago, context) { @plugin.should_credit?(kb_payment_id, context).should be_false }
|
41
41
|
|
42
|
-
with_transaction(kb_payment_id, :AUTHORIZE,
|
42
|
+
with_transaction(kb_payment_id, :AUTHORIZE, 61.days.ago, context) do
|
43
43
|
@plugin.should_credit?(kb_payment_id, context, {:disable_auto_credit => true}).should be_false
|
44
44
|
@plugin.should_credit?(kb_payment_id, context, {:auto_credit_threshold => 61 * 86400}).should be_false
|
45
45
|
@plugin.should_credit?(kb_payment_id, context).should be_true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-cybersource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kill Bill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: killbill
|
@@ -16,12 +16,12 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '7.0'
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version:
|
24
|
+
version: '7.0'
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -198,12 +198,12 @@ dependencies:
|
|
198
198
|
requirements:
|
199
199
|
- - ~>
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version: 0.
|
201
|
+
version: 0.9.2
|
202
202
|
requirement: !ruby/object:Gem::Requirement
|
203
203
|
requirements:
|
204
204
|
- - ~>
|
205
205
|
- !ruby/object:Gem::Version
|
206
|
-
version: 0.
|
206
|
+
version: 0.9.2
|
207
207
|
prerelease: false
|
208
208
|
type: :development
|
209
209
|
- !ruby/object:Gem::Dependency
|
@@ -324,12 +324,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
version: '0'
|
325
325
|
requirements: []
|
326
326
|
rubyforge_project:
|
327
|
-
rubygems_version: 2.
|
327
|
+
rubygems_version: 2.1.9
|
328
328
|
signing_key:
|
329
329
|
specification_version: 4
|
330
330
|
summary: Plugin to use Cybersource as a gateway.
|
331
|
-
test_files:
|
332
|
-
- spec/cybersource/base_plugin_spec.rb
|
333
|
-
- spec/cybersource/cyber_source_on_demand_spec.rb
|
334
|
-
- spec/cybersource/remote/integration_spec.rb
|
335
|
-
- spec/spec_helper.rb
|
331
|
+
test_files: []
|