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

Version Path
stripe-13.3.1 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.3.0 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.3.0.pre.beta.3 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.2.0 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.1.2 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.1.1 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.1.0 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.0.2 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.0.1 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb
stripe-13.0.0 lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb