CreateTokenResponse class

创建 Token 响应

Constructors

CreateTokenResponse({required bool success, String? tokenId, String? bin, String? maskedCardNumber, String? expirationDate, String? errorMessage})
const
CreateTokenResponse.fromMap(Map<String, dynamic> map)
factory

Properties

bin String?
卡 BIN (前 6 位)
final
卡 Logo/品牌
final
errorMessage String?
Error message if any
final
expirationDate String?
Card expiration date
final
hashCode int
The hash code for this object.
no setterinherited
maskedCardNumber String?
Masked card number
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Token 创建是否成功
final
tokenId String?
Token ID
final

Methods

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

Operators

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