Class: Killbill::Plugin::Model::PaymentOptions
- Defined in:
- lib/killbill/gen/api/payment_options.rb
Instance Attribute Summary collapse
-
#is_external_payment ⇒ Object
Returns the value of attribute is_external_payment.
-
#payment_control_plugin_names ⇒ Object
Returns the value of attribute payment_control_plugin_names.
Instance Method Summary collapse
-
#initialize ⇒ PaymentOptions
constructor
A new instance of PaymentOptions.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PaymentOptions
Returns a new instance of PaymentOptions.
39 40 |
# File 'lib/killbill/gen/api/payment_options.rb', line 39 def initialize() end |
Instance Attribute Details
#is_external_payment ⇒ Object
Returns the value of attribute is_external_payment.
37 38 39 |
# File 'lib/killbill/gen/api/payment_options.rb', line 37 def is_external_payment @is_external_payment end |
#payment_control_plugin_names ⇒ Object
Returns the value of attribute payment_control_plugin_names.
37 38 39 |
# File 'lib/killbill/gen/api/payment_options.rb', line 37 def payment_control_plugin_names @payment_control_plugin_names end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/killbill/gen/api/payment_options.rb', line 42 def to_java() # conversion for is_external_payment [type = boolean] @is_external_payment = @is_external_payment.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_external_payment) # conversion for payment_control_plugin_names [type = java.util.List] tmp = java.util.ArrayList.new (@payment_control_plugin_names || []).each do |m| # conversion for m [type = java.lang.String] m = m.to_s unless m.nil? tmp.add(m) end @payment_control_plugin_names = tmp self end |
#to_ruby(j_obj) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/killbill/gen/api/payment_options.rb', line 57 def to_ruby(j_obj) # conversion for is_external_payment [type = boolean] @is_external_payment = j_obj.is_external_payment if @is_external_payment.nil? @is_external_payment = false else tmp_bool = (@is_external_payment.java_kind_of? java.lang.Boolean) ? @is_external_payment.boolean_value : @is_external_payment @is_external_payment = tmp_bool ? true : false end # conversion for payment_control_plugin_names [type = java.util.List] @payment_control_plugin_names = j_obj.payment_control_plugin_names tmp = [] (@payment_control_plugin_names || []).each do |m| # conversion for m [type = java.lang.String] tmp << m end @payment_control_plugin_names = tmp self end |