Charge class

Constructors

Charge.new({required String id, required num amount, required String balance_transaction, required BillingDetails billing_details, required String currency, required String customer, required String description, required bool disputed, required String? invoice, required Map<String, dynamic> metadata, required String? payment_intent, required String payment_method, required PaymentMethodDetails payment_method_details, required String? receipt_email, required bool refunded, required Map<String, dynamic>? shipping, required String? statement_descriptor, required String? statement_descriptor_suffix, required ChargeStatus status})

Properties

amount num
Amount intended to be collected by this payment. A positive integer representing how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or equivalent in charge currency. The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
final
balance_transaction String
ID of the balance transaction that describes the impact of this charge on your account balance (not including refunds or disputes).
final
billing_details BillingDetails
Billing information associated with the payment method at the time of the transaction.
final
currency String
Three-letter ISO currency code, in lowercase. Must be a supported currency.
final
customer String
ID of the customer this charge is for if one exists.
final
description String
An arbitrary string attached to the object. Often useful for displaying to users.
final
disputed bool
Whether the charge has been disputed.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the object.
final
invoice String?
ID of the invoice this charge is for if one exists.
final
metadata Map<String, dynamic>
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
final
payment_intent String?
ID of the PaymentIntent associated with this charge, if one exists.
final
payment_method String
final
payment_method_details PaymentMethodDetails
Details about the payment method at the time of the transaction. https://stripe.com/docs/api/charges/object#charge_object-payment_method_details
final
receipt_email String?
This is the email address that the receipt for this charge was sent to.
final
refunded bool
Whether the charge has been fully refunded. If the charge is only partially refunded, this attribute will still be false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shipping Map<String, dynamic>?
Shipping information for the charge.
final
statement_descriptor String?
For card charges, use statement_descriptor_suffix instead. Otherwise, you can use this value as the complete description of a charge on your customers’ statements. Must contain at least one letter, maximum 22 characters.
final
statement_descriptor_suffix String?
Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that’s set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.
final
status ChargeStatus
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map<String, dynamic> parsedJSON) Charge