feat: add customer branch input api fn

This commit is contained in:
Methapon2001 2024-04-22 17:40:03 +07:00
parent acafc6c9c0
commit 175d9c4d35

View file

@ -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;
};