RazorpayDisputesContestBaseRequestBody constructor

  1. @JsonSerializable(includeIfNull: false)
const RazorpayDisputesContestBaseRequestBody({
  1. int? amount,
  2. String? summary,
  3. List<String>? shipping_proof,
  4. List<String>? billing_proof,
  5. List<String>? cancellation_proof,
  6. List<String>? customer_communication,
  7. List<String>? proof_of_service,
  8. List<String>? explanation_letter,
  9. List<String>? refund_confirmation,
  10. List<String>? access_activity_log,
  11. List<String>? refund_cancellation_policy,
  12. List<String>? term_and_conditions,
  13. List<OthersEvidence>? others,
  14. String? action,
  15. dynamic submitted_at,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory RazorpayDisputesContestBaseRequestBody({
  // Fields for submitting evidence
  int?
      amount, // Make contest fields optional as they form 'evidence' in response
  String? summary,
  List<String>? shipping_proof,
  List<String>? billing_proof,
  List<String>? cancellation_proof,
  List<String>? customer_communication,
  List<String>? proof_of_service,
  List<String>? explanation_letter,
  List<String>? refund_confirmation,
  List<String>? access_activity_log,
  List<String>? refund_cancellation_policy,
  List<String>? term_and_conditions,
  List<OthersEvidence>? others,
  String? action, // 'draft' or 'submit' when contesting
  dynamic
      submitted_at, // Keep as dynamic or use int? for nullable Unix timestamp
}) = _RazorpayDisputesContestBaseRequestBody;