Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
getBillingAddressId () | |
getCreatedAt () | |
setCreatedAt ($createdAt) | |
getCustomerId () | |
getEmailSent () | |
getEntityId () | |
setEntityId ($entityId) | |
getIncrementId () | |
getOrderId () | |
getPackages () | |
setPackages (array $packages=null) | |
getShipmentStatus () | |
getShippingAddressId () | |
getShippingLabel () | |
getStoreId () | |
getTotalQty () | |
getTotalWeight () | |
getUpdatedAt () | |
getItems () | |
setItems ($items) | |
getTracks () | |
setTracks ($tracks) | |
getComments () | |
setComments ($comments=null) | |
setStoreId ($id) | |
setTotalWeight ($totalWeight) | |
setTotalQty ($qty) | |
setEmailSent ($emailSent) | |
setOrderId ($id) | |
setCustomerId ($id) | |
setShippingAddressId ($id) | |
setBillingAddressId ($id) | |
setShipmentStatus ($shipmentStatus) | |
setIncrementId ($id) | |
setShippingLabel ($shippingLabel) | |
setUpdatedAt ($timestamp) | |
getExtensionAttributes () | |
setExtensionAttributes (\Magento\Sales\Api\Data\ShipmentExtensionInterface $extensionAttributes) | |
Data Fields | |
const | ENTITY_ID = 'entity_id' |
const | STORE_ID = 'store_id' |
const | TOTAL_WEIGHT = 'total_weight' |
const | TOTAL_QTY = 'total_qty' |
const | EMAIL_SENT = 'email_sent' |
const | ORDER_ID = 'order_id' |
const | CUSTOMER_ID = 'customer_id' |
const | SHIPPING_ADDRESS_ID = 'shipping_address_id' |
const | BILLING_ADDRESS_ID = 'billing_address_id' |
const | SHIPMENT_STATUS = 'shipment_status' |
const | INCREMENT_ID = 'increment_id' |
const | CREATED_AT = 'created_at' |
const | UPDATED_AT = 'updated_at' |
const | PACKAGES = 'packages' |
const | SHIPPING_LABEL = 'shipping_label' |
const | ITEMS = 'items' |
const | TRACKS = 'tracks' |
const | COMMENTS = 'comments' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
Shipment 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. @api
Definition at line 16 of file ShipmentInterface.php.
getBillingAddressId | ( | ) |
Gets the billing address ID for the shipment.
Implemented in Shipment.
getComments | ( | ) |
Gets the comments for the shipment.
Implemented in Shipment.
getCreatedAt | ( | ) |
Gets the created-at timestamp for the shipment.
Implemented in Shipment.
getCustomerId | ( | ) |
getEmailSent | ( | ) |
Gets the email-sent flag value for the shipment.
Implemented in Shipment.
getEntityId | ( | ) |
Gets the ID for the shipment.
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implemented in Shipment.
getIncrementId | ( | ) |
getItems | ( | ) |
Gets the items for the shipment.
Implemented in Shipment.
getOrderId | ( | ) |
getPackages | ( | ) |
Gets any packages for the shipment.
Implemented in Shipment.
getShipmentStatus | ( | ) |
getShippingAddressId | ( | ) |
getShippingLabel | ( | ) |
getStoreId | ( | ) |
getTotalQty | ( | ) |
Gets the total quantity for the shipment.
Implemented in Shipment.
getTotalWeight | ( | ) |
getTracks | ( | ) |
Gets the tracks for the shipment.
Implemented in Shipment.
getUpdatedAt | ( | ) |
Gets the updated-at timestamp for the shipment.
Implemented in Shipment.
setBillingAddressId | ( | $id | ) |
Sets the billing address ID for the shipment.
int | $id |
Implemented in Shipment.
setComments | ( | $comments = null | ) |
setCreatedAt | ( | $createdAt | ) |
Sets the created-at timestamp for the shipment.
string | $createdAt | timestamp |
Implemented in Shipment.
setCustomerId | ( | $id | ) |
setEmailSent | ( | $emailSent | ) |
Sets the email-sent flag value for the shipment.
int | $emailSent |
Implemented in Shipment.
setEntityId | ( | $entityId | ) |
Sets entity ID.
int | $entityId |
setExtensionAttributes | ( | \Magento\Sales\Api\Data\ShipmentExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
\Magento\Sales\Api\Data\ShipmentExtensionInterface | $extensionAttributes |
setIncrementId | ( | $id | ) |
setItems | ( | $items | ) |
setOrderId | ( | $id | ) |
setPackages | ( | array | $packages = null | ) |
setShipmentStatus | ( | $shipmentStatus | ) |
setShippingAddressId | ( | $id | ) |
Sets the shipping address ID for the shipment.
int | $id |
Implemented in Shipment.
setShippingLabel | ( | $shippingLabel | ) |
Sets the shipping label for the shipment.
string | $shippingLabel |
Implemented in Shipment.
setStoreId | ( | $id | ) |
setTotalQty | ( | $qty | ) |
Sets the total quantity for the shipment.
float | $qty |
Implemented in Shipment.
setTotalWeight | ( | $totalWeight | ) |
Sets the total weight for the shipment.
float | $totalWeight |
Implemented in Shipment.
setTracks | ( | $tracks | ) |
setUpdatedAt | ( | $timestamp | ) |
Sets the updated-at timestamp for the shipment.
string | $timestamp |
Implemented in Shipment.
const BILLING_ADDRESS_ID = 'billing_address_id' |
Definition at line 56 of file ShipmentInterface.php.
const COMMENTS = 'comments' |
Definition at line 92 of file ShipmentInterface.php.
const CREATED_AT = 'created_at' |
Definition at line 68 of file ShipmentInterface.php.
const CUSTOMER_ID = 'customer_id' |
Definition at line 48 of file ShipmentInterface.php.
const EMAIL_SENT = 'email_sent' |
Definition at line 40 of file ShipmentInterface.php.
const ENTITY_ID = 'entity_id' |
#+ Constants for keys of data array. Identical to the name of the getter in snake case
Definition at line 24 of file ShipmentInterface.php.
const INCREMENT_ID = 'increment_id' |
Definition at line 64 of file ShipmentInterface.php.
const ITEMS = 'items' |
Definition at line 84 of file ShipmentInterface.php.
const ORDER_ID = 'order_id' |
Definition at line 44 of file ShipmentInterface.php.
const PACKAGES = 'packages' |
Definition at line 76 of file ShipmentInterface.php.
const SHIPMENT_STATUS = 'shipment_status' |
Definition at line 60 of file ShipmentInterface.php.
const SHIPPING_ADDRESS_ID = 'shipping_address_id' |
Definition at line 52 of file ShipmentInterface.php.
const SHIPPING_LABEL = 'shipping_label' |
Definition at line 80 of file ShipmentInterface.php.
const STORE_ID = 'store_id' |
Definition at line 28 of file ShipmentInterface.php.
const TOTAL_QTY = 'total_qty' |
Definition at line 36 of file ShipmentInterface.php.
const TOTAL_WEIGHT = 'total_weight' |
Definition at line 32 of file ShipmentInterface.php.
const TRACKS = 'tracks' |
Definition at line 88 of file ShipmentInterface.php.
const UPDATED_AT = 'updated_at' |
Definition at line 72 of file ShipmentInterface.php.