@redotech/redo-api-schema 2.2.114 → 2.2.122
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 +45 -7
- package/lib/openapi.yaml +50 -9
- 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
|
|
@@ -760,12 +772,6 @@ export interface components {
|
|
|
760
772
|
*/
|
|
761
773
|
"shipment-document.schema": {
|
|
762
774
|
type: components["schemas"]["shipment-document-type.schema"];
|
|
763
|
-
/**
|
|
764
|
-
* URL
|
|
765
|
-
* Format: uri
|
|
766
|
-
* @description URL to download the document
|
|
767
|
-
*/
|
|
768
|
-
url: string;
|
|
769
775
|
};
|
|
770
776
|
/**
|
|
771
777
|
* Shipment Rate
|
|
@@ -811,7 +817,7 @@ export interface components {
|
|
|
811
817
|
"shipment.schema": {
|
|
812
818
|
/**
|
|
813
819
|
* Documents
|
|
814
|
-
* @description
|
|
820
|
+
* @description Available shipping documents. You can access these documents using the GET Shipment document endpoint.
|
|
815
821
|
*/
|
|
816
822
|
documents: components["schemas"]["shipment-document.schema"][];
|
|
817
823
|
/**
|
|
@@ -1024,6 +1030,8 @@ export interface components {
|
|
|
1024
1030
|
};
|
|
1025
1031
|
responses: never;
|
|
1026
1032
|
parameters: {
|
|
1033
|
+
/** @description Type of document to download */
|
|
1034
|
+
"document-type.param": components["schemas"]["shipment-document-type.schema"];
|
|
1027
1035
|
/** @description Invoice ID */
|
|
1028
1036
|
"invoice-id.param": string;
|
|
1029
1037
|
/**
|
|
@@ -1038,6 +1046,8 @@ export interface components {
|
|
|
1038
1046
|
"page-size.param"?: number;
|
|
1039
1047
|
/** @description Return ID */
|
|
1040
1048
|
"return-id.param": string;
|
|
1049
|
+
/** @description Shipment ID */
|
|
1050
|
+
"shipment-id.param": string;
|
|
1041
1051
|
/** @description Store ID */
|
|
1042
1052
|
"store-id.param": string;
|
|
1043
1053
|
/**
|
|
@@ -1447,6 +1457,34 @@ export interface operations {
|
|
|
1447
1457
|
};
|
|
1448
1458
|
};
|
|
1449
1459
|
};
|
|
1460
|
+
/**
|
|
1461
|
+
* Download shipment document
|
|
1462
|
+
* @description Get a shipment document (label, commercial invoice, etc).
|
|
1463
|
+
*/
|
|
1464
|
+
"Shipment document download": {
|
|
1465
|
+
parameters: {
|
|
1466
|
+
path: {
|
|
1467
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1468
|
+
shipmentId: components["parameters"]["shipment-id.param"];
|
|
1469
|
+
documentType: components["parameters"]["document-type.param"];
|
|
1470
|
+
};
|
|
1471
|
+
};
|
|
1472
|
+
responses: {
|
|
1473
|
+
/** @description Success */
|
|
1474
|
+
200: {
|
|
1475
|
+
content: {
|
|
1476
|
+
"application/pdf": string;
|
|
1477
|
+
"image/png": string;
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
/** @description Error */
|
|
1481
|
+
default: {
|
|
1482
|
+
content: {
|
|
1483
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1450
1488
|
/**
|
|
1451
1489
|
* Purchase shipping label
|
|
1452
1490
|
* @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
|
|
@@ -774,16 +789,8 @@ components:
|
|
|
774
789
|
properties:
|
|
775
790
|
type:
|
|
776
791
|
$ref: '#/components/schemas/shipment-document-type.schema'
|
|
777
|
-
url:
|
|
778
|
-
description: URL to download the document
|
|
779
|
-
examples:
|
|
780
|
-
- https://example.com/labels/123.pdf
|
|
781
|
-
format: uri
|
|
782
|
-
title: URL
|
|
783
|
-
type: string
|
|
784
792
|
required:
|
|
785
793
|
- type
|
|
786
|
-
- url
|
|
787
794
|
title: Shipment Document
|
|
788
795
|
type: object
|
|
789
796
|
shipment-rate.schema:
|
|
@@ -843,7 +850,7 @@ components:
|
|
|
843
850
|
description: Shipment information.
|
|
844
851
|
properties:
|
|
845
852
|
documents:
|
|
846
|
-
description:
|
|
853
|
+
description: Available shipping documents. You can access these documents using the GET Shipment document endpoint.
|
|
847
854
|
items:
|
|
848
855
|
$ref: '#/components/schemas/shipment-document.schema'
|
|
849
856
|
title: Documents
|
|
@@ -1691,6 +1698,40 @@ paths:
|
|
|
1691
1698
|
tags:
|
|
1692
1699
|
- Shipping
|
|
1693
1700
|
summary: Shipment Rates
|
|
1701
|
+
/stores/{storeId}/shipments/{shipmentId}/documents/{documentType}:
|
|
1702
|
+
description: Download shipment document.
|
|
1703
|
+
get:
|
|
1704
|
+
description: Get a shipment document (label, commercial invoice, etc).
|
|
1705
|
+
operationId: Shipment document download
|
|
1706
|
+
parameters:
|
|
1707
|
+
- $ref: '#/components/parameters/shipment-id.param'
|
|
1708
|
+
- $ref: '#/components/parameters/document-type.param'
|
|
1709
|
+
responses:
|
|
1710
|
+
'200':
|
|
1711
|
+
content:
|
|
1712
|
+
application/pdf:
|
|
1713
|
+
schema:
|
|
1714
|
+
format: binary
|
|
1715
|
+
type: string
|
|
1716
|
+
image/png:
|
|
1717
|
+
schema:
|
|
1718
|
+
format: binary
|
|
1719
|
+
type: string
|
|
1720
|
+
description: Success
|
|
1721
|
+
default:
|
|
1722
|
+
content:
|
|
1723
|
+
application/problem+json:
|
|
1724
|
+
schema:
|
|
1725
|
+
$ref: '#/components/schemas/error.schema'
|
|
1726
|
+
description: Error
|
|
1727
|
+
security:
|
|
1728
|
+
- Bearer: []
|
|
1729
|
+
summary: Download shipment document
|
|
1730
|
+
tags:
|
|
1731
|
+
- Shipping
|
|
1732
|
+
parameters:
|
|
1733
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1734
|
+
summary: Shipment Document
|
|
1694
1735
|
/stores/{storeId}/webhooks:
|
|
1695
1736
|
description: Webhooks.
|
|
1696
1737
|
get:
|
package/package.json
CHANGED