Source constructor

const Source({
  1. SourceTypeAchCreditTransfer? achCreditTransfer,
  2. SourceTypeAchDebit? achDebit,
  3. SourceTypeAcssDebit? acssDebit,
  4. SourceTypeAlipay? alipay,
  5. int? amount,
  6. SourceTypeAuBecsDebit? auBecsDebit,
  7. SourceTypeBancontact? bancontact,
  8. SourceTypeCard? card,
  9. SourceTypeCardPresent? cardPresent,
  10. required String clientSecret,
  11. SourceCodeVerificationFlow? codeVerification,
  12. required DateTime created,
  13. String? currency,
  14. String? customer,
  15. SourceTypeEps? eps,
  16. required String flow,
  17. SourceTypeGiropay? giropay,
  18. required String id,
  19. SourceTypeIdeal? ideal,
  20. SourceTypeKlarna? klarna,
  21. required bool livemode,
  22. Map<String, String>? metadata,
  23. SourceTypeMultibanco? multibanco,
  24. SourceOwner? owner,
  25. SourceTypeP24? p24,
  26. SourceReceiverFlow? receiver,
  27. SourceRedirectFlow? redirect,
  28. SourceTypeSepaCreditTransfer? sepaCreditTransfer,
  29. SourceTypeSepaDebit? sepaDebit,
  30. SourceTypeSofort? sofort,
  31. SourceOrder? sourceOrder,
  32. String? statementDescriptor,
  33. required String status,
  34. SourceTypeThreeDSecure? threeDSecure,
  35. required SourceType type,
  36. String? usage,
  37. SourceTypeWechat? wechat,
})

Source

`Source` objects allow you to accept a variety of payment methods. They represent a customer's payment instrument, and can be used with the Stripe API just like a `Card` object: once chargeable, they can be charged, or can be attached to customers. Stripe doesn't recommend using the deprecated [Sources API](https://stripe.com/docs/api/sources). We recommend that you adopt the [PaymentMethods API](https://stripe.com/docs/api/payment_methods). This newer API provides access to our latest features and payment method types. Related guides: [Sources API](https://stripe.com/docs/sources) and [Sources & Customers](https://stripe.com/docs/sources/customers).

Implementation

const Source({
  this.achCreditTransfer,
  this.achDebit,
  this.acssDebit,
  this.alipay,
  this.amount,
  this.auBecsDebit,
  this.bancontact,
  this.card,
  this.cardPresent,
  required this.clientSecret,
  this.codeVerification,
  required this.created,
  this.currency,
  this.customer,
  this.eps,
  required this.flow,
  this.giropay,
  required this.id,
  this.ideal,
  this.klarna,
  required this.livemode,
  this.metadata,
  this.multibanco,
  this.owner,
  this.p24,
  this.receiver,
  this.redirect,
  this.sepaCreditTransfer,
  this.sepaDebit,
  this.sofort,
  this.sourceOrder,
  this.statementDescriptor,
  required this.status,
  this.threeDSecure,
  required this.type,
  this.usage,
  this.wechat,
});