stripe-ruby/lib/stripe/resources/funding_instructions.rb
Richard Marmorstein 2be83cf0cb
Codegen for openapi a8928d0 (#1047)
* Codegen for openapi a8928d0
2022-04-18 17:59:30 -04:00

17 lines
479 B
Ruby

# File generated from our OpenAPI spec
# frozen_string_literal: true
module Stripe
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