copyWith method

Transfer copyWith({
  1. String? id,
  2. ACHClass? achClass,
  3. String? accountId,
  4. TransferType? type,
  5. TransferUserInResponse? user,
  6. String? amount,
  7. String? description,
  8. DateTime? created,
  9. TransferStatus? status,
  10. TransferSweepStatus? sweepStatus,
  11. TransferNetwork? network,
  12. bool? cancellable,
  13. TransferFailure? failureReason,
  14. TransferMetadata? metadata,
  15. String? originationAccountId,
  16. TransferAuthorizationGuaranteeDecision? guaranteeDecision,
  17. TransferAuthorizationGuaranteeDecisionRationale? guaranteeDecisionRationale,
  18. String? isoCurrencyCode,
  19. DateTime? standardReturnWindow,
  20. DateTime? unauthorizedReturnWindow,
  21. String? originatorClientId,
  22. List<TransferRefund>? refunds,
})

Implementation

Transfer copyWith(
    {String? id,
    enums.ACHClass? achClass,
    String? accountId,
    enums.TransferType? type,
    TransferUserInResponse? user,
    String? amount,
    String? description,
    DateTime? created,
    enums.TransferStatus? status,
    enums.TransferSweepStatus? sweepStatus,
    enums.TransferNetwork? network,
    bool? cancellable,
    TransferFailure? failureReason,
    TransferMetadata? metadata,
    String? originationAccountId,
    enums.TransferAuthorizationGuaranteeDecision? guaranteeDecision,
    TransferAuthorizationGuaranteeDecisionRationale?
        guaranteeDecisionRationale,
    String? isoCurrencyCode,
    DateTime? standardReturnWindow,
    DateTime? unauthorizedReturnWindow,
    String? originatorClientId,
    List<TransferRefund>? refunds}) {
  return Transfer(
      id: id ?? this.id,
      achClass: achClass ?? this.achClass,
      accountId: accountId ?? this.accountId,
      type: type ?? this.type,
      user: user ?? this.user,
      amount: amount ?? this.amount,
      description: description ?? this.description,
      created: created ?? this.created,
      status: status ?? this.status,
      sweepStatus: sweepStatus ?? this.sweepStatus,
      network: network ?? this.network,
      cancellable: cancellable ?? this.cancellable,
      failureReason: failureReason ?? this.failureReason,
      metadata: metadata ?? this.metadata,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      guaranteeDecision: guaranteeDecision ?? this.guaranteeDecision,
      guaranteeDecisionRationale:
          guaranteeDecisionRationale ?? this.guaranteeDecisionRationale,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      standardReturnWindow: standardReturnWindow ?? this.standardReturnWindow,
      unauthorizedReturnWindow:
          unauthorizedReturnWindow ?? this.unauthorizedReturnWindow,
      originatorClientId: originatorClientId ?? this.originatorClientId,
      refunds: refunds ?? this.refunds);
}