Class: Stripe::PaymentAttemptRecordService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::PaymentAttemptRecordService
- Defined in:
- lib/stripe/services/payment_attempt_record_service.rb
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
List all the Payment Attempt Records attached to the specified Payment Record.
-
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves a Payment Attempt Record with the given ID.
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
List all the Payment Attempt Records attached to the specified Payment Record.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/payment_attempt_record_service.rb', line 7 def list(params = {}, opts = {}) request( method: :get, path: "/v1/payment_attempt_records", params: params, opts: opts, base_address: :api ) end |
#retrieve(id, params = {}, opts = {}) ⇒ Object
Retrieves a Payment Attempt Record with the given ID
18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/payment_attempt_record_service.rb', line 18 def retrieve(id, params = {}, opts = {}) request( method: :get, path: format("/v1/payment_attempt_records/%<id>s", { id: CGI.escape(id) }), params: params, opts: opts, base_address: :api ) end |