Class: Securetrading::Refund
- Inherits:
-
Connection
- Object
- Connection
- Securetrading::Refund
- Defined in:
- lib/securetrading/refund.rb
Instance Method Summary collapse
-
#initialize(amount, parent_transaction, options = {}) ⇒ Refund
constructor
A new instance of Refund.
- #perform(options = {}) ⇒ Object
Methods inherited from Connection
Constructor Details
#initialize(amount, parent_transaction, options = {}) ⇒ Refund
Returns a new instance of Refund.
3 4 5 6 7 8 |
# File 'lib/securetrading/refund.rb', line 3 def initialize(amount, parent_transaction, = {}) @amount = amount @parent_transaction = parent_transaction @account_type = [:account_type].presence || 'ECOM' @options = end |
Instance Method Details
#perform(options = {}) ⇒ Object
10 11 12 |
# File 'lib/securetrading/refund.rb', line 10 def perform( = {}) perform_with(:post, to_xml, ) end |