Class: Stripe::Treasury::ReceivedCreditService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Treasury::ReceivedCreditService
- Defined in:
- lib/stripe/services/treasury/received_credit_service.rb
Defined Under Namespace
Classes: ListParams, RetrieveParams
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedCredits.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#list(params = {}, opts = {}) ⇒ Object
Returns a list of ReceivedCredits.
60 61 62 63 64 65 66 67 68 |
# File 'lib/stripe/services/treasury/received_credit_service.rb', line 60 def list(params = {}, opts = {}) request( method: :get, path: "/v1/treasury/received_credits", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.
71 72 73 74 75 76 77 78 79 |
# File 'lib/stripe/services/treasury/received_credit_service.rb', line 71 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/treasury/received_credits/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |