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;
|
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 = {
|
export type CustomerCreate = {
|
||||||
status?: Status;
|
status?: Status;
|
||||||
customerType: CustomerType;
|
customerType: CustomerType;
|
||||||
customerName: string;
|
customerName: string;
|
||||||
customerNameEN: string;
|
customerNameEN: string;
|
||||||
|
customerBranch?: CustomerBranchCreate[];
|
||||||
image: File;
|
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 = {
|
export type CustomerUpdate = {
|
||||||
status?: 'ACTIVE' | 'INACTIVE';
|
status?: 'ACTIVE' | 'INACTIVE';
|
||||||
customerType?: CustomerType;
|
customerType?: CustomerType;
|
||||||
customerName?: string;
|
customerName?: string;
|
||||||
customerNameEN?: string;
|
customerNameEN?: string;
|
||||||
|
customerBranch?: CustomerBranchUpdate[];
|
||||||
image?: File;
|
image?: File;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue