-
Notifications
You must be signed in to change notification settings - Fork 29
/
IPOS.proto
111 lines (99 loc) · 2.72 KB
/
IPOS.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
syntax = "proto3";
package fiskaltrust.ifPOS.v1;
option csharp_namespace = "fiskaltrust.ifPOS.v1";
import "bcl.proto";
service POS {
rpc Echo(EchoRequest) returns (EchoResponse) {}
rpc Journal(JournalRequest) returns (JournalResponse) {}
rpc Sign(ReceiptRequest) returns (ReceiptResponse) {}
}
message EchoRequest {
string Message = 1;
}
message EchoResponse {
string Message = 1;
}
message JournalRequest {
int64 ftJournalType = 1;
int64 From = 2;
int64 To = 3;
}
message JournalResponse {
repeated uint32 Chunk = 1 [packed = false];
}
message ChargeItem {
int64 Position = 5;
.bcl.Decimal Quantity = 10;
string Description = 20;
.bcl.Decimal Amount = 30;
.bcl.Decimal VATRate = 40;
int64 ftChargeItemCase = 50;
string ftChargeItemCaseData = 60;
.bcl.Decimal VATAmount = 70;
string AccountNumber = 80;
string CostCenter = 90;
string ProductGroup = 100;
string ProductNumber = 110;
string ProductBarcode = 120;
string Unit = 130;
.bcl.Decimal UnitQuantity = 140;
.bcl.Decimal UnitPrice = 150;
.bcl.DateTime Moment = 160;
}
message PayItem {
int64 Position = 5;
.bcl.Decimal Quantity = 10;
string Description = 20;
.bcl.Decimal Amount = 30;
int64 ftPayItemCase = 40;
string ftPayItemCaseData = 50;
string AccountNumber = 60;
string CostCenter = 70;
string MoneyGroup = 80;
string MoneyNumber = 90;
.bcl.DateTime Moment = 100;
}
message ReceiptRequest {
string ftCashBoxID = 10;
string ftQueueID = 15;
string ftPosSystemId = 16;
string cbTerminalID = 20;
string cbReceiptReference = 30;
.bcl.DateTime cbReceiptMoment = 40;
repeated ChargeItem cbChargeItems = 50;
repeated PayItem cbPayItems = 60;
int64 ftReceiptCase = 70;
string ftReceiptCaseData = 80;
.bcl.Decimal cbReceiptAmount = 90;
string cbUser = 100;
string cbArea = 110;
string cbCustomer = 120;
string cbSettlement = 130;
string cbPreviousReceiptReference = 140;
}
message ReceiptResponse {
string ftCashBoxID = 10;
string ftQueueID = 14;
string ftQueueItemID = 15;
int64 ftQueueRow = 16;
string cbTerminalID = 20;
string cbReceiptReference = 30;
string ftCashBoxIdentification = 35;
string ftReceiptIdentification = 40;
.bcl.DateTime ftReceiptMoment = 50;
repeated string ftReceiptHeader = 60;
repeated ChargeItem ftChargeItems = 70;
repeated string ftChargeLines = 80;
repeated PayItem ftPayItems = 90;
repeated string ftPayLines = 100;
repeated SignaturItem ftSignatures = 110;
repeated string ftReceiptFooter = 120;
int64 ftState = 130;
string ftStateData = 140;
}
message SignaturItem {
int64 ftSignatureFormat = 10;
int64 ftSignatureType = 20;
string Caption = 30;
string Data = 40;
}