export const fromWiaasAddress = (address) => {
    return {
        id: address.id,
        countryName: address.country_name,
        deliveryMail: address.delivery_mail,
        idCountrySelected: address.id_country_selected,
        city: address.city,
        detailedAddress: address.detailed_address,
        zipCode: address.zip_code,
        firstName: address.first_name,
        lastName: address.lastName,
        invoiceMail: address.invoice_mail
    }
};

export const toWiaasAddress = (address) => {
    return {
        id: address.id,
        country_name: address.countryName,
        delivery_mail: address.deliveryMail,
        id_country_selected: address.idCountrySelected,
        city: address.city,
        detailed_address: address.detailedAddress,
        zip_code: address.zipCode,
        first_name: address.firstName,
        last_name: address.lastName,
        invoice_mail: address.invoiceMail
    }
};