copyWith method
RefundResponseAttributes
copyWith(
{ - int? amount,
- String? currency,
- bool? livemode,
- String? notes,
- String? paymentId,
- String? payoutId,
- String? reason,
- String? status,
- DateTime? createdAt,
- DateTime? updatedAt,
- String? balanceTransactionId,
})
Implementation
RefundResponseAttributes copyWith({
int? amount,
String? currency,
bool? livemode,
String? notes,
String? paymentId,
String? payoutId,
String? reason,
String? status,
DateTime? createdAt,
DateTime? updatedAt,
String? balanceTransactionId,
}) {
return RefundResponseAttributes(
amount: amount ?? this.amount,
currency: currency ?? this.currency,
livemode: livemode ?? this.livemode,
notes: notes ?? this.notes,
paymentId: paymentId ?? this.paymentId,
payoutId: payoutId ?? this.payoutId,
reason: reason ?? this.reason,
status: status ?? this.status,
createdAt: createdAt ?? this.createdAt,
updatedAt: updatedAt ?? this.updatedAt,
balanceTransactionId: balanceTransactionId ?? this.balanceTransactionId,
);
}