copyWith method

RecurringTransfer copyWith({
  1. String? recurringTransferId,
  2. DateTime? created,
  3. DateTime? nextOriginationDate,
  4. String? testClockId,
  5. TransferType? type,
  6. String? amount,
  7. TransferRecurringStatus? status,
  8. ACHClass? achClass,
  9. TransferNetwork? network,
  10. String? originationAccountId,
  11. String? accountId,
  12. String? isoCurrencyCode,
  13. List<String>? transferIds,
  14. TransferAuthorizationDecision? decision,
  15. TransferAuthorizationDecisionRationale? decisionRationale,
  16. TransferUserInResponse? user,
  17. TransferRecurringSchedule? schedule,
})

Implementation

RecurringTransfer copyWith(
    {String? recurringTransferId,
    DateTime? created,
    DateTime? nextOriginationDate,
    String? testClockId,
    enums.TransferType? type,
    String? amount,
    enums.TransferRecurringStatus? status,
    enums.ACHClass? achClass,
    enums.TransferNetwork? network,
    String? originationAccountId,
    String? accountId,
    String? isoCurrencyCode,
    List<String>? transferIds,
    enums.TransferAuthorizationDecision? decision,
    TransferAuthorizationDecisionRationale? decisionRationale,
    TransferUserInResponse? user,
    TransferRecurringSchedule? schedule}) {
  return RecurringTransfer(
      recurringTransferId: recurringTransferId ?? this.recurringTransferId,
      created: created ?? this.created,
      nextOriginationDate: nextOriginationDate ?? this.nextOriginationDate,
      testClockId: testClockId ?? this.testClockId,
      type: type ?? this.type,
      amount: amount ?? this.amount,
      status: status ?? this.status,
      achClass: achClass ?? this.achClass,
      network: network ?? this.network,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      accountId: accountId ?? this.accountId,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      transferIds: transferIds ?? this.transferIds,
      decision: decision ?? this.decision,
      decisionRationale: decisionRationale ?? this.decisionRationale,
      user: user ?? this.user,
      schedule: schedule ?? this.schedule);
}