Exception: Buckaruby::NonRefundableTransactionException

Inherits:
BuckarooException
  • Object
show all
Defined in:
lib/buckaruby/exception.rb

Overview

Exception raised when trying to refund a non refundable transaction.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transaction_id) ⇒ NonRefundableTransactionException

Returns a new instance of NonRefundableTransactionException.



77
78
79
80
81
82
# File 'lib/buckaruby/exception.rb', line 77

def initialize(transaction_id)
  @transaction_id = transaction_id

  message = "Not a refundable transaction: #{transaction_id}"
  super(message)
end

Instance Attribute Details

#transaction_idObject (readonly)

Returns the value of attribute transaction_id.



75
76
77
# File 'lib/buckaruby/exception.rb', line 75

def transaction_id
  @transaction_id
end