Sha256: 09dc6a84e2f55264cca7fdf976ad6b47259da555f7f71bd6946f58374521ed37

Contents?: true

Size: 948 Bytes

Versions: 44

Compression:

Stored size: 948 Bytes

Contents

# File generated from our OpenAPI spec
# frozen_string_literal: true

module Stripe
  # Each customer has a [`balance`](https://stripe.com/docs/api/customers/object#customer_object-balance) that is
  # automatically applied to future invoices and payments using the `customer_balance` payment method.
  # Customers can fund this balance by initiating a bank transfer to any account in the
  # `financial_addresses` field.
  # Related guide: [Customer balance funding instructions](https://stripe.com/docs/payments/customer-balance/funding-instructions)
  class FundingInstructions < APIResource
    OBJECT_NAME = "funding_instructions"

    def resource_url
      if !respond_to?(:customer) || customer.nil?
        raise NotImplementedError,
              "FundingInstructions cannot be accessed without a customer ID."
      end
      "#{Customer.resource_url}/#{CGI.escape(customer)}/funding_instructions" "/#{CGI.escape(id)}"
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
stripe-10.9.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.8.0 lib/stripe/resources/funding_instructions.rb
stripe-10.7.1 lib/stripe/resources/funding_instructions.rb
stripe-10.8.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.7.0 lib/stripe/resources/funding_instructions.rb
stripe-10.7.0.pre.beta.3 lib/stripe/resources/funding_instructions.rb
stripe-10.7.0.pre.beta.2 lib/stripe/resources/funding_instructions.rb
stripe-10.7.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.6.0 lib/stripe/resources/funding_instructions.rb
stripe-10.6.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.5.0 lib/stripe/resources/funding_instructions.rb
stripe-10.5.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.4.0 lib/stripe/resources/funding_instructions.rb
stripe-10.4.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.3.0 lib/stripe/resources/funding_instructions.rb
stripe-10.3.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.2.0 lib/stripe/resources/funding_instructions.rb
stripe-10.2.0.pre.beta.1 lib/stripe/resources/funding_instructions.rb
stripe-10.1.0 lib/stripe/resources/funding_instructions.rb
stripe-10.1.0.pre.beta.2 lib/stripe/resources/funding_instructions.rb