Class: Tpaga::DaviPlata
- Inherits:
-
BaseObject
- Object
- BaseObject
- Tpaga::DaviPlata
- Defined in:
- lib/tpaga/models/davi_plata.rb
Instance Attribute Summary collapse
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#document_number ⇒ Object
Returns the value of attribute document_number.
-
#document_type ⇒ Object
Returns the value of attribute document_type.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_four ⇒ Object
Returns the value of attribute last_four.
-
#max_amount ⇒ Object
Returns the value of attribute max_amount.
-
#number ⇒ Object
Returns the value of attribute number.
-
#verified ⇒ Object
Returns the value of attribute verified.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ DaviPlata
constructor
A new instance of DaviPlata.
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
#customer ⇒ Object
Returns the value of attribute customer.
4 5 6 |
# File 'lib/tpaga/models/davi_plata.rb', line 4 def customer @customer end |
#document_number ⇒ Object
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_type ⇒ Object
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 |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/tpaga/models/davi_plata.rb', line 4 def id @id end |
#last_four ⇒ Object
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_amount ⇒ Object
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 |
#number ⇒ Object
Returns the value of attribute number.
4 5 6 |
# File 'lib/tpaga/models/davi_plata.rb', line 4 def number @number end |
#verified ⇒ Object
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_map ⇒ Object
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_types ⇒ Object
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 |