SetupIntent class

SetupIntent information.

A setup intent is used to setup and save customer payment information for future payments.

Annotations
  • @freezed

Constructors

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})
const
factory
SetupIntent.fromJson(Map<String, dynamic> json)
factory

Properties

clientSecret String
The client is secret is used for handling the payment from the Client side.
no setterinherited
copyWith → $SetupIntentCopyWith<SetupIntent>
no setterinherited
created String?
Timestamp since epoch that represents the time the intent is created.
no setterinherited
description String?
Localized description that provides additional context to users.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier.
no setterinherited
lastSetupError LastSetupError?
Error encountered since last configmration.
no setterinherited
livemode bool
Determines whether the intent is in live mode or in test mode.
no setterinherited
mandateData MandateData?
Mandata data for this paymentintent.
no setterinherited
nextAction NextAction?
Additional action that needs to be taken in order to complete a payment using the provided resource.
no setterinherited
paymentMethodId String
Id of the payment method used in this intent.
no setterinherited
paymentMethodTypes List<PaymentMethodType>
List of payment method types associated with this intent.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
Status of the intent.
no setterinherited
usage String
Indicates how the intent is used in the future.
no setterinherited

Methods

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

Operators

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