RazorpayCard constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayCard({
  1. required String id,
  2. required String entity,
  3. required String number,
  4. required String name,
  5. required dynamic expiry_month,
  6. required dynamic expiry_year,
  7. required dynamic cvv,
  8. required String last4,
  9. required CardType type,
  10. required CardSubType sub_type,
  11. required bool international,
  12. String? cryptogram_value,
  13. bool? tokenised,
  14. String? token_provider,
  15. String? provider_type,
  16. String? token_iin,
  17. 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;