77import datetime as dt
88from typing import ClassVar , Optional , cast
99
10- from cuenca_validations .types import SATRegimeCode
1110from pydantic import BaseModel
1211from pydantic .dataclasses import dataclass
1312
13+ from ..types .enums import TaxSystemType
1414from ..types .general import CustomerAddress
1515from .base import Creatable , Queryable , Retrievable , Updatable
1616
@@ -23,7 +23,7 @@ class CustomerRequest(BaseModel):
2323 Attributes:
2424 legal_name (str): Full name of the customer.
2525 tax_id (str): RFC of the customer.
26- tax_system: SATRegimeCode regime code from SAT
26+ tax_system: TaxSystemType regime code from SAT
2727 email (str): Email of the customer.
2828 phone (str): Phone of the customer. Optional.
2929 address (CustomerAddress): Address object of the customer. Optional.
@@ -32,7 +32,7 @@ class CustomerRequest(BaseModel):
3232
3333 legal_name : str
3434 tax_id : str
35- tax_system : SATRegimeCode
35+ tax_system : TaxSystemType
3636 email : str
3737 phone : Optional [str ]
3838 address : CustomerAddress
@@ -46,7 +46,7 @@ class CustomerUpdateRequest(BaseModel):
4646 Attributes:
4747 legal_name (str): Full name of the customer. Optional.
4848 tax_id (str): RFC of the customer. Optional.
49- tax_system: SATRegimeCode regime code from SAT
49+ tax_system: TaxSystemType regime code from SAT
5050 email (str): Email of the customer. Optional.
5151 phone (str): Phone of the customer. Optional.
5252 address (CustomerAddress): Address object of the customer. Optional.
@@ -55,7 +55,7 @@ class CustomerUpdateRequest(BaseModel):
5555
5656 legal_name : Optional [str ]
5757 tax_id : Optional [str ]
58- tax_system : Optional [SATRegimeCode ]
58+ tax_system : Optional [TaxSystemType ]
5959 email : Optional [str ]
6060 phone : Optional [str ]
6161 address : Optional [CustomerAddress ]
@@ -77,7 +77,7 @@ class Customer(Creatable, Queryable, Retrievable, Updatable):
7777 tax_id (str): RFC of the customer.
7878 email (str): Email of the customer.
7979 address (CustomerAddress): Address data of the model. Optional.
80- tax_system (SATRegimeCode ): Enum from catalogue of SAT
80+ tax_system (TaxSystemType ): Enum from catalogue of SAT
8181 phone (str): Phone of the customer. Defaults to `None`.
8282 """
8383
@@ -89,7 +89,7 @@ class Customer(Creatable, Queryable, Retrievable, Updatable):
8989 tax_id : str
9090 email : str
9191 address : CustomerAddress
92- tax_system : Optional [SATRegimeCode ] = None
92+ tax_system : Optional [TaxSystemType ] = None
9393 phone : Optional [str ] = None
9494
9595 @classmethod
0 commit comments