class Upay::TransactionResponse
Public Class Methods
new(args = {})
click to toggle source
# File lib/upay/transaction.rb, line 80 def initialize(args = {}) args.each do |k,v| instance_variable_set("@#{k}", v) end end
Public Instance Methods
errorCode()
click to toggle source
# File lib/upay/transaction.rb, line 110 def errorCode; @errorCode end
errorCode=(errorCode=nil)
click to toggle source
# File lib/upay/transaction.rb, line 111 def errorCode=(errorCode=nil) @errorCode = errorCode; end
extraParameters()
click to toggle source
# File lib/upay/transaction.rb, line 125 def extraParameters; @extraParameters end
extraParameters=(extraParameters=nil)
click to toggle source
# File lib/upay/transaction.rb, line 126 def extraParameters=(extraParameters=nil) @extraParameters = extraParameters; end
operationDate()
click to toggle source
# File lib/upay/transaction.rb, line 122 def operationDate; @operationDate end
operationDate=(operationDate=nil)
click to toggle source
# File lib/upay/transaction.rb, line 123 def operationDate=(operationDate=nil) @operationDate = operationDate; end
orderId()
click to toggle source
# File lib/upay/transaction.rb, line 86 def orderId; @orderId end
orderId=(orderId=nil)
click to toggle source
# File lib/upay/transaction.rb, line 87 def orderId=(orderId=nil) @orderId = orderId; end
paymentNetworkResponseCode()
click to toggle source
# File lib/upay/transaction.rb, line 92 def paymentNetworkResponseCode; @paymentNetworkResponseCode end
paymentNetworkResponseCode=(paymentNetworkResponseCode=nil)
click to toggle source
# File lib/upay/transaction.rb, line 93 def paymentNetworkResponseCode=(paymentNetworkResponseCode=nil) @paymentNetworkResponseCode = paymentNetworkResponseCode; end
paymentNetworkResponseErrorMessage()
click to toggle source
# File lib/upay/transaction.rb, line 95 def paymentNetworkResponseErrorMessage; @paymentNetworkResponseErrorMessage end
paymentNetworkResponseErrorMessage=(paymentNetworkResponseErrorMessage=nil)
click to toggle source
# File lib/upay/transaction.rb, line 96 def paymentNetworkResponseErrorMessage=(paymentNetworkResponseErrorMessage=nil) @paymentNetworkResponseErrorMessage = paymentNetworkResponseErrorMessage; end
pendingReason()
click to toggle source
# File lib/upay/transaction.rb, line 104 def pendingReason; @pendingReason end
pendingReason=(pendingReason=nil)
click to toggle source
# File lib/upay/transaction.rb, line 105 def pendingReason=(pendingReason=nil) @pendingReason = pendingReason; end
responseCode()
click to toggle source
# File lib/upay/transaction.rb, line 107 def responseCode; @responseCode end
responseCode=(responseCode=nil)
click to toggle source
# File lib/upay/transaction.rb, line 108 def responseCode=(responseCode=nil) @responseCode = responseCode; end
responseMessage()
click to toggle source
# File lib/upay/transaction.rb, line 113 def responseMessage; @responseMessage end
responseMessage=(responseMessage=nil)
click to toggle source
# File lib/upay/transaction.rb, line 114 def responseMessage=(responseMessage=nil) @responseMessage = responseMessage; end
to_hash()
click to toggle source
# File lib/upay/transaction.rb, line 133 def to_hash transaction_hash = self.instance_variables.each_with_object({}) { |var,hash| hash[var.to_s.delete("@").to_sym] = self.instance_variable_get(var)} end
transactionDate()
click to toggle source
# File lib/upay/transaction.rb, line 116 def transactionDate; @transactionDate end
transactionDate=(transactionDate=nil)
click to toggle source
# File lib/upay/transaction.rb, line 117 def transactionDate=(transactionDate=nil) @transactionDate = transactionDate; end
transactionId()
click to toggle source
# File lib/upay/transaction.rb, line 89 def transactionId; @transactionId end
transactionId=(transactionId=nil)
click to toggle source
# File lib/upay/transaction.rb, line 90 def transactionId=(transactionId=nil) @transactionId = transactionId; end
transactionTime()
click to toggle source
# File lib/upay/transaction.rb, line 119 def transactionTime; @transactionTime end
transactionTime=(transactionTime=nil)
click to toggle source
# File lib/upay/transaction.rb, line 120 def transactionTime=(transactionTime=nil) @transactionTime = transactionTime; end
trazabilityCode()
click to toggle source
# File lib/upay/transaction.rb, line 98 def trazabilityCode; @trazabilityCode end
trazabilityCode=(trazabilityCode=nil)
click to toggle source
# File lib/upay/transaction.rb, line 99 def trazabilityCode=(trazabilityCode=nil) @trazabilityCode = trazabilityCode; end
valid?()
click to toggle source
# File lib/upay/transaction.rb, line 128 def valid? #validator = TransactionValidator.new #validator.valid?(self) end