Sha256: 2c3250f03d4e75785c7eaeb553efeceacaa82eaa53f19dc9569138779c2c30d0
Contents?: true
Size: 1.58 KB
Versions: 17
Compression:
Stored size: 1.58 KB
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe module TestHelpers module Treasury class InboundTransferService < StripeService # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state. 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 # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state. 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 # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state. 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 end end end end
Version data entries
17 entries across 17 versions & 1 rubygems