copyWithWrapped method
TransferCreateRequest
copyWithWrapped({
- Wrapped<
String?> ? clientId, - Wrapped<
String?> ? secret, - Wrapped<
String?> ? idempotencyKey, - Wrapped<
String?> ? accessToken, - Wrapped<
String?> ? accountId, - Wrapped<
String?> ? paymentProfileToken, - Wrapped<
String> ? authorizationId, - Wrapped<
TransferType?> ? type, - Wrapped<
TransferNetwork?> ? network, - Wrapped<
String?> ? amount, - Wrapped<
String> ? description, - Wrapped<
ACHClass?> ? achClass, - Wrapped<
TransferUserInRequestDeprecated?> ? user, - Wrapped<
TransferMetadata?> ? metadata, - Wrapped<
String?> ? originationAccountId, - Wrapped<
String?> ? isoCurrencyCode,
Implementation
TransferCreateRequest copyWithWrapped(
{Wrapped<String?>? clientId,
Wrapped<String?>? secret,
Wrapped<String?>? idempotencyKey,
Wrapped<String?>? accessToken,
Wrapped<String?>? accountId,
Wrapped<String?>? paymentProfileToken,
Wrapped<String>? authorizationId,
Wrapped<enums.TransferType?>? type,
Wrapped<enums.TransferNetwork?>? network,
Wrapped<String?>? amount,
Wrapped<String>? description,
Wrapped<enums.ACHClass?>? achClass,
Wrapped<TransferUserInRequestDeprecated?>? user,
Wrapped<TransferMetadata?>? metadata,
Wrapped<String?>? originationAccountId,
Wrapped<String?>? isoCurrencyCode}) {
return TransferCreateRequest(
clientId: (clientId != null ? clientId.value : this.clientId),
secret: (secret != null ? secret.value : this.secret),
idempotencyKey: (idempotencyKey != null
? idempotencyKey.value
: this.idempotencyKey),
accessToken:
(accessToken != null ? accessToken.value : this.accessToken),
accountId: (accountId != null ? accountId.value : this.accountId),
paymentProfileToken: (paymentProfileToken != null
? paymentProfileToken.value
: this.paymentProfileToken),
authorizationId: (authorizationId != null
? authorizationId.value
: this.authorizationId),
type: (type != null ? type.value : this.type),
network: (network != null ? network.value : this.network),
amount: (amount != null ? amount.value : this.amount),
description:
(description != null ? description.value : this.description),
achClass: (achClass != null ? achClass.value : this.achClass),
user: (user != null ? user.value : this.user),
metadata: (metadata != null ? metadata.value : this.metadata),
originationAccountId: (originationAccountId != null
? originationAccountId.value
: this.originationAccountId),
isoCurrencyCode: (isoCurrencyCode != null
? isoCurrencyCode.value
: this.isoCurrencyCode));
}