RazorpayAuthorizationToken constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayAuthorizationToken(
{ - required String method,
- EmandateAuthTypeToken? auth_type,
- int? max_amount,
- int? expire_at,
- IMap? notes,
- RazorpayBankAccount? bank_account,
- int? first_payment_amount,
- NachInfo? nach,
- dynamic recurring_status,
- dynamic failure_reason,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayAuthorizationToken({
// Response specific fields from d.ts
required String
method, // e.g., 'emandate', 'nach', 'card', required String currency, // Added based on typical token responses, // Base fields (mostly from Emandate)
EmandateAuthTypeToken? auth_type,
int? max_amount,
int? expire_at,
IMap<dynamic>? notes,
// bank_account in response uses the full BankAccount model
RazorpayBankAccount? bank_account, // Changed from Base request type
int? first_payment_amount,
// Nach specific info (if applicable)
NachInfo? nach,
dynamic
recurring_status, // Define enum if possible, 'active', 'pending', etc.
dynamic failure_reason, // String or specific error object?
}) = _RazorpayAuthorizationToken;