copyWithWrapped method
ProcessorBankTransferCreateRequest
copyWithWrapped({
- Wrapped<
String?> ? clientId, - Wrapped<
String?> ? secret, - Wrapped<
String> ? idempotencyKey, - Wrapped<
String> ? processorToken, - Wrapped<
BankTransferType> ? type, - Wrapped<
BankTransferNetwork> ? network, - Wrapped<
String> ? amount, - Wrapped<
String> ? isoCurrencyCode, - Wrapped<
String> ? description, - Wrapped<
ACHClass?> ? achClass, - Wrapped<
BankTransferUser> ? user, - Wrapped<
String?> ? customTag, - Wrapped<
BankTransferMetadata?> ? metadata, - Wrapped<
String?> ? originationAccountId,
Implementation
ProcessorBankTransferCreateRequest copyWithWrapped(
{Wrapped<String?>? clientId,
Wrapped<String?>? secret,
Wrapped<String>? idempotencyKey,
Wrapped<String>? processorToken,
Wrapped<enums.BankTransferType>? type,
Wrapped<enums.BankTransferNetwork>? network,
Wrapped<String>? amount,
Wrapped<String>? isoCurrencyCode,
Wrapped<String>? description,
Wrapped<enums.ACHClass?>? achClass,
Wrapped<BankTransferUser>? user,
Wrapped<String?>? customTag,
Wrapped<BankTransferMetadata?>? metadata,
Wrapped<String?>? originationAccountId}) {
return ProcessorBankTransferCreateRequest(
clientId: (clientId != null ? clientId.value : this.clientId),
secret: (secret != null ? secret.value : this.secret),
idempotencyKey: (idempotencyKey != null
? idempotencyKey.value
: this.idempotencyKey),
processorToken: (processorToken != null
? processorToken.value
: this.processorToken),
type: (type != null ? type.value : this.type),
network: (network != null ? network.value : this.network),
amount: (amount != null ? amount.value : this.amount),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode),
description:
(description != null ? description.value : this.description),
achClass: (achClass != null ? achClass.value : this.achClass),
user: (user != null ? user.value : this.user),
customTag: (customTag != null ? customTag.value : this.customTag),
metadata: (metadata != null ? metadata.value : this.metadata),
originationAccountId: (originationAccountId != null
? originationAccountId.value
: this.originationAccountId));
}