CommercePaymentSourceResponse class

Constructors

CommercePaymentSourceResponse({required CommercePaymentSourceResponseObjectEnum object, required String id, required String payerId, required CommercePaymentSourceResponsePaymentMethodEnum paymentMethod, bool? isDefault, required String gateway, required String gatewayExternalId, String? gatewayExternalAccountId, required String last4, required CommercePaymentSourceResponseStatusEnum status, required String walletType, required String cardType, int? expiryYear, int? expiryMonth, required int createdAt, required int updatedAt, bool? isRemovable})
Returns a new CommercePaymentSourceResponse instance.

Properties

cardType String
Type of card (if applicable).
getter/setter pair
createdAt int
Unix timestamp (in milliseconds) when the payment source was created.
getter/setter pair
expiryMonth int?
Card expiration month (for card payment sources).
getter/setter pair
expiryYear int?
Card expiration year (for card payment sources).
getter/setter pair
gateway String
The payment gateway.
getter/setter pair
gatewayExternalAccountId String?
External account ID in the payment gateway.
getter/setter pair
gatewayExternalId String
External ID in the payment gateway.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
id String
Unique identifier for the payment source.
getter/setter pair
isDefault bool?
Whether this is the default payment source for the payer.
getter/setter pair
isRemovable bool?
Whether this payment source can be removed.
getter/setter pair
last4 String
Last 4 digits of the card (for card payment sources).
getter/setter pair
object CommercePaymentSourceResponseObjectEnum
String representing the object's type. Objects of the same type share the same value.
getter/setter pair
payerId String
Unique identifier for the payer.
getter/setter pair
paymentMethod CommercePaymentSourceResponsePaymentMethodEnum
The payment method type.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status CommercePaymentSourceResponseStatusEnum
Status of the payment source.
getter/setter pair
updatedAt int
Unix timestamp (in milliseconds) when the payment source was last updated.
getter/setter pair
walletType String
Type of wallet (if applicable).
getter/setter pair

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) CommercePaymentSourceResponse?
Returns a new CommercePaymentSourceResponse instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) List<CommercePaymentSourceResponse>
mapFromJson(dynamic json) Map<String, CommercePaymentSourceResponse>
mapListFromJson(dynamic json, {bool growable = false}) Map<String, List<CommercePaymentSourceResponse>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.