feat: add customer branch input api fn
This commit is contained in:
parent
acafc6c9c0
commit
175d9c4d35
1 changed files with 53 additions and 0 deletions
|
|
@ -16,18 +16,71 @@ export type Customer = {
|
|||
updatedAt: Date;
|
||||
};
|
||||
|
||||
export type CustomerBranchCreate = {
|
||||
status?: Status;
|
||||
|
||||
legalPersonNo: string;
|
||||
|
||||
taxNo: string;
|
||||
name: string;
|
||||
nameEN: string;
|
||||
addressEN: string;
|
||||
address: string;
|
||||
zipCode: string;
|
||||
email: string;
|
||||
telephoneNo: string;
|
||||
longitude: string;
|
||||
latitude: string;
|
||||
|
||||
registerName: string;
|
||||
registerDate: Date;
|
||||
authorizedCapital: string;
|
||||
|
||||
subDistrictId?: string | null;
|
||||
districtId?: string | null;
|
||||
provinceId?: string | null;
|
||||
};
|
||||
|
||||
export type CustomerCreate = {
|
||||
status?: Status;
|
||||
customerType: CustomerType;
|
||||
customerName: string;
|
||||
customerNameEN: string;
|
||||
customerBranch?: CustomerBranchCreate[];
|
||||
image: File;
|
||||
};
|
||||
|
||||
export type CustomerBranchUpdate = {
|
||||
id: string;
|
||||
status?: 'ACTIVE' | 'INACTIVE';
|
||||
|
||||
legalPersonNo?: string;
|
||||
|
||||
taxNo?: string;
|
||||
name?: string;
|
||||
nameEN?: string;
|
||||
addressEN?: string;
|
||||
address?: string;
|
||||
zipCode?: string;
|
||||
email?: string;
|
||||
telephoneNo?: string;
|
||||
longitude?: string;
|
||||
latitude?: string;
|
||||
|
||||
registerName?: string;
|
||||
registerDate?: Date;
|
||||
authorizedCapital?: string;
|
||||
|
||||
subDistrictId?: string | null;
|
||||
districtId?: string | null;
|
||||
provinceId?: string | null;
|
||||
};
|
||||
|
||||
export type CustomerUpdate = {
|
||||
status?: 'ACTIVE' | 'INACTIVE';
|
||||
customerType?: CustomerType;
|
||||
customerName?: string;
|
||||
customerNameEN?: string;
|
||||
customerBranch?: CustomerBranchUpdate[];
|
||||
image?: File;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue