copyWith method

CreateRefundAttributes copyWith({
  1. int? amount,
  2. String? notes,
  3. String? paymentId,
  4. String? reason,
  5. Map<String, dynamic>? metadata,
})

Implementation

CreateRefundAttributes copyWith({
  int? amount,
  String? notes,
  String? paymentId,
  String? reason,
  Map<String, dynamic>? metadata,
}) {
  return CreateRefundAttributes(
    amount: amount ?? this.amount,
    notes: notes ?? this.notes,
    paymentId: paymentId ?? this.paymentId,
    reason: reason ?? this.reason,
    metadata: metadata ?? this.metadata,
  );
}