# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

import pydantic
import typing_extensions
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from ...core.serialization import FieldMetadata
from ...types.additional_data_map import AdditionalDataMap
from ...types.contacts import Contacts
from ...types.email import Email
from ...types.internal_reference_id import InternalReferenceId
from ...types.location_code import LocationCode
from ...types.mcc import Mcc
from ...types.payee_name import PayeeName
from ...types.remitaddress_1 import Remitaddress1
from ...types.remitaddress_2 import Remitaddress2
from ...types.remitcity import Remitcity
from ...types.remitcountry import Remitcountry
from ...types.remitstate import Remitstate
from ...types.remitzip import Remitzip
from ...types.vendor_number import VendorNumber
from ...types.vendor_response_billing_data import VendorResponseBillingData
from ...types.vendor_response_stored_method import VendorResponseStoredMethod
from ...types.vendor_response_summary import VendorResponseSummary
from ...types.vendorid import Vendorid
from ...types.vendorstatus import Vendorstatus


class GetMethodResponseResponseDataVendorsItem(UniversalBaseModel):
    additional_data: typing_extensions.Annotated[
        typing.Optional[AdditionalDataMap], FieldMetadata(alias="additionalData")
    ] = pydantic.Field(default=None)
    """
    Additional data for vendor
    """

    address_1: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="address1")] = pydantic.Field(
        default=None
    )
    """
    Vendor's address
    """

    address_2: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="address2")] = pydantic.Field(
        default=None
    )
    """
    Additional line for vendor's address
    """

    billing_data: typing_extensions.Annotated[
        typing.Optional[VendorResponseBillingData], FieldMetadata(alias="billingData")
    ] = pydantic.Field(default=None)
    """
    Object containing vendor's bank information
    """

    city: typing.Optional[str] = pydantic.Field(default=None)
    """
    Vendor's city
    """

    contacts: typing.Optional[typing.List[Contacts]] = pydantic.Field(default=None)
    """
    Array of objects describing the vendor's contacts
    """

    country: typing.Optional[str] = pydantic.Field(default=None)
    """
    Vendor's country
    """

    created_date: typing_extensions.Annotated[typing.Optional[dt.datetime], FieldMetadata(alias="createdDate")] = (
        pydantic.Field(default=None)
    )
    """
    Date when vendor was created
    """

    custom_field_1: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="customField1")] = (
        pydantic.Field(default=None)
    )
    """
    Custom field 1 for vendor
    """

    custom_field_2: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="customField2")] = (
        pydantic.Field(default=None)
    )
    """
    Custom field 2 for vendor
    """

    customer_vendor_account: typing_extensions.Annotated[
        typing.Optional[str], FieldMetadata(alias="customerVendorAccount")
    ] = pydantic.Field(default=None)
    """
    Account number of paypoint in the vendor's side
    """

    ein: typing.Optional[str] = pydantic.Field(default=None)
    """
    EIN/Tax ID for vendor. In responses, this field is masked.
    """

    email: typing.Optional[Email] = pydantic.Field(default=None)
    """
    Vendor's email address
    """

    enrollment_status: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="enrollmentStatus")] = (
        pydantic.Field(default=None)
    )
    """
    Vendor enrollment status
    """

    external_paypoint_id: typing_extensions.Annotated[
        typing.Optional[str], FieldMetadata(alias="externalPaypointID")
    ] = pydantic.Field(default=None)
    """
    External paypoint identifier
    """

    internal_reference_id: typing_extensions.Annotated[
        typing.Optional[InternalReferenceId], FieldMetadata(alias="internalReferenceId")
    ] = pydantic.Field(default=None)
    """
    Internal reference ID for vendor
    """

    last_updated: typing_extensions.Annotated[typing.Optional[dt.datetime], FieldMetadata(alias="lastUpdated")] = (
        pydantic.Field(default=None)
    )
    """
    Date when vendor was last updated
    """

    location_code: typing_extensions.Annotated[typing.Optional[LocationCode], FieldMetadata(alias="locationCode")] = (
        pydantic.Field(default=None)
    )
    """
    Location code for vendor
    """

    mcc: typing.Optional[Mcc] = pydantic.Field(default=None)
    """
    Merchant category code
    """

    name_1: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="name1")] = pydantic.Field(
        default=None
    )
    """
    Primary name for vendor
    """

    name_2: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="name2")] = pydantic.Field(
        default=None
    )
    """
    Secondary name for vendor
    """

    parent_org_id: typing_extensions.Annotated[typing.Optional[int], FieldMetadata(alias="parentOrgId")] = (
        pydantic.Field(default=None)
    )
    """
    ID of the parent organization
    """

    parent_org_name: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="parentOrgName")] = (
        pydantic.Field(default=None)
    )
    """
    Name of the parent organization
    """

    payee_name_1: typing_extensions.Annotated[typing.Optional[PayeeName], FieldMetadata(alias="payeeName1")] = (
        pydantic.Field(default=None)
    )
    """
    Primary payee name
    """

    payee_name_2: typing_extensions.Annotated[typing.Optional[PayeeName], FieldMetadata(alias="payeeName2")] = (
        pydantic.Field(default=None)
    )
    """
    Secondary payee name
    """

    payment_method: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="paymentMethod")] = (
        pydantic.Field(default=None)
    )
    """
    Preferred payment method for vendor
    """

    paypoint_dbaname: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="paypointDbaname")] = (
        pydantic.Field(default=None)
    )
    """
    DBA name of the paypoint
    """

    paypoint_entryname: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="paypointEntryname")] = (
        pydantic.Field(default=None)
    )
    """
    Entry name of the paypoint
    """

    paypoint_id: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="paypointId")] = pydantic.Field(
        default=None
    )
    """
    Paypoint ID
    """

    paypoint_legalname: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="paypointLegalname")] = (
        pydantic.Field(default=None)
    )
    """
    Legal name of the paypoint
    """

    phone: typing.Optional[str] = pydantic.Field(default=None)
    """
    Vendor's phone number
    """

    remit_address_1: typing_extensions.Annotated[
        typing.Optional[Remitaddress1], FieldMetadata(alias="remitAddress1")
    ] = pydantic.Field(default=None)
    """
    Remittance address line 1
    """

    remit_address_2: typing_extensions.Annotated[
        typing.Optional[Remitaddress2], FieldMetadata(alias="remitAddress2")
    ] = pydantic.Field(default=None)
    """
    Remittance address line 2
    """

    remit_city: typing_extensions.Annotated[typing.Optional[Remitcity], FieldMetadata(alias="remitCity")] = (
        pydantic.Field(default=None)
    )
    """
    Remittance city
    """

    remit_country: typing_extensions.Annotated[typing.Optional[Remitcountry], FieldMetadata(alias="remitCountry")] = (
        pydantic.Field(default=None)
    )
    """
    Remittance country
    """

    remit_email: typing_extensions.Annotated[typing.Optional[str], FieldMetadata(alias="remitEmail")] = pydantic.Field(
        default=None
    )
    """
    Email address for remittance
    """

    remit_state: typing_extensions.Annotated[typing.Optional[Remitstate], FieldMetadata(alias="remitState")] = (
        pydantic.Field(default=None)
    )
    """
    Remittance state
    """

    remit_zip: typing_extensions.Annotated[typing.Optional[Remitzip], FieldMetadata(alias="remitZip")] = pydantic.Field(
        default=None
    )
    """
    Remittance ZIP code
    """

    state: typing.Optional[str] = pydantic.Field(default=None)
    """
    Vendor's state
    """

    stored_methods: typing_extensions.Annotated[
        typing.Optional[typing.List[VendorResponseStoredMethod]], FieldMetadata(alias="storedMethods")
    ] = pydantic.Field(default=None)
    """
    Array of stored payment methods for vendor
    """

    summary: typing.Optional[VendorResponseSummary] = pydantic.Field(default=None)
    """
    Vendor bill summary statistics
    """

    vendor_id: typing_extensions.Annotated[typing.Optional[Vendorid], FieldMetadata(alias="vendorId")] = pydantic.Field(
        default=None
    )
    """
    The unique numeric ID assigned to the vendor in Payabli
    """

    vendor_number: typing_extensions.Annotated[typing.Optional[VendorNumber], FieldMetadata(alias="vendorNumber")] = (
        pydantic.Field(default=None)
    )
    """
    Custom vendor number assigned by the business
    """

    vendor_status: typing_extensions.Annotated[typing.Optional[Vendorstatus], FieldMetadata(alias="vendorStatus")] = (
        pydantic.Field(default=None)
    )
    """
    Status code for the vendor
    """

    zip: typing.Optional[str] = pydantic.Field(default=None)
    """
    Vendor's ZIP code
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
