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 MyCustomerDraft

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

Methods summary

public static Commercetools\Core\Model\Customer\MyCustomerDraft
# 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\MyCustomerDraft

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

Returns

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

Parameters

$email

Returns

Commercetools\Core\Model\Customer\MyCustomerDraft
public string
# getPassword( )

Returns

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

Parameters

$password

Returns

Commercetools\Core\Model\Customer\MyCustomerDraft
public string
# getFirstName( )

Returns

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

Parameters

$firstName

Returns

Commercetools\Core\Model\Customer\MyCustomerDraft
public string
# getMiddleName( )

Returns

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

Parameters

$middleName

Returns

Commercetools\Core\Model\Customer\MyCustomerDraft
public string
# getLastName( )

Returns

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

Parameters

$lastName

Returns

Commercetools\Core\Model\Customer\MyCustomerDraft
public string
# getTitle( )

Returns

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

Parameters

$title

Returns

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

Returns

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

Parameters

$dateOfBirth

Returns

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

Returns

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

Parameters

$companyName

Returns

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

Returns

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

Parameters

$vatId

Returns

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

Returns

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

Parameters

$addresses

Returns

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

Returns

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

Parameters

$defaultShippingAddress

Returns

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

Returns

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

Parameters

$defaultBillingAddress

Returns

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

Returns

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

Parameters

$custom

Returns

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

Returns

string

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