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.
- package/changelog.md +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +38 -0
- package/lib/types/index.d.ts +462 -198
- package/lib/types/index.js +2 -1
- 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 +1175 -223
|
@@ -0,0 +1,379 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Activity Storecheck API
|
|
4
|
+
description: API for managing activity storecheck records
|
|
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: Activity Storecheck
|
|
18
|
+
description: Operations related to activity storecheck management
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/activity-storecheck:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Activity Storecheck
|
|
25
|
+
summary: Get all activity storecheck records
|
|
26
|
+
description: Retrieve a list of all activity storecheck 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 activity storecheck 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/ActivityStorecheck"
|
|
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
|
+
- Activity Storecheck
|
|
98
|
+
summary: Create a new activity storecheck record
|
|
99
|
+
description: Create a new activity storecheck record with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/ActivityStorecheckInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Activity storecheck record 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/ActivityStorecheck"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/activity-storecheck/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Activity Storecheck
|
|
130
|
+
summary: Get activity storecheck record by ID
|
|
131
|
+
description: Retrieve a specific activity storecheck record by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Activity storecheck record ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Activity storecheck record 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/ActivityStorecheck"
|
|
152
|
+
"404":
|
|
153
|
+
description: Activity storecheck record not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Activity Storecheck
|
|
161
|
+
summary: Update activity storecheck record
|
|
162
|
+
description: Update an existing activity storecheck record with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: Activity storecheck record ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/ActivityStorecheckInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: Activity storecheck record 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/ActivityStorecheck"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: Activity storecheck record not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Activity Storecheck
|
|
200
|
+
summary: Delete activity storecheck record
|
|
201
|
+
description: Delete an existing activity storecheck record
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: Activity storecheck record ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: Activity storecheck record 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: Activity storecheck record deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: Activity storecheck record not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
components:
|
|
231
|
+
schemas:
|
|
232
|
+
ActivityStorecheck:
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
_id:
|
|
236
|
+
type: string
|
|
237
|
+
description: Unique identifier for the activity storecheck record
|
|
238
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
239
|
+
client:
|
|
240
|
+
type: string
|
|
241
|
+
description: Client identifier
|
|
242
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
243
|
+
rep:
|
|
244
|
+
type: string
|
|
245
|
+
description: Sales representative identifier
|
|
246
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
247
|
+
template:
|
|
248
|
+
type: string
|
|
249
|
+
description: Storecheck template identifier
|
|
250
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
251
|
+
date:
|
|
252
|
+
type: string
|
|
253
|
+
format: date-time
|
|
254
|
+
description: Date and time of the storecheck activity
|
|
255
|
+
example: "2023-01-15T10:30:00Z"
|
|
256
|
+
location:
|
|
257
|
+
type: object
|
|
258
|
+
properties:
|
|
259
|
+
latitude:
|
|
260
|
+
type: number
|
|
261
|
+
format: double
|
|
262
|
+
description: Latitude coordinate
|
|
263
|
+
example: 40.7128
|
|
264
|
+
longitude:
|
|
265
|
+
type: number
|
|
266
|
+
format: double
|
|
267
|
+
description: Longitude coordinate
|
|
268
|
+
example: -74.0060
|
|
269
|
+
responses:
|
|
270
|
+
type: array
|
|
271
|
+
items:
|
|
272
|
+
type: object
|
|
273
|
+
properties:
|
|
274
|
+
questionId:
|
|
275
|
+
type: string
|
|
276
|
+
description: Question identifier
|
|
277
|
+
answer:
|
|
278
|
+
type: string
|
|
279
|
+
description: Answer to the question
|
|
280
|
+
photos:
|
|
281
|
+
type: array
|
|
282
|
+
items:
|
|
283
|
+
type: string
|
|
284
|
+
description: Photo URLs
|
|
285
|
+
status:
|
|
286
|
+
type: string
|
|
287
|
+
enum: [draft, submitted, approved, rejected]
|
|
288
|
+
default: draft
|
|
289
|
+
description: Status of the storecheck activity
|
|
290
|
+
notes:
|
|
291
|
+
type: string
|
|
292
|
+
description: Additional notes
|
|
293
|
+
createdAt:
|
|
294
|
+
type: string
|
|
295
|
+
format: date-time
|
|
296
|
+
description: Record creation timestamp
|
|
297
|
+
example: "2023-01-15T08:00:00Z"
|
|
298
|
+
updatedAt:
|
|
299
|
+
type: string
|
|
300
|
+
format: date-time
|
|
301
|
+
description: Record last update timestamp
|
|
302
|
+
example: "2023-01-15T10:30:00Z"
|
|
303
|
+
required:
|
|
304
|
+
- client
|
|
305
|
+
- rep
|
|
306
|
+
- template
|
|
307
|
+
- date
|
|
308
|
+
|
|
309
|
+
ActivityStorecheckInput:
|
|
310
|
+
type: object
|
|
311
|
+
properties:
|
|
312
|
+
client:
|
|
313
|
+
type: string
|
|
314
|
+
description: Client identifier
|
|
315
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
316
|
+
rep:
|
|
317
|
+
type: string
|
|
318
|
+
description: Sales representative identifier
|
|
319
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
320
|
+
template:
|
|
321
|
+
type: string
|
|
322
|
+
description: Storecheck template identifier
|
|
323
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
324
|
+
date:
|
|
325
|
+
type: string
|
|
326
|
+
format: date-time
|
|
327
|
+
description: Date and time of the storecheck activity
|
|
328
|
+
example: "2023-01-15T10:30:00Z"
|
|
329
|
+
location:
|
|
330
|
+
type: object
|
|
331
|
+
properties:
|
|
332
|
+
latitude:
|
|
333
|
+
type: number
|
|
334
|
+
format: double
|
|
335
|
+
description: Latitude coordinate
|
|
336
|
+
example: 40.7128
|
|
337
|
+
longitude:
|
|
338
|
+
type: number
|
|
339
|
+
format: double
|
|
340
|
+
description: Longitude coordinate
|
|
341
|
+
example: -74.0060
|
|
342
|
+
responses:
|
|
343
|
+
type: array
|
|
344
|
+
items:
|
|
345
|
+
type: object
|
|
346
|
+
properties:
|
|
347
|
+
questionId:
|
|
348
|
+
type: string
|
|
349
|
+
description: Question identifier
|
|
350
|
+
answer:
|
|
351
|
+
type: string
|
|
352
|
+
description: Answer to the question
|
|
353
|
+
photos:
|
|
354
|
+
type: array
|
|
355
|
+
items:
|
|
356
|
+
type: string
|
|
357
|
+
description: Photo URLs
|
|
358
|
+
status:
|
|
359
|
+
type: string
|
|
360
|
+
enum: [draft, submitted, approved, rejected]
|
|
361
|
+
default: draft
|
|
362
|
+
description: Status of the storecheck activity
|
|
363
|
+
notes:
|
|
364
|
+
type: string
|
|
365
|
+
description: Additional notes
|
|
366
|
+
required:
|
|
367
|
+
- client
|
|
368
|
+
- rep
|
|
369
|
+
- template
|
|
370
|
+
- date
|
|
371
|
+
|
|
372
|
+
securitySchemes:
|
|
373
|
+
ApiKeyAuth:
|
|
374
|
+
type: apiKey
|
|
375
|
+
in: header
|
|
376
|
+
name: api-key
|
|
377
|
+
|
|
378
|
+
security:
|
|
379
|
+
- ApiKeyAuth: []
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Adjust Account
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Adjust Account endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/adjust-account:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find account adjustments
|
|
12
|
+
operationId: findAccountAdjustments
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
properties:
|
|
19
|
+
_id:
|
|
20
|
+
oneOf:
|
|
21
|
+
- type: array
|
|
22
|
+
items:
|
|
23
|
+
type: string
|
|
24
|
+
- type: string
|
|
25
|
+
search:
|
|
26
|
+
type: string
|
|
27
|
+
client:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
rep:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
type:
|
|
40
|
+
type: string
|
|
41
|
+
enum: [credit, debit]
|
|
42
|
+
from_date:
|
|
43
|
+
type: string
|
|
44
|
+
format: date-time
|
|
45
|
+
to_date:
|
|
46
|
+
type: string
|
|
47
|
+
format: date-time
|
|
48
|
+
from_updatedAt:
|
|
49
|
+
type: number
|
|
50
|
+
from__id:
|
|
51
|
+
type: string
|
|
52
|
+
to__id:
|
|
53
|
+
type: string
|
|
54
|
+
sortBy:
|
|
55
|
+
type: array
|
|
56
|
+
items:
|
|
57
|
+
type: object
|
|
58
|
+
properties:
|
|
59
|
+
field:
|
|
60
|
+
type: string
|
|
61
|
+
enum: [_id, createdAt, updatedAt, amount]
|
|
62
|
+
type:
|
|
63
|
+
type: string
|
|
64
|
+
enum: [asc, desc]
|
|
65
|
+
description: Query parameters for filtering account adjustments
|
|
66
|
+
responses:
|
|
67
|
+
"200":
|
|
68
|
+
description: A list of account adjustments
|
|
69
|
+
content:
|
|
70
|
+
application/json:
|
|
71
|
+
schema:
|
|
72
|
+
$ref: "#/components/schemas/AdjustAccountFindResult"
|
|
73
|
+
post:
|
|
74
|
+
summary: Create an account adjustment
|
|
75
|
+
operationId: createAccountAdjustment
|
|
76
|
+
requestBody:
|
|
77
|
+
required: true
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: "#/components/schemas/AdjustAccountCreateBody"
|
|
82
|
+
responses:
|
|
83
|
+
"201":
|
|
84
|
+
description: Account adjustment created
|
|
85
|
+
content:
|
|
86
|
+
application/json:
|
|
87
|
+
schema:
|
|
88
|
+
$ref: "#/components/schemas/AdjustAccountCreateResult"
|
|
89
|
+
/adjust-account/{id}:
|
|
90
|
+
get:
|
|
91
|
+
summary: Get an account adjustment by ID
|
|
92
|
+
operationId: getAccountAdjustment
|
|
93
|
+
parameters:
|
|
94
|
+
- in: path
|
|
95
|
+
name: id
|
|
96
|
+
required: true
|
|
97
|
+
schema:
|
|
98
|
+
type: string
|
|
99
|
+
responses:
|
|
100
|
+
"200":
|
|
101
|
+
description: Account adjustment details
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/AdjustAccountGetResult"
|
|
106
|
+
components:
|
|
107
|
+
schemas:
|
|
108
|
+
AdjustAccountFindResult:
|
|
109
|
+
type: object
|
|
110
|
+
description: Result of finding account adjustments
|
|
111
|
+
properties:
|
|
112
|
+
data:
|
|
113
|
+
type: array
|
|
114
|
+
items:
|
|
115
|
+
$ref: "#/components/schemas/AdjustAccountSchema"
|
|
116
|
+
total_result:
|
|
117
|
+
type: number
|
|
118
|
+
description: Total number of account adjustments
|
|
119
|
+
current_count:
|
|
120
|
+
type: number
|
|
121
|
+
description: Count of account adjustments in current page
|
|
122
|
+
total_pages:
|
|
123
|
+
type: number
|
|
124
|
+
description: Total number of pages
|
|
125
|
+
current_page:
|
|
126
|
+
type: number
|
|
127
|
+
description: Current page number
|
|
128
|
+
per_page:
|
|
129
|
+
type: number
|
|
130
|
+
description: Number of account adjustments per page
|
|
131
|
+
AdjustAccountSchema:
|
|
132
|
+
type: object
|
|
133
|
+
description: Account adjustment schema
|
|
134
|
+
properties:
|
|
135
|
+
_id:
|
|
136
|
+
type: string
|
|
137
|
+
description: Unique identifier for the account adjustment
|
|
138
|
+
client:
|
|
139
|
+
type: string
|
|
140
|
+
description: Client ID whose account is being adjusted
|
|
141
|
+
rep:
|
|
142
|
+
type: string
|
|
143
|
+
description: Representative ID who made the adjustment
|
|
144
|
+
type:
|
|
145
|
+
type: string
|
|
146
|
+
enum: [credit, debit]
|
|
147
|
+
description: Type of adjustment (credit increases balance, debit decreases)
|
|
148
|
+
amount:
|
|
149
|
+
type: number
|
|
150
|
+
description: Adjustment amount
|
|
151
|
+
reason:
|
|
152
|
+
type: string
|
|
153
|
+
description: Reason for the adjustment
|
|
154
|
+
reference:
|
|
155
|
+
type: string
|
|
156
|
+
description: Reference number or document
|
|
157
|
+
description:
|
|
158
|
+
type: string
|
|
159
|
+
description: Detailed description of the adjustment
|
|
160
|
+
previousBalance:
|
|
161
|
+
type: number
|
|
162
|
+
description: Account balance before adjustment
|
|
163
|
+
newBalance:
|
|
164
|
+
type: number
|
|
165
|
+
description: Account balance after adjustment
|
|
166
|
+
adjustmentDate:
|
|
167
|
+
type: string
|
|
168
|
+
format: date-time
|
|
169
|
+
description: Date when adjustment was made
|
|
170
|
+
approvedBy:
|
|
171
|
+
type: string
|
|
172
|
+
description: ID of user who approved the adjustment
|
|
173
|
+
approvalDate:
|
|
174
|
+
type: string
|
|
175
|
+
format: date-time
|
|
176
|
+
description: Date when adjustment was approved
|
|
177
|
+
integration_meta:
|
|
178
|
+
type: object
|
|
179
|
+
additionalProperties: true
|
|
180
|
+
description: Integration metadata
|
|
181
|
+
company_namespace:
|
|
182
|
+
type: array
|
|
183
|
+
items:
|
|
184
|
+
type: string
|
|
185
|
+
description: Company namespaces
|
|
186
|
+
createdAt:
|
|
187
|
+
type: string
|
|
188
|
+
format: date-time
|
|
189
|
+
description: Creation timestamp
|
|
190
|
+
updatedAt:
|
|
191
|
+
type: string
|
|
192
|
+
format: date-time
|
|
193
|
+
description: Last update timestamp
|
|
194
|
+
__v:
|
|
195
|
+
type: number
|
|
196
|
+
description: Version number
|
|
197
|
+
AdjustAccountCreateBody:
|
|
198
|
+
type: object
|
|
199
|
+
description: Body for creating an account adjustment
|
|
200
|
+
required:
|
|
201
|
+
- client
|
|
202
|
+
- type
|
|
203
|
+
- amount
|
|
204
|
+
- reason
|
|
205
|
+
properties:
|
|
206
|
+
client:
|
|
207
|
+
type: string
|
|
208
|
+
description: Client ID whose account is being adjusted
|
|
209
|
+
rep:
|
|
210
|
+
type: string
|
|
211
|
+
description: Representative ID who made the adjustment
|
|
212
|
+
type:
|
|
213
|
+
type: string
|
|
214
|
+
enum: [credit, debit]
|
|
215
|
+
description: Type of adjustment (credit increases balance, debit decreases)
|
|
216
|
+
amount:
|
|
217
|
+
type: number
|
|
218
|
+
description: Adjustment amount
|
|
219
|
+
reason:
|
|
220
|
+
type: string
|
|
221
|
+
description: Reason for the adjustment
|
|
222
|
+
reference:
|
|
223
|
+
type: string
|
|
224
|
+
description: Reference number or document
|
|
225
|
+
description:
|
|
226
|
+
type: string
|
|
227
|
+
description: Detailed description of the adjustment
|
|
228
|
+
adjustmentDate:
|
|
229
|
+
type: string
|
|
230
|
+
format: date-time
|
|
231
|
+
description: Date when adjustment was made
|
|
232
|
+
integration_meta:
|
|
233
|
+
type: object
|
|
234
|
+
additionalProperties: true
|
|
235
|
+
description: Integration metadata
|
|
236
|
+
AdjustAccountCreateResult:
|
|
237
|
+
$ref: "#/components/schemas/AdjustAccountSchema"
|
|
238
|
+
description: Result of creating an account adjustment
|
|
239
|
+
AdjustAccountGetResult:
|
|
240
|
+
$ref: "#/components/schemas/AdjustAccountSchema"
|
|
241
|
+
description: Result of getting an account adjustment
|