copyWith method

PaymentInitiationPaymentCreateRequest copyWith({
  1. String? clientId,
  2. String? secret,
  3. String? recipientId,
  4. String? reference,
  5. PaymentAmount? amount,
  6. ExternalPaymentScheduleRequest? schedule,
  7. ExternalPaymentOptions? options,
})

Implementation

PaymentInitiationPaymentCreateRequest copyWith(
    {String? clientId,
    String? secret,
    String? recipientId,
    String? reference,
    PaymentAmount? amount,
    ExternalPaymentScheduleRequest? schedule,
    ExternalPaymentOptions? options}) {
  return PaymentInitiationPaymentCreateRequest(
      clientId: clientId ?? this.clientId,
      secret: secret ?? this.secret,
      recipientId: recipientId ?? this.recipientId,
      reference: reference ?? this.reference,
      amount: amount ?? this.amount,
      schedule: schedule ?? this.schedule,
      options: options ?? this.options);
}