copyWithWrapped method

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

Implementation

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