copyWithWrapped method

PaymentInitiationPaymentReverseRequest copyWithWrapped({
  1. Wrapped<String?>? clientId,
  2. Wrapped<String?>? secret,
  3. Wrapped<String>? paymentId,
  4. Wrapped<String>? idempotencyKey,
  5. Wrapped<String>? reference,
  6. Wrapped<PaymentAmountToRefund?>? amount,
})

Implementation

PaymentInitiationPaymentReverseRequest copyWithWrapped(
    {Wrapped<String?>? clientId,
    Wrapped<String?>? secret,
    Wrapped<String>? paymentId,
    Wrapped<String>? idempotencyKey,
    Wrapped<String>? reference,
    Wrapped<PaymentAmountToRefund?>? amount}) {
  return PaymentInitiationPaymentReverseRequest(
      clientId: (clientId != null ? clientId.value : this.clientId),
      secret: (secret != null ? secret.value : this.secret),
      paymentId: (paymentId != null ? paymentId.value : this.paymentId),
      idempotencyKey: (idempotencyKey != null
          ? idempotencyKey.value
          : this.idempotencyKey),
      reference: (reference != null ? reference.value : this.reference),
      amount: (amount != null ? amount.value : this.amount));
}