Class: AmountReservationTransaction

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

Instance Method Summary collapse

Constructor Details

#initializeAmountReservationTransaction

Returns a new instance of AmountReservationTransaction.



4
5
6
7
8
9
10
11
12
13
# File 'lib/response/payment/AmountReservationTransaction.rb', line 4

def initialize
  @clientCorrelator=nil
  @endUserId=nil
  @paymentAmount=nil
  @referenceCode=nil
  @referenceSequence=0
  @resourceURL=nil
  @serverReferenceCode=nil
  @transactionStatus=nil
end

Instance Method Details

#getClientCorrelatorObject



51
52
53
# File 'lib/response/payment/AmountReservationTransaction.rb', line 51

def getClientCorrelator
  @clientCorrelator
end

#getEndUserIdObject



59
60
61
# File 'lib/response/payment/AmountReservationTransaction.rb', line 59

def getEndUserId
  @endUserId
end

#getPaymentAmountObject



67
68
69
# File 'lib/response/payment/AmountReservationTransaction.rb', line 67

def getPaymentAmount
  @paymentAmount
end

#getReferenceCodeObject



75
76
77
# File 'lib/response/payment/AmountReservationTransaction.rb', line 75

def getReferenceCode
  @referenceCode
end

#getReferenceSequenceObject



83
84
85
# File 'lib/response/payment/AmountReservationTransaction.rb', line 83

def getReferenceSequence
  @referenceSequence
end

#getResourceURLObject



91
92
93
# File 'lib/response/payment/AmountReservationTransaction.rb', line 91

def getResourceURL
  @resourceURL
end

#getServerReferenceCodeObject



99
100
101
# File 'lib/response/payment/AmountReservationTransaction.rb', line 99

def getServerReferenceCode
  @serverReferenceCode
end

#getTransactionStatusObject



107
108
109
# File 'lib/response/payment/AmountReservationTransaction.rb', line 107

def getTransactionStatus
  @transactionStatus
end

#initializeJSON(jsondict) ⇒ Object



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
41
42
43
44
45
46
47
48
49
# File 'lib/response/payment/AmountReservationTransaction.rb', line 15

def initializeJSON(jsondict)
  @clientCorrelator=nil
  if (jsondict!=nil) && (jsondict.has_key?'clientCorrelator') && (jsondict['clientCorrelator']!=nil)
    @clientCorrelator=jsondict['clientCorrelator']
  end
  @endUserId=nil
  if (jsondict!=nil) && (jsondict.has_key?'endUserId') && (jsondict['endUserId']!=nil)
    @endUserId=jsondict['endUserId']
  end
  @paymentAmount=nil
  if (jsondict!=nil) && (jsondict.has_key?'paymentAmount') && (jsondict['paymentAmount']!=nil) then
    @paymentAmount=PaymentAmount.new
    @paymentAmount.initializeJSON(jsondict['paymentAmount'])
  end
  @referenceCode=nil
  if (jsondict!=nil) && (jsondict.has_key?'referenceCode') && (jsondict['referenceCode']!=nil)
    @referenceCode=jsondict['referenceCode']
  end
  @referenceSequence=0
  if (jsondict!=nil) && (jsondict.has_key?'referenceSequence') && (jsondict['referenceSequence']!=nil)
    @referenceSequence=jsondict['referenceSequence'].to_i
  end
  @resourceURL=nil
  if (jsondict!=nil) && (jsondict.has_key?'resourceURL') && (jsondict['resourceURL']!=nil)
    @resourceURL=jsondict['resourceURL']
  end
  @serverReferenceCode=nil
  if (jsondict!=nil) && (jsondict.has_key?'serverReferenceCode') && (jsondict['serverReferenceCode']!=nil)
    @serverReferenceCode=jsondict['serverReferenceCode']
  end
  @transactionStatus=nil
  if (jsondict!=nil) && (jsondict.has_key?'transactionStatus') && (jsondict['transactionStatus']!=nil)
    @transactionStatus=jsondict['transactionStatus']
  end
end

#setClientCorrelator(clientCorrelator) ⇒ Object



55
56
57
# File 'lib/response/payment/AmountReservationTransaction.rb', line 55

def setClientCorrelator(clientCorrelator)
  @clientCorrelator=clientCorrelator
end

#setEndUserId(endUserId) ⇒ Object



63
64
65
# File 'lib/response/payment/AmountReservationTransaction.rb', line 63

def setEndUserId(endUserId)
  @endUserId=endUserId
end

#setPaymentAmount(paymentAmount) ⇒ Object



71
72
73
# File 'lib/response/payment/AmountReservationTransaction.rb', line 71

def setPaymentAmount(paymentAmount)
  @paymentAmount=paymentAmount
end

#setReferenceCode(referenceCode) ⇒ Object



79
80
81
# File 'lib/response/payment/AmountReservationTransaction.rb', line 79

def setReferenceCode(referenceCode)
  @referenceCode=referenceCode
end

#setReferenceSequence(referenceSequence) ⇒ Object



87
88
89
# File 'lib/response/payment/AmountReservationTransaction.rb', line 87

def setReferenceSequence(referenceSequence)
  @referenceSequence=referenceSequence
end

#setResourceURL(resourceURL) ⇒ Object



95
96
97
# File 'lib/response/payment/AmountReservationTransaction.rb', line 95

def setResourceURL(resourceURL)
  @resourceURL=resourceURL
end

#setServerReferenceCode(serverReferenceCode) ⇒ Object



103
104
105
# File 'lib/response/payment/AmountReservationTransaction.rb', line 103

def setServerReferenceCode(serverReferenceCode)
  @serverReferenceCode=serverReferenceCode
end

#setTransactionStatus(transactionStatus) ⇒ Object



111
112
113
# File 'lib/response/payment/AmountReservationTransaction.rb', line 111

def setTransactionStatus(transactionStatus)
  @transactionStatus=transactionStatus
end