@redotech/redo-api-schema 2.2.178 → 2.2.182
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 +9 -5
- package/lib/openapi.yaml +9 -7
- package/package.json +1 -1
package/lib/openapi.d.ts
CHANGED
|
@@ -1456,21 +1456,25 @@ export interface operations {
|
|
|
1456
1456
|
"application/json": {
|
|
1457
1457
|
/** @description Notes to send to customer. These can be rejection notes or processing notes. */
|
|
1458
1458
|
customerNotes?: string;
|
|
1459
|
-
/** @description
|
|
1460
|
-
markAsReviewed?: boolean;
|
|
1461
|
-
/** @description Array of products to process with their processing or rejection details */
|
|
1459
|
+
/** @description Array of products to process or reject */
|
|
1462
1460
|
products: ({
|
|
1463
1461
|
/**
|
|
1464
|
-
* @description Product ID
|
|
1462
|
+
* @description Product ID found on the return
|
|
1465
1463
|
* @example 64e4d5e837572a4813b73e41
|
|
1466
1464
|
*/
|
|
1467
1465
|
_id: string;
|
|
1466
|
+
/** @description Processing details. You may only have one of reject or processInput. */
|
|
1468
1467
|
processInput?: ({
|
|
1469
|
-
/** @description Adjustment amount. This will be the amount that is credited to the customer. */
|
|
1468
|
+
/** @description Adjustment amount. This will be the amount that is credited to the customer, overriding the original product value. */
|
|
1470
1469
|
newMerchantAdjustment?: number | null;
|
|
1471
1470
|
/** @description Whether to restock the item */
|
|
1472
1471
|
restock?: boolean;
|
|
1473
1472
|
}) | null;
|
|
1473
|
+
/**
|
|
1474
|
+
* @description Reject this product. You may only have one of reject or processInput.
|
|
1475
|
+
* @default false
|
|
1476
|
+
*/
|
|
1477
|
+
reject?: boolean;
|
|
1474
1478
|
})[];
|
|
1475
1479
|
};
|
|
1476
1480
|
};
|
package/lib/openapi.yaml
CHANGED
|
@@ -1621,28 +1621,30 @@ paths:
|
|
|
1621
1621
|
customerNotes:
|
|
1622
1622
|
description: Notes to send to customer. These can be rejection notes or processing notes.
|
|
1623
1623
|
type: string
|
|
1624
|
-
markAsReviewed:
|
|
1625
|
-
description: Whether to mark the return as reviewed before processing
|
|
1626
|
-
type: boolean
|
|
1627
1624
|
products:
|
|
1628
|
-
description: Array of products to process
|
|
1625
|
+
description: Array of products to process or reject
|
|
1629
1626
|
items:
|
|
1630
1627
|
properties:
|
|
1631
1628
|
_id:
|
|
1632
|
-
description: Product ID
|
|
1629
|
+
description: Product ID found on the return
|
|
1633
1630
|
example: 64e4d5e837572a4813b73e41
|
|
1634
1631
|
type: string
|
|
1635
1632
|
processInput:
|
|
1633
|
+
description: Processing details. You may only have one of reject or processInput.
|
|
1636
1634
|
nullable: true
|
|
1637
1635
|
properties:
|
|
1638
1636
|
newMerchantAdjustment:
|
|
1639
|
-
description: Adjustment amount. This will be the amount that is credited to the customer.
|
|
1637
|
+
description: Adjustment amount. This will be the amount that is credited to the customer, overriding the original product value.
|
|
1640
1638
|
nullable: true
|
|
1641
1639
|
type: number
|
|
1642
1640
|
restock:
|
|
1643
1641
|
description: Whether to restock the item
|
|
1644
1642
|
type: boolean
|
|
1645
1643
|
type: object
|
|
1644
|
+
reject:
|
|
1645
|
+
default: false
|
|
1646
|
+
description: Reject this product. You may only have one of reject or processInput.
|
|
1647
|
+
type: boolean
|
|
1646
1648
|
required:
|
|
1647
1649
|
- _id
|
|
1648
1650
|
type: object
|
|
@@ -1661,7 +1663,7 @@ paths:
|
|
|
1661
1663
|
description: Status message
|
|
1662
1664
|
examples:
|
|
1663
1665
|
- Processing triggered successfully
|
|
1664
|
-
- Successfully prepared some products to be processed
|
|
1666
|
+
- Successfully prepared some products to be processed, once all products are ready, processing will be triggered
|
|
1665
1667
|
type: string
|
|
1666
1668
|
type: object
|
|
1667
1669
|
description: Processing request completed
|
package/package.json
CHANGED