Class: Stripe::Treasury::ReceivedDebit::TestHelpers
- Inherits:
-
APIResourceTestHelpers
- Object
- APIResourceTestHelpers
- Stripe::Treasury::ReceivedDebit::TestHelpers
- Defined in:
- lib/stripe/resources/treasury/received_debit.rb
Constant Summary collapse
- RESOURCE_CLASS =
ReceivedDebit
Class Method Summary collapse
-
.create(params = {}, opts = {}) ⇒ Object
Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party.
- .resource_class ⇒ Object
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
.create(params = {}, opts = {}) ⇒ Object
Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can’t directly create ReceivedDebits initiated by third parties.
36 37 38 39 40 41 42 43 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 36 def self.create(params = {}, opts = {}) request_stripe_object( method: :post, path: "/v1/test_helpers/treasury/received_debits", params: params, opts: opts ) end |
.resource_class ⇒ Object
31 32 33 |
# File 'lib/stripe/resources/treasury/received_debit.rb', line 31 def self.resource_class "ReceivedDebit" end |