RazorpayRefund constructor
- @JsonSerializable(includeIfNull: false)
const
RazorpayRefund(
{ - required String id,
- required String entity,
- required String currency,
- required String payment_id,
- required int created_at,
- required RazorpayRefundStatus status,
- int? amount,
- IMap? notes,
- String? receipt,
- IMap? acquirer_data,
- String? batch_id,
- ProcessedSpeed? speed_processed,
- RefundSpeed? speed_requested,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory RazorpayRefund({
required String id,
required String entity,
required String currency,
required String payment_id,
required int created_at,
required RazorpayRefundStatus status,
int?
amount, // Use nullable int as amount might not be present in all contexts? d.ts shows optional
IMap<dynamic>? notes, // IMap<string | number>
String? receipt, // Nullable string
// Response specific fields
IMap<dynamic>? acquirer_data, // Use Map<String, dynamic> for flexibility
String? batch_id, // Nullable string
ProcessedSpeed? speed_processed, // Nullable enum
RefundSpeed? speed_requested, // Nullable enum
}) = _RazorpayRefund;