
| Current Path : /var/www/web-klick.de/dsh/order_model/.archive/ixml/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/web-klick.de/dsh/order_model/.archive/ixml/general.py |
#!/usr/bin/env python
from typing import Optional, List
from pydantic import BaseModel, Extra
from ordermodel.contact import Contact
class General(BaseModel):
"""Model to carry general information of an order.
Type hint notation by 'pydantic'.
(see https://pypi.org/project/pydantic/)
Attributes:
customer: Customer name (long/non-phonetic).
[imask TechPlanning -> HEADER]
order_type: e.g. 'REORDER FR', 'NEW FR'
[imask TechPlanning -> HEADER]
mfg_site: e.g. 'CB', 'DR', 'RR'
[imask Todo]
fab: e.g. 'TOURS' (ST)
[imask Todo]
device: Device name.
[imask TechPlanning -> HEADER]
order_from: Tape-out site.
[imask Todo]
order_from_customer: Tape-out customer name (long/non-phonetic).
[imask Todo]
ship_to: Shipping target site.
[imask Todo]
ship_to_customer: Shipping target customer name (long/non-phonetic).
[imask Todo]
bill_to: Target bill ID (e.g. 'TOURS SAS').
[imask Todo]
bill_to_customer: Target bill customer name (long/non-phonetic).
[imask Todo]
po_number: Purchase order number. (e.g. '3500561754')
[imask Todo]
"""
customer: str
order_type: str
mfg_site: str
fab: str
device: str
order_from: str
order_from_customer: str
ship_to: str
ship_to_customer: str
bill_to: str
bill_to_customer: str
po_number: Optional[str] = None
order_comments: Optional[str] = None
# [optional]
technical_contacts: List[Contact] = []
ship_to_contacts: List[Contact] = []
acct_mgr: Optional[str] = None
additional_technical_contacts: Optional[str] = None
aims_nr: Optional[str] = None
auto_release_to_wip: Optional[str] = None
build_in_region: Optional[str] = None
code: Optional[str] = None
created_by: Optional[str] = None
created_date: Optional[str] = None
currency: Optional[str] = None
design_rule: Optional[str] = None
foundry_customer: Optional[str] = None
fractures_nr: Optional[str] = None
last_updated_date: Optional[str] = None
market_segment: Optional[str] = None
order_number: Optional[int] = None
order_price: Optional[str] = None
order_status: Optional[str] = None
pellicle_nr: Optional[str] = None
post_pell_insp_nr: Optional[str] = None
project_name: Optional[str] = None
quote_reference: Optional[str] = None
rd_designation: Optional[str] = None
rd_funding_project: Optional[str] = None
secure_product: Optional[str] = None
ship_to_region: Optional[str] = None
special_instructions: Optional[str] = None
technology: Optional[str] = None
class Config:
extra = Extra.forbid