@redotech/redo-api-schema 2.2.112 → 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 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
@@ -1246,84 +1256,6 @@ export interface operations {
1246
1256
  };
1247
1257
  };
1248
1258
  };
1249
- /**
1250
- * Purchase shipping label
1251
- * @description Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
1252
- */
1253
- "Shipment buy": {
1254
- requestBody: {
1255
- content: {
1256
- "application/json": {
1257
- carrier: {
1258
- /**
1259
- * Carrier Account ID
1260
- * @description ID for the carrier account that provides the shipping rate.
1261
- */
1262
- id: string;
1263
- };
1264
- destination: components["schemas"]["shipping-contact.schema"];
1265
- origin: components["schemas"]["shipping-contact.schema"];
1266
- parcel: components["schemas"]["parcel.schema"];
1267
- service: {
1268
- /** @description Service level name */
1269
- name: string;
1270
- };
1271
- };
1272
- };
1273
- };
1274
- responses: {
1275
- /** @description Success */
1276
- 200: {
1277
- content: {
1278
- "application/json": {
1279
- shipment: components["schemas"]["shipment.schema"];
1280
- };
1281
- };
1282
- };
1283
- /** @description Error */
1284
- default: {
1285
- content: {
1286
- "application/problem+json": components["schemas"]["error.schema"];
1287
- };
1288
- };
1289
- };
1290
- };
1291
- /**
1292
- * Get shipping rates
1293
- * @description Get available shipping rates based on origin, destination, and parcel information.
1294
- */
1295
- "Shipment rates": {
1296
- requestBody: {
1297
- content: {
1298
- "application/json": {
1299
- destination: {
1300
- address: components["schemas"]["address.schema"];
1301
- };
1302
- origin: {
1303
- address: components["schemas"]["address.schema"];
1304
- };
1305
- parcel: components["schemas"]["parcel.schema"];
1306
- };
1307
- };
1308
- };
1309
- responses: {
1310
- /** @description Success */
1311
- 200: {
1312
- content: {
1313
- "application/json": {
1314
- /** @description Available shipping rates */
1315
- rates: components["schemas"]["shipment-rate.schema"][];
1316
- };
1317
- };
1318
- };
1319
- /** @description Error */
1320
- default: {
1321
- content: {
1322
- "application/problem+json": components["schemas"]["error.schema"];
1323
- };
1324
- };
1325
- };
1326
- };
1327
1259
  /**
1328
1260
  * Navigate to merchant admin
1329
1261
  * @description Navigate to the merchant admin page.
@@ -1515,6 +1447,94 @@ export interface operations {
1515
1447
  };
1516
1448
  };
1517
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
+ };
1518
1538
  /**
1519
1539
  * List webhooks
1520
1540
  * @description List webhooks for store.
package/lib/openapi.yaml CHANGED
@@ -1357,133 +1357,6 @@ paths:
1357
1357
  tags:
1358
1358
  - Returns
1359
1359
  summary: Return status
1360
- /shipments/buy:
1361
- description: Purchase a shipping label.
1362
- post:
1363
- description: Purchase a shipping label based on origin, destination, carrier, service, and parcel information.
1364
- operationId: Shipment buy
1365
- requestBody:
1366
- content:
1367
- application/json:
1368
- schema:
1369
- properties:
1370
- carrier:
1371
- properties:
1372
- id:
1373
- description: ID for the carrier account that provides the shipping rate.
1374
- title: Carrier Account ID
1375
- type: string
1376
- required:
1377
- - id
1378
- type: object
1379
- destination:
1380
- $ref: '#/components/schemas/shipping-contact.schema'
1381
- origin:
1382
- $ref: '#/components/schemas/shipping-contact.schema'
1383
- parcel:
1384
- $ref: '#/components/schemas/parcel.schema'
1385
- service:
1386
- properties:
1387
- name:
1388
- description: Service level name
1389
- examples:
1390
- - Priority
1391
- - Ground
1392
- type: string
1393
- required:
1394
- - name
1395
- type: object
1396
- required:
1397
- - origin
1398
- - destination
1399
- - carrier
1400
- - service
1401
- - parcel
1402
- type: object
1403
- required: true
1404
- responses:
1405
- '200':
1406
- content:
1407
- application/json:
1408
- schema:
1409
- properties:
1410
- shipment:
1411
- $ref: '#/components/schemas/shipment.schema'
1412
- required:
1413
- - shipment
1414
- type: object
1415
- description: Success
1416
- default:
1417
- content:
1418
- application/problem+json:
1419
- schema:
1420
- $ref: '#/components/schemas/error.schema'
1421
- description: Error
1422
- security:
1423
- - Bearer: []
1424
- summary: Purchase shipping label
1425
- tags:
1426
- - Shipping
1427
- summary: Shipment Buy
1428
- /shipments/rates:
1429
- description: Fetch available shipping label rates.
1430
- post:
1431
- description: Get available shipping rates based on origin, destination, and parcel information.
1432
- operationId: Shipment rates
1433
- requestBody:
1434
- content:
1435
- application/json:
1436
- schema:
1437
- properties:
1438
- destination:
1439
- properties:
1440
- address:
1441
- $ref: '#/components/schemas/address.schema'
1442
- required:
1443
- - address
1444
- type: object
1445
- origin:
1446
- properties:
1447
- address:
1448
- $ref: '#/components/schemas/address.schema'
1449
- required:
1450
- - address
1451
- type: object
1452
- parcel:
1453
- $ref: '#/components/schemas/parcel.schema'
1454
- required:
1455
- - origin
1456
- - destination
1457
- - parcel
1458
- type: object
1459
- required: true
1460
- responses:
1461
- '200':
1462
- content:
1463
- application/json:
1464
- schema:
1465
- properties:
1466
- rates:
1467
- description: Available shipping rates
1468
- items:
1469
- $ref: '#/components/schemas/shipment-rate.schema'
1470
- type: array
1471
- required:
1472
- - rates
1473
- type: object
1474
- description: Success
1475
- default:
1476
- content:
1477
- application/problem+json:
1478
- schema:
1479
- $ref: '#/components/schemas/error.schema'
1480
- description: Error
1481
- security:
1482
- - Bearer: []
1483
- summary: Get shipping rates
1484
- tags:
1485
- - Shipping
1486
- summary: Shipment Rates
1487
1360
  /stores/{storeId}/admin:
1488
1361
  description: Navigate to the merchant admin page.
1489
1362
  get:
@@ -1687,6 +1560,137 @@ paths:
1687
1560
  parameters:
1688
1561
  - $ref: '#/components/parameters/store-id.param'
1689
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
1690
1694
  /stores/{storeId}/webhooks:
1691
1695
  description: Webhooks.
1692
1696
  get:
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  ]
32
32
  }
33
33
  },
34
- "version": "2.2.112"
34
+ "version": "2.2.114"
35
35
  }