Class: Stripe::TestHelpers::RefundService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TestHelpers::RefundService
- Defined in:
- lib/stripe/services/test_helpers/refund_service.rb
Defined Under Namespace
Classes: ExpireParams
Instance Method Summary collapse
-
#expire(refund, params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#expire(refund, params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
17 18 19 20 21 22 23 24 25 |
# File 'lib/stripe/services/test_helpers/refund_service.rb', line 17 def expire(refund, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(refund) }), params: params, opts: opts, base_address: :api ) end |