Refund class final

Refund

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](https://stripe.com/docs/refunds)

Implemented types

Constructors

Refund({required int amount, BalanceTransactionOrId? balanceTransaction, ChargeOrId? charge, required DateTime created, required String currency, String? description, RefundDestinationDetails? destinationDetails, BalanceTransactionOrId? failureBalanceTransaction, String? failureReason, required String id, String? instructionsEmail, Map<String, String>? metadata, RefundNextAction? nextAction, PaymentIntentOrId? paymentIntent, RefundReason? reason, String? receiptNumber, TransferReversalOrId? sourceTransferReversal, String? status, TransferReversalOrId? transferReversal})
Refund
const
Refund.fromJson(Object? json)
factory

Properties

amount int
final
balanceTransaction BalanceTransactionOrId?
final
charge ChargeOrId?
final
created DateTime
final
currency String
final
description String?
final
destinationDetails RefundDestinationDetails?
final
failureBalanceTransaction BalanceTransactionOrId?
final
failureReason String?
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of the BalanceTransactionSource.
final
instructionsEmail String?
final
metadata Map<String, String>?
final
nextAction RefundNextAction?
final
object String
final
paymentIntent PaymentIntentOrId?
final
reason RefundReason?
final
receiptNumber String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceTransferReversal TransferReversalOrId?
final
status String?
final
transferReversal TransferReversalOrId?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(Refund instance, Encoder<V> encoder) → V
override