Class: Tpaga::DaviPlataCharge
- Inherits:
-
BaseObject
- Object
- BaseObject
- Tpaga::DaviPlataCharge
- Defined in:
- lib/tpaga/models/davi_plata_charge.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#davi_plata ⇒ Object
Returns the value of attribute davi_plata.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#order_id ⇒ Object
Returns the value of attribute order_id.
-
#paid ⇒ Object
Returns the value of attribute paid.
-
#payment_transaction ⇒ Object
Returns the value of attribute payment_transaction.
-
#tax_amount ⇒ Object
Returns the value of attribute tax_amount.
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 = {}) ⇒ DaviPlataCharge
constructor
A new instance of DaviPlataCharge.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ DaviPlataCharge
Returns a new instance of DaviPlataCharge.
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 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 59 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[:'amount'] @amount = attributes[:'amount'] end if attributes[:'taxAmount'] @tax_amount = attributes[:'taxAmount'] end if attributes[:'currency'] @currency = attributes[:'currency'] end if attributes[:'daviPlata'] @davi_plata = attributes[:'daviPlata'] end if attributes[:'orderId'] @order_id = attributes[:'orderId'] end if attributes[:'description'] @description = attributes[:'description'] end if attributes[:'paid'] @paid = attributes[:'paid'] end if attributes[:'customer'] @customer = attributes[:'customer'] end if attributes[:'paymentTransaction'] @payment_transaction = attributes[:'paymentTransaction'] end end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def amount @amount end |
#currency ⇒ Object
Returns the value of attribute currency.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def currency @currency end |
#customer ⇒ Object
Returns the value of attribute customer.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def customer @customer end |
#davi_plata ⇒ Object
Returns the value of attribute davi_plata.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def davi_plata @davi_plata end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def id @id end |
#order_id ⇒ Object
Returns the value of attribute order_id.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def order_id @order_id end |
#paid ⇒ Object
Returns the value of attribute paid.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def paid @paid end |
#payment_transaction ⇒ Object
Returns the value of attribute payment_transaction.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def payment_transaction @payment_transaction end |
#tax_amount ⇒ Object
Returns the value of attribute tax_amount.
4 5 6 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 4 def tax_amount @tax_amount 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 35 36 37 38 39 40 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 6 def self.attribute_map { # :'id' => :'id', # :'amount' => :'amount', # :'tax_amount' => :'taxAmount', # 3-letter ISO code for currency. :'currency' => :'currency', # :'davi_plata' => :'daviPlata', # :'order_id' => :'orderId', # :'description' => :'description', # :'paid' => :'paid', # :'customer' => :'customer', # :'payment_transaction' => :'paymentTransaction' } end |
.swagger_types ⇒ Object
attribute type
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/tpaga/models/davi_plata_charge.rb', line 43 def self.swagger_types { :'id' => :'string', :'amount' => :'number', :'tax_amount' => :'number', :'currency' => :'string', :'davi_plata' => :'string', :'order_id' => :'string', :'description' => :'string', :'paid' => :'boolean', :'customer' => :'string', :'payment_transaction' => :'string' } end |