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,53 +27,53 @@ 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 SubscriptionApi
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.SubscriptionApi
|
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.Subscription getSubscriptionForEntitlementId(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
41
41
|
def get_subscription_for_entitlement_id(entitlementId, context)
|
42
42
|
|
43
43
|
# conversion for entitlementId [type = java.util.UUID]
|
44
44
|
entitlementId = java.util.UUID.fromString(entitlementId.to_s) unless entitlementId.nil?
|
45
45
|
|
46
|
-
# conversion for context [type =
|
46
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
47
47
|
context = context.to_java unless context.nil?
|
48
48
|
begin
|
49
49
|
res = @real_java_api.get_subscription_for_entitlement_id(entitlementId, context)
|
50
|
-
# conversion for res [type =
|
50
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.Subscription]
|
51
51
|
res = Killbill::Plugin::Model::Subscription.new.to_ruby(res) unless res.nil?
|
52
52
|
return res
|
53
|
-
rescue Java::
|
53
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
54
54
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
java_signature 'Java::
|
58
|
+
java_signature 'Java::org.killbill.billing.entitlement.api.SubscriptionBundle getSubscriptionBundle(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
59
59
|
def get_subscription_bundle(bundleId, context)
|
60
60
|
|
61
61
|
# conversion for bundleId [type = java.util.UUID]
|
62
62
|
bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
|
63
63
|
|
64
|
-
# conversion for context [type =
|
64
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
65
65
|
context = context.to_java unless context.nil?
|
66
66
|
begin
|
67
67
|
res = @real_java_api.get_subscription_bundle(bundleId, context)
|
68
|
-
# conversion for res [type =
|
68
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.SubscriptionBundle]
|
69
69
|
res = Killbill::Plugin::Model::SubscriptionBundle.new.to_ruby(res) unless res.nil?
|
70
70
|
return res
|
71
|
-
rescue Java::
|
71
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
72
72
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
java_signature 'Java::void updateExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::
|
76
|
+
java_signature 'Java::void updateExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
77
77
|
def update_external_key(bundleId, newExternalKey, context)
|
78
78
|
|
79
79
|
# conversion for bundleId [type = java.util.UUID]
|
@@ -82,12 +82,12 @@ module Killbill
|
|
82
82
|
# conversion for newExternalKey [type = java.lang.String]
|
83
83
|
newExternalKey = newExternalKey.to_s unless newExternalKey.nil?
|
84
84
|
|
85
|
-
# conversion for context [type =
|
85
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
86
86
|
context = context.to_java unless context.nil?
|
87
87
|
@real_java_api.update_external_key(bundleId, newExternalKey, context)
|
88
88
|
end
|
89
89
|
|
90
|
-
java_signature 'Java::java.util.List getSubscriptionBundlesForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::
|
90
|
+
java_signature 'Java::java.util.List getSubscriptionBundlesForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
91
91
|
def get_subscription_bundles_for_account_id_and_external_key(accountId, externalKey, context)
|
92
92
|
|
93
93
|
# conversion for accountId [type = java.util.UUID]
|
@@ -96,91 +96,91 @@ module Killbill
|
|
96
96
|
# conversion for externalKey [type = java.lang.String]
|
97
97
|
externalKey = externalKey.to_s unless externalKey.nil?
|
98
98
|
|
99
|
-
# conversion for context [type =
|
99
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
100
100
|
context = context.to_java unless context.nil?
|
101
101
|
begin
|
102
102
|
res = @real_java_api.get_subscription_bundles_for_account_id_and_external_key(accountId, externalKey, context)
|
103
103
|
# conversion for res [type = java.util.List]
|
104
104
|
tmp = []
|
105
105
|
(res || []).each do |m|
|
106
|
-
# conversion for m [type =
|
106
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionBundle]
|
107
107
|
m = Killbill::Plugin::Model::SubscriptionBundle.new.to_ruby(m) unless m.nil?
|
108
108
|
tmp << m
|
109
109
|
end
|
110
110
|
res = tmp
|
111
111
|
return res
|
112
|
-
rescue Java::
|
112
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
113
113
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
114
114
|
end
|
115
115
|
end
|
116
116
|
|
117
|
-
java_signature 'Java::
|
117
|
+
java_signature 'Java::org.killbill.billing.entitlement.api.SubscriptionBundle getActiveSubscriptionBundleForExternalKey(Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
118
118
|
def get_active_subscription_bundle_for_external_key(externalKey, context)
|
119
119
|
|
120
120
|
# conversion for externalKey [type = java.lang.String]
|
121
121
|
externalKey = externalKey.to_s unless externalKey.nil?
|
122
122
|
|
123
|
-
# conversion for context [type =
|
123
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
124
124
|
context = context.to_java unless context.nil?
|
125
125
|
begin
|
126
126
|
res = @real_java_api.get_active_subscription_bundle_for_external_key(externalKey, context)
|
127
|
-
# conversion for res [type =
|
127
|
+
# conversion for res [type = org.killbill.billing.entitlement.api.SubscriptionBundle]
|
128
128
|
res = Killbill::Plugin::Model::SubscriptionBundle.new.to_ruby(res) unless res.nil?
|
129
129
|
return res
|
130
|
-
rescue Java::
|
130
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
131
131
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
-
java_signature 'Java::java.util.List getSubscriptionBundlesForExternalKey(Java::java.lang.String, Java::
|
135
|
+
java_signature 'Java::java.util.List getSubscriptionBundlesForExternalKey(Java::java.lang.String, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
136
136
|
def get_subscription_bundles_for_external_key(externalKey, context)
|
137
137
|
|
138
138
|
# conversion for externalKey [type = java.lang.String]
|
139
139
|
externalKey = externalKey.to_s unless externalKey.nil?
|
140
140
|
|
141
|
-
# conversion for context [type =
|
141
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
142
142
|
context = context.to_java unless context.nil?
|
143
143
|
begin
|
144
144
|
res = @real_java_api.get_subscription_bundles_for_external_key(externalKey, context)
|
145
145
|
# conversion for res [type = java.util.List]
|
146
146
|
tmp = []
|
147
147
|
(res || []).each do |m|
|
148
|
-
# conversion for m [type =
|
148
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionBundle]
|
149
149
|
m = Killbill::Plugin::Model::SubscriptionBundle.new.to_ruby(m) unless m.nil?
|
150
150
|
tmp << m
|
151
151
|
end
|
152
152
|
res = tmp
|
153
153
|
return res
|
154
|
-
rescue Java::
|
154
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
155
155
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
156
156
|
end
|
157
157
|
end
|
158
158
|
|
159
|
-
java_signature 'Java::java.util.List getSubscriptionBundlesForAccountId(Java::java.util.UUID, Java::
|
159
|
+
java_signature 'Java::java.util.List getSubscriptionBundlesForAccountId(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
160
160
|
def get_subscription_bundles_for_account_id(accountId, context)
|
161
161
|
|
162
162
|
# conversion for accountId [type = java.util.UUID]
|
163
163
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.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_subscription_bundles_for_account_id(accountId, context)
|
169
169
|
# conversion for res [type = java.util.List]
|
170
170
|
tmp = []
|
171
171
|
(res || []).each do |m|
|
172
|
-
# conversion for m [type =
|
172
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionBundle]
|
173
173
|
m = Killbill::Plugin::Model::SubscriptionBundle.new.to_ruby(m) unless m.nil?
|
174
174
|
tmp << m
|
175
175
|
end
|
176
176
|
res = tmp
|
177
177
|
return res
|
178
|
-
rescue Java::
|
178
|
+
rescue Java::org.killbill.billing.entitlement.api.SubscriptionApiException => e
|
179
179
|
raise Killbill::Plugin::Model::SubscriptionApiException.new.to_ruby(e)
|
180
180
|
end
|
181
181
|
end
|
182
182
|
|
183
|
-
java_signature 'Java::
|
183
|
+
java_signature 'Java::org.killbill.billing.util.entity.Pagination getSubscriptionBundles(Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
184
184
|
def get_subscription_bundles(offset, limit, context)
|
185
185
|
|
186
186
|
# conversion for offset [type = java.lang.Long]
|
@@ -189,15 +189,15 @@ module Killbill
|
|
189
189
|
# conversion for limit [type = java.lang.Long]
|
190
190
|
limit = limit
|
191
191
|
|
192
|
-
# conversion for context [type =
|
192
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
193
193
|
context = context.to_java unless context.nil?
|
194
194
|
res = @real_java_api.get_subscription_bundles(offset, limit, context)
|
195
|
-
# conversion for res [type =
|
195
|
+
# conversion for res [type = org.killbill.billing.util.entity.Pagination]
|
196
196
|
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
197
197
|
return res
|
198
198
|
end
|
199
199
|
|
200
|
-
java_signature 'Java::
|
200
|
+
java_signature 'Java::org.killbill.billing.util.entity.Pagination searchSubscriptionBundles(Java::java.lang.String, Java::java.lang.Long, Java::java.lang.Long, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
201
201
|
def search_subscription_bundles(searchKey, offset, limit, context)
|
202
202
|
|
203
203
|
# conversion for searchKey [type = java.lang.String]
|
@@ -209,10 +209,10 @@ module Killbill
|
|
209
209
|
# conversion for limit [type = java.lang.Long]
|
210
210
|
limit = limit
|
211
211
|
|
212
|
-
# conversion for context [type =
|
212
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
213
213
|
context = context.to_java unless context.nil?
|
214
214
|
res = @real_java_api.search_subscription_bundles(searchKey, offset, limit, context)
|
215
|
-
# conversion for res [type =
|
215
|
+
# conversion for res [type = org.killbill.billing.util.entity.Pagination]
|
216
216
|
res = Killbill::Plugin::Model::Pagination.new.to_ruby(res) unless res.nil?
|
217
217
|
return res
|
218
218
|
end
|
@@ -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.entitlement.api.SubscriptionApiException.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.entitlement.api'
|
31
31
|
class SubscriptionBundle
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.SubscriptionBundle
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :account_id, :external_key, :original_created_date, :subscriptions, :timeline
|
36
36
|
|
@@ -68,13 +68,13 @@ module Killbill
|
|
68
68
|
# conversion for subscriptions [type = java.util.List]
|
69
69
|
tmp = java.util.ArrayList.new
|
70
70
|
(@subscriptions || []).each do |m|
|
71
|
-
# conversion for m [type =
|
71
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.Subscription]
|
72
72
|
m = m.to_java unless m.nil?
|
73
73
|
tmp.add(m)
|
74
74
|
end
|
75
75
|
@subscriptions = tmp
|
76
76
|
|
77
|
-
# conversion for timeline [type =
|
77
|
+
# conversion for timeline [type = org.killbill.billing.entitlement.api.SubscriptionBundleTimeline]
|
78
78
|
@timeline = @timeline.to_java unless @timeline.nil?
|
79
79
|
self
|
80
80
|
end
|
@@ -119,13 +119,13 @@ module Killbill
|
|
119
119
|
@subscriptions = j_obj.subscriptions
|
120
120
|
tmp = []
|
121
121
|
(@subscriptions || []).each do |m|
|
122
|
-
# conversion for m [type =
|
122
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.Subscription]
|
123
123
|
m = Killbill::Plugin::Model::Subscription.new.to_ruby(m) unless m.nil?
|
124
124
|
tmp << m
|
125
125
|
end
|
126
126
|
@subscriptions = tmp
|
127
127
|
|
128
|
-
# conversion for timeline [type =
|
128
|
+
# conversion for timeline [type = org.killbill.billing.entitlement.api.SubscriptionBundleTimeline]
|
129
129
|
@timeline = j_obj.timeline
|
130
130
|
@timeline = Killbill::Plugin::Model::SubscriptionBundleTimeline.new.to_ruby(@timeline) unless @timeline.nil?
|
131
131
|
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 SubscriptionBundleTimeline
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.SubscriptionBundleTimeline
|
34
34
|
|
35
35
|
attr_accessor :account_id, :bundle_id, :external_key, :subscription_events
|
36
36
|
|
@@ -50,7 +50,7 @@ module Killbill
|
|
50
50
|
# conversion for subscription_events [type = java.util.List]
|
51
51
|
tmp = java.util.ArrayList.new
|
52
52
|
(@subscription_events || []).each do |m|
|
53
|
-
# conversion for m [type =
|
53
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionEvent]
|
54
54
|
m = m.to_java unless m.nil?
|
55
55
|
tmp.add(m)
|
56
56
|
end
|
@@ -74,7 +74,7 @@ module Killbill
|
|
74
74
|
@subscription_events = j_obj.subscription_events
|
75
75
|
tmp = []
|
76
76
|
(@subscription_events || []).each do |m|
|
77
|
-
# conversion for m [type =
|
77
|
+
# conversion for m [type = org.killbill.billing.entitlement.api.SubscriptionEvent]
|
78
78
|
m = Killbill::Plugin::Model::SubscriptionEvent.new.to_ruby(m) unless m.nil?
|
79
79
|
tmp << m
|
80
80
|
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 SubscriptionEvent
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.entitlement.api.SubscriptionEvent
|
34
34
|
|
35
35
|
attr_accessor :id, :entitlement_id, :effective_date, :requested_date, :subscription_event_type, :is_blocked_billing, :is_blocked_entitlement, :service_name, :service_state_name, :prev_product, :prev_plan, :prev_phase, :prev_price_list, :prev_billing_period, :next_product, :next_plan, :next_phase, :next_price_list, :next_billing_period
|
36
36
|
|
@@ -54,8 +54,8 @@ module Killbill
|
|
54
54
|
@requested_date = Java::org.joda.time.LocalDate.parse(@requested_date.to_s)
|
55
55
|
end
|
56
56
|
|
57
|
-
# conversion for subscription_event_type [type =
|
58
|
-
@subscription_event_type = Java::
|
57
|
+
# conversion for subscription_event_type [type = org.killbill.billing.entitlement.api.SubscriptionEventType]
|
58
|
+
@subscription_event_type = Java::org.killbill.billing.entitlement.api.SubscriptionEventType.value_of("#{@subscription_event_type.to_s}") unless @subscription_event_type.nil?
|
59
59
|
|
60
60
|
# conversion for is_blocked_billing [type = boolean]
|
61
61
|
@is_blocked_billing = @is_blocked_billing.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_blocked_billing)
|
@@ -69,35 +69,35 @@ module Killbill
|
|
69
69
|
# conversion for service_state_name [type = java.lang.String]
|
70
70
|
@service_state_name = @service_state_name.to_s unless @service_state_name.nil?
|
71
71
|
|
72
|
-
# conversion for prev_product [type =
|
72
|
+
# conversion for prev_product [type = org.killbill.billing.catalog.api.Product]
|
73
73
|
@prev_product = @prev_product.to_java unless @prev_product.nil?
|
74
74
|
|
75
|
-
# conversion for prev_plan [type =
|
75
|
+
# conversion for prev_plan [type = org.killbill.billing.catalog.api.Plan]
|
76
76
|
@prev_plan = @prev_plan.to_java unless @prev_plan.nil?
|
77
77
|
|
78
|
-
# conversion for prev_phase [type =
|
78
|
+
# conversion for prev_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
79
79
|
@prev_phase = @prev_phase.to_java unless @prev_phase.nil?
|
80
80
|
|
81
|
-
# conversion for prev_price_list [type =
|
81
|
+
# conversion for prev_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
82
82
|
@prev_price_list = @prev_price_list.to_java unless @prev_price_list.nil?
|
83
83
|
|
84
|
-
# conversion for prev_billing_period [type =
|
85
|
-
@prev_billing_period = Java::
|
84
|
+
# conversion for prev_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
85
|
+
@prev_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@prev_billing_period.to_s}") unless @prev_billing_period.nil?
|
86
86
|
|
87
|
-
# conversion for next_product [type =
|
87
|
+
# conversion for next_product [type = org.killbill.billing.catalog.api.Product]
|
88
88
|
@next_product = @next_product.to_java unless @next_product.nil?
|
89
89
|
|
90
|
-
# conversion for next_plan [type =
|
90
|
+
# conversion for next_plan [type = org.killbill.billing.catalog.api.Plan]
|
91
91
|
@next_plan = @next_plan.to_java unless @next_plan.nil?
|
92
92
|
|
93
|
-
# conversion for next_phase [type =
|
93
|
+
# conversion for next_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
94
94
|
@next_phase = @next_phase.to_java unless @next_phase.nil?
|
95
95
|
|
96
|
-
# conversion for next_price_list [type =
|
96
|
+
# conversion for next_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
97
97
|
@next_price_list = @next_price_list.to_java unless @next_price_list.nil?
|
98
98
|
|
99
|
-
# conversion for next_billing_period [type =
|
100
|
-
@next_billing_period = Java::
|
99
|
+
# conversion for next_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
100
|
+
@next_billing_period = Java::org.killbill.billing.catalog.api.BillingPeriod.value_of("#{@next_billing_period.to_s}") unless @next_billing_period.nil?
|
101
101
|
self
|
102
102
|
end
|
103
103
|
|
@@ -122,7 +122,7 @@ module Killbill
|
|
122
122
|
@requested_date = @requested_date.to_s
|
123
123
|
end
|
124
124
|
|
125
|
-
# conversion for subscription_event_type [type =
|
125
|
+
# conversion for subscription_event_type [type = org.killbill.billing.entitlement.api.SubscriptionEventType]
|
126
126
|
@subscription_event_type = j_obj.subscription_event_type
|
127
127
|
@subscription_event_type = @subscription_event_type.to_s.to_sym unless @subscription_event_type.nil?
|
128
128
|
|
@@ -150,43 +150,43 @@ module Killbill
|
|
150
150
|
# conversion for service_state_name [type = java.lang.String]
|
151
151
|
@service_state_name = j_obj.service_state_name
|
152
152
|
|
153
|
-
# conversion for prev_product [type =
|
153
|
+
# conversion for prev_product [type = org.killbill.billing.catalog.api.Product]
|
154
154
|
@prev_product = j_obj.prev_product
|
155
155
|
@prev_product = Killbill::Plugin::Model::Product.new.to_ruby(@prev_product) unless @prev_product.nil?
|
156
156
|
|
157
|
-
# conversion for prev_plan [type =
|
157
|
+
# conversion for prev_plan [type = org.killbill.billing.catalog.api.Plan]
|
158
158
|
@prev_plan = j_obj.prev_plan
|
159
159
|
@prev_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@prev_plan) unless @prev_plan.nil?
|
160
160
|
|
161
|
-
# conversion for prev_phase [type =
|
161
|
+
# conversion for prev_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
162
162
|
@prev_phase = j_obj.prev_phase
|
163
163
|
@prev_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@prev_phase) unless @prev_phase.nil?
|
164
164
|
|
165
|
-
# conversion for prev_price_list [type =
|
165
|
+
# conversion for prev_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
166
166
|
@prev_price_list = j_obj.prev_price_list
|
167
167
|
@prev_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@prev_price_list) unless @prev_price_list.nil?
|
168
168
|
|
169
|
-
# conversion for prev_billing_period [type =
|
169
|
+
# conversion for prev_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
170
170
|
@prev_billing_period = j_obj.prev_billing_period
|
171
171
|
@prev_billing_period = @prev_billing_period.to_s.to_sym unless @prev_billing_period.nil?
|
172
172
|
|
173
|
-
# conversion for next_product [type =
|
173
|
+
# conversion for next_product [type = org.killbill.billing.catalog.api.Product]
|
174
174
|
@next_product = j_obj.next_product
|
175
175
|
@next_product = Killbill::Plugin::Model::Product.new.to_ruby(@next_product) unless @next_product.nil?
|
176
176
|
|
177
|
-
# conversion for next_plan [type =
|
177
|
+
# conversion for next_plan [type = org.killbill.billing.catalog.api.Plan]
|
178
178
|
@next_plan = j_obj.next_plan
|
179
179
|
@next_plan = Killbill::Plugin::Model::Plan.new.to_ruby(@next_plan) unless @next_plan.nil?
|
180
180
|
|
181
|
-
# conversion for next_phase [type =
|
181
|
+
# conversion for next_phase [type = org.killbill.billing.catalog.api.PlanPhase]
|
182
182
|
@next_phase = j_obj.next_phase
|
183
183
|
@next_phase = Killbill::Plugin::Model::PlanPhase.new.to_ruby(@next_phase) unless @next_phase.nil?
|
184
184
|
|
185
|
-
# conversion for next_price_list [type =
|
185
|
+
# conversion for next_price_list [type = org.killbill.billing.catalog.api.PriceList]
|
186
186
|
@next_price_list = j_obj.next_price_list
|
187
187
|
@next_price_list = Killbill::Plugin::Model::PriceList.new.to_ruby(@next_price_list) unless @next_price_list.nil?
|
188
188
|
|
189
|
-
# conversion for next_billing_period [type =
|
189
|
+
# conversion for next_billing_period [type = org.killbill.billing.catalog.api.BillingPeriod]
|
190
190
|
@next_billing_period = j_obj.next_billing_period
|
191
191
|
@next_billing_period = @next_billing_period.to_s.to_sym unless @next_billing_period.nil?
|
192
192
|
self
|
data/lib/killbill/gen/api/tag.rb
CHANGED
@@ -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.tag'
|
31
31
|
class Tag
|
32
32
|
|
33
|
-
include
|
33
|
+
include org.killbill.billing.util.tag.Tag
|
34
34
|
|
35
35
|
attr_accessor :id, :created_date, :updated_date, :tag_definition_id, :object_type, :object_id
|
36
36
|
|
@@ -56,8 +56,8 @@ module Killbill
|
|
56
56
|
# conversion for tag_definition_id [type = java.util.UUID]
|
57
57
|
@tag_definition_id = java.util.UUID.fromString(@tag_definition_id.to_s) unless @tag_definition_id.nil?
|
58
58
|
|
59
|
-
# conversion for object_type [type =
|
60
|
-
@object_type = Java::
|
59
|
+
# conversion for object_type [type = org.killbill.billing.ObjectType]
|
60
|
+
@object_type = Java::org.killbill.billing.ObjectType.value_of("#{@object_type.to_s}") unless @object_type.nil?
|
61
61
|
|
62
62
|
# conversion for object_id [type = java.util.UUID]
|
63
63
|
@object_id = java.util.UUID.fromString(@object_id.to_s) unless @object_id.nil?
|
@@ -89,7 +89,7 @@ module Killbill
|
|
89
89
|
@tag_definition_id = j_obj.tag_definition_id
|
90
90
|
@tag_definition_id = @tag_definition_id.nil? ? nil : @tag_definition_id.to_s
|
91
91
|
|
92
|
-
# conversion for object_type [type =
|
92
|
+
# conversion for object_type [type = org.killbill.billing.ObjectType]
|
93
93
|
@object_type = j_obj.object_type
|
94
94
|
@object_type = @object_type.to_s.to_sym unless @object_type.nil?
|
95
95
|
|