123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Api\Data;
- use Magento\Framework\Api\ExtensibleDataInterface;
- /**
- * Shipment track interface.
- *
- * A shipment is a delivery package that contains products. A shipment document accompanies the shipment. This
- * document lists the products and their quantities in the delivery package. Merchants and customers can track
- * shipments.
- * @api
- * @since 100.0.2
- */
- interface ShipmentTrackInterface extends TrackInterface, ExtensibleDataInterface
- {
- /**#@+
- * Constants for keys of data array. Identical to the name of the getter in snake case.
- */
- /*
- * Entity ID.
- */
- const ENTITY_ID = 'entity_id';
- /*
- * Parent ID.
- */
- const PARENT_ID = 'parent_id';
- /*
- * Weight.
- */
- const WEIGHT = 'weight';
- /*
- * Quantity.
- */
- const QTY = 'qty';
- /*
- * Order ID.
- */
- const ORDER_ID = 'order_id';
- /*
- * Track number.
- */
- const TRACK_NUMBER = 'track_number';
- /*
- * Description.
- */
- const DESCRIPTION = 'description';
- /*
- * Title.
- */
- const TITLE = 'title';
- /*
- * Carrier code.
- */
- const CARRIER_CODE = 'carrier_code';
- /*
- * Created-at timestamp.
- */
- const CREATED_AT = 'created_at';
- /*
- * Updated-at timestamp.
- */
- const UPDATED_AT = 'updated_at';
- /**
- * Sets the order_id for the shipment package.
- *
- * @param int $id
- * @return $this
- */
- public function setOrderId($id);
- /**
- * Gets the order_id for the shipment package.
- *
- * @return int
- */
- public function getOrderId();
- /**
- * Gets the created-at timestamp for the shipment package.
- *
- * @return string|null Created-at timestamp.
- */
- public function getCreatedAt();
- /**
- * Sets the created-at timestamp for the shipment package.
- *
- * @param string $createdAt timestamp
- * @return $this
- */
- public function setCreatedAt($createdAt);
- /**
- * Gets the ID for the shipment package.
- *
- * @return int|null Shipment package ID.
- */
- public function getEntityId();
- /**
- * Sets entity ID.
- *
- * @param int $entityId
- * @return $this
- */
- public function setEntityId($entityId);
- /**
- * Gets the parent ID for the shipment package.
- *
- * @return int Parent ID.
- */
- public function getParentId();
- /**
- * Gets the updated-at timestamp for the shipment package.
- *
- * @return string|null Updated-at timestamp.
- */
- public function getUpdatedAt();
- /**
- * Sets the updated-at timestamp for the shipment package.
- *
- * @param string $timestamp
- * @return $this
- */
- public function setUpdatedAt($timestamp);
- /**
- * Sets the parent ID for the shipment package.
- *
- * @param int $id
- * @return $this
- */
- public function setParentId($id);
- /**
- * Sets the weight for the shipment package.
- *
- * @param float $weight
- * @return $this
- */
- public function setWeight($weight);
- /**
- * Gets the weight for the shipment package.
- *
- * @return float Weight.
- */
- public function getWeight();
- /**
- * Sets the quantity for the shipment package.
- *
- * @param float $qty
- * @return $this
- */
- public function setQty($qty);
- /**
- * Gets the quantity for the shipment package.
- *
- * @return float Quantity.
- */
- public function getQty();
- /**
- * Sets the description for the shipment package.
- *
- * @param string $description
- * @return $this
- */
- public function setDescription($description);
- /**
- * Gets the description for the shipment package.
- *
- * @return string Description.
- */
- public function getDescription();
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Sales\Api\Data\ShipmentTrackExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Sales\Api\Data\ShipmentTrackExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\ShipmentTrackExtensionInterface $extensionAttributes
- );
- }
|