copyWithWrapped method
PaymentInitiationPaymentCreateRequest
copyWithWrapped({
- Wrapped<
String?> ? clientId, - Wrapped<
String?> ? secret, - Wrapped<
String> ? recipientId, - Wrapped<
String> ? reference, - Wrapped<
PaymentAmount> ? amount, - Wrapped<
ExternalPaymentScheduleRequest?> ? schedule, - Wrapped<
ExternalPaymentOptions?> ? options,
Implementation
PaymentInitiationPaymentCreateRequest copyWithWrapped(
{Wrapped<String?>? clientId,
Wrapped<String?>? secret,
Wrapped<String>? recipientId,
Wrapped<String>? reference,
Wrapped<PaymentAmount>? amount,
Wrapped<ExternalPaymentScheduleRequest?>? schedule,
Wrapped<ExternalPaymentOptions?>? options}) {
return PaymentInitiationPaymentCreateRequest(
clientId: (clientId != null ? clientId.value : this.clientId),
secret: (secret != null ? secret.value : this.secret),
recipientId:
(recipientId != null ? recipientId.value : this.recipientId),
reference: (reference != null ? reference.value : this.reference),
amount: (amount != null ? amount.value : this.amount),
schedule: (schedule != null ? schedule.value : this.schedule),
options: (options != null ? options.value : this.options));
}