copyWith method

PaymentStatusUpdateWebhook copyWith({
  1. String? webhookType,
  2. String? webhookCode,
  3. String? paymentId,
  4. PaymentInitiationPaymentStatus? newPaymentStatus,
  5. PaymentInitiationPaymentStatus? oldPaymentStatus,
  6. String? originalReference,
  7. String? adjustedReference,
  8. DateTime? originalStartDate,
  9. DateTime? adjustedStartDate,
  10. DateTime? timestamp,
  11. PlaidError? error,
  12. 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);
}