killbill 1.0.0 → 1.0.1
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 +3 -2
- data/README.md +21 -0
- data/VERSION +1 -1
- data/killbill.gemspec +4 -2
- data/lib/killbill.rb +3 -4
- data/lib/killbill/http_servlet.rb +99 -0
- data/lib/killbill/jpayment.rb +152 -0
- data/lib/killbill/jresponse/jconverter.rb +100 -0
- data/lib/killbill/jresponse/jpayment_method_response.rb +89 -0
- data/lib/killbill/jresponse/jpayment_method_response_internal.rb +54 -0
- data/lib/killbill/jresponse/jpayment_response.rb +59 -0
- data/lib/killbill/jresponse/jrefund_response.rb +60 -0
- data/lib/killbill/logger.rb +44 -0
- data/lib/killbill/payment.rb +16 -8
- data/lib/killbill/plugin.rb +59 -26
- data/lib/killbill/rake_task.rb +27 -8
- data/lib/killbill/response/payment_method_response.rb +31 -0
- data/lib/killbill/response/payment_method_response_internal.rb +20 -0
- data/lib/killbill/response/payment_response.rb +22 -0
- data/lib/killbill/response/payment_status.rb +10 -0
- data/lib/killbill/response/refund_response.rb +23 -0
- data/spec/killbill/base_plugin_spec.rb +7 -0
- data/spec/killbill/config_test.ru +7 -0
- data/spec/killbill/jpayment_spec.rb +121 -0
- data/spec/killbill/jresponse/jconverter_spec.rb +208 -0
- data/spec/killbill/jresponse/jpayment_method_response_internal_spec.rb +34 -0
- data/spec/killbill/jresponse/jpayment_method_response_spec.rb +53 -0
- data/spec/killbill/jresponse/jpayment_response_spec.rb +41 -0
- data/spec/killbill/jresponse/jrefund_response_spec.rb +41 -0
- data/spec/killbill/killbill_integration_spec.rb +4 -5
- data/spec/killbill/payment_plugin_spec.rb +7 -3
- data/spec/killbill/payment_test.rb +88 -0
- data/spec/killbill/rack_handler_spec.rb +16 -0
- data/spec/spec_helper.rb +5 -0
- metadata +79 -16
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
require 'killbill/response/payment_status'
|
5
|
+
require 'killbill/response/payment_method_response_internal'
|
6
|
+
|
7
|
+
require 'killbill/jresponse/jpayment_method_response_internal'
|
8
|
+
|
9
|
+
|
10
|
+
describe Killbill::Plugin::JPaymentMethodResponseInternal do
|
11
|
+
|
12
|
+
it "should_test_jpayment_method_response_internal" do
|
13
|
+
|
14
|
+
kb_account_id = "935e9aba-0031-4911-a137-aad7dd9a75b9"
|
15
|
+
kb_payment_method_id = "37462cc7-834b-48c6-8fd6-e8e038f4c41d"
|
16
|
+
is_default = true
|
17
|
+
external_payment_method_id = "foo"
|
18
|
+
|
19
|
+
input = Killbill::Plugin::PaymentMethodResponseInternal.new(kb_account_id, kb_payment_method_id, is_default, external_payment_method_id)
|
20
|
+
output = Killbill::Plugin::JPaymentMethodResponseInternal.new(input)
|
21
|
+
|
22
|
+
output.get_account_id.should be_an_instance_of java.util.UUID
|
23
|
+
output.get_account_id.to_s.should == kb_account_id
|
24
|
+
|
25
|
+
output.get_payment_method_id.should be_an_instance_of java.util.UUID
|
26
|
+
output.get_payment_method_id.to_s.should == kb_payment_method_id
|
27
|
+
|
28
|
+
output.is_default.should be_an_instance_of java.lang.Boolean
|
29
|
+
output.is_default.to_s.should == is_default.to_s
|
30
|
+
|
31
|
+
output.get_external_payment_method_id.should be_an_instance_of java.lang.String
|
32
|
+
output.get_external_payment_method_id.should == external_payment_method_id
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
require 'killbill/response/payment_status'
|
5
|
+
require 'killbill/response/payment_method_response'
|
6
|
+
|
7
|
+
require 'killbill/jresponse/jpayment_method_response'
|
8
|
+
|
9
|
+
|
10
|
+
describe Killbill::Plugin::JPaymentMethodResponse do
|
11
|
+
|
12
|
+
it "should_test_jpayment_method_response" do
|
13
|
+
|
14
|
+
prop1 = Killbill::Plugin::PaymentMethodProperty.new('key1', 'value1', true)
|
15
|
+
prop2 = Killbill::Plugin::PaymentMethodProperty.new('key2', 'value2', false)
|
16
|
+
props = []
|
17
|
+
props << prop1
|
18
|
+
props << prop2
|
19
|
+
|
20
|
+
external_payment_method_id = "935e9aba-0031-4911-a137-aad7dd9a75b9"
|
21
|
+
is_default = true
|
22
|
+
input = Killbill::Plugin::PaymentMethodResponse.new(external_payment_method_id, is_default, props)
|
23
|
+
output = Killbill::Plugin::JPaymentMethodResponse.new(input)
|
24
|
+
|
25
|
+
output.get_external_payment_method_id.should be_an_instance_of java.lang.String
|
26
|
+
output.get_external_payment_method_id.to_s.should == external_payment_method_id
|
27
|
+
|
28
|
+
output.is_default_payment_method.should be_an_instance_of java.lang.Boolean
|
29
|
+
output.is_default_payment_method.to_s.should == is_default.to_s
|
30
|
+
|
31
|
+
output.get_properties.should be_an_instance_of java.util.ArrayList
|
32
|
+
|
33
|
+
|
34
|
+
output.get_properties.each_with_index do |p, i|
|
35
|
+
=begin
|
36
|
+
p.get_key.should be_an_instance_of java.lang.String
|
37
|
+
p.get_value.should be_an_instance_of string # java.lang.Object
|
38
|
+
p.is_updateable be_an_instance_of TrueClass # java.lang.Boolean
|
39
|
+
=end
|
40
|
+
if i == 0
|
41
|
+
p.get_key.should == 'key1'
|
42
|
+
p.get_value.to_s.should == 'value1'
|
43
|
+
p.is_updatable.to_s.should == 'true'
|
44
|
+
else
|
45
|
+
p.get_key.should == 'key2'
|
46
|
+
p.get_value.to_s.should == 'value2'
|
47
|
+
p.is_updatable.to_s.should == 'false'
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
require 'killbill/response/payment_status'
|
5
|
+
require 'killbill/response/payment_response'
|
6
|
+
|
7
|
+
require 'killbill/jresponse/jpayment_response'
|
8
|
+
|
9
|
+
|
10
|
+
describe Killbill::Plugin::JPaymentResponse do
|
11
|
+
|
12
|
+
it "should_test_jpayment_response" do
|
13
|
+
|
14
|
+
amount = 12352
|
15
|
+
created_date = DateTime.new
|
16
|
+
effective_date = DateTime.new
|
17
|
+
status = Killbill::Plugin::PaymentStatus::SUCCESS
|
18
|
+
gateway_error = "whatever"
|
19
|
+
gateway_error_code = nil
|
20
|
+
|
21
|
+
input = Killbill::Plugin::PaymentResponse.new(amount, created_date, effective_date, status, gateway_error, gateway_error_code)
|
22
|
+
output = Killbill::Plugin::JPaymentResponse.new(input)
|
23
|
+
output.get_amount.should be_an_instance_of java.math.BigDecimal
|
24
|
+
output.get_amount.to_s.should == '123.52';
|
25
|
+
|
26
|
+
output.get_created_date.should be_an_instance_of org.joda.time.DateTime
|
27
|
+
#output.get_created_date.get_millis == created_date.to_s;
|
28
|
+
|
29
|
+
output.get_effective_date.should be_an_instance_of org.joda.time.DateTime
|
30
|
+
#output.get_effective_date.to_s.should == effective_date.to_s;
|
31
|
+
|
32
|
+
output.get_status.should be_an_instance_of Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin::PaymentPluginStatus
|
33
|
+
output.get_status.to_s.should == "PROCESSED"
|
34
|
+
|
35
|
+
output.get_gateway_error.should be_an_instance_of java.lang.String
|
36
|
+
output.get_gateway_error.to_s.should == gateway_error
|
37
|
+
|
38
|
+
output.get_gateway_error_code.should be_nil
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'date'
|
3
|
+
|
4
|
+
require 'killbill/response/payment_status'
|
5
|
+
require 'killbill/response/refund_response'
|
6
|
+
|
7
|
+
require 'killbill/jresponse/jrefund_response'
|
8
|
+
|
9
|
+
|
10
|
+
describe Killbill::Plugin::JRefundResponse do
|
11
|
+
|
12
|
+
it "should_test_jrefund_response" do
|
13
|
+
|
14
|
+
amount = 12352
|
15
|
+
created_date = DateTime.new
|
16
|
+
effective_date = DateTime.new
|
17
|
+
status = Killbill::Plugin::PaymentStatus::SUCCESS
|
18
|
+
gateway_error = "whatever"
|
19
|
+
gateway_error_code = nil
|
20
|
+
|
21
|
+
input = Killbill::Plugin::RefundResponse.new(amount, created_date, effective_date, status, gateway_error, gateway_error_code)
|
22
|
+
output = Killbill::Plugin::JRefundResponse.new(input)
|
23
|
+
output.get_amount.should be_an_instance_of java.math.BigDecimal
|
24
|
+
output.get_amount.to_s.should == '123.52';
|
25
|
+
|
26
|
+
output.get_created_date.should be_an_instance_of org.joda.time.DateTime
|
27
|
+
#output.get_created_date.get_millis == created_date.to_s;
|
28
|
+
|
29
|
+
output.get_effective_date.should be_an_instance_of org.joda.time.DateTime
|
30
|
+
#output.get_effective_date.to_s.should == effective_date.to_s;
|
31
|
+
|
32
|
+
output.get_status.should be_an_instance_of Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin::PaymentPluginStatus
|
33
|
+
output.get_status.to_s.should == "PROCESSED"
|
34
|
+
|
35
|
+
output.get_gateway_error.should be_an_instance_of java.lang.String
|
36
|
+
output.get_gateway_error.to_s.should == gateway_error
|
37
|
+
|
38
|
+
output.get_gateway_error_code.should be_nil
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
@@ -1,9 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
java_import
|
4
|
-
java_import
|
5
|
-
java_import
|
6
|
-
java_import 'com.ning.billing.mock.api.MockBillCycleDay'
|
3
|
+
java_import java.util.UUID
|
4
|
+
java_import org.joda.time.DateTimeZone
|
5
|
+
java_import com.ning.billing.catalog.api.Currency
|
7
6
|
|
8
7
|
describe Killbill::Plugin do
|
9
8
|
before(:each) do
|
@@ -17,7 +16,7 @@ describe Killbill::Plugin do
|
|
17
16
|
'name',
|
18
17
|
1,
|
19
18
|
Currency::USD,
|
20
|
-
|
19
|
+
12,
|
21
20
|
UUID.randomUUID,
|
22
21
|
DateTimeZone::UTC,
|
23
22
|
'locale',
|
@@ -12,6 +12,8 @@ describe Killbill::Plugin::Payment do
|
|
12
12
|
@payment_method = Hash.new(:credit_card => SecureRandom.uuid)
|
13
13
|
@external_payment_method_id = SecureRandom.uuid
|
14
14
|
|
15
|
+
@payment_method_props = Hash.new
|
16
|
+
@payment_methods = Hash.new
|
15
17
|
@killbill_account = Hash.new(:name => SecureRandom.uuid)
|
16
18
|
|
17
19
|
@plugin = DummyPaymentPlugin.new
|
@@ -21,10 +23,12 @@ describe Killbill::Plugin::Payment do
|
|
21
23
|
lambda { @plugin.charge(@external_account_key, @killbill_payment_id, @amount_in_cents) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
22
24
|
lambda { @plugin.refund(@external_account_key, @killbill_payment_id, @amount_in_cents) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
23
25
|
lambda { @plugin.get_payment_info(@killbill_payment_id) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
24
|
-
lambda { @plugin.add_payment_method(@external_account_key, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
26
|
+
lambda { @plugin.add_payment_method(@external_account_key, @payment_method, @payment_method_props, true ) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
25
27
|
lambda { @plugin.delete_payment_method(@external_account_key, @external_payment_method_id) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
26
|
-
lambda { @plugin.update_payment_method(@external_account_key, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
27
28
|
lambda { @plugin.set_default_payment_method(@external_account_key, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
28
|
-
|
29
|
+
|
30
|
+
lambda { @plugin.get_payment_method_detail(@external_account_key, @payment_method) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
31
|
+
lambda { @plugin.get_payment_methods(@external_account_key) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
32
|
+
lambda { @plugin.reset_payment_methods(@payment_methods) }.should raise_error Killbill::Plugin::Payment::OperationUnsupportedByGatewayError
|
29
33
|
end
|
30
34
|
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
require 'killbill/payment'
|
2
|
+
|
3
|
+
module Killbill
|
4
|
+
module Plugin
|
5
|
+
class PaymentTest < Payment
|
6
|
+
|
7
|
+
def initialize(*args)
|
8
|
+
@raise_exception = false
|
9
|
+
end
|
10
|
+
|
11
|
+
def get_name
|
12
|
+
end
|
13
|
+
|
14
|
+
def charge(kb_payment_id, kb_payment_method_id, amount_in_cents, options = {})
|
15
|
+
if @raise_exception
|
16
|
+
raise StandardError.new("Test exception")
|
17
|
+
else
|
18
|
+
PaymentResponse.new(amount_in_cents, DateTime.now, DateTime.now, PaymentStatus::SUCCESS, "gateway_error", "gateway_error_code")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_payment_info(kb_payment_id, options = {})
|
23
|
+
if @raise_exception
|
24
|
+
raise StandardError.new("Test exception")
|
25
|
+
else
|
26
|
+
PaymentResponse.new(0, DateTime.now, DateTime.now, PaymentStatus::SUCCESS, "gateway_error", "gateway_error_code")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def refund(kb_payment_id, amount_in_cents, options = {})
|
31
|
+
if @raise_exception
|
32
|
+
raise StandardError.new("Test exception")
|
33
|
+
else
|
34
|
+
RefundResponse.new(amount_in_cents, DateTime.now, DateTime.now, PaymentStatus::SUCCESS, "gateway_error", "gateway_error_code")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def add_payment_method(kb_account_id, kb_payment_method_id, payment_method_props, set_default, options = {})
|
39
|
+
if @raise_exception
|
40
|
+
raise StandardError.new("Test exception")
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def delete_payment_method(kb_payment_method_id, options = {})
|
45
|
+
if @raise_exception
|
46
|
+
raise StandardError.new("Test exception")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def get_payment_method_detail(kb_account_id, kb_payment_method_id, options = {})
|
51
|
+
if @raise_exception
|
52
|
+
raise StandardError.new("Test exception")
|
53
|
+
else
|
54
|
+
PaymentMethodResponse.new("foo", true, [])
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
def set_default_payment_method(kb_payment_method_id, options = {})
|
59
|
+
if @raise_exception
|
60
|
+
raise StandardError.new("Test exception")
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def get_payment_methods(kb_account_id, options = {})
|
65
|
+
if @raise_exception
|
66
|
+
raise StandardError.new("Test exception")
|
67
|
+
else
|
68
|
+
[PaymentMethodResponseInternal.new(kb_account_id, kb_account_id, true, "external_payment_method_id")]
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
def reset_payment_methods(payment_methods)
|
73
|
+
if @raise_exception
|
74
|
+
raise StandardError.new("Test exception")
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
def raise_exception_on_next_calls
|
79
|
+
@raise_exception = true
|
80
|
+
end
|
81
|
+
|
82
|
+
def clear_exception_on_next_calls
|
83
|
+
@raise_exception = false
|
84
|
+
end
|
85
|
+
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'logger'
|
3
|
+
|
4
|
+
describe Killbill::Plugin::RackHandler do
|
5
|
+
it 'should be able to register Sinatra apps' do
|
6
|
+
rack = Killbill::Plugin::RackHandler.instance
|
7
|
+
rack.configured?.should be_false
|
8
|
+
|
9
|
+
rack.configure(Logger.new(STDOUT), File.expand_path('../config_test.ru', __FILE__))
|
10
|
+
rack.configured?.should be_true
|
11
|
+
|
12
|
+
status, headers, body = rack.rack_service('/ping')
|
13
|
+
status.should == 200
|
14
|
+
body.join('').should == 'pong'
|
15
|
+
end
|
16
|
+
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -2,42 +2,58 @@
|
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Killbill core team
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jbundler
|
16
16
|
version_requirements: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- - ~>
|
18
|
+
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: 0.4.1
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.4.1
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :development
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rack
|
32
|
+
version_requirements: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 1.5.2
|
37
|
+
none: false
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 1.5.2
|
43
|
+
none: false
|
44
|
+
prerelease: false
|
45
|
+
type: :development
|
30
46
|
- !ruby/object:Gem::Dependency
|
31
47
|
name: rake
|
32
48
|
version_requirements: !ruby/object:Gem::Requirement
|
33
49
|
requirements:
|
34
|
-
- -
|
50
|
+
- - ">="
|
35
51
|
- !ruby/object:Gem::Version
|
36
52
|
version: 0.8.7
|
37
53
|
none: false
|
38
54
|
requirement: !ruby/object:Gem::Requirement
|
39
55
|
requirements:
|
40
|
-
- -
|
56
|
+
- - ">="
|
41
57
|
- !ruby/object:Gem::Version
|
42
58
|
version: 0.8.7
|
43
59
|
none: false
|
@@ -47,26 +63,42 @@ dependencies:
|
|
47
63
|
name: rspec
|
48
64
|
version_requirements: !ruby/object:Gem::Requirement
|
49
65
|
requirements:
|
50
|
-
- - ~>
|
66
|
+
- - "~>"
|
51
67
|
- !ruby/object:Gem::Version
|
52
68
|
version: 2.12.0
|
53
69
|
none: false
|
54
70
|
requirement: !ruby/object:Gem::Requirement
|
55
71
|
requirements:
|
56
|
-
- - ~>
|
72
|
+
- - "~>"
|
57
73
|
- !ruby/object:Gem::Version
|
58
74
|
version: 2.12.0
|
59
75
|
none: false
|
60
76
|
prerelease: false
|
61
77
|
type: :development
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: sinatra
|
80
|
+
version_requirements: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - "~>"
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 1.3.4
|
85
|
+
none: false
|
86
|
+
requirement: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.3.4
|
91
|
+
none: false
|
92
|
+
prerelease: false
|
93
|
+
type: :development
|
62
94
|
description: Base classes to write plugins.
|
63
95
|
email: killbilling-users@googlegroups.com
|
64
96
|
executables: []
|
65
97
|
extensions: []
|
66
98
|
extra_rdoc_files: []
|
67
99
|
files:
|
68
|
-
- .gitignore
|
69
|
-
- .travis.yml
|
100
|
+
- ".gitignore"
|
101
|
+
- ".travis.yml"
|
70
102
|
- Gemfile
|
71
103
|
- Jarfile
|
72
104
|
- README.md
|
@@ -74,33 +106,55 @@ files:
|
|
74
106
|
- VERSION
|
75
107
|
- killbill.gemspec
|
76
108
|
- lib/killbill.rb
|
109
|
+
- lib/killbill/http_servlet.rb
|
110
|
+
- lib/killbill/jpayment.rb
|
111
|
+
- lib/killbill/jresponse/jconverter.rb
|
112
|
+
- lib/killbill/jresponse/jpayment_method_response.rb
|
113
|
+
- lib/killbill/jresponse/jpayment_method_response_internal.rb
|
114
|
+
- lib/killbill/jresponse/jpayment_response.rb
|
115
|
+
- lib/killbill/jresponse/jrefund_response.rb
|
116
|
+
- lib/killbill/logger.rb
|
77
117
|
- lib/killbill/notification.rb
|
78
118
|
- lib/killbill/payment.rb
|
79
119
|
- lib/killbill/plugin.rb
|
80
120
|
- lib/killbill/rake_task.rb
|
121
|
+
- lib/killbill/response/payment_method_response.rb
|
122
|
+
- lib/killbill/response/payment_method_response_internal.rb
|
123
|
+
- lib/killbill/response/payment_response.rb
|
124
|
+
- lib/killbill/response/payment_status.rb
|
125
|
+
- lib/killbill/response/refund_response.rb
|
81
126
|
- spec/killbill/base_plugin_spec.rb
|
127
|
+
- spec/killbill/config_test.ru
|
128
|
+
- spec/killbill/jpayment_spec.rb
|
129
|
+
- spec/killbill/jresponse/jconverter_spec.rb
|
130
|
+
- spec/killbill/jresponse/jpayment_method_response_internal_spec.rb
|
131
|
+
- spec/killbill/jresponse/jpayment_method_response_spec.rb
|
132
|
+
- spec/killbill/jresponse/jpayment_response_spec.rb
|
133
|
+
- spec/killbill/jresponse/jrefund_response_spec.rb
|
82
134
|
- spec/killbill/killbill_integration_spec.rb
|
83
135
|
- spec/killbill/notification_plugin_spec.rb
|
84
136
|
- spec/killbill/payment_plugin_spec.rb
|
137
|
+
- spec/killbill/payment_test.rb
|
138
|
+
- spec/killbill/rack_handler_spec.rb
|
85
139
|
- spec/spec_helper.rb
|
86
140
|
homepage: http://www.killbilling.org
|
87
141
|
licenses:
|
88
142
|
- Apache License (2.0)
|
89
143
|
post_install_message:
|
90
144
|
rdoc_options:
|
91
|
-
- --exclude
|
92
|
-
- .
|
145
|
+
- "--exclude"
|
146
|
+
- "."
|
93
147
|
require_paths:
|
94
148
|
- lib
|
95
149
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
150
|
requirements:
|
97
|
-
- -
|
151
|
+
- - ">="
|
98
152
|
- !ruby/object:Gem::Version
|
99
153
|
version: 1.9.3
|
100
154
|
none: false
|
101
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
156
|
requirements:
|
103
|
-
- -
|
157
|
+
- - ">="
|
104
158
|
- !ruby/object:Gem::Version
|
105
159
|
segments:
|
106
160
|
- 0
|
@@ -109,8 +163,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
163
|
MA==
|
110
164
|
none: false
|
111
165
|
requirements:
|
112
|
-
- jar 'com.ning.billing:killbill-api', '0.1.
|
113
|
-
- jar 'com.ning.billing:killbill-util:tests', '0.1.
|
166
|
+
- jar 'com.ning.billing:killbill-api', '0.1.56-SNAPSHOT'
|
167
|
+
- jar 'com.ning.billing:killbill-util:tests', '0.1.56-SNAPSHOT'
|
114
168
|
rubyforge_project:
|
115
169
|
rubygems_version: 1.8.24
|
116
170
|
signing_key:
|
@@ -118,7 +172,16 @@ specification_version: 3
|
|
118
172
|
summary: Framework to write Killbill plugins in Ruby.
|
119
173
|
test_files:
|
120
174
|
- spec/killbill/base_plugin_spec.rb
|
175
|
+
- spec/killbill/config_test.ru
|
176
|
+
- spec/killbill/jpayment_spec.rb
|
177
|
+
- spec/killbill/jresponse/jconverter_spec.rb
|
178
|
+
- spec/killbill/jresponse/jpayment_method_response_internal_spec.rb
|
179
|
+
- spec/killbill/jresponse/jpayment_method_response_spec.rb
|
180
|
+
- spec/killbill/jresponse/jpayment_response_spec.rb
|
181
|
+
- spec/killbill/jresponse/jrefund_response_spec.rb
|
121
182
|
- spec/killbill/killbill_integration_spec.rb
|
122
183
|
- spec/killbill/notification_plugin_spec.rb
|
123
184
|
- spec/killbill/payment_plugin_spec.rb
|
185
|
+
- spec/killbill/payment_test.rb
|
186
|
+
- spec/killbill/rack_handler_spec.rb
|
124
187
|
- spec/spec_helper.rb
|