killbill 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,24 +37,277 @@ module Killbill
37
37
  end
38
38
 
39
39
 
40
- java_signature 'Java::java.util.List getBlockingHistory(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
41
- def get_blocking_history(overdueableId, context)
40
+ java_signature 'Java::com.ning.billing.entitlement.api.Entitlement createBaseEntitlement(Java::java.util.UUID, Java::com.ning.billing.catalog.api.PlanPhaseSpecifier, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.CallContext)'
41
+ def create_base_entitlement(accountId, spec, externalKey, effectiveDate, context)
42
42
 
43
- # conversion for overdueableId [type = java.util.UUID]
44
- overdueableId = java.util.UUID.fromString(overdueableId.to_s) unless overdueableId.nil?
43
+ # conversion for accountId [type = java.util.UUID]
44
+ accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
45
+
46
+ # conversion for spec [type = com.ning.billing.catalog.api.PlanPhaseSpecifier]
47
+ spec = spec.to_java unless spec.nil?
48
+
49
+ # conversion for externalKey [type = java.lang.String]
50
+ externalKey = externalKey.to_s unless externalKey.nil?
51
+
52
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
53
+ if !effectiveDate.nil?
54
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
55
+ end
56
+
57
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
58
+ context = context.to_java unless context.nil?
59
+ begin
60
+ res = @real_java_api.create_base_entitlement(accountId, spec, externalKey, effectiveDate, context)
61
+ # conversion for res [type = com.ning.billing.entitlement.api.Entitlement]
62
+ res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
63
+ return res
64
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
65
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
66
+ end
67
+ end
68
+
69
+ java_signature 'Java::com.ning.billing.entitlement.api.Entitlement addEntitlement(Java::java.util.UUID, Java::com.ning.billing.catalog.api.PlanPhaseSpecifier, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.CallContext)'
70
+ def add_entitlement(bundleId, spec, effectiveDate, context)
71
+
72
+ # conversion for bundleId [type = java.util.UUID]
73
+ bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
74
+
75
+ # conversion for spec [type = com.ning.billing.catalog.api.PlanPhaseSpecifier]
76
+ spec = spec.to_java unless spec.nil?
77
+
78
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
79
+ if !effectiveDate.nil?
80
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
81
+ end
82
+
83
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
84
+ context = context.to_java unless context.nil?
85
+ begin
86
+ res = @real_java_api.add_entitlement(bundleId, spec, effectiveDate, context)
87
+ # conversion for res [type = com.ning.billing.entitlement.api.Entitlement]
88
+ res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
89
+ return res
90
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
91
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
92
+ end
93
+ end
94
+
95
+ java_signature 'Java::java.util.List getDryRunStatusForChange(Java::java.util.UUID, Java::java.lang.String, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.TenantContext)'
96
+ def get_dry_run_status_for_change(bundleId, targetProductName, effectiveDate, context)
97
+
98
+ # conversion for bundleId [type = java.util.UUID]
99
+ bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
100
+
101
+ # conversion for targetProductName [type = java.lang.String]
102
+ targetProductName = targetProductName.to_s unless targetProductName.nil?
103
+
104
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
105
+ if !effectiveDate.nil?
106
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
107
+ end
108
+
109
+ # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
110
+ context = context.to_java unless context.nil?
111
+ begin
112
+ res = @real_java_api.get_dry_run_status_for_change(bundleId, targetProductName, effectiveDate, context)
113
+ # conversion for res [type = java.util.List]
114
+ tmp = []
115
+ (res || []).each do |m|
116
+ # conversion for m [type = com.ning.billing.entitlement.api.EntitlementAOStatusDryRun]
117
+ m = Killbill::Plugin::Model::EntitlementAOStatusDryRun.new.to_ruby(m) unless m.nil?
118
+ tmp << m
119
+ end
120
+ res = tmp
121
+ return res
122
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
123
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
124
+ end
125
+ end
126
+
127
+ java_signature 'Java::void pause(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.CallContext)'
128
+ def pause(bundleId, effectiveDate, context)
129
+
130
+ # conversion for bundleId [type = java.util.UUID]
131
+ bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
132
+
133
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
134
+ if !effectiveDate.nil?
135
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
136
+ end
137
+
138
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
139
+ context = context.to_java unless context.nil?
140
+ @real_java_api.pause(bundleId, effectiveDate, context)
141
+ end
142
+
143
+ java_signature 'Java::void resume(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::com.ning.billing.util.callcontext.CallContext)'
144
+ def resume(bundleId, effectiveDate, context)
145
+
146
+ # conversion for bundleId [type = java.util.UUID]
147
+ bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
148
+
149
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
150
+ if !effectiveDate.nil?
151
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
152
+ end
153
+
154
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
155
+ context = context.to_java unless context.nil?
156
+ @real_java_api.resume(bundleId, effectiveDate, context)
157
+ end
158
+
159
+ java_signature 'Java::com.ning.billing.entitlement.api.Entitlement getEntitlementForId(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
160
+ def get_entitlement_for_id(id, context)
161
+
162
+ # conversion for id [type = java.util.UUID]
163
+ id = java.util.UUID.fromString(id.to_s) unless id.nil?
45
164
 
46
165
  # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
47
166
  context = context.to_java unless context.nil?
48
- res = @real_java_api.get_blocking_history(overdueableId, context)
49
- # conversion for res [type = java.util.List]
50
- tmp = []
51
- (res || []).each do |m|
52
- # conversion for m [type = com.ning.billing.entitlement.api.BlockingState]
53
- m = Killbill::Plugin::Model::BlockingState.new.to_ruby(m) unless m.nil?
54
- tmp << m
167
+ begin
168
+ res = @real_java_api.get_entitlement_for_id(id, context)
169
+ # conversion for res [type = com.ning.billing.entitlement.api.Entitlement]
170
+ res = Killbill::Plugin::Model::Entitlement.new.to_ruby(res) unless res.nil?
171
+ return res
172
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
173
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
174
+ end
175
+ end
176
+
177
+ java_signature 'Java::java.util.List getAllEntitlementsForBundle(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
178
+ def get_all_entitlements_for_bundle(bundleId, context)
179
+
180
+ # conversion for bundleId [type = java.util.UUID]
181
+ bundleId = java.util.UUID.fromString(bundleId.to_s) unless bundleId.nil?
182
+
183
+ # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
184
+ context = context.to_java unless context.nil?
185
+ begin
186
+ res = @real_java_api.get_all_entitlements_for_bundle(bundleId, context)
187
+ # conversion for res [type = java.util.List]
188
+ tmp = []
189
+ (res || []).each do |m|
190
+ # conversion for m [type = com.ning.billing.entitlement.api.Entitlement]
191
+ m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
192
+ tmp << m
193
+ end
194
+ res = tmp
195
+ return res
196
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
197
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
198
+ end
199
+ end
200
+
201
+ java_signature 'Java::java.util.List getAllEntitlementsForAccountIdAndExternalKey(Java::java.util.UUID, Java::java.lang.String, Java::com.ning.billing.util.callcontext.TenantContext)'
202
+ def get_all_entitlements_for_account_id_and_external_key(accountId, externalKey, context)
203
+
204
+ # conversion for accountId [type = java.util.UUID]
205
+ accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
206
+
207
+ # conversion for externalKey [type = java.lang.String]
208
+ externalKey = externalKey.to_s unless externalKey.nil?
209
+
210
+ # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
211
+ context = context.to_java unless context.nil?
212
+ begin
213
+ res = @real_java_api.get_all_entitlements_for_account_id_and_external_key(accountId, externalKey, context)
214
+ # conversion for res [type = java.util.List]
215
+ tmp = []
216
+ (res || []).each do |m|
217
+ # conversion for m [type = com.ning.billing.entitlement.api.Entitlement]
218
+ m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
219
+ tmp << m
220
+ end
221
+ res = tmp
222
+ return res
223
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
224
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
225
+ end
226
+ end
227
+
228
+ java_signature 'Java::java.util.List getAllEntitlementsForAccountId(Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
229
+ def get_all_entitlements_for_account_id(accountId, context)
230
+
231
+ # conversion for accountId [type = java.util.UUID]
232
+ accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
233
+
234
+ # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
235
+ context = context.to_java unless context.nil?
236
+ begin
237
+ res = @real_java_api.get_all_entitlements_for_account_id(accountId, context)
238
+ # conversion for res [type = java.util.List]
239
+ tmp = []
240
+ (res || []).each do |m|
241
+ # conversion for m [type = com.ning.billing.entitlement.api.Entitlement]
242
+ m = Killbill::Plugin::Model::Entitlement.new.to_ruby(m) unless m.nil?
243
+ tmp << m
244
+ end
245
+ res = tmp
246
+ return res
247
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
248
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
249
+ end
250
+ end
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::com.ning.billing.util.callcontext.CallContext)'
253
+ def transfer_entitlements(sourceAccountId, destAccountId, externalKey, effectiveDate, context)
254
+
255
+ # conversion for sourceAccountId [type = java.util.UUID]
256
+ sourceAccountId = java.util.UUID.fromString(sourceAccountId.to_s) unless sourceAccountId.nil?
257
+
258
+ # conversion for destAccountId [type = java.util.UUID]
259
+ destAccountId = java.util.UUID.fromString(destAccountId.to_s) unless destAccountId.nil?
260
+
261
+ # conversion for externalKey [type = java.lang.String]
262
+ externalKey = externalKey.to_s unless externalKey.nil?
263
+
264
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
265
+ if !effectiveDate.nil?
266
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
267
+ end
268
+
269
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
270
+ context = context.to_java unless context.nil?
271
+ begin
272
+ res = @real_java_api.transfer_entitlements(sourceAccountId, destAccountId, externalKey, effectiveDate, context)
273
+ # conversion for res [type = java.util.UUID]
274
+ res = res.nil? ? nil : res.to_s
275
+ return res
276
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
277
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
278
+ end
279
+ end
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::com.ning.billing.catalog.api.BillingActionPolicy, Java::com.ning.billing.util.callcontext.CallContext)'
282
+ def transfer_entitlements_override_billing_policy(sourceAccountId, destAccountId, externalKey, effectiveDate, billingPolicy, context)
283
+
284
+ # conversion for sourceAccountId [type = java.util.UUID]
285
+ sourceAccountId = java.util.UUID.fromString(sourceAccountId.to_s) unless sourceAccountId.nil?
286
+
287
+ # conversion for destAccountId [type = java.util.UUID]
288
+ destAccountId = java.util.UUID.fromString(destAccountId.to_s) unless destAccountId.nil?
289
+
290
+ # conversion for externalKey [type = java.lang.String]
291
+ externalKey = externalKey.to_s unless externalKey.nil?
292
+
293
+ # conversion for effectiveDate [type = org.joda.time.LocalDate]
294
+ if !effectiveDate.nil?
295
+ effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
296
+ end
297
+
298
+ # conversion for billingPolicy [type = com.ning.billing.catalog.api.BillingActionPolicy]
299
+ billingPolicy = Java::com.ning.billing.catalog.api.BillingActionPolicy.value_of("#{billingPolicy.to_s}") unless billingPolicy.nil?
300
+
301
+ # conversion for context [type = com.ning.billing.util.callcontext.CallContext]
302
+ context = context.to_java unless context.nil?
303
+ begin
304
+ res = @real_java_api.transfer_entitlements_override_billing_policy(sourceAccountId, destAccountId, externalKey, effectiveDate, billingPolicy, context)
305
+ # conversion for res [type = java.util.UUID]
306
+ res = res.nil? ? nil : res.to_s
307
+ return res
308
+ rescue Java::com.ning.billing.entitlement.api.EntitlementApiException => e
309
+ raise Killbill::Plugin::Model::EntitlementApiException.new.to_ruby(e)
55
310
  end
56
- res = tmp
57
- return res
58
311
  end
59
312
  end
60
313
  end
@@ -0,0 +1,66 @@
1
+ ###################################################################################
2
+ # #
3
+ # Copyright 2010-2013 Ning, Inc. #
4
+ # #
5
+ # Ning licenses this file to you under the Apache License, version 2.0 #
6
+ # (the "License"); you may not use this file except in compliance with the #
7
+ # License. You may obtain a copy of the License at: #
8
+ # #
9
+ # http://www.apache.org/licenses/LICENSE-2.0 #
10
+ # #
11
+ # Unless required by applicable law or agreed to in writing, software #
12
+ # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
13
+ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
14
+ # License for the specific language governing permissions and limitations #
15
+ # under the License. #
16
+ # #
17
+ ###################################################################################
18
+
19
+
20
+ #
21
+ # DO NOT EDIT!!!
22
+ # File automatically generated by killbill-java-parser (git@github.com:killbill/killbill-java-parser.git)
23
+ #
24
+
25
+
26
+ module Killbill
27
+ module Plugin
28
+ module Model
29
+
30
+ class EntitlementApiException
31
+
32
+
33
+ attr_accessor :message, :cause, :code
34
+
35
+ def initialize()
36
+ end
37
+
38
+ def to_java()
39
+ # conversion for message [type = java.lang.String]
40
+ @message = @message.to_s unless @message.nil?
41
+
42
+ # conversion for cause [type = java.lang.Throwable]
43
+ @cause = @cause.to_s unless cause.nil?
44
+
45
+ # conversion for code [type = int]
46
+ @code = @code
47
+ Java::com.ning.billing.entitlement.api.EntitlementApiException.new(@message, @cause, @code)
48
+ end
49
+
50
+ def to_ruby(j_obj)
51
+ # conversion for message [type = java.lang.String]
52
+ @message = j_obj.message
53
+
54
+ # conversion for cause [type = java.lang.Throwable]
55
+ @cause = j_obj.cause
56
+ @cause = @cause.to_s unless @cause.nil?
57
+
58
+ # conversion for code [type = int]
59
+ @code = j_obj.code
60
+ self
61
+ end
62
+
63
+ end
64
+ end
65
+ end
66
+ end
@@ -32,7 +32,7 @@ module Killbill
32
32
 
33
33
  include com.ning.billing.osgi.api.OSGIKillbill
34
34
 
35
- attr_accessor :account_user_api, :catalog_user_api, :subscription_timeline_api, :subscription_transfer_api, :subscription_user_api, :invoice_payment_api, :invoice_user_api, :overdue_user_api, :payment_api, :tenant_user_api, :usage_user_api, :audit_user_api, :custom_field_user_api, :export_user_api, :tag_user_api, :entitlement_api, :record_id_api, :plugin_config_service_api
35
+ attr_accessor :account_user_api, :catalog_user_api, :subscription_api, :invoice_payment_api, :invoice_user_api, :payment_api, :tenant_user_api, :usage_user_api, :audit_user_api, :custom_field_user_api, :export_user_api, :tag_user_api, :entitlement_api, :record_id_api, :plugin_config_service_api
36
36
 
37
37
  def initialize()
38
38
  end
@@ -44,14 +44,8 @@ module Killbill
44
44
  # conversion for catalog_user_api [type = com.ning.billing.catalog.api.CatalogUserApi]
45
45
  @catalog_user_api = @catalog_user_api.to_java unless @catalog_user_api.nil?
46
46
 
47
- # conversion for subscription_timeline_api [type = com.ning.billing.subscription.api.timeline.SubscriptionTimelineApi]
48
- @subscription_timeline_api = @subscription_timeline_api.to_java unless @subscription_timeline_api.nil?
49
-
50
- # conversion for subscription_transfer_api [type = com.ning.billing.subscription.api.transfer.SubscriptionTransferApi]
51
- @subscription_transfer_api = @subscription_transfer_api.to_java unless @subscription_transfer_api.nil?
52
-
53
- # conversion for subscription_user_api [type = com.ning.billing.subscription.api.user.SubscriptionUserApi]
54
- @subscription_user_api = @subscription_user_api.to_java unless @subscription_user_api.nil?
47
+ # conversion for subscription_api [type = com.ning.billing.entitlement.api.SubscriptionApi]
48
+ @subscription_api = @subscription_api.to_java unless @subscription_api.nil?
55
49
 
56
50
  # conversion for invoice_payment_api [type = com.ning.billing.invoice.api.InvoicePaymentApi]
57
51
  @invoice_payment_api = @invoice_payment_api.to_java unless @invoice_payment_api.nil?
@@ -59,9 +53,6 @@ module Killbill
59
53
  # conversion for invoice_user_api [type = com.ning.billing.invoice.api.InvoiceUserApi]
60
54
  @invoice_user_api = @invoice_user_api.to_java unless @invoice_user_api.nil?
61
55
 
62
- # conversion for overdue_user_api [type = com.ning.billing.overdue.OverdueUserApi]
63
- @overdue_user_api = @overdue_user_api.to_java unless @overdue_user_api.nil?
64
-
65
56
  # conversion for payment_api [type = com.ning.billing.payment.api.PaymentApi]
66
57
  @payment_api = @payment_api.to_java unless @payment_api.nil?
67
58
 
@@ -103,17 +94,9 @@ module Killbill
103
94
  @catalog_user_api = j_obj.catalog_user_api
104
95
  @catalog_user_api = Killbill::Plugin::Model::CatalogUserApi.new.to_ruby(@catalog_user_api) unless @catalog_user_api.nil?
105
96
 
106
- # conversion for subscription_timeline_api [type = com.ning.billing.subscription.api.timeline.SubscriptionTimelineApi]
107
- @subscription_timeline_api = j_obj.subscription_timeline_api
108
- @subscription_timeline_api = Killbill::Plugin::Model::SubscriptionTimelineApi.new.to_ruby(@subscription_timeline_api) unless @subscription_timeline_api.nil?
109
-
110
- # conversion for subscription_transfer_api [type = com.ning.billing.subscription.api.transfer.SubscriptionTransferApi]
111
- @subscription_transfer_api = j_obj.subscription_transfer_api
112
- @subscription_transfer_api = Killbill::Plugin::Model::SubscriptionTransferApi.new.to_ruby(@subscription_transfer_api) unless @subscription_transfer_api.nil?
113
-
114
- # conversion for subscription_user_api [type = com.ning.billing.subscription.api.user.SubscriptionUserApi]
115
- @subscription_user_api = j_obj.subscription_user_api
116
- @subscription_user_api = Killbill::Plugin::Model::SubscriptionUserApi.new.to_ruby(@subscription_user_api) unless @subscription_user_api.nil?
97
+ # conversion for subscription_api [type = com.ning.billing.entitlement.api.SubscriptionApi]
98
+ @subscription_api = j_obj.subscription_api
99
+ @subscription_api = Killbill::Plugin::Model::SubscriptionApi.new.to_ruby(@subscription_api) unless @subscription_api.nil?
117
100
 
118
101
  # conversion for invoice_payment_api [type = com.ning.billing.invoice.api.InvoicePaymentApi]
119
102
  @invoice_payment_api = j_obj.invoice_payment_api
@@ -123,10 +106,6 @@ module Killbill
123
106
  @invoice_user_api = j_obj.invoice_user_api
124
107
  @invoice_user_api = Killbill::Plugin::Model::InvoiceUserApi.new.to_ruby(@invoice_user_api) unless @invoice_user_api.nil?
125
108
 
126
- # conversion for overdue_user_api [type = com.ning.billing.overdue.OverdueUserApi]
127
- @overdue_user_api = j_obj.overdue_user_api
128
- @overdue_user_api = Killbill::Plugin::Model::OverdueUserApi.new.to_ruby(@overdue_user_api) unless @overdue_user_api.nil?
129
-
130
109
  # conversion for payment_api [type = com.ning.billing.payment.api.PaymentApi]
131
110
  @payment_api = j_obj.payment_api
132
111
  @payment_api = Killbill::Plugin::Model::PaymentApi.new.to_ruby(@payment_api) unless @payment_api.nil?
@@ -429,26 +429,6 @@ module Killbill
429
429
  end
430
430
  end
431
431
 
432
- java_signature 'Java::java.util.List searchPaymentMethods(Java::java.lang.String, Java::com.ning.billing.util.callcontext.TenantContext)'
433
- def search_payment_methods(searchKey, context)
434
-
435
- # conversion for searchKey [type = java.lang.String]
436
- searchKey = searchKey.to_s unless searchKey.nil?
437
-
438
- # conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
439
- context = context.to_java unless context.nil?
440
- res = @real_java_api.search_payment_methods(searchKey, context)
441
- # conversion for res [type = java.util.List]
442
- tmp = []
443
- (res || []).each do |m|
444
- # conversion for m [type = com.ning.billing.payment.api.PaymentMethod]
445
- m = Killbill::Plugin::Model::PaymentMethod.new.to_ruby(m) unless m.nil?
446
- tmp << m
447
- end
448
- res = tmp
449
- return res
450
- end
451
-
452
432
  java_signature 'Java::void deletedPaymentMethod(Java::com.ning.billing.account.api.Account, Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
453
433
  def deleted_payment_method(account, paymentMethodId, deleteDefaultPaymentMethodWithAutoPayOff, context)
454
434