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,180 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Proforma
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Proforma endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/proforma:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find proformas
|
|
12
|
+
operationId: findProformas
|
|
13
|
+
parameters:
|
|
14
|
+
- in: query
|
|
15
|
+
name: params
|
|
16
|
+
schema:
|
|
17
|
+
type: object
|
|
18
|
+
description: Query parameters for filtering proformas
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: A list of proformas
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/ProformaFindResult"
|
|
26
|
+
post:
|
|
27
|
+
summary: Create a proforma
|
|
28
|
+
operationId: createProforma
|
|
29
|
+
requestBody:
|
|
30
|
+
required: true
|
|
31
|
+
content:
|
|
32
|
+
application/json:
|
|
33
|
+
schema:
|
|
34
|
+
$ref: "#/components/schemas/ProformaCreateBody"
|
|
35
|
+
responses:
|
|
36
|
+
"201":
|
|
37
|
+
description: Proforma created
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: "#/components/schemas/ProformaCreateResult"
|
|
42
|
+
/proforma/{id}:
|
|
43
|
+
get:
|
|
44
|
+
summary: Get a proforma by ID
|
|
45
|
+
operationId: getProforma
|
|
46
|
+
parameters:
|
|
47
|
+
- in: path
|
|
48
|
+
name: id
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
type: string
|
|
52
|
+
responses:
|
|
53
|
+
"200":
|
|
54
|
+
description: Proforma details
|
|
55
|
+
content:
|
|
56
|
+
application/json:
|
|
57
|
+
schema:
|
|
58
|
+
$ref: "#/components/schemas/ProformaGetResult"
|
|
59
|
+
put:
|
|
60
|
+
summary: Update a proforma
|
|
61
|
+
operationId: updateProforma
|
|
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/ProformaUpdateBody"
|
|
74
|
+
responses:
|
|
75
|
+
"200":
|
|
76
|
+
description: Proforma updated
|
|
77
|
+
content:
|
|
78
|
+
application/json:
|
|
79
|
+
schema:
|
|
80
|
+
$ref: "#/components/schemas/ProformaUpdateResult"
|
|
81
|
+
components:
|
|
82
|
+
schemas:
|
|
83
|
+
ProformaFindResult:
|
|
84
|
+
type: object
|
|
85
|
+
properties:
|
|
86
|
+
data:
|
|
87
|
+
type: array
|
|
88
|
+
items:
|
|
89
|
+
$ref: "#/components/schemas/Proforma"
|
|
90
|
+
meta:
|
|
91
|
+
type: object
|
|
92
|
+
ProformaCreateBody:
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
serial:
|
|
96
|
+
type: string
|
|
97
|
+
client:
|
|
98
|
+
type: string
|
|
99
|
+
rep:
|
|
100
|
+
type: string
|
|
101
|
+
warehouse:
|
|
102
|
+
type: string
|
|
103
|
+
items:
|
|
104
|
+
type: array
|
|
105
|
+
items:
|
|
106
|
+
type: object
|
|
107
|
+
total:
|
|
108
|
+
type: number
|
|
109
|
+
status:
|
|
110
|
+
type: string
|
|
111
|
+
validUntil:
|
|
112
|
+
type: string
|
|
113
|
+
format: date-time
|
|
114
|
+
ProformaCreateResult:
|
|
115
|
+
type: object
|
|
116
|
+
properties:
|
|
117
|
+
data:
|
|
118
|
+
$ref: "#/components/schemas/Proforma"
|
|
119
|
+
ProformaGetResult:
|
|
120
|
+
type: object
|
|
121
|
+
properties:
|
|
122
|
+
data:
|
|
123
|
+
$ref: "#/components/schemas/Proforma"
|
|
124
|
+
ProformaUpdateBody:
|
|
125
|
+
type: object
|
|
126
|
+
properties:
|
|
127
|
+
serial:
|
|
128
|
+
type: string
|
|
129
|
+
client:
|
|
130
|
+
type: string
|
|
131
|
+
rep:
|
|
132
|
+
type: string
|
|
133
|
+
warehouse:
|
|
134
|
+
type: string
|
|
135
|
+
items:
|
|
136
|
+
type: array
|
|
137
|
+
items:
|
|
138
|
+
type: object
|
|
139
|
+
total:
|
|
140
|
+
type: number
|
|
141
|
+
status:
|
|
142
|
+
type: string
|
|
143
|
+
validUntil:
|
|
144
|
+
type: string
|
|
145
|
+
format: date-time
|
|
146
|
+
ProformaUpdateResult:
|
|
147
|
+
type: object
|
|
148
|
+
properties:
|
|
149
|
+
data:
|
|
150
|
+
$ref: "#/components/schemas/Proforma"
|
|
151
|
+
Proforma:
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
_id:
|
|
155
|
+
type: string
|
|
156
|
+
serial:
|
|
157
|
+
type: string
|
|
158
|
+
client:
|
|
159
|
+
type: string
|
|
160
|
+
rep:
|
|
161
|
+
type: string
|
|
162
|
+
warehouse:
|
|
163
|
+
type: string
|
|
164
|
+
items:
|
|
165
|
+
type: array
|
|
166
|
+
items:
|
|
167
|
+
type: object
|
|
168
|
+
total:
|
|
169
|
+
type: number
|
|
170
|
+
status:
|
|
171
|
+
type: string
|
|
172
|
+
validUntil:
|
|
173
|
+
type: string
|
|
174
|
+
format: date-time
|
|
175
|
+
createdAt:
|
|
176
|
+
type: string
|
|
177
|
+
format: date-time
|
|
178
|
+
updatedAt:
|
|
179
|
+
type: string
|
|
180
|
+
format: date-time
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Quick Convert to PDF
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Quick Convert to PDF endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/quick-convert-to-pdf:
|
|
10
|
+
post:
|
|
11
|
+
summary: Convert document to PDF
|
|
12
|
+
operationId: quickConvertToPdf
|
|
13
|
+
requestBody:
|
|
14
|
+
required: true
|
|
15
|
+
content:
|
|
16
|
+
application/json:
|
|
17
|
+
schema:
|
|
18
|
+
$ref: "#/components/schemas/QuickConvertToPdfBody"
|
|
19
|
+
responses:
|
|
20
|
+
"200":
|
|
21
|
+
description: PDF conversion successful
|
|
22
|
+
content:
|
|
23
|
+
application/json:
|
|
24
|
+
schema:
|
|
25
|
+
$ref: "#/components/schemas/QuickConvertToPdfResult"
|
|
26
|
+
components:
|
|
27
|
+
schemas:
|
|
28
|
+
QuickConvertToPdfBody:
|
|
29
|
+
type: object
|
|
30
|
+
description: Body for converting document to PDF
|
|
31
|
+
required:
|
|
32
|
+
- documentType
|
|
33
|
+
- documentId
|
|
34
|
+
properties:
|
|
35
|
+
documentType:
|
|
36
|
+
type: string
|
|
37
|
+
enum: [invoice, proforma, order, quote, receipt]
|
|
38
|
+
description: Type of document to convert
|
|
39
|
+
documentId:
|
|
40
|
+
type: string
|
|
41
|
+
description: ID of the document to convert
|
|
42
|
+
template:
|
|
43
|
+
type: string
|
|
44
|
+
description: Template to use for PDF generation
|
|
45
|
+
options:
|
|
46
|
+
type: object
|
|
47
|
+
properties:
|
|
48
|
+
includeHeader:
|
|
49
|
+
type: boolean
|
|
50
|
+
description: Whether to include header in PDF
|
|
51
|
+
includeFooter:
|
|
52
|
+
type: boolean
|
|
53
|
+
description: Whether to include footer in PDF
|
|
54
|
+
watermark:
|
|
55
|
+
type: string
|
|
56
|
+
description: Watermark text to add to PDF
|
|
57
|
+
orientation:
|
|
58
|
+
type: string
|
|
59
|
+
enum: [portrait, landscape]
|
|
60
|
+
description: Page orientation
|
|
61
|
+
format:
|
|
62
|
+
type: string
|
|
63
|
+
enum: [A4, A3, Letter]
|
|
64
|
+
description: Page format
|
|
65
|
+
description: PDF generation options
|
|
66
|
+
language:
|
|
67
|
+
type: string
|
|
68
|
+
description: Language for the PDF content
|
|
69
|
+
QuickConvertToPdfResult:
|
|
70
|
+
type: object
|
|
71
|
+
description: Result of PDF conversion
|
|
72
|
+
properties:
|
|
73
|
+
success:
|
|
74
|
+
type: boolean
|
|
75
|
+
description: Whether conversion was successful
|
|
76
|
+
pdfUrl:
|
|
77
|
+
type: string
|
|
78
|
+
description: URL to download the generated PDF
|
|
79
|
+
filename:
|
|
80
|
+
type: string
|
|
81
|
+
description: Generated PDF filename
|
|
82
|
+
size:
|
|
83
|
+
type: number
|
|
84
|
+
description: PDF file size in bytes
|
|
85
|
+
pages:
|
|
86
|
+
type: number
|
|
87
|
+
description: Number of pages in the PDF
|
|
88
|
+
generatedAt:
|
|
89
|
+
type: string
|
|
90
|
+
format: date-time
|
|
91
|
+
description: When the PDF was generated
|
|
92
|
+
expiresAt:
|
|
93
|
+
type: string
|
|
94
|
+
format: date-time
|
|
95
|
+
description: When the PDF download link expires
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Receiving Material
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Receiving Material endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/receiving-material:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find receiving materials
|
|
12
|
+
operationId: findReceivingMaterials
|
|
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
|
+
warehouse:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
supplier:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
rep:
|
|
40
|
+
oneOf:
|
|
41
|
+
- type: array
|
|
42
|
+
items:
|
|
43
|
+
type: string
|
|
44
|
+
- type: string
|
|
45
|
+
status:
|
|
46
|
+
type: string
|
|
47
|
+
enum: [pending, received, cancelled]
|
|
48
|
+
from_date:
|
|
49
|
+
type: string
|
|
50
|
+
format: date-time
|
|
51
|
+
to_date:
|
|
52
|
+
type: string
|
|
53
|
+
format: date-time
|
|
54
|
+
from_updatedAt:
|
|
55
|
+
type: number
|
|
56
|
+
from__id:
|
|
57
|
+
type: string
|
|
58
|
+
to__id:
|
|
59
|
+
type: string
|
|
60
|
+
sortBy:
|
|
61
|
+
type: array
|
|
62
|
+
items:
|
|
63
|
+
type: object
|
|
64
|
+
properties:
|
|
65
|
+
field:
|
|
66
|
+
type: string
|
|
67
|
+
enum: [_id, createdAt, updatedAt, receiptDate]
|
|
68
|
+
type:
|
|
69
|
+
type: string
|
|
70
|
+
enum: [asc, desc]
|
|
71
|
+
description: Query parameters for filtering receiving materials
|
|
72
|
+
responses:
|
|
73
|
+
"200":
|
|
74
|
+
description: A list of receiving materials
|
|
75
|
+
content:
|
|
76
|
+
application/json:
|
|
77
|
+
schema:
|
|
78
|
+
$ref: "#/components/schemas/ReceivingMaterialFindResult"
|
|
79
|
+
post:
|
|
80
|
+
summary: Create a receiving material
|
|
81
|
+
operationId: createReceivingMaterial
|
|
82
|
+
requestBody:
|
|
83
|
+
required: true
|
|
84
|
+
content:
|
|
85
|
+
application/json:
|
|
86
|
+
schema:
|
|
87
|
+
$ref: "#/components/schemas/ReceivingMaterialCreateBody"
|
|
88
|
+
responses:
|
|
89
|
+
"201":
|
|
90
|
+
description: Receiving material created
|
|
91
|
+
content:
|
|
92
|
+
application/json:
|
|
93
|
+
schema:
|
|
94
|
+
$ref: "#/components/schemas/ReceivingMaterialCreateResult"
|
|
95
|
+
/receiving-material/{id}:
|
|
96
|
+
get:
|
|
97
|
+
summary: Get a receiving material by ID
|
|
98
|
+
operationId: getReceivingMaterial
|
|
99
|
+
parameters:
|
|
100
|
+
- in: path
|
|
101
|
+
name: id
|
|
102
|
+
required: true
|
|
103
|
+
schema:
|
|
104
|
+
type: string
|
|
105
|
+
responses:
|
|
106
|
+
"200":
|
|
107
|
+
description: Receiving material details
|
|
108
|
+
content:
|
|
109
|
+
application/json:
|
|
110
|
+
schema:
|
|
111
|
+
$ref: "#/components/schemas/ReceivingMaterialGetResult"
|
|
112
|
+
put:
|
|
113
|
+
summary: Update a receiving material
|
|
114
|
+
operationId: updateReceivingMaterial
|
|
115
|
+
parameters:
|
|
116
|
+
- in: path
|
|
117
|
+
name: id
|
|
118
|
+
required: true
|
|
119
|
+
schema:
|
|
120
|
+
type: string
|
|
121
|
+
requestBody:
|
|
122
|
+
required: true
|
|
123
|
+
content:
|
|
124
|
+
application/json:
|
|
125
|
+
schema:
|
|
126
|
+
$ref: "#/components/schemas/ReceivingMaterialUpdateBody"
|
|
127
|
+
responses:
|
|
128
|
+
"200":
|
|
129
|
+
description: Receiving material updated
|
|
130
|
+
content:
|
|
131
|
+
application/json:
|
|
132
|
+
schema:
|
|
133
|
+
$ref: "#/components/schemas/ReceivingMaterialUpdateResult"
|
|
134
|
+
components:
|
|
135
|
+
schemas:
|
|
136
|
+
ReceivingMaterialFindResult:
|
|
137
|
+
type: object
|
|
138
|
+
description: Result of finding receiving materials
|
|
139
|
+
properties:
|
|
140
|
+
data:
|
|
141
|
+
type: array
|
|
142
|
+
items:
|
|
143
|
+
$ref: "#/components/schemas/ReceivingMaterialSchema"
|
|
144
|
+
total_result:
|
|
145
|
+
type: number
|
|
146
|
+
description: Total number of receiving materials
|
|
147
|
+
current_count:
|
|
148
|
+
type: number
|
|
149
|
+
description: Count of receiving materials in current page
|
|
150
|
+
total_pages:
|
|
151
|
+
type: number
|
|
152
|
+
description: Total number of pages
|
|
153
|
+
current_page:
|
|
154
|
+
type: number
|
|
155
|
+
description: Current page number
|
|
156
|
+
per_page:
|
|
157
|
+
type: number
|
|
158
|
+
description: Number of receiving materials per page
|
|
159
|
+
ReceivingMaterialSchema:
|
|
160
|
+
type: object
|
|
161
|
+
description: Receiving material schema
|
|
162
|
+
properties:
|
|
163
|
+
_id:
|
|
164
|
+
type: string
|
|
165
|
+
description: Unique identifier for the receiving material
|
|
166
|
+
warehouse:
|
|
167
|
+
type: string
|
|
168
|
+
description: Warehouse ID where materials are received
|
|
169
|
+
supplier:
|
|
170
|
+
type: string
|
|
171
|
+
description: Supplier ID providing the materials
|
|
172
|
+
rep:
|
|
173
|
+
type: string
|
|
174
|
+
description: Representative ID who received the materials
|
|
175
|
+
receiptNumber:
|
|
176
|
+
type: string
|
|
177
|
+
description: Receipt number
|
|
178
|
+
receiptDate:
|
|
179
|
+
type: string
|
|
180
|
+
format: date-time
|
|
181
|
+
description: Date when materials were received
|
|
182
|
+
items:
|
|
183
|
+
type: array
|
|
184
|
+
items:
|
|
185
|
+
type: object
|
|
186
|
+
properties:
|
|
187
|
+
product:
|
|
188
|
+
type: string
|
|
189
|
+
description: Product ID
|
|
190
|
+
variant:
|
|
191
|
+
type: string
|
|
192
|
+
description: Product variant ID
|
|
193
|
+
expectedQuantity:
|
|
194
|
+
type: number
|
|
195
|
+
description: Expected quantity to receive
|
|
196
|
+
receivedQuantity:
|
|
197
|
+
type: number
|
|
198
|
+
description: Actually received quantity
|
|
199
|
+
unitCost:
|
|
200
|
+
type: number
|
|
201
|
+
description: Unit cost of the item
|
|
202
|
+
totalCost:
|
|
203
|
+
type: number
|
|
204
|
+
description: Total cost for this item
|
|
205
|
+
description: List of items received
|
|
206
|
+
totalAmount:
|
|
207
|
+
type: number
|
|
208
|
+
description: Total amount of the receipt
|
|
209
|
+
status:
|
|
210
|
+
type: string
|
|
211
|
+
enum: [pending, received, cancelled]
|
|
212
|
+
description: Status of the receiving material
|
|
213
|
+
notes:
|
|
214
|
+
type: string
|
|
215
|
+
description: Additional notes
|
|
216
|
+
integration_meta:
|
|
217
|
+
type: object
|
|
218
|
+
additionalProperties: true
|
|
219
|
+
description: Integration metadata
|
|
220
|
+
company_namespace:
|
|
221
|
+
type: array
|
|
222
|
+
items:
|
|
223
|
+
type: string
|
|
224
|
+
description: Company namespaces
|
|
225
|
+
createdAt:
|
|
226
|
+
type: string
|
|
227
|
+
format: date-time
|
|
228
|
+
description: Creation timestamp
|
|
229
|
+
updatedAt:
|
|
230
|
+
type: string
|
|
231
|
+
format: date-time
|
|
232
|
+
description: Last update timestamp
|
|
233
|
+
__v:
|
|
234
|
+
type: number
|
|
235
|
+
description: Version number
|
|
236
|
+
ReceivingMaterialCreateBody:
|
|
237
|
+
type: object
|
|
238
|
+
description: Body for creating a receiving material
|
|
239
|
+
required:
|
|
240
|
+
- warehouse
|
|
241
|
+
- supplier
|
|
242
|
+
- items
|
|
243
|
+
properties:
|
|
244
|
+
warehouse:
|
|
245
|
+
type: string
|
|
246
|
+
description: Warehouse ID where materials are received
|
|
247
|
+
supplier:
|
|
248
|
+
type: string
|
|
249
|
+
description: Supplier ID providing the materials
|
|
250
|
+
rep:
|
|
251
|
+
type: string
|
|
252
|
+
description: Representative ID who received the materials
|
|
253
|
+
receiptNumber:
|
|
254
|
+
type: string
|
|
255
|
+
description: Receipt number
|
|
256
|
+
receiptDate:
|
|
257
|
+
type: string
|
|
258
|
+
format: date-time
|
|
259
|
+
description: Date when materials were received
|
|
260
|
+
items:
|
|
261
|
+
type: array
|
|
262
|
+
items:
|
|
263
|
+
type: object
|
|
264
|
+
properties:
|
|
265
|
+
product:
|
|
266
|
+
type: string
|
|
267
|
+
description: Product ID
|
|
268
|
+
variant:
|
|
269
|
+
type: string
|
|
270
|
+
description: Product variant ID
|
|
271
|
+
expectedQuantity:
|
|
272
|
+
type: number
|
|
273
|
+
description: Expected quantity to receive
|
|
274
|
+
receivedQuantity:
|
|
275
|
+
type: number
|
|
276
|
+
description: Actually received quantity
|
|
277
|
+
unitCost:
|
|
278
|
+
type: number
|
|
279
|
+
description: Unit cost of the item
|
|
280
|
+
description: List of items received
|
|
281
|
+
notes:
|
|
282
|
+
type: string
|
|
283
|
+
description: Additional notes
|
|
284
|
+
integration_meta:
|
|
285
|
+
type: object
|
|
286
|
+
additionalProperties: true
|
|
287
|
+
description: Integration metadata
|
|
288
|
+
ReceivingMaterialCreateResult:
|
|
289
|
+
$ref: "#/components/schemas/ReceivingMaterialSchema"
|
|
290
|
+
description: Result of creating a receiving material
|
|
291
|
+
ReceivingMaterialGetResult:
|
|
292
|
+
$ref: "#/components/schemas/ReceivingMaterialSchema"
|
|
293
|
+
description: Result of getting a receiving material
|
|
294
|
+
ReceivingMaterialUpdateBody:
|
|
295
|
+
type: object
|
|
296
|
+
description: Body for updating a receiving material
|
|
297
|
+
properties:
|
|
298
|
+
receiptDate:
|
|
299
|
+
type: string
|
|
300
|
+
format: date-time
|
|
301
|
+
description: Date when materials were received
|
|
302
|
+
items:
|
|
303
|
+
type: array
|
|
304
|
+
items:
|
|
305
|
+
type: object
|
|
306
|
+
properties:
|
|
307
|
+
product:
|
|
308
|
+
type: string
|
|
309
|
+
description: Product ID
|
|
310
|
+
variant:
|
|
311
|
+
type: string
|
|
312
|
+
description: Product variant ID
|
|
313
|
+
expectedQuantity:
|
|
314
|
+
type: number
|
|
315
|
+
description: Expected quantity to receive
|
|
316
|
+
receivedQuantity:
|
|
317
|
+
type: number
|
|
318
|
+
description: Actually received quantity
|
|
319
|
+
unitCost:
|
|
320
|
+
type: number
|
|
321
|
+
description: Unit cost of the item
|
|
322
|
+
description: List of items received
|
|
323
|
+
status:
|
|
324
|
+
type: string
|
|
325
|
+
enum: [pending, received, cancelled]
|
|
326
|
+
description: Status of the receiving material
|
|
327
|
+
notes:
|
|
328
|
+
type: string
|
|
329
|
+
description: Additional notes
|
|
330
|
+
integration_meta:
|
|
331
|
+
type: object
|
|
332
|
+
additionalProperties: true
|
|
333
|
+
description: Integration metadata
|
|
334
|
+
ReceivingMaterialUpdateResult:
|
|
335
|
+
$ref: "#/components/schemas/ReceivingMaterialSchema"
|
|
336
|
+
description: Result of updating a receiving material
|