@redotech/redo-api-schema 2.2.178 → 2.2.187

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
@@ -620,7 +620,12 @@ export interface components {
620
620
  items: {
621
621
  /** ID */
622
622
  id: string;
623
- /** @description Price details for the exchange item */
623
+ /** @description Original price for the exchange item without discounts and taxes */
624
+ originalPrice?: {
625
+ amount?: string;
626
+ currency?: string;
627
+ };
628
+ /** @description Subtotal price for the exchange item including discounts */
624
629
  price?: {
625
630
  amount?: string;
626
631
  currency?: string;
@@ -1456,21 +1461,25 @@ export interface operations {
1456
1461
  "application/json": {
1457
1462
  /** @description Notes to send to customer. These can be rejection notes or processing notes. */
1458
1463
  customerNotes?: string;
1459
- /** @description Whether to mark the return as reviewed before processing */
1460
- markAsReviewed?: boolean;
1461
- /** @description Array of products to process with their processing or rejection details */
1464
+ /** @description Array of products to process or reject */
1462
1465
  products: ({
1463
1466
  /**
1464
- * @description Product ID
1467
+ * @description Product ID found on the return
1465
1468
  * @example 64e4d5e837572a4813b73e41
1466
1469
  */
1467
1470
  _id: string;
1471
+ /** @description Processing details. You may only have one of reject or processInput. */
1468
1472
  processInput?: ({
1469
- /** @description Adjustment amount. This will be the amount that is credited to the customer. */
1473
+ /** @description Adjustment amount. This will be the amount that is credited to the customer, overriding the original product value. */
1470
1474
  newMerchantAdjustment?: number | null;
1471
1475
  /** @description Whether to restock the item */
1472
1476
  restock?: boolean;
1473
1477
  }) | null;
1478
+ /**
1479
+ * @description Reject this product. You may only have one of reject or processInput.
1480
+ * @default false
1481
+ */
1482
+ reject?: boolean;
1474
1483
  })[];
1475
1484
  };
1476
1485
  };
package/lib/openapi.yaml CHANGED
@@ -576,8 +576,16 @@ components:
576
576
  id:
577
577
  title: ID
578
578
  type: string
579
+ originalPrice:
580
+ description: Original price for the exchange item without discounts and taxes
581
+ properties:
582
+ amount:
583
+ type: string
584
+ currency:
585
+ type: string
586
+ type: object
579
587
  price:
580
- description: Price details for the exchange item
588
+ description: Subtotal price for the exchange item including discounts
581
589
  properties:
582
590
  amount:
583
591
  type: string
@@ -1621,28 +1629,30 @@ paths:
1621
1629
  customerNotes:
1622
1630
  description: Notes to send to customer. These can be rejection notes or processing notes.
1623
1631
  type: string
1624
- markAsReviewed:
1625
- description: Whether to mark the return as reviewed before processing
1626
- type: boolean
1627
1632
  products:
1628
- description: Array of products to process with their processing or rejection details
1633
+ description: Array of products to process or reject
1629
1634
  items:
1630
1635
  properties:
1631
1636
  _id:
1632
- description: Product ID
1637
+ description: Product ID found on the return
1633
1638
  example: 64e4d5e837572a4813b73e41
1634
1639
  type: string
1635
1640
  processInput:
1641
+ description: Processing details. You may only have one of reject or processInput.
1636
1642
  nullable: true
1637
1643
  properties:
1638
1644
  newMerchantAdjustment:
1639
- description: Adjustment amount. This will be the amount that is credited to the customer.
1645
+ description: Adjustment amount. This will be the amount that is credited to the customer, overriding the original product value.
1640
1646
  nullable: true
1641
1647
  type: number
1642
1648
  restock:
1643
1649
  description: Whether to restock the item
1644
1650
  type: boolean
1645
1651
  type: object
1652
+ reject:
1653
+ default: false
1654
+ description: Reject this product. You may only have one of reject or processInput.
1655
+ type: boolean
1646
1656
  required:
1647
1657
  - _id
1648
1658
  type: object
@@ -1661,7 +1671,7 @@ paths:
1661
1671
  description: Status message
1662
1672
  examples:
1663
1673
  - Processing triggered successfully
1664
- - Successfully prepared some products to be processed
1674
+ - Successfully prepared some products to be processed, once all products are ready, processing will be triggered
1665
1675
  type: string
1666
1676
  type: object
1667
1677
  description: Processing request completed
package/package.json CHANGED
@@ -31,5 +31,5 @@
31
31
  ]
32
32
  }
33
33
  },
34
- "version": "2.2.178"
34
+ "version": "2.2.187"
35
35
  }