@veryfi/veryfi-sdk 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -1
- package/.github/workflows/node.js.yml +0 -31
- package/test/deleteDocument.json +0 -4
- package/test/getDocument.json +0 -111
- package/test/getDocuments.json +0 -3509
- package/test/main.test.js +0 -161
- package/test/processDocument.json +0 -153
- package/test/processDocumentUrl.json +0 -183
- package/test/receipt.png +0 -0
- package/test/updateDocument.json +0 -255
package/test/updateDocument.json
DELETED
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"abn_number":"",
|
|
3
|
-
"account_number":"",
|
|
4
|
-
"barcodes":[
|
|
5
|
-
|
|
6
|
-
],
|
|
7
|
-
"bill_to_address":"",
|
|
8
|
-
"bill_to_name":"",
|
|
9
|
-
"card_number":"",
|
|
10
|
-
"category":"Meals",
|
|
11
|
-
"created":"2021-07-12 01:00:59",
|
|
12
|
-
"currency_code":"COP",
|
|
13
|
-
"date":"2020-01-07 11:19:53",
|
|
14
|
-
"delivery_date":"",
|
|
15
|
-
"discount":0.0,
|
|
16
|
-
"document_title":"",
|
|
17
|
-
"document_type":"receipt",
|
|
18
|
-
"due_date":"",
|
|
19
|
-
"external_id":"",
|
|
20
|
-
"id":37769250,
|
|
21
|
-
"img_file_name":"c5d8edc4-189b-4da7-b702-1eb65ab8cb3f.jpg",
|
|
22
|
-
"img_thumbnail_url":"https://scdn.veryfi.com/receipts/c5d8edc4-189b-4da7-b702-1eb65ab8cb3f_t.jpg?Expires=1626052560&Signature=b4n3sN0fyVaYHAY3BUXAyvOSWUcgmcDoqQHsahUu8gnLzR1tek1CERIYF7VeOmxS1kFyCf92HPVotyyS3pU1quhuVnXcExQfMykDq1fgMWxCIWnZYMqglQKp3Ut0OfNUSGlwjjVeovWwTotuN1lr~mMjMJoykaOMxN~v9DM8sXD9qO231YON7tCfkR-RSg362zCa~iJSeSSRGYHmFizhxvNza0LvfB1kVPdQRFssByo3C1hiaZ9oOkfg199Z0McZoDruaY0zhfhoOMl1A08J4Q4WSH90NEu-xuGVn0SdYNIZvdueoR~~fon4PED2kIB5I8yCKJFUPks5J3T3oy7rYQ__&Key-Pair-Id=APKAJCILBXEJFZF4DCHQ",
|
|
23
|
-
"img_url":"https://scdn.veryfi.com/receipts/c5d8edc4-189b-4da7-b702-1eb65ab8cb3f.jpg?Expires=1626052560&Signature=Ozt1qulJtk3TInOrWk~F-d8-hCx9PU7g780T96MnnR1ufZ9qcy7BotklwinSzcEW-RhcJ46v7HNZhh1upAzFMr0DNfjR3JjNCLcuVfSGmMs6z91S5voMDEJa4Ls2AlE9VmUNs1NzNe8lpRYIxSXADote0rsKXCV5GzGDPc17C-qoGm3uQFCfW7FHN-Rs6zsQAH2rcmxbxRv5dOseVlgDINDTt1~zv-ZJdZ8Yl7wn8MQPBNp4txZJ7l1eYiPk35rSMvKZ1LeixxioXyCJaNv7rmG9y5N2j1ZNGvmqH9gIBMwlcFm-bJcFLvpV5zU2UpDdBIVJ2ILwMkI~auEBxC4qnQ__&Key-Pair-Id=APKAJCILBXEJFZF4DCHQ",
|
|
24
|
-
"incoterms":"",
|
|
25
|
-
"insurance":"",
|
|
26
|
-
"invoice_number":"206136",
|
|
27
|
-
"is_document":1,
|
|
28
|
-
"is_money_in":0,
|
|
29
|
-
"line_items":[
|
|
30
|
-
{
|
|
31
|
-
"date":"",
|
|
32
|
-
"description":"DETERGENTE FAB\nG",
|
|
33
|
-
"discount":0.0,
|
|
34
|
-
"id":70455283,
|
|
35
|
-
"order":0,
|
|
36
|
-
"price":0.0,
|
|
37
|
-
"quantity":1.0,
|
|
38
|
-
"reference":"",
|
|
39
|
-
"section":"",
|
|
40
|
-
"sku":"004967",
|
|
41
|
-
"tax":0.0,
|
|
42
|
-
"tax_rate":0.0,
|
|
43
|
-
"total":6200.0,
|
|
44
|
-
"type":"product",
|
|
45
|
-
"unit_of_measure":"",
|
|
46
|
-
"weight":""
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"date":"",
|
|
50
|
-
"description":"FILETE PECHUGA",
|
|
51
|
-
"discount":0.0,
|
|
52
|
-
"id":70455284,
|
|
53
|
-
"order":1,
|
|
54
|
-
"price":0.0,
|
|
55
|
-
"quantity":1.0,
|
|
56
|
-
"reference":"",
|
|
57
|
-
"section":"",
|
|
58
|
-
"sku":"004573",
|
|
59
|
-
"tax":0.0,
|
|
60
|
-
"tax_rate":0.0,
|
|
61
|
-
"total":19900.0,
|
|
62
|
-
"type":"food",
|
|
63
|
-
"unit_of_measure":"",
|
|
64
|
-
"weight":""
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"date":"",
|
|
68
|
-
"description":"BROCOLI KILO",
|
|
69
|
-
"discount":0.0,
|
|
70
|
-
"id":70455285,
|
|
71
|
-
"order":2,
|
|
72
|
-
"price":48.0,
|
|
73
|
-
"quantity":1.0,
|
|
74
|
-
"reference":"",
|
|
75
|
-
"section":"",
|
|
76
|
-
"sku":"005015",
|
|
77
|
-
"tax":0.0,
|
|
78
|
-
"tax_rate":0.0,
|
|
79
|
-
"total":2328.0,
|
|
80
|
-
"type":"food",
|
|
81
|
-
"unit_of_measure":"",
|
|
82
|
-
"weight":""
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"date":"",
|
|
86
|
-
"description":"CEBOLLA DE HUEVO",
|
|
87
|
-
"discount":0.0,
|
|
88
|
-
"id":70455286,
|
|
89
|
-
"order":3,
|
|
90
|
-
"price":0.0,
|
|
91
|
-
"quantity":1.0,
|
|
92
|
-
"reference":"",
|
|
93
|
-
"section":"",
|
|
94
|
-
"sku":"005021",
|
|
95
|
-
"tax":0.0,
|
|
96
|
-
"tax_rate":0.0,
|
|
97
|
-
"total":880.0,
|
|
98
|
-
"type":"food",
|
|
99
|
-
"unit_of_measure":"",
|
|
100
|
-
"weight":""
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"date":"",
|
|
104
|
-
"description":"ZANAHORIA KILO",
|
|
105
|
-
"discount":0.0,
|
|
106
|
-
"id":70455287,
|
|
107
|
-
"order":4,
|
|
108
|
-
"price":0.0,
|
|
109
|
-
"quantity":1.0,
|
|
110
|
-
"reference":"",
|
|
111
|
-
"section":"",
|
|
112
|
-
"sku":"005107",
|
|
113
|
-
"tax":0.0,
|
|
114
|
-
"tax_rate":0.0,
|
|
115
|
-
"total":1320.0,
|
|
116
|
-
"type":"food",
|
|
117
|
-
"unit_of_measure":"",
|
|
118
|
-
"weight":""
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"date":"",
|
|
122
|
-
"description":"PAPA CAPIRA X",
|
|
123
|
-
"discount":0.0,
|
|
124
|
-
"id":70455288,
|
|
125
|
-
"order":5,
|
|
126
|
-
"price":0.0,
|
|
127
|
-
"quantity":1.0,
|
|
128
|
-
"reference":"",
|
|
129
|
-
"section":"",
|
|
130
|
-
"sku":"004736",
|
|
131
|
-
"tax":0.0,
|
|
132
|
-
"tax_rate":0.0,
|
|
133
|
-
"total":1935.0,
|
|
134
|
-
"type":"food",
|
|
135
|
-
"unit_of_measure":"",
|
|
136
|
-
"weight":""
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"date":"",
|
|
140
|
-
"description":"BOLSA DE",
|
|
141
|
-
"discount":0.0,
|
|
142
|
-
"id":70455289,
|
|
143
|
-
"order":6,
|
|
144
|
-
"price":0.0,
|
|
145
|
-
"quantity":1.0,
|
|
146
|
-
"reference":"",
|
|
147
|
-
"section":"",
|
|
148
|
-
"sku":"005157",
|
|
149
|
-
"tax":0.0,
|
|
150
|
-
"tax_rate":0.0,
|
|
151
|
-
"total":500.0,
|
|
152
|
-
"type":"product",
|
|
153
|
-
"unit_of_measure":"",
|
|
154
|
-
"weight":""
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"date":"",
|
|
158
|
-
"description":"BOLSAS/EMPAQUES",
|
|
159
|
-
"discount":0.0,
|
|
160
|
-
"id":70455290,
|
|
161
|
-
"order":7,
|
|
162
|
-
"price":0.0,
|
|
163
|
-
"quantity":1.0,
|
|
164
|
-
"reference":"",
|
|
165
|
-
"section":"",
|
|
166
|
-
"sku":"008777",
|
|
167
|
-
"tax":0.0,
|
|
168
|
-
"tax_rate":0.0,
|
|
169
|
-
"total":50.0,
|
|
170
|
-
"type":"product",
|
|
171
|
-
"unit_of_measure":"",
|
|
172
|
-
"weight":""
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"date":"",
|
|
176
|
-
"description":"INC Bolsa",
|
|
177
|
-
"discount":0.0,
|
|
178
|
-
"id":70455292,
|
|
179
|
-
"order":8,
|
|
180
|
-
"price":0.0,
|
|
181
|
-
"quantity":1.0,
|
|
182
|
-
"reference":"",
|
|
183
|
-
"section":"",
|
|
184
|
-
"sku":"",
|
|
185
|
-
"tax":0.0,
|
|
186
|
-
"tax_rate":0.0,
|
|
187
|
-
"total":50.0,
|
|
188
|
-
"type":"product",
|
|
189
|
-
"unit_of_measure":"",
|
|
190
|
-
"weight":""
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"date":"",
|
|
194
|
-
"description":"Bolsa Pilstica",
|
|
195
|
-
"discount":0.0,
|
|
196
|
-
"id":70455293,
|
|
197
|
-
"order":9,
|
|
198
|
-
"price":0.0,
|
|
199
|
-
"quantity":1.0,
|
|
200
|
-
"reference":"",
|
|
201
|
-
"section":"",
|
|
202
|
-
"sku":"",
|
|
203
|
-
"tax":0.0,
|
|
204
|
-
"tax_rate":0.0,
|
|
205
|
-
"total":0.0,
|
|
206
|
-
"type":"product",
|
|
207
|
-
"unit_of_measure":"",
|
|
208
|
-
"weight":""
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
"notes":"Note updated",
|
|
212
|
-
"ocr_text":"SUPERMERCADOS MERKAHORRO S.A.S.\nNIT :901150440-9\nRESPONSABLES DE IVA\n2892932-PBX 4806360\nCALLE 11 # 16-43\nFACTURA DE VENTA: C11 206136\nCODIGO DESCRIPCION\tCANT. VR.TOTAL\n004967 DETERGENTE FAB 1.00 6200 G\n004573 FILETE PECHUGA 1.00 19900 X\n005015 BROCOLI KILO\t0.48 2328 X\n005021 CEBOLLA DE HUEVO 0.40 880 X\n005107 ZANAHORIA KILO 0.66 1320 X\n004736 PAPA CAPIRA X\t1.08 1935 X\n005157 BOLSA DE\t1.00 500 X\n008777 BOLSAS/EMPAQUES 1.00 50 X\nINC Bolsa\t\t50\nSUBTOTAL\t33,113\nIMPUESTO\t50\nBASE\t32,073\nIVA\t990\nINC Bolsa Pilstica\t50\n>>>>> TOTAL\t33,113\nEFECTIVO\t50,100\nCAMBIO\t16,987\nDISCRIMINACION TARIFAS IVA\nTARI-A COMPRA\tBASE\tIVA\nX 26,863 26,863\t0\n19 % 6,200 5,210\t990\nArticulos:6.61\nFecha Fac:07/01/2020 11:19:53 AM\nImpresjon:07/01/2020 11:20:05 AM\nCajero(a):BIVIANA BETANCUR SUAREZ\nAuditoria:010102 0107 0119\nAUTORIZACION FACTURACION No.\n18762016141372 DE:06/08/2019 VIGENCIA: 18\nMESES, HABILITA NUMERO DESDE:C11 155963\nHASTA:C11 500000\nSERIAL CAJA02: 9GVG8V1\nDelfin Software - Dlp Systems\nwww.dlpsystems.co",
|
|
213
|
-
"order_date":"",
|
|
214
|
-
"payment_display_name":"Cash",
|
|
215
|
-
"payment_terms":"",
|
|
216
|
-
"payment_type":"cash",
|
|
217
|
-
"phone_number":"010102 0107 0119",
|
|
218
|
-
"purchase_order_number":"",
|
|
219
|
-
"reference_number":"VBJHG-9250",
|
|
220
|
-
"service_end_date":"",
|
|
221
|
-
"service_start_date":"",
|
|
222
|
-
"ship_date":"",
|
|
223
|
-
"shipping":0.0,
|
|
224
|
-
"subtotal":33113.0,
|
|
225
|
-
"tags":[
|
|
226
|
-
|
|
227
|
-
],
|
|
228
|
-
"tax":990.0,
|
|
229
|
-
"tax_lines":[
|
|
230
|
-
|
|
231
|
-
],
|
|
232
|
-
"tip":0.0,
|
|
233
|
-
"total":33113.0,
|
|
234
|
-
"total_weight":"",
|
|
235
|
-
"tracking_number":"",
|
|
236
|
-
"updated":"2021-07-12 01:01:00",
|
|
237
|
-
"vat_number":"901150440-9",
|
|
238
|
-
"vendor":{
|
|
239
|
-
"address":"",
|
|
240
|
-
"fax_number":"",
|
|
241
|
-
"name":"Supermercados Merkahorro S.a.s.",
|
|
242
|
-
"phone_number":"010102 0107 0119",
|
|
243
|
-
"raw_name":"SUPERMERCADOS MERKAHORRO S.A.S.",
|
|
244
|
-
"vendor_logo":"https://cdn.veryfi.com/logos/tmp/038634479.png",
|
|
245
|
-
"vendor_type":"Grocery"
|
|
246
|
-
},
|
|
247
|
-
"vendor_account_number":"",
|
|
248
|
-
"vendor_bank_name":"",
|
|
249
|
-
"vendor_bank_number":"",
|
|
250
|
-
"vendor_bank_swift":"",
|
|
251
|
-
"vendor_iban":"",
|
|
252
|
-
"warnings":[
|
|
253
|
-
|
|
254
|
-
]
|
|
255
|
-
}
|