Class: Killbill::Plugin::Model::HostedPaymentPageFormDescriptor
- Defined in:
- lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb
Instance Attribute Summary collapse
-
#form_fields ⇒ Object
Returns the value of attribute form_fields.
-
#form_method ⇒ Object
Returns the value of attribute form_method.
-
#form_url ⇒ Object
Returns the value of attribute form_url.
-
#kb_account_id ⇒ Object
Returns the value of attribute kb_account_id.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize ⇒ HostedPaymentPageFormDescriptor
constructor
A new instance of HostedPaymentPageFormDescriptor.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ HostedPaymentPageFormDescriptor
Returns a new instance of HostedPaymentPageFormDescriptor.
39 40 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 39 def initialize() end |
Instance Attribute Details
#form_fields ⇒ Object
Returns the value of attribute form_fields.
37 38 39 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 37 def form_fields @form_fields end |
#form_method ⇒ Object
Returns the value of attribute form_method.
37 38 39 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 37 def form_method @form_method end |
#form_url ⇒ Object
Returns the value of attribute form_url.
37 38 39 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 37 def form_url @form_url end |
#kb_account_id ⇒ Object
Returns the value of attribute kb_account_id.
37 38 39 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 37 def kb_account_id @kb_account_id end |
#properties ⇒ Object
Returns the value of attribute properties.
37 38 39 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 37 def properties @properties end |
Instance Method Details
#to_java ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 42 def to_java() # conversion for kb_account_id [type = java.util.UUID] @kb_account_id = java.util.UUID.fromString(@kb_account_id.to_s) unless @kb_account_id.nil? # conversion for form_method [type = java.lang.String] @form_method = @form_method.to_s unless @form_method.nil? # conversion for form_url [type = java.lang.String] @form_url = @form_url.to_s unless @form_url.nil? # conversion for form_fields [type = java.util.List] tmp = java.util.ArrayList.new (@form_fields || []).each do |m| # conversion for m [type = org.killbill.billing.payment.api.PluginProperty] m = m.to_java unless m.nil? tmp.add(m) end @form_fields = tmp # conversion for properties [type = java.util.List] tmp = java.util.ArrayList.new (@properties || []).each do |m| # conversion for m [type = org.killbill.billing.payment.api.PluginProperty] m = m.to_java unless m.nil? tmp.add(m) end @properties = tmp self end |
#to_ruby(j_obj) ⇒ Object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
# File 'lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb', line 72 def to_ruby(j_obj) # conversion for kb_account_id [type = java.util.UUID] @kb_account_id = j_obj.kb_account_id @kb_account_id = @kb_account_id.nil? ? nil : @kb_account_id.to_s # conversion for form_method [type = java.lang.String] @form_method = j_obj.form_method # conversion for form_url [type = java.lang.String] @form_url = j_obj.form_url # conversion for form_fields [type = java.util.List] @form_fields = j_obj.form_fields tmp = [] (@form_fields || []).each do |m| # conversion for m [type = org.killbill.billing.payment.api.PluginProperty] m = Killbill::Plugin::Model::PluginProperty.new.to_ruby(m) unless m.nil? tmp << m end @form_fields = tmp # conversion for properties [type = java.util.List] @properties = j_obj.properties tmp = [] (@properties || []).each do |m| # conversion for m [type = org.killbill.billing.payment.api.PluginProperty] m = Killbill::Plugin::Model::PluginProperty.new.to_ruby(m) unless m.nil? tmp << m end @properties = tmp self end |