Class: Tappay::Refund

Inherits:
Client
  • Object
show all
Defined in:
lib/tappay/refund.rb

Instance Attribute Summary

Attributes inherited from Client

#options

Instance Method Summary collapse

Methods inherited from Client

#post

Constructor Details

#initialize(options = {}) ⇒ Refund

Returns a new instance of Refund.



3
4
5
6
7
# File 'lib/tappay/refund.rb', line 3

def initialize(options = {})
  super(timeout: 30)
  @options = options
  validate_options!
end

Instance Method Details

#executeObject



9
10
11
# File 'lib/tappay/refund.rb', line 9

def execute
  post(Endpoints.refund_url, refund_data)
end