class PaymentAmount

Public Class Methods

new() click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 4
def initialize
  @amountReserved=0.0
  @chargingInformation=nil
  @totalAmountCharged=0.0
end

Public Instance Methods

getAmountReserved() click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 26
def getAmountReserved
  @amountReserved
end
getChargingInformation() click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 34
def getChargingInformation
  @chargingInformation
end
getTotalAmountCharged() click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 42
def getTotalAmountCharged
  @totalAmountCharged
end
initializeJSON(jsondict) click to toggle source
# 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) click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 30
def setAmountReserved(amountReserved)
  @amountReserved=amountReserved
end
setChargingInformation(chargingInformation) click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 38
def setChargingInformation(chargingInformation)
  @chargingInformation=chargingInformation
end
setTotalAmountCharged(totalAmountCharged) click to toggle source
# File lib/response/payment/PaymentAmount.rb, line 46
def setTotalAmountCharged(totalAmountCharged)
  @totalAmountCharged=totalAmountCharged
end