repzo 1.0.154 → 1.0.156

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.
Files changed (96) hide show
  1. package/changelog.md +1 -0
  2. package/lib/index.d.ts +18 -0
  3. package/lib/index.js +38 -0
  4. package/lib/types/index.d.ts +462 -198
  5. package/lib/types/index.js +2 -1
  6. package/package.json +2 -2
  7. package/src/index.ts +4890 -0
  8. package/src/oas/activity-ai-sales-order.yaml +623 -0
  9. package/src/oas/activity-feedback-v2.yaml +753 -0
  10. package/src/oas/activity-feedback.yaml +645 -0
  11. package/src/oas/activity-storecheck.yaml +379 -0
  12. package/src/oas/adjust-account.yaml +241 -0
  13. package/src/oas/adjust-inventory.yaml +133 -0
  14. package/src/oas/approval-request.yaml +211 -0
  15. package/src/oas/approvals.yaml +176 -0
  16. package/src/oas/asset-part-receival.yaml +591 -0
  17. package/src/oas/asset-part-transfer.yaml +618 -0
  18. package/src/oas/asset-part-type.yaml +383 -0
  19. package/src/oas/asset-part-unit.yaml +722 -0
  20. package/src/oas/asset-part.yaml +485 -0
  21. package/src/oas/asset-type.yaml +180 -0
  22. package/src/oas/asset-unit.yaml +705 -0
  23. package/src/oas/asset.yaml +204 -0
  24. package/src/oas/banks.yaml +168 -0
  25. package/src/oas/bankslists.yaml +168 -0
  26. package/src/oas/brand.yaml +246 -0
  27. package/src/oas/category.yaml +285 -0
  28. package/src/oas/checks.yaml +247 -0
  29. package/src/oas/client-channel.yaml +480 -0
  30. package/src/oas/client-contact.yaml +665 -0
  31. package/src/oas/client-location.yaml +687 -0
  32. package/src/oas/client.yaml +669 -0
  33. package/src/oas/contract-installment.yaml +740 -0
  34. package/src/oas/contract.yaml +210 -0
  35. package/src/oas/custom-list-item.yaml +168 -0
  36. package/src/oas/custom-list.yaml +168 -0
  37. package/src/oas/custom-status.yaml +168 -0
  38. package/src/oas/day.yaml +246 -0
  39. package/src/oas/feedback-options.yaml +802 -0
  40. package/src/oas/fullinvoices.yaml +584 -0
  41. package/src/oas/integration-action-log.yaml +361 -0
  42. package/src/oas/integration-app.yaml +303 -0
  43. package/src/oas/integration-command-log.yaml +381 -0
  44. package/src/oas/inventory-adjustment-reason.yaml +165 -0
  45. package/src/oas/inventory.yaml +64 -0
  46. package/src/oas/mail-unsubscribe.yaml +463 -0
  47. package/src/oas/measureunit-family.yaml +354 -0
  48. package/src/oas/measureunit.yaml +366 -0
  49. package/src/oas/media-storage.yaml +329 -0
  50. package/src/oas/media.yaml +472 -0
  51. package/src/oas/msl-products.yaml +180 -0
  52. package/src/oas/msl.yaml +186 -0
  53. package/src/oas/ocr-invoice-job-group.yaml +528 -0
  54. package/src/oas/ocr-invoice-job-page.yaml +602 -0
  55. package/src/oas/ocr-invoice-job-template.yaml +628 -0
  56. package/src/oas/ocr-invoice-job.yaml +603 -0
  57. package/src/oas/patch-action.yaml +421 -0
  58. package/src/oas/payment-terms.yaml +235 -0
  59. package/src/oas/payments.yaml +536 -0
  60. package/src/oas/pricelist-item.yaml +369 -0
  61. package/src/oas/pricelist.yaml +287 -0
  62. package/src/oas/product-group.yaml +278 -0
  63. package/src/oas/product-modifiers-group.yaml +524 -0
  64. package/src/oas/product.yaml +578 -0
  65. package/src/oas/proforma.yaml +180 -0
  66. package/src/oas/quick-convert-to-pdf.yaml +95 -0
  67. package/src/oas/receiving-material.yaml +336 -0
  68. package/src/oas/refund.yaml +281 -0
  69. package/src/oas/rep-balance-summary.yaml +135 -0
  70. package/src/oas/rep.yaml +1824 -0
  71. package/src/oas/return-asset-part-unit.yaml +573 -0
  72. package/src/oas/return-reason.yaml +286 -0
  73. package/src/oas/route.yaml +337 -0
  74. package/src/oas/safe-invoice-serial-counter.yaml +525 -0
  75. package/src/oas/settings.yaml +123 -0
  76. package/src/oas/settlement.yaml +505 -0
  77. package/src/oas/speciality.yaml +447 -0
  78. package/src/oas/store-asset-part-unit.yaml +658 -0
  79. package/src/oas/storecheck-template.yaml +415 -0
  80. package/src/oas/subcategory.yaml +355 -0
  81. package/src/oas/supplier.yaml +183 -0
  82. package/src/oas/svix-integration.yaml +335 -0
  83. package/src/oas/tag.yaml +272 -0
  84. package/src/oas/tax.yaml +303 -0
  85. package/src/oas/team.yaml +268 -0
  86. package/src/oas/transfer.yaml +347 -0
  87. package/src/oas/update-integration-meta.yaml +387 -0
  88. package/src/oas/variant.yaml +569 -0
  89. package/src/oas/visit.yaml +174 -0
  90. package/src/oas/warehouse.yaml +311 -0
  91. package/src/oas/workorder-category.yaml +751 -0
  92. package/src/oas/workorder-portal-link.yaml +811 -0
  93. package/src/oas/workorder-portal.yaml +650 -0
  94. package/src/oas/workorder-request.yaml +193 -0
  95. package/src/oas/workorder.yaml +204 -0
  96. package/src/types/index.ts +1175 -223
@@ -0,0 +1,536 @@
1
+ openapi: 3.0.3
2
+ info:
3
+ title: Repzo API - Payments
4
+ version: 1.0.0
5
+ description: OpenAPI specification for Repzo Payments endpoints.
6
+ servers:
7
+ - url: https://sv.api.repzo.me
8
+ paths:
9
+ /payments:
10
+ get:
11
+ summary: Find payments
12
+ operationId: findPayments
13
+ parameters:
14
+ - in: query
15
+ name: _id
16
+ schema:
17
+ oneOf:
18
+ - type: string
19
+ - type: array
20
+ items:
21
+ type: string
22
+ description: Payment ID(s) to filter by
23
+ - in: query
24
+ name: creator._id
25
+ schema:
26
+ oneOf:
27
+ - type: string
28
+ - type: array
29
+ items:
30
+ type: string
31
+ description: Creator ID(s) to filter by
32
+ - in: query
33
+ name: client_id
34
+ schema:
35
+ oneOf:
36
+ - type: string
37
+ - type: array
38
+ items:
39
+ type: string
40
+ description: Client ID(s) to filter by
41
+ - in: query
42
+ name: from_paytime
43
+ schema:
44
+ type: number
45
+ description: Filter payments from this paytime (timestamp)
46
+ - in: query
47
+ name: to_paytime
48
+ schema:
49
+ type: number
50
+ description: Filter payments to this paytime (timestamp)
51
+ - in: query
52
+ name: custom_status
53
+ schema:
54
+ oneOf:
55
+ - type: string
56
+ - type: array
57
+ items:
58
+ type: string
59
+ description: Custom status(es) to filter by
60
+ - in: query
61
+ name: payment_type
62
+ schema:
63
+ oneOf:
64
+ - type: string
65
+ enum: ["check", "cash"]
66
+ - type: array
67
+ items:
68
+ type: string
69
+ enum: ["check", "cash"]
70
+ description: Payment type(s) to filter by
71
+ - in: query
72
+ name: creator
73
+ schema:
74
+ oneOf:
75
+ - type: string
76
+ - type: array
77
+ items:
78
+ type: string
79
+ description: Creator(s) to filter by
80
+ - in: query
81
+ name: clients
82
+ schema:
83
+ oneOf:
84
+ - type: string
85
+ - type: array
86
+ items:
87
+ type: string
88
+ description: Client(s) to filter by
89
+ - in: query
90
+ name: withPrintDetails
91
+ schema:
92
+ type: boolean
93
+ description: Include print details in response
94
+ - in: query
95
+ name: from_updatedAt
96
+ schema:
97
+ type: number
98
+ description: Filter payments updated from this timestamp
99
+ - in: query
100
+ name: serial_number.formatted
101
+ schema:
102
+ oneOf:
103
+ - type: string
104
+ - type: array
105
+ items:
106
+ type: string
107
+ description: Formatted serial number(s) to filter by
108
+ - in: query
109
+ name: populatedKeys
110
+ schema:
111
+ type: array
112
+ items:
113
+ type: string
114
+ enum: ["custom_status", "teams", "route"]
115
+ description: Keys to populate in the response
116
+ - in: query
117
+ name: from__id
118
+ schema:
119
+ type: string
120
+ description: Starting ID for pagination
121
+ - in: query
122
+ name: to__id
123
+ schema:
124
+ type: string
125
+ description: Ending ID for pagination
126
+ - in: query
127
+ name: sortBy
128
+ schema:
129
+ type: array
130
+ items:
131
+ type: object
132
+ properties:
133
+ field:
134
+ type: string
135
+ enum: ["_id"]
136
+ type:
137
+ type: string
138
+ enum: ["asc", "desc"]
139
+ description: Sort criteria
140
+ - in: query
141
+ name: page
142
+ schema:
143
+ type: number
144
+ minimum: 1
145
+ description: Page number for pagination
146
+ - in: query
147
+ name: per_page
148
+ schema:
149
+ type: number
150
+ minimum: 1
151
+ maximum: 100
152
+ description: Number of items per page
153
+ responses:
154
+ "200":
155
+ description: A list of payments
156
+ content:
157
+ application/json:
158
+ schema:
159
+ $ref: "#/components/schemas/PaymentFindResult"
160
+ post:
161
+ summary: Create a payment
162
+ operationId: createPayment
163
+ requestBody:
164
+ required: true
165
+ content:
166
+ application/json:
167
+ schema:
168
+ $ref: "#/components/schemas/PaymentCreateBody"
169
+ responses:
170
+ "201":
171
+ description: Payment created
172
+ content:
173
+ application/json:
174
+ schema:
175
+ $ref: "#/components/schemas/PaymentCreateResult"
176
+ /payments/{id}:
177
+ get:
178
+ summary: Get a payment by ID
179
+ operationId: getPayment
180
+ parameters:
181
+ - in: path
182
+ name: id
183
+ required: true
184
+ schema:
185
+ type: string
186
+ - in: query
187
+ name: withPrintDetails
188
+ schema:
189
+ type: boolean
190
+ description: Include print details in response
191
+ - in: query
192
+ name: populatedKeys
193
+ schema:
194
+ type: array
195
+ items:
196
+ type: string
197
+ enum: ["custom_status", "teams", "route"]
198
+ description: Keys to populate in the response
199
+ responses:
200
+ "200":
201
+ description: Payment details
202
+ content:
203
+ application/json:
204
+ schema:
205
+ $ref: "#/components/schemas/PaymentGetResult"
206
+ put:
207
+ summary: Update a payment
208
+ operationId: updatePayment
209
+ parameters:
210
+ - in: path
211
+ name: id
212
+ required: true
213
+ schema:
214
+ type: string
215
+ requestBody:
216
+ required: true
217
+ content:
218
+ application/json:
219
+ schema:
220
+ $ref: "#/components/schemas/PaymentUpdateBody"
221
+ responses:
222
+ "200":
223
+ description: Payment updated
224
+ content:
225
+ application/json:
226
+ schema:
227
+ $ref: "#/components/schemas/PaymentUpdateResult"
228
+ components:
229
+ schemas:
230
+ PaymentFindResult:
231
+ type: object
232
+ properties:
233
+ data:
234
+ type: array
235
+ items:
236
+ $ref: "#/components/schemas/Payment"
237
+ meta:
238
+ type: object
239
+ properties:
240
+ page:
241
+ type: number
242
+ per_page:
243
+ type: number
244
+ total:
245
+ type: number
246
+ pages:
247
+ type: number
248
+ absolute_total:
249
+ type: number
250
+ page_total:
251
+ type: number
252
+ PaymentCreateBody:
253
+ type: object
254
+ required:
255
+ - amount
256
+ - client_id
257
+ - client_name
258
+ - paytime
259
+ - currency
260
+ - payment_type
261
+ - transaction_processed
262
+ - sync_id
263
+ properties:
264
+ amount:
265
+ type: number
266
+ client_id:
267
+ type: string
268
+ client_name:
269
+ type: string
270
+ time:
271
+ type: number
272
+ serial_number:
273
+ $ref: "#/components/schemas/SerialNumber"
274
+ route:
275
+ type: string
276
+ paytime:
277
+ type: string
278
+ note:
279
+ type: string
280
+ currency:
281
+ type: string
282
+ payment_type:
283
+ type: string
284
+ enum: ["check", "cash"]
285
+ transaction_processed:
286
+ type: boolean
287
+ check:
288
+ $ref: "#/components/schemas/Check"
289
+ LinkedTxn:
290
+ type: object
291
+ properties:
292
+ Txn_serial_number:
293
+ $ref: "#/components/schemas/SerialNumber"
294
+ Txn_invoice_total:
295
+ type: number
296
+ TxnType:
297
+ type: string
298
+ enum: ["refund", "invoice"]
299
+ client_geo_location:
300
+ type: object
301
+ properties:
302
+ lat:
303
+ type: number
304
+ lng:
305
+ type: number
306
+ company_namespace:
307
+ type: array
308
+ items:
309
+ type: string
310
+ integration_meta:
311
+ type: object
312
+ additionalProperties: true
313
+ sync_id:
314
+ type: string
315
+ custom_status:
316
+ type: string
317
+ visit_id:
318
+ type: string
319
+ teams:
320
+ type: array
321
+ items:
322
+ type: string
323
+ PaymentCreateResult:
324
+ type: object
325
+ properties:
326
+ data:
327
+ $ref: "#/components/schemas/Payment"
328
+ PaymentGetResult:
329
+ type: object
330
+ properties:
331
+ data:
332
+ $ref: "#/components/schemas/Payment"
333
+ PaymentUpdateBody:
334
+ type: object
335
+ properties:
336
+ integration_meta:
337
+ type: object
338
+ additionalProperties: true
339
+ PaymentUpdateResult:
340
+ type: object
341
+ properties:
342
+ data:
343
+ $ref: "#/components/schemas/Payment"
344
+ Payment:
345
+ type: object
346
+ properties:
347
+ _id:
348
+ type: string
349
+ status:
350
+ type: string
351
+ enum: ["consumed", "unconsumed", "partially_consumed"]
352
+ remainder:
353
+ type: number
354
+ amount:
355
+ type: number
356
+ client_id:
357
+ type: string
358
+ client_name:
359
+ type: string
360
+ creator:
361
+ oneOf:
362
+ - $ref: "#/components/schemas/AdminCreator"
363
+ - $ref: "#/components/schemas/RepCreator"
364
+ implemented_by:
365
+ oneOf:
366
+ - $ref: "#/components/schemas/AdminCreator"
367
+ - $ref: "#/components/schemas/RepCreator"
368
+ transaction_processed:
369
+ type: boolean
370
+ time:
371
+ type: number
372
+ serial_number:
373
+ $ref: "#/components/schemas/SerialNumber"
374
+ route:
375
+ type: string
376
+ paytime:
377
+ type: string
378
+ note:
379
+ type: string
380
+ currency:
381
+ type: string
382
+ payment_type:
383
+ type: string
384
+ enum: ["check", "cash"]
385
+ check:
386
+ $ref: "#/components/schemas/Check"
387
+ LinkedTxn:
388
+ type: object
389
+ properties:
390
+ Txn_serial_number:
391
+ $ref: "#/components/schemas/SerialNumber"
392
+ Txn_invoice_total:
393
+ type: number
394
+ TxnType:
395
+ type: string
396
+ enum: ["refund", "invoice"]
397
+ client_geo_location:
398
+ type: object
399
+ properties:
400
+ lat:
401
+ type: number
402
+ lng:
403
+ type: number
404
+ company_namespace:
405
+ type: array
406
+ items:
407
+ type: string
408
+ integration_meta:
409
+ type: object
410
+ additionalProperties: true
411
+ sync_id:
412
+ type: string
413
+ custom_status:
414
+ type: string
415
+ visit_id:
416
+ type: string
417
+ teams:
418
+ type: array
419
+ items:
420
+ type: string
421
+ paymentsData:
422
+ type: object
423
+ properties:
424
+ amount:
425
+ type: number
426
+ paid:
427
+ type: number
428
+ balance:
429
+ type: number
430
+ payments:
431
+ type: array
432
+ items:
433
+ $ref: "#/components/schemas/PaymentData"
434
+ ending_balance:
435
+ type: number
436
+ createdAt:
437
+ type: string
438
+ format: date-time
439
+ updatedAt:
440
+ type: string
441
+ format: date-time
442
+ __v:
443
+ type: number
444
+ SerialNumber:
445
+ type: object
446
+ properties:
447
+ formatted:
448
+ type: string
449
+ raw:
450
+ type: number
451
+ AdminCreator:
452
+ type: object
453
+ properties:
454
+ _id:
455
+ type: string
456
+ name:
457
+ type: string
458
+ type:
459
+ type: string
460
+ enum: ["admin"]
461
+ RepCreator:
462
+ type: object
463
+ properties:
464
+ _id:
465
+ type: string
466
+ name:
467
+ type: string
468
+ type:
469
+ type: string
470
+ enum: ["rep"]
471
+ Check:
472
+ type: object
473
+ properties:
474
+ _id:
475
+ type: string
476
+ drawer_name:
477
+ type: string
478
+ bank:
479
+ type: string
480
+ bank_branch:
481
+ type: string
482
+ check_number:
483
+ type: number
484
+ check_date:
485
+ type: string
486
+ photo:
487
+ type: string
488
+ caption:
489
+ type: string
490
+ photo_meta:
491
+ type: object
492
+ properties:
493
+ device_orientation:
494
+ type: number
495
+ height:
496
+ type: number
497
+ width:
498
+ type: number
499
+ PaymentData:
500
+ type: object
501
+ properties:
502
+ payment_serial_number:
503
+ $ref: "#/components/schemas/SerialNumber"
504
+ payment_id:
505
+ type: string
506
+ invoice_serial_number:
507
+ $ref: "#/components/schemas/SerialNumber"
508
+ return_serial_number:
509
+ $ref: "#/components/schemas/SerialNumber"
510
+ fullinvoice_id:
511
+ type: string
512
+ refund_serial_number:
513
+ $ref: "#/components/schemas/SerialNumber"
514
+ refund_id:
515
+ type: string
516
+ adjustment_serial_number:
517
+ $ref: "#/components/schemas/SerialNumber"
518
+ adjustment_id:
519
+ type: string
520
+ adjustment_account_id:
521
+ type: string
522
+ view_serial_number:
523
+ $ref: "#/components/schemas/SerialNumber"
524
+ type:
525
+ type: string
526
+ enum: ["invoice", "payment", "return_invoice", "refund", "adjustment"]
527
+ amount:
528
+ type: number
529
+ account_index:
530
+ type: number
531
+ is_linked_txn:
532
+ type: boolean
533
+ is_original:
534
+ type: boolean
535
+ required:
536
+ - amount