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

  • CartByCustomerIdGetRequest
  • CartByIdGetRequest
  • CartByKeyGetRequest
  • CartCreateRequest
  • CartDeleteByKeyRequest
  • CartDeleteRequest
  • CartQueryRequest
  • CartReplicateRequest
  • CartsEndpoint
  • CartUpdateByKeyRequest
  • CartUpdateRequest

Class CartDeleteByKeyRequest

Commercetools\Core\Request\AbstractApiRequest implements Commercetools\Core\Request\ClientRequestInterface, Commercetools\Core\Model\Common\ContextAwareInterface uses Commercetools\Core\Model\Common\ContextTrait
Extended by Commercetools\Core\Request\AbstractDeleteRequest uses Commercetools\Core\Request\ExpandTrait
Extended by Commercetools\Core\Request\AbstractDeleteByKeyRequest uses Commercetools\Core\Request\ExpandTrait
Extended by Commercetools\Core\Request\Carts\CartDeleteByKeyRequest uses Commercetools\Core\Request\DataErasureTrait, Commercetools\Core\Request\InStores\InStoreTrait
Namespace: Commercetools\Core\Request\Carts
API documentation: https://docs.commercetools.com/api/projects/carts#delete-a-cart-by-key
Located at Core/Request/Carts/CartDeleteByKeyRequest.php

Methods summary

public
# __construct( string $key, integer $version, Commercetools\Core\Model\Common\Context $context = null )

Parameters

$key
$version
$context

Overrides

Commercetools\Core\Request\AbstractDeleteRequest::__construct
public static Commercetools\Core\Request\Carts\CartDeleteByKeyRequest
# ofKeyAndVersion( string $key, integer $version, Commercetools\Core\Model\Common\Context $context = null )

Parameters

$key
$version
$context

Returns

Commercetools\Core\Request\Carts\CartDeleteByKeyRequest

Methods inherited from Commercetools\Core\Request\AbstractDeleteByKeyRequest

getKey(), setKey()

Methods inherited from Commercetools\Core\Request\AbstractDeleteRequest

getId(), getVersion(), setId(), setVersion()

Methods inherited from Commercetools\Core\Request\AbstractApiRequest

addParam(), addParamObject(), executeWithClient(), getIdentifier(), getParamCount(), map(), mapFromResponse(), mapResponse(), setExternalUserId(), setIdentifier()

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

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

Methods inherited from Commercetools\Core\Request\ClientRequestInterface

mapResult()

Methods used from Commercetools\Core\Request\DataErasureTrait

addParamObject(), dataErasure()

Methods used from Commercetools\Core\Request\InStores\InStoreTrait

inStore()

Methods used from Commercetools\Core\Request\ExpandTrait

expand()

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

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

Magic methods summary

public Commercetools\Core\Model\Cart\Cart
# mapResponse( Commercetools\Core\Response\ApiResponseInterface $response )

Parameters

$response

Returns

Commercetools\Core\Model\Cart\Cart

Overrides

Commercetools\Core\Request\AbstractApiRequest::mapResponse
public Commercetools\Core\Model\Cart\Cart
# mapFromResponse( Commercetools\Core\Response\ApiResponseInterface $response, Commercetools\Core\Model\MapperInterface $mapper = null )

Parameters

$response
$mapper

Returns

Commercetools\Core\Model\Cart\Cart

Overrides

Commercetools\Core\Request\AbstractApiRequest::mapFromResponse
public Commercetools\Core\Request\Carts\CartDeleteByKeyRequest|Commercetools\Core\Request\InStores\InStoreRequestDecorator
# inStore( $storeKey )

Parameters

$storeKey

Returns

Commercetools\Core\Request\Carts\CartDeleteByKeyRequest|Commercetools\Core\Request\InStores\InStoreRequestDecorator

Magic methods inherited from Commercetools\Core\Request\AbstractDeleteByKeyRequest

executeWithClient()

Constants summary

Constants inherited from Commercetools\Core\Request\AbstractApiRequest

EXTERNAL_USER_HEADER

PHP SDK API documentation generated by ApiGen