Class: Stripe::TestHelpers::Treasury::ReceivedCreditService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::TestHelpers::Treasury::ReceivedCreditService
- Defined in:
- lib/stripe/services/test_helpers/treasury/received_credit_service.rb
Defined Under Namespace
Classes: CreateParams
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Object
Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance 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.
69 70 71 72 73 74 75 76 77 |
# File 'lib/stripe/services/test_helpers/treasury/received_credit_service.rb', line 69 def create(params = {}, opts = {}) request( method: :post, path: "/v1/test_helpers/treasury/received_credits", params: params, opts: opts, base_address: :api ) end |