Class: Khipu::BankItem

Inherits:
BaseObject show all
Defined in:
lib/khipu-api-client/models/bank_item.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ BankItem

Returns a new instance of BankItem.



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
71
72
73
74
# 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

Instance Attribute Details

#bank_idObject

Returns the value of attribute bank_id.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def bank_id
  @bank_id
end

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def message
  @message
end

#min_amountObject

Returns the value of attribute min_amount.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def min_amount
  @min_amount
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def name
  @name
end

#parentObject

Returns the value of attribute parent.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def parent
  @parent
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/khipu-api-client/models/bank_item.rb', line 4

def type
  @type
end

Class Method Details

.attribute_mapObject

attribute mapping from ruby-style variable name to JSON key



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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

.swagger_typesObject

attribute type



31
32
33
34
35
36
37
38
39
40
41
# 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