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
|