From 175d9c4d3574212de0d84c8815a6003fb394d341 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 22 Apr 2024 17:40:03 +0700 Subject: [PATCH] feat: add customer branch input api fn --- src/stores/customer/types.ts | 53 ++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/src/stores/customer/types.ts b/src/stores/customer/types.ts index 5b1493e5..5626b8ea 100644 --- a/src/stores/customer/types.ts +++ b/src/stores/customer/types.ts @@ -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; };