request data on upc and throw it in an alert on hitting enter in the text field
[omsmith/pos-js.git] / pos.thrift
1 namespace cpp pos
2
3 service Pos {
4         void ping(),
5
6         string getSalt(),
7
8         i32 getAccountFromHash(1:string dataToHash),
9         list<string> getHashesFromAccountId(1:i32 account),
10         list<string> getHashesFromAccountName(1:string account),
11
12         i32 getHashAccountBalance(1:string dataToHash),
13         i32 getIdAccountBalance(1:i32 account),
14         i32 getNameAccountBalance(1:string account),
15
16         i64 associateHashWithId(1:string auth, 2:string dataToHash, 3:i32 account),
17         i64 associateHashWithName(1:string auth, 2:string dataToHash, 3:string account),
18         i64 deassociateHash(1:string auth, 2:string dataToHash),
19
20         i32 getUPCPrice(1:i64 upc),
21         i64 setUPCPrice(1:string auth, 2:i64 upc, 3:i32 price),
22
23         i64 doTransactionOnHash(1:string auth, 2:string dataToHash, 3:i32 delta),
24         i64 doTransactionOnId(1:string auth, 2:i32 account, 3:i32 delta),
25         i64 doTransactionOnName(1:string auth, 2:string account, 3:i32 delta),
26         i64 revertTransaction(1:string auth, 2:i64 serial),
27
28         i32 getStock(1:i64 upc),
29         i64 doStockChange(1:string auth, 2:i64 upc, 3:i32 delta),
30
31         list<string> toString()
32 }
33