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,573 @@
|
|
|
1
|
+
openapi: 3.0.0
|
|
2
|
+
info:
|
|
3
|
+
title: Return Asset Part Unit API
|
|
4
|
+
description: API for managing returns of asset part units
|
|
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: Return Asset Part Unit
|
|
18
|
+
description: Operations related to returning asset part units
|
|
19
|
+
|
|
20
|
+
paths:
|
|
21
|
+
/return-asset-part-unit:
|
|
22
|
+
get:
|
|
23
|
+
tags:
|
|
24
|
+
- Return Asset Part Unit
|
|
25
|
+
summary: Get all asset part unit returns
|
|
26
|
+
description: Retrieve a list of all asset part unit returns 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 asset part unit returns 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/ReturnAssetPartUnit"
|
|
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
|
+
- Return Asset Part Unit
|
|
98
|
+
summary: Create a new asset part unit return
|
|
99
|
+
description: Create a new asset part unit return with the provided data
|
|
100
|
+
requestBody:
|
|
101
|
+
required: true
|
|
102
|
+
content:
|
|
103
|
+
application/json:
|
|
104
|
+
schema:
|
|
105
|
+
$ref: "#/components/schemas/ReturnAssetPartUnitInput"
|
|
106
|
+
responses:
|
|
107
|
+
"201":
|
|
108
|
+
description: Asset part unit return 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/ReturnAssetPartUnit"
|
|
119
|
+
"400":
|
|
120
|
+
description: Bad request
|
|
121
|
+
"401":
|
|
122
|
+
description: Unauthorized
|
|
123
|
+
"500":
|
|
124
|
+
description: Internal server error
|
|
125
|
+
|
|
126
|
+
/return-asset-part-unit/{id}:
|
|
127
|
+
get:
|
|
128
|
+
tags:
|
|
129
|
+
- Return Asset Part Unit
|
|
130
|
+
summary: Get asset part unit return by ID
|
|
131
|
+
description: Retrieve a specific asset part unit return by its ID
|
|
132
|
+
parameters:
|
|
133
|
+
- name: id
|
|
134
|
+
in: path
|
|
135
|
+
required: true
|
|
136
|
+
description: Asset part unit return ID
|
|
137
|
+
schema:
|
|
138
|
+
type: string
|
|
139
|
+
responses:
|
|
140
|
+
"200":
|
|
141
|
+
description: Asset part unit return 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/ReturnAssetPartUnit"
|
|
152
|
+
"404":
|
|
153
|
+
description: Asset part unit return not found
|
|
154
|
+
"401":
|
|
155
|
+
description: Unauthorized
|
|
156
|
+
"500":
|
|
157
|
+
description: Internal server error
|
|
158
|
+
put:
|
|
159
|
+
tags:
|
|
160
|
+
- Return Asset Part Unit
|
|
161
|
+
summary: Update asset part unit return
|
|
162
|
+
description: Update an existing asset part unit return with new data
|
|
163
|
+
parameters:
|
|
164
|
+
- name: id
|
|
165
|
+
in: path
|
|
166
|
+
required: true
|
|
167
|
+
description: Asset part unit return ID
|
|
168
|
+
schema:
|
|
169
|
+
type: string
|
|
170
|
+
requestBody:
|
|
171
|
+
required: true
|
|
172
|
+
content:
|
|
173
|
+
application/json:
|
|
174
|
+
schema:
|
|
175
|
+
$ref: "#/components/schemas/ReturnAssetPartUnitInput"
|
|
176
|
+
responses:
|
|
177
|
+
"200":
|
|
178
|
+
description: Asset part unit return 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/ReturnAssetPartUnit"
|
|
189
|
+
"400":
|
|
190
|
+
description: Bad request
|
|
191
|
+
"404":
|
|
192
|
+
description: Asset part unit return not found
|
|
193
|
+
"401":
|
|
194
|
+
description: Unauthorized
|
|
195
|
+
"500":
|
|
196
|
+
description: Internal server error
|
|
197
|
+
delete:
|
|
198
|
+
tags:
|
|
199
|
+
- Return Asset Part Unit
|
|
200
|
+
summary: Delete asset part unit return
|
|
201
|
+
description: Delete an existing asset part unit return
|
|
202
|
+
parameters:
|
|
203
|
+
- name: id
|
|
204
|
+
in: path
|
|
205
|
+
required: true
|
|
206
|
+
description: Asset part unit return ID
|
|
207
|
+
schema:
|
|
208
|
+
type: string
|
|
209
|
+
responses:
|
|
210
|
+
"200":
|
|
211
|
+
description: Asset part unit return 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: Asset part unit return deleted successfully
|
|
223
|
+
"404":
|
|
224
|
+
description: Asset part unit return not found
|
|
225
|
+
"401":
|
|
226
|
+
description: Unauthorized
|
|
227
|
+
"500":
|
|
228
|
+
description: Internal server error
|
|
229
|
+
|
|
230
|
+
components:
|
|
231
|
+
schemas:
|
|
232
|
+
ReturnAssetPartUnit:
|
|
233
|
+
type: object
|
|
234
|
+
properties:
|
|
235
|
+
_id:
|
|
236
|
+
type: string
|
|
237
|
+
description: Unique identifier for the return
|
|
238
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b3"
|
|
239
|
+
returnNumber:
|
|
240
|
+
type: string
|
|
241
|
+
description: Unique return number
|
|
242
|
+
example: "RET-2023-001"
|
|
243
|
+
assetPartUnit:
|
|
244
|
+
type: string
|
|
245
|
+
description: Asset part unit ID being returned
|
|
246
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
247
|
+
serialNumber:
|
|
248
|
+
type: string
|
|
249
|
+
description: Serial number of the part unit
|
|
250
|
+
example: "SN-EP001-2023-001"
|
|
251
|
+
returnType:
|
|
252
|
+
type: string
|
|
253
|
+
enum: [warranty, defective, excess, end-of-lease, maintenance]
|
|
254
|
+
description: Type of return
|
|
255
|
+
example: "defective"
|
|
256
|
+
returnReason:
|
|
257
|
+
type: string
|
|
258
|
+
description: Reason for return
|
|
259
|
+
example: "Part failed after 30 days of use"
|
|
260
|
+
returnedBy:
|
|
261
|
+
type: string
|
|
262
|
+
description: User who initiated the return
|
|
263
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
264
|
+
authorizedBy:
|
|
265
|
+
type: string
|
|
266
|
+
description: User who authorized the return
|
|
267
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
268
|
+
returnDate:
|
|
269
|
+
type: string
|
|
270
|
+
format: date-time
|
|
271
|
+
description: Date when the return was processed
|
|
272
|
+
example: "2023-01-15T10:00:00Z"
|
|
273
|
+
requestDate:
|
|
274
|
+
type: string
|
|
275
|
+
format: date-time
|
|
276
|
+
description: Date when the return was requested
|
|
277
|
+
example: "2023-01-14T10:00:00Z"
|
|
278
|
+
originalInstallDate:
|
|
279
|
+
type: string
|
|
280
|
+
format: date-time
|
|
281
|
+
description: Original installation date
|
|
282
|
+
example: "2023-01-01T10:00:00Z"
|
|
283
|
+
originalWorkOrder:
|
|
284
|
+
type: string
|
|
285
|
+
description: Original work order ID
|
|
286
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b7"
|
|
287
|
+
originalAsset:
|
|
288
|
+
type: string
|
|
289
|
+
description: Original asset ID where it was installed
|
|
290
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b8"
|
|
291
|
+
status:
|
|
292
|
+
type: string
|
|
293
|
+
enum:
|
|
294
|
+
[
|
|
295
|
+
requested,
|
|
296
|
+
approved,
|
|
297
|
+
in-transit,
|
|
298
|
+
received,
|
|
299
|
+
processed,
|
|
300
|
+
completed,
|
|
301
|
+
rejected,
|
|
302
|
+
]
|
|
303
|
+
default: requested
|
|
304
|
+
description: Status of the return
|
|
305
|
+
condition:
|
|
306
|
+
type: string
|
|
307
|
+
enum: [new, good, fair, poor, damaged, defective]
|
|
308
|
+
description: Condition of the returned part
|
|
309
|
+
example: "defective"
|
|
310
|
+
returnLocation:
|
|
311
|
+
type: object
|
|
312
|
+
properties:
|
|
313
|
+
warehouse:
|
|
314
|
+
type: string
|
|
315
|
+
description: Warehouse where part is returned
|
|
316
|
+
section:
|
|
317
|
+
type: string
|
|
318
|
+
description: Section within warehouse
|
|
319
|
+
shelf:
|
|
320
|
+
type: string
|
|
321
|
+
description: Shelf identifier
|
|
322
|
+
position:
|
|
323
|
+
type: string
|
|
324
|
+
description: Position on shelf
|
|
325
|
+
supplier:
|
|
326
|
+
type: string
|
|
327
|
+
description: Supplier ID if returning to supplier
|
|
328
|
+
creditAmount:
|
|
329
|
+
type: number
|
|
330
|
+
format: double
|
|
331
|
+
minimum: 0
|
|
332
|
+
description: Credit amount for the return
|
|
333
|
+
currency:
|
|
334
|
+
type: string
|
|
335
|
+
description: Currency code
|
|
336
|
+
example: "USD"
|
|
337
|
+
replacementRequired:
|
|
338
|
+
type: boolean
|
|
339
|
+
default: false
|
|
340
|
+
description: Whether a replacement is required
|
|
341
|
+
replacementPartUnit:
|
|
342
|
+
type: string
|
|
343
|
+
description: Replacement part unit ID if applicable
|
|
344
|
+
warrantyStatus:
|
|
345
|
+
type: string
|
|
346
|
+
enum: [in-warranty, out-of-warranty, extended-warranty]
|
|
347
|
+
description: Warranty status at time of return
|
|
348
|
+
qualityInspection:
|
|
349
|
+
type: object
|
|
350
|
+
properties:
|
|
351
|
+
performed:
|
|
352
|
+
type: boolean
|
|
353
|
+
default: false
|
|
354
|
+
description: Whether quality inspection was performed
|
|
355
|
+
inspectedBy:
|
|
356
|
+
type: string
|
|
357
|
+
description: User who performed inspection
|
|
358
|
+
inspectionDate:
|
|
359
|
+
type: string
|
|
360
|
+
format: date-time
|
|
361
|
+
description: Inspection date
|
|
362
|
+
findings:
|
|
363
|
+
type: string
|
|
364
|
+
description: Inspection findings
|
|
365
|
+
disposition:
|
|
366
|
+
type: string
|
|
367
|
+
enum: [scrap, rework, return-to-supplier, restock]
|
|
368
|
+
description: Disposition based on inspection
|
|
369
|
+
documents:
|
|
370
|
+
type: array
|
|
371
|
+
items:
|
|
372
|
+
type: object
|
|
373
|
+
properties:
|
|
374
|
+
name:
|
|
375
|
+
type: string
|
|
376
|
+
url:
|
|
377
|
+
type: string
|
|
378
|
+
format: uri
|
|
379
|
+
type:
|
|
380
|
+
type: string
|
|
381
|
+
enum: [return-authorization, photo, inspection-report, other]
|
|
382
|
+
notes:
|
|
383
|
+
type: string
|
|
384
|
+
description: Additional notes
|
|
385
|
+
metadata:
|
|
386
|
+
type: object
|
|
387
|
+
additionalProperties: true
|
|
388
|
+
description: Additional metadata
|
|
389
|
+
createdAt:
|
|
390
|
+
type: string
|
|
391
|
+
format: date-time
|
|
392
|
+
description: Record creation timestamp
|
|
393
|
+
example: "2023-01-15T08:00:00Z"
|
|
394
|
+
updatedAt:
|
|
395
|
+
type: string
|
|
396
|
+
format: date-time
|
|
397
|
+
description: Record last update timestamp
|
|
398
|
+
example: "2023-01-15T10:30:00Z"
|
|
399
|
+
required:
|
|
400
|
+
- returnNumber
|
|
401
|
+
- assetPartUnit
|
|
402
|
+
- returnType
|
|
403
|
+
- returnReason
|
|
404
|
+
- returnedBy
|
|
405
|
+
|
|
406
|
+
ReturnAssetPartUnitInput:
|
|
407
|
+
type: object
|
|
408
|
+
properties:
|
|
409
|
+
returnNumber:
|
|
410
|
+
type: string
|
|
411
|
+
description: Unique return number
|
|
412
|
+
example: "RET-2023-001"
|
|
413
|
+
assetPartUnit:
|
|
414
|
+
type: string
|
|
415
|
+
description: Asset part unit ID being returned
|
|
416
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b4"
|
|
417
|
+
serialNumber:
|
|
418
|
+
type: string
|
|
419
|
+
description: Serial number of the part unit
|
|
420
|
+
example: "SN-EP001-2023-001"
|
|
421
|
+
returnType:
|
|
422
|
+
type: string
|
|
423
|
+
enum: [warranty, defective, excess, end-of-lease, maintenance]
|
|
424
|
+
description: Type of return
|
|
425
|
+
example: "defective"
|
|
426
|
+
returnReason:
|
|
427
|
+
type: string
|
|
428
|
+
description: Reason for return
|
|
429
|
+
example: "Part failed after 30 days of use"
|
|
430
|
+
returnedBy:
|
|
431
|
+
type: string
|
|
432
|
+
description: User who initiated the return
|
|
433
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b5"
|
|
434
|
+
authorizedBy:
|
|
435
|
+
type: string
|
|
436
|
+
description: User who authorized the return
|
|
437
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b6"
|
|
438
|
+
returnDate:
|
|
439
|
+
type: string
|
|
440
|
+
format: date-time
|
|
441
|
+
description: Date when the return was processed
|
|
442
|
+
example: "2023-01-15T10:00:00Z"
|
|
443
|
+
requestDate:
|
|
444
|
+
type: string
|
|
445
|
+
format: date-time
|
|
446
|
+
description: Date when the return was requested
|
|
447
|
+
example: "2023-01-14T10:00:00Z"
|
|
448
|
+
originalInstallDate:
|
|
449
|
+
type: string
|
|
450
|
+
format: date-time
|
|
451
|
+
description: Original installation date
|
|
452
|
+
example: "2023-01-01T10:00:00Z"
|
|
453
|
+
originalWorkOrder:
|
|
454
|
+
type: string
|
|
455
|
+
description: Original work order ID
|
|
456
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b7"
|
|
457
|
+
originalAsset:
|
|
458
|
+
type: string
|
|
459
|
+
description: Original asset ID where it was installed
|
|
460
|
+
example: "60f7b1b3e4b0e8b3f8b3f8b8"
|
|
461
|
+
status:
|
|
462
|
+
type: string
|
|
463
|
+
enum:
|
|
464
|
+
[
|
|
465
|
+
requested,
|
|
466
|
+
approved,
|
|
467
|
+
in-transit,
|
|
468
|
+
received,
|
|
469
|
+
processed,
|
|
470
|
+
completed,
|
|
471
|
+
rejected,
|
|
472
|
+
]
|
|
473
|
+
default: requested
|
|
474
|
+
description: Status of the return
|
|
475
|
+
condition:
|
|
476
|
+
type: string
|
|
477
|
+
enum: [new, good, fair, poor, damaged, defective]
|
|
478
|
+
description: Condition of the returned part
|
|
479
|
+
example: "defective"
|
|
480
|
+
returnLocation:
|
|
481
|
+
type: object
|
|
482
|
+
properties:
|
|
483
|
+
warehouse:
|
|
484
|
+
type: string
|
|
485
|
+
description: Warehouse where part is returned
|
|
486
|
+
section:
|
|
487
|
+
type: string
|
|
488
|
+
description: Section within warehouse
|
|
489
|
+
shelf:
|
|
490
|
+
type: string
|
|
491
|
+
description: Shelf identifier
|
|
492
|
+
position:
|
|
493
|
+
type: string
|
|
494
|
+
description: Position on shelf
|
|
495
|
+
supplier:
|
|
496
|
+
type: string
|
|
497
|
+
description: Supplier ID if returning to supplier
|
|
498
|
+
creditAmount:
|
|
499
|
+
type: number
|
|
500
|
+
format: double
|
|
501
|
+
minimum: 0
|
|
502
|
+
description: Credit amount for the return
|
|
503
|
+
currency:
|
|
504
|
+
type: string
|
|
505
|
+
description: Currency code
|
|
506
|
+
example: "USD"
|
|
507
|
+
replacementRequired:
|
|
508
|
+
type: boolean
|
|
509
|
+
default: false
|
|
510
|
+
description: Whether a replacement is required
|
|
511
|
+
replacementPartUnit:
|
|
512
|
+
type: string
|
|
513
|
+
description: Replacement part unit ID if applicable
|
|
514
|
+
warrantyStatus:
|
|
515
|
+
type: string
|
|
516
|
+
enum: [in-warranty, out-of-warranty, extended-warranty]
|
|
517
|
+
description: Warranty status at time of return
|
|
518
|
+
qualityInspection:
|
|
519
|
+
type: object
|
|
520
|
+
properties:
|
|
521
|
+
performed:
|
|
522
|
+
type: boolean
|
|
523
|
+
default: false
|
|
524
|
+
description: Whether quality inspection was performed
|
|
525
|
+
inspectedBy:
|
|
526
|
+
type: string
|
|
527
|
+
description: User who performed inspection
|
|
528
|
+
inspectionDate:
|
|
529
|
+
type: string
|
|
530
|
+
format: date-time
|
|
531
|
+
description: Inspection date
|
|
532
|
+
findings:
|
|
533
|
+
type: string
|
|
534
|
+
description: Inspection findings
|
|
535
|
+
disposition:
|
|
536
|
+
type: string
|
|
537
|
+
enum: [scrap, rework, return-to-supplier, restock]
|
|
538
|
+
description: Disposition based on inspection
|
|
539
|
+
documents:
|
|
540
|
+
type: array
|
|
541
|
+
items:
|
|
542
|
+
type: object
|
|
543
|
+
properties:
|
|
544
|
+
name:
|
|
545
|
+
type: string
|
|
546
|
+
url:
|
|
547
|
+
type: string
|
|
548
|
+
format: uri
|
|
549
|
+
type:
|
|
550
|
+
type: string
|
|
551
|
+
enum: [return-authorization, photo, inspection-report, other]
|
|
552
|
+
notes:
|
|
553
|
+
type: string
|
|
554
|
+
description: Additional notes
|
|
555
|
+
metadata:
|
|
556
|
+
type: object
|
|
557
|
+
additionalProperties: true
|
|
558
|
+
description: Additional metadata
|
|
559
|
+
required:
|
|
560
|
+
- returnNumber
|
|
561
|
+
- assetPartUnit
|
|
562
|
+
- returnType
|
|
563
|
+
- returnReason
|
|
564
|
+
- returnedBy
|
|
565
|
+
|
|
566
|
+
securitySchemes:
|
|
567
|
+
ApiKeyAuth:
|
|
568
|
+
type: apiKey
|
|
569
|
+
in: header
|
|
570
|
+
name: api-key
|
|
571
|
+
|
|
572
|
+
security:
|
|
573
|
+
- ApiKeyAuth: []
|