Class: Stripe::PaymentRecordReportRefundParams

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

Defined Under Namespace

Classes: Amount, ProcessorDetails, Refunded

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(amount: nil, expand: nil, initiated_at: nil, metadata: nil, outcome: nil, processor_details: nil, refunded: nil) ⇒ PaymentRecordReportRefundParams

Returns a new instance of PaymentRecordReportRefundParams.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 61

def initialize(
  amount: nil,
  expand: nil,
  initiated_at: nil,
  metadata: nil,
  outcome: nil,
  processor_details: nil,
  refunded: nil
)
  @amount = amount
  @expand = expand
  @initiated_at = initiated_at
  @metadata = 
  @outcome = outcome
  @processor_details = processor_details
  @refunded = refunded
end

Instance Attribute Details

#amountObject

A positive integer in the [smallest currency unit](stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment.



47
48
49
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 47

def amount
  @amount
end

#expandObject

Specifies which fields in the response should be expanded.



49
50
51
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 49

def expand
  @expand
end

#initiated_atObject

When the reported refund was initiated. Measured in seconds since the Unix epoch.



51
52
53
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 51

def initiated_at
  @initiated_at
end

#metadataObject

Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.



53
54
55
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 53

def 
  @metadata
end

#outcomeObject

The outcome of the reported refund.



55
56
57
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 55

def outcome
  @outcome
end

#processor_detailsObject

Processor information for this refund.



57
58
59
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 57

def processor_details
  @processor_details
end

#refundedObject

Information about the payment attempt refund.



59
60
61
# File 'lib/stripe/params/payment_record_report_refund_params.rb', line 59

def refunded
  @refunded
end