@redotech/redo-api-schema 2.2.110 → 2.2.114
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 +113 -92
- package/lib/openapi.yaml +134 -127
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -70,20 +70,6 @@ export interface paths {
|
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
-
"/shipments/buy": {
|
|
74
|
-
/**
|
|
75
|
-
* Purchase shipping label
|
|
76
|
-
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
77
|
-
*/
|
|
78
|
-
post: operations["Shipment buy"];
|
|
79
|
-
};
|
|
80
|
-
"/shipments/rates": {
|
|
81
|
-
/**
|
|
82
|
-
* Get shipping rates
|
|
83
|
-
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
84
|
-
*/
|
|
85
|
-
post: operations["Shipment rates"];
|
|
86
|
-
};
|
|
87
73
|
"/stores/{storeId}/admin": {
|
|
88
74
|
/**
|
|
89
75
|
* Navigate to merchant admin
|
|
@@ -138,6 +124,30 @@ export interface paths {
|
|
|
138
124
|
};
|
|
139
125
|
};
|
|
140
126
|
};
|
|
127
|
+
"/stores/{storeId}/shipments/buy": {
|
|
128
|
+
/**
|
|
129
|
+
* Purchase shipping label
|
|
130
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
131
|
+
*/
|
|
132
|
+
post: operations["Shipment buy"];
|
|
133
|
+
parameters: {
|
|
134
|
+
path: {
|
|
135
|
+
storeId: components["parameters"]["store-id.param"];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
"/stores/{storeId}/shipments/rates": {
|
|
140
|
+
/**
|
|
141
|
+
* Get shipping rates
|
|
142
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
143
|
+
*/
|
|
144
|
+
post: operations["Shipment rates"];
|
|
145
|
+
parameters: {
|
|
146
|
+
path: {
|
|
147
|
+
storeId: components["parameters"]["store-id.param"];
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
};
|
|
141
151
|
"/stores/{storeId}/webhooks": {
|
|
142
152
|
/**
|
|
143
153
|
* List webhooks
|
|
@@ -809,6 +819,7 @@ export interface components {
|
|
|
809
819
|
* @description Shipment identifier
|
|
810
820
|
*/
|
|
811
821
|
id: string;
|
|
822
|
+
price: components["schemas"]["money.schema"];
|
|
812
823
|
tracker: components["schemas"]["shipment-tracker.schema"];
|
|
813
824
|
};
|
|
814
825
|
/**
|
|
@@ -1245,84 +1256,6 @@ export interface operations {
|
|
|
1245
1256
|
};
|
|
1246
1257
|
};
|
|
1247
1258
|
};
|
|
1248
|
-
/**
|
|
1249
|
-
* Purchase shipping label
|
|
1250
|
-
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1251
|
-
*/
|
|
1252
|
-
"Shipment buy": {
|
|
1253
|
-
requestBody: {
|
|
1254
|
-
content: {
|
|
1255
|
-
"application/json": {
|
|
1256
|
-
carrier: {
|
|
1257
|
-
/**
|
|
1258
|
-
* Carrier Account ID
|
|
1259
|
-
* @description ID for the carrier account that provides the shipping rate.
|
|
1260
|
-
*/
|
|
1261
|
-
id: string;
|
|
1262
|
-
};
|
|
1263
|
-
destination: components["schemas"]["shipping-contact.schema"];
|
|
1264
|
-
origin: components["schemas"]["shipping-contact.schema"];
|
|
1265
|
-
parcel: components["schemas"]["parcel.schema"];
|
|
1266
|
-
service: {
|
|
1267
|
-
/** @description Service level name */
|
|
1268
|
-
name: string;
|
|
1269
|
-
};
|
|
1270
|
-
};
|
|
1271
|
-
};
|
|
1272
|
-
};
|
|
1273
|
-
responses: {
|
|
1274
|
-
/** @description Success */
|
|
1275
|
-
200: {
|
|
1276
|
-
content: {
|
|
1277
|
-
"application/json": {
|
|
1278
|
-
shipment: components["schemas"]["shipment.schema"];
|
|
1279
|
-
};
|
|
1280
|
-
};
|
|
1281
|
-
};
|
|
1282
|
-
/** @description Error */
|
|
1283
|
-
default: {
|
|
1284
|
-
content: {
|
|
1285
|
-
"application/problem+json": components["schemas"]["error.schema"];
|
|
1286
|
-
};
|
|
1287
|
-
};
|
|
1288
|
-
};
|
|
1289
|
-
};
|
|
1290
|
-
/**
|
|
1291
|
-
* Get shipping rates
|
|
1292
|
-
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
1293
|
-
*/
|
|
1294
|
-
"Shipment rates": {
|
|
1295
|
-
requestBody: {
|
|
1296
|
-
content: {
|
|
1297
|
-
"application/json": {
|
|
1298
|
-
destination: {
|
|
1299
|
-
address: components["schemas"]["address.schema"];
|
|
1300
|
-
};
|
|
1301
|
-
origin: {
|
|
1302
|
-
address: components["schemas"]["address.schema"];
|
|
1303
|
-
};
|
|
1304
|
-
parcel: components["schemas"]["parcel.schema"];
|
|
1305
|
-
};
|
|
1306
|
-
};
|
|
1307
|
-
};
|
|
1308
|
-
responses: {
|
|
1309
|
-
/** @description Success */
|
|
1310
|
-
200: {
|
|
1311
|
-
content: {
|
|
1312
|
-
"application/json": {
|
|
1313
|
-
/** @description Available shipping rates */
|
|
1314
|
-
rates: components["schemas"]["shipment-rate.schema"][];
|
|
1315
|
-
};
|
|
1316
|
-
};
|
|
1317
|
-
};
|
|
1318
|
-
/** @description Error */
|
|
1319
|
-
default: {
|
|
1320
|
-
content: {
|
|
1321
|
-
"application/problem+json": components["schemas"]["error.schema"];
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
1259
|
/**
|
|
1327
1260
|
* Navigate to merchant admin
|
|
1328
1261
|
* @description Navigate to the merchant admin page.
|
|
@@ -1514,6 +1447,94 @@ export interface operations {
|
|
|
1514
1447
|
};
|
|
1515
1448
|
};
|
|
1516
1449
|
};
|
|
1450
|
+
/**
|
|
1451
|
+
* Purchase shipping label
|
|
1452
|
+
* @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1453
|
+
*/
|
|
1454
|
+
"Shipment buy": {
|
|
1455
|
+
parameters: {
|
|
1456
|
+
path: {
|
|
1457
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
requestBody: {
|
|
1461
|
+
content: {
|
|
1462
|
+
"application/json": {
|
|
1463
|
+
carrier: {
|
|
1464
|
+
/**
|
|
1465
|
+
* Carrier Account ID
|
|
1466
|
+
* @description ID for the carrier account that provides the shipping rate.
|
|
1467
|
+
*/
|
|
1468
|
+
id: string;
|
|
1469
|
+
};
|
|
1470
|
+
destination: components["schemas"]["shipping-contact.schema"];
|
|
1471
|
+
origin: components["schemas"]["shipping-contact.schema"];
|
|
1472
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1473
|
+
service: {
|
|
1474
|
+
/** @description Service level name */
|
|
1475
|
+
name: string;
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
responses: {
|
|
1481
|
+
/** @description Success */
|
|
1482
|
+
200: {
|
|
1483
|
+
content: {
|
|
1484
|
+
"application/json": {
|
|
1485
|
+
shipment: components["schemas"]["shipment.schema"];
|
|
1486
|
+
};
|
|
1487
|
+
};
|
|
1488
|
+
};
|
|
1489
|
+
/** @description Error */
|
|
1490
|
+
default: {
|
|
1491
|
+
content: {
|
|
1492
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
/**
|
|
1498
|
+
* Get shipping rates
|
|
1499
|
+
* @description Get available shipping rates based on origin, destination, and parcel information.
|
|
1500
|
+
*/
|
|
1501
|
+
"Shipment rates": {
|
|
1502
|
+
parameters: {
|
|
1503
|
+
path: {
|
|
1504
|
+
storeId: components["parameters"]["store-id.param"];
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
requestBody: {
|
|
1508
|
+
content: {
|
|
1509
|
+
"application/json": {
|
|
1510
|
+
destination: {
|
|
1511
|
+
address: components["schemas"]["address.schema"];
|
|
1512
|
+
};
|
|
1513
|
+
origin: {
|
|
1514
|
+
address: components["schemas"]["address.schema"];
|
|
1515
|
+
};
|
|
1516
|
+
parcel: components["schemas"]["parcel.schema"];
|
|
1517
|
+
};
|
|
1518
|
+
};
|
|
1519
|
+
};
|
|
1520
|
+
responses: {
|
|
1521
|
+
/** @description Success */
|
|
1522
|
+
200: {
|
|
1523
|
+
content: {
|
|
1524
|
+
"application/json": {
|
|
1525
|
+
/** @description Available shipping rates */
|
|
1526
|
+
rates: components["schemas"]["shipment-rate.schema"][];
|
|
1527
|
+
};
|
|
1528
|
+
};
|
|
1529
|
+
};
|
|
1530
|
+
/** @description Error */
|
|
1531
|
+
default: {
|
|
1532
|
+
content: {
|
|
1533
|
+
"application/problem+json": components["schemas"]["error.schema"];
|
|
1534
|
+
};
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1517
1538
|
/**
|
|
1518
1539
|
* List webhooks
|
|
1519
1540
|
* @description List webhooks for store.
|
package/lib/openapi.yaml
CHANGED
|
@@ -852,12 +852,15 @@ components:
|
|
|
852
852
|
description: Shipment identifier
|
|
853
853
|
title: Shipment ID
|
|
854
854
|
type: string
|
|
855
|
+
price:
|
|
856
|
+
$ref: '#/components/schemas/money.schema'
|
|
855
857
|
tracker:
|
|
856
858
|
$ref: '#/components/schemas/shipment-tracker.schema'
|
|
857
859
|
required:
|
|
858
860
|
- id
|
|
859
861
|
- documents
|
|
860
862
|
- tracker
|
|
863
|
+
- price
|
|
861
864
|
title: Shipment
|
|
862
865
|
type: object
|
|
863
866
|
shipping-contact.schema:
|
|
@@ -1354,133 +1357,6 @@ paths:
|
|
|
1354
1357
|
tags:
|
|
1355
1358
|
- Returns
|
|
1356
1359
|
summary: Return status
|
|
1357
|
-
/shipments/buy:
|
|
1358
|
-
description: Purchase a shipping label.
|
|
1359
|
-
post:
|
|
1360
|
-
description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1361
|
-
operationId: Shipment buy
|
|
1362
|
-
requestBody:
|
|
1363
|
-
content:
|
|
1364
|
-
application/json:
|
|
1365
|
-
schema:
|
|
1366
|
-
properties:
|
|
1367
|
-
carrier:
|
|
1368
|
-
properties:
|
|
1369
|
-
id:
|
|
1370
|
-
description: ID for the carrier account that provides the shipping rate.
|
|
1371
|
-
title: Carrier Account ID
|
|
1372
|
-
type: string
|
|
1373
|
-
required:
|
|
1374
|
-
- id
|
|
1375
|
-
type: object
|
|
1376
|
-
destination:
|
|
1377
|
-
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1378
|
-
origin:
|
|
1379
|
-
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1380
|
-
parcel:
|
|
1381
|
-
$ref: '#/components/schemas/parcel.schema'
|
|
1382
|
-
service:
|
|
1383
|
-
properties:
|
|
1384
|
-
name:
|
|
1385
|
-
description: Service level name
|
|
1386
|
-
examples:
|
|
1387
|
-
- Priority
|
|
1388
|
-
- Ground
|
|
1389
|
-
type: string
|
|
1390
|
-
required:
|
|
1391
|
-
- name
|
|
1392
|
-
type: object
|
|
1393
|
-
required:
|
|
1394
|
-
- origin
|
|
1395
|
-
- destination
|
|
1396
|
-
- carrier
|
|
1397
|
-
- service
|
|
1398
|
-
- parcel
|
|
1399
|
-
type: object
|
|
1400
|
-
required: true
|
|
1401
|
-
responses:
|
|
1402
|
-
'200':
|
|
1403
|
-
content:
|
|
1404
|
-
application/json:
|
|
1405
|
-
schema:
|
|
1406
|
-
properties:
|
|
1407
|
-
shipment:
|
|
1408
|
-
$ref: '#/components/schemas/shipment.schema'
|
|
1409
|
-
required:
|
|
1410
|
-
- shipment
|
|
1411
|
-
type: object
|
|
1412
|
-
description: Success
|
|
1413
|
-
default:
|
|
1414
|
-
content:
|
|
1415
|
-
application/problem+json:
|
|
1416
|
-
schema:
|
|
1417
|
-
$ref: '#/components/schemas/error.schema'
|
|
1418
|
-
description: Error
|
|
1419
|
-
security:
|
|
1420
|
-
- Bearer: []
|
|
1421
|
-
summary: Purchase shipping label
|
|
1422
|
-
tags:
|
|
1423
|
-
- Shipping
|
|
1424
|
-
summary: Shipment Buy
|
|
1425
|
-
/shipments/rates:
|
|
1426
|
-
description: Fetch available shipping label rates.
|
|
1427
|
-
post:
|
|
1428
|
-
description: Get available shipping rates based on origin, destination, and parcel information.
|
|
1429
|
-
operationId: Shipment rates
|
|
1430
|
-
requestBody:
|
|
1431
|
-
content:
|
|
1432
|
-
application/json:
|
|
1433
|
-
schema:
|
|
1434
|
-
properties:
|
|
1435
|
-
destination:
|
|
1436
|
-
properties:
|
|
1437
|
-
address:
|
|
1438
|
-
$ref: '#/components/schemas/address.schema'
|
|
1439
|
-
required:
|
|
1440
|
-
- address
|
|
1441
|
-
type: object
|
|
1442
|
-
origin:
|
|
1443
|
-
properties:
|
|
1444
|
-
address:
|
|
1445
|
-
$ref: '#/components/schemas/address.schema'
|
|
1446
|
-
required:
|
|
1447
|
-
- address
|
|
1448
|
-
type: object
|
|
1449
|
-
parcel:
|
|
1450
|
-
$ref: '#/components/schemas/parcel.schema'
|
|
1451
|
-
required:
|
|
1452
|
-
- origin
|
|
1453
|
-
- destination
|
|
1454
|
-
- parcel
|
|
1455
|
-
type: object
|
|
1456
|
-
required: true
|
|
1457
|
-
responses:
|
|
1458
|
-
'200':
|
|
1459
|
-
content:
|
|
1460
|
-
application/json:
|
|
1461
|
-
schema:
|
|
1462
|
-
properties:
|
|
1463
|
-
rates:
|
|
1464
|
-
description: Available shipping rates
|
|
1465
|
-
items:
|
|
1466
|
-
$ref: '#/components/schemas/shipment-rate.schema'
|
|
1467
|
-
type: array
|
|
1468
|
-
required:
|
|
1469
|
-
- rates
|
|
1470
|
-
type: object
|
|
1471
|
-
description: Success
|
|
1472
|
-
default:
|
|
1473
|
-
content:
|
|
1474
|
-
application/problem+json:
|
|
1475
|
-
schema:
|
|
1476
|
-
$ref: '#/components/schemas/error.schema'
|
|
1477
|
-
description: Error
|
|
1478
|
-
security:
|
|
1479
|
-
- Bearer: []
|
|
1480
|
-
summary: Get shipping rates
|
|
1481
|
-
tags:
|
|
1482
|
-
- Shipping
|
|
1483
|
-
summary: Shipment Rates
|
|
1484
1360
|
/stores/{storeId}/admin:
|
|
1485
1361
|
description: Navigate to the merchant admin page.
|
|
1486
1362
|
get:
|
|
@@ -1684,6 +1560,137 @@ paths:
|
|
|
1684
1560
|
parameters:
|
|
1685
1561
|
- $ref: '#/components/parameters/store-id.param'
|
|
1686
1562
|
summary: Returns
|
|
1563
|
+
/stores/{storeId}/shipments/buy:
|
|
1564
|
+
description: Purchase a shipping label.
|
|
1565
|
+
parameters:
|
|
1566
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1567
|
+
post:
|
|
1568
|
+
description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
|
|
1569
|
+
operationId: Shipment buy
|
|
1570
|
+
requestBody:
|
|
1571
|
+
content:
|
|
1572
|
+
application/json:
|
|
1573
|
+
schema:
|
|
1574
|
+
properties:
|
|
1575
|
+
carrier:
|
|
1576
|
+
properties:
|
|
1577
|
+
id:
|
|
1578
|
+
description: ID for the carrier account that provides the shipping rate.
|
|
1579
|
+
title: Carrier Account ID
|
|
1580
|
+
type: string
|
|
1581
|
+
required:
|
|
1582
|
+
- id
|
|
1583
|
+
type: object
|
|
1584
|
+
destination:
|
|
1585
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1586
|
+
origin:
|
|
1587
|
+
$ref: '#/components/schemas/shipping-contact.schema'
|
|
1588
|
+
parcel:
|
|
1589
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1590
|
+
service:
|
|
1591
|
+
properties:
|
|
1592
|
+
name:
|
|
1593
|
+
description: Service level name
|
|
1594
|
+
examples:
|
|
1595
|
+
- Priority
|
|
1596
|
+
- Ground
|
|
1597
|
+
type: string
|
|
1598
|
+
required:
|
|
1599
|
+
- name
|
|
1600
|
+
type: object
|
|
1601
|
+
required:
|
|
1602
|
+
- origin
|
|
1603
|
+
- destination
|
|
1604
|
+
- carrier
|
|
1605
|
+
- service
|
|
1606
|
+
- parcel
|
|
1607
|
+
type: object
|
|
1608
|
+
required: true
|
|
1609
|
+
responses:
|
|
1610
|
+
'200':
|
|
1611
|
+
content:
|
|
1612
|
+
application/json:
|
|
1613
|
+
schema:
|
|
1614
|
+
properties:
|
|
1615
|
+
shipment:
|
|
1616
|
+
$ref: '#/components/schemas/shipment.schema'
|
|
1617
|
+
required:
|
|
1618
|
+
- shipment
|
|
1619
|
+
type: object
|
|
1620
|
+
description: Success
|
|
1621
|
+
default:
|
|
1622
|
+
content:
|
|
1623
|
+
application/problem+json:
|
|
1624
|
+
schema:
|
|
1625
|
+
$ref: '#/components/schemas/error.schema'
|
|
1626
|
+
description: Error
|
|
1627
|
+
security:
|
|
1628
|
+
- Bearer: []
|
|
1629
|
+
summary: Purchase shipping label
|
|
1630
|
+
tags:
|
|
1631
|
+
- Shipping
|
|
1632
|
+
summary: Shipment Buy
|
|
1633
|
+
/stores/{storeId}/shipments/rates:
|
|
1634
|
+
description: Fetch available shipping label rates.
|
|
1635
|
+
parameters:
|
|
1636
|
+
- $ref: '#/components/parameters/store-id.param'
|
|
1637
|
+
post:
|
|
1638
|
+
description: Get available shipping rates based on origin, destination, and parcel information.
|
|
1639
|
+
operationId: Shipment rates
|
|
1640
|
+
requestBody:
|
|
1641
|
+
content:
|
|
1642
|
+
application/json:
|
|
1643
|
+
schema:
|
|
1644
|
+
properties:
|
|
1645
|
+
destination:
|
|
1646
|
+
properties:
|
|
1647
|
+
address:
|
|
1648
|
+
$ref: '#/components/schemas/address.schema'
|
|
1649
|
+
required:
|
|
1650
|
+
- address
|
|
1651
|
+
type: object
|
|
1652
|
+
origin:
|
|
1653
|
+
properties:
|
|
1654
|
+
address:
|
|
1655
|
+
$ref: '#/components/schemas/address.schema'
|
|
1656
|
+
required:
|
|
1657
|
+
- address
|
|
1658
|
+
type: object
|
|
1659
|
+
parcel:
|
|
1660
|
+
$ref: '#/components/schemas/parcel.schema'
|
|
1661
|
+
required:
|
|
1662
|
+
- origin
|
|
1663
|
+
- destination
|
|
1664
|
+
- parcel
|
|
1665
|
+
type: object
|
|
1666
|
+
required: true
|
|
1667
|
+
responses:
|
|
1668
|
+
'200':
|
|
1669
|
+
content:
|
|
1670
|
+
application/json:
|
|
1671
|
+
schema:
|
|
1672
|
+
properties:
|
|
1673
|
+
rates:
|
|
1674
|
+
description: Available shipping rates
|
|
1675
|
+
items:
|
|
1676
|
+
$ref: '#/components/schemas/shipment-rate.schema'
|
|
1677
|
+
type: array
|
|
1678
|
+
required:
|
|
1679
|
+
- rates
|
|
1680
|
+
type: object
|
|
1681
|
+
description: Success
|
|
1682
|
+
default:
|
|
1683
|
+
content:
|
|
1684
|
+
application/problem+json:
|
|
1685
|
+
schema:
|
|
1686
|
+
$ref: '#/components/schemas/error.schema'
|
|
1687
|
+
description: Error
|
|
1688
|
+
security:
|
|
1689
|
+
- Bearer: []
|
|
1690
|
+
summary: Get shipping rates
|
|
1691
|
+
tags:
|
|
1692
|
+
- Shipping
|
|
1693
|
+
summary: Shipment Rates
|
|
1687
1694
|
/stores/{storeId}/webhooks:
|
|
1688
1695
|
description: Webhooks.
|
|
1689
1696
|
get:
|
package/package.json
CHANGED