Class: Stripe::TestHelpers::Treasury::ReceivedDebitService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/test_helpers/treasury/received_debit_service.rb

Defined Under Namespace

Classes: CreateParams

Instance Method Summary collapse

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 ReceivedDebit initiated by a third party. In live mode, you can’t directly create ReceivedDebits initiated by third parties.



69
70
71
72
73
74
75
76
77
# File 'lib/stripe/services/test_helpers/treasury/received_debit_service.rb', line 69

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v1/test_helpers/treasury/received_debits",
    params: params,
    opts: opts,
    base_address: :api
  )
end