Class: Killbill::Plugin::Model::HostedPaymentPageFormDescriptor

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/plugin-api/hosted_payment_page_form_descriptor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHostedPaymentPageFormDescriptor

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_fieldsObject

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_methodObject

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_urlObject

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_idObject

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 
  
end

#propertiesObject

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_javaObject



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]
   = java.util.UUID.fromString(.to_s) unless .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]
   = j_obj.
   = .nil? ? nil : .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