Sha256: 4de32327858f0f919213b1e55035a7096967126d91a446d2fb00dcf27f33f56c

Contents?: true

Size: 1.37 KB

Versions: 49

Compression:

Stored size: 1.37 KB

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 self.object_name
        "treasury.received_debit"
      end

      # Returns a list of ReceivedDebits.
      def self.list(filters = {}, opts = {})
        request_stripe_object(
          method: :get,
          path: "/v1/treasury/received_debits",
          params: filters,
          opts: opts
        )
      end

      def test_helpers
        TestHelpers.new(self)
      end

      class TestHelpers < APIResourceTestHelpers
        RESOURCE_CLASS = ReceivedDebit
        def self.resource_class
          "ReceivedDebit"
        end

        # 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

49 entries across 49 versions & 1 rubygems

Version Path
stripe-13.3.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-13.2.0 lib/stripe/resources/treasury/received_debit.rb
stripe-13.1.2 lib/stripe/resources/treasury/received_debit.rb
stripe-13.2.0.pre.beta.3 lib/stripe/resources/treasury/received_debit.rb
stripe-13.2.0.pre.beta.2 lib/stripe/resources/treasury/received_debit.rb
stripe-13.1.1 lib/stripe/resources/treasury/received_debit.rb
stripe-13.2.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-13.1.0 lib/stripe/resources/treasury/received_debit.rb
stripe-13.0.2 lib/stripe/resources/treasury/received_debit.rb
stripe-13.1.0.pre.beta.3 lib/stripe/resources/treasury/received_debit.rb
stripe-13.0.1 lib/stripe/resources/treasury/received_debit.rb
stripe-13.1.0.pre.beta.2 lib/stripe/resources/treasury/received_debit.rb
stripe-13.0.0 lib/stripe/resources/treasury/received_debit.rb
stripe-12.7.0.pre.beta.2 lib/stripe/resources/treasury/received_debit.rb
stripe-12.7.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-12.6.0 lib/stripe/resources/treasury/received_debit.rb
stripe-12.6.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb
stripe-12.5.0 lib/stripe/resources/treasury/received_debit.rb
stripe-12.5.0.pre.beta.2 lib/stripe/resources/treasury/received_debit.rb
stripe-12.5.0.pre.beta.1 lib/stripe/resources/treasury/received_debit.rb