killbill 9.3.0 → 9.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +138 -0
- data/Gemfile.lock +1 -1
- data/Jarfile +10 -10
- data/Jarfile.lock +23 -23
- data/NEWS +9 -0
- data/lib/killbill.rb +1 -1
- data/lib/killbill/gen/api/account_user_api.rb +54 -0
- data/lib/killbill/gen/api/audit_log_with_history.rb +138 -0
- data/lib/killbill/gen/api/custom_field_user_api.rb +23 -0
- data/lib/killbill/gen/api/dry_run_arguments.rb +6 -25
- data/lib/killbill/gen/api/entitlement_api.rb +8 -26
- data/lib/killbill/gen/api/entitlement_specifier.rb +7 -1
- data/lib/killbill/gen/api/health_status.rb +78 -0
- data/lib/killbill/gen/api/healthcheck.rb +53 -0
- data/lib/killbill/gen/api/invoice_item.rb +13 -1
- data/lib/killbill/gen/api/invoice_item_formatter.rb +13 -1
- data/lib/killbill/gen/api/invoice_payment_api.rb +224 -30
- data/lib/killbill/gen/api/invoice_user_api.rb +145 -18
- data/lib/killbill/gen/api/osgi_killbill.rb +2 -2
- data/lib/killbill/gen/api/payment_api.rb +125 -0
- data/lib/killbill/gen/api/plugin_config.rb +19 -0
- data/lib/killbill/gen/api/require_gen.rb +4 -8
- data/lib/killbill/gen/api/security_api.rb +12 -8
- data/lib/killbill/gen/api/tag_user_api.rb +46 -0
- data/lib/killbill/gen/plugin-api/invoice_notification_metadata.rb +81 -0
- data/lib/killbill/gen/plugin-api/require_gen.rb +1 -0
- data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +16 -5
- data/lib/killbill/version.rb +1 -1
- data/spec/killbill/helpers/response_spec.rb +7 -0
- data/spec/killbill/helpers/test_response.rb +4 -0
- metadata +9 -36
- data/.travis.yml +0 -51
@@ -184,6 +184,24 @@ module Killbill
|
|
184
184
|
end
|
185
185
|
end
|
186
186
|
|
187
|
+
java_signature 'Java::org.killbill.billing.invoice.api.Invoice getInvoiceByInvoiceItem(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
188
|
+
def get_invoice_by_invoice_item(invoiceItemId, context)
|
189
|
+
|
190
|
+
# conversion for invoiceItemId [type = java.util.UUID]
|
191
|
+
invoiceItemId = java.util.UUID.fromString(invoiceItemId.to_s) unless invoiceItemId.nil?
|
192
|
+
|
193
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
194
|
+
context = context.to_java unless context.nil?
|
195
|
+
begin
|
196
|
+
res = @real_java_api.get_invoice_by_invoice_item(invoiceItemId, context)
|
197
|
+
# conversion for res [type = org.killbill.billing.invoice.api.Invoice]
|
198
|
+
res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
|
199
|
+
return res
|
200
|
+
rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
|
201
|
+
raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
187
205
|
java_signature 'Java::java.util.Collection getUnpaidInvoicesByAccountId(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
188
206
|
def get_unpaid_invoices_by_account_id(accountId, upToDate, context)
|
189
207
|
|
@@ -209,8 +227,31 @@ module Killbill
|
|
209
227
|
return res
|
210
228
|
end
|
211
229
|
|
212
|
-
java_signature 'Java::org.killbill.billing.invoice.api.Invoice triggerInvoiceGeneration(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.
|
213
|
-
def trigger_invoice_generation(accountId, targetDate,
|
230
|
+
java_signature 'Java::org.killbill.billing.invoice.api.Invoice triggerInvoiceGeneration(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.util.callcontext.CallContext)'
|
231
|
+
def trigger_invoice_generation(accountId, targetDate, context)
|
232
|
+
|
233
|
+
# conversion for accountId [type = java.util.UUID]
|
234
|
+
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
235
|
+
|
236
|
+
# conversion for targetDate [type = org.joda.time.LocalDate]
|
237
|
+
if !targetDate.nil?
|
238
|
+
targetDate = Java::org.joda.time.LocalDate.parse(targetDate.to_s)
|
239
|
+
end
|
240
|
+
|
241
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
242
|
+
context = context.to_java unless context.nil?
|
243
|
+
begin
|
244
|
+
res = @real_java_api.trigger_invoice_generation(accountId, targetDate, context)
|
245
|
+
# conversion for res [type = org.killbill.billing.invoice.api.Invoice]
|
246
|
+
res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
|
247
|
+
return res
|
248
|
+
rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
|
249
|
+
raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
253
|
+
java_signature 'Java::org.killbill.billing.invoice.api.Invoice triggerDryRunInvoiceGeneration(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::org.killbill.billing.invoice.api.DryRunArguments, Java::org.killbill.billing.util.callcontext.CallContext)'
|
254
|
+
def trigger_dry_run_invoice_generation(accountId, targetDate, dryRunArguments, context)
|
214
255
|
|
215
256
|
# conversion for accountId [type = java.util.UUID]
|
216
257
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
@@ -226,7 +267,7 @@ module Killbill
|
|
226
267
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
227
268
|
context = context.to_java unless context.nil?
|
228
269
|
begin
|
229
|
-
res = @real_java_api.
|
270
|
+
res = @real_java_api.trigger_dry_run_invoice_generation(accountId, targetDate, dryRunArguments, context)
|
230
271
|
# conversion for res [type = org.killbill.billing.invoice.api.Invoice]
|
231
272
|
res = Killbill::Plugin::Model::Invoice.new.to_ruby(res) unless res.nil?
|
232
273
|
return res
|
@@ -275,8 +316,8 @@ module Killbill
|
|
275
316
|
end
|
276
317
|
end
|
277
318
|
|
278
|
-
java_signature 'Java::java.util.List insertExternalCharges(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::java.lang.Iterable, Java::boolean, Java::org.killbill.billing.util.callcontext.CallContext)'
|
279
|
-
def insert_external_charges(accountId, effectiveDate, charges, autoCommit, context)
|
319
|
+
java_signature 'Java::java.util.List insertExternalCharges(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::java.lang.Iterable, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
320
|
+
def insert_external_charges(accountId, effectiveDate, charges, autoCommit, properties, context)
|
280
321
|
|
281
322
|
# conversion for accountId [type = java.util.UUID]
|
282
323
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
@@ -298,10 +339,69 @@ module Killbill
|
|
298
339
|
# conversion for autoCommit [type = boolean]
|
299
340
|
autoCommit = autoCommit.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(autoCommit)
|
300
341
|
|
342
|
+
# conversion for properties [type = java.lang.Iterable]
|
343
|
+
tmp = java.util.ArrayList.new
|
344
|
+
(properties || []).each do |m|
|
345
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
346
|
+
m = m.to_java unless m.nil?
|
347
|
+
tmp.add(m)
|
348
|
+
end
|
349
|
+
properties = tmp
|
350
|
+
|
301
351
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
302
352
|
context = context.to_java unless context.nil?
|
303
353
|
begin
|
304
|
-
res = @real_java_api.insert_external_charges(accountId, effectiveDate, charges, autoCommit, context)
|
354
|
+
res = @real_java_api.insert_external_charges(accountId, effectiveDate, charges, autoCommit, properties, context)
|
355
|
+
# conversion for res [type = java.util.List]
|
356
|
+
tmp = []
|
357
|
+
(res || []).each do |m|
|
358
|
+
# conversion for m [type = org.killbill.billing.invoice.api.InvoiceItem]
|
359
|
+
m = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(m) unless m.nil?
|
360
|
+
tmp << m
|
361
|
+
end
|
362
|
+
res = tmp
|
363
|
+
return res
|
364
|
+
rescue Java::org.killbill.billing.invoice.api.InvoiceApiException => e
|
365
|
+
raise Killbill::Plugin::Model::InvoiceApiException.new.to_ruby(e)
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
java_signature 'Java::java.util.List insertTaxItems(Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::java.lang.Iterable, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
370
|
+
def insert_tax_items(accountId, effectiveDate, taxes, autoCommit, properties, context)
|
371
|
+
|
372
|
+
# conversion for accountId [type = java.util.UUID]
|
373
|
+
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
374
|
+
|
375
|
+
# conversion for effectiveDate [type = org.joda.time.LocalDate]
|
376
|
+
if !effectiveDate.nil?
|
377
|
+
effectiveDate = Java::org.joda.time.LocalDate.parse(effectiveDate.to_s)
|
378
|
+
end
|
379
|
+
|
380
|
+
# conversion for taxes [type = java.lang.Iterable]
|
381
|
+
tmp = java.util.ArrayList.new
|
382
|
+
(taxes || []).each do |m|
|
383
|
+
# conversion for m [type = org.killbill.billing.invoice.api.InvoiceItem]
|
384
|
+
m = m.to_java unless m.nil?
|
385
|
+
tmp.add(m)
|
386
|
+
end
|
387
|
+
taxes = tmp
|
388
|
+
|
389
|
+
# conversion for autoCommit [type = boolean]
|
390
|
+
autoCommit = autoCommit.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(autoCommit)
|
391
|
+
|
392
|
+
# conversion for properties [type = java.lang.Iterable]
|
393
|
+
tmp = java.util.ArrayList.new
|
394
|
+
(properties || []).each do |m|
|
395
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
396
|
+
m = m.to_java unless m.nil?
|
397
|
+
tmp.add(m)
|
398
|
+
end
|
399
|
+
properties = tmp
|
400
|
+
|
401
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
402
|
+
context = context.to_java unless context.nil?
|
403
|
+
begin
|
404
|
+
res = @real_java_api.insert_tax_items(accountId, effectiveDate, taxes, autoCommit, properties, context)
|
305
405
|
# conversion for res [type = java.util.List]
|
306
406
|
tmp = []
|
307
407
|
(res || []).each do |m|
|
@@ -334,8 +434,8 @@ module Killbill
|
|
334
434
|
end
|
335
435
|
end
|
336
436
|
|
337
|
-
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCredit(Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::boolean, Java::java.lang.String, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
338
|
-
def insert_credit(accountId, amount, effectiveDate, currency, autoCommit, description, itemDetails, context)
|
437
|
+
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCredit(Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::boolean, Java::java.lang.String, Java::java.lang.String, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
438
|
+
def insert_credit(accountId, amount, effectiveDate, currency, autoCommit, description, itemDetails, properties, context)
|
339
439
|
|
340
440
|
# conversion for accountId [type = java.util.UUID]
|
341
441
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
@@ -364,10 +464,19 @@ module Killbill
|
|
364
464
|
# conversion for itemDetails [type = java.lang.String]
|
365
465
|
itemDetails = itemDetails.to_s unless itemDetails.nil?
|
366
466
|
|
467
|
+
# conversion for properties [type = java.lang.Iterable]
|
468
|
+
tmp = java.util.ArrayList.new
|
469
|
+
(properties || []).each do |m|
|
470
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
471
|
+
m = m.to_java unless m.nil?
|
472
|
+
tmp.add(m)
|
473
|
+
end
|
474
|
+
properties = tmp
|
475
|
+
|
367
476
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
368
477
|
context = context.to_java unless context.nil?
|
369
478
|
begin
|
370
|
-
res = @real_java_api.insert_credit(accountId, amount, effectiveDate, currency, autoCommit, description, itemDetails, context)
|
479
|
+
res = @real_java_api.insert_credit(accountId, amount, effectiveDate, currency, autoCommit, description, itemDetails, properties, context)
|
371
480
|
# conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
|
372
481
|
res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
|
373
482
|
return res
|
@@ -376,8 +485,8 @@ module Killbill
|
|
376
485
|
end
|
377
486
|
end
|
378
487
|
|
379
|
-
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCreditForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::java.lang.String, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
380
|
-
def insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, description, itemDetails, context)
|
488
|
+
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertCreditForInvoice(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::org.joda.time.LocalDate, Java::org.killbill.billing.catalog.api.Currency, Java::java.lang.String, Java::java.lang.String, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
489
|
+
def insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, description, itemDetails, properties, context)
|
381
490
|
|
382
491
|
# conversion for accountId [type = java.util.UUID]
|
383
492
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
@@ -406,10 +515,19 @@ module Killbill
|
|
406
515
|
# conversion for itemDetails [type = java.lang.String]
|
407
516
|
itemDetails = itemDetails.to_s unless itemDetails.nil?
|
408
517
|
|
518
|
+
# conversion for properties [type = java.lang.Iterable]
|
519
|
+
tmp = java.util.ArrayList.new
|
520
|
+
(properties || []).each do |m|
|
521
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
522
|
+
m = m.to_java unless m.nil?
|
523
|
+
tmp.add(m)
|
524
|
+
end
|
525
|
+
properties = tmp
|
526
|
+
|
409
527
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
410
528
|
context = context.to_java unless context.nil?
|
411
529
|
begin
|
412
|
-
res = @real_java_api.insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, description, itemDetails, context)
|
530
|
+
res = @real_java_api.insert_credit_for_invoice(accountId, invoiceId, amount, effectiveDate, currency, description, itemDetails, properties, context)
|
413
531
|
# conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
|
414
532
|
res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
|
415
533
|
return res
|
@@ -418,8 +536,8 @@ module Killbill
|
|
418
536
|
end
|
419
537
|
end
|
420
538
|
|
421
|
-
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertInvoiceItemAdjustment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::java.lang.String, Java::java.lang.String, Java::org.killbill.billing.util.callcontext.CallContext)'
|
422
|
-
def insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, description, itemDetails, context)
|
539
|
+
java_signature 'Java::org.killbill.billing.invoice.api.InvoiceItem insertInvoiceItemAdjustment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::org.joda.time.LocalDate, Java::java.lang.String, Java::java.lang.String, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.CallContext)'
|
540
|
+
def insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, description, itemDetails, properties, context)
|
423
541
|
|
424
542
|
# conversion for accountId [type = java.util.UUID]
|
425
543
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
@@ -441,10 +559,19 @@ module Killbill
|
|
441
559
|
# conversion for itemDetails [type = java.lang.String]
|
442
560
|
itemDetails = itemDetails.to_s unless itemDetails.nil?
|
443
561
|
|
562
|
+
# conversion for properties [type = java.lang.Iterable]
|
563
|
+
tmp = java.util.ArrayList.new
|
564
|
+
(properties || []).each do |m|
|
565
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
566
|
+
m = m.to_java unless m.nil?
|
567
|
+
tmp.add(m)
|
568
|
+
end
|
569
|
+
properties = tmp
|
570
|
+
|
444
571
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
445
572
|
context = context.to_java unless context.nil?
|
446
573
|
begin
|
447
|
-
res = @real_java_api.insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, description, itemDetails, context)
|
574
|
+
res = @real_java_api.insert_invoice_item_adjustment(accountId, invoiceId, invoiceItemId, effectiveDate, description, itemDetails, properties, context)
|
448
575
|
# conversion for res [type = org.killbill.billing.invoice.api.InvoiceItem]
|
449
576
|
res = Killbill::Plugin::Model::InvoiceItem.new.to_ruby(res) unless res.nil?
|
450
577
|
return res
|
@@ -491,15 +618,15 @@ module Killbill
|
|
491
618
|
end
|
492
619
|
end
|
493
620
|
|
494
|
-
java_signature 'Java::void
|
495
|
-
def
|
621
|
+
java_signature 'Java::void consumeExistingCBAOnAccountWithUnpaidInvoices(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
|
622
|
+
def consume_existing_cba_onaccount_with_unpaid_invoices(accountId, context)
|
496
623
|
|
497
624
|
# conversion for accountId [type = java.util.UUID]
|
498
625
|
accountId = java.util.UUID.fromString(accountId.to_s) unless accountId.nil?
|
499
626
|
|
500
627
|
# conversion for context [type = org.killbill.billing.util.callcontext.CallContext]
|
501
628
|
context = context.to_java unless context.nil?
|
502
|
-
@real_java_api.
|
629
|
+
@real_java_api.consume_existing_cba_onaccount_with_unpaid_invoices(accountId, context)
|
503
630
|
end
|
504
631
|
|
505
632
|
java_signature 'Java::void commitInvoice(Java::java.util.UUID, Java::org.killbill.billing.util.callcontext.CallContext)'
|
@@ -49,7 +49,7 @@ module Killbill
|
|
49
49
|
# conversion for subscription_api [type = org.killbill.billing.entitlement.api.SubscriptionApi]
|
50
50
|
@subscription_api = @subscription_api.to_java unless @subscription_api.nil?
|
51
51
|
|
52
|
-
# conversion for invoice_payment_api [type = org.killbill.billing.
|
52
|
+
# conversion for invoice_payment_api [type = org.killbill.billing.payment.api.InvoicePaymentApi]
|
53
53
|
@invoice_payment_api = @invoice_payment_api.to_java unless @invoice_payment_api.nil?
|
54
54
|
|
55
55
|
# conversion for invoice_user_api [type = org.killbill.billing.invoice.api.InvoiceUserApi]
|
@@ -118,7 +118,7 @@ module Killbill
|
|
118
118
|
@subscription_api = j_obj.subscription_api
|
119
119
|
@subscription_api = Killbill::Plugin::Model::SubscriptionApi.new.to_ruby(@subscription_api) unless @subscription_api.nil?
|
120
120
|
|
121
|
-
# conversion for invoice_payment_api [type = org.killbill.billing.
|
121
|
+
# conversion for invoice_payment_api [type = org.killbill.billing.payment.api.InvoicePaymentApi]
|
122
122
|
@invoice_payment_api = j_obj.invoice_payment_api
|
123
123
|
@invoice_payment_api = Killbill::Plugin::Model::InvoicePaymentApi.new.to_ruby(@invoice_payment_api) unless @invoice_payment_api.nil?
|
124
124
|
|
@@ -1007,6 +1007,39 @@ module Killbill
|
|
1007
1007
|
end
|
1008
1008
|
end
|
1009
1009
|
|
1010
|
+
java_signature 'Java::org.killbill.billing.payment.api.Payment getPaymentByTransactionExternalKey(Java::java.lang.String, Java::boolean, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1011
|
+
def get_payment_by_transaction_external_key(transactionExternalKey, withPluginInfo, withAttempts, properties, context)
|
1012
|
+
|
1013
|
+
# conversion for transactionExternalKey [type = java.lang.String]
|
1014
|
+
transactionExternalKey = transactionExternalKey.to_s unless transactionExternalKey.nil?
|
1015
|
+
|
1016
|
+
# conversion for withPluginInfo [type = boolean]
|
1017
|
+
withPluginInfo = withPluginInfo.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(withPluginInfo)
|
1018
|
+
|
1019
|
+
# conversion for withAttempts [type = boolean]
|
1020
|
+
withAttempts = withAttempts.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(withAttempts)
|
1021
|
+
|
1022
|
+
# conversion for properties [type = java.lang.Iterable]
|
1023
|
+
tmp = java.util.ArrayList.new
|
1024
|
+
(properties || []).each do |m|
|
1025
|
+
# conversion for m [type = org.killbill.billing.payment.api.PluginProperty]
|
1026
|
+
m = m.to_java unless m.nil?
|
1027
|
+
tmp.add(m)
|
1028
|
+
end
|
1029
|
+
properties = tmp
|
1030
|
+
|
1031
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
1032
|
+
context = context.to_java unless context.nil?
|
1033
|
+
begin
|
1034
|
+
res = @real_java_api.get_payment_by_transaction_external_key(transactionExternalKey, withPluginInfo, withAttempts, properties, context)
|
1035
|
+
# conversion for res [type = org.killbill.billing.payment.api.Payment]
|
1036
|
+
res = Killbill::Plugin::Model::Payment.new.to_ruby(res) unless res.nil?
|
1037
|
+
return res
|
1038
|
+
rescue Java::org.killbill.billing.payment.api.PaymentApiException => e
|
1039
|
+
raise Killbill::Plugin::Model::PaymentApiException.new.to_ruby(e)
|
1040
|
+
end
|
1041
|
+
end
|
1042
|
+
|
1010
1043
|
java_signature 'Java::org.killbill.billing.util.entity.Pagination getPayments(Java::java.lang.Long, Java::java.lang.Long, Java::boolean, Java::boolean, Java::java.lang.Iterable, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1011
1044
|
def get_payments(offset, limit, withPluginInfo, withAttempts, properties, context)
|
1012
1045
|
|
@@ -1408,6 +1441,98 @@ module Killbill
|
|
1408
1441
|
raise Killbill::Plugin::Model::PaymentApiException.new.to_ruby(e)
|
1409
1442
|
end
|
1410
1443
|
end
|
1444
|
+
|
1445
|
+
java_signature 'Java::java.util.List getPaymentAuditLogsWithHistoryForId(Java::java.util.UUID, Java::org.killbill.billing.util.api.AuditLevel, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1446
|
+
def get_payment_audit_logs_with_history_for_id(paymentId, auditLevel, context)
|
1447
|
+
|
1448
|
+
# conversion for paymentId [type = java.util.UUID]
|
1449
|
+
paymentId = java.util.UUID.fromString(paymentId.to_s) unless paymentId.nil?
|
1450
|
+
|
1451
|
+
# conversion for auditLevel [type = org.killbill.billing.util.api.AuditLevel]
|
1452
|
+
auditLevel = Java::org.killbill.billing.util.api.AuditLevel.value_of( auditLevel.to_s ) unless auditLevel.nil?
|
1453
|
+
|
1454
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
1455
|
+
context = context.to_java unless context.nil?
|
1456
|
+
res = @real_java_api.get_payment_audit_logs_with_history_for_id(paymentId, auditLevel, context)
|
1457
|
+
# conversion for res [type = java.util.List]
|
1458
|
+
tmp = []
|
1459
|
+
(res || []).each do |m|
|
1460
|
+
# conversion for m [type = org.killbill.billing.util.audit.AuditLogWithHistory]
|
1461
|
+
m = Killbill::Plugin::Model::AuditLogWithHistory.new.to_ruby(m) unless m.nil?
|
1462
|
+
tmp << m
|
1463
|
+
end
|
1464
|
+
res = tmp
|
1465
|
+
return res
|
1466
|
+
end
|
1467
|
+
|
1468
|
+
java_signature 'Java::java.util.List getPaymentMethodAuditLogsWithHistoryForId(Java::java.util.UUID, Java::org.killbill.billing.util.api.AuditLevel, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1469
|
+
def get_payment_method_audit_logs_with_history_for_id(paymentMethodId, auditLevel, context)
|
1470
|
+
|
1471
|
+
# conversion for paymentMethodId [type = java.util.UUID]
|
1472
|
+
paymentMethodId = java.util.UUID.fromString(paymentMethodId.to_s) unless paymentMethodId.nil?
|
1473
|
+
|
1474
|
+
# conversion for auditLevel [type = org.killbill.billing.util.api.AuditLevel]
|
1475
|
+
auditLevel = Java::org.killbill.billing.util.api.AuditLevel.value_of( auditLevel.to_s ) unless auditLevel.nil?
|
1476
|
+
|
1477
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
1478
|
+
context = context.to_java unless context.nil?
|
1479
|
+
res = @real_java_api.get_payment_method_audit_logs_with_history_for_id(paymentMethodId, auditLevel, context)
|
1480
|
+
# conversion for res [type = java.util.List]
|
1481
|
+
tmp = []
|
1482
|
+
(res || []).each do |m|
|
1483
|
+
# conversion for m [type = org.killbill.billing.util.audit.AuditLogWithHistory]
|
1484
|
+
m = Killbill::Plugin::Model::AuditLogWithHistory.new.to_ruby(m) unless m.nil?
|
1485
|
+
tmp << m
|
1486
|
+
end
|
1487
|
+
res = tmp
|
1488
|
+
return res
|
1489
|
+
end
|
1490
|
+
|
1491
|
+
java_signature 'Java::java.util.List getPaymentAttemptAuditLogsWithHistoryForId(Java::java.util.UUID, Java::org.killbill.billing.util.api.AuditLevel, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1492
|
+
def get_payment_attempt_audit_logs_with_history_for_id(paymentAttemptId, auditLevel, context)
|
1493
|
+
|
1494
|
+
# conversion for paymentAttemptId [type = java.util.UUID]
|
1495
|
+
paymentAttemptId = java.util.UUID.fromString(paymentAttemptId.to_s) unless paymentAttemptId.nil?
|
1496
|
+
|
1497
|
+
# conversion for auditLevel [type = org.killbill.billing.util.api.AuditLevel]
|
1498
|
+
auditLevel = Java::org.killbill.billing.util.api.AuditLevel.value_of( auditLevel.to_s ) unless auditLevel.nil?
|
1499
|
+
|
1500
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
1501
|
+
context = context.to_java unless context.nil?
|
1502
|
+
res = @real_java_api.get_payment_attempt_audit_logs_with_history_for_id(paymentAttemptId, auditLevel, context)
|
1503
|
+
# conversion for res [type = java.util.List]
|
1504
|
+
tmp = []
|
1505
|
+
(res || []).each do |m|
|
1506
|
+
# conversion for m [type = org.killbill.billing.util.audit.AuditLogWithHistory]
|
1507
|
+
m = Killbill::Plugin::Model::AuditLogWithHistory.new.to_ruby(m) unless m.nil?
|
1508
|
+
tmp << m
|
1509
|
+
end
|
1510
|
+
res = tmp
|
1511
|
+
return res
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
java_signature 'Java::java.util.List getPaymentTransactionAuditLogsWithHistoryForId(Java::java.util.UUID, Java::org.killbill.billing.util.api.AuditLevel, Java::org.killbill.billing.util.callcontext.TenantContext)'
|
1515
|
+
def get_payment_transaction_audit_logs_with_history_for_id(paymentTransactionId, auditLevel, context)
|
1516
|
+
|
1517
|
+
# conversion for paymentTransactionId [type = java.util.UUID]
|
1518
|
+
paymentTransactionId = java.util.UUID.fromString(paymentTransactionId.to_s) unless paymentTransactionId.nil?
|
1519
|
+
|
1520
|
+
# conversion for auditLevel [type = org.killbill.billing.util.api.AuditLevel]
|
1521
|
+
auditLevel = Java::org.killbill.billing.util.api.AuditLevel.value_of( auditLevel.to_s ) unless auditLevel.nil?
|
1522
|
+
|
1523
|
+
# conversion for context [type = org.killbill.billing.util.callcontext.TenantContext]
|
1524
|
+
context = context.to_java unless context.nil?
|
1525
|
+
res = @real_java_api.get_payment_transaction_audit_logs_with_history_for_id(paymentTransactionId, auditLevel, context)
|
1526
|
+
# conversion for res [type = java.util.List]
|
1527
|
+
tmp = []
|
1528
|
+
(res || []).each do |m|
|
1529
|
+
# conversion for m [type = org.killbill.billing.util.audit.AuditLogWithHistory]
|
1530
|
+
m = Killbill::Plugin::Model::AuditLogWithHistory.new.to_ruby(m) unless m.nil?
|
1531
|
+
tmp << m
|
1532
|
+
end
|
1533
|
+
res = tmp
|
1534
|
+
return res
|
1535
|
+
end
|
1411
1536
|
end
|
1412
1537
|
end
|
1413
1538
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#############################################################################################
|
2
|
+
# #
|
3
|
+
# Copyright 2010-2013 Ning, Inc. #
|
4
|
+
# Copyright 2014 Groupon, Inc. #
|
5
|
+
# Copyright 2014 The Billing Project, LLC #
|
6
|
+
# #
|
7
|
+
# The Billing Project licenses this file to you under the Apache License, version 2.0 #
|
8
|
+
# (the "License"); you may not use this file except in compliance with the #
|
9
|
+
# License. You may obtain a copy of the License at: #
|
10
|
+
# #
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0 #
|
12
|
+
# #
|
13
|
+
# Unless required by applicable law or agreed to in writing, software #
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
|
15
|
+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the #
|
16
|
+
# License for the specific language governing permissions and limitations #
|
17
|
+
# under the License. #
|
18
|
+
# #
|
19
|
+
#############################################################################################
|
@@ -109,23 +109,18 @@ require 'killbill/gen/api/invoice_creation_event'
|
|
109
109
|
require 'killbill/gen/api/invoice_item'
|
110
110
|
require 'killbill/gen/api/invoice_parent_child'
|
111
111
|
require 'killbill/gen/api/invoice_payment'
|
112
|
-
require 'killbill/gen/api/invoice_payment_api'
|
113
112
|
require 'killbill/gen/api/invoice_user_api'
|
114
113
|
require 'killbill/gen/api/killbill_api'
|
115
114
|
require 'killbill/gen/api/plugin_config_service_api'
|
115
|
+
require 'killbill/gen/api/health_status'
|
116
|
+
require 'killbill/gen/api/healthcheck'
|
116
117
|
require 'killbill/gen/api/osgi_killbill'
|
117
118
|
require 'killbill/gen/api/osgi_plugin_properties'
|
118
119
|
require 'killbill/gen/api/plugin_info'
|
119
120
|
require 'killbill/gen/api/plugin_service_info'
|
120
121
|
require 'killbill/gen/api/plugins_info_api'
|
121
|
-
require 'killbill/gen/api/email_notification'
|
122
|
-
require 'killbill/gen/api/overdue_api'
|
123
|
-
require 'killbill/gen/api/overdue_api_exception'
|
124
|
-
require 'killbill/gen/api/overdue_condition'
|
125
|
-
require 'killbill/gen/api/overdue_config'
|
126
|
-
require 'killbill/gen/api/overdue_state'
|
127
|
-
require 'killbill/gen/api/overdue_states_account'
|
128
122
|
require 'killbill/gen/api/admin_payment_api'
|
123
|
+
require 'killbill/gen/api/invoice_payment_api'
|
129
124
|
require 'killbill/gen/api/payment'
|
130
125
|
require 'killbill/gen/api/payment_api'
|
131
126
|
require 'killbill/gen/api/payment_api_exception'
|
@@ -162,6 +157,7 @@ require 'killbill/gen/api/tag_user_api'
|
|
162
157
|
require 'killbill/gen/api/account_audit_logs'
|
163
158
|
require 'killbill/gen/api/account_audit_logs_for_object_type'
|
164
159
|
require 'killbill/gen/api/audit_log'
|
160
|
+
require 'killbill/gen/api/audit_log_with_history'
|
165
161
|
require 'killbill/gen/api/call_context'
|
166
162
|
require 'killbill/gen/api/tenant_context'
|
167
163
|
require 'killbill/gen/api/custom_field'
|