killbill 2.0.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Jarfile +5 -5
- data/NEWS +3 -0
- data/VERSION +1 -1
- data/gen_config/api.conf +34 -34
- data/gen_config/plugin_api.conf +3 -3
- data/killbill.gemspec +2 -2
- data/lib/killbill.rb +11 -11
- data/lib/killbill/gen/api/account.rb +5 -5
- data/lib/killbill/gen/api/account_api_exception.rb +1 -1
- data/lib/killbill/gen/api/account_audit_logs.rb +32 -32
- data/lib/killbill/gen/api/account_audit_logs_for_object_type.rb +4 -4
- data/lib/killbill/gen/api/account_data.rb +5 -5
- data/lib/killbill/gen/api/account_email.rb +2 -2
- data/lib/killbill/gen/api/account_user_api.rb +36 -36
- data/lib/killbill/gen/api/audit_log.rb +8 -8
- data/lib/killbill/gen/api/audit_user_api.rb +14 -14
- data/lib/killbill/gen/api/billing_exception_base.rb +1 -1
- data/lib/killbill/gen/api/blockable.rb +2 -2
- data/lib/killbill/gen/api/blocking_api_exception.rb +1 -1
- data/lib/killbill/gen/api/blocking_state.rb +5 -5
- data/lib/killbill/gen/api/call_context.rb +8 -8
- data/lib/killbill/gen/api/catalog.rb +9 -9
- data/lib/killbill/gen/api/catalog_api_exception.rb +1 -1
- data/lib/killbill/gen/api/catalog_user_api.rb +5 -5
- data/lib/killbill/gen/api/column_info.rb +2 -2
- data/lib/killbill/gen/api/control_tag.rb +8 -8
- data/lib/killbill/gen/api/currency_conversion.rb +7 -7
- data/lib/killbill/gen/api/currency_conversion_api.rb +14 -14
- data/lib/killbill/gen/api/currency_conversion_exception.rb +1 -1
- data/lib/killbill/gen/api/currency_value_null.rb +1 -1
- data/lib/killbill/gen/api/custom_field.rb +5 -5
- data/lib/killbill/gen/api/custom_field_api_exception.rb +1 -1
- data/lib/killbill/gen/api/custom_field_user_api.rb +27 -27
- data/lib/killbill/gen/api/database_export_output_stream.rb +2 -2
- data/lib/killbill/gen/api/duration.rb +5 -5
- data/lib/killbill/gen/api/entitlement.rb +19 -19
- data/lib/killbill/gen/api/entitlement_ao_status_dry_run.rb +11 -11
- data/lib/killbill/gen/api/entitlement_api.rb +44 -44
- data/lib/killbill/gen/api/entitlement_api_exception.rb +1 -1
- data/lib/killbill/gen/api/entity.rb +2 -2
- data/lib/killbill/gen/api/illegal_plan_change.rb +1 -1
- data/lib/killbill/gen/api/international_price.rb +4 -4
- data/lib/killbill/gen/api/invalid_config_exception.rb +1 -1
- data/lib/killbill/gen/api/invoice.rb +9 -9
- data/lib/killbill/gen/api/invoice_api_exception.rb +1 -1
- data/lib/killbill/gen/api/invoice_creation_event.rb +2 -2
- data/lib/killbill/gen/api/invoice_formatter.rb +12 -12
- data/lib/killbill/gen/api/invoice_item.rb +8 -8
- data/lib/killbill/gen/api/invoice_item_formatter.rb +8 -8
- data/lib/killbill/gen/api/invoice_payment.rb +11 -11
- data/lib/killbill/gen/api/invoice_payment_api.rb +34 -34
- data/lib/killbill/gen/api/invoice_user_api.rb +90 -90
- data/lib/killbill/gen/api/limit.rb +4 -4
- data/lib/killbill/gen/api/listing.rb +6 -6
- data/lib/killbill/gen/api/migration_plan.rb +13 -13
- data/lib/killbill/gen/api/mutable_account_data.rb +5 -5
- data/lib/killbill/gen/api/osgi_killbill.rb +34 -34
- data/lib/killbill/gen/api/osgi_plugin_properties.rb +2 -2
- data/lib/killbill/gen/api/pagination.rb +2 -2
- data/lib/killbill/gen/api/payment.rb +12 -12
- data/lib/killbill/gen/api/payment_api.rb +103 -103
- data/lib/killbill/gen/api/payment_api_exception.rb +1 -1
- data/lib/killbill/gen/api/payment_attempt.rb +5 -5
- data/lib/killbill/gen/api/payment_method.rb +4 -4
- data/lib/killbill/gen/api/payment_method_kv_info.rb +1 -1
- data/lib/killbill/gen/api/payment_method_plugin.rb +4 -4
- data/lib/killbill/gen/api/plan.rb +13 -13
- data/lib/killbill/gen/api/plan_change_result.rb +9 -9
- data/lib/killbill/gen/api/plan_phase.rb +18 -18
- data/lib/killbill/gen/api/plan_phase_specifier.rb +10 -10
- data/lib/killbill/gen/api/plan_specifier.rb +7 -7
- data/lib/killbill/gen/api/plugin_config_service_api.rb +6 -6
- data/lib/killbill/gen/api/price.rb +5 -5
- data/lib/killbill/gen/api/price_list.rb +4 -4
- data/lib/killbill/gen/api/price_list_set.rb +4 -4
- data/lib/killbill/gen/api/product.rb +11 -11
- data/lib/killbill/gen/api/rate.rb +8 -8
- data/lib/killbill/gen/api/record_id_api.rb +6 -6
- data/lib/killbill/gen/api/refund.rb +10 -10
- data/lib/killbill/gen/api/rolled_up_usage.rb +2 -2
- data/lib/killbill/gen/api/security_api_exception.rb +1 -1
- data/lib/killbill/gen/api/static_catalog.rb +15 -15
- data/lib/killbill/gen/api/subscription.rb +19 -19
- data/lib/killbill/gen/api/subscription_api.rb +34 -34
- data/lib/killbill/gen/api/subscription_api_exception.rb +1 -1
- data/lib/killbill/gen/api/subscription_bundle.rb +6 -6
- data/lib/killbill/gen/api/subscription_bundle_timeline.rb +4 -4
- data/lib/killbill/gen/api/subscription_event.rb +27 -27
- data/lib/killbill/gen/api/tag.rb +5 -5
- data/lib/killbill/gen/api/tag_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tag_definition.rb +5 -5
- data/lib/killbill/gen/api/tag_definition_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tag_user_api.rb +54 -54
- data/lib/killbill/gen/api/tenant.rb +2 -2
- data/lib/killbill/gen/api/tenant_api_exception.rb +1 -1
- data/lib/killbill/gen/api/tenant_context.rb +2 -2
- data/lib/killbill/gen/api/tenant_data.rb +2 -2
- data/lib/killbill/gen/api/tenant_kv.rb +2 -2
- data/lib/killbill/gen/api/tenant_user_api.rb +20 -20
- data/lib/killbill/gen/api/unit.rb +2 -2
- data/lib/killbill/gen/api/usage_user_api.rb +7 -7
- data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +19 -19
- data/lib/killbill/gen/plugin-api/ext_bus_event.rb +8 -8
- data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +5 -5
- data/lib/killbill/gen/plugin-api/payment_info_plugin.rb +8 -8
- data/lib/killbill/gen/plugin-api/payment_method_info_plugin.rb +2 -2
- data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +52 -52
- data/lib/killbill/gen/plugin-api/payment_plugin_api_exception.rb +1 -1
- data/lib/killbill/gen/plugin-api/refund_info_plugin.rb +8 -8
- data/lib/killbill/http_servlet.rb +1 -1
- data/lib/killbill/jnotification.rb +3 -3
- data/spec/killbill/killbill_integration_spec.rb +1 -1
- data/spec/killbill/notification_plugin_api_spec.rb +3 -3
- data/spec/killbill/payment_plugin_api_spec.rb +13 -13
- data/spec/spec_helper.rb +1 -1
- metadata +5 -5
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.util.api'
|
31
31
|
class DatabaseExportOutputStream
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.util.api.DatabaseExportOutputStream
|
34
34
|
|
35
35
|
attr_accessor
|
36
36
|
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.catalog.api'
|
31
31
|
class Duration
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.catalog.api.Duration
|
34
34
|
|
35
35
|
attr_accessor :unit, :number
|
36
36
|
|
@@ -38,8 +38,8 @@ module Killbill
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def to_java()
|
41
|
-
# conversion for unit [type =
|
42
|
-
@unit = Java::
|
41
|
+
# conversion for unit [type = org.killbill.billing.catalog.api.TimeUnit]
|
42
|
+
@unit = Java::org.killbill.billing.catalog.api.TimeUnit.value_of("#{@unit.to_s}") unless @unit.nil?
|
43
43
|
|
44
44
|
# conversion for number [type = int]
|
45
45
|
@number = @number
|
@@ -47,7 +47,7 @@ module Killbill
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_ruby(j_obj)
|
50
|
-
# conversion for unit [type =
|
50
|
+
# conversion for unit [type = org.killbill.billing.catalog.api.TimeUnit]
|
51
51
|
@unit = j_obj.unit
|
52
52
|
@unit = @unit.to_s.to_sym unless @unit.nil?
|
53
53
|
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.entitlement.api'
|
31
31
|
class Entitlement
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.Entitlement
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :base_entitlement_id, :bundle_id, :account_id, :external_key, :state, :source_type, :effective_start_date, :effective_end_date, :last_active_product, :last_active_plan, :last_active_phase, :last_active_price_list, :last_active_product_category
|
36
36
|
|
@@ -65,11 +65,11 @@ module Killbill
|
|
65
65
|
# conversion for external_key [type = java.lang.String]
|
66
66
|
@external_key = @external_key.to_s unless @external_key.nil?
|
67
67
|
|
68
|
-
# conversion for state [type =
|
69
|
-
@state = Java::
|
68
|
+
# conversion for state [type = org.killbill.billing.entitlement.api.EntitlementState]
|
69
|
+
@state = Java::org.killbill.billing.entitlement.api.EntitlementState.value_of("#{@state.to_s}") unless @state.nil?
|
70
70
|
|
71
|
-
# conversion for source_type [type =
|
72
|
-
@source_type = Java::
|
71
|
+
# conversion for source_type [type = org.killbill.billing.entitlement.api.EntitlementSourceType]
|
72
|
+
@source_type = Java::org.killbill.billing.entitlement.api.EntitlementSourceType.value_of("#{@source_type.to_s}") unless @source_type.nil?
|
73
73
|
|
74
74
|
# conversion for effective_start_date [type = org.joda.time.LocalDate]
|
75
75
|
if !@effective_start_date.nil?
|
@@ -81,20 +81,20 @@ module Killbill
|
|
81
81
|
@effective_end_date = Java::org.joda.time.LocalDate.parse(@effective_end_date.to_s)
|
82
82
|
end
|
83
83
|
|
84
|
-
# conversion for last_active_product [type =
|
84
|
+
# conversion for last_active_product [type = org.killbill.billing.catalog.api.Product]
|
85
85
|
@last_active_product = @last_active_product.to_java unless @last_active_product.nil?
|
86
86
|
|
87
|
-
# conversion for last_active_plan [type =
|
87
|
+
# conversion for last_active_plan [type = org.killbill.billing.catalog.api.Plan]
|
88
88
|
@last_active_plan = @last_active_plan.to_java unless @last_active_plan.nil?
|
89
89
|
|
90
|
-
# conversion for last_active_phase [type =
|
90
|
+
# conversion for last_active_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
91
91
|
@last_active_phase = @last_active_phase.to_java unless @last_active_phase.nil?
|
92
92
|
|
93
|
-
# conversion for last_active_price_list [type =
|
93
|
+
# conversion for last_active_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
94
94
|
@last_active_price_list = @last_active_price_list.to_java unless @last_active_price_list.nil?
|
95
95
|
|
96
|
-
# conversion for last_active_product_category [type =
|
97
|
-
@last_active_product_category = Java::
|
96
|
+
# conversion for last_active_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
97
|
+
@last_active_product_category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of("#{@last_active_product_category.to_s}") unless @last_active_product_category.nil?
|
98
98
|
self
|
99
99
|
end
|
100
100
|
|
@@ -134,11 +134,11 @@ module Killbill
|
|
134
134
|
# conversion for external_key [type = java.lang.String]
|
135
135
|
@external_key = j_obj.external_key
|
136
136
|
|
137
|
-
# conversion for state [type =
|
137
|
+
# conversion for state [type = org.killbill.billing.entitlement.api.EntitlementState]
|
138
138
|
@state = j_obj.state
|
139
139
|
@state = @state.to_s.to_sym unless @state.nil?
|
140
140
|
|
141
|
-
# conversion for source_type [type =
|
141
|
+
# conversion for source_type [type = org.killbill.billing.entitlement.api.EntitlementSourceType]
|
142
142
|
@source_type = j_obj.source_type
|
143
143
|
@source_type = @source_type.to_s.to_sym unless @source_type.nil?
|
144
144
|
|
@@ -154,23 +154,23 @@ module Killbill
|
|
154
154
|
@effective_end_date = @effective_end_date.to_s
|
155
155
|
end
|
156
156
|
|
157
|
-
# conversion for last_active_product [type =
|
157
|
+
# conversion for last_active_product [type = org.killbill.billing.catalog.api.Product]
|
158
158
|
@last_active_product = j_obj.last_active_product
|
159
159
|
@last_active_product = Killbill::Plugin::Model::Product.new.to_ruby(@last_active_product) unless @last_active_product.nil?
|
160
160
|
|
161
|
-
# conversion for last_active_plan [type =
|
161
|
+
# conversion for last_active_plan [type = org.killbill.billing.catalog.api.Plan]
|
162
162
|
@last_active_plan = j_obj.last_active_plan
|
163
163
|
@last_active_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@last_active_plan) unless @last_active_plan.nil?
|
164
164
|
|
165
|
-
# conversion for last_active_phase [type =
|
165
|
+
# conversion for last_active_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
166
166
|
@last_active_phase = j_obj.last_active_phase
|
167
167
|
@last_active_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@last_active_phase) unless @last_active_phase.nil?
|
168
168
|
|
169
|
-
# conversion for last_active_price_list [type =
|
169
|
+
# conversion for last_active_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
170
170
|
@last_active_price_list = j_obj.last_active_price_list
|
171
171
|
@last_active_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@last_active_price_list) unless @last_active_price_list.nil?
|
172
172
|
|
173
|
-
# conversion for last_active_product_category [type =
|
173
|
+
# conversion for last_active_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
174
174
|
@last_active_product_category = j_obj.last_active_product_category
|
175
175
|
@last_active_product_category = @last_active_product_category.to_s.to_sym unless @last_active_product_category.nil?
|
176
176
|
self
|
@@ -27,10 +27,10 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Model
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.entitlement.api'
|
31
31
|
class EntitlementAOStatusDryRun
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.EntitlementAOStatusDryRun
|
34
34
|
|
35
35
|
attr_accessor :id, :product_name, :billing_period, :price_list, :phase_type, :reason
|
36
36
|
|
@@ -44,17 +44,17 @@ module Killbill
|
|
44
44
|
# conversion for product_name [type = java.lang.String]
|
45
45
|
@product_name = @product_name.to_s unless @product_name.nil?
|
46
46
|
|
47
|
-
# conversion for billing_period [type =
|
48
|
-
@billing_period = Java::
|
47
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
48
|
+
@billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@billing_period.to_s}") unless @billing_period.nil?
|
49
49
|
|
50
50
|
# conversion for price_list [type = java.lang.String]
|
51
51
|
@price_list = @price_list.to_s unless @price_list.nil?
|
52
52
|
|
53
|
-
# conversion for phase_type [type =
|
54
|
-
@phase_type = Java::
|
53
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
54
|
+
@phase_type = Java::org.killbill.billing.catalog.api.PhaseType.value_of("#{@phase_type.to_s}") unless @phase_type.nil?
|
55
55
|
|
56
|
-
# conversion for reason [type =
|
57
|
-
@reason = Java::
|
56
|
+
# conversion for reason [type = org.killbill.billing.entitlement.api.DryRunChangeReason]
|
57
|
+
@reason = Java::org.killbill.billing.entitlement.api.DryRunChangeReason.value_of("#{@reason.to_s}") unless @reason.nil?
|
58
58
|
self
|
59
59
|
end
|
60
60
|
|
@@ -66,18 +66,18 @@ module Killbill
|
|
66
66
|
# conversion for product_name [type = java.lang.String]
|
67
67
|
@product_name = j_obj.product_name
|
68
68
|
|
69
|
-
# conversion for billing_period [type =
|
69
|
+
# conversion for billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
70
70
|
@billing_period = j_obj.billing_period
|
71
71
|
@billing_period = @billing_period.to_s.to_sym unless @billing_period.nil?
|
72
72
|
|
73
73
|
# conversion for price_list [type = java.lang.String]
|
74
74
|
@price_list = j_obj.price_list
|
75
75
|
|
76
|
-
# conversion for phase_type [type =
|
76
|
+
# conversion for phase_type [type = org.killbill.billing.catalog.api.PhaseType]
|
77
77
|
@phase_type = j_obj.phase_type
|
78
78
|
@phase_type = @phase_type.to_s.to_sym unless @phase_type.nil?
|
79
79
|
|
80
|
-
# conversion for reason [type =
|
80
|
+
# conversion for reason [type = org.killbill.billing.entitlement.api.DryRunChangeReason]
|
81
81
|
@reason = j_obj.reason
|
82
82
|
@reason = @reason.to_s.to_sym unless @reason.nil?
|
83
83
|
self
|
@@ -27,23 +27,23 @@ module Killbill
|
|
27
27
|
module Plugin
|
28
28
|
module Api
|
29
29
|
|
30
|
-
java_package '
|
30
|
+
java_package 'org.killbill.billing.entitlement.api'
|
31
31
|
class EntitlementApi
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.EntitlementApi
|
34
34
|
|
35
35
|
def initialize(real_java_api)
|
36
36
|
@real_java_api = real_java_api
|
37
37
|
end
|
38
38
|
|
39
39
|
|
40
|
-
java_signature 'Java::
|
40
|
+
java_signature 'Java::org.killbill.billing.entitlement.api.Entitlement createBaseEntitlement(Java::java.util.UUID, Java::org.killbill.billing.catalog.api.PlanPhaseSpecifier, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
41
41
|
def create_base_entitlement(accountId, spec, externalKey, effectiveDate, context)
|
42
42
|
|
43
43
|
# conversion for accountId [type = java.util.UUID]
|
44
44
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
45
45
|
|
46
|
-
# conversion for spec [type =
|
46
|
+
# conversion for spec [type = org.killbill.billing.catalog.api.PlanPhaseSpecifier]
|
47
47
|
spec = spec.to_java unless spec.nil?
|
48
48
|
|
49
49
|
# conversion for externalKey [type = java.lang.String]
|
@@ -54,25 +54,25 @@ module Killbill
|
|
54
54
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
55
55
|
end
|
56
56
|
|
57
|
-
# conversion for context [type =
|
57
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
58
58
|
context = context.to_java unless context.nil?
|
59
59
|
begin
|
60
60
|
res = @real_java_api.create_base_entitlement(accountId, spec, externalKey, effectiveDate, context)
|
61
|
-
# conversion for res [type =
|
61
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.Entitlement]
|
62
62
|
res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
|
63
63
|
return res
|
64
|
-
rescue Java::
|
64
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
65
65
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
66
66
|
end
|
67
67
|
end
|
68
68
|
|
69
|
-
java_signature 'Java::
|
69
|
+
java_signature 'Java::org.killbill.billing.entitlement.api.Entitlement addEntitlement(Java::java.util.UUID, Java::org.killbill.billing.catalog.api.PlanPhaseSpecifier, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
70
70
|
def add_entitlement(bundleId, spec, effectiveDate, context)
|
71
71
|
|
72
72
|
# conversion for bundleId [type = java.util.UUID]
|
73
73
|
bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
|
74
74
|
|
75
|
-
# conversion for spec [type =
|
75
|
+
# conversion for spec [type = org.killbill.billing.catalog.api.PlanPhaseSpecifier]
|
76
76
|
spec = spec.to_java unless spec.nil?
|
77
77
|
|
78
78
|
# conversion for effectiveDate [type = org.joda.time.LocalDate]
|
@@ -80,19 +80,19 @@ module Killbill
|
|
80
80
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
81
81
|
end
|
82
82
|
|
83
|
-
# conversion for context [type =
|
83
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
84
84
|
context = context.to_java unless context.nil?
|
85
85
|
begin
|
86
86
|
res = @real_java_api.add_entitlement(bundleId, spec, effectiveDate, context)
|
87
|
-
# conversion for res [type =
|
87
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.Entitlement]
|
88
88
|
res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
|
89
89
|
return res
|
90
|
-
rescue Java::
|
90
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
91
91
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
java_signature 'Java::java.util.List getDryRunStatusForChange(Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::
|
95
|
+
java_signature 'Java::java.util.List getDryRunStatusForChange(Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
96
96
|
def get_dry_run_status_for_change(bundleId, targetProductName, effectiveDate, context)
|
97
97
|
|
98
98
|
# conversion for bundleId [type = java.util.UUID]
|
@@ -106,25 +106,25 @@ module Killbill
|
|
106
106
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
107
107
|
end
|
108
108
|
|
109
|
-
# conversion for context [type =
|
109
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
110
110
|
context = context.to_java unless context.nil?
|
111
111
|
begin
|
112
112
|
res = @real_java_api.get_dry_run_status_for_change(bundleId, targetProductName, effectiveDate, context)
|
113
113
|
# conversion for res [type = java.util.List]
|
114
114
|
tmp = []
|
115
115
|
(res || []).each do |m|
|
116
|
-
# conversion for m [type =
|
116
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.EntitlementAOStatusDryRun]
|
117
117
|
m = Killbill::Plugin::Model::EntitlementAOStatusDryRun.new.to_ruby(m) unless m.nil?
|
118
118
|
tmp << m
|
119
119
|
end
|
120
120
|
res = tmp
|
121
121
|
return res
|
122
|
-
rescue Java::
|
122
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
123
123
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
124
124
|
end
|
125
125
|
end
|
126
126
|
|
127
|
-
java_signature 'Java::void pause(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::
|
127
|
+
java_signature 'Java::void pause(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
128
128
|
def pause(bundleId, effectiveDate, context)
|
129
129
|
|
130
130
|
# conversion for bundleId [type = java.util.UUID]
|
@@ -135,12 +135,12 @@ module Killbill
|
|
135
135
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
136
136
|
end
|
137
137
|
|
138
|
-
# conversion for context [type =
|
138
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
139
139
|
context = context.to_java unless context.nil?
|
140
140
|
@real_java_api.pause(bundleId, effectiveDate, context)
|
141
141
|
end
|
142
142
|
|
143
|
-
java_signature 'Java::void resume(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::
|
143
|
+
java_signature 'Java::void resume(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
144
144
|
def resume(bundleId, effectiveDate, context)
|
145
145
|
|
146
146
|
# conversion for bundleId [type = java.util.UUID]
|
@@ -151,54 +151,54 @@ module Killbill
|
|
151
151
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
152
152
|
end
|
153
153
|
|
154
|
-
# conversion for context [type =
|
154
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
155
155
|
context = context.to_java unless context.nil?
|
156
156
|
@real_java_api.resume(bundleId, effectiveDate, context)
|
157
157
|
end
|
158
158
|
|
159
|
-
java_signature 'Java::
|
159
|
+
java_signature 'Java::org.killbill.billing.entitlement.api.Entitlement getEntitlementForId(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
160
160
|
def get_entitlement_for_id(id, context)
|
161
161
|
|
162
162
|
# conversion for id [type = java.util.UUID]
|
163
163
|
id = java.util.UUID.fromString(id.to_s) unless id.nil?
|
164
164
|
|
165
|
-
# conversion for context [type =
|
165
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
166
166
|
context = context.to_java unless context.nil?
|
167
167
|
begin
|
168
168
|
res = @real_java_api.get_entitlement_for_id(id, context)
|
169
|
-
# conversion for res [type =
|
169
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.Entitlement]
|
170
170
|
res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
|
171
171
|
return res
|
172
|
-
rescue Java::
|
172
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
173
173
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
174
174
|
end
|
175
175
|
end
|
176
176
|
|
177
|
-
java_signature 'Java::java.util.List getAllEntitlementsForBundle(Java::java.util.UUID, Java::
|
177
|
+
java_signature 'Java::java.util.List getAllEntitlementsForBundle(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
178
178
|
def get_all_entitlements_for_bundle(bundleId, context)
|
179
179
|
|
180
180
|
# conversion for bundleId [type = java.util.UUID]
|
181
181
|
bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
|
182
182
|
|
183
|
-
# conversion for context [type =
|
183
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
184
184
|
context = context.to_java unless context.nil?
|
185
185
|
begin
|
186
186
|
res = @real_java_api.get_all_entitlements_for_bundle(bundleId, context)
|
187
187
|
# conversion for res [type = java.util.List]
|
188
188
|
tmp = []
|
189
189
|
(res || []).each do |m|
|
190
|
-
# conversion for m [type =
|
190
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.Entitlement]
|
191
191
|
m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
|
192
192
|
tmp << m
|
193
193
|
end
|
194
194
|
res = tmp
|
195
195
|
return res
|
196
|
-
rescue Java::
|
196
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
197
197
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
201
|
-
java_signature 'Java::java.util.List getAllEntitlementsForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::
|
201
|
+
java_signature 'Java::java.util.List getAllEntitlementsForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
202
202
|
def get_all_entitlements_for_account_id_and_external_key(accountId, externalKey, context)
|
203
203
|
|
204
204
|
# conversion for accountId [type = java.util.UUID]
|
@@ -207,49 +207,49 @@ module Killbill
|
|
207
207
|
# conversion for externalKey [type = java.lang.String]
|
208
208
|
externalKey = externalKey.to_s unless externalKey.nil?
|
209
209
|
|
210
|
-
# conversion for context [type =
|
210
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
211
211
|
context = context.to_java unless context.nil?
|
212
212
|
begin
|
213
213
|
res = @real_java_api.get_all_entitlements_for_account_id_and_external_key(accountId, externalKey, context)
|
214
214
|
# conversion for res [type = java.util.List]
|
215
215
|
tmp = []
|
216
216
|
(res || []).each do |m|
|
217
|
-
# conversion for m [type =
|
217
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.Entitlement]
|
218
218
|
m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
|
219
219
|
tmp << m
|
220
220
|
end
|
221
221
|
res = tmp
|
222
222
|
return res
|
223
|
-
rescue Java::
|
223
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
224
224
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
225
225
|
end
|
226
226
|
end
|
227
227
|
|
228
|
-
java_signature 'Java::java.util.List getAllEntitlementsForAccountId(Java::java.util.UUID, Java::
|
228
|
+
java_signature 'Java::java.util.List getAllEntitlementsForAccountId(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
229
229
|
def get_all_entitlements_for_account_id(accountId, context)
|
230
230
|
|
231
231
|
# conversion for accountId [type = java.util.UUID]
|
232
232
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
233
233
|
|
234
|
-
# conversion for context [type =
|
234
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
235
235
|
context = context.to_java unless context.nil?
|
236
236
|
begin
|
237
237
|
res = @real_java_api.get_all_entitlements_for_account_id(accountId, context)
|
238
238
|
# conversion for res [type = java.util.List]
|
239
239
|
tmp = []
|
240
240
|
(res || []).each do |m|
|
241
|
-
# conversion for m [type =
|
241
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.Entitlement]
|
242
242
|
m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
|
243
243
|
tmp << m
|
244
244
|
end
|
245
245
|
res = tmp
|
246
246
|
return res
|
247
|
-
rescue Java::
|
247
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
248
248
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
249
249
|
end
|
250
250
|
end
|
251
251
|
|
252
|
-
java_signature 'Java::java.util.UUID transferEntitlements(Java::java.util.UUID, Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::
|
252
|
+
java_signature 'Java::java.util.UUID transferEntitlements(Java::java.util.UUID, Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
253
253
|
def transfer_entitlements(sourceAccountId, destAccountId, externalKey, effectiveDate, context)
|
254
254
|
|
255
255
|
# conversion for sourceAccountId [type = java.util.UUID]
|
@@ -266,19 +266,19 @@ module Killbill
|
|
266
266
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
267
267
|
end
|
268
268
|
|
269
|
-
# conversion for context [type =
|
269
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
270
270
|
context = context.to_java unless context.nil?
|
271
271
|
begin
|
272
272
|
res = @real_java_api.transfer_entitlements(sourceAccountId, destAccountId, externalKey, effectiveDate, context)
|
273
273
|
# conversion for res [type = java.util.UUID]
|
274
274
|
res = res.nil? ? nil : res.to_s
|
275
275
|
return res
|
276
|
-
rescue Java::
|
276
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
277
277
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
278
278
|
end
|
279
279
|
end
|
280
280
|
|
281
|
-
java_signature 'Java::java.util.UUID transferEntitlementsOverrideBillingPolicy(Java::java.util.UUID, Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::
|
281
|
+
java_signature 'Java::java.util.UUID transferEntitlementsOverrideBillingPolicy(Java::java.util.UUID, Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.BillingActionPolicy, Java::org.killbill.billing.util.callcontext.CallContext)'
|
282
282
|
def transfer_entitlements_override_billing_policy(sourceAccountId, destAccountId, externalKey, effectiveDate, billingPolicy, context)
|
283
283
|
|
284
284
|
# conversion for sourceAccountId [type = java.util.UUID]
|
@@ -295,17 +295,17 @@ module Killbill
|
|
295
295
|
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
296
296
|
end
|
297
297
|
|
298
|
-
# conversion for billingPolicy [type =
|
299
|
-
billingPolicy = Java::
|
298
|
+
# conversion for billingPolicy [type = org.killbill.billing.catalog.api.BillingActionPolicy]
|
299
|
+
billingPolicy = Java::org.killbill.billing.catalog.api.BillingActionPolicy.value_of("#{billingPolicy.to_s}") unless billingPolicy.nil?
|
300
300
|
|
301
|
-
# conversion for context [type =
|
301
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
302
302
|
context = context.to_java unless context.nil?
|
303
303
|
begin
|
304
304
|
res = @real_java_api.transfer_entitlements_override_billing_policy(sourceAccountId, destAccountId, externalKey, effectiveDate, billingPolicy, context)
|
305
305
|
# conversion for res [type = java.util.UUID]
|
306
306
|
res = res.nil? ? nil : res.to_s
|
307
307
|
return res
|
308
|
-
rescue Java::
|
308
|
+
rescue Java::org.killbill.billing.entitlement.api.EntitlementApiException => e
|
309
309
|
raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
|
310
310
|
end
|
311
311
|
end
|