repzo 1.0.125 → 1.0.126
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 +36 -0
- package/lib/index.js +70 -0
- package/lib/types/index.d.ts +120 -0
- package/package.json +1 -1
- package/src/index.ts +94 -0
- package/src/oas/brand.yaml +246 -0
- package/src/oas/category.yaml +285 -0
- package/src/oas/client.yaml +669 -0
- package/src/oas/measureunit-family.yaml +354 -0
- package/src/oas/measureunit.yaml +366 -0
- package/src/oas/media.yaml +345 -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.yaml +578 -0
- package/src/oas/rep.yaml +410 -0
- package/src/oas/return-reason.yaml +286 -0
- package/src/oas/route.yaml +337 -0
- package/src/oas/subcategory.yaml +355 -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/variant.yaml +373 -0
- package/src/oas/warehouse.yaml +311 -0
- package/src/types/index.ts +127 -0
- package/test.ts +2 -0
package/src/oas/rep.yaml
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Rep
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Rep (Sales Representative) endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/rep:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find reps
|
|
12
|
+
operationId: findReps
|
|
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
|
+
name:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
team_id:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
password:
|
|
40
|
+
type: string
|
|
41
|
+
email:
|
|
42
|
+
type: string
|
|
43
|
+
phone:
|
|
44
|
+
type: string
|
|
45
|
+
username:
|
|
46
|
+
type: string
|
|
47
|
+
disabled:
|
|
48
|
+
type: boolean
|
|
49
|
+
role:
|
|
50
|
+
oneOf:
|
|
51
|
+
- type: array
|
|
52
|
+
items:
|
|
53
|
+
type: string
|
|
54
|
+
- type: string
|
|
55
|
+
from_updatedAt:
|
|
56
|
+
type: number
|
|
57
|
+
from__id:
|
|
58
|
+
type: string
|
|
59
|
+
to__id:
|
|
60
|
+
type: string
|
|
61
|
+
sortBy:
|
|
62
|
+
type: array
|
|
63
|
+
items:
|
|
64
|
+
type: object
|
|
65
|
+
properties:
|
|
66
|
+
field:
|
|
67
|
+
type: string
|
|
68
|
+
enum: [_id]
|
|
69
|
+
type:
|
|
70
|
+
type: string
|
|
71
|
+
enum: [asc, desc]
|
|
72
|
+
"permissions.rep_can_add_client":
|
|
73
|
+
type: boolean
|
|
74
|
+
"permissions.rep_can_edit_client":
|
|
75
|
+
type: boolean
|
|
76
|
+
description: Query parameters for filtering reps
|
|
77
|
+
responses:
|
|
78
|
+
'200':
|
|
79
|
+
description: A list of reps
|
|
80
|
+
content:
|
|
81
|
+
application/json:
|
|
82
|
+
schema:
|
|
83
|
+
$ref: '#/components/schemas/RepFindResult'
|
|
84
|
+
post:
|
|
85
|
+
summary: Create a rep
|
|
86
|
+
operationId: createRep
|
|
87
|
+
requestBody:
|
|
88
|
+
required: true
|
|
89
|
+
content:
|
|
90
|
+
application/json:
|
|
91
|
+
schema:
|
|
92
|
+
$ref: '#/components/schemas/RepCreateBody'
|
|
93
|
+
responses:
|
|
94
|
+
'201':
|
|
95
|
+
description: Rep created
|
|
96
|
+
content:
|
|
97
|
+
application/json:
|
|
98
|
+
schema:
|
|
99
|
+
$ref: '#/components/schemas/RepCreateResult'
|
|
100
|
+
/rep/{id}:
|
|
101
|
+
get:
|
|
102
|
+
summary: Get a rep by ID
|
|
103
|
+
operationId: getRep
|
|
104
|
+
parameters:
|
|
105
|
+
- in: path
|
|
106
|
+
name: id
|
|
107
|
+
required: true
|
|
108
|
+
schema:
|
|
109
|
+
type: string
|
|
110
|
+
responses:
|
|
111
|
+
'200':
|
|
112
|
+
description: Rep details
|
|
113
|
+
content:
|
|
114
|
+
application/json:
|
|
115
|
+
schema:
|
|
116
|
+
$ref: '#/components/schemas/RepGetResult'
|
|
117
|
+
put:
|
|
118
|
+
summary: Update a rep
|
|
119
|
+
operationId: updateRep
|
|
120
|
+
parameters:
|
|
121
|
+
- in: path
|
|
122
|
+
name: id
|
|
123
|
+
required: true
|
|
124
|
+
schema:
|
|
125
|
+
type: string
|
|
126
|
+
requestBody:
|
|
127
|
+
required: true
|
|
128
|
+
content:
|
|
129
|
+
application/json:
|
|
130
|
+
schema:
|
|
131
|
+
$ref: '#/components/schemas/RepUpdateBody'
|
|
132
|
+
responses:
|
|
133
|
+
'200':
|
|
134
|
+
description: Rep updated
|
|
135
|
+
content:
|
|
136
|
+
application/json:
|
|
137
|
+
schema:
|
|
138
|
+
$ref: '#/components/schemas/RepUpdateResult'
|
|
139
|
+
delete:
|
|
140
|
+
summary: Remove a rep
|
|
141
|
+
operationId: removeRep
|
|
142
|
+
parameters:
|
|
143
|
+
- in: path
|
|
144
|
+
name: id
|
|
145
|
+
required: true
|
|
146
|
+
schema:
|
|
147
|
+
type: string
|
|
148
|
+
responses:
|
|
149
|
+
'200':
|
|
150
|
+
description: Rep removed
|
|
151
|
+
content:
|
|
152
|
+
application/json:
|
|
153
|
+
schema:
|
|
154
|
+
$ref: '#/components/schemas/RepRemoveResult'
|
|
155
|
+
components:
|
|
156
|
+
schemas:
|
|
157
|
+
RepFindResult:
|
|
158
|
+
type: object
|
|
159
|
+
description: Result of finding reps
|
|
160
|
+
properties:
|
|
161
|
+
data:
|
|
162
|
+
type: array
|
|
163
|
+
items:
|
|
164
|
+
$ref: '#/components/schemas/RepSchema'
|
|
165
|
+
total_result:
|
|
166
|
+
type: number
|
|
167
|
+
description: Total number of reps
|
|
168
|
+
current_count:
|
|
169
|
+
type: number
|
|
170
|
+
description: Count of reps in current page
|
|
171
|
+
total_pages:
|
|
172
|
+
type: number
|
|
173
|
+
description: Total number of pages
|
|
174
|
+
current_page:
|
|
175
|
+
type: number
|
|
176
|
+
description: Current page number
|
|
177
|
+
per_page:
|
|
178
|
+
type: number
|
|
179
|
+
description: Number of reps per page
|
|
180
|
+
first_page_url:
|
|
181
|
+
type: string
|
|
182
|
+
description: URL for the first page
|
|
183
|
+
last_page_url:
|
|
184
|
+
type: string
|
|
185
|
+
description: URL for the last page
|
|
186
|
+
next_page_url:
|
|
187
|
+
type: string
|
|
188
|
+
nullable: true
|
|
189
|
+
description: URL for the next page
|
|
190
|
+
prev_page_url:
|
|
191
|
+
type: string
|
|
192
|
+
nullable: true
|
|
193
|
+
description: URL for the previous page
|
|
194
|
+
path:
|
|
195
|
+
type: string
|
|
196
|
+
description: Base URL path
|
|
197
|
+
RepSchema:
|
|
198
|
+
type: object
|
|
199
|
+
description: Rep schema
|
|
200
|
+
properties:
|
|
201
|
+
_id:
|
|
202
|
+
type: string
|
|
203
|
+
description: Unique identifier for the rep
|
|
204
|
+
name:
|
|
205
|
+
type: string
|
|
206
|
+
description: Name of the rep
|
|
207
|
+
email:
|
|
208
|
+
type: string
|
|
209
|
+
description: Email of the rep
|
|
210
|
+
username:
|
|
211
|
+
type: string
|
|
212
|
+
description: Username of the rep
|
|
213
|
+
phone:
|
|
214
|
+
type: string
|
|
215
|
+
description: Phone number of the rep
|
|
216
|
+
role:
|
|
217
|
+
type: string
|
|
218
|
+
description: Role of the rep
|
|
219
|
+
team_id:
|
|
220
|
+
type: string
|
|
221
|
+
description: ID of the team the rep belongs to
|
|
222
|
+
password:
|
|
223
|
+
type: string
|
|
224
|
+
description: Password for the rep account
|
|
225
|
+
disabled:
|
|
226
|
+
type: boolean
|
|
227
|
+
description: Whether the rep is disabled
|
|
228
|
+
permissions:
|
|
229
|
+
type: object
|
|
230
|
+
description: Rep permissions
|
|
231
|
+
properties:
|
|
232
|
+
rep_can_add_client:
|
|
233
|
+
type: boolean
|
|
234
|
+
description: Can rep add clients
|
|
235
|
+
rep_can_edit_client:
|
|
236
|
+
type: boolean
|
|
237
|
+
description: Can rep edit clients
|
|
238
|
+
rep_can_add_calendar:
|
|
239
|
+
type: boolean
|
|
240
|
+
description: Can rep add to calendar
|
|
241
|
+
rep_can_edit_calendar:
|
|
242
|
+
type: boolean
|
|
243
|
+
description: Can rep edit calendar
|
|
244
|
+
settings:
|
|
245
|
+
type: object
|
|
246
|
+
description: Rep settings
|
|
247
|
+
properties:
|
|
248
|
+
allowable_accuracy:
|
|
249
|
+
type: number
|
|
250
|
+
description: Allowable GPS accuracy
|
|
251
|
+
integration_meta:
|
|
252
|
+
type: object
|
|
253
|
+
additionalProperties: true
|
|
254
|
+
description: Integration metadata
|
|
255
|
+
company_namespace:
|
|
256
|
+
type: array
|
|
257
|
+
items:
|
|
258
|
+
type: string
|
|
259
|
+
description: Company namespaces
|
|
260
|
+
createdAt:
|
|
261
|
+
type: string
|
|
262
|
+
format: date-time
|
|
263
|
+
description: Creation timestamp
|
|
264
|
+
updatedAt:
|
|
265
|
+
type: string
|
|
266
|
+
format: date-time
|
|
267
|
+
description: Last update timestamp
|
|
268
|
+
__v:
|
|
269
|
+
type: number
|
|
270
|
+
description: Version number
|
|
271
|
+
RepCreateBody:
|
|
272
|
+
type: object
|
|
273
|
+
description: Body for creating a rep
|
|
274
|
+
required:
|
|
275
|
+
- name
|
|
276
|
+
- email
|
|
277
|
+
- password
|
|
278
|
+
- role
|
|
279
|
+
- company_namespace
|
|
280
|
+
properties:
|
|
281
|
+
name:
|
|
282
|
+
type: string
|
|
283
|
+
description: Name of the rep
|
|
284
|
+
email:
|
|
285
|
+
type: string
|
|
286
|
+
description: Email of the rep
|
|
287
|
+
username:
|
|
288
|
+
type: string
|
|
289
|
+
description: Username of the rep
|
|
290
|
+
phone:
|
|
291
|
+
type: string
|
|
292
|
+
description: Phone number of the rep
|
|
293
|
+
role:
|
|
294
|
+
type: string
|
|
295
|
+
description: Role of the rep
|
|
296
|
+
team_id:
|
|
297
|
+
type: string
|
|
298
|
+
description: ID of the team the rep belongs to
|
|
299
|
+
password:
|
|
300
|
+
type: string
|
|
301
|
+
description: Password for the rep account
|
|
302
|
+
disabled:
|
|
303
|
+
type: boolean
|
|
304
|
+
description: Whether the rep is disabled
|
|
305
|
+
permissions:
|
|
306
|
+
type: object
|
|
307
|
+
description: Rep permissions
|
|
308
|
+
properties:
|
|
309
|
+
rep_can_add_client:
|
|
310
|
+
type: boolean
|
|
311
|
+
description: Can rep add clients
|
|
312
|
+
rep_can_edit_client:
|
|
313
|
+
type: boolean
|
|
314
|
+
description: Can rep edit clients
|
|
315
|
+
settings:
|
|
316
|
+
type: object
|
|
317
|
+
description: Rep settings
|
|
318
|
+
properties:
|
|
319
|
+
allowable_accuracy:
|
|
320
|
+
type: number
|
|
321
|
+
description: Allowable GPS accuracy
|
|
322
|
+
integration_meta:
|
|
323
|
+
type: object
|
|
324
|
+
additionalProperties: true
|
|
325
|
+
description: Integration metadata
|
|
326
|
+
company_namespace:
|
|
327
|
+
type: array
|
|
328
|
+
items:
|
|
329
|
+
type: string
|
|
330
|
+
description: Company namespaces
|
|
331
|
+
RepCreateResult:
|
|
332
|
+
$ref: '#/components/schemas/RepSchema'
|
|
333
|
+
description: Result of creating a rep
|
|
334
|
+
RepGetResult:
|
|
335
|
+
$ref: '#/components/schemas/RepSchema'
|
|
336
|
+
description: Result of getting a rep
|
|
337
|
+
RepUpdateBody:
|
|
338
|
+
type: object
|
|
339
|
+
description: Body for updating a rep
|
|
340
|
+
properties:
|
|
341
|
+
name:
|
|
342
|
+
type: string
|
|
343
|
+
description: Name of the rep
|
|
344
|
+
email:
|
|
345
|
+
type: string
|
|
346
|
+
description: Email of the rep
|
|
347
|
+
username:
|
|
348
|
+
type: string
|
|
349
|
+
description: Username of the rep
|
|
350
|
+
phone:
|
|
351
|
+
type: string
|
|
352
|
+
description: Phone number of the rep
|
|
353
|
+
role:
|
|
354
|
+
type: string
|
|
355
|
+
description: Role of the rep
|
|
356
|
+
team_id:
|
|
357
|
+
type: string
|
|
358
|
+
description: ID of the team the rep belongs to
|
|
359
|
+
password:
|
|
360
|
+
type: string
|
|
361
|
+
description: Password for the rep account
|
|
362
|
+
disabled:
|
|
363
|
+
type: boolean
|
|
364
|
+
description: Whether the rep is disabled
|
|
365
|
+
permissions:
|
|
366
|
+
type: object
|
|
367
|
+
description: Rep permissions
|
|
368
|
+
properties:
|
|
369
|
+
rep_can_add_client:
|
|
370
|
+
type: boolean
|
|
371
|
+
description: Can rep add clients
|
|
372
|
+
rep_can_edit_client:
|
|
373
|
+
type: boolean
|
|
374
|
+
description: Can rep edit clients
|
|
375
|
+
settings:
|
|
376
|
+
type: object
|
|
377
|
+
description: Rep settings
|
|
378
|
+
properties:
|
|
379
|
+
allowable_accuracy:
|
|
380
|
+
type: number
|
|
381
|
+
description: Allowable GPS accuracy
|
|
382
|
+
integration_meta:
|
|
383
|
+
type: object
|
|
384
|
+
additionalProperties: true
|
|
385
|
+
description: Integration metadata
|
|
386
|
+
company_namespace:
|
|
387
|
+
type: array
|
|
388
|
+
items:
|
|
389
|
+
type: string
|
|
390
|
+
description: Company namespaces
|
|
391
|
+
_id:
|
|
392
|
+
type: string
|
|
393
|
+
description: Unique identifier for the rep
|
|
394
|
+
createdAt:
|
|
395
|
+
type: string
|
|
396
|
+
format: date-time
|
|
397
|
+
description: Creation timestamp
|
|
398
|
+
updatedAt:
|
|
399
|
+
type: string
|
|
400
|
+
format: date-time
|
|
401
|
+
description: Last update timestamp
|
|
402
|
+
__v:
|
|
403
|
+
type: number
|
|
404
|
+
description: Version number
|
|
405
|
+
RepUpdateResult:
|
|
406
|
+
$ref: '#/components/schemas/RepSchema'
|
|
407
|
+
description: Result of updating a rep
|
|
408
|
+
RepRemoveResult:
|
|
409
|
+
$ref: '#/components/schemas/RepSchema'
|
|
410
|
+
description: Result of removing a rep
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
openapi: 3.0.3
|
|
2
|
+
info:
|
|
3
|
+
title: Repzo API - Return Reason
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
description: OpenAPI specification for Repzo Return Reason endpoints.
|
|
6
|
+
servers:
|
|
7
|
+
- url: https://sv.api.repzo.me
|
|
8
|
+
paths:
|
|
9
|
+
/return-reason:
|
|
10
|
+
get:
|
|
11
|
+
summary: Find return reasons
|
|
12
|
+
operationId: findReturnReasons
|
|
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
|
+
name:
|
|
28
|
+
oneOf:
|
|
29
|
+
- type: array
|
|
30
|
+
items:
|
|
31
|
+
type: string
|
|
32
|
+
- type: string
|
|
33
|
+
local_name:
|
|
34
|
+
oneOf:
|
|
35
|
+
- type: array
|
|
36
|
+
items:
|
|
37
|
+
type: string
|
|
38
|
+
- type: string
|
|
39
|
+
disabled:
|
|
40
|
+
type: boolean
|
|
41
|
+
from_updatedAt:
|
|
42
|
+
type: number
|
|
43
|
+
from__id:
|
|
44
|
+
type: string
|
|
45
|
+
to__id:
|
|
46
|
+
type: string
|
|
47
|
+
sortBy:
|
|
48
|
+
type: array
|
|
49
|
+
items:
|
|
50
|
+
type: object
|
|
51
|
+
properties:
|
|
52
|
+
field:
|
|
53
|
+
type: string
|
|
54
|
+
enum: [_id]
|
|
55
|
+
type:
|
|
56
|
+
type: string
|
|
57
|
+
enum: [asc, desc]
|
|
58
|
+
description: Query parameters for filtering return reasons
|
|
59
|
+
responses:
|
|
60
|
+
'200':
|
|
61
|
+
description: A list of return reasons
|
|
62
|
+
content:
|
|
63
|
+
application/json:
|
|
64
|
+
schema:
|
|
65
|
+
$ref: '#/components/schemas/ReturnReasonFindResult'
|
|
66
|
+
post:
|
|
67
|
+
summary: Create a return reason
|
|
68
|
+
operationId: createReturnReason
|
|
69
|
+
requestBody:
|
|
70
|
+
required: true
|
|
71
|
+
content:
|
|
72
|
+
application/json:
|
|
73
|
+
schema:
|
|
74
|
+
$ref: '#/components/schemas/ReturnReasonCreateBody'
|
|
75
|
+
responses:
|
|
76
|
+
'201':
|
|
77
|
+
description: Return reason created
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: '#/components/schemas/ReturnReasonCreateResult'
|
|
82
|
+
/return-reason/{id}:
|
|
83
|
+
get:
|
|
84
|
+
summary: Get a return reason by ID
|
|
85
|
+
operationId: getReturnReason
|
|
86
|
+
parameters:
|
|
87
|
+
- in: path
|
|
88
|
+
name: id
|
|
89
|
+
required: true
|
|
90
|
+
schema:
|
|
91
|
+
type: string
|
|
92
|
+
responses:
|
|
93
|
+
'200':
|
|
94
|
+
description: Return reason details
|
|
95
|
+
content:
|
|
96
|
+
application/json:
|
|
97
|
+
schema:
|
|
98
|
+
$ref: '#/components/schemas/ReturnReasonGetResult'
|
|
99
|
+
put:
|
|
100
|
+
summary: Update a return reason
|
|
101
|
+
operationId: updateReturnReason
|
|
102
|
+
parameters:
|
|
103
|
+
- in: path
|
|
104
|
+
name: id
|
|
105
|
+
required: true
|
|
106
|
+
schema:
|
|
107
|
+
type: string
|
|
108
|
+
requestBody:
|
|
109
|
+
required: true
|
|
110
|
+
content:
|
|
111
|
+
application/json:
|
|
112
|
+
schema:
|
|
113
|
+
$ref: '#/components/schemas/ReturnReasonUpdateBody'
|
|
114
|
+
responses:
|
|
115
|
+
'200':
|
|
116
|
+
description: Return reason updated
|
|
117
|
+
content:
|
|
118
|
+
application/json:
|
|
119
|
+
schema:
|
|
120
|
+
$ref: '#/components/schemas/ReturnReasonUpdateResult'
|
|
121
|
+
delete:
|
|
122
|
+
summary: Remove a return reason
|
|
123
|
+
operationId: removeReturnReason
|
|
124
|
+
parameters:
|
|
125
|
+
- in: path
|
|
126
|
+
name: id
|
|
127
|
+
required: true
|
|
128
|
+
schema:
|
|
129
|
+
type: string
|
|
130
|
+
responses:
|
|
131
|
+
'200':
|
|
132
|
+
description: Return reason removed
|
|
133
|
+
content:
|
|
134
|
+
application/json:
|
|
135
|
+
schema:
|
|
136
|
+
$ref: '#/components/schemas/ReturnReasonRemoveResult'
|
|
137
|
+
components:
|
|
138
|
+
schemas:
|
|
139
|
+
ReturnReasonFindResult:
|
|
140
|
+
type: object
|
|
141
|
+
description: Result of finding return reasons
|
|
142
|
+
properties:
|
|
143
|
+
data:
|
|
144
|
+
type: array
|
|
145
|
+
items:
|
|
146
|
+
$ref: '#/components/schemas/ReturnReasonSchema'
|
|
147
|
+
total_result:
|
|
148
|
+
type: number
|
|
149
|
+
description: Total number of return reasons
|
|
150
|
+
current_count:
|
|
151
|
+
type: number
|
|
152
|
+
description: Count of return reasons in current page
|
|
153
|
+
total_pages:
|
|
154
|
+
type: number
|
|
155
|
+
description: Total number of pages
|
|
156
|
+
current_page:
|
|
157
|
+
type: number
|
|
158
|
+
description: Current page number
|
|
159
|
+
per_page:
|
|
160
|
+
type: number
|
|
161
|
+
description: Number of return reasons per page
|
|
162
|
+
first_page_url:
|
|
163
|
+
type: string
|
|
164
|
+
description: URL for the first page
|
|
165
|
+
last_page_url:
|
|
166
|
+
type: string
|
|
167
|
+
description: URL for the last page
|
|
168
|
+
next_page_url:
|
|
169
|
+
type: string
|
|
170
|
+
nullable: true
|
|
171
|
+
description: URL for the next page
|
|
172
|
+
prev_page_url:
|
|
173
|
+
type: string
|
|
174
|
+
nullable: true
|
|
175
|
+
description: URL for the previous page
|
|
176
|
+
path:
|
|
177
|
+
type: string
|
|
178
|
+
description: Base URL path
|
|
179
|
+
ReturnReasonSchema:
|
|
180
|
+
type: object
|
|
181
|
+
description: Return reason schema
|
|
182
|
+
properties:
|
|
183
|
+
_id:
|
|
184
|
+
type: string
|
|
185
|
+
description: Unique identifier for the return reason
|
|
186
|
+
name:
|
|
187
|
+
type: string
|
|
188
|
+
description: Name of the return reason
|
|
189
|
+
local_name:
|
|
190
|
+
type: string
|
|
191
|
+
description: Localized name of the return reason
|
|
192
|
+
disabled:
|
|
193
|
+
type: boolean
|
|
194
|
+
description: Whether the return reason is disabled
|
|
195
|
+
integration_meta:
|
|
196
|
+
type: object
|
|
197
|
+
additionalProperties: true
|
|
198
|
+
description: Integration metadata
|
|
199
|
+
company_namespace:
|
|
200
|
+
type: array
|
|
201
|
+
items:
|
|
202
|
+
type: string
|
|
203
|
+
description: Company namespaces
|
|
204
|
+
createdAt:
|
|
205
|
+
type: string
|
|
206
|
+
format: date-time
|
|
207
|
+
description: Creation timestamp
|
|
208
|
+
updatedAt:
|
|
209
|
+
type: string
|
|
210
|
+
format: date-time
|
|
211
|
+
description: Last update timestamp
|
|
212
|
+
__v:
|
|
213
|
+
type: number
|
|
214
|
+
description: Version number
|
|
215
|
+
ReturnReasonCreateBody:
|
|
216
|
+
type: object
|
|
217
|
+
description: Body for creating a return reason
|
|
218
|
+
required:
|
|
219
|
+
- name
|
|
220
|
+
properties:
|
|
221
|
+
name:
|
|
222
|
+
type: string
|
|
223
|
+
description: Name of the return reason
|
|
224
|
+
local_name:
|
|
225
|
+
type: string
|
|
226
|
+
description: Localized name of the return reason
|
|
227
|
+
disabled:
|
|
228
|
+
type: boolean
|
|
229
|
+
description: Whether the return reason is disabled
|
|
230
|
+
integration_meta:
|
|
231
|
+
type: object
|
|
232
|
+
additionalProperties: true
|
|
233
|
+
description: Integration metadata
|
|
234
|
+
company_namespace:
|
|
235
|
+
type: array
|
|
236
|
+
items:
|
|
237
|
+
type: string
|
|
238
|
+
description: Company namespaces
|
|
239
|
+
ReturnReasonCreateResult:
|
|
240
|
+
$ref: '#/components/schemas/ReturnReasonSchema'
|
|
241
|
+
description: Result of creating a return reason
|
|
242
|
+
ReturnReasonGetResult:
|
|
243
|
+
$ref: '#/components/schemas/ReturnReasonSchema'
|
|
244
|
+
description: Result of getting a return reason
|
|
245
|
+
ReturnReasonUpdateBody:
|
|
246
|
+
type: object
|
|
247
|
+
description: Body for updating a return reason
|
|
248
|
+
properties:
|
|
249
|
+
name:
|
|
250
|
+
type: string
|
|
251
|
+
description: Name of the return reason
|
|
252
|
+
local_name:
|
|
253
|
+
type: string
|
|
254
|
+
description: Localized name of the return reason
|
|
255
|
+
disabled:
|
|
256
|
+
type: boolean
|
|
257
|
+
description: Whether the return reason is disabled
|
|
258
|
+
integration_meta:
|
|
259
|
+
type: object
|
|
260
|
+
additionalProperties: true
|
|
261
|
+
description: Integration metadata
|
|
262
|
+
company_namespace:
|
|
263
|
+
type: array
|
|
264
|
+
items:
|
|
265
|
+
type: string
|
|
266
|
+
description: Company namespaces
|
|
267
|
+
_id:
|
|
268
|
+
type: string
|
|
269
|
+
description: Unique identifier for the return reason
|
|
270
|
+
createdAt:
|
|
271
|
+
type: string
|
|
272
|
+
format: date-time
|
|
273
|
+
description: Creation timestamp
|
|
274
|
+
updatedAt:
|
|
275
|
+
type: string
|
|
276
|
+
format: date-time
|
|
277
|
+
description: Last update timestamp
|
|
278
|
+
__v:
|
|
279
|
+
type: number
|
|
280
|
+
description: Version number
|
|
281
|
+
ReturnReasonUpdateResult:
|
|
282
|
+
$ref: '#/components/schemas/ReturnReasonSchema'
|
|
283
|
+
description: Result of updating a return reason
|
|
284
|
+
ReturnReasonRemoveResult:
|
|
285
|
+
$ref: '#/components/schemas/ReturnReasonSchema'
|
|
286
|
+
description: Result of removing a return reason
|