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