Class: PaymentAmount
- Inherits:
-
Object
- Object
- PaymentAmount
- Defined in:
- lib/response/payment/PaymentAmount.rb
Instance Method Summary collapse
- #getAmountReserved ⇒ Object
- #getChargingInformation ⇒ Object
- #getTotalAmountCharged ⇒ Object
-
#initialize ⇒ PaymentAmount
constructor
A new instance of PaymentAmount.
- #initializeJSON(jsondict) ⇒ Object
- #setAmountReserved(amountReserved) ⇒ Object
- #setChargingInformation(chargingInformation) ⇒ Object
- #setTotalAmountCharged(totalAmountCharged) ⇒ Object
Constructor Details
#initialize ⇒ PaymentAmount
Returns a new instance of PaymentAmount.
4 5 6 7 8 |
# File 'lib/response/payment/PaymentAmount.rb', line 4 def initialize @amountReserved=0.0 @chargingInformation=nil @totalAmountCharged=0.0 end |
Instance Method Details
#getAmountReserved ⇒ Object
26 27 28 |
# File 'lib/response/payment/PaymentAmount.rb', line 26 def getAmountReserved @amountReserved end |
#getChargingInformation ⇒ Object
34 35 36 |
# File 'lib/response/payment/PaymentAmount.rb', line 34 def getChargingInformation @chargingInformation end |
#getTotalAmountCharged ⇒ Object
42 43 44 |
# File 'lib/response/payment/PaymentAmount.rb', line 42 def getTotalAmountCharged @totalAmountCharged end |
#initializeJSON(jsondict) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/response/payment/PaymentAmount.rb', line 10 def initializeJSON(jsondict) @amountReserved=0.0 if (jsondict!=nil) && (jsondict.has_key?'amountReserved') && (jsondict['amountReserved']!=nil) @amountReserved=jsondict['amountReserved'].to_f end @chargingInformation=nil if (jsondict!=nil) && (jsondict.has_key?'chargingInformation') && (jsondict['chargingInformation']!=nil) then @chargingInformation=ChargingInformation.new @chargingInformation.initializeJSON(jsondict['chargingInformation']) end @totalAmountCharged=0.0 if (jsondict!=nil) && (jsondict.has_key?'totalAmountCharged') && (jsondict['totalAmountCharged']!=nil) @totalAmountCharged=jsondict['totalAmountCharged'].to_f end end |
#setAmountReserved(amountReserved) ⇒ Object
30 31 32 |
# File 'lib/response/payment/PaymentAmount.rb', line 30 def setAmountReserved(amountReserved) @amountReserved=amountReserved end |
#setChargingInformation(chargingInformation) ⇒ Object
38 39 40 |
# File 'lib/response/payment/PaymentAmount.rb', line 38 def setChargingInformation(chargingInformation) @chargingInformation=chargingInformation end |
#setTotalAmountCharged(totalAmountCharged) ⇒ Object
46 47 48 |
# File 'lib/response/payment/PaymentAmount.rb', line 46 def setTotalAmountCharged(totalAmountCharged) @totalAmountCharged=totalAmountCharged end |