Class: Stripe::CustomerFundingInstructionsService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::CustomerFundingInstructionsService
- Defined in:
- lib/stripe/services/customer_funding_instructions_service.rb
Instance Method Summary collapse
-
#create(customer, params = {}, opts = {}) ⇒ Object
Retrieve funding instructions for a customer cash balance.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#create(customer, params = {}, opts = {}) ⇒ Object
Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new funding instructions will be created. If funding instructions have already been created for a given customer, the same funding instructions will be retrieved. In other words, we will return the same funding instructions each time.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/customer_funding_instructions_service.rb', line 9 def create(customer, params = {}, opts = {}) request( method: :post, path: format("/v1/customers/%<customer>s/funding_instructions", { customer: CGI.escape(customer) }), params: params, opts: opts, base_address: :api ) end |