RazorpayCard constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayCard(
{ - required String id,
- required String entity,
- required String number,
- required String name,
- required dynamic expiry_month,
- required dynamic expiry_year,
- required dynamic cvv,
- required String last4,
- required CardType type,
- required CardSubType sub_type,
- required bool international,
- String? cryptogram_value,
- bool? tokenised,
- String? token_provider,
- String? provider_type,
- String? token_iin,
- String? cobranding_partner,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayCard({
required String id,
required String entity,
required String
number, // Full number might not be in response, often masked
required String name,
required dynamic expiry_month, // string | number
required dynamic expiry_year, // string | number
required dynamic cvv, // Response specific fields
required String last4,
required CardType type,
required CardSubType sub_type,
required bool
international, // Masked card number, required CardNetwork network, required CardType type, required String issuer, // Bank code, required bool emi, required CardSubType sub_type, required CardFlows flows, required bool international, // Usually not in response
String? cryptogram_value, // Usually not in response
bool? tokenised, // Usually not in response
String? token_provider, // Usually not in response
String? provider_type, // Usually not in response
String? token_iin, // Nullable
String? cobranding_partner, // Nullable
}) = _RazorpayCard;