Composable Commerce PHP SDKPHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • Commercetools
    • Commons
      • Helper
    • Core
      • Builder
        • Request
        • Update
      • Cache
      • Client
        • Adapter
        • OAuth
      • Error
      • Helper
        • Annotate
        • State
          • Renderer
        • Subscriber
          • Log
      • Model
        • ApiClient
        • Cart
        • CartDiscount
        • Category
        • Channel
        • Common
        • Customer
        • CustomerGroup
        • CustomField
        • CustomObject
        • DiscountCode
        • Extension
        • Inventory
        • Message
        • Order
        • OrderEdit
        • Payment
        • Product
          • Search
        • ProductDiscount
        • ProductSelection
        • ProductType
        • Project
        • Review
        • ShippingMethod
        • ShoppingList
        • State
        • Store
        • Subscription
        • TaxCategory
        • Type
        • Zone
      • Request
        • ApiClients
        • CartDiscounts
          • Command
        • Carts
          • Command
        • Categories
          • Command
        • Channels
          • Command
        • CustomerGroups
          • Command
        • Customers
          • Command
        • CustomField
          • Command
        • CustomObjects
        • DiscountCodes
          • Command
        • Extensions
          • Command
        • GraphQL
        • InStores
        • Inventory
          • Command
        • Me
          • Command
        • Messages
        • OrderEdits
          • Command
          • StagedOrder
            • Command
        • Orders
          • Command
        • Payments
          • Command
        • ProductDiscounts
          • Command
        • Products
          • Command
        • ProductSelections
          • Command
        • ProductTypes
          • Command
        • Project
          • Command
        • Query
        • Reviews
          • Command
        • ShippingMethods
          • Command
        • ShoppingLists
          • Command
        • States
          • Command
        • Stores
          • Command
        • Subscriptions
          • Command
        • TaxCategories
          • Command
        • Types
          • Command
        • Zones
          • Command
      • Response

Classes

  • Delivery
  • DeliveryCollection
  • DeliveryItem
  • DeliveryItemCollection
  • ImportOrder
  • ItemState
  • ItemStateCollection
  • LineItemImportDraft
  • LineItemImportDraftCollection
  • Order
  • OrderCollection
  • OrderReference
  • OrderState
  • Parcel
  • ParcelCollection
  • ParcelMeasurements
  • PaymentState
  • ProductVariantImportDraft
  • ReturnInfo
  • ReturnInfoCollection
  • ReturnItem
  • ReturnItemCollection
  • ReturnPaymentState
  • ReturnShipmentState
  • ShipmentState
  • ShippingInfoImportDraft
  • SyncInfo
  • SyncInfoCollection
  • TrackingData

Class Parcel

Commercetools\Core\Model\Common\AbstractJsonDeserializeObject implements Commercetools\Core\Model\Common\JsonDeserializeInterface, Commercetools\Core\Model\Common\ObjectTreeInterface uses Commercetools\Core\Model\Common\ObjectTreeTrait
Extended by Commercetools\Core\Model\Common\JsonObject implements JsonSerializable uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Model\Order\Parcel
Namespace: Commercetools\Core\Model\Order
API documentation: https://docs.commercetools.com/http-api-projects-orders.html#parcel
Located at Core/Model/Order/Parcel.php

Methods summary

Methods inherited from Commercetools\Core\Model\Common\JsonObject

__construct(), __get(), hasField(), isOptional()

Methods inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

__sleep(), fromArray(), jsonSerialize(), of(), toArray()

Methods inherited from Commercetools\Core\Model\Common\ContextAwareInterface

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods inherited from Commercetools\Core\Model\Common\ObjectTreeInterface

parentSet(), rootGet(), rootSet()

Methods used from Commercetools\Core\Model\Common\ContextTrait

getContext(), getContextCallback(), setContext(), setContextIfNull()

Methods used from Commercetools\Core\Model\Common\ObjectTreeTrait

parentSet(), rootGet(), rootSet()

Magic methods summary

public string
# getId( )

Returns

string
public Commercetools\Core\Model\Order\Parcel
# setId( string $id = null )

Parameters

$id

Returns

Commercetools\Core\Model\Order\Parcel
public Commercetools\Core\Model\Common\DateTimeDecorator
# getCreatedAt( )

Returns

Commercetools\Core\Model\Common\DateTimeDecorator
public Commercetools\Core\Model\Order\Parcel
# setCreatedAt( DateTime $createdAt = null )

Parameters

$createdAt

Returns

Commercetools\Core\Model\Order\Parcel
public Commercetools\Core\Model\Order\ParcelMeasurements
# getMeasurements( )

Returns

Commercetools\Core\Model\Order\ParcelMeasurements
public Commercetools\Core\Model\Order\Parcel
# setMeasurements( Commercetools\Core\Model\Order\ParcelMeasurements $measurements = null )

Parameters

$measurements

Returns

Commercetools\Core\Model\Order\Parcel
public Commercetools\Core\Model\Order\TrackingData
# getTrackingData( )

Returns

Commercetools\Core\Model\Order\TrackingData
public Commercetools\Core\Model\Order\Parcel
# setTrackingData( Commercetools\Core\Model\Order\TrackingData $trackingData = null )

Parameters

$trackingData

Returns

Commercetools\Core\Model\Order\Parcel
public Commercetools\Core\Model\Order\DeliveryItemCollection
# getItems( )

Returns

Commercetools\Core\Model\Order\DeliveryItemCollection
public Commercetools\Core\Model\Order\Parcel
# setItems( Commercetools\Core\Model\Order\DeliveryItemCollection $items = null )

Parameters

$items

Returns

Commercetools\Core\Model\Order\Parcel
public Commercetools\Core\Model\CustomField\CustomFieldObject
# getCustom( )

Returns

Commercetools\Core\Model\CustomField\CustomFieldObject
public Commercetools\Core\Model\Order\Parcel
# setCustom( Commercetools\Core\Model\CustomField\CustomFieldObject $custom = null )

Parameters

$custom

Returns

Commercetools\Core\Model\Order\Parcel

Constants summary

Constants inherited from Commercetools\Core\Model\Common\JsonObject

DECORATOR, ELEMENT_TYPE, INITIALIZED, OPTIONAL, TYPE

Constants inherited from Commercetools\Core\Model\Common\AbstractJsonDeserializeObject

JSON_DESERIALIZE_INTERFACE, TYPEABLE_INTERFACE

PHP SDK API documentation generated by ApiGen