copyWithWrapped method

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

Implementation

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