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;
};
export type CustomerBranchUpdate = (
| {
// NOTE: About (Natural Person)
citizenId: string;
}
| {
// NOTE: About (Legal Entity)
legalPersonNo: string;
registerName?: string;
registerNameEN?: string;
registerDate?: Date;
authorizedCapital?: string;
authorizedName: string;
authorizedNameEN: string;
}
) & {
customerId?: string;
export type CustomerBranchUpdate = {
customerId: string;
// NOTE: About (Natural Person)
citizenId?: string;
namePrefix?: string;
firstName?: string;
firstNameEN?: string;
lastName?: string;
lastNameEN?: string;
gender?: string;
birthDate?: Date;
// NOTE: About (Legal Entity)
legalPersonNo?: string;
registerName?: string;
registerNameEN?: string;
registerDate?: Date;
authorizedCapital?: string;
authorizedName?: string;
authorizedNameEN?: string;
customerName?: string;
telephoneNo: string;
status?: "ACTIVE" | "INACTIVE";
status?: Status;
homeCode?: string;
employmentOffice?: string;
employmentOfficeEN?: string;
address?: string;
addressEN?: string;
soi?: string | null;