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