Sha256: f1b2bda04ed7517a93c4e7a06e17ed9b5d288de38644084a38a5c8ae8e0cdf95

Contents?: true

Size: 1.03 KB

Versions: 9

Compression:

Stored size: 1.03 KB

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  module Treasury
    # ReceivedCredits represent funds sent to a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount.
    class ReceivedCredit < APIResource
      extend Stripe::APIOperations::List

      OBJECT_NAME = "treasury.received_credit"

      def test_helpers
        TestHelpers.new(self)
      end

      class TestHelpers < APIResourceTestHelpers
        RESOURCE_CLASS = ReceivedCredit

        # Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can't directly create ReceivedCredits initiated by third parties.
        def self.create(params = {}, opts = {})
          request_stripe_object(
            method: :post,
            path: "/v1/test_helpers/treasury/received_credits",
            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_credit.rb
stripe-10.8.0.pre.beta.1 lib/stripe/resources/treasury/received_credit.rb
stripe-10.7.0 lib/stripe/resources/treasury/received_credit.rb
stripe-10.7.0.pre.beta.3 lib/stripe/resources/treasury/received_credit.rb
stripe-10.7.0.pre.beta.2 lib/stripe/resources/treasury/received_credit.rb
stripe-10.7.0.pre.beta.1 lib/stripe/resources/treasury/received_credit.rb
stripe-10.6.0 lib/stripe/resources/treasury/received_credit.rb
stripe-10.6.0.pre.beta.1 lib/stripe/resources/treasury/received_credit.rb
stripe-10.5.0 lib/stripe/resources/treasury/received_credit.rb