Stripe::Refund
Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
Refund objects allow you to refund a previously created charge that isn't refunded yet. Funds are refunded to the credit or debit card that's initially charged. Related guide: Refunds
Constants
Constructors
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Instance methods
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] amount Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] balance_transaction Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] charge Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] created Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] currency Object to be assigned
An arbitrary string attached to the object. You can use this for displaying to users (available on non-card refunds only).
Custom attribute writer method checking allowed values (enum). @param [Object] description Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] destination_details Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] failure_balance_transaction Object to be assigned
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.
Custom attribute writer method checking allowed values (enum). @param [Object] failure_reason Object to be assigned
Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code
Custom attribute writer method checking allowed values (enum). @param [Object] id Object to be assigned
For payment methods without native refund support (for example, Konbini, PromptPay), provide an email address for the customer to receive refund instructions.
Custom attribute writer method checking allowed values (enum). @param [Object] instructions_email Object to be assigned
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Custom attribute writer method checking allowed values (enum). @param [Object] metadata Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] next_action Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] object Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] payment_intent Object to be assigned
Reason for the refund, which is either user-provided (duplicate, fraudulent, or requested_by_customer) or generated by Stripe internally (expired_uncaptured_charge).
Custom attribute writer method checking allowed values (enum). @param [Object] reason Object to be assigned
This is the transaction number that appears on email receipts sent for this refund.
Custom attribute writer method checking allowed values (enum). @param [Object] receipt_number Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] source_transfer_reversal Object to be assigned
Status of the refund. This can be pending, requires_action, succeeded, failed, or canceled. Learn more about failed refunds.
Custom attribute writer method checking allowed values (enum). @param [Object] status Object to be assigned
Custom attribute writer method checking allowed values (enum). @param [Object] transfer_reversal Object to be assigned
Check to see if the all the properties in the model are valid @return true if the model is valid