import 'package:pshared/data/dto/payment/intent/customer.dart';
import 'package:pshared/models/payment/customer.dart';


extension CustomerMapper on Customer {
  CustomerDTO toDTO() => CustomerDTO(
    id: id,
    firstName: firstName,
    middleName: middleName,
    lastName: lastName,
    ip: ip,
    zip: zip,
    country: country,
    state: state,
    city: city,
    address: address,
  );
}

extension CustomerDTOMapper on CustomerDTO {
  Customer toDomain() => Customer(
    id: id,
    firstName: firstName,
    middleName: middleName,
    lastName: lastName,
    ip: ip,
    zip: zip,
    country: country,
    state: state,
    city: city,
    address: address,
  );
}
