fix: update payload

This commit is contained in:
Methapon Metanipat 2024-09-16 17:34:34 +07:00
parent 472db99c50
commit 96b18f1049

View file

@ -104,30 +104,36 @@ export type CustomerBranchCreate = {
provinceId?: string | null; provinceId?: string | null;
}; };
export type CustomerBranchUpdate = ( export type CustomerBranchUpdate = {
| { customerId: string;
// NOTE: About (Natural Person) // NOTE: About (Natural Person)
citizenId: string; citizenId?: string;
} namePrefix?: string;
| { firstName?: string;
firstNameEN?: string;
lastName?: string;
lastNameEN?: string;
gender?: string;
birthDate?: Date;
// NOTE: About (Legal Entity) // NOTE: About (Legal Entity)
legalPersonNo: string; legalPersonNo?: string;
registerName?: string; registerName?: string;
registerNameEN?: string; registerNameEN?: string;
registerDate?: Date; registerDate?: Date;
authorizedCapital?: string; authorizedCapital?: string;
authorizedName: string; authorizedName?: string;
authorizedNameEN: string; authorizedNameEN?: string;
}
) & {
customerId?: string;
customerName?: string; customerName?: string;
telephoneNo: string; telephoneNo: string;
status?: "ACTIVE" | "INACTIVE"; status?: Status;
homeCode?: string; homeCode?: string;
employmentOffice?: string;
employmentOfficeEN?: string;
address?: string; address?: string;
addressEN?: string; addressEN?: string;
soi?: string | null; soi?: string | null;