Class: Stripe::V2::MoneyManagement::ReceivedDebitMandateService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::V2::MoneyManagement::ReceivedDebitMandateService
- Defined in:
- lib/stripe/services/v2/money_management/received_debit_mandate_service.rb
Instance Method Summary collapse
-
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancels an active ReceivedDebitMandate.
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedDebitMandates.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing ReceivedDebitMandate.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#cancel(id, params = {}, opts = {}) ⇒ Object
Cancels an active ReceivedDebitMandate.
9 10 11 12 13 14 15 16 17 |
# File 'lib/stripe/services/v2/money_management/received_debit_mandate_service.rb', line 9 def cancel(id, params = {}, opts = {}) request( method: :post, path: format("/v2/money_management/received_debit_mandates/%<id>s/cancel", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |
#list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedDebitMandates.
20 21 22 23 24 25 26 27 28 |
# File 'lib/stripe/services/v2/money_management/received_debit_mandate_service.rb', line 20 def list(params = {}, opts = {}) request( method: :get, path: "/v2/money_management/received_debit_mandates", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing ReceivedDebitMandate.
31 32 33 34 35 36 37 38 39 |
# File 'lib/stripe/services/v2/money_management/received_debit_mandate_service.rb', line 31 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v2/money_management/received_debit_mandates/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |