Class: Stripe::PaymentAttemptRecordReportRefundParams::Failed
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentAttemptRecordReportRefundParams::Failed
- Defined in:
- lib/stripe/params/payment_attempt_record_report_refund_params.rb
Instance Attribute Summary collapse
-
#failed_at ⇒ Object
When the reported refund failed.
-
#failure_reason ⇒ Object
Provides the reason for the refund failure.
Instance Method Summary collapse
-
#initialize(failed_at: nil, failure_reason: nil) ⇒ Failed
constructor
A new instance of Failed.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(failed_at: nil, failure_reason: nil) ⇒ Failed
Returns a new instance of Failed.
24 25 26 27 |
# File 'lib/stripe/params/payment_attempt_record_report_refund_params.rb', line 24 def initialize(failed_at: nil, failure_reason: nil) @failed_at = failed_at @failure_reason = failure_reason end |
Instance Attribute Details
#failed_at ⇒ Object
When the reported refund failed. Measured in seconds since the Unix epoch.
20 21 22 |
# File 'lib/stripe/params/payment_attempt_record_report_refund_params.rb', line 20 def failed_at @failed_at end |
#failure_reason ⇒ Object
Provides the reason for the refund failure. Possible values are: lost_or_stolen_card, expired_or_canceled_card, charge_for_pending_refund_disputed, insufficient_funds, declined, merchant_request, or unknown.
22 23 24 |
# File 'lib/stripe/params/payment_attempt_record_report_refund_params.rb', line 22 def failure_reason @failure_reason end |