sghorbal commited on
Commit
6ef7a85
·
1 Parent(s): 1dd8830

authorize credit card numbers to be sent as int

Browse files
Files changed (1) hide show
  1. src/entity/api/transaction_api.py +1 -1
src/entity/api/transaction_api.py CHANGED
@@ -19,7 +19,7 @@ class TransactionApi(BaseModel):
19
  merchant_name: str = Field(..., title="Name", description="The name of the merchant.")
20
  merchant_latitude: float = Field(..., title="Latitude", description="The latitude of the merchant.")
21
  merchant_longitude: float = Field(..., title="Longitude", description="The longitude of the merchant.")
22
- customer_credit_card_number: str = Field(..., title="Customer's credit card", description="The credit card number of the customer.")
23
  customer_gender: Optional[Literal['M', 'F']] = Field(None, title="Customer's gender", description="The gender of the customer.")
24
  customer_first_name: Optional[str] = Field(None, title="Customer's first name", description="The first name of the customer.")
25
  customer_last_name: Optional[str] = Field(None, title="Customer's last name", description="The last name of the customer.")
 
19
  merchant_name: str = Field(..., title="Name", description="The name of the merchant.")
20
  merchant_latitude: float = Field(..., title="Latitude", description="The latitude of the merchant.")
21
  merchant_longitude: float = Field(..., title="Longitude", description="The longitude of the merchant.")
22
+ customer_credit_card_number: int|str = Field(..., title="Customer's credit card", description="The credit card number of the customer.")
23
  customer_gender: Optional[Literal['M', 'F']] = Field(None, title="Customer's gender", description="The gender of the customer.")
24
  customer_first_name: Optional[str] = Field(None, title="Customer's first name", description="The first name of the customer.")
25
  customer_last_name: Optional[str] = Field(None, title="Customer's last name", description="The last name of the customer.")