@redotech/redo-api-schema 2.2.162 → 2.2.172

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
@@ -448,6 +448,11 @@ export interface components {
448
448
  */
449
449
  phoneNumber?: components["schemas"]["phone-number.schema"];
450
450
  };
451
+ /**
452
+ * Discounts
453
+ * @description The total amount discounted on the order before returns. This includes both order and line level discounts.
454
+ */
455
+ discounts: components["schemas"]["money.schema"];
451
456
  /**
452
457
  * External ID
453
458
  * @description Shopify ID
@@ -482,11 +487,31 @@ export interface components {
482
487
  /** Variant */
483
488
  variant: components["schemas"]["product-variant.schema"];
484
489
  })[];
490
+ /**
491
+ * Line Items Total
492
+ * @description Total price of all line items before discounts, shipping, and taxes.
493
+ */
494
+ lineItemsTotal: components["schemas"]["money.schema"];
485
495
  /**
486
496
  * Name
487
497
  * @description Shopify name.
488
498
  */
489
499
  name: string;
500
+ /**
501
+ * Shipping Cost
502
+ * @description The total shipping cost for the order. This includes fees and any related discounts that were refunded.
503
+ */
504
+ shippingCost: components["schemas"]["money.schema"];
505
+ /**
506
+ * Taxes
507
+ * @description Total taxes applied to the order.
508
+ */
509
+ taxes: components["schemas"]["money.schema"];
510
+ /**
511
+ * Total
512
+ * @description The total price of the order, before returns. This includes taxes, discounts, and shipping costs.
513
+ */
514
+ total: components["schemas"]["money.schema"];
490
515
  };
491
516
  /**
492
517
  * Parcel Type
@@ -828,6 +853,11 @@ export interface components {
828
853
  * @description Tracking number
829
854
  */
830
855
  tracker?: string;
856
+ /**
857
+ * Tracking URL
858
+ * @description Tracking URL
859
+ */
860
+ trackingUrl?: string;
831
861
  };
832
862
  /**
833
863
  * Return status
@@ -1030,50 +1060,6 @@ export interface components {
1030
1060
  * @description Total price.
1031
1061
  */
1032
1062
  priceTotal?: components["schemas"]["money.schema"];
1033
- /**
1034
- * Products
1035
- * @description Product information.
1036
- */
1037
- products?: {
1038
- /**
1039
- * ID
1040
- * @description Identifier of the product.
1041
- */
1042
- id: string;
1043
- }[];
1044
- /**
1045
- * Variants
1046
- * @description Variant information.
1047
- */
1048
- variants?: {
1049
- /**
1050
- * Height
1051
- * @description Height of an item.
1052
- */
1053
- height?: components["schemas"]["length.schema"];
1054
- /**
1055
- * ID
1056
- * @description Identifier of the variant.
1057
- */
1058
- id: string;
1059
- /**
1060
- * Length
1061
- * @description Length of an item.
1062
- */
1063
- length?: components["schemas"]["length.schema"];
1064
- /** Title */
1065
- title?: string;
1066
- /**
1067
- * Weight
1068
- * @description Weight of an item.
1069
- */
1070
- weight?: components["schemas"]["weight.schema"];
1071
- /**
1072
- * Width
1073
- * @description Width of an item.
1074
- */
1075
- width?: components["schemas"]["length.schema"];
1076
- }[];
1077
1063
  };
1078
1064
  /**
1079
1065
  * Storefront Customer
@@ -1567,8 +1553,52 @@ export interface operations {
1567
1553
  requestBody: {
1568
1554
  content: {
1569
1555
  "application/json": {
1570
- cart: components["schemas"]["storefront-cart.schema"];
1556
+ cart?: components["schemas"]["storefront-cart.schema"];
1571
1557
  customer?: components["schemas"]["storefront-customer.schema"];
1558
+ /**
1559
+ * Products
1560
+ * @description Product information.
1561
+ */
1562
+ products?: {
1563
+ /**
1564
+ * ID
1565
+ * @description Identifier of the product.
1566
+ */
1567
+ id: string;
1568
+ }[];
1569
+ /**
1570
+ * Variants
1571
+ * @description Variant information.
1572
+ */
1573
+ variants?: {
1574
+ /**
1575
+ * Height
1576
+ * @description Height of an item.
1577
+ */
1578
+ height?: components["schemas"]["length.schema"];
1579
+ /**
1580
+ * ID
1581
+ * @description Identifier of the variant.
1582
+ */
1583
+ id: string;
1584
+ /**
1585
+ * Length
1586
+ * @description Length of an item.
1587
+ */
1588
+ length?: components["schemas"]["length.schema"];
1589
+ /** Title */
1590
+ title?: string;
1591
+ /**
1592
+ * Weight
1593
+ * @description Weight of an item.
1594
+ */
1595
+ weight?: components["schemas"]["weight.schema"];
1596
+ /**
1597
+ * Width
1598
+ * @description Width of an item.
1599
+ */
1600
+ width?: components["schemas"]["length.schema"];
1601
+ }[];
1572
1602
  };
1573
1603
  };
1574
1604
  };
package/lib/openapi.yaml CHANGED
@@ -370,6 +370,10 @@ components:
370
370
  required:
371
371
  - name
372
372
  type: object
373
+ discounts:
374
+ $ref: '#/components/schemas/money.schema'
375
+ description: The total amount discounted on the order before returns. This includes both order and line level discounts.
376
+ title: Discounts
373
377
  externalId:
374
378
  description: Shopify ID
375
379
  examples:
@@ -419,17 +423,38 @@ components:
419
423
  - fulfillmentLocationId
420
424
  title: Line items
421
425
  type: array
426
+ lineItemsTotal:
427
+ $ref: '#/components/schemas/money.schema'
428
+ description: Total price of all line items before discounts, shipping, and taxes.
429
+ title: Line Items Total
422
430
  name:
423
431
  description: Shopify name.
424
432
  examples:
425
433
  - '#123'
426
434
  title: Name
427
435
  type: string
436
+ shippingCost:
437
+ $ref: '#/components/schemas/money.schema'
438
+ description: The total shipping cost for the order. This includes fees and any related discounts that were refunded.
439
+ title: Shipping Cost
440
+ taxes:
441
+ $ref: '#/components/schemas/money.schema'
442
+ description: Total taxes applied to the order.
443
+ title: Taxes
444
+ total:
445
+ $ref: '#/components/schemas/money.schema'
446
+ description: The total price of the order, before returns. This includes taxes, discounts, and shipping costs.
447
+ title: Total
428
448
  required:
429
449
  - customer
430
450
  - id
431
451
  - items
432
452
  - name
453
+ - discounts
454
+ - lineItemsTotal
455
+ - shippingCost
456
+ - total
457
+ - taxes
433
458
  title: Order
434
459
  type: object
435
460
  parcel-type.schema:
@@ -894,6 +919,10 @@ components:
894
919
  description: Tracking number
895
920
  title: Tracker
896
921
  type: string
922
+ trackingUrl:
923
+ description: Tracking URL
924
+ title: Tracking URL
925
+ type: string
897
926
  title: Return Shipment
898
927
  type: object
899
928
  return-status-update.schema:
@@ -1168,51 +1197,6 @@ components:
1168
1197
  $ref: '#/components/schemas/money.schema'
1169
1198
  description: Total price.
1170
1199
  title: Price
1171
- products:
1172
- description: Product information.
1173
- items:
1174
- properties:
1175
- id:
1176
- description: Identifier of the product.
1177
- title: ID
1178
- type: string
1179
- required:
1180
- - id
1181
- type: object
1182
- title: Products
1183
- type: array
1184
- variants:
1185
- description: Variant information.
1186
- items:
1187
- properties:
1188
- height:
1189
- $ref: '#/components/schemas/length.schema'
1190
- description: Height of an item.
1191
- title: Height
1192
- id:
1193
- description: Identifier of the variant.
1194
- title: ID
1195
- type: string
1196
- length:
1197
- $ref: '#/components/schemas/length.schema'
1198
- description: Length of an item.
1199
- title: Length
1200
- title:
1201
- title: Title
1202
- type: string
1203
- weight:
1204
- $ref: '#/components/schemas/weight.schema'
1205
- description: Weight of an item.
1206
- title: Weight
1207
- width:
1208
- $ref: '#/components/schemas/length.schema'
1209
- description: Width of an item.
1210
- title: Width
1211
- required:
1212
- - id
1213
- type: object
1214
- title: Variants
1215
- type: array
1216
1200
  required:
1217
1201
  - lineItems
1218
1202
  title: Storefront Cart
@@ -1746,8 +1730,51 @@ paths:
1746
1730
  $ref: '#/components/schemas/storefront-cart.schema'
1747
1731
  customer:
1748
1732
  $ref: '#/components/schemas/storefront-customer.schema'
1749
- required:
1750
- - cart
1733
+ products:
1734
+ description: Product information.
1735
+ items:
1736
+ properties:
1737
+ id:
1738
+ description: Identifier of the product.
1739
+ title: ID
1740
+ type: string
1741
+ required:
1742
+ - id
1743
+ type: object
1744
+ title: Products
1745
+ type: array
1746
+ variants:
1747
+ description: Variant information.
1748
+ items:
1749
+ properties:
1750
+ height:
1751
+ $ref: '#/components/schemas/length.schema'
1752
+ description: Height of an item.
1753
+ title: Height
1754
+ id:
1755
+ description: Identifier of the variant.
1756
+ title: ID
1757
+ type: string
1758
+ length:
1759
+ $ref: '#/components/schemas/length.schema'
1760
+ description: Length of an item.
1761
+ title: Length
1762
+ title:
1763
+ title: Title
1764
+ type: string
1765
+ weight:
1766
+ $ref: '#/components/schemas/weight.schema'
1767
+ description: Weight of an item.
1768
+ title: Weight
1769
+ width:
1770
+ $ref: '#/components/schemas/length.schema'
1771
+ description: Width of an item.
1772
+ title: Width
1773
+ required:
1774
+ - id
1775
+ type: object
1776
+ title: Variants
1777
+ type: array
1751
1778
  type: object
1752
1779
  required: true
1753
1780
  responses:
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  ]
32
32
  }
33
33
  },
34
- "version": "2.2.162"
34
+ "version": "2.2.172"
35
35
  }