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
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.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/test_helpers/treasury/received_credit_service.rb', line 9 def create(params = {}, opts = {}) request( method: :post, path: "/v1/test_helpers/treasury/received_credits", params: params, opts: opts, base_address: :api ) end |