import 'package:pshared/data/dto/payment/iban.dart';
import 'package:pshared/models/payment/methods/iban.dart';


extension IbanPaymentMethodMapper on IbanPaymentMethod {
  IbanPaymentDataDTO toDTO() => IbanPaymentDataDTO(
    iban: iban,
    accountHolder: accountHolder,
    bic: bic,
    bankName: bankName,
  );
}

extension IbanPaymentDataDTOMapper on IbanPaymentDataDTO {
  IbanPaymentMethod toDomain() => IbanPaymentMethod(
    iban: iban,
    accountHolder: accountHolder,
    bic: bic,
    bankName: bankName,
  );
}
