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.
66 67 68 69 70 71 72 73 74 |
# File 'lib/stripe/services/treasury/received_credit_service.rb', line 66 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.
77 78 79 80 81 82 83 84 85 |
# File 'lib/stripe/services/treasury/received_credit_service.rb', line 77 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 |