copyWithWrapped method
BankTransferEvent
copyWithWrapped({
- Wrapped<
int> ? eventId, - Wrapped<
DateTime> ? timestamp, - Wrapped<
BankTransferEventType> ? eventType, - Wrapped<
String> ? accountId, - Wrapped<
String> ? bankTransferId, - Wrapped<
String?> ? originationAccountId, - Wrapped<
BankTransferType> ? bankTransferType, - Wrapped<
String> ? bankTransferAmount, - Wrapped<
String> ? bankTransferIsoCurrencyCode, - Wrapped<
BankTransferFailure?> ? failureReason, - Wrapped<
BankTransferDirection?> ? direction,
Implementation
BankTransferEvent copyWithWrapped(
{Wrapped<int>? eventId,
Wrapped<DateTime>? timestamp,
Wrapped<enums.BankTransferEventType>? eventType,
Wrapped<String>? accountId,
Wrapped<String>? bankTransferId,
Wrapped<String?>? originationAccountId,
Wrapped<enums.BankTransferType>? bankTransferType,
Wrapped<String>? bankTransferAmount,
Wrapped<String>? bankTransferIsoCurrencyCode,
Wrapped<BankTransferFailure?>? failureReason,
Wrapped<enums.BankTransferDirection?>? direction}) {
return BankTransferEvent(
eventId: (eventId != null ? eventId.value : this.eventId),
timestamp: (timestamp != null ? timestamp.value : this.timestamp),
eventType: (eventType != null ? eventType.value : this.eventType),
accountId: (accountId != null ? accountId.value : this.accountId),
bankTransferId: (bankTransferId != null
? bankTransferId.value
: this.bankTransferId),
originationAccountId: (originationAccountId != null
? originationAccountId.value
: this.originationAccountId),
bankTransferType: (bankTransferType != null
? bankTransferType.value
: this.bankTransferType),
bankTransferAmount: (bankTransferAmount != null
? bankTransferAmount.value
: this.bankTransferAmount),
bankTransferIsoCurrencyCode: (bankTransferIsoCurrencyCode != null
? bankTransferIsoCurrencyCode.value
: this.bankTransferIsoCurrencyCode),
failureReason:
(failureReason != null ? failureReason.value : this.failureReason),
direction: (direction != null ? direction.value : this.direction));
}