Skip to content

Instantly share code, notes, and snippets.

@oonsamyi
Created April 25, 2017 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save oonsamyi/bfb85dfca1d21f33c16f919170135e89 to your computer and use it in GitHub Desktop.
Save oonsamyi/bfb85dfca1d21f33c16f919170135e89 to your computer and use it in GitHub Desktop.
export type GetClientByBarcode = {
success: boolean;
message?: string;
result?: {
id: string;
barcode: string;
isDms: boolean;
isChild: boolean;
hasDebt: boolean;
phone: number;
firstName: string;
middleName?: string;
lastName: string;
};
};
export type OpenVisitByClientId = {
success: boolean;
message?: string;
result?: {
cardId: string;
date: string;
discount: string;
payType: string;
payTypeRemain: string;
records: Array<{
cabinet: string;
time: string;
specialty: string;
doctor: string;
}>;
};
};
export type Services = Array<{
id: string;
type: string;
name: string;
date: string;
doctor: string;
sum: number;
documentId?: string;
}>;
export type GetServicesByClientId = {
success: boolean;
message?: string;
result?: {
debt: Services;
rendered: Services;
unpaid: Services;
};
};
export type MakePayment = {
success: boolean;
message?: string;
result?: {
payDocumentId: string;
sum: number;
debt: Array<{
id: string;
type: string;
name: string;
date: string;
doctor: string;
sum: number;
}>;
rendered: Array<{
id: string;
type: string;
name: string;
date: string;
doctor: string;
sum: number;
}>;
unpaid: Array<{
id: string;
type: string;
name: string;
date: string;
doctor: string;
sum: number;
}>;
};
};
export type ConfirmPayment = {
success: boolean;
message?: string;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment