83 lines
1.8 KiB
TypeScript
83 lines
1.8 KiB
TypeScript
export interface CustomerCustomField {
|
|
label: string;
|
|
value: string;
|
|
}
|
|
|
|
export interface DeleteCustomerResponse {
|
|
status: boolean;
|
|
message: string;
|
|
}
|
|
|
|
export interface CustomerItem {
|
|
userid: string;
|
|
company: string;
|
|
vat: string | null;
|
|
tax_label_id: string | null;
|
|
phonenumber: string;
|
|
country: string;
|
|
city: string;
|
|
zip: string;
|
|
state: string;
|
|
address: string;
|
|
website: string;
|
|
datecreated: string;
|
|
active: string;
|
|
leadid: string;
|
|
billing_street: string;
|
|
billing_city: string;
|
|
billing_state: string;
|
|
billing_zip: string;
|
|
billing_country: string;
|
|
shipping_street: string | null;
|
|
shipping_city: string | null;
|
|
shipping_state: string | null;
|
|
shipping_zip: string | null;
|
|
shipping_country: string;
|
|
longitude: string | null;
|
|
latitude: string | null;
|
|
default_language: string | null;
|
|
default_currency: string;
|
|
show_primary_contact: string;
|
|
stripe_id: string | null;
|
|
registration_confirmed: string;
|
|
addedfrom: string;
|
|
email: string;
|
|
fullname: string;
|
|
id: string | null;
|
|
groupid: string | null;
|
|
customer_id: string | null;
|
|
customfields?: CustomerCustomField[];
|
|
}
|
|
|
|
export type CustomerDetailsItem = CustomerItem;
|
|
|
|
export interface AddCustomerPayload {
|
|
company: string;
|
|
vat?: string;
|
|
phonenumber?: string;
|
|
website?: string;
|
|
groups_in?: string;
|
|
default_language?: string;
|
|
default_currency?: string;
|
|
address?: string;
|
|
city?: string;
|
|
state?: string;
|
|
zip?: string;
|
|
country?: string;
|
|
billing_street?: string;
|
|
billing_city?: string;
|
|
billing_state?: string;
|
|
billing_zip?: string;
|
|
billing_country?: string;
|
|
shipping_street?: string;
|
|
shipping_city?: string;
|
|
shipping_state?: string;
|
|
shipping_zip?: string;
|
|
shipping_country?: string;
|
|
addedfrom?: string;
|
|
}
|
|
|
|
export type AddCustomerResponse = string | number;
|
|
|
|
|