copyWithWrapped method
BankTransfer
copyWithWrapped({
- Wrapped<
String> ? id, - Wrapped<
ACHClass> ? achClass, - Wrapped<
String> ? accountId, - Wrapped<
BankTransferType> ? type, - Wrapped<
BankTransferUser> ? user, - Wrapped<
String> ? amount, - Wrapped<
String> ? isoCurrencyCode, - Wrapped<
String> ? description, - Wrapped<
DateTime> ? created, - Wrapped<
BankTransferStatus> ? status, - Wrapped<
BankTransferNetwork> ? network, - Wrapped<
bool> ? cancellable, - Wrapped<
BankTransferFailure?> ? failureReason, - Wrapped<
String?> ? customTag, - Wrapped<
BankTransferMetadata?> ? metadata, - Wrapped<
String> ? originationAccountId, - Wrapped<
BankTransferDirection?> ? direction,
Implementation
BankTransfer copyWithWrapped(
{Wrapped<String>? id,
Wrapped<enums.ACHClass>? achClass,
Wrapped<String>? accountId,
Wrapped<enums.BankTransferType>? type,
Wrapped<BankTransferUser>? user,
Wrapped<String>? amount,
Wrapped<String>? isoCurrencyCode,
Wrapped<String>? description,
Wrapped<DateTime>? created,
Wrapped<enums.BankTransferStatus>? status,
Wrapped<enums.BankTransferNetwork>? network,
Wrapped<bool>? cancellable,
Wrapped<BankTransferFailure?>? failureReason,
Wrapped<String?>? customTag,
Wrapped<BankTransferMetadata?>? metadata,
Wrapped<String>? originationAccountId,
Wrapped<enums.BankTransferDirection?>? direction}) {
return BankTransfer(
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),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
description:
(description != null ? description.value : this.description),
created: (created != null ? created.value : this.created),
status: (status != null ? status.value : this.status),
network: (network != null ? network.value : this.network),
cancellable:
(cancellable != null ? cancellable.value : this.cancellable),
failureReason:
(failureReason != null ? failureReason.value : this.failureReason),
customTag: (customTag != null ? customTag.value : this.customTag),
metadata: (metadata != null ? metadata.value : this.metadata),
originationAccountId: (originationAccountId != null
? originationAccountId.value
: this.originationAccountId),
direction: (direction != null ? direction.value : this.direction));
}