Class: Tpaga::DaviPlata

Inherits:
BaseObject show all
Defined in:
lib/tpaga/models/davi_plata.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

Constructor Details

#initialize(attributes = {}) ⇒ DaviPlata

Returns a new instance of DaviPlata.



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# File 'lib/tpaga/models/davi_plata.rb', line 51

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[:'id']
    @id = attributes[:'id']
  end

  if attributes[:'number']
    @number = attributes[:'number']
  end

  if attributes[:'documentNumber']
    @document_number = attributes[:'documentNumber']
  end

  if attributes[:'documentType']
    @document_type = attributes[:'documentType']
  end

  if attributes[:'lastFour']
    @last_four = attributes[:'lastFour']
  end

  if attributes[:'customer']
    @customer = attributes[:'customer']
  end

  if attributes[:'verified']
    @verified = attributes[:'verified']
  end

  if attributes[:'maxAmount']
    @max_amount = attributes[:'maxAmount']
  end

end

Instance Attribute Details

#customerObject

Returns the value of attribute customer.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def customer
  @customer
end

#document_numberObject

Returns the value of attribute document_number.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def document_number
  @document_number
end

#document_typeObject

Returns the value of attribute document_type.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def document_type
  @document_type
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def id
  @id
end

#last_fourObject

Returns the value of attribute last_four.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def last_four
  @last_four
end

#max_amountObject

Returns the value of attribute max_amount.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def max_amount
  @max_amount
end

#numberObject

Returns the value of attribute number.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def number
  @number
end

#verifiedObject

Returns the value of attribute verified.



4
5
6
# File 'lib/tpaga/models/davi_plata.rb', line 4

def verified
  @verified
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
29
30
31
32
33
34
# File 'lib/tpaga/models/davi_plata.rb', line 6

def self.attribute_map
  {

      #
      :'id' => :'id',

      #
      :'number' => :'number',

      #
      :'document_number' => :'documentNumber',

      #
      :'document_type' => :'documentType',

      #
      :'last_four' => :'lastFour',

      #
      :'customer' => :'customer',

      #
      :'verified' => :'verified',

      #
      :'max_amount' => :'maxAmount'

  }
end

.swagger_typesObject

attribute type



37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/tpaga/models/davi_plata.rb', line 37

def self.swagger_types
  {
      :'id' => :'string',
      :'number' => :'string',
      :'document_number' => :'string',
      :'document_type' => :'string',
      :'last_four' => :'string',
      :'customer' => :'string',
      :'verified' => :'boolean',
      :'max_amount' => :'number'

  }
end