copyWith method

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

Implementation

PaymentInitiationPaymentReverseRequest copyWith(
    {String? clientId,
    String? secret,
    String? paymentId,
    String? idempotencyKey,
    String? reference,
    PaymentAmountToRefund? amount}) {
  return PaymentInitiationPaymentReverseRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      paymentId: paymentId ?? this.paymentId,
      idempotencyKey: idempotencyKey ?? this.idempotencyKey,
      reference: reference ?? this.reference,
      amount: amount ?? this.amount);
}