killbill 1.0.19 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Jarfile +4 -2
- data/VERSION +1 -1
- data/killbill.gemspec +4 -3
- data/lib/killbill.rb +7 -51
- data/lib/killbill/creator.rb +10 -18
- data/lib/killbill/gen/account.rb +208 -27
- data/lib/killbill/gen/account_api_exception.rb +66 -0
- data/lib/killbill/gen/account_data.rb +166 -23
- data/lib/killbill/gen/account_email.rb +80 -8
- data/lib/killbill/gen/account_service.rb +55 -0
- data/lib/killbill/gen/account_user_api.rb +187 -0
- data/lib/killbill/gen/audit_user_api.rb +196 -0
- data/lib/killbill/gen/beatrix_service.rb +55 -0
- data/lib/killbill/gen/billing_exception_base.rb +66 -0
- data/lib/killbill/gen/blockable.rb +91 -0
- data/lib/killbill/gen/blocking_api_exception.rb +66 -0
- data/lib/killbill/gen/blocking_state.rb +150 -16
- data/lib/killbill/gen/call_context.rb +107 -13
- data/lib/killbill/gen/catalog.rb +76 -0
- data/lib/killbill/gen/catalog_api_exception.rb +66 -0
- data/lib/killbill/gen/catalog_service.rb +69 -0
- data/lib/killbill/gen/catalog_user_api.rb +54 -0
- data/lib/killbill/gen/column_info.rb +67 -0
- data/lib/killbill/gen/control_tag.rb +112 -0
- data/lib/killbill/gen/currency_value_null.rb +66 -0
- data/lib/killbill/gen/custom_field.rb +93 -10
- data/lib/killbill/gen/custom_field_api_exception.rb +66 -0
- data/lib/killbill/gen/custom_field_user_api.rb +115 -0
- data/lib/killbill/gen/database_export_output_stream.rb +51 -0
- data/lib/killbill/gen/default_mutable_account_data.rb +180 -0
- data/lib/killbill/gen/duration.rb +62 -0
- data/lib/killbill/gen/entitlement_service.rb +55 -0
- data/lib/killbill/gen/entitlement_user_api.rb +272 -0
- data/lib/killbill/gen/entitlement_user_api_exception.rb +66 -0
- data/lib/killbill/gen/entity.rb +84 -0
- data/lib/killbill/gen/entity_persistence_exception.rb +66 -0
- data/lib/killbill/gen/export_user_api.rb +17 -0
- data/lib/killbill/gen/ext_bus_event.rb +68 -9
- data/lib/killbill/gen/external_bus.rb +51 -0
- data/lib/killbill/gen/illegal_plan_change.rb +66 -0
- data/lib/killbill/gen/international_price.rb +79 -0
- data/lib/killbill/gen/invalid_config_exception.rb +49 -0
- data/lib/killbill/gen/invoice.rb +238 -23
- data/lib/killbill/gen/invoice_api_exception.rb +66 -0
- data/lib/killbill/gen/invoice_creation_event.rb +51 -0
- data/lib/killbill/gen/invoice_item.rb +179 -21
- data/lib/killbill/gen/invoice_migration_api.rb +66 -0
- data/lib/killbill/gen/invoice_notifier.rb +51 -0
- data/lib/killbill/gen/invoice_payment.rb +135 -15
- data/lib/killbill/gen/invoice_payment_api.rb +208 -0
- data/lib/killbill/gen/invoice_service.rb +55 -0
- data/lib/killbill/gen/invoice_user_api.rb +461 -0
- data/lib/killbill/gen/junction_api.rb +60 -0
- data/lib/killbill/gen/limit.rb +68 -0
- data/lib/killbill/gen/listing.rb +63 -0
- data/lib/killbill/gen/migration_account_data.rb +228 -0
- data/lib/killbill/gen/migration_plan.rb +143 -0
- data/lib/killbill/gen/mutable_account_data.rb +182 -0
- data/lib/killbill/gen/no_op_payment_plugin_api.rb +254 -0
- data/lib/killbill/gen/payment.rb +183 -20
- data/lib/killbill/gen/payment_api.rb +433 -0
- data/lib/killbill/gen/payment_api_exception.rb +66 -0
- data/lib/killbill/gen/payment_attempt.rb +100 -10
- data/lib/killbill/gen/payment_info_plugin.rb +103 -12
- data/lib/killbill/gen/payment_method.rb +116 -0
- data/lib/killbill/gen/payment_method_info_plugin.rb +64 -7
- data/lib/killbill/gen/payment_method_kv_info.rb +56 -6
- data/lib/killbill/gen/payment_method_plugin.rb +142 -20
- data/lib/killbill/gen/payment_plugin_api.rb +232 -0
- data/lib/killbill/gen/payment_plugin_api_exception.rb +59 -0
- data/lib/killbill/gen/payment_service.rb +62 -0
- data/lib/killbill/gen/plan.rb +143 -0
- data/lib/killbill/gen/plan_change_result.rb +68 -0
- data/lib/killbill/gen/plan_phase.rb +104 -0
- data/lib/killbill/gen/plan_phase_specifier.rb +80 -0
- data/lib/killbill/gen/plan_specifier.rb +73 -0
- data/lib/killbill/gen/price.rb +67 -0
- data/lib/killbill/gen/price_list.rb +74 -0
- data/lib/killbill/gen/price_list_set.rb +56 -0
- data/lib/killbill/gen/product.rb +101 -0
- data/lib/killbill/gen/record_id_api.rb +55 -0
- data/lib/killbill/gen/refund.rb +126 -13
- data/lib/killbill/gen/refund_info_plugin.rb +96 -10
- data/lib/killbill/gen/require_gen.rb +97 -15
- data/lib/killbill/gen/static_catalog.rb +137 -0
- data/lib/killbill/gen/subscription.rb +258 -28
- data/lib/killbill/gen/subscription_bundle.rb +94 -10
- data/lib/killbill/gen/subscription_status_dry_run.rb +89 -0
- data/lib/killbill/gen/subscription_transition.rb +196 -0
- data/lib/killbill/gen/tag.rb +88 -9
- data/lib/killbill/gen/tag_api_exception.rb +66 -0
- data/lib/killbill/gen/tag_definition.rb +110 -10
- data/lib/killbill/gen/tag_definition_api_exception.rb +66 -0
- data/lib/killbill/gen/tag_user_api.rb +239 -0
- data/lib/killbill/gen/tenant.rb +102 -0
- data/lib/killbill/gen/tenant_api_exception.rb +66 -0
- data/lib/killbill/gen/tenant_context.rb +39 -4
- data/lib/killbill/gen/tenant_data.rb +67 -0
- data/lib/killbill/gen/tenant_kv.rb +96 -0
- data/lib/killbill/gen/tenant_service.rb +55 -0
- data/lib/killbill/gen/tenant_user_api.rb +127 -0
- data/lib/killbill/gen/unit.rb +55 -0
- data/lib/killbill/jnotification.rb +1 -1
- data/lib/killbill/jpayment.rb +10 -7
- data/lib/killbill/jplugin.rb +63 -61
- data/lib/killbill/killbill_api.rb +42 -9
- data/spec/killbill/jnotification_spec.rb +15 -1
- data/spec/killbill/jpayment_spec.rb +12 -8
- data/spec/killbill/killbillapi_spec.rb +23 -21
- data/spec/killbill/payment_plugin_spec.rb +1 -9
- data/spec/killbill/payment_test.rb +21 -5
- metadata +96 -22
- data/lib/killbill/gen/audit_log.rb +0 -28
- data/lib/killbill/gen/call_origin.rb +0 -34
- data/lib/killbill/gen/currency.rb +0 -34
- data/lib/killbill/gen/date_time_zone.rb +0 -35
- data/lib/killbill/gen/ext_bus_event_type.rb +0 -34
- data/lib/killbill/gen/invoice_payment_type.rb +0 -34
- data/lib/killbill/gen/object_type.rb +0 -34
- data/lib/killbill/gen/payment_plugin_status.rb +0 -34
- data/lib/killbill/gen/refund_plugin_status.rb +0 -34
- data/lib/killbill/gen/subscription_source_type.rb +0 -34
- data/lib/killbill/gen/subscription_state.rb +0 -34
- data/lib/killbill/gen/user_type.rb +0 -34
- data/lib/killbill/gen/uuid.rb +0 -22
- data/lib/killbill/jconverter.rb +0 -537
- data/lib/killbill/jkillbill_api.rb +0 -137
- data/spec/killbill/jconverter_spec.rb +0 -193
@@ -6,20 +6,34 @@ describe Killbill::Plugin::JNotification do
|
|
6
6
|
|
7
7
|
before(:all) do
|
8
8
|
logger = ::Logger.new(STDOUT)
|
9
|
+
|
10
|
+
puts "************************************************** 1 ************************************"
|
9
11
|
@jnotification = Killbill::Plugin::JNotification.new("Killbill::Plugin::NotificationTest", { "logger" => logger })
|
12
|
+
puts "************************************************** 2 ************************************"
|
13
|
+
|
10
14
|
end
|
11
15
|
|
12
16
|
|
13
17
|
it "should_test_on_event_ok" do
|
14
18
|
|
19
|
+
puts "************************************************** 3 ************************************"
|
20
|
+
|
15
21
|
object_type = Java::com.ning.billing.ObjectType::INVOICE
|
16
|
-
event_type = Java::com.ning.billing.
|
22
|
+
event_type = Java::com.ning.billing.notification.plugin.api.ExtBusEventType::INVOICE_CREATION
|
17
23
|
uuid = java.util.UUID.random_uuid
|
18
24
|
|
25
|
+
puts "************************************************** 4 ************************************"
|
26
|
+
|
19
27
|
event = Java::com.ning.billing.mock.api.MockExtBusEvent.new(event_type, object_type, uuid, uuid, uuid)
|
28
|
+
|
29
|
+
puts "************************************************** 5 ************************************"
|
30
|
+
|
20
31
|
@jnotification.on_event(event)
|
21
32
|
@jnotification.on_event(event)
|
22
33
|
@jnotification.on_event(event)
|
34
|
+
|
35
|
+
puts "************************************************** 6 ************************************"
|
36
|
+
|
23
37
|
@jnotification.delegate_plugin.counter.should == 3
|
24
38
|
end
|
25
39
|
end
|
@@ -22,8 +22,10 @@ describe Killbill::Plugin::JPayment do
|
|
22
22
|
it "should_test_charge_ok" do
|
23
23
|
output = @jpayment.process_payment(@kb_account_id, @kb_payment_id, @kb_payment_method_id, @amount, @currency)
|
24
24
|
output.amount.should be_an_instance_of java.math.BigDecimal
|
25
|
-
output.amount.
|
26
|
-
|
25
|
+
output.amount.compare_to(@amount).should == 0
|
26
|
+
|
27
|
+
puts "#{output.status.class}"
|
28
|
+
output.status.java_kind_of?(Java::com.ning.billing.payment.plugin.api.PaymentPluginStatus).should == true
|
27
29
|
output.status.to_s.should == "PROCESSED"
|
28
30
|
end
|
29
31
|
|
@@ -35,11 +37,12 @@ describe Killbill::Plugin::JPayment do
|
|
35
37
|
it "should_test_get_payment_info_ok" do
|
36
38
|
output = @jpayment.get_payment_info(@kb_account_id, @kb_payment_method_id)
|
37
39
|
output.amount.should be_an_instance_of java.math.BigDecimal
|
38
|
-
output.amount.
|
39
|
-
output.status.
|
40
|
+
output.amount.compare_to(java.math.BigDecimal.new(0)).should == 0
|
41
|
+
output.status.java_kind_of?(Java::com.ning.billing.payment.plugin.api.PaymentPluginStatus).should == true
|
40
42
|
output.status.to_s.should == "PROCESSED"
|
41
43
|
end
|
42
44
|
|
45
|
+
|
43
46
|
it "should_test_get_payment_info_exception" do
|
44
47
|
@jpayment.delegate_plugin.send(:raise_exception_on_next_calls)
|
45
48
|
lambda { @jpayment.get_payment_info(@kb_account_id, @kb_payment_method_id) }.should raise_error Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException
|
@@ -48,11 +51,12 @@ describe Killbill::Plugin::JPayment do
|
|
48
51
|
it "should_test_refund_ok" do
|
49
52
|
output = @jpayment.process_refund(@kb_account_id, @kb_payment_method_id, @amount, @currency)
|
50
53
|
output.amount.should be_an_instance_of java.math.BigDecimal
|
51
|
-
output.amount.
|
52
|
-
output.status.
|
54
|
+
output.amount.compare_to(@amount).should == 0
|
55
|
+
output.status.java_kind_of?(Java::com.ning.billing.payment.plugin.api.RefundPluginStatus).should == true
|
53
56
|
output.status.to_s.should == "PROCESSED"
|
54
57
|
end
|
55
58
|
|
59
|
+
|
56
60
|
it "should_test_refund_exception" do
|
57
61
|
@jpayment.delegate_plugin.send(:raise_exception_on_next_calls)
|
58
62
|
lambda { @jpayment.process_refund(@kb_account_id, @kb_payment_method_id, @amount, @currency) }.should raise_error Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException
|
@@ -78,8 +82,8 @@ describe Killbill::Plugin::JPayment do
|
|
78
82
|
|
79
83
|
it "should_test_get_payment_method_detail_ok" do
|
80
84
|
output = @jpayment.get_payment_method_detail(@kb_account_id, @kb_payment_method_id)
|
81
|
-
output.external_payment_method_id.should be_an_instance_of java.lang.String
|
82
|
-
output.external_payment_method_id.should == "
|
85
|
+
#output.external_payment_method_id.should be_an_instance_of java.lang.String
|
86
|
+
output.external_payment_method_id.should == "external_payment_method_id"
|
83
87
|
end
|
84
88
|
|
85
89
|
it "should_test_get_payment_method_detail_exception" do
|
@@ -1,11 +1,8 @@
|
|
1
1
|
require 'spec_helper'
|
2
|
-
|
3
|
-
require 'killbill/jkillbill_api'
|
2
|
+
require 'date'
|
4
3
|
require 'killbill/killbill_api'
|
5
4
|
|
6
5
|
require 'killbill/gen/account_data'
|
7
|
-
require 'killbill/gen/currency'
|
8
|
-
require 'killbill/gen/date_time_zone'
|
9
6
|
|
10
7
|
|
11
8
|
|
@@ -13,37 +10,42 @@ describe Killbill::Plugin do
|
|
13
10
|
|
14
11
|
before(:each) do
|
15
12
|
@account_user_api_mock = MockAccountUserApi.new
|
16
|
-
@
|
17
|
-
@
|
18
|
-
@account
|
19
|
-
"
|
13
|
+
@kb_apis = Killbill::Plugin::KillbillApi.new("foo", {:account_user_api => @account_user_api_mock})
|
14
|
+
@account = Killbill::Plugin::Model::AccountData.new
|
15
|
+
@account.external_key="external_key"
|
16
|
+
@account.name="name"
|
17
|
+
@account.first_name_length=3
|
18
|
+
@account.email="email"
|
19
|
+
@account.bill_cycle_day_local=1
|
20
|
+
@account.currency=:USD
|
21
|
+
@account.locale="locale"
|
22
|
+
@account.address1="address1"
|
23
|
+
@account.time_zone=:UTC
|
24
|
+
@account.city="San Francisco"
|
25
|
+
|
26
|
+
@context = @kb_apis.create_context
|
20
27
|
end
|
21
28
|
|
22
29
|
it 'should test create/get_account_by_id' do
|
23
30
|
|
24
|
-
|
31
|
+
account_user_api = @kb_apis.account_user_api
|
32
|
+
account_created = account_user_api.create_account(@account, @context)
|
25
33
|
account_created.should be_an_instance_of Killbill::Plugin::Model::Account
|
26
|
-
|
27
|
-
account_fetched = @kb_apis.get_account_by_id(account_created.id)
|
34
|
+
account_fetched = account_user_api.get_account_by_id(account_created.id, @context)
|
28
35
|
account_fetched.should be_an_instance_of Killbill::Plugin::Model::Account
|
29
|
-
account_fetched.id.should be_an_instance_of
|
30
|
-
account_fetched.id.
|
36
|
+
account_fetched.id.should be_an_instance_of String
|
37
|
+
account_fetched.id.should == account_created.id
|
31
38
|
account_fetched.external_key.should == "external_key"
|
32
39
|
account_fetched.name.should == "name"
|
33
40
|
account_fetched.first_name_length.should == 3
|
34
41
|
account_fetched.email.should == "email"
|
35
42
|
account_fetched.bill_cycle_day_local.should == 1
|
36
|
-
account_fetched.currency.should ==
|
43
|
+
account_fetched.currency.should == :USD
|
37
44
|
account_fetched.locale.should == "locale"
|
38
45
|
account_fetched.address1.should == "address1"
|
39
46
|
account_fetched.address2.should == nil
|
40
|
-
account_fetched.time_zone.should
|
41
|
-
account_fetched.
|
42
|
-
account_fetched.city.should == "city"
|
43
|
-
account_fetched.state_or_province.should == "state_or_province"
|
44
|
-
account_fetched.postal_code.should == "postal_code"
|
45
|
-
account_fetched.country.should == "country"
|
46
|
-
account_fetched.phone.should == "phone"
|
47
|
+
#account_fetched.time_zone.should be_an_instance_of TZInfo::Timezone (seemes to return TZInfo::LinkedTimezone instead)
|
48
|
+
account_fetched.time_zone.to_s.should == :UTC.to_s
|
47
49
|
end
|
48
50
|
|
49
51
|
end
|
@@ -9,15 +9,7 @@ describe Killbill::Plugin::Payment do
|
|
9
9
|
@kb_payment_id = SecureRandom.uuid
|
10
10
|
@amount_in_cents = rand(100000)
|
11
11
|
@currency = 'USD'
|
12
|
-
@call_context = Killbill::Plugin::Model::CallContext.new
|
13
|
-
'token',
|
14
|
-
'rspec tester',
|
15
|
-
'TEST',
|
16
|
-
'user',
|
17
|
-
'testing',
|
18
|
-
'this is from a test',
|
19
|
-
Time.now,
|
20
|
-
Time.now)
|
12
|
+
@call_context = Killbill::Plugin::Model::CallContext.new
|
21
13
|
|
22
14
|
@payment_method = Hash.new(:credit_card => SecureRandom.uuid)
|
23
15
|
@kb_payment_method_id = SecureRandom.uuid
|
@@ -12,7 +12,10 @@ module Killbill
|
|
12
12
|
if @raise_exception
|
13
13
|
raise StandardError.new("Test exception")
|
14
14
|
else
|
15
|
-
|
15
|
+
res = Killbill::Plugin::Model::PaymentInfoPlugin.new
|
16
|
+
res.amount=amount_in_cents
|
17
|
+
res.status=:PROCESSED
|
18
|
+
res
|
16
19
|
end
|
17
20
|
end
|
18
21
|
|
@@ -20,7 +23,10 @@ module Killbill
|
|
20
23
|
if @raise_exception
|
21
24
|
raise StandardError.new("Test exception")
|
22
25
|
else
|
23
|
-
|
26
|
+
res = Killbill::Plugin::Model::PaymentInfoPlugin.new
|
27
|
+
res.amount=0
|
28
|
+
res.status=:PROCESSED
|
29
|
+
res
|
24
30
|
end
|
25
31
|
end
|
26
32
|
|
@@ -28,7 +34,10 @@ module Killbill
|
|
28
34
|
if @raise_exception
|
29
35
|
raise StandardError.new("Test exception")
|
30
36
|
else
|
31
|
-
|
37
|
+
res = Killbill::Plugin::Model::RefundInfoPlugin.new
|
38
|
+
res.amount=50
|
39
|
+
res.status=:PROCESSED
|
40
|
+
res
|
32
41
|
end
|
33
42
|
end
|
34
43
|
|
@@ -48,7 +57,9 @@ module Killbill
|
|
48
57
|
if @raise_exception
|
49
58
|
raise StandardError.new("Test exception")
|
50
59
|
else
|
51
|
-
Killbill::Plugin::Model::PaymentMethodPlugin.new
|
60
|
+
res = Killbill::Plugin::Model::PaymentMethodPlugin.new
|
61
|
+
res.external_payment_method_id="external_payment_method_id"
|
62
|
+
res
|
52
63
|
end
|
53
64
|
end
|
54
65
|
|
@@ -62,7 +73,12 @@ module Killbill
|
|
62
73
|
if @raise_exception
|
63
74
|
raise StandardError.new("Test exception")
|
64
75
|
else
|
65
|
-
|
76
|
+
res = Killbill::Plugin::Model::PaymentMethodInfoPlugin.new
|
77
|
+
res.account_id=kb_account_id
|
78
|
+
res.payment_method_id=kb_account_id
|
79
|
+
res.is_default=true
|
80
|
+
res.external_payment_method_id="dfdf"
|
81
|
+
[res]
|
66
82
|
end
|
67
83
|
end
|
68
84
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: killbill
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: jbundler
|
@@ -17,13 +17,13 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.4.
|
20
|
+
version: 0.4.3
|
21
21
|
none: false
|
22
22
|
requirement: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.4.
|
26
|
+
version: 0.4.3
|
27
27
|
none: false
|
28
28
|
prerelease: false
|
29
29
|
type: :development
|
@@ -91,6 +91,22 @@ dependencies:
|
|
91
91
|
none: false
|
92
92
|
prerelease: false
|
93
93
|
type: :development
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: tzinfo
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 0.3.37
|
101
|
+
none: false
|
102
|
+
requirement: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: 0.3.37
|
107
|
+
none: false
|
108
|
+
prerelease: false
|
109
|
+
type: :development
|
94
110
|
description: Base classes to write plugins.
|
95
111
|
email: killbilling-users@googlegroups.com
|
96
112
|
executables: []
|
@@ -109,45 +125,103 @@ files:
|
|
109
125
|
- lib/killbill/creator.rb
|
110
126
|
- lib/killbill/enum.rb
|
111
127
|
- lib/killbill/gen/account.rb
|
128
|
+
- lib/killbill/gen/account_api_exception.rb
|
112
129
|
- lib/killbill/gen/account_data.rb
|
113
130
|
- lib/killbill/gen/account_email.rb
|
114
|
-
- lib/killbill/gen/
|
131
|
+
- lib/killbill/gen/account_service.rb
|
132
|
+
- lib/killbill/gen/account_user_api.rb
|
133
|
+
- lib/killbill/gen/audit_user_api.rb
|
134
|
+
- lib/killbill/gen/beatrix_service.rb
|
135
|
+
- lib/killbill/gen/billing_exception_base.rb
|
136
|
+
- lib/killbill/gen/blockable.rb
|
137
|
+
- lib/killbill/gen/blocking_api_exception.rb
|
115
138
|
- lib/killbill/gen/blocking_state.rb
|
116
139
|
- lib/killbill/gen/call_context.rb
|
117
|
-
- lib/killbill/gen/
|
118
|
-
- lib/killbill/gen/
|
140
|
+
- lib/killbill/gen/catalog.rb
|
141
|
+
- lib/killbill/gen/catalog_api_exception.rb
|
142
|
+
- lib/killbill/gen/catalog_service.rb
|
143
|
+
- lib/killbill/gen/catalog_user_api.rb
|
144
|
+
- lib/killbill/gen/column_info.rb
|
145
|
+
- lib/killbill/gen/control_tag.rb
|
146
|
+
- lib/killbill/gen/currency_value_null.rb
|
119
147
|
- lib/killbill/gen/custom_field.rb
|
120
|
-
- lib/killbill/gen/
|
148
|
+
- lib/killbill/gen/custom_field_api_exception.rb
|
149
|
+
- lib/killbill/gen/custom_field_user_api.rb
|
150
|
+
- lib/killbill/gen/database_export_output_stream.rb
|
151
|
+
- lib/killbill/gen/default_mutable_account_data.rb
|
152
|
+
- lib/killbill/gen/duration.rb
|
153
|
+
- lib/killbill/gen/entitlement_service.rb
|
154
|
+
- lib/killbill/gen/entitlement_user_api.rb
|
155
|
+
- lib/killbill/gen/entitlement_user_api_exception.rb
|
156
|
+
- lib/killbill/gen/entity.rb
|
157
|
+
- lib/killbill/gen/entity_persistence_exception.rb
|
158
|
+
- lib/killbill/gen/export_user_api.rb
|
121
159
|
- lib/killbill/gen/ext_bus_event.rb
|
122
|
-
- lib/killbill/gen/
|
160
|
+
- lib/killbill/gen/external_bus.rb
|
161
|
+
- lib/killbill/gen/illegal_plan_change.rb
|
162
|
+
- lib/killbill/gen/international_price.rb
|
163
|
+
- lib/killbill/gen/invalid_config_exception.rb
|
123
164
|
- lib/killbill/gen/invoice.rb
|
165
|
+
- lib/killbill/gen/invoice_api_exception.rb
|
166
|
+
- lib/killbill/gen/invoice_creation_event.rb
|
124
167
|
- lib/killbill/gen/invoice_item.rb
|
168
|
+
- lib/killbill/gen/invoice_migration_api.rb
|
169
|
+
- lib/killbill/gen/invoice_notifier.rb
|
125
170
|
- lib/killbill/gen/invoice_payment.rb
|
126
|
-
- lib/killbill/gen/
|
127
|
-
- lib/killbill/gen/
|
171
|
+
- lib/killbill/gen/invoice_payment_api.rb
|
172
|
+
- lib/killbill/gen/invoice_service.rb
|
173
|
+
- lib/killbill/gen/invoice_user_api.rb
|
174
|
+
- lib/killbill/gen/junction_api.rb
|
175
|
+
- lib/killbill/gen/limit.rb
|
176
|
+
- lib/killbill/gen/listing.rb
|
177
|
+
- lib/killbill/gen/migration_account_data.rb
|
178
|
+
- lib/killbill/gen/migration_plan.rb
|
179
|
+
- lib/killbill/gen/mutable_account_data.rb
|
180
|
+
- lib/killbill/gen/no_op_payment_plugin_api.rb
|
128
181
|
- lib/killbill/gen/payment.rb
|
182
|
+
- lib/killbill/gen/payment_api.rb
|
183
|
+
- lib/killbill/gen/payment_api_exception.rb
|
129
184
|
- lib/killbill/gen/payment_attempt.rb
|
130
185
|
- lib/killbill/gen/payment_info_plugin.rb
|
186
|
+
- lib/killbill/gen/payment_method.rb
|
131
187
|
- lib/killbill/gen/payment_method_info_plugin.rb
|
132
188
|
- lib/killbill/gen/payment_method_kv_info.rb
|
133
189
|
- lib/killbill/gen/payment_method_plugin.rb
|
134
|
-
- lib/killbill/gen/
|
190
|
+
- lib/killbill/gen/payment_plugin_api.rb
|
191
|
+
- lib/killbill/gen/payment_plugin_api_exception.rb
|
192
|
+
- lib/killbill/gen/payment_service.rb
|
193
|
+
- lib/killbill/gen/plan.rb
|
194
|
+
- lib/killbill/gen/plan_change_result.rb
|
195
|
+
- lib/killbill/gen/plan_phase.rb
|
196
|
+
- lib/killbill/gen/plan_phase_specifier.rb
|
197
|
+
- lib/killbill/gen/plan_specifier.rb
|
198
|
+
- lib/killbill/gen/price.rb
|
199
|
+
- lib/killbill/gen/price_list.rb
|
200
|
+
- lib/killbill/gen/price_list_set.rb
|
201
|
+
- lib/killbill/gen/product.rb
|
202
|
+
- lib/killbill/gen/record_id_api.rb
|
135
203
|
- lib/killbill/gen/refund.rb
|
136
204
|
- lib/killbill/gen/refund_info_plugin.rb
|
137
|
-
- lib/killbill/gen/refund_plugin_status.rb
|
138
205
|
- lib/killbill/gen/require_gen.rb
|
206
|
+
- lib/killbill/gen/static_catalog.rb
|
139
207
|
- lib/killbill/gen/subscription.rb
|
140
208
|
- lib/killbill/gen/subscription_bundle.rb
|
141
|
-
- lib/killbill/gen/
|
142
|
-
- lib/killbill/gen/
|
209
|
+
- lib/killbill/gen/subscription_status_dry_run.rb
|
210
|
+
- lib/killbill/gen/subscription_transition.rb
|
143
211
|
- lib/killbill/gen/tag.rb
|
212
|
+
- lib/killbill/gen/tag_api_exception.rb
|
144
213
|
- lib/killbill/gen/tag_definition.rb
|
214
|
+
- lib/killbill/gen/tag_definition_api_exception.rb
|
215
|
+
- lib/killbill/gen/tag_user_api.rb
|
216
|
+
- lib/killbill/gen/tenant.rb
|
217
|
+
- lib/killbill/gen/tenant_api_exception.rb
|
145
218
|
- lib/killbill/gen/tenant_context.rb
|
146
|
-
- lib/killbill/gen/
|
147
|
-
- lib/killbill/gen/
|
219
|
+
- lib/killbill/gen/tenant_data.rb
|
220
|
+
- lib/killbill/gen/tenant_kv.rb
|
221
|
+
- lib/killbill/gen/tenant_service.rb
|
222
|
+
- lib/killbill/gen/tenant_user_api.rb
|
223
|
+
- lib/killbill/gen/unit.rb
|
148
224
|
- lib/killbill/http_servlet.rb
|
149
|
-
- lib/killbill/jconverter.rb
|
150
|
-
- lib/killbill/jkillbill_api.rb
|
151
225
|
- lib/killbill/jnotification.rb
|
152
226
|
- lib/killbill/jpayment.rb
|
153
227
|
- lib/killbill/jplugin.rb
|
@@ -159,7 +233,6 @@ files:
|
|
159
233
|
- lib/killbill/rake_task.rb
|
160
234
|
- spec/killbill/base_plugin_spec.rb
|
161
235
|
- spec/killbill/config_test.ru
|
162
|
-
- spec/killbill/jconverter_spec.rb
|
163
236
|
- spec/killbill/jnotification_spec.rb
|
164
237
|
- spec/killbill/jpayment_spec.rb
|
165
238
|
- spec/killbill/killbill_integration_spec.rb
|
@@ -196,7 +269,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
196
269
|
MA==
|
197
270
|
hash: 2
|
198
271
|
none: false
|
199
|
-
requirements:
|
272
|
+
requirements:
|
273
|
+
- jar 'com.ning.billing:killbill-api'
|
274
|
+
- jar 'com.ning.billing:killbill-util:tests'
|
200
275
|
rubyforge_project:
|
201
276
|
rubygems_version: 1.8.24
|
202
277
|
signing_key:
|
@@ -205,7 +280,6 @@ summary: Framework to write Kill Bill plugins in Ruby.
|
|
205
280
|
test_files:
|
206
281
|
- spec/killbill/base_plugin_spec.rb
|
207
282
|
- spec/killbill/config_test.ru
|
208
|
-
- spec/killbill/jconverter_spec.rb
|
209
283
|
- spec/killbill/jnotification_spec.rb
|
210
284
|
- spec/killbill/jpayment_spec.rb
|
211
285
|
- spec/killbill/killbill_integration_spec.rb
|
@@ -1,28 +0,0 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Ruby classes automatically generated from java classes-- don't edit
|
4
|
-
#
|
5
|
-
module Killbill
|
6
|
-
module Plugin
|
7
|
-
module Model
|
8
|
-
|
9
|
-
class AuditLog
|
10
|
-
|
11
|
-
include com.ning.billing.util.audit.AuditLog
|
12
|
-
|
13
|
-
attr_reader :id, :created_date, :updated_date, :change_type, :user_name, :reason_code, :user_token, :comment
|
14
|
-
|
15
|
-
def initialize(id, created_date, updated_date, change_type, user_name, reason_code, user_token, comment)
|
16
|
-
@id = id
|
17
|
-
@created_date = created_date
|
18
|
-
@updated_date = updated_date
|
19
|
-
@change_type = change_type
|
20
|
-
@user_name = user_name
|
21
|
-
@reason_code = reason_code
|
22
|
-
@user_token = user_token
|
23
|
-
@comment = comment
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|