@redotech/redo-api-schema 2.2.128 → 2.2.134
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/openapi.d.ts +27 -20
- package/lib/openapi.yaml +46 -16
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -64,11 +64,6 @@ export interface paths {
|
|
|
64
64
|
* @description Update return status.
|
|
65
65
|
*/
|
|
66
66
|
put: operations["Return status update"];
|
|
67
|
-
parameters: {
|
|
68
|
-
path: {
|
|
69
|
-
returnId: components["parameters"]["return-id.param"];
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
67
|
};
|
|
73
68
|
"/stores/{storeId}/admin": {
|
|
74
69
|
/**
|
|
@@ -190,14 +185,9 @@ export interface paths {
|
|
|
190
185
|
put: operations["Webhook update"];
|
|
191
186
|
/**
|
|
192
187
|
* Delete webhook
|
|
193
|
-
* @description Delete a
|
|
188
|
+
* @description Delete a webhook.
|
|
194
189
|
*/
|
|
195
190
|
delete: operations["Webhook delete"];
|
|
196
|
-
parameters: {
|
|
197
|
-
path: {
|
|
198
|
-
webhookId: components["parameters"]["webhook-id.param"];
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
191
|
};
|
|
202
192
|
"/webhooks/{webhookId}/replay": {
|
|
203
193
|
/**
|
|
@@ -748,18 +738,35 @@ export interface components {
|
|
|
748
738
|
* Return status
|
|
749
739
|
* @description Return status.
|
|
750
740
|
*
|
|
751
|
-
* *
|
|
752
|
-
* * open: Return has been approved is awaiting shipment.
|
|
753
|
-
* *
|
|
754
|
-
* *
|
|
741
|
+
* * complete: The return has been completed successfully.
|
|
742
|
+
* * open: Return has been approved and is awaiting shipment.
|
|
743
|
+
* * flagged: A problem with return processing requires merchant action.
|
|
744
|
+
* * rejected: The return has been rejected.
|
|
745
|
+
* * deleted: The return has been reset.
|
|
746
|
+
*
|
|
747
|
+
* @example open
|
|
748
|
+
* @enum {string}
|
|
749
|
+
*/
|
|
750
|
+
"return-status-update.schema": "complete" | "open" | "flagged" | "rejected" | "deleted";
|
|
751
|
+
/**
|
|
752
|
+
* Return status
|
|
753
|
+
* @description Return status.
|
|
754
|
+
*
|
|
755
|
+
* * open: Return has been approved and is awaiting shipment.
|
|
756
|
+
* * in_transit: Return shipment is in transit.
|
|
757
|
+
* * delivered: Return shipment has been delivered and awaiting processing.
|
|
758
|
+
* * needs_review: Return requires review before further action.
|
|
759
|
+
* * in_review: Return is currently being reviewed.
|
|
760
|
+
* * complete: The return has been completed successfully.
|
|
761
|
+
* * rejected: The return has been rejected.
|
|
755
762
|
* * flagged: A problem with return processing requires merchant action.
|
|
756
|
-
* *
|
|
757
|
-
* *
|
|
763
|
+
* * pre_shipment: Return requires pre-shipment merchant authorization.
|
|
764
|
+
* * deleted: The return has been deleted (Reset).
|
|
758
765
|
*
|
|
759
766
|
* @example open
|
|
760
767
|
* @enum {string}
|
|
761
768
|
*/
|
|
762
|
-
"return-status.schema": "
|
|
769
|
+
"return-status.schema": "open" | "in_transit" | "delivered" | "needs_review" | "in_review" | "complete" | "rejected" | "flagged" | "pre_shipment" | "deleted";
|
|
763
770
|
/**
|
|
764
771
|
* Shipment Document Type
|
|
765
772
|
* @description Type of shipping document.
|
|
@@ -1265,7 +1272,7 @@ export interface operations {
|
|
|
1265
1272
|
requestBody: {
|
|
1266
1273
|
content: {
|
|
1267
1274
|
"application/json": {
|
|
1268
|
-
status: components["schemas"]["return-status.schema"];
|
|
1275
|
+
status: components["schemas"]["return-status-update.schema"];
|
|
1269
1276
|
};
|
|
1270
1277
|
};
|
|
1271
1278
|
};
|
|
@@ -1711,7 +1718,7 @@ export interface operations {
|
|
|
1711
1718
|
};
|
|
1712
1719
|
/**
|
|
1713
1720
|
* Delete webhook
|
|
1714
|
-
* @description Delete a
|
|
1721
|
+
* @description Delete a webhook.
|
|
1715
1722
|
*/
|
|
1716
1723
|
"Webhook delete": {
|
|
1717
1724
|
parameters: {
|
package/lib/openapi.yaml
CHANGED
|
@@ -755,25 +755,49 @@ components:
|
|
|
755
755
|
- updatedAt
|
|
756
756
|
title: Return
|
|
757
757
|
type: object
|
|
758
|
+
return-status-update.schema:
|
|
759
|
+
description: |
|
|
760
|
+
Return status.
|
|
761
|
+
|
|
762
|
+
* complete: The return has been completed successfully.
|
|
763
|
+
* open: Return has been approved and is awaiting shipment.
|
|
764
|
+
* flagged: A problem with return processing requires merchant action.
|
|
765
|
+
* rejected: The return has been rejected.
|
|
766
|
+
* deleted: The return has been reset.
|
|
767
|
+
enum:
|
|
768
|
+
- complete
|
|
769
|
+
- open
|
|
770
|
+
- flagged
|
|
771
|
+
- rejected
|
|
772
|
+
- deleted
|
|
773
|
+
example: open
|
|
774
|
+
title: Return status
|
|
775
|
+
type: string
|
|
758
776
|
return-status.schema:
|
|
759
777
|
description: |
|
|
760
778
|
Return status.
|
|
761
779
|
|
|
762
|
-
*
|
|
763
|
-
*
|
|
764
|
-
*
|
|
765
|
-
*
|
|
780
|
+
* open: Return has been approved and is awaiting shipment.
|
|
781
|
+
* in_transit: Return shipment is in transit.
|
|
782
|
+
* delivered: Return shipment has been delivered and awaiting processing.
|
|
783
|
+
* needs_review: Return requires review before further action.
|
|
784
|
+
* in_review: Return is currently being reviewed.
|
|
785
|
+
* complete: The return has been completed successfully.
|
|
786
|
+
* rejected: The return has been rejected.
|
|
766
787
|
* flagged: A problem with return processing requires merchant action.
|
|
767
|
-
*
|
|
768
|
-
*
|
|
788
|
+
* pre_shipment: Return requires pre-shipment merchant authorization.
|
|
789
|
+
* deleted: The return has been deleted (Reset).
|
|
769
790
|
enum:
|
|
770
|
-
- manual_review
|
|
771
791
|
- open
|
|
772
|
-
-
|
|
792
|
+
- in_transit
|
|
773
793
|
- delivered
|
|
794
|
+
- needs_review
|
|
795
|
+
- in_review
|
|
796
|
+
- complete
|
|
797
|
+
- rejected
|
|
774
798
|
- flagged
|
|
775
|
-
-
|
|
776
|
-
-
|
|
799
|
+
- pre_shipment
|
|
800
|
+
- deleted
|
|
777
801
|
example: open
|
|
778
802
|
title: Return status
|
|
779
803
|
type: string
|
|
@@ -1325,6 +1349,8 @@ paths:
|
|
|
1325
1349
|
get:
|
|
1326
1350
|
description: Get return status.
|
|
1327
1351
|
operationId: Return status get
|
|
1352
|
+
parameters:
|
|
1353
|
+
- $ref: '#/components/parameters/return-id.param'
|
|
1328
1354
|
responses:
|
|
1329
1355
|
'200':
|
|
1330
1356
|
content:
|
|
@@ -1348,18 +1374,18 @@ paths:
|
|
|
1348
1374
|
summary: Get return status
|
|
1349
1375
|
tags:
|
|
1350
1376
|
- Returns
|
|
1351
|
-
parameters:
|
|
1352
|
-
- $ref: '#/components/parameters/return-id.param'
|
|
1353
1377
|
put:
|
|
1354
1378
|
description: Update return status.
|
|
1355
1379
|
operationId: Return status update
|
|
1380
|
+
parameters:
|
|
1381
|
+
- $ref: '#/components/parameters/return-id.param'
|
|
1356
1382
|
requestBody:
|
|
1357
1383
|
content:
|
|
1358
1384
|
application/json:
|
|
1359
1385
|
schema:
|
|
1360
1386
|
properties:
|
|
1361
1387
|
status:
|
|
1362
|
-
$ref: '#/components/schemas/return-status.schema'
|
|
1388
|
+
$ref: '#/components/schemas/return-status-update.schema'
|
|
1363
1389
|
required:
|
|
1364
1390
|
- status
|
|
1365
1391
|
type: object
|
|
@@ -1822,8 +1848,10 @@ paths:
|
|
|
1822
1848
|
summary: Webhooks
|
|
1823
1849
|
/webhooks/{webhookId}:
|
|
1824
1850
|
delete:
|
|
1825
|
-
description: Delete a
|
|
1851
|
+
description: Delete a webhook.
|
|
1826
1852
|
operationId: Webhook delete
|
|
1853
|
+
parameters:
|
|
1854
|
+
- $ref: '#/components/parameters/webhook-id.param'
|
|
1827
1855
|
responses:
|
|
1828
1856
|
'204':
|
|
1829
1857
|
description: Deleted
|
|
@@ -1836,6 +1864,8 @@ paths:
|
|
|
1836
1864
|
get:
|
|
1837
1865
|
description: Get a webhook.
|
|
1838
1866
|
operationId: Webhook get
|
|
1867
|
+
parameters:
|
|
1868
|
+
- $ref: '#/components/parameters/webhook-id.param'
|
|
1839
1869
|
responses:
|
|
1840
1870
|
'200':
|
|
1841
1871
|
content:
|
|
@@ -1851,11 +1881,11 @@ paths:
|
|
|
1851
1881
|
summary: Get webhook
|
|
1852
1882
|
tags:
|
|
1853
1883
|
- Webhooks
|
|
1854
|
-
parameters:
|
|
1855
|
-
- $ref: '#/components/parameters/webhook-id.param'
|
|
1856
1884
|
put:
|
|
1857
1885
|
description: Update a webhook.
|
|
1858
1886
|
operationId: Webhook update
|
|
1887
|
+
parameters:
|
|
1888
|
+
- $ref: '#/components/parameters/webhook-id.param'
|
|
1859
1889
|
requestBody:
|
|
1860
1890
|
content:
|
|
1861
1891
|
application/json:
|
package/package.json
CHANGED