def METHOD_NAME(
    payload: AddressValidationRequest, settings: Settings
) -> Serializable:
    address = lib.to_address(payload.address)
    request = create_envelope(
        body_content=FedexAddressValidationRequest(
            WebAuthenticationDetail=settings.webAuthenticationDetail,
            ClientDetail=settings.clientDetail,
            TransactionDetail=TransactionDetail(
                CustomerTransactionId="AddressValidationRequest_v4"
            ),
            Version=VersionId(ServiceId="aval", Major=4, Intermediate=0, Minor=0),
            InEffectAsOfTimestamp=None,
            AddressesToValidate=[
                AddressToValidate(
                    ClientReferenceId=None,
                    Contact=Contact(
                        ContactId=None,
                        PersonName=address.person_name,
                        Title=None,
                        CompanyName=address.company_name,
                        PhoneNumber=address.phone_number,
                        PhoneExtension=None,
                        TollFreePhoneNumber=None,
                        PagerNumber=None,
                        FaxNumber=None,
                        EMailAddress=address.email,
                    )
                    if any(
                        [
                            address.person_name,
                            address.company_name,
                            address.phone_number,
                            address.email,
                        ]
                    )
                    else None,
                    Address=FedexAddress(
                        StreetLines=lib.join(
                            address.street,
                            address.address_line2,
                        ),
                        City=address.city,
                        StateOrProvinceCode=address.city,
                        PostalCode=address.postal_code,
                        UrbanizationCode=None,
                        CountryCode=address.country_code,
                        CountryName=None,
                        Residential="" if address.residential else None,
                    ),
                )
            ],
        )
    )
    return Serializable(
        request,
        default_request_serializer(
            "v4", 'xmlns:v4="http://fedex.com/ws/addressvalidation/v4"'
        ),
    )