-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
265 lines (265 loc) · 8.03 KB
/
schema.json
File metadata and controls
265 lines (265 loc) · 8.03 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
{
"$defs":{
"BusinessIdNumber":{
"description":"Structured model for summarizing company details.",
"properties":{
"BIN_Type":{
"default":"NOT_AVAILABLE",
"description":"Business identification type like GSTIN, PAN, TAN, IEC and CIN",
"title":"Bin Type",
"type":"string"
},
"BIN_Number":{
"default":"NOT_AVAILABLE",
"description":"Respective identification number",
"title":"Bin Number",
"type":"string"
}
},
"title":"BusinessIdNumber",
"type":"object"
},
"CompanyDetails":{
"description":"Structured model for summarizing company details.",
"properties":{
"name":{
"default":"NOT_AVAILABLE",
"description":"Name of the company",
"title":"Name",
"type":"string"
},
"BIN_Details":{
"description":"List of unique business identification numbers",
"items":{
"$ref":"#/$defs/BusinessIdNumber"
},
"title":"Bin Details",
"type":"array"
},
"address":{
"default":"NOT_AVAILABLE",
"description":"Address of the company",
"title":"Address",
"type":"string"
},
"state":{
"default":"NOT_AVAILABLE",
"description":"State of the company present in address",
"title":"State",
"type":"string"
},
"country":{
"default":"NOT_AVAILABLE",
"description":"Country of the company present in address",
"title":"Country",
"type":"string"
},
"pin_code":{
"default":"NOT_AVAILABLE",
"description":"6 digit Pin code of the company present in address",
"title":"Pin Code",
"type":"string"
},
"phone_number":{
"default":"NOT_AVAILABLE",
"description":"Phone number of the company",
"title":"Phone Number",
"type":"string"
},
"email":{
"default":"NOT_AVAILABLE",
"description":"Email of the company",
"title":"Email",
"type":"string"
}
},
"title":"CompanyDetails",
"type":"object"
},
"Item":{
"description":"Structured model for summarizing item details in the invoice.",
"properties":{
"slno":{
"exclusiveMinimum":0,
"title":"Slno",
"type":"integer"
},
"description":{
"default":"NOT_AVAILABLE",
"description":"Description of the item",
"title":"Description",
"type":"string"
},
"inventory_flag":{
"default":false,
"description":"Depicts if the item is an inventory item for which inventory or stock must be updated.",
"title":"Inventory Flag",
"type":"boolean"
},
"quantity":{
"default":0.0,
"description":"Quantity of the item",
"title":"Quantity",
"type":"number"
},
"UOM":{
"default":"NOT_AVAILABLE",
"description":"Unit of measurement",
"title":"Uom",
"type":"string"
},
"HSN_CODE":{
"default":"NOT_AVAILABLE",
"description":"HSN code of the item, sometimes called as SAC code",
"title":"Hsn Code",
"type":"string"
},
"price":{
"default":0.0,
"description":"Price of the item",
"title":"Price",
"type":"number"
},
"tax":{
"description":"List of taxes for the line item",
"items":{
"$ref":"#/$defs/TaxComponents"
},
"title":"Tax",
"type":"array"
},
"discount":{
"default":0.0,
"description":"Discount amount of the item",
"title":"Discount",
"type":"number"
},
"amount":{
"default":0.0,
"description":"Amount of the item",
"title":"Amount",
"type":"number"
},
"currency":{
"default":"INR",
"description":"Currency of the price",
"title":"Currency",
"type":"string"
}
},
"required":[
"slno"
],
"title":"Item",
"type":"object"
},
"TaxComponents":{
"description":"Structured model for summarizing tax components.",
"properties":{
"Tax_Type":{
"default":"NOT_AVAILABLE",
"description":"Tax type like CGST, SGST, UTGST, IGST, VAT etc",
"title":"Tax Type",
"type":"string"
},
"Tax_Rate":{
"default":0.0,
"description":"Tax Rate in percentage",
"title":"Tax Rate",
"type":"number"
},
"Tax_Amount":{
"default":0.0,
"description":"Tax Amount",
"title":"Tax Amount",
"type":"number"
}
},
"title":"TaxComponents",
"type":"object"
}
},
"description":"Structured model for summarizing invoice details.",
"properties":{
"invoice_number":{
"default":"NOT_AVAILABLE",
"description":"Invoice number",
"title":"Invoice Number",
"type":"string"
},
"invoice_date":{
"default":"NOT_AVAILABLE",
"description":"Invoice date",
"title":"Invoice Date",
"type":"string"
},
"invoice_due_date":{
"default":"NOT_AVAILABLE",
"description":"Invoice due date",
"title":"Invoice Due Date",
"type":"string"
},
"seller_details":{
"$ref":"#/$defs/CompanyDetails",
"description":"Details of the seller Comapny"
},
"buyer_details":{
"$ref":"#/$defs/CompanyDetails",
"description":"Details of the buyer Company"
},
"items":{
"description":"List of items in the invoice",
"items":{
"$ref":"#/$defs/Item"
},
"title":"Items",
"type":"array"
},
"total_tax":{
"description":"Total tax components",
"items":{
"$ref":"#/$defs/TaxComponents"
},
"title":"Total Tax",
"type":"array"
},
"total_charge":{
"default":0.0,
"description":"Total charges",
"title":"Total Charge",
"type":"number"
},
"total_discount":{
"default":0.0,
"description":"Total discount applied",
"title":"Total Discount",
"type":"number"
},
"total_amount":{
"default":0.0,
"description":"Total amount of the invoice",
"title":"Total Amount",
"type":"number"
},
"amount_paid":{
"default":0.0,
"description":"Amount paid",
"title":"Amount Paid",
"type":"number"
},
"amount_due":{
"default":0.0,
"description":"Amount due",
"title":"Amount Due",
"type":"number"
},
"page_no":{
"default":"",
"description":"Page no in string Format, E.g., '1-2' for pages 1 and 2, or '3' for page 3",
"title":"Page No",
"type":"string"
}
},
"title":"Invoice",
"type":"object"
}