Class: Stripe::PaymentRecordReportPaymentAttemptParams

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

Defined Under Namespace

Classes: Failed, Guaranteed, PaymentMethodDetails, ShippingDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(description: nil, expand: nil, failed: nil, guaranteed: nil, initiated_at: nil, metadata: nil, outcome: nil, payment_method_details: nil, shipping_details: nil) ⇒ PaymentRecordReportPaymentAttemptParams

Returns a new instance of PaymentRecordReportPaymentAttemptParams.



164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 164

def initialize(
  description: nil,
  expand: nil,
  failed: nil,
  guaranteed: nil,
  initiated_at: nil,
  metadata: nil,
  outcome: nil,
  payment_method_details: nil,
  shipping_details: nil
)
  @description = description
  @expand = expand
  @failed = failed
  @guaranteed = guaranteed
  @initiated_at = initiated_at
  @metadata = 
  @outcome = outcome
  @payment_method_details = payment_method_details
  @shipping_details = shipping_details
end

Instance Attribute Details

#descriptionObject

An arbitrary string attached to the object. Often useful for displaying to users.



146
147
148
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 146

def description
  @description
end

#expandObject

Specifies which fields in the response should be expanded.



148
149
150
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 148

def expand
  @expand
end

#failedObject

Information about the payment attempt failure.



150
151
152
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 150

def failed
  @failed
end

#guaranteedObject

Information about the payment attempt guarantee.



152
153
154
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 152

def guaranteed
  @guaranteed
end

#initiated_atObject

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



154
155
156
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 154

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`.



156
157
158
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 156

def 
  @metadata
end

#outcomeObject

The outcome of the reported payment.



158
159
160
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 158

def outcome
  @outcome
end

#payment_method_detailsObject

Information about the Payment Method debited for this payment.



160
161
162
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 160

def payment_method_details
  @payment_method_details
end

#shipping_detailsObject

Shipping information for this payment.



162
163
164
# File 'lib/stripe/params/payment_record_report_payment_attempt_params.rb', line 162

def shipping_details
  @shipping_details
end