copyWithWrapped method
ExternalPaymentOptions
copyWithWrapped({
- Wrapped<
bool?> ? requestRefundDetails, - Wrapped<
String?> ? iban, - Wrapped<
PaymentInitiationOptionalRestrictionBacs?> ? bacs, - Wrapped<
String?> ? walletId, - Wrapped<
PaymentScheme?> ? scheme,
Implementation
ExternalPaymentOptions copyWithWrapped(
{Wrapped<bool?>? requestRefundDetails,
Wrapped<String?>? iban,
Wrapped<PaymentInitiationOptionalRestrictionBacs?>? bacs,
Wrapped<String?>? walletId,
Wrapped<enums.PaymentScheme?>? scheme}) {
return ExternalPaymentOptions(
requestRefundDetails: (requestRefundDetails != null
? requestRefundDetails.value
: this.requestRefundDetails),
iban: (iban != null ? iban.value : this.iban),
bacs: (bacs != null ? bacs.value : this.bacs),
walletId: (walletId != null ? walletId.value : this.walletId),
scheme: (scheme != null ? scheme.value : this.scheme));
}