copyWith method

RefundResponseAttributes copyWith({
  1. int? amount,
  2. String? currency,
  3. bool? livemode,
  4. String? notes,
  5. String? paymentId,
  6. String? payoutId,
  7. String? reason,
  8. String? status,
  9. DateTime? createdAt,
  10. DateTime? updatedAt,
  11. 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,
  );
}