Charge constructor

const Charge({
  1. required int amount,
  2. required int amountCaptured,
  3. required int amountRefunded,
  4. ApplicationOrId? application,
  5. ApplicationFeeOrId? applicationFee,
  6. int? applicationFeeAmount,
  7. String? authorizationCode,
  8. BalanceTransactionOrId? balanceTransaction,
  9. required BillingDetails billingDetails,
  10. String? calculatedStatementDescriptor,
  11. required bool captured,
  12. required DateTime created,
  13. required String currency,
  14. BankAccountCustomerOrId? customer,
  15. String? description,
  16. required bool disputed,
  17. BalanceTransactionOrId? failureBalanceTransaction,
  18. String? failureCode,
  19. String? failureMessage,
  20. ChargeFraudDetails? fraudDetails,
  21. required String id,
  22. InvoiceOrId? invoice,
  23. Level3? level3,
  24. required bool livemode,
  25. required Map<String, String> metadata,
  26. AccountOrId? onBehalfOf,
  27. ChargeOutcome? outcome,
  28. required bool paid,
  29. PaymentIntentOrId? paymentIntent,
  30. String? paymentMethod,
  31. ChargePaymentMethodDetails? paymentMethodDetails,
  32. RadarRadarOptions? radarOptions,
  33. String? receiptEmail,
  34. String? receiptNumber,
  35. String? receiptUrl,
  36. required bool refunded,
  37. ChargeRefunds? refunds,
  38. ReviewOrId? review,
  39. ChargeShipping? shipping,
  40. ChargeSource? source,
  41. TransferOrId? sourceTransfer,
  42. String? statementDescriptor,
  43. String? statementDescriptorSuffix,
  44. required BankConnectionsResourceBalanceRefreshStatus status,
  45. TransferOrId? transfer,
  46. ChargeTransferData? transferData,
  47. String? transferGroup,
})

Charge

The `Charge` object represents a single attempt to move money into your Stripe account. PaymentIntent confirmation is the most common way to create Charges, but transferring money to a different Stripe account through Connect also creates Charges. Some legacy payment flows create Charges directly, which is not recommended for new integrations.

Implementation

const Charge({
  required this.amount,
  required this.amountCaptured,
  required this.amountRefunded,
  this.application,
  this.applicationFee,
  this.applicationFeeAmount,
  this.authorizationCode,
  this.balanceTransaction,
  required this.billingDetails,
  this.calculatedStatementDescriptor,
  required this.captured,
  required this.created,
  required this.currency,
  this.customer,
  this.description,
  required this.disputed,
  this.failureBalanceTransaction,
  this.failureCode,
  this.failureMessage,
  this.fraudDetails,
  required this.id,
  this.invoice,
  this.level3,
  required this.livemode,
  required this.metadata,
  this.onBehalfOf,
  this.outcome,
  required this.paid,
  this.paymentIntent,
  this.paymentMethod,
  this.paymentMethodDetails,
  this.radarOptions,
  this.receiptEmail,
  this.receiptNumber,
  this.receiptUrl,
  required this.refunded,
  this.refunds,
  this.review,
  this.shipping,
  this.source,
  this.sourceTransfer,
  this.statementDescriptor,
  this.statementDescriptorSuffix,
  required this.status,
  this.transfer,
  this.transferData,
  this.transferGroup,
});