copyWith method
PaymentStatusUpdateWebhook
copyWith({
- String? webhookType,
- String? webhookCode,
- String? paymentId,
- PaymentInitiationPaymentStatus? newPaymentStatus,
- PaymentInitiationPaymentStatus? oldPaymentStatus,
- String? originalReference,
- String? adjustedReference,
- DateTime? originalStartDate,
- DateTime? adjustedStartDate,
- DateTime? timestamp,
- PlaidError? error,
- WebhookEnvironmentValues? environment,
Implementation
PaymentStatusUpdateWebhook copyWith(
{String? webhookType,
String? webhookCode,
String? paymentId,
enums.PaymentInitiationPaymentStatus? newPaymentStatus,
enums.PaymentInitiationPaymentStatus? oldPaymentStatus,
String? originalReference,
String? adjustedReference,
DateTime? originalStartDate,
DateTime? adjustedStartDate,
DateTime? timestamp,
PlaidError? error,
enums.WebhookEnvironmentValues? environment}) {
return PaymentStatusUpdateWebhook(
webhookType: webhookType ?? this.webhookType,
webhookCode: webhookCode ?? this.webhookCode,
paymentId: paymentId ?? this.paymentId,
newPaymentStatus: newPaymentStatus ?? this.newPaymentStatus,
oldPaymentStatus: oldPaymentStatus ?? this.oldPaymentStatus,
originalReference: originalReference ?? this.originalReference,
adjustedReference: adjustedReference ?? this.adjustedReference,
originalStartDate: originalStartDate ?? this.originalStartDate,
adjustedStartDate: adjustedStartDate ?? this.adjustedStartDate,
timestamp: timestamp ?? this.timestamp,
error: error ?? this.error,
environment: environment ?? this.environment);
}