Class: Stripe::Customer::TestHelpers
- Inherits:
-
APIResourceTestHelpers
- Object
- APIResourceTestHelpers
- Stripe::Customer::TestHelpers
- Defined in:
- lib/stripe/resources/customer.rb
Constant Summary collapse
- RESOURCE_CLASS =
Customer
Class Method Summary collapse
-
.fund_cash_balance(customer, params = {}, opts = {}) ⇒ Object
Create an incoming testmode bank transfer.
- .resource_class ⇒ Object
Instance Method Summary collapse
-
#fund_cash_balance(params = {}, opts = {}) ⇒ Object
Create an incoming testmode bank transfer.
Methods inherited from APIResourceTestHelpers
custom_method, #initialize, resource_url, #resource_url
Methods included from APIOperations::Request
Constructor Details
This class inherits a constructor from Stripe::APIResourceTestHelpers
Class Method Details
.fund_cash_balance(customer, params = {}, opts = {}) ⇒ Object
Create an incoming testmode bank transfer
198 199 200 201 202 203 204 205 |
# File 'lib/stripe/resources/customer.rb', line 198 def self.fund_cash_balance(customer, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/test_helpers/customers/%<customer>s/fund_cash_balance", { customer: CGI.escape(customer) }), params: params, opts: opts ) end |
.resource_class ⇒ Object
193 194 195 |
# File 'lib/stripe/resources/customer.rb', line 193 def self.resource_class "Customer" end |
Instance Method Details
#fund_cash_balance(params = {}, opts = {}) ⇒ Object
Create an incoming testmode bank transfer
208 209 210 211 212 213 214 215 |
# File 'lib/stripe/resources/customer.rb', line 208 def fund_cash_balance(params = {}, opts = {}) @resource.request_stripe_object( method: :post, path: format("/v1/test_helpers/customers/%<customer>s/fund_cash_balance", { customer: CGI.escape(@resource["id"]) }), params: params, opts: opts ) end |