mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-22 06:15:47 +00:00
feat(FE-33): create customers forms
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
import { BaseMetadata, CreatedUser } from "@/types/api/api-general";
|
||||
|
||||
export type BaseCustomer = {
|
||||
id: number;
|
||||
name: string;
|
||||
pic_id: number;
|
||||
pic: CreatedUser;
|
||||
type: 'INDIVIDUAL' | 'BISNIS';
|
||||
address: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
account_number: string;
|
||||
}
|
||||
|
||||
export type Customer = BaseMetadata & BaseCustomer;
|
||||
|
||||
export type CreateCustomerPayload = {
|
||||
name: string;
|
||||
pic_id: number;
|
||||
type: 'INDIVIDUAL' | 'BISNIS';
|
||||
address: string;
|
||||
phone: string;
|
||||
email: string;
|
||||
account_number: string;
|
||||
}
|
||||
|
||||
export type UpdateCustomerPayload = CreateCustomerPayload;
|
||||
Reference in New Issue
Block a user