killbill-payment-test 1.3.0 → 1.4.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.
- data/Jarfile +4 -4
- data/VERSION +1 -1
- data/killbill-payment-test.gemspec +1 -1
- data/lib/payment_test/api.rb +5 -0
- data/pom.xml +1 -1
- data/spec/payment_test/base_plugin_spec.rb +4 -1
- metadata +18 -19
data/Jarfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
jar 'com.ning.billing:killbill-api', '0.
|
2
|
-
jar 'com.ning.billing.plugin:killbill-plugin-api-notification', '0.
|
3
|
-
jar 'com.ning.billing.plugin:killbill-plugin-api-payment', '0.
|
4
|
-
jar 'com.ning.billing:killbill-util:tests', '0.3.
|
1
|
+
jar 'com.ning.billing:killbill-api', '0.4.0'
|
2
|
+
jar 'com.ning.billing.plugin:killbill-plugin-api-notification', '0.3.0'
|
3
|
+
jar 'com.ning.billing.plugin:killbill-plugin-api-payment', '0.3.0'
|
4
|
+
jar 'com.ning.billing:killbill-util:tests', '0.3.6'
|
5
5
|
jar 'javax.servlet:javax.servlet-api', '3.0.1'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.4.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', '~> 1.
|
25
|
+
s.add_dependency 'killbill', '~> 1.4.0'
|
26
26
|
|
27
27
|
s.add_development_dependency 'jbundler', '~> 0.4.1'
|
28
28
|
s.add_development_dependency 'rake', '>= 10.0.0'
|
data/lib/payment_test/api.rb
CHANGED
@@ -73,6 +73,7 @@ module PaymentTest
|
|
73
73
|
|
74
74
|
def get_payment_method_detail(kb_account_id, kb_payment_method_id, tenant_context, options = {})
|
75
75
|
res = Killbill::Plugin::Model::PaymentMethodPlugin.new
|
76
|
+
res.kb_payment_method_id="9e3ff858-809d-4d12-a1fa-da789e0841d"
|
76
77
|
res.external_payment_method_id="external_payment_method_id"
|
77
78
|
res.is_default_payment_method=true
|
78
79
|
res.type="Test"
|
@@ -111,6 +112,10 @@ module PaymentTest
|
|
111
112
|
[res]
|
112
113
|
end
|
113
114
|
|
115
|
+
def search_payment_methods(search_key, tenant_context, options = {})
|
116
|
+
[get_payment_method_detail(nil, nil, nil)]
|
117
|
+
end
|
118
|
+
|
114
119
|
def reset_payment_methods(kb_account_id, payment_methods)
|
115
120
|
end
|
116
121
|
|
data/pom.xml
CHANGED
@@ -37,7 +37,7 @@ describe PaymentTest::PaymentPlugin do
|
|
37
37
|
@plugin.stop_plugin
|
38
38
|
end
|
39
39
|
|
40
|
-
it "should
|
40
|
+
it "should test charge" do
|
41
41
|
output = @plugin.process_payment(@kb_account_id, @kb_payment_id, @kb_payment_method_id, @amount_in_cents, @currency, @call_context)
|
42
42
|
|
43
43
|
output.should be_an_instance_of Killbill::Plugin::Model::PaymentInfoPlugin
|
@@ -45,4 +45,7 @@ describe PaymentTest::PaymentPlugin do
|
|
45
45
|
output.status.to_s.should == "PROCESSED"
|
46
46
|
end
|
47
47
|
|
48
|
+
it "should test search" do
|
49
|
+
@plugin.search_payment_methods("blah", @call_context).size.should == 1
|
50
|
+
end
|
48
51
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill-payment-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,21 +9,21 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-07-
|
12
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: killbill
|
16
16
|
version_requirements: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.
|
20
|
+
version: 1.4.0
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.4.0
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :runtime
|
@@ -31,13 +31,13 @@ dependencies:
|
|
31
31
|
name: jbundler
|
32
32
|
version_requirements: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - ~>
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 0.4.1
|
37
37
|
none: false
|
38
38
|
requirement: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
|
-
- -
|
40
|
+
- - ~>
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: 0.4.1
|
43
43
|
none: false
|
@@ -47,13 +47,13 @@ dependencies:
|
|
47
47
|
name: rake
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - '>='
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: 10.0.0
|
53
53
|
none: false
|
54
54
|
requirement: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
|
-
- -
|
56
|
+
- - '>='
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: 10.0.0
|
59
59
|
none: false
|
@@ -63,13 +63,13 @@ dependencies:
|
|
63
63
|
name: rspec
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.12.0
|
69
69
|
none: false
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
|
-
- -
|
72
|
+
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: 2.12.0
|
75
75
|
none: false
|
@@ -81,7 +81,7 @@ executables: []
|
|
81
81
|
extensions: []
|
82
82
|
extra_rdoc_files: []
|
83
83
|
files:
|
84
|
-
-
|
84
|
+
- .gitignore
|
85
85
|
- Gemfile
|
86
86
|
- Jarfile
|
87
87
|
- README.md
|
@@ -100,24 +100,23 @@ licenses:
|
|
100
100
|
- Apache License (2.0)
|
101
101
|
post_install_message:
|
102
102
|
rdoc_options:
|
103
|
-
-
|
104
|
-
-
|
103
|
+
- --exclude
|
104
|
+
- .
|
105
105
|
require_paths:
|
106
106
|
- lib
|
107
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - '>='
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: 1.9.3
|
112
112
|
none: false
|
113
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - '>='
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
segments:
|
118
118
|
- 0
|
119
|
-
version:
|
120
|
-
MA==
|
119
|
+
version: '0'
|
121
120
|
hash: 2
|
122
121
|
none: false
|
123
122
|
requirements: []
|