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