copyWith method

PaymentRefundResponseAttributes copyWith({
  1. double? amount,
  2. String? balanceTransactionId,
  3. String? currency,
  4. bool? livemode,
  5. Map<String, dynamic>? metadata,
  6. String? notes,
  7. String? paymentId,
  8. String? payoutId,
  9. String? reason,
  10. String? status,
  11. DateTime? availableAt,
  12. DateTime? createdAt,
  13. DateTime? updatedAt,
})

Implementation

PaymentRefundResponseAttributes copyWith({
  double? amount,
  String? balanceTransactionId,
  String? currency,
  bool? livemode,
  Map<String, dynamic>? metadata,
  String? notes,
  String? paymentId,
  String? payoutId,
  String? reason,
  String? status,
  DateTime? availableAt,
  DateTime? createdAt,
  DateTime? updatedAt,
}) {
  return PaymentRefundResponseAttributes(
    amount: amount ?? this.amount,
    balanceTransactionId: balanceTransactionId ?? this.balanceTransactionId,
    currency: currency ?? this.currency,
    livemode: livemode ?? this.livemode,
    metadata: metadata ?? this.metadata,
    notes: notes ?? this.notes,
    paymentId: paymentId ?? this.paymentId,
    payoutId: payoutId ?? this.payoutId,
    reason: reason ?? this.reason,
    status: status ?? this.status,
    availableAt: availableAt ?? this.availableAt,
    createdAt: createdAt ?? this.createdAt,
    updatedAt: updatedAt ?? this.updatedAt,
  );
}