repzo 1.0.155 → 1.0.157
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/lib/index.d.ts +1 -2
- package/lib/index.js +1 -1
- package/lib/types/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/index.ts +4890 -0
- package/src/oas/activity-ai-sales-order.yaml +623 -0
- package/src/oas/activity-feedback-v2.yaml +753 -0
- package/src/oas/activity-feedback.yaml +645 -0
- package/src/oas/activity-storecheck.yaml +379 -0
- package/src/oas/adjust-account.yaml +241 -0
- package/src/oas/adjust-inventory.yaml +133 -0
- package/src/oas/approval-request.yaml +211 -0
- package/src/oas/approvals.yaml +176 -0
- package/src/oas/asset-part-receival.yaml +591 -0
- package/src/oas/asset-part-transfer.yaml +618 -0
- package/src/oas/asset-part-type.yaml +383 -0
- package/src/oas/asset-part-unit.yaml +722 -0
- package/src/oas/asset-part.yaml +485 -0
- package/src/oas/asset-type.yaml +180 -0
- package/src/oas/asset-unit.yaml +705 -0
- package/src/oas/asset.yaml +204 -0
- package/src/oas/banks.yaml +168 -0
- package/src/oas/bankslists.yaml +168 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/checks.yaml +247 -0
- package/src/oas/client-channel.yaml +480 -0
- package/src/oas/client-contact.yaml +665 -0
- package/src/oas/client-location.yaml +687 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/contract-installment.yaml +740 -0
- package/src/oas/contract.yaml +210 -0
- package/src/oas/custom-list-item.yaml +168 -0
- package/src/oas/custom-list.yaml +168 -0
- package/src/oas/custom-status.yaml +168 -0
- package/src/oas/day.yaml +246 -0
- package/src/oas/feedback-options.yaml +802 -0
- package/src/oas/fullinvoices.yaml +584 -0
- package/src/oas/integration-action-log.yaml +361 -0
- package/src/oas/integration-app.yaml +303 -0
- package/src/oas/integration-command-log.yaml +381 -0
- package/src/oas/inventory-adjustment-reason.yaml +165 -0
- package/src/oas/inventory.yaml +64 -0
- package/src/oas/mail-unsubscribe.yaml +463 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media-storage.yaml +329 -0
- package/src/oas/media.yaml +472 -0
- package/src/oas/msl-products.yaml +180 -0
- package/src/oas/msl.yaml +186 -0
- package/src/oas/ocr-invoice-job-group.yaml +528 -0
- package/src/oas/ocr-invoice-job-page.yaml +602 -0
- package/src/oas/ocr-invoice-job-template.yaml +628 -0
- package/src/oas/ocr-invoice-job.yaml +603 -0
- package/src/oas/patch-action.yaml +421 -0
- package/src/oas/payment-terms.yaml +235 -0
- package/src/oas/payments.yaml +536 -0
- package/src/oas/pricelist-item.yaml +369 -0
- package/src/oas/pricelist.yaml +287 -0
- package/src/oas/product-group.yaml +278 -0
- package/src/oas/product-modifiers-group.yaml +524 -0
- package/src/oas/product.yaml +578 -0
- package/src/oas/proforma.yaml +180 -0
- package/src/oas/quick-convert-to-pdf.yaml +95 -0
- package/src/oas/receiving-material.yaml +336 -0
- package/src/oas/refund.yaml +281 -0
- package/src/oas/rep-balance-summary.yaml +135 -0
- package/src/oas/rep.yaml +1824 -0
- package/src/oas/return-asset-part-unit.yaml +573 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/safe-invoice-serial-counter.yaml +525 -0
- package/src/oas/settings.yaml +123 -0
- package/src/oas/settlement.yaml +505 -0
- package/src/oas/speciality.yaml +447 -0
- package/src/oas/store-asset-part-unit.yaml +658 -0
- package/src/oas/storecheck-template.yaml +415 -0
- package/src/oas/subcategory.yaml +355 -0
- package/src/oas/supplier.yaml +183 -0
- package/src/oas/svix-integration.yaml +335 -0
- package/src/oas/tag.yaml +272 -0
- package/src/oas/tax.yaml +303 -0
- package/src/oas/team.yaml +268 -0
- package/src/oas/transfer.yaml +347 -0
- package/src/oas/update-integration-meta.yaml +387 -0
- package/src/oas/variant.yaml +569 -0
- package/src/oas/visit.yaml +174 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/oas/workorder-category.yaml +751 -0
- package/src/oas/workorder-portal-link.yaml +811 -0
- package/src/oas/workorder-portal.yaml +650 -0
- package/src/oas/workorder-request.yaml +193 -0
- package/src/oas/workorder.yaml +204 -0
- package/src/types/index.ts +2 -1
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Patch Action API
|
|
4
|
+
description: API for managing patch actions
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
contact:
|
|
7
|
+
name: Repzo
|
|
8
|
+
url: https://repzo.com
|
|
9
|
+
|
|
10
|
+
servers:
|
|
11
|
+
- url: https://sv.api.repzo.me
|
|
12
|
+
description: Production server
|
|
13
|
+
- url: https://staging.sv.api.repzo.me
|
|
14
|
+
description: Staging server
|
|
15
|
+
|
|
16
|
+
tags:
|
|
17
|
+
- name: Patch Action
|
|
18
|
+
description: Operations related to patch action management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/patch-action:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Patch Action
|
|
25
|
+
summary: Get all patch action records
|
|
26
|
+
description: Retrieve a list of all patch action records with optional filtering and pagination
|
|
27
|
+
parameters:
|
|
28
|
+
- name: limit
|
|
29
|
+
in: query
|
|
30
|
+
description: Maximum number of records to return
|
|
31
|
+
required: false
|
|
32
|
+
schema:
|
|
33
|
+
type: integer
|
|
34
|
+
minimum: 1
|
|
35
|
+
maximum: 100
|
|
36
|
+
default: 50
|
|
37
|
+
- name: offset
|
|
38
|
+
in: query
|
|
39
|
+
description: Number of records to skip for pagination
|
|
40
|
+
required: false
|
|
41
|
+
schema:
|
|
42
|
+
type: integer
|
|
43
|
+
minimum: 0
|
|
44
|
+
default: 0
|
|
45
|
+
- name: sort
|
|
46
|
+
in: query
|
|
47
|
+
description: Field to sort by
|
|
48
|
+
required: false
|
|
49
|
+
schema:
|
|
50
|
+
type: string
|
|
51
|
+
- name: order
|
|
52
|
+
in: query
|
|
53
|
+
description: Sort order (asc or desc)
|
|
54
|
+
required: false
|
|
55
|
+
schema:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
default: desc
|
|
59
|
+
- name: filter
|
|
60
|
+
in: query
|
|
61
|
+
description: Filter conditions in JSON format
|
|
62
|
+
required: false
|
|
63
|
+
schema:
|
|
64
|
+
type: string
|
|
65
|
+
- name: search
|
|
66
|
+
in: query
|
|
67
|
+
description: Search term for text fields
|
|
68
|
+
required: false
|
|
69
|
+
schema:
|
|
70
|
+
type: string
|
|
71
|
+
responses:
|
|
72
|
+
"200":
|
|
73
|
+
description: List of patch action records retrieved successfully
|
|
74
|
+
content:
|
|
75
|
+
application/json:
|
|
76
|
+
schema:
|
|
77
|
+
type: object
|
|
78
|
+
properties:
|
|
79
|
+
success:
|
|
80
|
+
type: boolean
|
|
81
|
+
example: true
|
|
82
|
+
data:
|
|
83
|
+
type: array
|
|
84
|
+
items:
|
|
85
|
+
$ref: "#/components/schemas/PatchAction"
|
|
86
|
+
total:
|
|
87
|
+
type: integer
|
|
88
|
+
description: Total number of records
|
|
89
|
+
"400":
|
|
90
|
+
description: Bad request
|
|
91
|
+
"401":
|
|
92
|
+
description: Unauthorized
|
|
93
|
+
"500":
|
|
94
|
+
description: Internal server error
|
|
95
|
+
post:
|
|
96
|
+
tags:
|
|
97
|
+
- Patch Action
|
|
98
|
+
summary: Create a new patch action
|
|
99
|
+
description: Create a new patch action with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/PatchActionInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Patch action created successfully
|
|
109
|
+
content:
|
|
110
|
+
application/json:
|
|
111
|
+
schema:
|
|
112
|
+
type: object
|
|
113
|
+
properties:
|
|
114
|
+
success:
|
|
115
|
+
type: boolean
|
|
116
|
+
example: true
|
|
117
|
+
data:
|
|
118
|
+
$ref: "#/components/schemas/PatchAction"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/patch-action/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Patch Action
|
|
130
|
+
summary: Get patch action by ID
|
|
131
|
+
description: Retrieve a specific patch action by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Patch action ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Patch action retrieved successfully
|
|
142
|
+
content:
|
|
143
|
+
application/json:
|
|
144
|
+
schema:
|
|
145
|
+
type: object
|
|
146
|
+
properties:
|
|
147
|
+
success:
|
|
148
|
+
type: boolean
|
|
149
|
+
example: true
|
|
150
|
+
data:
|
|
151
|
+
$ref: "#/components/schemas/PatchAction"
|
|
152
|
+
"404":
|
|
153
|
+
description: Patch action not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Patch Action
|
|
161
|
+
summary: Update patch action
|
|
162
|
+
description: Update an existing patch action with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: Patch action ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/PatchActionInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: Patch action updated successfully
|
|
179
|
+
content:
|
|
180
|
+
application/json:
|
|
181
|
+
schema:
|
|
182
|
+
type: object
|
|
183
|
+
properties:
|
|
184
|
+
success:
|
|
185
|
+
type: boolean
|
|
186
|
+
example: true
|
|
187
|
+
data:
|
|
188
|
+
$ref: "#/components/schemas/PatchAction"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: Patch action not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Patch Action
|
|
200
|
+
summary: Delete patch action
|
|
201
|
+
description: Delete an existing patch action
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: Patch action ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: Patch action deleted successfully
|
|
212
|
+
content:
|
|
213
|
+
application/json:
|
|
214
|
+
schema:
|
|
215
|
+
type: object
|
|
216
|
+
properties:
|
|
217
|
+
success:
|
|
218
|
+
type: boolean
|
|
219
|
+
example: true
|
|
220
|
+
message:
|
|
221
|
+
type: string
|
|
222
|
+
example: Patch action deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: Patch action not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
/patch-action/execute/{id}:
|
|
231
|
+
post:
|
|
232
|
+
tags:
|
|
233
|
+
- Patch Action
|
|
234
|
+
summary: Execute patch action
|
|
235
|
+
description: Execute a specific patch action by its ID
|
|
236
|
+
parameters:
|
|
237
|
+
- name: id
|
|
238
|
+
in: path
|
|
239
|
+
required: true
|
|
240
|
+
description: Patch action ID
|
|
241
|
+
schema:
|
|
242
|
+
type: string
|
|
243
|
+
responses:
|
|
244
|
+
"200":
|
|
245
|
+
description: Patch action executed successfully
|
|
246
|
+
content:
|
|
247
|
+
application/json:
|
|
248
|
+
schema:
|
|
249
|
+
type: object
|
|
250
|
+
properties:
|
|
251
|
+
success:
|
|
252
|
+
type: boolean
|
|
253
|
+
example: true
|
|
254
|
+
data:
|
|
255
|
+
type: object
|
|
256
|
+
properties:
|
|
257
|
+
executionId:
|
|
258
|
+
type: string
|
|
259
|
+
description: Execution ID for tracking
|
|
260
|
+
status:
|
|
261
|
+
type: string
|
|
262
|
+
enum: [queued, running, completed, failed]
|
|
263
|
+
"404":
|
|
264
|
+
description: Patch action not found
|
|
265
|
+
"401":
|
|
266
|
+
description: Unauthorized
|
|
267
|
+
"500":
|
|
268
|
+
description: Internal server error
|
|
269
|
+
|
|
270
|
+
components:
|
|
271
|
+
schemas:
|
|
272
|
+
PatchAction:
|
|
273
|
+
type: object
|
|
274
|
+
properties:
|
|
275
|
+
_id:
|
|
276
|
+
type: string
|
|
277
|
+
description: Unique identifier for the patch action
|
|
278
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
279
|
+
name:
|
|
280
|
+
type: string
|
|
281
|
+
description: Name of the patch action
|
|
282
|
+
example: "Update Product Prices"
|
|
283
|
+
description:
|
|
284
|
+
type: string
|
|
285
|
+
description: Description of what the patch action does
|
|
286
|
+
targetEntity:
|
|
287
|
+
type: string
|
|
288
|
+
description: The entity type this patch targets
|
|
289
|
+
example: "product"
|
|
290
|
+
conditions:
|
|
291
|
+
type: object
|
|
292
|
+
additionalProperties: true
|
|
293
|
+
description: Conditions that must be met for the patch to apply
|
|
294
|
+
patches:
|
|
295
|
+
type: array
|
|
296
|
+
items:
|
|
297
|
+
type: object
|
|
298
|
+
properties:
|
|
299
|
+
field:
|
|
300
|
+
type: string
|
|
301
|
+
description: Field to patch
|
|
302
|
+
operation:
|
|
303
|
+
type: string
|
|
304
|
+
enum: [set, unset, add, remove, multiply, divide]
|
|
305
|
+
description: Operation to perform
|
|
306
|
+
value:
|
|
307
|
+
description: Value for the operation
|
|
308
|
+
batchSize:
|
|
309
|
+
type: integer
|
|
310
|
+
minimum: 1
|
|
311
|
+
maximum: 1000
|
|
312
|
+
default: 100
|
|
313
|
+
description: Number of records to process in each batch
|
|
314
|
+
status:
|
|
315
|
+
type: string
|
|
316
|
+
enum: [draft, ready, running, completed, failed, cancelled]
|
|
317
|
+
default: draft
|
|
318
|
+
description: Status of the patch action
|
|
319
|
+
executionHistory:
|
|
320
|
+
type: array
|
|
321
|
+
items:
|
|
322
|
+
type: object
|
|
323
|
+
properties:
|
|
324
|
+
executionId:
|
|
325
|
+
type: string
|
|
326
|
+
startTime:
|
|
327
|
+
type: string
|
|
328
|
+
format: date-time
|
|
329
|
+
endTime:
|
|
330
|
+
type: string
|
|
331
|
+
format: date-time
|
|
332
|
+
status:
|
|
333
|
+
type: string
|
|
334
|
+
enum: [running, completed, failed, cancelled]
|
|
335
|
+
processedCount:
|
|
336
|
+
type: integer
|
|
337
|
+
errorCount:
|
|
338
|
+
type: integer
|
|
339
|
+
errors:
|
|
340
|
+
type: array
|
|
341
|
+
items:
|
|
342
|
+
type: string
|
|
343
|
+
metadata:
|
|
344
|
+
type: object
|
|
345
|
+
additionalProperties: true
|
|
346
|
+
description: Additional metadata
|
|
347
|
+
createdAt:
|
|
348
|
+
type: string
|
|
349
|
+
format: date-time
|
|
350
|
+
description: Record creation timestamp
|
|
351
|
+
example: "2023-01-15T08:00:00Z"
|
|
352
|
+
updatedAt:
|
|
353
|
+
type: string
|
|
354
|
+
format: date-time
|
|
355
|
+
description: Record last update timestamp
|
|
356
|
+
example: "2023-01-15T10:30:00Z"
|
|
357
|
+
required:
|
|
358
|
+
- name
|
|
359
|
+
- targetEntity
|
|
360
|
+
- patches
|
|
361
|
+
|
|
362
|
+
PatchActionInput:
|
|
363
|
+
type: object
|
|
364
|
+
properties:
|
|
365
|
+
name:
|
|
366
|
+
type: string
|
|
367
|
+
description: Name of the patch action
|
|
368
|
+
example: "Update Product Prices"
|
|
369
|
+
description:
|
|
370
|
+
type: string
|
|
371
|
+
description: Description of what the patch action does
|
|
372
|
+
targetEntity:
|
|
373
|
+
type: string
|
|
374
|
+
description: The entity type this patch targets
|
|
375
|
+
example: "product"
|
|
376
|
+
conditions:
|
|
377
|
+
type: object
|
|
378
|
+
additionalProperties: true
|
|
379
|
+
description: Conditions that must be met for the patch to apply
|
|
380
|
+
patches:
|
|
381
|
+
type: array
|
|
382
|
+
items:
|
|
383
|
+
type: object
|
|
384
|
+
properties:
|
|
385
|
+
field:
|
|
386
|
+
type: string
|
|
387
|
+
description: Field to patch
|
|
388
|
+
operation:
|
|
389
|
+
type: string
|
|
390
|
+
enum: [set, unset, add, remove, multiply, divide]
|
|
391
|
+
description: Operation to perform
|
|
392
|
+
value:
|
|
393
|
+
description: Value for the operation
|
|
394
|
+
batchSize:
|
|
395
|
+
type: integer
|
|
396
|
+
minimum: 1
|
|
397
|
+
maximum: 1000
|
|
398
|
+
default: 100
|
|
399
|
+
description: Number of records to process in each batch
|
|
400
|
+
status:
|
|
401
|
+
type: string
|
|
402
|
+
enum: [draft, ready, running, completed, failed, cancelled]
|
|
403
|
+
default: draft
|
|
404
|
+
description: Status of the patch action
|
|
405
|
+
metadata:
|
|
406
|
+
type: object
|
|
407
|
+
additionalProperties: true
|
|
408
|
+
description: Additional metadata
|
|
409
|
+
required:
|
|
410
|
+
- name
|
|
411
|
+
- targetEntity
|
|
412
|
+
- patches
|
|
413
|
+
|
|
414
|
+
securitySchemes:
|
|
415
|
+
ApiKeyAuth:
|
|
416
|
+
type: apiKey
|
|
417
|
+
in: header
|
|
418
|
+
name: api-key
|
|
419
|
+
|
|
420
|
+
security:
|
|
421
|
+
- ApiKeyAuth: []
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Payment Terms
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Payment Terms endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/paymentterms:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find payment terms
|
|
12
|
+
operationId: findPaymentTerms
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering payment terms
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of payment terms
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/PaymentTermFindResult"
|
|
26
|
+
post:
|
|
27
|
+
summary: Create a payment term
|
|
28
|
+
operationId: createPaymentTerm
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: "#/components/schemas/PaymentTermCreateBody"
|
|
35
|
+
responses:
|
|
36
|
+
"201":
|
|
37
|
+
description: Payment term created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: "#/components/schemas/PaymentTermCreateResult"
|
|
42
|
+
/paymentterms/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get a payment term by ID
|
|
45
|
+
operationId: getPaymentTerm
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
"200":
|
|
54
|
+
description: Payment term details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: "#/components/schemas/PaymentTermGetResult"
|
|
59
|
+
put:
|
|
60
|
+
summary: Update a payment term
|
|
61
|
+
operationId: updatePaymentTerm
|
|
62
|
+
parameters:
|
|
63
|
+
- in: path
|
|
64
|
+
name: id
|
|
65
|
+
required: true
|
|
66
|
+
schema:
|
|
67
|
+
type: string
|
|
68
|
+
requestBody:
|
|
69
|
+
required: true
|
|
70
|
+
content:
|
|
71
|
+
application/json:
|
|
72
|
+
schema:
|
|
73
|
+
$ref: "#/components/schemas/PaymentTermUpdateBody"
|
|
74
|
+
responses:
|
|
75
|
+
"200":
|
|
76
|
+
description: Payment term updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: "#/components/schemas/PaymentTermUpdateResult"
|
|
81
|
+
delete:
|
|
82
|
+
summary: Remove a payment term
|
|
83
|
+
operationId: removePaymentTerm
|
|
84
|
+
parameters:
|
|
85
|
+
- in: path
|
|
86
|
+
name: id
|
|
87
|
+
required: true
|
|
88
|
+
schema:
|
|
89
|
+
type: string
|
|
90
|
+
responses:
|
|
91
|
+
"200":
|
|
92
|
+
description: Payment term removed
|
|
93
|
+
content:
|
|
94
|
+
application/json:
|
|
95
|
+
schema:
|
|
96
|
+
$ref: "#/components/schemas/PaymentTermRemoveResult"
|
|
97
|
+
components:
|
|
98
|
+
schemas:
|
|
99
|
+
PaymentTermFindResult:
|
|
100
|
+
type: object
|
|
101
|
+
properties:
|
|
102
|
+
success:
|
|
103
|
+
type: boolean
|
|
104
|
+
result:
|
|
105
|
+
type: array
|
|
106
|
+
items:
|
|
107
|
+
$ref: "#/components/schemas/PaymentTerm"
|
|
108
|
+
pagination:
|
|
109
|
+
$ref: "#/components/schemas/Pagination"
|
|
110
|
+
PaymentTermCreateBody:
|
|
111
|
+
type: object
|
|
112
|
+
required:
|
|
113
|
+
- name
|
|
114
|
+
properties:
|
|
115
|
+
name:
|
|
116
|
+
type: string
|
|
117
|
+
description: Name of the payment term
|
|
118
|
+
description:
|
|
119
|
+
type: string
|
|
120
|
+
description: Description of the payment term
|
|
121
|
+
days:
|
|
122
|
+
type: integer
|
|
123
|
+
description: Number of days for payment
|
|
124
|
+
discount_percentage:
|
|
125
|
+
type: number
|
|
126
|
+
format: float
|
|
127
|
+
description: Discount percentage if paid early
|
|
128
|
+
discount_days:
|
|
129
|
+
type: integer
|
|
130
|
+
description: Number of days for discount eligibility
|
|
131
|
+
is_active:
|
|
132
|
+
type: boolean
|
|
133
|
+
description: Whether the payment term is active
|
|
134
|
+
default: true
|
|
135
|
+
PaymentTermCreateResult:
|
|
136
|
+
type: object
|
|
137
|
+
properties:
|
|
138
|
+
success:
|
|
139
|
+
type: boolean
|
|
140
|
+
result:
|
|
141
|
+
$ref: "#/components/schemas/PaymentTerm"
|
|
142
|
+
PaymentTermGetResult:
|
|
143
|
+
type: object
|
|
144
|
+
properties:
|
|
145
|
+
success:
|
|
146
|
+
type: boolean
|
|
147
|
+
result:
|
|
148
|
+
$ref: "#/components/schemas/PaymentTerm"
|
|
149
|
+
PaymentTermUpdateBody:
|
|
150
|
+
type: object
|
|
151
|
+
properties:
|
|
152
|
+
name:
|
|
153
|
+
type: string
|
|
154
|
+
description: Name of the payment term
|
|
155
|
+
description:
|
|
156
|
+
type: string
|
|
157
|
+
description: Description of the payment term
|
|
158
|
+
days:
|
|
159
|
+
type: integer
|
|
160
|
+
description: Number of days for payment
|
|
161
|
+
discount_percentage:
|
|
162
|
+
type: number
|
|
163
|
+
format: float
|
|
164
|
+
description: Discount percentage if paid early
|
|
165
|
+
discount_days:
|
|
166
|
+
type: integer
|
|
167
|
+
description: Number of days for discount eligibility
|
|
168
|
+
is_active:
|
|
169
|
+
type: boolean
|
|
170
|
+
description: Whether the payment term is active
|
|
171
|
+
PaymentTermUpdateResult:
|
|
172
|
+
type: object
|
|
173
|
+
properties:
|
|
174
|
+
success:
|
|
175
|
+
type: boolean
|
|
176
|
+
result:
|
|
177
|
+
$ref: "#/components/schemas/PaymentTerm"
|
|
178
|
+
PaymentTermRemoveResult:
|
|
179
|
+
type: object
|
|
180
|
+
properties:
|
|
181
|
+
success:
|
|
182
|
+
type: boolean
|
|
183
|
+
result:
|
|
184
|
+
type: object
|
|
185
|
+
PaymentTerm:
|
|
186
|
+
type: object
|
|
187
|
+
properties:
|
|
188
|
+
_id:
|
|
189
|
+
type: string
|
|
190
|
+
description: Unique identifier
|
|
191
|
+
name:
|
|
192
|
+
type: string
|
|
193
|
+
description: Name of the payment term
|
|
194
|
+
description:
|
|
195
|
+
type: string
|
|
196
|
+
description: Description of the payment term
|
|
197
|
+
days:
|
|
198
|
+
type: integer
|
|
199
|
+
description: Number of days for payment
|
|
200
|
+
discount_percentage:
|
|
201
|
+
type: number
|
|
202
|
+
format: float
|
|
203
|
+
description: Discount percentage if paid early
|
|
204
|
+
discount_days:
|
|
205
|
+
type: integer
|
|
206
|
+
description: Number of days for discount eligibility
|
|
207
|
+
is_active:
|
|
208
|
+
type: boolean
|
|
209
|
+
description: Whether the payment term is active
|
|
210
|
+
created_at:
|
|
211
|
+
type: string
|
|
212
|
+
format: date-time
|
|
213
|
+
description: Creation timestamp
|
|
214
|
+
updated_at:
|
|
215
|
+
type: string
|
|
216
|
+
format: date-time
|
|
217
|
+
description: Last update timestamp
|
|
218
|
+
company_id:
|
|
219
|
+
type: string
|
|
220
|
+
description: Company identifier
|
|
221
|
+
Pagination:
|
|
222
|
+
type: object
|
|
223
|
+
properties:
|
|
224
|
+
total:
|
|
225
|
+
type: integer
|
|
226
|
+
description: Total number of items
|
|
227
|
+
page:
|
|
228
|
+
type: integer
|
|
229
|
+
description: Current page number
|
|
230
|
+
per_page:
|
|
231
|
+
type: integer
|
|
232
|
+
description: Items per page
|
|
233
|
+
total_pages:
|
|
234
|
+
type: integer
|
|
235
|
+
description: Total number of pages
|