killbill 1.1.2 → 1.2.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.
- data/VERSION +1 -1
- data/gen_config/api.conf +42 -0
- data/gen_config/plugin_api.conf +14 -0
- data/lib/killbill.rb +3 -3
- data/lib/killbill/gen/{account.rb → api/account.rb} +0 -0
- data/lib/killbill/gen/{account_api_exception.rb → api/account_api_exception.rb} +0 -0
- data/lib/killbill/gen/{account_data.rb → api/account_data.rb} +0 -0
- data/lib/killbill/gen/{account_email.rb → api/account_email.rb} +0 -0
- data/lib/killbill/gen/{account_user_api.rb → api/account_user_api.rb} +19 -16
- data/lib/killbill/gen/{audit_user_api.rb → api/audit_user_api.rb} +25 -0
- data/lib/killbill/gen/{billing_exception_base.rb → api/billing_exception_base.rb} +0 -0
- data/lib/killbill/gen/{blockable.rb → api/blockable.rb} +0 -0
- data/lib/killbill/gen/{blocking_api_exception.rb → api/blocking_api_exception.rb} +0 -0
- data/lib/killbill/gen/{blocking_state.rb → api/blocking_state.rb} +0 -0
- data/lib/killbill/gen/{call_context.rb → api/call_context.rb} +0 -0
- data/lib/killbill/gen/{catalog.rb → api/catalog.rb} +0 -0
- data/lib/killbill/gen/{catalog_api_exception.rb → api/catalog_api_exception.rb} +0 -0
- data/lib/killbill/gen/{catalog_user_api.rb → api/catalog_user_api.rb} +2 -0
- data/lib/killbill/gen/{column_info.rb → api/column_info.rb} +0 -0
- data/lib/killbill/gen/{control_tag.rb → api/control_tag.rb} +0 -0
- data/lib/killbill/gen/{currency_value_null.rb → api/currency_value_null.rb} +0 -0
- data/lib/killbill/gen/{custom_field.rb → api/custom_field.rb} +0 -0
- data/lib/killbill/gen/{custom_field_api_exception.rb → api/custom_field_api_exception.rb} +0 -0
- data/lib/killbill/gen/{custom_field_user_api.rb → api/custom_field_user_api.rb} +10 -0
- data/lib/killbill/gen/{database_export_output_stream.rb → api/database_export_output_stream.rb} +0 -0
- data/lib/killbill/gen/{duration.rb → api/duration.rb} +0 -0
- data/lib/killbill/gen/{entitlement_user_api.rb → api/entitlement_user_api.rb} +31 -0
- data/lib/killbill/gen/{entitlement_user_api_exception.rb → api/entitlement_user_api_exception.rb} +0 -0
- data/lib/killbill/gen/{entity.rb → api/entity.rb} +0 -0
- data/lib/killbill/gen/{illegal_plan_change.rb → api/illegal_plan_change.rb} +0 -0
- data/lib/killbill/gen/{international_price.rb → api/international_price.rb} +2 -2
- data/lib/killbill/gen/{invalid_config_exception.rb → api/invalid_config_exception.rb} +0 -0
- data/lib/killbill/gen/{invoice.rb → api/invoice.rb} +12 -12
- data/lib/killbill/gen/{invoice_api_exception.rb → api/invoice_api_exception.rb} +0 -0
- data/lib/killbill/gen/{invoice_creation_event.rb → api/invoice_creation_event.rb} +0 -0
- data/lib/killbill/gen/api/invoice_formatter.rb +278 -0
- data/lib/killbill/gen/{invoice_item.rb → api/invoice_item.rb} +4 -4
- data/lib/killbill/gen/api/invoice_item_formatter.rb +213 -0
- data/lib/killbill/gen/{invoice_payment.rb → api/invoice_payment.rb} +2 -2
- data/lib/killbill/gen/{invoice_payment_api.rb → api/invoice_payment_api.rb} +23 -2
- data/lib/killbill/gen/{invoice_user_api.rb → api/invoice_user_api.rb} +85 -8
- data/lib/killbill/gen/{junction_api.rb → api/junction_api.rb} +2 -0
- data/lib/killbill/gen/{limit.rb → api/limit.rb} +0 -0
- data/lib/killbill/gen/{listing.rb → api/listing.rb} +0 -0
- data/lib/killbill/gen/{migration_plan.rb → api/migration_plan.rb} +0 -0
- data/lib/killbill/gen/{mutable_account_data.rb → api/mutable_account_data.rb} +0 -0
- data/lib/killbill/gen/api/osgi_killbill.rb +175 -0
- data/lib/killbill/gen/{external_bus.rb → api/osgi_plugin_properties.rb} +3 -3
- data/lib/killbill/gen/{payment.rb → api/payment.rb} +4 -4
- data/lib/killbill/gen/{payment_api.rb → api/payment_api.rb} +63 -4
- data/lib/killbill/gen/{payment_api_exception.rb → api/payment_api_exception.rb} +0 -0
- data/lib/killbill/gen/{payment_attempt.rb → api/payment_attempt.rb} +0 -0
- data/lib/killbill/gen/{payment_method.rb → api/payment_method.rb} +0 -0
- data/lib/killbill/gen/{payment_method_kv_info.rb → api/payment_method_kv_info.rb} +0 -0
- data/lib/killbill/gen/{payment_method_plugin.rb → api/payment_method_plugin.rb} +0 -0
- data/lib/killbill/gen/{plan.rb → api/plan.rb} +0 -0
- data/lib/killbill/gen/{plan_change_result.rb → api/plan_change_result.rb} +0 -0
- data/lib/killbill/gen/{plan_phase.rb → api/plan_phase.rb} +0 -0
- data/lib/killbill/gen/{plan_phase_specifier.rb → api/plan_phase_specifier.rb} +0 -0
- data/lib/killbill/gen/{plan_specifier.rb → api/plan_specifier.rb} +0 -0
- data/lib/killbill/gen/api/plugin_config_service_api.rb +64 -0
- data/lib/killbill/gen/{price.rb → api/price.rb} +2 -2
- data/lib/killbill/gen/{price_list.rb → api/price_list.rb} +0 -0
- data/lib/killbill/gen/{price_list_set.rb → api/price_list_set.rb} +0 -0
- data/lib/killbill/gen/{product.rb → api/product.rb} +0 -0
- data/lib/killbill/gen/{record_id_api.rb → api/record_id_api.rb} +3 -0
- data/lib/killbill/gen/{refund.rb → api/refund.rb} +2 -2
- data/lib/killbill/gen/api/require_gen.rb +107 -0
- data/lib/killbill/gen/api/rolled_up_usage.rb +101 -0
- data/lib/killbill/gen/{static_catalog.rb → api/static_catalog.rb} +0 -0
- data/lib/killbill/gen/{subscription.rb → api/subscription.rb} +0 -0
- data/lib/killbill/gen/{subscription_bundle.rb → api/subscription_bundle.rb} +0 -0
- data/lib/killbill/gen/{subscription_status_dry_run.rb → api/subscription_status_dry_run.rb} +0 -0
- data/lib/killbill/gen/{subscription_transition.rb → api/subscription_transition.rb} +0 -0
- data/lib/killbill/gen/{tag.rb → api/tag.rb} +0 -0
- data/lib/killbill/gen/{tag_api_exception.rb → api/tag_api_exception.rb} +0 -0
- data/lib/killbill/gen/{tag_definition.rb → api/tag_definition.rb} +0 -0
- data/lib/killbill/gen/{tag_definition_api_exception.rb → api/tag_definition_api_exception.rb} +0 -0
- data/lib/killbill/gen/{tag_user_api.rb → api/tag_user_api.rb} +34 -0
- data/lib/killbill/gen/{tenant.rb → api/tenant.rb} +0 -0
- data/lib/killbill/gen/{tenant_api_exception.rb → api/tenant_api_exception.rb} +0 -0
- data/lib/killbill/gen/{tenant_context.rb → api/tenant_context.rb} +0 -0
- data/lib/killbill/gen/{tenant_data.rb → api/tenant_data.rb} +0 -0
- data/lib/killbill/gen/{tenant_kv.rb → api/tenant_kv.rb} +0 -0
- data/lib/killbill/gen/{tenant_user_api.rb → api/tenant_user_api.rb} +11 -0
- data/lib/killbill/gen/{unit.rb → api/unit.rb} +0 -0
- data/lib/killbill/gen/api/usage_user_api.rb +89 -0
- data/lib/killbill/gen/{ext_bus_event.rb → plugin-api/ext_bus_event.rb} +0 -0
- data/lib/killbill/gen/plugin-api/notification_plugin_api.rb +61 -0
- data/lib/killbill/gen/{payment_info_plugin.rb → plugin-api/payment_info_plugin.rb} +2 -2
- data/lib/killbill/gen/{payment_method_info_plugin.rb → plugin-api/payment_method_info_plugin.rb} +0 -0
- data/lib/killbill/gen/plugin-api/payment_plugin_api.rb +356 -0
- data/lib/killbill/gen/{payment_plugin_api_exception.rb → plugin-api/payment_plugin_api_exception.rb} +0 -0
- data/lib/killbill/gen/{refund_info_plugin.rb → plugin-api/refund_info_plugin.rb} +2 -2
- data/lib/killbill/gen/plugin-api/require_gen.rb +32 -0
- data/lib/killbill/jplugin.rb +0 -71
- data/lib/killbill/killbill_api.rb +0 -7
- data/spec/killbill/killbillapi_spec.rb +1 -1
- data/spec/killbill/notification_plugin_api_spec.rb +22 -0
- data/spec/killbill/payment_plugin_api_spec.rb +122 -0
- data/spec/killbill/payment_test.rb +1 -1
- metadata +100 -107
- data/lib/killbill/enum.rb +0 -72
- data/lib/killbill/gen/account_service.rb +0 -55
- data/lib/killbill/gen/beatrix_service.rb +0 -55
- data/lib/killbill/gen/catalog_service.rb +0 -69
- data/lib/killbill/gen/default_mutable_account_data.rb +0 -180
- data/lib/killbill/gen/entitlement_service.rb +0 -55
- data/lib/killbill/gen/entity_persistence_exception.rb +0 -66
- data/lib/killbill/gen/export_user_api.rb +0 -17
- data/lib/killbill/gen/invoice_migration_api.rb +0 -66
- data/lib/killbill/gen/invoice_notifier.rb +0 -51
- data/lib/killbill/gen/invoice_service.rb +0 -55
- data/lib/killbill/gen/migration_account_data.rb +0 -228
- data/lib/killbill/gen/no_op_payment_plugin_api.rb +0 -254
- data/lib/killbill/gen/payment_plugin_api.rb +0 -232
- data/lib/killbill/gen/payment_service.rb +0 -62
- data/lib/killbill/gen/require_gen.rb +0 -120
- data/lib/killbill/gen/tenant_service.rb +0 -55
- data/lib/killbill/jpayment.rb +0 -107
- data/spec/killbill/jnotification_spec.rb +0 -39
- data/spec/killbill/jpayment_spec.rb +0 -126
- data/tools/java2ruby.rb +0 -440
|
@@ -1,254 +0,0 @@
|
|
|
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 Api
|
|
29
|
-
|
|
30
|
-
java_package 'com.ning.billing.payment.plugin.api'
|
|
31
|
-
class NoOpPaymentPluginApi
|
|
32
|
-
|
|
33
|
-
include com.ning.billing.payment.plugin.api.NoOpPaymentPluginApi
|
|
34
|
-
|
|
35
|
-
def initialize(real_java_api)
|
|
36
|
-
@real_java_api = real_java_api
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin processPayment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
41
|
-
def process_payment(kbAccountId, kbPaymentId, kbPaymentMethodId, amount, currency, context)
|
|
42
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
43
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
44
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
45
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
46
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
47
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
48
|
-
# conversion for amount [type = java.math.BigDecimal]
|
|
49
|
-
if amount.nil?
|
|
50
|
-
amount = java.math.BigDecimal::ZERO
|
|
51
|
-
else
|
|
52
|
-
amount = java.math.BigDecimal.new(amount.to_i)
|
|
53
|
-
end
|
|
54
|
-
# conversion for currency [type = com.ning.billing.catalog.api.Currency]
|
|
55
|
-
currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
|
|
56
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
57
|
-
context = context.to_java unless context.nil?
|
|
58
|
-
begin
|
|
59
|
-
res = @real_java_api.process_payment(kbAccountId, kbPaymentId, kbPaymentMethodId, amount, currency, context)
|
|
60
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.PaymentInfoPlugin]
|
|
61
|
-
res = Killbill::Plugin::Model::PaymentInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
62
|
-
return res
|
|
63
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
64
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin getPaymentInfo(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
69
|
-
def get_payment_info(kbAccountId, kbPaymentId, context)
|
|
70
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
71
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
72
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
73
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
74
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
75
|
-
context = context.to_java unless context.nil?
|
|
76
|
-
begin
|
|
77
|
-
res = @real_java_api.get_payment_info(kbAccountId, kbPaymentId, context)
|
|
78
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.PaymentInfoPlugin]
|
|
79
|
-
res = Killbill::Plugin::Model::PaymentInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
80
|
-
return res
|
|
81
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
82
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.RefundInfoPlugin processRefund(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
87
|
-
def process_refund(kbAccountId, kbPaymentId, refundAmount, currency, context)
|
|
88
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
89
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
90
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
91
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
92
|
-
# conversion for refundAmount [type = java.math.BigDecimal]
|
|
93
|
-
if refundAmount.nil?
|
|
94
|
-
refundAmount = java.math.BigDecimal::ZERO
|
|
95
|
-
else
|
|
96
|
-
refundAmount = java.math.BigDecimal.new(refundAmount.to_i)
|
|
97
|
-
end
|
|
98
|
-
# conversion for currency [type = com.ning.billing.catalog.api.Currency]
|
|
99
|
-
currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
|
|
100
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
101
|
-
context = context.to_java unless context.nil?
|
|
102
|
-
begin
|
|
103
|
-
res = @real_java_api.process_refund(kbAccountId, kbPaymentId, refundAmount, currency, context)
|
|
104
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
|
105
|
-
res = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
106
|
-
return res
|
|
107
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
108
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
java_signature 'Java::java.util.List getRefundInfo(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
113
|
-
def get_refund_info(kbAccountId, kbPaymentId, context)
|
|
114
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
115
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
116
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
117
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
118
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
119
|
-
context = context.to_java unless context.nil?
|
|
120
|
-
begin
|
|
121
|
-
res = @real_java_api.get_refund_info(kbAccountId, kbPaymentId, context)
|
|
122
|
-
# conversion for res [type = java.util.List]
|
|
123
|
-
tmp = []
|
|
124
|
-
(res || []).each do |m|
|
|
125
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
|
126
|
-
m = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(m) unless m.nil?
|
|
127
|
-
tmp << m
|
|
128
|
-
end
|
|
129
|
-
res = tmp
|
|
130
|
-
return res
|
|
131
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
132
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
java_signature 'Java::void addPaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.payment.api.PaymentMethodPlugin, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
137
|
-
def add_payment_method(kbAccountId, kbPaymentMethodId, paymentMethodProps, setDefault, context)
|
|
138
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
139
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
140
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
141
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
142
|
-
# conversion for paymentMethodProps [type = com.ning.billing.payment.api.PaymentMethodPlugin]
|
|
143
|
-
paymentMethodProps = paymentMethodProps.to_java unless paymentMethodProps.nil?
|
|
144
|
-
# conversion for setDefault [type = boolean]
|
|
145
|
-
setDefault = setDefault.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(setDefault)
|
|
146
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
147
|
-
context = context.to_java unless context.nil?
|
|
148
|
-
@real_java_api.add_payment_method(kbAccountId, kbPaymentMethodId, paymentMethodProps, setDefault, context)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
java_signature 'Java::void deletePaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
152
|
-
def delete_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
153
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
154
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
155
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
156
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
157
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
158
|
-
context = context.to_java unless context.nil?
|
|
159
|
-
@real_java_api.delete_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
java_signature 'Java::com.ning.billing.payment.api.PaymentMethodPlugin getPaymentMethodDetail(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
163
|
-
def get_payment_method_detail(kbAccountId, kbPaymentMethodId, context)
|
|
164
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
165
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
166
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
167
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
168
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
169
|
-
context = context.to_java unless context.nil?
|
|
170
|
-
begin
|
|
171
|
-
res = @real_java_api.get_payment_method_detail(kbAccountId, kbPaymentMethodId, context)
|
|
172
|
-
# conversion for res [type = com.ning.billing.payment.api.PaymentMethodPlugin]
|
|
173
|
-
res = Killbill::Plugin::Model::PaymentMethodPlugin.new.to_ruby(res) unless res.nil?
|
|
174
|
-
return res
|
|
175
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
176
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
java_signature 'Java::void setDefaultPaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
181
|
-
def set_default_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
182
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
183
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
184
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
185
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
186
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
187
|
-
context = context.to_java unless context.nil?
|
|
188
|
-
@real_java_api.set_default_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
java_signature 'Java::java.util.List getPaymentMethods(Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
192
|
-
def get_payment_methods(kbAccountId, refreshFromGateway, context)
|
|
193
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
194
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
195
|
-
# conversion for refreshFromGateway [type = boolean]
|
|
196
|
-
refreshFromGateway = refreshFromGateway.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(refreshFromGateway)
|
|
197
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
198
|
-
context = context.to_java unless context.nil?
|
|
199
|
-
begin
|
|
200
|
-
res = @real_java_api.get_payment_methods(kbAccountId, refreshFromGateway, context)
|
|
201
|
-
# conversion for res [type = java.util.List]
|
|
202
|
-
tmp = []
|
|
203
|
-
(res || []).each do |m|
|
|
204
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.PaymentMethodInfoPlugin]
|
|
205
|
-
m = Killbill::Plugin::Model::PaymentMethodInfoPlugin.new.to_ruby(m) unless m.nil?
|
|
206
|
-
tmp << m
|
|
207
|
-
end
|
|
208
|
-
res = tmp
|
|
209
|
-
return res
|
|
210
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
211
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
java_signature 'Java::void resetPaymentMethods(Java::java.util.UUID, Java::java.util.List)'
|
|
216
|
-
def reset_payment_methods(kbAccountId, paymentMethods)
|
|
217
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
218
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
219
|
-
# conversion for paymentMethods [type = java.util.List]
|
|
220
|
-
tmp = java.util.ArrayList.new
|
|
221
|
-
(paymentMethods || []).each do |m|
|
|
222
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.PaymentMethodInfoPlugin]
|
|
223
|
-
m = m.to_java unless m.nil?
|
|
224
|
-
tmp.add(m)
|
|
225
|
-
end
|
|
226
|
-
paymentMethods = tmp
|
|
227
|
-
@real_java_api.reset_payment_methods(kbAccountId, paymentMethods)
|
|
228
|
-
end
|
|
229
|
-
|
|
230
|
-
java_signature 'Java::void clear()'
|
|
231
|
-
def clear()
|
|
232
|
-
@real_java_api.clear()
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
java_signature 'Java::void makeNextPaymentFailWithError()'
|
|
236
|
-
def make_next_payment_fail_with_error()
|
|
237
|
-
@real_java_api.make_next_payment_fail_with_error()
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
java_signature 'Java::void makeNextPaymentFailWithException()'
|
|
241
|
-
def make_next_payment_fail_with_exception()
|
|
242
|
-
@real_java_api.make_next_payment_fail_with_exception()
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
java_signature 'Java::void makeAllInvoicesFailWithError(Java::boolean)'
|
|
246
|
-
def make_all_invoices_fail_with_error(failure)
|
|
247
|
-
# conversion for failure [type = boolean]
|
|
248
|
-
failure = failure.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(failure)
|
|
249
|
-
@real_java_api.make_all_invoices_fail_with_error(failure)
|
|
250
|
-
end
|
|
251
|
-
end
|
|
252
|
-
end
|
|
253
|
-
end
|
|
254
|
-
end
|
|
@@ -1,232 +0,0 @@
|
|
|
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 Api
|
|
29
|
-
|
|
30
|
-
java_package 'com.ning.billing.payment.plugin.api'
|
|
31
|
-
class PaymentPluginApi
|
|
32
|
-
|
|
33
|
-
include com.ning.billing.payment.plugin.api.PaymentPluginApi
|
|
34
|
-
|
|
35
|
-
def initialize(real_java_api)
|
|
36
|
-
@real_java_api = real_java_api
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin processPayment(Java::java.util.UUID, Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
41
|
-
def process_payment(kbAccountId, kbPaymentId, kbPaymentMethodId, amount, currency, context)
|
|
42
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
43
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
44
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
45
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
46
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
47
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
48
|
-
# conversion for amount [type = java.math.BigDecimal]
|
|
49
|
-
if amount.nil?
|
|
50
|
-
amount = java.math.BigDecimal::ZERO
|
|
51
|
-
else
|
|
52
|
-
amount = java.math.BigDecimal.new(amount.to_i)
|
|
53
|
-
end
|
|
54
|
-
# conversion for currency [type = com.ning.billing.catalog.api.Currency]
|
|
55
|
-
currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
|
|
56
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
57
|
-
context = context.to_java unless context.nil?
|
|
58
|
-
begin
|
|
59
|
-
res = @real_java_api.process_payment(kbAccountId, kbPaymentId, kbPaymentMethodId, amount, currency, context)
|
|
60
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.PaymentInfoPlugin]
|
|
61
|
-
res = Killbill::Plugin::Model::PaymentInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
62
|
-
return res
|
|
63
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
64
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.PaymentInfoPlugin getPaymentInfo(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
69
|
-
def get_payment_info(kbAccountId, kbPaymentId, context)
|
|
70
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
71
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
72
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
73
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
74
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
75
|
-
context = context.to_java unless context.nil?
|
|
76
|
-
begin
|
|
77
|
-
res = @real_java_api.get_payment_info(kbAccountId, kbPaymentId, context)
|
|
78
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.PaymentInfoPlugin]
|
|
79
|
-
res = Killbill::Plugin::Model::PaymentInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
80
|
-
return res
|
|
81
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
82
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
83
|
-
end
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
java_signature 'Java::com.ning.billing.payment.plugin.api.RefundInfoPlugin processRefund(Java::java.util.UUID, Java::java.util.UUID, Java::java.math.BigDecimal, Java::com.ning.billing.catalog.api.Currency, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
87
|
-
def process_refund(kbAccountId, kbPaymentId, refundAmount, currency, context)
|
|
88
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
89
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
90
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
91
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
92
|
-
# conversion for refundAmount [type = java.math.BigDecimal]
|
|
93
|
-
if refundAmount.nil?
|
|
94
|
-
refundAmount = java.math.BigDecimal::ZERO
|
|
95
|
-
else
|
|
96
|
-
refundAmount = java.math.BigDecimal.new(refundAmount.to_i)
|
|
97
|
-
end
|
|
98
|
-
# conversion for currency [type = com.ning.billing.catalog.api.Currency]
|
|
99
|
-
currency = Java::com.ning.billing.catalog.api.Currency.value_of("#{currency.to_s}") unless currency.nil?
|
|
100
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
101
|
-
context = context.to_java unless context.nil?
|
|
102
|
-
begin
|
|
103
|
-
res = @real_java_api.process_refund(kbAccountId, kbPaymentId, refundAmount, currency, context)
|
|
104
|
-
# conversion for res [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
|
105
|
-
res = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(res) unless res.nil?
|
|
106
|
-
return res
|
|
107
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
108
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
109
|
-
end
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
java_signature 'Java::java.util.List getRefundInfo(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
113
|
-
def get_refund_info(kbAccountId, kbPaymentId, context)
|
|
114
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
115
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
116
|
-
# conversion for kbPaymentId [type = java.util.UUID]
|
|
117
|
-
kbPaymentId = java.util.UUID.fromString(kbPaymentId.to_s) unless kbPaymentId.nil?
|
|
118
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
119
|
-
context = context.to_java unless context.nil?
|
|
120
|
-
begin
|
|
121
|
-
res = @real_java_api.get_refund_info(kbAccountId, kbPaymentId, context)
|
|
122
|
-
# conversion for res [type = java.util.List]
|
|
123
|
-
tmp = []
|
|
124
|
-
(res || []).each do |m|
|
|
125
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.RefundInfoPlugin]
|
|
126
|
-
m = Killbill::Plugin::Model::RefundInfoPlugin.new.to_ruby(m) unless m.nil?
|
|
127
|
-
tmp << m
|
|
128
|
-
end
|
|
129
|
-
res = tmp
|
|
130
|
-
return res
|
|
131
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
132
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
133
|
-
end
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
java_signature 'Java::void addPaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.payment.api.PaymentMethodPlugin, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
137
|
-
def add_payment_method(kbAccountId, kbPaymentMethodId, paymentMethodProps, setDefault, context)
|
|
138
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
139
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
140
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
141
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
142
|
-
# conversion for paymentMethodProps [type = com.ning.billing.payment.api.PaymentMethodPlugin]
|
|
143
|
-
paymentMethodProps = paymentMethodProps.to_java unless paymentMethodProps.nil?
|
|
144
|
-
# conversion for setDefault [type = boolean]
|
|
145
|
-
setDefault = setDefault.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(setDefault)
|
|
146
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
147
|
-
context = context.to_java unless context.nil?
|
|
148
|
-
@real_java_api.add_payment_method(kbAccountId, kbPaymentMethodId, paymentMethodProps, setDefault, context)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
java_signature 'Java::void deletePaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
152
|
-
def delete_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
153
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
154
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
155
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
156
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
157
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
158
|
-
context = context.to_java unless context.nil?
|
|
159
|
-
@real_java_api.delete_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
java_signature 'Java::com.ning.billing.payment.api.PaymentMethodPlugin getPaymentMethodDetail(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.TenantContext)'
|
|
163
|
-
def get_payment_method_detail(kbAccountId, kbPaymentMethodId, context)
|
|
164
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
165
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
166
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
167
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
168
|
-
# conversion for context [type = com.ning.billing.util.callcontext.TenantContext]
|
|
169
|
-
context = context.to_java unless context.nil?
|
|
170
|
-
begin
|
|
171
|
-
res = @real_java_api.get_payment_method_detail(kbAccountId, kbPaymentMethodId, context)
|
|
172
|
-
# conversion for res [type = com.ning.billing.payment.api.PaymentMethodPlugin]
|
|
173
|
-
res = Killbill::Plugin::Model::PaymentMethodPlugin.new.to_ruby(res) unless res.nil?
|
|
174
|
-
return res
|
|
175
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
176
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
java_signature 'Java::void setDefaultPaymentMethod(Java::java.util.UUID, Java::java.util.UUID, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
181
|
-
def set_default_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
182
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
183
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
184
|
-
# conversion for kbPaymentMethodId [type = java.util.UUID]
|
|
185
|
-
kbPaymentMethodId = java.util.UUID.fromString(kbPaymentMethodId.to_s) unless kbPaymentMethodId.nil?
|
|
186
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
187
|
-
context = context.to_java unless context.nil?
|
|
188
|
-
@real_java_api.set_default_payment_method(kbAccountId, kbPaymentMethodId, context)
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
java_signature 'Java::java.util.List getPaymentMethods(Java::java.util.UUID, Java::boolean, Java::com.ning.billing.util.callcontext.CallContext)'
|
|
192
|
-
def get_payment_methods(kbAccountId, refreshFromGateway, context)
|
|
193
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
194
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
195
|
-
# conversion for refreshFromGateway [type = boolean]
|
|
196
|
-
refreshFromGateway = refreshFromGateway.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(refreshFromGateway)
|
|
197
|
-
# conversion for context [type = com.ning.billing.util.callcontext.CallContext]
|
|
198
|
-
context = context.to_java unless context.nil?
|
|
199
|
-
begin
|
|
200
|
-
res = @real_java_api.get_payment_methods(kbAccountId, refreshFromGateway, context)
|
|
201
|
-
# conversion for res [type = java.util.List]
|
|
202
|
-
tmp = []
|
|
203
|
-
(res || []).each do |m|
|
|
204
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.PaymentMethodInfoPlugin]
|
|
205
|
-
m = Killbill::Plugin::Model::PaymentMethodInfoPlugin.new.to_ruby(m) unless m.nil?
|
|
206
|
-
tmp << m
|
|
207
|
-
end
|
|
208
|
-
res = tmp
|
|
209
|
-
return res
|
|
210
|
-
rescue Java::com.ning.billing.payment.plugin.api.PaymentPluginApiException => e
|
|
211
|
-
raise Killbill::Plugin::Model::PaymentPluginApiException.new.to_ruby(e)
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
java_signature 'Java::void resetPaymentMethods(Java::java.util.UUID, Java::java.util.List)'
|
|
216
|
-
def reset_payment_methods(kbAccountId, paymentMethods)
|
|
217
|
-
# conversion for kbAccountId [type = java.util.UUID]
|
|
218
|
-
kbAccountId = java.util.UUID.fromString(kbAccountId.to_s) unless kbAccountId.nil?
|
|
219
|
-
# conversion for paymentMethods [type = java.util.List]
|
|
220
|
-
tmp = java.util.ArrayList.new
|
|
221
|
-
(paymentMethods || []).each do |m|
|
|
222
|
-
# conversion for m [type = com.ning.billing.payment.plugin.api.PaymentMethodInfoPlugin]
|
|
223
|
-
m = m.to_java unless m.nil?
|
|
224
|
-
tmp.add(m)
|
|
225
|
-
end
|
|
226
|
-
paymentMethods = tmp
|
|
227
|
-
@real_java_api.reset_payment_methods(kbAccountId, paymentMethods)
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
end
|
|
232
|
-
end
|