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

  • DiscountCodeByIdGetRequest
  • DiscountCodeCreateRequest
  • DiscountCodeDeleteRequest
  • DiscountCodeQueryRequest
  • DiscountCodesEndpoint
  • DiscountCodeUpdateRequest

Class DiscountCodeQueryRequest

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\AbstractQueryRequest implements Commercetools\Core\Request\QueryAllRequestInterface uses Commercetools\Core\Request\QueryTrait, Commercetools\Core\Request\PageTrait, Commercetools\Core\Request\SortTrait, Commercetools\Core\Request\ExpandTrait, Commercetools\Core\Request\WithTotalTrait
Extended by Commercetools\Core\Request\DiscountCodes\DiscountCodeQueryRequest
Namespace: Commercetools\Core\Request\DiscountCodes
API documentation: https://docs.commercetools.com/http-api-projects-discountCodes.html#query-discountcodes
Located at Core/Request/DiscountCodes/DiscountCodeQueryRequest.php

Methods summary

public
# __construct( Commercetools\Core\Model\Common\Context $context = null )

Parameters

$context

Overrides

Commercetools\Core\Request\AbstractApiRequest::__construct
public static Commercetools\Core\Request\DiscountCodes\DiscountCodeQueryRequest
# of( Commercetools\Core\Model\Common\Context $context = null )

Parameters

$context

Returns

Commercetools\Core\Request\DiscountCodes\DiscountCodeQueryRequest

Methods inherited from Commercetools\Core\Request\AbstractQueryRequest

map()

Methods inherited from Commercetools\Core\Request\AbstractApiRequest

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

Methods inherited from Commercetools\Core\Request\PageRequestInterface

limit(), offset()

Methods inherited from Commercetools\Core\Request\QueryRequestInterface

where()

Methods inherited from Commercetools\Core\Request\SortRequestInterface

sort()

Methods inherited from Commercetools\Core\Request\WithTotalRequestInterface

withTotal()

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\QueryTrait

addParamObject(), where()

Methods used from Commercetools\Core\Request\PageTrait

limit(), offset()

Methods used from Commercetools\Core\Request\SortTrait

getParamCount(), sort()

Methods used from Commercetools\Core\Request\ExpandTrait

expand()

Methods used from Commercetools\Core\Request\WithTotalTrait

withTotal()

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

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

Magic methods summary

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

Parameters

$response

Returns

Commercetools\Core\Model\DiscountCode\DiscountCodeCollection

Overrides

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

Parameters

$response
$mapper

Returns

Commercetools\Core\Model\DiscountCode\DiscountCodeCollection

Overrides

Commercetools\Core\Request\AbstractApiRequest::mapFromResponse

Magic methods inherited from Commercetools\Core\Request\AbstractQueryRequest

executeWithClient()

Constants summary

Constants inherited from Commercetools\Core\Request\AbstractApiRequest

EXTERNAL_USER_HEADER

Constants inherited from Commercetools\Core\Request\PageRequestInterface

MAX_PAGE_SIZE

PHP SDK API documentation generated by ApiGen