copyWithWrapped method
PaymentStatusUpdateWebhook
copyWithWrapped({
- Wrapped<
String> ? webhookType, - Wrapped<
String> ? webhookCode, - Wrapped<
String> ? paymentId, - Wrapped<
PaymentInitiationPaymentStatus> ? newPaymentStatus, - Wrapped<
PaymentInitiationPaymentStatus> ? oldPaymentStatus, - Wrapped<
String?> ? originalReference, - Wrapped<
String?> ? adjustedReference, - Wrapped<
DateTime?> ? originalStartDate, - Wrapped<
DateTime?> ? adjustedStartDate, - Wrapped<
DateTime> ? timestamp, - Wrapped<
PlaidError?> ? error, - Wrapped<
WebhookEnvironmentValues> ? environment,
Implementation
PaymentStatusUpdateWebhook copyWithWrapped(
{Wrapped<String>? webhookType,
Wrapped<String>? webhookCode,
Wrapped<String>? paymentId,
Wrapped<enums.PaymentInitiationPaymentStatus>? newPaymentStatus,
Wrapped<enums.PaymentInitiationPaymentStatus>? oldPaymentStatus,
Wrapped<String?>? originalReference,
Wrapped<String?>? adjustedReference,
Wrapped<DateTime?>? originalStartDate,
Wrapped<DateTime?>? adjustedStartDate,
Wrapped<DateTime>? timestamp,
Wrapped<PlaidError?>? error,
Wrapped<enums.WebhookEnvironmentValues>? environment}) {
return PaymentStatusUpdateWebhook(
webhookType:
(webhookType != null ? webhookType.value : this.webhookType),
webhookCode:
(webhookCode != null ? webhookCode.value : this.webhookCode),
paymentId: (paymentId != null ? paymentId.value : this.paymentId),
newPaymentStatus: (newPaymentStatus != null
? newPaymentStatus.value
: this.newPaymentStatus),
oldPaymentStatus: (oldPaymentStatus != null
? oldPaymentStatus.value
: this.oldPaymentStatus),
originalReference: (originalReference != null
? originalReference.value
: this.originalReference),
adjustedReference: (adjustedReference != null
? adjustedReference.value
: this.adjustedReference),
originalStartDate: (originalStartDate != null
? originalStartDate.value
: this.originalStartDate),
adjustedStartDate: (adjustedStartDate != null
? adjustedStartDate.value
: this.adjustedStartDate),
timestamp: (timestamp != null ? timestamp.value : this.timestamp),
error: (error != null ? error.value : this.error),
environment:
(environment != null ? environment.value : this.environment));
}