Class: Stripe::PaymentRecordReportRefundParams::Failed

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/payment_record_report_refund_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_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_atObject

When the reported refund failed. Measured in seconds since the Unix epoch.



20
21
22
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 20

def failed_at
  @failed_at
end

#failure_reasonObject

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_record_report_refund_params.rb', line 22

def failure_reason
  @failure_reason
end