copyWith method
PaymentInitiationPaymentCreateRequest
copyWith({
- String? clientId,
- String? secret,
- String? recipientId,
- String? reference,
- PaymentAmount? amount,
- ExternalPaymentScheduleRequest? schedule,
- 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);
}