copyWith method

ExternalPaymentOptions copyWith({
  1. bool? requestRefundDetails,
  2. String? iban,
  3. PaymentInitiationOptionalRestrictionBacs? bacs,
  4. String? emiAccountId,
})

Implementation

ExternalPaymentOptions copyWith(
    {bool? requestRefundDetails,
    String? iban,
    PaymentInitiationOptionalRestrictionBacs? bacs,
    String? emiAccountId}) {
  return ExternalPaymentOptions(
      requestRefundDetails: requestRefundDetails ?? this.requestRefundDetails,
      iban: iban ?? this.iban,
      bacs: bacs ?? this.bacs,
      emiAccountId: emiAccountId ?? this.emiAccountId);
}