2023-11-28 23:50:50 -08:00
from typing import Optional
2022-06-11 17:26:20 -07:00
2023-11-28 23:50:50 -08:00
from pydantic import BaseModel
2022-06-11 17:26:20 -07:00
2023-04-06 15:34:57 -07:00
from . . models . country_code import CountryCode
2023-11-27 16:01:20 -08:00
from . . models . uuid import Uuid
2022-06-11 17:26:20 -07:00
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
class NewAddress ( BaseModel ) :
""" The struct that is used to create a new record. This is automatically generated and has all the same fields as the main struct only it is missing the `id`. """
2022-06-11 17:26:20 -07:00
2023-11-28 23:50:50 -08:00
city : Optional [ str ] = None
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
country : CountryCode
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
state : Optional [ str ] = None
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
street1 : Optional [ str ] = None
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
street2 : Optional [ str ] = None
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
user_id : Uuid
2023-11-27 16:01:20 -08:00
2023-11-28 23:50:50 -08:00
zip : Optional [ str ] = None