Class: Killbill::Plugin::Model::PaymentMethodInfoPlugin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePaymentMethodInfoPlugin

Returns a new instance of PaymentMethodInfoPlugin.



39
40
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 39

def initialize()
end

Instance Attribute Details

#account_idObject

Returns the value of attribute account_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 37

def 
  @account_id
end

#external_payment_method_idObject

Returns the value of attribute external_payment_method_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 37

def external_payment_method_id
  @external_payment_method_id
end

#is_defaultObject

Returns the value of attribute is_default.



37
38
39
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 37

def is_default
  @is_default
end

#payment_method_idObject

Returns the value of attribute payment_method_id.



37
38
39
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 37

def payment_method_id
  @payment_method_id
end

Instance Method Details

#to_javaObject



42
43
44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 42

def to_java()
  # conversion for account_id [type = java.util.UUID]
  @account_id = java.util.UUID.fromString(@account_id.to_s) unless @account_id.nil?

  # conversion for payment_method_id [type = java.util.UUID]
  @payment_method_id = java.util.UUID.fromString(@payment_method_id.to_s) unless @payment_method_id.nil?

  # conversion for is_default [type = boolean]
  @is_default = @is_default.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_default)

  # conversion for external_payment_method_id [type = java.lang.String]
  @external_payment_method_id = @external_payment_method_id.to_s unless @external_payment_method_id.nil?
  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
77
78
# File 'lib/killbill/gen/plugin-api/payment_method_info_plugin.rb', line 57

def to_ruby(j_obj)
  # conversion for account_id [type = java.util.UUID]
  @account_id = j_obj.
  @account_id = @account_id.nil? ? nil : @account_id.to_s

  # conversion for payment_method_id [type = java.util.UUID]
  @payment_method_id = j_obj.payment_method_id
  @payment_method_id = @payment_method_id.nil? ? nil : @payment_method_id.to_s

  # conversion for is_default [type = boolean]
  @is_default = j_obj.is_default
  if @is_default.nil?
    @is_default = false
  else
    tmp_bool = (@is_default.java_kind_of? java.lang.Boolean) ? @is_default.boolean_value : @is_default
    @is_default = tmp_bool ? true : false
  end

  # conversion for external_payment_method_id [type = java.lang.String]
  @external_payment_method_id = j_obj.external_payment_method_id
  self
end