Created
April 25, 2017 10:22
-
-
Save oonsamyi/bfb85dfca1d21f33c16f919170135e89 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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