copyWith method

TransferAuthorizationCreateRequest copyWith({
  1. String? clientId,
  2. String? secret,
  3. String? accessToken,
  4. String? accountId,
  5. String? paymentProfileToken,
  6. TransferType? type,
  7. TransferNetwork? network,
  8. String? amount,
  9. ACHClass? achClass,
  10. TransferAuthorizationUserInRequest? user,
  11. TransferAuthorizationDevice? device,
  12. String? originationAccountId,
  13. String? isoCurrencyCode,
  14. String? idempotencyKey,
  15. bool? userPresent,
  16. bool? withGuarantee,
  17. String? beaconSessionId,
  18. String? originatorClientId,
})

Implementation

TransferAuthorizationCreateRequest copyWith(
    {String? clientId,
    String? secret,
    String? accessToken,
    String? accountId,
    String? paymentProfileToken,
    enums.TransferType? type,
    enums.TransferNetwork? network,
    String? amount,
    enums.ACHClass? achClass,
    TransferAuthorizationUserInRequest? user,
    TransferAuthorizationDevice? device,
    String? originationAccountId,
    String? isoCurrencyCode,
    String? idempotencyKey,
    bool? userPresent,
    bool? withGuarantee,
    String? beaconSessionId,
    String? originatorClientId}) {
  return TransferAuthorizationCreateRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      accessToken: accessToken ?? this.accessToken,
      accountId: accountId ?? this.accountId,
      paymentProfileToken: paymentProfileToken ?? this.paymentProfileToken,
      type: type ?? this.type,
      network: network ?? this.network,
      amount: amount ?? this.amount,
      achClass: achClass ?? this.achClass,
      user: user ?? this.user,
      device: device ?? this.device,
      originationAccountId: originationAccountId ?? this.originationAccountId,
      isoCurrencyCode: isoCurrencyCode ?? this.isoCurrencyCode,
      idempotencyKey: idempotencyKey ?? this.idempotencyKey,
      userPresent: userPresent ?? this.userPresent,
      withGuarantee: withGuarantee ?? this.withGuarantee,
      beaconSessionId: beaconSessionId ?? this.beaconSessionId,
      originatorClientId: originatorClientId ?? this.originatorClientId);
}