copyWithWrapped method
PaymentInitiationPaymentGetResponse
copyWithWrapped({
- Wrapped<
String> ? requestId, - Wrapped<
String> ? paymentId, - Wrapped<
PaymentAmount> ? amount, - Wrapped<
PaymentInitiationPaymentStatus> ? status, - Wrapped<
String> ? recipientId, - Wrapped<
String> ? reference, - Wrapped<
String?> ? adjustedReference, - Wrapped<
DateTime> ? lastStatusUpdate, - Wrapped<
ExternalPaymentScheduleGet?> ? schedule, - Wrapped<
ExternalPaymentRefundDetails?> ? refundDetails, - Wrapped<
SenderBACSNullable?> ? bacs, - Wrapped<
String?> ? iban, - Wrapped<
List< ? refundIds,String> ?> - Wrapped<
PaymentAmountRefunded?> ? amountRefunded, - Wrapped<
String?> ? walletId, - Wrapped<
PaymentScheme?> ? scheme, - Wrapped<
PaymentScheme?> ? adjustedScheme, - Wrapped<
String?> ? consentId, - Wrapped<
String?> ? transactionId,
Implementation
PaymentInitiationPaymentGetResponse copyWithWrapped(
{Wrapped<String>? requestId,
Wrapped<String>? paymentId,
Wrapped<PaymentAmount>? amount,
Wrapped<enums.PaymentInitiationPaymentStatus>? status,
Wrapped<String>? recipientId,
Wrapped<String>? reference,
Wrapped<String?>? adjustedReference,
Wrapped<DateTime>? lastStatusUpdate,
Wrapped<ExternalPaymentScheduleGet?>? schedule,
Wrapped<ExternalPaymentRefundDetails?>? refundDetails,
Wrapped<SenderBACSNullable?>? bacs,
Wrapped<String?>? iban,
Wrapped<List<String>?>? refundIds,
Wrapped<PaymentAmountRefunded?>? amountRefunded,
Wrapped<String?>? walletId,
Wrapped<enums.PaymentScheme?>? scheme,
Wrapped<enums.PaymentScheme?>? adjustedScheme,
Wrapped<String?>? consentId,
Wrapped<String?>? transactionId}) {
return PaymentInitiationPaymentGetResponse(
requestId: (requestId != null ? requestId.value : this.requestId),
paymentId: (paymentId != null ? paymentId.value : this.paymentId),
amount: (amount != null ? amount.value : this.amount),
status: (status != null ? status.value : this.status),
recipientId:
(recipientId != null ? recipientId.value : this.recipientId),
reference: (reference != null ? reference.value : this.reference),
adjustedReference: (adjustedReference != null
? adjustedReference.value
: this.adjustedReference),
lastStatusUpdate: (lastStatusUpdate != null
? lastStatusUpdate.value
: this.lastStatusUpdate),
schedule: (schedule != null ? schedule.value : this.schedule),
refundDetails:
(refundDetails != null ? refundDetails.value : this.refundDetails),
bacs: (bacs != null ? bacs.value : this.bacs),
iban: (iban != null ? iban.value : this.iban),
refundIds: (refundIds != null ? refundIds.value : this.refundIds),
amountRefunded: (amountRefunded != null
? amountRefunded.value
: this.amountRefunded),
walletId: (walletId != null ? walletId.value : this.walletId),
scheme: (scheme != null ? scheme.value : this.scheme),
adjustedScheme: (adjustedScheme != null
? adjustedScheme.value
: this.adjustedScheme),
consentId: (consentId != null ? consentId.value : this.consentId),
transactionId:
(transactionId != null ? transactionId.value : this.transactionId));
}