Class: Tpaga::DaviPlataCharge

Inherits:
BaseObject show all
Defined in:
lib/tpaga/models/davi_plata_charge.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 = {}) ⇒ 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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#customerObject

Returns the value of attribute customer.



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

def customer
  @customer
end

#davi_plataObject

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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#order_idObject

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

Returns the value of attribute paid.



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

def paid
  @paid
end

#payment_transactionObject

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_amountObject

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_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
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_typesObject

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