class Khipu::BankItem

Attributes

bank_id[RW]
message[RW]
min_amount[RW]
name[RW]
parent[RW]
type[RW]

Public Class Methods

attribute_map() click to toggle source

attribute mapping from ruby-style variable name to JSON key

# File lib/khipu-api-client/models/bank_item.rb, line 6
def self.attribute_map
  {
    
    # Identificador del banco
    :'bank_id' => :'bank_id',
    
    # Nombre del banco
    :'name' => :'name',
    
    # Mensaje con particularidades del banco
    :'message' => :'message',
    
    # Monto mínimo que acepta el banco en un pago
    :'min_amount' => :'min_amount',
    
    # Tipo de banco
    :'type' => :'type',
    
    # Identificador del banco padre (si un banco tiene banca personas y empresas, el primero será el padre del segundo)
    :'parent' => :'parent'
    
  }
end
new(attributes = {}) click to toggle source
# File lib/khipu-api-client/models/bank_item.rb, line 43
def initialize(attributes = {})
  return if !attributes.is_a?(Hash) || attributes.empty?

  # convert string to symbol for hash key
  attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

  
  if attributes[:'bank_id']
    self.bank_id = attributes[:'bank_id']
  end
  
  if attributes[:'name']
    self.name = attributes[:'name']
  end
  
  if attributes[:'message']
    self.message = attributes[:'message']
  end
  
  if attributes[:'min_amount']
    self.min_amount = attributes[:'min_amount']
  end
  
  if attributes[:'type']
    self.type = attributes[:'type']
  end
  
  if attributes[:'parent']
    self.parent = attributes[:'parent']
  end
  
end
swagger_types() click to toggle source

attribute type

# File lib/khipu-api-client/models/bank_item.rb, line 31
def self.swagger_types
  {
    :'bank_id' => :'String',
    :'name' => :'String',
    :'message' => :'String',
    :'min_amount' => :'Float',
    :'type' => :'String',
    :'parent' => :'String'
    
  }
end