SetupIntent constructor
- @JsonSerializable(explicitToJson: true)
const
SetupIntent(
{ - required String id,
- required String status,
- required bool livemode,
- required String clientSecret,
- required String paymentMethodId,
- required String usage,
- required List<PaymentMethodType> paymentMethodTypes,
- String? description,
- String? created,
- LastSetupError? lastSetupError,
- NextAction? nextAction,
- MandateData? mandateData,
})
Implementation
@JsonSerializable(explicitToJson: true)
const factory SetupIntent({
/// Unique identifier.
required String id,
/// Status of the intent.
///
/// See https://stripe.com/docs/payments/intents#intent-statuses.
required String status,
/// Determines whether the intent is in live mode or in test mode.
required bool livemode,
/// The client is secret is used for handling the payment from the Client side.
required String clientSecret,
/// Id of the payment method used in this intent.
required String paymentMethodId,
/// Indicates how the intent is used in the future.
required String usage,
/// List of payment method types associated with this intent.
required List<PaymentMethodType> paymentMethodTypes,
/// Localized description that provides additional context to users.
String? description,
/// Timestamp since epoch that represents the time the intent is created.
String? created,
/// Error encountered since last configmration.
LastSetupError? lastSetupError,
/// Additional action that needs to be taken in order to complete a payment
/// using the provided resource.
NextAction? nextAction,
/// Mandata data for this paymentintent.
MandateData? mandateData,
}) = _SetupIntent;