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

  • Customer
  • CustomerCollection
  • CustomerDraft
  • CustomerReference
  • CustomerSigninResult
  • CustomerToken
  • MyCustomerDraft

Class CustomerDraft

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\Customer\CustomerDraft uses Commercetools\Core\Model\Common\LocaleTrait
Namespace: Commercetools\Core\Model\Customer
API documentation: https://docs.commercetools.com/http-api-projects-customers.html#customerdraft
Located at Core/Model/Customer/CustomerDraft.php

Methods summary

public static Commercetools\Core\Model\Customer\CustomerDraft
# ofEmailNameAndPassword( string $email, string $firstName, string $lastName, string $password, Commercetools\Core\Model\Common\Context|callable $context = null )

Parameters

$email
$firstName
$lastName
$password
$context

Returns

Commercetools\Core\Model\Customer\CustomerDraft

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

setLocale(), toJson()

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
# getCustomerNumber( )

Returns

string
public string
# getEmail( )

Returns

string
public string
# getTitle( )

Returns

string
public string
# getFirstName( )

Returns

string
public string
# getMiddleName( )

Returns

string
public string
# getLastName( )

Returns

string
public string
# getPassword( )

Returns

string
public string
# getAnonymousCartId( )

Returns

string
public string
# getExternalId( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setCustomerNumber( string $customerNumber = null )

Parameters

$customerNumber

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setEmail( string $email = null )

Parameters

$email

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setTitle( string $title = null )

Parameters

$title

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setFirstName( string $firstName = null )

Parameters

$firstName

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setMiddleName( string $middleName = null )

Parameters

$middleName

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setLastName( string $lastName = null )

Parameters

$lastName

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setPassword( string $password = null )

Parameters

$password

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setAnonymousCartId( string $anonymousCartId = null )

Parameters

$anonymousCartId

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setExternalId( string $externalId = null )

Parameters

$externalId

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Common\DateDecorator
# getDateOfBirth( )

Returns

Commercetools\Core\Model\Common\DateDecorator
public Commercetools\Core\Model\Customer\CustomerDraft
# setDateOfBirth( DateTime $dateOfBirth = null )

Parameters

$dateOfBirth

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getCompanyName( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setCompanyName( string $companyName = null )

Parameters

$companyName

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getVatId( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setVatId( string $vatId = null )

Parameters

$vatId

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public boolean
# getIsEmailVerified( )

Returns

boolean
public Commercetools\Core\Model\Customer\CustomerDraft
# setIsEmailVerified( boolean $isEmailVerified = null )

Parameters

$isEmailVerified

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\CustomerGroup\CustomerGroupReference
# getCustomerGroup( )

Returns

Commercetools\Core\Model\CustomerGroup\CustomerGroupReference
public Commercetools\Core\Model\Customer\CustomerDraft
# setCustomerGroup( Commercetools\Core\Model\CustomerGroup\CustomerGroupReference $customerGroup = null )

Parameters

$customerGroup

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Common\AddressCollection
# getAddresses( )

Returns

Commercetools\Core\Model\Common\AddressCollection
public Commercetools\Core\Model\Customer\CustomerDraft
# setAddresses( Commercetools\Core\Model\Common\AddressCollection $addresses = null )

Parameters

$addresses

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public integer
# getDefaultShippingAddress( )

Returns

integer
public Commercetools\Core\Model\Customer\CustomerDraft
# setDefaultShippingAddress( integer $defaultShippingAddress = null )

Parameters

$defaultShippingAddress

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public integer
# getDefaultBillingAddress( )

Returns

integer
public Commercetools\Core\Model\Customer\CustomerDraft
# setDefaultBillingAddress( integer $defaultBillingAddress = null )

Parameters

$defaultBillingAddress

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\CustomField\CustomFieldObjectDraft
# getCustom( )

Returns

Commercetools\Core\Model\CustomField\CustomFieldObjectDraft
public Commercetools\Core\Model\Customer\CustomerDraft
# setCustom( Commercetools\Core\Model\CustomField\CustomFieldObjectDraft $custom = null )

Parameters

$custom

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getLocale( )

Returns

string
public array
# getBillingAddresses( )

Returns

array
public Commercetools\Core\Model\Customer\CustomerDraft
# setBillingAddresses( array $billingAddresses = null )

Parameters

$billingAddresses

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public array
# getShippingAddresses( )

Returns

array
public Commercetools\Core\Model\Customer\CustomerDraft
# setShippingAddresses( array $shippingAddresses = null )

Parameters

$shippingAddresses

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getSalutation( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setSalutation( string $salutation = null )

Parameters

$salutation

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getKey( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setKey( string $key = null )

Parameters

$key

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getAnonymousId( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setAnonymousId( string $anonymousId = null )

Parameters

$anonymousId

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Store\StoreReferenceCollection
# getStores( )

Returns

Commercetools\Core\Model\Store\StoreReferenceCollection
public Commercetools\Core\Model\Customer\CustomerDraft
# setStores( Commercetools\Core\Model\Store\StoreReferenceCollection $stores = null )

Parameters

$stores

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public Commercetools\Core\Model\Cart\CartReference
# getAnonymousCart( )

Returns

Commercetools\Core\Model\Cart\CartReference
public Commercetools\Core\Model\Customer\CustomerDraft
# setAnonymousCart( Commercetools\Core\Model\Cart\CartReference $anonymousCart = null )

Parameters

$anonymousCart

Returns

Commercetools\Core\Model\Customer\CustomerDraft
public string
# getAuthenticationMode( )

Returns

string
public Commercetools\Core\Model\Customer\CustomerDraft
# setAuthenticationMode( string $authenticationMode = null )

Parameters

$authenticationMode

Returns

Commercetools\Core\Model\Customer\CustomerDraft

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