foodbot-cart-calculations 1.0.71 → 1.0.72
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/functions/promotionCalculation.js +2 -2
- package/index.js +17 -17
- package/package.json +1 -1
- package/response.json +257 -459
- package/sample.json +203 -3326
package/response.json
CHANGED
|
@@ -1,460 +1,258 @@
|
|
|
1
|
-
{
|
|
2
|
-
"status": "success",
|
|
3
|
-
"status_code": 201,
|
|
4
|
-
"message": "Tax calculated successfully with few details missing",
|
|
5
|
-
"missing_optional_fields": [
|
|
6
|
-
"order_type",
|
|
7
|
-
"restaurant_id",
|
|
8
|
-
"branch_id",
|
|
9
|
-
"request_id"
|
|
10
|
-
],
|
|
11
|
-
"data": {
|
|
12
|
-
"isPos": 1,
|
|
13
|
-
"order_items": {
|
|
14
|
-
"item_details": [
|
|
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
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
260
|
-
"tax_label": "IVA 16%",
|
|
261
|
-
"tax_rate": 16,
|
|
262
|
-
"tax_sequence": 1,
|
|
263
|
-
"base_price_effected": 0,
|
|
264
|
-
"tax_amount": "0.000000",
|
|
265
|
-
"base_price": "0.00",
|
|
266
|
-
"tax_rate_quantity": 0
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"stk_seq_id": 2,
|
|
270
|
-
"points_discount": "2.00"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"modifier_category_id": "cf9b55fc-268b-4ad9-bf6a-c77cf173acb9",
|
|
274
|
-
"modifer_cat": "cf9b55fc-268b-4ad9-bf6a-c77cf173acb9",
|
|
275
|
-
"modifier_caetgory_name": "Pizza modifiers",
|
|
276
|
-
"modifier_item_id": "35bf8105-f454-4d5a-a905-660c19740710",
|
|
277
|
-
"modifier_category_sequence": "0",
|
|
278
|
-
"modifier_sequence": "0undefined",
|
|
279
|
-
"modifier_item_price": 1,
|
|
280
|
-
"modifier_item_name": "Modifier 4",
|
|
281
|
-
"is_tax_rate_same": 1,
|
|
282
|
-
"tax_rate": 16,
|
|
283
|
-
"quantity": 1,
|
|
284
|
-
"item_id": "9e90ef00-c1cd-43f4-a204-d9e3e00ed1da",
|
|
285
|
-
"tax_id": [
|
|
286
|
-
{
|
|
287
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021"
|
|
288
|
-
}
|
|
289
|
-
],
|
|
290
|
-
"modifier_trx_id": "EpWpPRku",
|
|
291
|
-
"linked_product": "",
|
|
292
|
-
"tax_amount": "0.000000",
|
|
293
|
-
"tax_array": [
|
|
294
|
-
{
|
|
295
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
296
|
-
"tax_label": "IVA 16%",
|
|
297
|
-
"tax_rate": 16,
|
|
298
|
-
"tax_sequence": 1,
|
|
299
|
-
"base_price_effected": 0,
|
|
300
|
-
"tax_amount": "0.000000",
|
|
301
|
-
"base_price": "0.00",
|
|
302
|
-
"tax_rate_quantity": 0
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
"stk_seq_id": 2,
|
|
306
|
-
"points_discount": "1.00"
|
|
307
|
-
}
|
|
308
|
-
],
|
|
309
|
-
"isPackage": 0,
|
|
310
|
-
"package_items": [],
|
|
311
|
-
"actual_price": 0,
|
|
312
|
-
"item_event": "new",
|
|
313
|
-
"tax_id": [
|
|
314
|
-
{
|
|
315
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021"
|
|
316
|
-
}
|
|
317
|
-
],
|
|
318
|
-
"ieps_tax": {
|
|
319
|
-
"status": 0,
|
|
320
|
-
"ieps_details": {
|
|
321
|
-
"type": "",
|
|
322
|
-
"tax_id": 0
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
"item_trx_id": "AIbvQuCt",
|
|
326
|
-
"special_instruction": "",
|
|
327
|
-
"tax_amount": "0.000000",
|
|
328
|
-
"tax_array": [
|
|
329
|
-
{
|
|
330
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
331
|
-
"tax_label": "IVA 16%",
|
|
332
|
-
"tax_rate": 16,
|
|
333
|
-
"tax_sequence": 1,
|
|
334
|
-
"base_price_effected": 0,
|
|
335
|
-
"tax_amount": "0.000000",
|
|
336
|
-
"base_price": "0.00",
|
|
337
|
-
"tax_rate_quantity": 0
|
|
338
|
-
}
|
|
339
|
-
],
|
|
340
|
-
"tax_amount_modifier": "0.000000",
|
|
341
|
-
"total_tax_amount": "0.000000",
|
|
342
|
-
"stk_seq_id": 2,
|
|
343
|
-
"order_version": 3,
|
|
344
|
-
"wa_user_info": {
|
|
345
|
-
"user_id": 1000221,
|
|
346
|
-
"user_name": "POS Manager"
|
|
347
|
-
},
|
|
348
|
-
"sync": true,
|
|
349
|
-
"pos_user_id": 1000221,
|
|
350
|
-
"promotion_discount_modifier": 0,
|
|
351
|
-
"point_discount_status": true,
|
|
352
|
-
"points_discount": "70.00",
|
|
353
|
-
"points_discount_modifier": "4.00",
|
|
354
|
-
"promotion_discount": 0,
|
|
355
|
-
"total_item_cost": "0.00"
|
|
356
|
-
}
|
|
357
|
-
],
|
|
358
|
-
"total": "371.00",
|
|
359
|
-
"discount": "0.00",
|
|
360
|
-
"points_redeem_message": "",
|
|
361
|
-
"service_discount": 0,
|
|
362
|
-
"is_service_discount": false,
|
|
363
|
-
"delivery_discount": 0,
|
|
364
|
-
"is_delivery_discount": false,
|
|
365
|
-
"store_value": "371.00",
|
|
366
|
-
"point_discount_amount": "371.00",
|
|
367
|
-
"points_discount": "371.00",
|
|
368
|
-
"cartTotal": "0.00",
|
|
369
|
-
"tax_amount": "0.000000",
|
|
370
|
-
"merged_tax_array": [
|
|
371
|
-
{
|
|
372
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
373
|
-
"tax_label": "IVA 16%",
|
|
374
|
-
"tax_rate": 16,
|
|
375
|
-
"tax_sequence": 1,
|
|
376
|
-
"base_price_effected": 0,
|
|
377
|
-
"tax_amount": "0.000000",
|
|
378
|
-
"base_price": "0.000000",
|
|
379
|
-
"tax_rate_quantity": 0
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"cart_total_with_tax": "0.00",
|
|
383
|
-
"sub_total": "0.00",
|
|
384
|
-
"total_after_tax": "0.00",
|
|
385
|
-
"final_amount": "NaN",
|
|
386
|
-
"cash_expected": "NaN"
|
|
387
|
-
},
|
|
388
|
-
"tax_settings": [
|
|
389
|
-
{
|
|
390
|
-
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
391
|
-
"tax_label": "IVA 16%",
|
|
392
|
-
"tax_rate": 16,
|
|
393
|
-
"tax_sequence": 1,
|
|
394
|
-
"base_price_effected": 0
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
"tax_id": "21036b00-bdb4-4485-aaba-d088a721a67f",
|
|
398
|
-
"tax_label": "IVA 8%",
|
|
399
|
-
"tax_rate": 8,
|
|
400
|
-
"tax_sequence": 1,
|
|
401
|
-
"base_price_effected": 0
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
"tax_id": "e47296aa-b5ae-449f-ab5f-ff50f43a648a",
|
|
405
|
-
"tax_label": "Sin IVA",
|
|
406
|
-
"tax_rate": 0,
|
|
407
|
-
"tax_sequence": 3,
|
|
408
|
-
"base_price_effected": 0
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
"tax_id": "21036b00-bdb4-4485-aaba-d088a721a67f1",
|
|
412
|
-
"tax_label": "IEPS 8%",
|
|
413
|
-
"tax_rate": 8,
|
|
414
|
-
"tax_sequence": 2,
|
|
415
|
-
"base_price_effected": 0
|
|
416
|
-
}
|
|
417
|
-
],
|
|
418
|
-
"tax_type": 2,
|
|
419
|
-
"store_value": "371.00",
|
|
420
|
-
"store_value_without_roundoff": "84859.00",
|
|
421
|
-
"loyalty_points_details": {
|
|
422
|
-
"points": "84859.00",
|
|
423
|
-
"redeemable": "yes",
|
|
424
|
-
"store_value": "84859.00",
|
|
425
|
-
"redeem_categories": [
|
|
426
|
-
{
|
|
427
|
-
"product_id": "All",
|
|
428
|
-
"category_id": "All"
|
|
429
|
-
}
|
|
430
|
-
],
|
|
431
|
-
"original_store_value": "84859.00",
|
|
432
|
-
"point_amount": 371,
|
|
433
|
-
"status": true,
|
|
434
|
-
"points_redeemed": 371
|
|
435
|
-
},
|
|
436
|
-
"user_detais": {
|
|
437
|
-
"customer_id": 12,
|
|
438
|
-
"member_id": "0a424756-9357-4a3d-a595-9b33ef1961fe",
|
|
439
|
-
"first_name": "MD",
|
|
440
|
-
"last_name": "Talib",
|
|
441
|
-
"phone_number": "9899429030",
|
|
442
|
-
"country_code": "91",
|
|
443
|
-
"fb_sender_id": "9899429030",
|
|
444
|
-
"created_on": "2024-12-23 06:15:35",
|
|
445
|
-
"reward_plan_name": " Chocolate Crumble",
|
|
446
|
-
"reward_plan_id": "13",
|
|
447
|
-
"calling_code": "+52",
|
|
448
|
-
"name": "MD Talib",
|
|
449
|
-
"mobile": "9899429030"
|
|
450
|
-
},
|
|
451
|
-
"tip_type": "",
|
|
452
|
-
"tip_value": "",
|
|
453
|
-
"delivery_cost": 0,
|
|
454
|
-
"service_amount": 0,
|
|
455
|
-
"discount": "0.00",
|
|
456
|
-
"final_amount": 0,
|
|
457
|
-
"cash_expected": 0,
|
|
458
|
-
"tip_amount": "0.00"
|
|
459
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"status": "success",
|
|
3
|
+
"status_code": 201,
|
|
4
|
+
"message": "Tax calculated successfully with few details missing",
|
|
5
|
+
"missing_optional_fields": [
|
|
6
|
+
"order_type",
|
|
7
|
+
"restaurant_id",
|
|
8
|
+
"branch_id",
|
|
9
|
+
"request_id"
|
|
10
|
+
],
|
|
11
|
+
"data": {
|
|
12
|
+
"isPos": 1,
|
|
13
|
+
"order_items": {
|
|
14
|
+
"item_details": [
|
|
15
|
+
{
|
|
16
|
+
"menu_id": "5f125155-c84b-40f2-9d4d-5d2ca0086ef7",
|
|
17
|
+
"item_id": "2dfcffad-81ed-4c78-b15b-0122b3833757",
|
|
18
|
+
"category_id": "de5fcb05-ab3b-11f0-a5b4-12b5681bf65d",
|
|
19
|
+
"item_price": 180,
|
|
20
|
+
"item_price_with_modifier": 250,
|
|
21
|
+
"quantity": 1,
|
|
22
|
+
"item_display_text": "Malai Paneer (White Curry)",
|
|
23
|
+
"item_name": "Malai Paneer (White Curry)",
|
|
24
|
+
"tax_rate": 16,
|
|
25
|
+
"item_modifiers": [
|
|
26
|
+
{
|
|
27
|
+
"modifier_category_id": "3c9f83cb-9908-497a-bd92-10732a7c03fb",
|
|
28
|
+
"modifer_cat": "3c9f83cb-9908-497a-bd92-10732a7c03fb",
|
|
29
|
+
"modifier_caetgory_name": "Sides",
|
|
30
|
+
"modifier_item_id": "e43c1849-5cee-4d91-a9c1-789786a777d4",
|
|
31
|
+
"modifier_category_sequence": "0",
|
|
32
|
+
"modifier_sequence": "0undefined",
|
|
33
|
+
"modifier_item_price": 35,
|
|
34
|
+
"modifier_item_name": "Paratha",
|
|
35
|
+
"is_tax_rate_same": 1,
|
|
36
|
+
"tax_rate": 16,
|
|
37
|
+
"quantity": 2,
|
|
38
|
+
"item_id": "2dfcffad-81ed-4c78-b15b-0122b3833757",
|
|
39
|
+
"tax_id": [
|
|
40
|
+
{
|
|
41
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"modifier_trx_id": "U7sgHKoD",
|
|
45
|
+
"linked_product": "",
|
|
46
|
+
"tax_amount": "0.000000",
|
|
47
|
+
"tax_array": [
|
|
48
|
+
{
|
|
49
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
50
|
+
"tax_label": "IVA 16%",
|
|
51
|
+
"tax_rate": 16,
|
|
52
|
+
"tax_sequence": 1,
|
|
53
|
+
"base_price_effected": 0,
|
|
54
|
+
"tax_amount": "0.000000",
|
|
55
|
+
"base_price": "0.00",
|
|
56
|
+
"tax_rate_quantity": 0
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"redeem_promotion_id": 116,
|
|
60
|
+
"promotion_discount": "70.00"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"modifier_category_id": "2b4cab14-7424-4112-847e-7ea980c5b029",
|
|
64
|
+
"modifer_cat": "2b4cab14-7424-4112-847e-7ea980c5b029",
|
|
65
|
+
"modifier_caetgory_name": "Spice Level",
|
|
66
|
+
"modifier_item_id": "3571afaa-160a-493c-9c53-e76b71d14590",
|
|
67
|
+
"modifier_category_sequence": "2",
|
|
68
|
+
"modifier_sequence": "2undefined",
|
|
69
|
+
"modifier_item_price": 0,
|
|
70
|
+
"modifier_item_name": "Mild",
|
|
71
|
+
"is_tax_rate_same": 1,
|
|
72
|
+
"tax_rate": 16,
|
|
73
|
+
"quantity": 1,
|
|
74
|
+
"item_id": "2dfcffad-81ed-4c78-b15b-0122b3833757",
|
|
75
|
+
"tax_id": [
|
|
76
|
+
{
|
|
77
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"modifier_trx_id": "5YcF13yn",
|
|
81
|
+
"linked_product": "",
|
|
82
|
+
"tax_amount": "0.000000",
|
|
83
|
+
"tax_array": [
|
|
84
|
+
{
|
|
85
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
86
|
+
"tax_label": "IVA 16%",
|
|
87
|
+
"tax_rate": 16,
|
|
88
|
+
"tax_sequence": 1,
|
|
89
|
+
"base_price_effected": 0,
|
|
90
|
+
"tax_amount": "0.000000",
|
|
91
|
+
"base_price": "0.00",
|
|
92
|
+
"tax_rate_quantity": 0
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"redeem_promotion_id": 0,
|
|
96
|
+
"promotion_discount": 0
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"isPackage": 0,
|
|
100
|
+
"package_items": [],
|
|
101
|
+
"actual_price": 0,
|
|
102
|
+
"item_event": "new",
|
|
103
|
+
"tax_id": [
|
|
104
|
+
{
|
|
105
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"ieps_tax": {
|
|
109
|
+
"status": 0,
|
|
110
|
+
"ieps_details": {
|
|
111
|
+
"type": "",
|
|
112
|
+
"tax_id": 0
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"item_trx_id": "7FVV204f",
|
|
116
|
+
"special_instruction": "",
|
|
117
|
+
"detailList": [],
|
|
118
|
+
"promotion_discount_modifier": "70.00",
|
|
119
|
+
"tax_amount": "24.830000",
|
|
120
|
+
"tax_array": [
|
|
121
|
+
{
|
|
122
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
123
|
+
"tax_label": "IVA 16%",
|
|
124
|
+
"tax_rate": 16,
|
|
125
|
+
"tax_sequence": 1,
|
|
126
|
+
"base_price_effected": 0,
|
|
127
|
+
"tax_amount": "24.830000",
|
|
128
|
+
"base_price": "155.17",
|
|
129
|
+
"tax_rate_quantity": 0
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"tax_amount_modifier": "24.830000",
|
|
133
|
+
"total_tax_amount": "24.830000",
|
|
134
|
+
"total_item_cost": 180,
|
|
135
|
+
"per_item_cost": 180,
|
|
136
|
+
"redeem_promotion_id": 116,
|
|
137
|
+
"promotion_discount": 0
|
|
138
|
+
}
|
|
139
|
+
],
|
|
140
|
+
"total": "250.00",
|
|
141
|
+
"discount": "70.00",
|
|
142
|
+
"points_redeem_message": "",
|
|
143
|
+
"delivery_discount": 0,
|
|
144
|
+
"service_discount": 0,
|
|
145
|
+
"store_value": 0,
|
|
146
|
+
"points_discount": 0,
|
|
147
|
+
"cartTotal": "180.00",
|
|
148
|
+
"tax_amount": "24.830000",
|
|
149
|
+
"merged_tax_array": [
|
|
150
|
+
{
|
|
151
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
152
|
+
"tax_label": "IVA 16%",
|
|
153
|
+
"tax_rate": 16,
|
|
154
|
+
"tax_sequence": 1,
|
|
155
|
+
"base_price_effected": 0,
|
|
156
|
+
"tax_amount": "24.830000",
|
|
157
|
+
"base_price": "155.170000",
|
|
158
|
+
"tax_rate_quantity": 0
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"cart_total_with_tax": "204.83",
|
|
162
|
+
"sub_total": "155.17",
|
|
163
|
+
"total_after_tax": "180.00",
|
|
164
|
+
"final_amount": "NaN",
|
|
165
|
+
"cash_expected": "NaN"
|
|
166
|
+
},
|
|
167
|
+
"tax_settings": [
|
|
168
|
+
{
|
|
169
|
+
"tax_id": "425a195c-3b37-11ed-af0e-42010ad46021",
|
|
170
|
+
"tax_label": "IVA 16%",
|
|
171
|
+
"tax_rate": 16,
|
|
172
|
+
"tax_sequence": 1,
|
|
173
|
+
"base_price_effected": 0
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"tax_id": "21036b00-bdb4-4485-aaba-d088a721a67f",
|
|
177
|
+
"tax_label": "IVA 8%",
|
|
178
|
+
"tax_rate": 8,
|
|
179
|
+
"tax_sequence": 1,
|
|
180
|
+
"base_price_effected": 0
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"tax_id": "e47296aa-b5ae-449f-ab5f-ff50f43a648a",
|
|
184
|
+
"tax_label": "Sin IVA",
|
|
185
|
+
"tax_rate": 0,
|
|
186
|
+
"tax_sequence": 3,
|
|
187
|
+
"base_price_effected": 0
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"tax_id": "21036b00-bdb4-4485-aaba-d088a721a67f1",
|
|
191
|
+
"tax_label": "IEPS 8%",
|
|
192
|
+
"tax_rate": 8,
|
|
193
|
+
"tax_sequence": 2,
|
|
194
|
+
"base_price_effected": 0
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
"tax_type": 2,
|
|
198
|
+
"store_value": 0,
|
|
199
|
+
"user_detais": {
|
|
200
|
+
"customer_id": 280,
|
|
201
|
+
"member_id": "87ef6728-230d-4249-89ca-b0c2587931d0",
|
|
202
|
+
"first_name": "Juber",
|
|
203
|
+
"last_name": "H",
|
|
204
|
+
"phone_number": "8217088697",
|
|
205
|
+
"country_code": "91",
|
|
206
|
+
"fb_sender_id": "8217088697",
|
|
207
|
+
"created_on": "2025-11-26 11:20:28",
|
|
208
|
+
"reward_plan_name": "🍴 Dine & Earn",
|
|
209
|
+
"reward_plan_id": "17",
|
|
210
|
+
"calling_code": "+52",
|
|
211
|
+
"name": "Juber H",
|
|
212
|
+
"mobile": "8217088697"
|
|
213
|
+
},
|
|
214
|
+
"delivery_cost": 0,
|
|
215
|
+
"service_amount": 0,
|
|
216
|
+
"promotion_applied": {
|
|
217
|
+
"offer_id": 116,
|
|
218
|
+
"en_id": 1839,
|
|
219
|
+
"offer_type": "user_specific",
|
|
220
|
+
"validity_from": "22-Dic-2025",
|
|
221
|
+
"validity_to": "31-Dic-2025",
|
|
222
|
+
"description": "Modifier 100% off",
|
|
223
|
+
"promotion_image": "https://res.cloudinary.com/dn2mchqlr/image/upload/f_auto,q_auto,fl_lossy/v1766403627/stage/spec.%20promo/file1766403627641sp_skhiko.jpg",
|
|
224
|
+
"titile": "Modifier 100% off",
|
|
225
|
+
"subtitle": "valid untill",
|
|
226
|
+
"oo_min_amount": 1,
|
|
227
|
+
"oo_offer_type": "percentage",
|
|
228
|
+
"oo_offer_value": 100,
|
|
229
|
+
"offer_discount_type": "discount_modifier",
|
|
230
|
+
"max_product": "2",
|
|
231
|
+
"modifier_category": [
|
|
232
|
+
"all"
|
|
233
|
+
],
|
|
234
|
+
"valid_days": "Lun a Vie",
|
|
235
|
+
"popup_status": 1,
|
|
236
|
+
"oo_order_type": {
|
|
237
|
+
"dinein": "yes",
|
|
238
|
+
"takeout": "yes",
|
|
239
|
+
"delivery": "yes"
|
|
240
|
+
},
|
|
241
|
+
"promotion_code": "",
|
|
242
|
+
"discount_roundoff": 0,
|
|
243
|
+
"oo_status": 3,
|
|
244
|
+
"redeem_description": null,
|
|
245
|
+
"redeem_timer": 0,
|
|
246
|
+
"redeemption_intiated_timestamp": null,
|
|
247
|
+
"redeem_source": null,
|
|
248
|
+
"status": 0,
|
|
249
|
+
"index": 7,
|
|
250
|
+
"_source": "regular",
|
|
251
|
+
"_originalIndex": 7
|
|
252
|
+
},
|
|
253
|
+
"discount": "70.00",
|
|
254
|
+
"final_amount": 180,
|
|
255
|
+
"cash_expected": 180,
|
|
256
|
+
"tip_amount": "0.00"
|
|
257
|
+
}
|
|
460
258
|
}
|