copyWith method
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,
);
}