Class: PayPro::Refund

Inherits:
Resource show all
Defined in:
lib/pay_pro/entities/refund.rb

Constant Summary collapse

RESOURCE_PATH =
'refunds'

Instance Attribute Summary

Attributes inherited from Entity

#api_client

Instance Method Summary collapse

Methods included from Operations::Requestable

#api_request

Methods inherited from Entity

create_from_data, #initialize, #inspect

Constructor Details

This class inherits a constructor from PayPro::Entity

Instance Method Details

#cancel(**options) ⇒ Object



7
8
9
# File 'lib/pay_pro/entities/refund.rb', line 7

def cancel(**options)
  api_request(method: 'delete', uri: resource_url, options: options)
end