copyWith method

PaymentInitiationPaymentGetResponse copyWith({
  1. String? requestId,
  2. String? paymentId,
  3. PaymentAmount? amount,
  4. PaymentInitiationPaymentStatus? status,
  5. String? recipientId,
  6. String? reference,
  7. String? adjustedReference,
  8. DateTime? lastStatusUpdate,
  9. ExternalPaymentScheduleGet? schedule,
  10. ExternalPaymentRefundDetails? refundDetails,
  11. SenderBACSNullable? bacs,
  12. String? iban,
  13. List<String>? refundIds,
  14. PaymentAmountRefunded? amountRefunded,
  15. String? walletId,
  16. PaymentScheme? scheme,
  17. PaymentScheme? adjustedScheme,
  18. String? consentId,
  19. String? transactionId,
})

Implementation

PaymentInitiationPaymentGetResponse copyWith(
    {String? requestId,
    String? paymentId,
    PaymentAmount? amount,
    enums.PaymentInitiationPaymentStatus? status,
    String? recipientId,
    String? reference,
    String? adjustedReference,
    DateTime? lastStatusUpdate,
    ExternalPaymentScheduleGet? schedule,
    ExternalPaymentRefundDetails? refundDetails,
    SenderBACSNullable? bacs,
    String? iban,
    List<String>? refundIds,
    PaymentAmountRefunded? amountRefunded,
    String? walletId,
    enums.PaymentScheme? scheme,
    enums.PaymentScheme? adjustedScheme,
    String? consentId,
    String? transactionId}) {
  return PaymentInitiationPaymentGetResponse(
      requestId: requestId ?? this.requestId,
      paymentId: paymentId ?? this.paymentId,
      amount: amount ?? this.amount,
      status: status ?? this.status,
      recipientId: recipientId ?? this.recipientId,
      reference: reference ?? this.reference,
      adjustedReference: adjustedReference ?? this.adjustedReference,
      lastStatusUpdate: lastStatusUpdate ?? this.lastStatusUpdate,
      schedule: schedule ?? this.schedule,
      refundDetails: refundDetails ?? this.refundDetails,
      bacs: bacs ?? this.bacs,
      iban: iban ?? this.iban,
      refundIds: refundIds ?? this.refundIds,
      amountRefunded: amountRefunded ?? this.amountRefunded,
      walletId: walletId ?? this.walletId,
      scheme: scheme ?? this.scheme,
      adjustedScheme: adjustedScheme ?? this.adjustedScheme,
      consentId: consentId ?? this.consentId,
      transactionId: transactionId ?? this.transactionId);
}