99 * Shipment interface.
1010 *
1111 * A shipment is a delivery package that contains products. A shipment document accompanies the shipment. This
12- * document lists the products and their quantities in the delivery package.
12+ * document lists the products and their quantities in the delivery package. This interface creates shipment
13+ * record without items quantity (total_qty) validation. To validate total shipped quantity for each item
14+ * in the order you must use newer `POST /V1/order/:orderId/ship` endpoint.
1315 * @api
1416 * @since 100.0.2
1517 */
@@ -21,75 +23,75 @@ interface ShipmentInterface extends \Magento\Framework\Api\ExtensibleDataInterfa
2123 /*
2224 * Entity ID.
2325 */
24- const ENTITY_ID = 'entity_id ' ;
26+ public const ENTITY_ID = 'entity_id ' ;
2527 /*
2628 * Store ID.
2729 */
28- const STORE_ID = 'store_id ' ;
30+ public const STORE_ID = 'store_id ' ;
2931 /*
3032 * Total weight.
3133 */
32- const TOTAL_WEIGHT = 'total_weight ' ;
34+ public const TOTAL_WEIGHT = 'total_weight ' ;
3335 /*
34- * Total quantity.
36+ * Total quantity. Can be greater than ordered quantity (not validated).
3537 */
36- const TOTAL_QTY = 'total_qty ' ;
38+ public const TOTAL_QTY = 'total_qty ' ;
3739 /*
3840 * Email sent flag.
3941 */
40- const EMAIL_SENT = 'email_sent ' ;
42+ public const EMAIL_SENT = 'email_sent ' ;
4143 /*
4244 * Order ID.
4345 */
44- const ORDER_ID = 'order_id ' ;
46+ public const ORDER_ID = 'order_id ' ;
4547 /*
4648 * Customer ID.
4749 */
48- const CUSTOMER_ID = 'customer_id ' ;
50+ public const CUSTOMER_ID = 'customer_id ' ;
4951 /*
5052 * Shipping address ID.
5153 */
52- const SHIPPING_ADDRESS_ID = 'shipping_address_id ' ;
54+ public const SHIPPING_ADDRESS_ID = 'shipping_address_id ' ;
5355 /*
5456 * Billing address ID.
5557 */
56- const BILLING_ADDRESS_ID = 'billing_address_id ' ;
58+ public const BILLING_ADDRESS_ID = 'billing_address_id ' ;
5759 /*
5860 * Shipment status.
5961 */
60- const SHIPMENT_STATUS = 'shipment_status ' ;
62+ public const SHIPMENT_STATUS = 'shipment_status ' ;
6163 /*
6264 * Increment ID.
6365 */
64- const INCREMENT_ID = 'increment_id ' ;
66+ public const INCREMENT_ID = 'increment_id ' ;
6567 /*
6668 * Created-at timestamp.
6769 */
68- const CREATED_AT = 'created_at ' ;
70+ public const CREATED_AT = 'created_at ' ;
6971 /*
7072 * Updated-at timestamp.
7173 */
72- const UPDATED_AT = 'updated_at ' ;
74+ public const UPDATED_AT = 'updated_at ' ;
7375 /*
7476 * Packages.
7577 */
76- const PACKAGES = 'packages ' ;
78+ public const PACKAGES = 'packages ' ;
7779 /*
7880 * Shipping label.
7981 */
80- const SHIPPING_LABEL = 'shipping_label ' ;
82+ public const SHIPPING_LABEL = 'shipping_label ' ;
8183 /*
8284 * Items.
8385 */
84- const ITEMS = 'items ' ;
86+ public const ITEMS = 'items ' ;
8587 /*
8688 * Tracks.
8789 */
88- const TRACKS = 'tracks ' ;
90+ public const TRACKS = 'tracks ' ;
8991 /*
9092 * Comments.
9193 */
92- const COMMENTS = 'comments ' ;
94+ public const COMMENTS = 'comments ' ;
9395
9496 /**
9597 * Gets the billing address ID for the shipment.
0 commit comments