@redotech/redo-api-schema 2.2.114 → 2.2.116
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 +44 -0
- package/lib/openapi.yaml +49 -0
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -124,6 +124,18 @@ export interface paths {
|
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
+
"/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}": {
|
|
128
|
+
/**
|
|
129
|
+
* Download shipment document
|
|
130
|
+
* @description Get a shipment document (label, commercial invoice, etc).
|
|
131
|
+
*/
|
|
132
|
+
get: operations["Shipment document download"];
|
|
133
|
+
parameters: {
|
|
134
|
+
path: {
|
|
135
|
+
storeId: components["parameters"]["store-id.param"];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
127
139
|
"/stores/{storeId}/shipments/buy": {
|
|
128
140
|
/**
|
|
129
141
|
* Purchase shipping label
|
|
@@ -1024,6 +1036,8 @@ export interface components {
|
|
|
1024
1036
|
};
|
|
1025
1037
|
responses: never;
|
|
1026
1038
|
parameters: {
|
|
1039
|
+
/** @description Type of document to download */
|
|
1040
|
+
"document-type.param": components["schemas"]["shipment-document-type.schema"];
|
|
1027
1041
|
/** @description Invoice ID */
|
|
1028
1042
|
"invoice-id.param": string;
|
|
1029
1043
|
/**
|
|
@@ -1038,6 +1052,8 @@ export interface components {
|
|
|
1038
1052
|
"page-size.param"?: number;
|
|
1039
1053
|
/** @description Return ID */
|
|
1040
1054
|
"return-id.param": string;
|
|
1055
|
+
/** @description Shipment ID */
|
|
1056
|
+
"shipment-id.param": string;
|
|
1041
1057
|
/** @description Store ID */
|
|
1042
1058
|
"store-id.param": string;
|
|
1043
1059
|
/**
|
|
@@ -1447,6 +1463,34 @@ export interface operations {
|
|
|
1447
1463
|
};
|
|
1448
1464
|
};
|
|
1449
1465
|
};
|
|
1466
|
+
/**
|
|
1467
|
+
* Download shipment document
|
|
1468
|
+
* @description Get a shipment document (label, commercial invoice, etc).
|
|
1469
|
+
*/
|
|
1470
|
+
"Shipment document download": {
|
|
1471
|
+
parameters: {
|
|
1472
|
+
path: {
|
|
1473
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1474
|
+
shipmentId: components["parameters"]["shipment-id.param"];
|
|
1475
|
+
documentType: components["parameters"]["document-type.param"];
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
responses: {
|
|
1479
|
+
/** @description Success */
|
|
1480
|
+
200: {
|
|
1481
|
+
content: {
|
|
1482
|
+
"application/pdf": string;
|
|
1483
|
+
"image/png": string;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
/** @description Error */
|
|
1487
|
+
default: {
|
|
1488
|
+
content: {
|
|
1489
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1490
|
+
};
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1450
1494
|
/**
|
|
1451
1495
|
* Purchase shipping label
|
|
1452
1496
|
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
package/lib/openapi.yaml
CHANGED
|
@@ -5,6 +5,13 @@ components:
|
|
|
5
5
|
schema:
|
|
6
6
|
type: string
|
|
7
7
|
parameters:
|
|
8
|
+
document-type.param:
|
|
9
|
+
description: Type of document to download
|
|
10
|
+
in: path
|
|
11
|
+
name: documentType
|
|
12
|
+
required: true
|
|
13
|
+
schema:
|
|
14
|
+
$ref: '#/components/schemas/shipment-document-type.schema'
|
|
8
15
|
invoice-id.param:
|
|
9
16
|
description: Invoice ID
|
|
10
17
|
in: path
|
|
@@ -35,6 +42,14 @@ components:
|
|
|
35
42
|
schema:
|
|
36
43
|
example: 64e4d5e837572a4813b73e40
|
|
37
44
|
type: string
|
|
45
|
+
shipment-id.param:
|
|
46
|
+
description: Shipment ID
|
|
47
|
+
in: path
|
|
48
|
+
name: shipmentId
|
|
49
|
+
required: true
|
|
50
|
+
schema:
|
|
51
|
+
example: 67c7e87a2c8c262c0ddc9861
|
|
52
|
+
type: string
|
|
38
53
|
store-id.param:
|
|
39
54
|
description: Store ID
|
|
40
55
|
in: path
|
|
@@ -1691,6 +1706,40 @@ paths:
|
|
|
1691
1706
|
tags:
|
|
1692
1707
|
- Shipping
|
|
1693
1708
|
summary: Shipment Rates
|
|
1709
|
+
/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}:
|
|
1710
|
+
description: Download shipment document.
|
|
1711
|
+
get:
|
|
1712
|
+
description: Get a shipment document (label, commercial invoice, etc).
|
|
1713
|
+
operationId: Shipment document download
|
|
1714
|
+
parameters:
|
|
1715
|
+
- $ref: '#/components/parameters/shipment-id.param'
|
|
1716
|
+
- $ref: '#/components/parameters/document-type.param'
|
|
1717
|
+
responses:
|
|
1718
|
+
'200':
|
|
1719
|
+
content:
|
|
1720
|
+
application/pdf:
|
|
1721
|
+
schema:
|
|
1722
|
+
format: binary
|
|
1723
|
+
type: string
|
|
1724
|
+
image/png:
|
|
1725
|
+
schema:
|
|
1726
|
+
format: binary
|
|
1727
|
+
type: string
|
|
1728
|
+
description: Success
|
|
1729
|
+
default:
|
|
1730
|
+
content:
|
|
1731
|
+
application/problem+json:
|
|
1732
|
+
schema:
|
|
1733
|
+
$ref: '#/components/schemas/error.schema'
|
|
1734
|
+
description: Error
|
|
1735
|
+
security:
|
|
1736
|
+
- Bearer: []
|
|
1737
|
+
summary: Download shipment document
|
|
1738
|
+
tags:
|
|
1739
|
+
- Shipping
|
|
1740
|
+
parameters:
|
|
1741
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1742
|
+
summary: Shipment Document
|
|
1694
1743
|
/stores/{storeId}/webhooks:
|
|
1695
1744
|
description: Webhooks.
|
|
1696
1745
|
get:
|
package/package.json
CHANGED