Class: Stripe::Refund::TestHelpers
- Inherits:
-
APIResourceTestHelpers
- Object
- APIResourceTestHelpers
- Stripe::Refund::TestHelpers
- Defined in:
- lib/stripe/resources/refund.rb
Constant Summary collapse
- RESOURCE_CLASS =
Refund
Class Method Summary collapse
-
.expire(refund, params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
- .resource_class ⇒ Object
Instance Method Summary collapse
-
#expire(params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
Methods inherited from APIResourceTestHelpers
custom_method, #initialize, resource_url, #resource_url
Methods included from APIOperations::Request
Constructor Details
This class inherits a constructor from Stripe::APIResourceTestHelpers
Class Method Details
.expire(refund, params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
736 737 738 739 740 741 742 743 |
# File 'lib/stripe/resources/refund.rb', line 736 def self.expire(refund, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(refund) }), params: params, opts: opts ) end |
.resource_class ⇒ Object
731 732 733 |
# File 'lib/stripe/resources/refund.rb', line 731 def self.resource_class "Refund" end |
Instance Method Details
#expire(params = {}, opts = {}) ⇒ Object
Expire a refund with a status of requires_action.
746 747 748 749 750 751 752 753 |
# File 'lib/stripe/resources/refund.rb', line 746 def expire(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/refunds/%<refund>s/expire", { refund: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end |