Refund constructor
const
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
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)
Implementation
const Refund({
required this.amount,
this.balanceTransaction,
this.charge,
required this.created,
required this.currency,
this.description,
this.destinationDetails,
this.failureBalanceTransaction,
this.failureReason,
required this.id,
this.instructionsEmail,
this.metadata,
this.nextAction,
this.paymentIntent,
this.reason,
this.receiptNumber,
this.sourceTransferReversal,
this.status,
this.transferReversal,
});