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


extension RussianBankPaymentMethodMapper on RussianBankAccountPaymentMethod {
  RussianBankAccountPaymentDataDTO toDTO() => RussianBankAccountPaymentDataDTO(
    recipientName: recipientName,
    inn: inn,
    kpp: kpp,
    bankName: bankName,
    bik: bik,
    accountNumber: accountNumber,
    correspondentAccount: correspondentAccount,
  );
}

extension RussianBankAccountPaymentDataDTOMapper on RussianBankAccountPaymentDataDTO {
  RussianBankAccountPaymentMethod toDomain() => RussianBankAccountPaymentMethod(
    recipientName: recipientName,
    inn: inn,
    kpp: kpp,
    bankName: bankName,
    bik: bik,
    accountNumber: accountNumber,
    correspondentAccount: correspondentAccount,
  );
}
