SourceTransaction constructor

const SourceTransaction({
  1. SourceTransactionAchCreditTransferData? achCreditTransfer,
  2. required int amount,
  3. SourceTransactionChfCreditTransferData? chfCreditTransfer,
  4. required DateTime created,
  5. required String currency,
  6. SourceTransactionGbpCreditTransferData? gbpCreditTransfer,
  7. required String id,
  8. required bool livemode,
  9. SourceTransactionPaperCheckData? paperCheck,
  10. SourceTransactionSepaCreditTransferData? sepaCreditTransfer,
  11. required String source,
  12. required String status,
  13. required SourceTransactionType type,
})

SourceTransaction

Some payment methods have no required amount that a customer must send. Customers can be instructed to send any amount, and it can be made up of multiple transactions. As such, sources can have multiple associated transactions.

Implementation

const SourceTransaction({
  this.achCreditTransfer,
  required this.amount,
  this.chfCreditTransfer,
  required this.created,
  required this.currency,
  this.gbpCreditTransfer,
  required this.id,
  required this.livemode,
  this.paperCheck,
  this.sepaCreditTransfer,
  required this.source,
  required this.status,
  required this.type,
});