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)
citizenId: string; // NOTE: About (Natural Person)
} citizenId?: string;
| { namePrefix?: string;
// NOTE: About (Legal Entity) firstName?: string;
legalPersonNo: string; firstNameEN?: string;
registerName?: string; lastName?: string;
registerNameEN?: string; lastNameEN?: string;
registerDate?: Date; gender?: string;
authorizedCapital?: string; birthDate?: Date;
authorizedName: string;
authorizedNameEN: string; // NOTE: About (Legal Entity)
} legalPersonNo?: string;
) & { registerName?: string;
customerId?: string; registerNameEN?: string;
registerDate?: Date;
authorizedCapital?: string;
authorizedName?: string;
authorizedNameEN?: 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;