Class: AlphaCard::Refund

Inherits:
Void show all
Defined in:
lib/alpha_card/transactions/refund.rb

Overview

Implementation of Alpha Card Services Refund transaction.

Examples:

refund = AlphaCard::Refund.new(transaction_id: '981562', amount: '1.00')
refund.create

#=> #<AlphaCard::Response:0x1a0fda ...>

Constant Summary collapse

ORIGIN_TRANSACTION_VARIABLES =

Original AlphaCard transaction variables names

{
  transaction_id: :transactionid
}.freeze

Instance Attribute Summary collapse

Method Summary

Methods inherited from Transaction

#process

Methods inherited from Resource

#attributes_for_request

Methods included from Attribute

included

Instance Attribute Details

#typeObject (readonly)

Transaction type (default is ‘refund’)



19
# File 'lib/alpha_card/transactions/refund.rb', line 19

attribute :type, default: 'refund', writable: false