Class: Stripe::TestHelpers::Treasury::InboundTransferService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TestHelpers::Treasury::InboundTransferService
- Defined in:
- lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
Instance Method Summary collapse
-
#fail(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the failed status.
-
#return_inbound_transfer(id, params = {}, opts = {}) ⇒ Object
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit.
-
#succeed(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the succeeded status.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#fail(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb', line 9 def fail(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#return_inbound_transfer(id, params = {}, opts = {}) ⇒ Object
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
20 21 22 23 24 25 26 27 28 |
# File 'lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb', line 20 def return_inbound_transfer(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#succeed(id, params = {}, opts = {}) ⇒ Object
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb', line 31 def succeed(id, params = {}, opts = {}) request( method: :post, path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |