payment recipient data
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user