Uecko_ERP/modules/customers/src/api/application/get-customer/assembler/InvoiceParticipantAddress.presenter.ts.bak

20 lines
772 B
TypeScript
Raw Normal View History

2025-08-11 17:49:52 +00:00
import { CustomerParticipantAddress } from "@/contexts/invoicing/domain";
import { IInvoicingContext } from "@/contexts/invoicing/intrastructure/InvoicingContext";
import { ICreateCustomer_AddressParticipant_Response_DTO } from "@shared/contexts";
export const CustomerParticipantAddressAssembler = async (
2025-08-11 17:49:52 +00:00
address: CustomerParticipantAddress,
context: IInvoicingContext,
): Promise<ICreateCustomer_AddressParticipant_Response_DTO> => {
return {
id: address.id.toString(),
street: address.street.toString(),
city: address.city.toString(),
postal_code: address.postalCode.toString(),
province: address.province.toString(),
country: address.country.toString(),
email: address.email.toString(),
phone: address.phone.toString(),
};
};