killbill 2.0.1 → 3.0.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.
- 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.catalog.api'
|
|
31
31
|
class PriceList
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.catalog.api.PriceList
|
|
34
34
|
|
|
35
35
|
attr_accessor :name, :is_retired, :plans
|
|
36
36
|
|
|
@@ -44,7 +44,7 @@ module Killbill
|
|
|
44
44
|
# conversion for is_retired [type = boolean]
|
|
45
45
|
@is_retired = @is_retired.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_retired)
|
|
46
46
|
|
|
47
|
-
# conversion for plans [type =
|
|
47
|
+
# conversion for plans [type = org.killbill.billing.catalog.api.Plan]
|
|
48
48
|
@plans = @plans.to_java unless @plans.nil?
|
|
49
49
|
self
|
|
50
50
|
end
|
|
@@ -62,7 +62,7 @@ module Killbill
|
|
|
62
62
|
@is_retired = tmp_bool ? true : false
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
# conversion for plans [type =
|
|
65
|
+
# conversion for plans [type = org.killbill.billing.catalog.api.Plan]
|
|
66
66
|
@plans = j_obj.plans
|
|
67
67
|
@plans = Killbill::Plugin::Model::Plan.new.to_ruby(@plans) unless @plans.nil?
|
|
68
68
|
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.catalog.api'
|
|
31
31
|
class PriceListSet
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.catalog.api.PriceListSet
|
|
34
34
|
|
|
35
35
|
attr_accessor :plan_list_from
|
|
36
36
|
|
|
@@ -38,13 +38,13 @@ module Killbill
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def to_java()
|
|
41
|
-
# conversion for plan_list_from [type =
|
|
41
|
+
# conversion for plan_list_from [type = org.killbill.billing.catalog.api.Plan]
|
|
42
42
|
@plan_list_from = @plan_list_from.to_java unless @plan_list_from.nil?
|
|
43
43
|
self
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def to_ruby(j_obj)
|
|
47
|
-
# conversion for plan_list_from [type =
|
|
47
|
+
# conversion for plan_list_from [type = org.killbill.billing.catalog.api.Plan]
|
|
48
48
|
@plan_list_from = j_obj.plan_list_from
|
|
49
49
|
@plan_list_from = Killbill::Plugin::Model::Plan.new.to_ruby(@plan_list_from) unless @plan_list_from.nil?
|
|
50
50
|
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.catalog.api'
|
|
31
31
|
class Product
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.catalog.api.Product
|
|
34
34
|
|
|
35
35
|
attr_accessor :name, :is_retired, :available, :included, :category, :catalog_name, :limits
|
|
36
36
|
|
|
@@ -44,19 +44,19 @@ module Killbill
|
|
|
44
44
|
# conversion for is_retired [type = boolean]
|
|
45
45
|
@is_retired = @is_retired.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_retired)
|
|
46
46
|
|
|
47
|
-
# conversion for available [type =
|
|
47
|
+
# conversion for available [type = org.killbill.billing.catalog.api.Product]
|
|
48
48
|
@available = @available.to_java unless @available.nil?
|
|
49
49
|
|
|
50
|
-
# conversion for included [type =
|
|
50
|
+
# conversion for included [type = org.killbill.billing.catalog.api.Product]
|
|
51
51
|
@included = @included.to_java unless @included.nil?
|
|
52
52
|
|
|
53
|
-
# conversion for category [type =
|
|
54
|
-
@category = Java::
|
|
53
|
+
# conversion for category [type = org.killbill.billing.catalog.api.ProductCategory]
|
|
54
|
+
@category = Java::org.killbill.billing.catalog.api.ProductCategory.value_of("#{@category.to_s}") unless @category.nil?
|
|
55
55
|
|
|
56
56
|
# conversion for catalog_name [type = java.lang.String]
|
|
57
57
|
@catalog_name = @catalog_name.to_s unless @catalog_name.nil?
|
|
58
58
|
|
|
59
|
-
# conversion for limits [type =
|
|
59
|
+
# conversion for limits [type = org.killbill.billing.catalog.api.Limit]
|
|
60
60
|
@limits = @limits.to_java unless @limits.nil?
|
|
61
61
|
self
|
|
62
62
|
end
|
|
@@ -74,22 +74,22 @@ module Killbill
|
|
|
74
74
|
@is_retired = tmp_bool ? true : false
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
-
# conversion for available [type =
|
|
77
|
+
# conversion for available [type = org.killbill.billing.catalog.api.Product]
|
|
78
78
|
@available = j_obj.available
|
|
79
79
|
@available = Killbill::Plugin::Model::Product.new.to_ruby(@available) unless @available.nil?
|
|
80
80
|
|
|
81
|
-
# conversion for included [type =
|
|
81
|
+
# conversion for included [type = org.killbill.billing.catalog.api.Product]
|
|
82
82
|
@included = j_obj.included
|
|
83
83
|
@included = Killbill::Plugin::Model::Product.new.to_ruby(@included) unless @included.nil?
|
|
84
84
|
|
|
85
|
-
# conversion for category [type =
|
|
85
|
+
# conversion for category [type = org.killbill.billing.catalog.api.ProductCategory]
|
|
86
86
|
@category = j_obj.category
|
|
87
87
|
@category = @category.to_s.to_sym unless @category.nil?
|
|
88
88
|
|
|
89
89
|
# conversion for catalog_name [type = java.lang.String]
|
|
90
90
|
@catalog_name = j_obj.catalog_name
|
|
91
91
|
|
|
92
|
-
# conversion for limits [type =
|
|
92
|
+
# conversion for limits [type = org.killbill.billing.catalog.api.Limit]
|
|
93
93
|
@limits = j_obj.limits
|
|
94
94
|
@limits = Killbill::Plugin::Model::Limit.new.to_ruby(@limits) unless @limits.nil?
|
|
95
95
|
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.currency.api'
|
|
31
31
|
class Rate
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.currency.api.Rate
|
|
34
34
|
|
|
35
35
|
attr_accessor :base_currency, :currency, :value, :conversion_date
|
|
36
36
|
|
|
@@ -38,11 +38,11 @@ module Killbill
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
def to_java()
|
|
41
|
-
# conversion for base_currency [type =
|
|
42
|
-
@base_currency = Java::
|
|
41
|
+
# conversion for base_currency [type = org.killbill.billing.catalog.api.Currency]
|
|
42
|
+
@base_currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{@base_currency.to_s}") unless @base_currency.nil?
|
|
43
43
|
|
|
44
|
-
# conversion for currency [type =
|
|
45
|
-
@currency = Java::
|
|
44
|
+
# conversion for currency [type = org.killbill.billing.catalog.api.Currency]
|
|
45
|
+
@currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
|
|
46
46
|
|
|
47
47
|
# conversion for value [type = java.math.BigDecimal]
|
|
48
48
|
if @value.nil?
|
|
@@ -60,11 +60,11 @@ module Killbill
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
def to_ruby(j_obj)
|
|
63
|
-
# conversion for base_currency [type =
|
|
63
|
+
# conversion for base_currency [type = org.killbill.billing.catalog.api.Currency]
|
|
64
64
|
@base_currency = j_obj.base_currency
|
|
65
65
|
@base_currency = @base_currency.to_s.to_sym unless @base_currency.nil?
|
|
66
66
|
|
|
67
|
-
# conversion for currency [type =
|
|
67
|
+
# conversion for currency [type = org.killbill.billing.catalog.api.Currency]
|
|
68
68
|
@currency = j_obj.currency
|
|
69
69
|
@currency = @currency.to_s.to_sym unless @currency.nil?
|
|
70
70
|
|
|
@@ -27,26 +27,26 @@ module Killbill
|
|
|
27
27
|
module Plugin
|
|
28
28
|
module Api
|
|
29
29
|
|
|
30
|
-
java_package '
|
|
30
|
+
java_package 'org.killbill.billing.util.api'
|
|
31
31
|
class RecordIdApi
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.util.api.RecordIdApi
|
|
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::java.lang.Long getRecordId(Java::java.util.UUID, Java::
|
|
40
|
+
java_signature 'Java::java.lang.Long getRecordId(Java::java.util.UUID, Java::org.killbill.billing.ObjectType, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
|
41
41
|
def get_record_id(objectId, objectType, tenantContext)
|
|
42
42
|
|
|
43
43
|
# conversion for objectId [type = java.util.UUID]
|
|
44
44
|
objectId = java.util.UUID.fromString(objectId.to_s) unless objectId.nil?
|
|
45
45
|
|
|
46
|
-
# conversion for objectType [type =
|
|
47
|
-
objectType = Java::
|
|
46
|
+
# conversion for objectType [type = org.killbill.billing.ObjectType]
|
|
47
|
+
objectType = Java::org.killbill.billing.ObjectType.value_of("#{objectType.to_s}") unless objectType.nil?
|
|
48
48
|
|
|
49
|
-
# conversion for tenantContext [type =
|
|
49
|
+
# conversion for tenantContext [type = org.killbill.billing.util.callcontext.TenantContext]
|
|
50
50
|
tenantContext = tenantContext.to_java unless tenantContext.nil?
|
|
51
51
|
res = @real_java_api.get_record_id(objectId, objectType, tenantContext)
|
|
52
52
|
# conversion for res [type = java.lang.Long]
|
|
@@ -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.payment.api'
|
|
31
31
|
class Refund
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.payment.api.Refund
|
|
34
34
|
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :payment_id, :is_adjusted, :refund_amount, :currency, :effective_date, :refund_status, :refund_info_plugin
|
|
36
36
|
|
|
@@ -66,8 +66,8 @@ module Killbill
|
|
|
66
66
|
@refund_amount = java.math.BigDecimal.new(@refund_amount.to_s)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
# conversion for currency [type =
|
|
70
|
-
@currency = Java::
|
|
69
|
+
# conversion for currency [type = org.killbill.billing.catalog.api.Currency]
|
|
70
|
+
@currency = Java::org.killbill.billing.catalog.api.Currency.value_of("#{@currency.to_s}") unless @currency.nil?
|
|
71
71
|
|
|
72
72
|
# conversion for effective_date [type = org.joda.time.DateTime]
|
|
73
73
|
if !@effective_date.nil?
|
|
@@ -75,10 +75,10 @@ module Killbill
|
|
|
75
75
|
@effective_date = Java::org.joda.time.DateTime.new(@effective_date.to_s, Java::org.joda.time.DateTimeZone::UTC)
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
# conversion for refund_status [type =
|
|
79
|
-
@refund_status = Java::
|
|
78
|
+
# conversion for refund_status [type = org.killbill.billing.payment.api.RefundStatus]
|
|
79
|
+
@refund_status = Java::org.killbill.billing.payment.api.RefundStatus.value_of("#{@refund_status.to_s}") unless @refund_status.nil?
|
|
80
80
|
|
|
81
|
-
# conversion for refund_info_plugin [type =
|
|
81
|
+
# conversion for refund_info_plugin [type = org.killbill.billing.payment.plugin.api.RefundInfoPlugin]
|
|
82
82
|
@refund_info_plugin = @refund_info_plugin.to_java unless @refund_info_plugin.nil?
|
|
83
83
|
self
|
|
84
84
|
end
|
|
@@ -121,7 +121,7 @@ module Killbill
|
|
|
121
121
|
@refund_amount = j_obj.refund_amount
|
|
122
122
|
@refund_amount = @refund_amount.nil? ? 0 : BigDecimal.new(@refund_amount.to_s)
|
|
123
123
|
|
|
124
|
-
# conversion for currency [type =
|
|
124
|
+
# conversion for currency [type = org.killbill.billing.catalog.api.Currency]
|
|
125
125
|
@currency = j_obj.currency
|
|
126
126
|
@currency = @currency.to_s.to_sym unless @currency.nil?
|
|
127
127
|
|
|
@@ -133,11 +133,11 @@ module Killbill
|
|
|
133
133
|
@effective_date = DateTime.iso8601(str)
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
# conversion for refund_status [type =
|
|
136
|
+
# conversion for refund_status [type = org.killbill.billing.payment.api.RefundStatus]
|
|
137
137
|
@refund_status = j_obj.refund_status
|
|
138
138
|
@refund_status = @refund_status.to_s.to_sym unless @refund_status.nil?
|
|
139
139
|
|
|
140
|
-
# conversion for refund_info_plugin [type =
|
|
140
|
+
# conversion for refund_info_plugin [type = org.killbill.billing.payment.plugin.api.RefundInfoPlugin]
|
|
141
141
|
@refund_info_plugin = j_obj.refund_info_plugin
|
|
142
142
|
@refund_info_plugin = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(@refund_info_plugin) unless @refund_info_plugin.nil?
|
|
143
143
|
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.usage.api'
|
|
31
31
|
class RolledUpUsage
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.usage.api.RolledUpUsage
|
|
34
34
|
|
|
35
35
|
attr_accessor :subscription_id, :unit_type, :start_time, :end_time, :amount
|
|
36
36
|
|
|
@@ -44,7 +44,7 @@ module Killbill
|
|
|
44
44
|
|
|
45
45
|
# conversion for code [type = int]
|
|
46
46
|
@code = @code
|
|
47
|
-
Java::
|
|
47
|
+
Java::org.killbill.billing.security.SecurityApiException.new(@message, @cause, @code)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def to_ruby(j_obj)
|
|
@@ -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 StaticCatalog
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.catalog.api.StaticCatalog
|
|
34
34
|
|
|
35
35
|
attr_accessor :catalog_name, :effective_date, :current_supported_currencies, :current_products, :current_units, :current_plans, :available_base_plan_listings, :available_addon_listings
|
|
36
36
|
|
|
@@ -48,22 +48,22 @@ module Killbill
|
|
|
48
48
|
@effective_date = @effective_date.to_date
|
|
49
49
|
end
|
|
50
50
|
|
|
51
|
-
# conversion for current_supported_currencies [type =
|
|
52
|
-
@current_supported_currencies = Java::
|
|
51
|
+
# conversion for current_supported_currencies [type = org.killbill.billing.catalog.api.Currency]
|
|
52
|
+
@current_supported_currencies = Java::org.killbill.billing.catalog.api.Currency.value_of("#{@current_supported_currencies.to_s}") unless @current_supported_currencies.nil?
|
|
53
53
|
|
|
54
|
-
# conversion for current_products [type =
|
|
54
|
+
# conversion for current_products [type = org.killbill.billing.catalog.api.Product]
|
|
55
55
|
@current_products = @current_products.to_java unless @current_products.nil?
|
|
56
56
|
|
|
57
|
-
# conversion for current_units [type =
|
|
57
|
+
# conversion for current_units [type = org.killbill.billing.catalog.api.Unit]
|
|
58
58
|
@current_units = @current_units.to_java unless @current_units.nil?
|
|
59
59
|
|
|
60
|
-
# conversion for current_plans [type =
|
|
60
|
+
# conversion for current_plans [type = org.killbill.billing.catalog.api.Plan]
|
|
61
61
|
@current_plans = @current_plans.to_java unless @current_plans.nil?
|
|
62
62
|
|
|
63
63
|
# conversion for available_base_plan_listings [type = java.util.List]
|
|
64
64
|
tmp = java.util.ArrayList.new
|
|
65
65
|
(@available_base_plan_listings || []).each do |m|
|
|
66
|
-
# conversion for m [type =
|
|
66
|
+
# conversion for m [type = org.killbill.billing.catalog.api.Listing]
|
|
67
67
|
m = m.to_java unless m.nil?
|
|
68
68
|
tmp.add(m)
|
|
69
69
|
end
|
|
@@ -72,7 +72,7 @@ module Killbill
|
|
|
72
72
|
# conversion for available_addon_listings [type = java.util.List]
|
|
73
73
|
tmp = java.util.ArrayList.new
|
|
74
74
|
(@available_addon_listings || []).each do |m|
|
|
75
|
-
# conversion for m [type =
|
|
75
|
+
# conversion for m [type = org.killbill.billing.catalog.api.Listing]
|
|
76
76
|
m = m.to_java unless m.nil?
|
|
77
77
|
tmp.add(m)
|
|
78
78
|
end
|
|
@@ -93,19 +93,19 @@ module Killbill
|
|
|
93
93
|
@effective_date = DateTime.iso8601(str)
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
-
# conversion for current_supported_currencies [type =
|
|
96
|
+
# conversion for current_supported_currencies [type = org.killbill.billing.catalog.api.Currency]
|
|
97
97
|
@current_supported_currencies = j_obj.current_supported_currencies
|
|
98
98
|
@current_supported_currencies = @current_supported_currencies.to_s.to_sym unless @current_supported_currencies.nil?
|
|
99
99
|
|
|
100
|
-
# conversion for current_products [type =
|
|
100
|
+
# conversion for current_products [type = org.killbill.billing.catalog.api.Product]
|
|
101
101
|
@current_products = j_obj.current_products
|
|
102
102
|
@current_products = Killbill::Plugin::Model::Product.new.to_ruby(@current_products) unless @current_products.nil?
|
|
103
103
|
|
|
104
|
-
# conversion for current_units [type =
|
|
104
|
+
# conversion for current_units [type = org.killbill.billing.catalog.api.Unit]
|
|
105
105
|
@current_units = j_obj.current_units
|
|
106
106
|
@current_units = Killbill::Plugin::Model::Unit.new.to_ruby(@current_units) unless @current_units.nil?
|
|
107
107
|
|
|
108
|
-
# conversion for current_plans [type =
|
|
108
|
+
# conversion for current_plans [type = org.killbill.billing.catalog.api.Plan]
|
|
109
109
|
@current_plans = j_obj.current_plans
|
|
110
110
|
@current_plans = Killbill::Plugin::Model::Plan.new.to_ruby(@current_plans) unless @current_plans.nil?
|
|
111
111
|
|
|
@@ -113,7 +113,7 @@ module Killbill
|
|
|
113
113
|
@available_base_plan_listings = j_obj.available_base_plan_listings
|
|
114
114
|
tmp = []
|
|
115
115
|
(@available_base_plan_listings || []).each do |m|
|
|
116
|
-
# conversion for m [type =
|
|
116
|
+
# conversion for m [type = org.killbill.billing.catalog.api.Listing]
|
|
117
117
|
m = Killbill::Plugin::Model::Listing.new.to_ruby(m) unless m.nil?
|
|
118
118
|
tmp << m
|
|
119
119
|
end
|
|
@@ -123,7 +123,7 @@ module Killbill
|
|
|
123
123
|
@available_addon_listings = j_obj.available_addon_listings
|
|
124
124
|
tmp = []
|
|
125
125
|
(@available_addon_listings || []).each do |m|
|
|
126
|
-
# conversion for m [type =
|
|
126
|
+
# conversion for m [type = org.killbill.billing.catalog.api.Listing]
|
|
127
127
|
m = Killbill::Plugin::Model::Listing.new.to_ruby(m) unless m.nil?
|
|
128
128
|
tmp << m
|
|
129
129
|
end
|
|
@@ -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 Subscription
|
|
32
32
|
|
|
33
|
-
include
|
|
33
|
+
include org.killbill.billing.entitlement.api.Subscription
|
|
34
34
|
|
|
35
35
|
attr_accessor :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, :id, :created_date, :updated_date, :billing_start_date, :billing_end_date, :charged_through_date, :current_state_for_service
|
|
36
36
|
|
|
@@ -50,11 +50,11 @@ module Killbill
|
|
|
50
50
|
# conversion for external_key [type = java.lang.String]
|
|
51
51
|
@external_key = @external_key.to_s unless @external_key.nil?
|
|
52
52
|
|
|
53
|
-
# conversion for state [type =
|
|
54
|
-
@state = Java::
|
|
53
|
+
# conversion for state [type = org.killbill.billing.entitlement.api.EntitlementState]
|
|
54
|
+
@state = Java::org.killbill.billing.entitlement.api.EntitlementState.value_of("#{@state.to_s}") unless @state.nil?
|
|
55
55
|
|
|
56
|
-
# conversion for source_type [type =
|
|
57
|
-
@source_type = Java::
|
|
56
|
+
# conversion for source_type [type = org.killbill.billing.entitlement.api.EntitlementSourceType]
|
|
57
|
+
@source_type = Java::org.killbill.billing.entitlement.api.EntitlementSourceType.value_of("#{@source_type.to_s}") unless @source_type.nil?
|
|
58
58
|
|
|
59
59
|
# conversion for effective_start_date [type = org.joda.time.LocalDate]
|
|
60
60
|
if !@effective_start_date.nil?
|
|
@@ -66,20 +66,20 @@ module Killbill
|
|
|
66
66
|
@effective_end_date = Java::org.joda.time.LocalDate.parse(@effective_end_date.to_s)
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
# conversion for last_active_product [type =
|
|
69
|
+
# conversion for last_active_product [type = org.killbill.billing.catalog.api.Product]
|
|
70
70
|
@last_active_product = @last_active_product.to_java unless @last_active_product.nil?
|
|
71
71
|
|
|
72
|
-
# conversion for last_active_plan [type =
|
|
72
|
+
# conversion for last_active_plan [type = org.killbill.billing.catalog.api.Plan]
|
|
73
73
|
@last_active_plan = @last_active_plan.to_java unless @last_active_plan.nil?
|
|
74
74
|
|
|
75
|
-
# conversion for last_active_phase [type =
|
|
75
|
+
# conversion for last_active_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
|
76
76
|
@last_active_phase = @last_active_phase.to_java unless @last_active_phase.nil?
|
|
77
77
|
|
|
78
|
-
# conversion for last_active_price_list [type =
|
|
78
|
+
# conversion for last_active_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
|
79
79
|
@last_active_price_list = @last_active_price_list.to_java unless @last_active_price_list.nil?
|
|
80
80
|
|
|
81
|
-
# conversion for last_active_product_category [type =
|
|
82
|
-
@last_active_product_category = Java::
|
|
81
|
+
# conversion for last_active_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
|
82
|
+
@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?
|
|
83
83
|
|
|
84
84
|
# conversion for id [type = java.util.UUID]
|
|
85
85
|
@id = java.util.UUID.fromString(@id.to_s) unless @id.nil?
|
|
@@ -132,11 +132,11 @@ module Killbill
|
|
|
132
132
|
# conversion for external_key [type = java.lang.String]
|
|
133
133
|
@external_key = j_obj.external_key
|
|
134
134
|
|
|
135
|
-
# conversion for state [type =
|
|
135
|
+
# conversion for state [type = org.killbill.billing.entitlement.api.EntitlementState]
|
|
136
136
|
@state = j_obj.state
|
|
137
137
|
@state = @state.to_s.to_sym unless @state.nil?
|
|
138
138
|
|
|
139
|
-
# conversion for source_type [type =
|
|
139
|
+
# conversion for source_type [type = org.killbill.billing.entitlement.api.EntitlementSourceType]
|
|
140
140
|
@source_type = j_obj.source_type
|
|
141
141
|
@source_type = @source_type.to_s.to_sym unless @source_type.nil?
|
|
142
142
|
|
|
@@ -152,23 +152,23 @@ module Killbill
|
|
|
152
152
|
@effective_end_date = @effective_end_date.to_s
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
-
# conversion for last_active_product [type =
|
|
155
|
+
# conversion for last_active_product [type = org.killbill.billing.catalog.api.Product]
|
|
156
156
|
@last_active_product = j_obj.last_active_product
|
|
157
157
|
@last_active_product = Killbill::Plugin::Model::Product.new.to_ruby(@last_active_product) unless @last_active_product.nil?
|
|
158
158
|
|
|
159
|
-
# conversion for last_active_plan [type =
|
|
159
|
+
# conversion for last_active_plan [type = org.killbill.billing.catalog.api.Plan]
|
|
160
160
|
@last_active_plan = j_obj.last_active_plan
|
|
161
161
|
@last_active_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@last_active_plan) unless @last_active_plan.nil?
|
|
162
162
|
|
|
163
|
-
# conversion for last_active_phase [type =
|
|
163
|
+
# conversion for last_active_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
|
164
164
|
@last_active_phase = j_obj.last_active_phase
|
|
165
165
|
@last_active_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@last_active_phase) unless @last_active_phase.nil?
|
|
166
166
|
|
|
167
|
-
# conversion for last_active_price_list [type =
|
|
167
|
+
# conversion for last_active_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
|
168
168
|
@last_active_price_list = j_obj.last_active_price_list
|
|
169
169
|
@last_active_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@last_active_price_list) unless @last_active_price_list.nil?
|
|
170
170
|
|
|
171
|
-
# conversion for last_active_product_category [type =
|
|
171
|
+
# conversion for last_active_product_category [type = org.killbill.billing.catalog.api.ProductCategory]
|
|
172
172
|
@last_active_product_category = j_obj.last_active_product_category
|
|
173
173
|
@last_active_product_category = @last_active_product_category.to_s.to_sym unless @last_active_product_category.nil?
|
|
174
174
|
|