def get_payload(address):
    """
    According to an Address object, return a valid payload required by
    create/update address api routes.
    """
    return {
        "address": address.address,
        "city": address.city,
        "country": str(address.country),
        "first_name": address.first_name,
        "last_name": address.last_name,
        "title": address.title,
        "postcode": address.postcode,
    }