Class: PaymentAmount

Inherits:
Object
  • Object
show all
Defined in:
lib/response/payment/PaymentAmount.rb

Instance Method Summary collapse

Constructor Details

#initializePaymentAmount

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

#getAmountReservedObject



26
27
28
# File 'lib/response/payment/PaymentAmount.rb', line 26

def getAmountReserved
  @amountReserved
end

#getChargingInformationObject



34
35
36
# File 'lib/response/payment/PaymentAmount.rb', line 34

def getChargingInformation
  @chargingInformation
end

#getTotalAmountChargedObject



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