Refund constructor

const Refund({
  1. required int amount,
  2. BalanceTransactionOrId? balanceTransaction,
  3. ChargeOrId? charge,
  4. required DateTime created,
  5. required String currency,
  6. String? description,
  7. RefundDestinationDetails? destinationDetails,
  8. BalanceTransactionOrId? failureBalanceTransaction,
  9. String? failureReason,
  10. required String id,
  11. String? instructionsEmail,
  12. Map<String, String>? metadata,
  13. RefundNextAction? nextAction,
  14. PaymentIntentOrId? paymentIntent,
  15. RefundReason? reason,
  16. String? receiptNumber,
  17. TransferReversalOrId? sourceTransferReversal,
  18. String? status,
  19. 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,
});