Sha256: acdf16ea0b4143122f9ad229fc80203dad977542d2310521b4c9701adf818679

Contents?: true

Size: 1003 Bytes

Versions: 9

Compression:

Stored size: 1003 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Treasury
    # ReceivedDebits represent funds pulled from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts). These are not initiated from the FinancialAccount.
    class ReceivedDebit < APIResource
      extend Stripe::APIOperations::List

      OBJECT_NAME = "treasury.received_debit"

      def test_helpers
        TestHelpers.new(self)
      end

      class TestHelpers < APIResourceTestHelpers
        RESOURCE_CLASS = ReceivedDebit

        # Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can't directly create ReceivedDebits initiated by third parties.
        def self.create(params = {}, opts = {})
          request_stripe_object(
            method: :post,
            path: "/v1/test_helpers/treasury/received_debits",
            params: params,
            opts: opts
          )
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
stripe-10.7.1 lib/stripe/resources/treasury/received_debit.rb
stripe-10.8.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-10.7.0 lib/stripe/resources/treasury/received_debit.rb
stripe-10.7.0.pre.beta.3 lib/stripe/resources/treasury/received_debit.rb
stripe-10.7.0.pre.beta.2 lib/stripe/resources/treasury/received_debit.rb
stripe-10.7.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-10.6.0 lib/stripe/resources/treasury/received_debit.rb
stripe-10.6.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-10.5.0 lib/stripe/resources/treasury/received_debit.rb