Class: Monri::Payments::PaymentResult

Inherits:
Hash
  • Object
show all
Defined in:
lib/monri/payments/payment_result.rb

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ PaymentResult

Returns a new instance of PaymentResult.

Parameters:

  • params (Hash)


6
7
8
# File 'lib/monri/payments/payment_result.rb', line 6

def initialize(params)
  merge!(params)
end

Instance Method Details

#amountString

Returns:

  • (String)


16
17
18
# File 'lib/monri/payments/payment_result.rb', line 16

def amount
  self[:amount]
end

#created_atString

Returns:

  • (String)


26
27
28
# File 'lib/monri/payments/payment_result.rb', line 26

def created_at
  self[:created_at]
end

#currencyString

Returns:

  • (String)


11
12
13
# File 'lib/monri/payments/payment_result.rb', line 11

def currency
  self[:currency]
end

#order_numberString

Returns:

  • (String)


21
22
23
# File 'lib/monri/payments/payment_result.rb', line 21

def order_number
  self[:order_number]
end

#payment_methodString

Returns:

  • (String)


41
42
43
# File 'lib/monri/payments/payment_result.rb', line 41

def payment_method
  self[:payment_method]
end

#response_messageString

Returns:

  • (String)


46
47
48
# File 'lib/monri/payments/payment_result.rb', line 46

def response_message
  self[:response_message]
end

#statusString

Returns:

  • (String)


31
32
33
# File 'lib/monri/payments/payment_result.rb', line 31

def status
  self[:status]
end

#transaction_typeString

Returns:

  • (String)


36
37
38
# File 'lib/monri/payments/payment_result.rb', line 36

def transaction_type
  self[:transaction_type]
end