CustomerTokenResponse class

Response model for customer token retrieval API calls.

Contains a list of saved customer payment tokens that can be used for subsequent transactions without requiring card details re-entry. Extends BaseResponse to provide standard response structure.

Example:

final response = CustomerTokenResponse.fromJson(jsonData);
if (response.success) {
  final tokens = response.data; // List<CustomerToken>
  for (final token in tokens) {
    print('Card: ${token.cardNumber}, Token: ${token.customerTokenId}');
  }
}
Inheritance

Constructors

CustomerTokenResponse.new({required bool success, String? message, List<CustomerToken>? data})
CustomerTokenResponse.fromJson(dynamic json)
factory

Properties

data List<CustomerToken>?
The actual data payload of the response.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String?
Human-readable message describing the response result.
finalinherited
responseCode int?
The response code associated with this response.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success bool
Indicates whether the API operation was successful.
finalinherited

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