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

  • CartDiscountByIdGetRequest
  • CartDiscountByKeyGetRequest
  • CartDiscountCreateRequest
  • CartDiscountDeleteByKeyRequest
  • CartDiscountDeleteRequest
  • CartDiscountQueryRequest
  • CartDiscountsEndpoint
  • CartDiscountUpdateByKeyRequest
  • CartDiscountUpdateRequest

Class CartDiscountUpdateRequest

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\AbstractUpdateRequest uses Commercetools\Core\Request\ExpandTrait
Extended by Commercetools\Core\Request\CartDiscounts\CartDiscountUpdateRequest
Namespace: Commercetools\Core\Request\CartDiscounts
API documentation: https://docs.commercetools.com/http-api-projects-cartDiscounts.html#update-cartdiscount
Located at Core/Request/CartDiscounts/CartDiscountUpdateRequest.php

Methods summary

public
# __construct( string $id, integer $version, array $actions = [], Commercetools\Core\Model\Common\Context $context = null )

Parameters

$id
$version
$actions
$context

Overrides

Commercetools\Core\Request\AbstractUpdateRequest::__construct
public static Commercetools\Core\Request\CartDiscounts\CartDiscountUpdateRequest
# ofIdAndVersion( string $id, integer $version, Commercetools\Core\Model\Common\Context $context = null )

Parameters

$id
$version
$context

Returns

Commercetools\Core\Request\CartDiscounts\CartDiscountUpdateRequest

Methods inherited from Commercetools\Core\Request\AbstractUpdateRequest

addAction(), addActionAsArray(), getActions(), getId(), getVersion(), hasActions(), setActions(), setId(), setVersion()

Methods inherited from Commercetools\Core\Request\AbstractApiRequest

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

Methods inherited from Commercetools\Core\Request\ClientRequestInterface

mapResult()

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

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

Methods used from Commercetools\Core\Request\ExpandTrait

addParamObject(), expand()

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

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

Magic methods summary

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

Parameters

$response

Returns

Commercetools\Core\Model\CartDiscount\CartDiscount

Overrides

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

Parameters

$response
$mapper

Returns

Commercetools\Core\Model\CartDiscount\CartDiscount

Overrides

Commercetools\Core\Request\AbstractApiRequest::mapFromResponse

Constants summary

Constants inherited from Commercetools\Core\Request\AbstractUpdateRequest

ACTION, ACTIONS, ACTION_MAX_LIMIT, ACTION_WARNING_TRESHOLD, VERSION

Constants inherited from Commercetools\Core\Request\AbstractApiRequest

EXTERNAL_USER_HEADER

PHP SDK API documentation generated by ApiGen