commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
CustomerDraft.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
10
11
use
Commercetools\Api\Models\Cart\CartResourceIdentifier
;
12
use
Commercetools\Api\Models\Common\BaseAddressCollection
;
13
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
;
14
use
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
;
15
use
Commercetools\Api\Models\Type\CustomFieldsDraft
;
16
use
Commercetools\Base\DateTimeImmutableCollection
;
17
use
Commercetools\Base\JsonObject
;
18
use DateTimeImmutable;
19
20
interface
CustomerDraft
extends
JsonObject
21
{
22
public
const
FIELD_KEY
=
'key'
;
23
public
const
FIELD_CUSTOMER_NUMBER
=
'customerNumber'
;
24
public
const
FIELD_EXTERNAL_ID
=
'externalId'
;
25
public
const
FIELD_EMAIL
=
'email'
;
26
public
const
FIELD_PASSWORD
=
'password'
;
27
public
const
FIELD_FIRST_NAME
=
'firstName'
;
28
public
const
FIELD_LAST_NAME
=
'lastName'
;
29
public
const
FIELD_MIDDLE_NAME
=
'middleName'
;
30
public
const
FIELD_TITLE
=
'title'
;
31
public
const
FIELD_ANONYMOUS_CART_ID
=
'anonymousCartId'
;
32
public
const
FIELD_ANONYMOUS_CART
=
'anonymousCart'
;
33
public
const
FIELD_ANONYMOUS_ID
=
'anonymousId'
;
34
public
const
FIELD_DATE_OF_BIRTH
=
'dateOfBirth'
;
35
public
const
FIELD_COMPANY_NAME
=
'companyName'
;
36
public
const
FIELD_VAT_ID
=
'vatId'
;
37
public
const
FIELD_ADDRESSES
=
'addresses'
;
38
public
const
FIELD_DEFAULT_SHIPPING_ADDRESS
=
'defaultShippingAddress'
;
39
public
const
FIELD_SHIPPING_ADDRESSES
=
'shippingAddresses'
;
40
public
const
FIELD_DEFAULT_BILLING_ADDRESS
=
'defaultBillingAddress'
;
41
public
const
FIELD_BILLING_ADDRESSES
=
'billingAddresses'
;
42
public
const
FIELD_IS_EMAIL_VERIFIED
=
'isEmailVerified'
;
43
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
44
public
const
FIELD_CUSTOM
=
'custom'
;
45
public
const
FIELD_LOCALE
=
'locale'
;
46
public
const
FIELD_SALUTATION
=
'salutation'
;
47
public
const
FIELD_STORES
=
'stores'
;
48
public
const
FIELD_AUTHENTICATION_MODE
=
'authenticationMode'
;
49
58
public
function
getKey
();
59
68
public
function
getCustomerNumber
();
69
76
public
function
getExternalId
();
77
85
public
function
getEmail
();
86
94
public
function
getPassword
();
95
102
public
function
getFirstName
();
103
110
public
function
getLastName
();
111
118
public
function
getMiddleName
();
119
126
public
function
getTitle
();
127
134
public
function
getAnonymousCartId
();
135
142
public
function
getAnonymousCart
();
143
150
public
function
getAnonymousId
();
151
158
public
function
getDateOfBirth
();
159
166
public
function
getCompanyName
();
167
174
public
function
getVatId
();
175
182
public
function
getAddresses
();
183
191
public
function
getDefaultShippingAddress
();
192
200
public
function
getShippingAddresses
();
201
209
public
function
getDefaultBillingAddress
();
210
218
public
function
getBillingAddresses
();
219
227
public
function
getIsEmailVerified
();
228
235
public
function
getCustomerGroup
();
236
243
public
function
getCustom
();
244
252
public
function
getLocale
();
253
260
public
function
getSalutation
();
261
272
public
function
getStores
();
273
283
public
function
getAuthenticationMode
();
284
288
public
function
setKey
(?
string
$key): void;
289
293
public
function
setCustomerNumber
(?
string
$customerNumber): void;
294
298
public
function
setExternalId
(?
string
$externalId): void;
299
303
public
function
setEmail
(?
string
$email): void;
304
308
public
function
setPassword
(?
string
$password): void;
309
313
public
function
setFirstName
(?
string
$firstName): void;
314
318
public
function
setLastName
(?
string
$lastName): void;
319
323
public
function
setMiddleName
(?
string
$middleName): void;
324
328
public
function
setTitle
(?
string
$title): void;
329
333
public
function
setAnonymousCartId
(?
string
$anonymousCartId): void;
334
338
public
function
setAnonymousCart
(?
CartResourceIdentifier
$anonymousCart): void;
339
343
public
function
setAnonymousId
(?
string
$anonymousId): void;
344
348
public
function
setDateOfBirth
(?DateTimeImmutable $dateOfBirth): void;
349
353
public
function
setCompanyName
(?
string
$companyName): void;
354
358
public
function
setVatId
(?
string
$vatId): void;
359
363
public
function
setAddresses
(?
BaseAddressCollection
$addresses): void;
364
368
public
function
setDefaultShippingAddress
(?
int
$defaultShippingAddress): void;
369
373
public
function
setShippingAddresses
(?array $shippingAddresses): void;
374
378
public
function
setDefaultBillingAddress
(?
int
$defaultBillingAddress): void;
379
383
public
function
setBillingAddresses
(?array $billingAddresses): void;
384
388
public
function
setIsEmailVerified
(?
bool
$isEmailVerified): void;
389
393
public
function
setCustomerGroup
(?
CustomerGroupResourceIdentifier
$customerGroup): void;
394
398
public
function
setCustom
(?
CustomFieldsDraft
$custom): void;
399
403
public
function
setLocale
(?
string
$locale): void;
404
408
public
function
setSalutation
(?
string
$salutation): void;
409
413
public
function
setStores
(?
StoreResourceIdentifierCollection
$stores): void;
414
418
public
function
setAuthenticationMode
(?
string
$authenticationMode): void;
419
}
Commercetools\Api\Models\Common\BaseAddressCollection
Definition:
BaseAddressCollection.php:26
Commercetools\Api\Models\Store\StoreResourceIdentifierCollection
Definition:
StoreResourceIdentifierCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Cart\CartResourceIdentifier
Definition:
CartResourceIdentifier.php:16
Commercetools\Api\Models\Customer\CustomerDraft
Definition:
CustomerDraft.php:21
Commercetools\Api\Models\Customer\CustomerDraft\setExternalId
setExternalId(?string $externalId)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_COMPANY_NAME
const FIELD_COMPANY_NAME
Definition:
CustomerDraft.php:35
Commercetools\Api\Models\Customer\CustomerDraft\getAnonymousId
getAnonymousId()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_EMAIL
const FIELD_EMAIL
Definition:
CustomerDraft.php:25
Commercetools\Api\Models\Customer\CustomerDraft\getTitle
getTitle()
Commercetools\Api\Models\Customer\CustomerDraft\setAnonymousId
setAnonymousId(?string $anonymousId)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_AUTHENTICATION_MODE
const FIELD_AUTHENTICATION_MODE
Definition:
CustomerDraft.php:48
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_KEY
const FIELD_KEY
Definition:
CustomerDraft.php:22
Commercetools\Api\Models\Customer\CustomerDraft\setMiddleName
setMiddleName(?string $middleName)
Commercetools\Api\Models\Customer\CustomerDraft\setCustomerNumber
setCustomerNumber(?string $customerNumber)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_LAST_NAME
const FIELD_LAST_NAME
Definition:
CustomerDraft.php:28
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_ANONYMOUS_CART_ID
const FIELD_ANONYMOUS_CART_ID
Definition:
CustomerDraft.php:31
Commercetools\Api\Models\Customer\CustomerDraft\setShippingAddresses
setShippingAddresses(?array $shippingAddresses)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
CustomerDraft.php:43
Commercetools\Api\Models\Customer\CustomerDraft\getAnonymousCart
getAnonymousCart()
Commercetools\Api\Models\Customer\CustomerDraft\setSalutation
setSalutation(?string $salutation)
Commercetools\Api\Models\Customer\CustomerDraft\setPassword
setPassword(?string $password)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_SHIPPING_ADDRESSES
const FIELD_SHIPPING_ADDRESSES
Definition:
CustomerDraft.php:39
Commercetools\Api\Models\Customer\CustomerDraft\getSalutation
getSalutation()
Commercetools\Api\Models\Customer\CustomerDraft\getCustom
getCustom()
Commercetools\Api\Models\Customer\CustomerDraft\setCompanyName
setCompanyName(?string $companyName)
Commercetools\Api\Models\Customer\CustomerDraft\setCustomerGroup
setCustomerGroup(?CustomerGroupResourceIdentifier $customerGroup)
Commercetools\Api\Models\Customer\CustomerDraft\getDateOfBirth
getDateOfBirth()
Commercetools\Api\Models\Customer\CustomerDraft\setKey
setKey(?string $key)
Commercetools\Api\Models\Customer\CustomerDraft\getPassword
getPassword()
Commercetools\Api\Models\Customer\CustomerDraft\getLastName
getLastName()
Commercetools\Api\Models\Customer\CustomerDraft\getDefaultShippingAddress
getDefaultShippingAddress()
Commercetools\Api\Models\Customer\CustomerDraft\getStores
getStores()
Commercetools\Api\Models\Customer\CustomerDraft\getVatId
getVatId()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_EXTERNAL_ID
const FIELD_EXTERNAL_ID
Definition:
CustomerDraft.php:24
Commercetools\Api\Models\Customer\CustomerDraft\setAnonymousCart
setAnonymousCart(?CartResourceIdentifier $anonymousCart)
Commercetools\Api\Models\Customer\CustomerDraft\getIsEmailVerified
getIsEmailVerified()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_ANONYMOUS_CART
const FIELD_ANONYMOUS_CART
Definition:
CustomerDraft.php:32
Commercetools\Api\Models\Customer\CustomerDraft\getMiddleName
getMiddleName()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_FIRST_NAME
const FIELD_FIRST_NAME
Definition:
CustomerDraft.php:27
Commercetools\Api\Models\Customer\CustomerDraft\getDefaultBillingAddress
getDefaultBillingAddress()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_DEFAULT_BILLING_ADDRESS
const FIELD_DEFAULT_BILLING_ADDRESS
Definition:
CustomerDraft.php:40
Commercetools\Api\Models\Customer\CustomerDraft\getAddresses
getAddresses()
Commercetools\Api\Models\Customer\CustomerDraft\setDateOfBirth
setDateOfBirth(?DateTimeImmutable $dateOfBirth)
Commercetools\Api\Models\Customer\CustomerDraft\setIsEmailVerified
setIsEmailVerified(?bool $isEmailVerified)
Commercetools\Api\Models\Customer\CustomerDraft\setVatId
setVatId(?string $vatId)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_CUSTOMER_NUMBER
const FIELD_CUSTOMER_NUMBER
Definition:
CustomerDraft.php:23
Commercetools\Api\Models\Customer\CustomerDraft\getEmail
getEmail()
Commercetools\Api\Models\Customer\CustomerDraft\getShippingAddresses
getShippingAddresses()
Commercetools\Api\Models\Customer\CustomerDraft\setAnonymousCartId
setAnonymousCartId(?string $anonymousCartId)
Commercetools\Api\Models\Customer\CustomerDraft\getFirstName
getFirstName()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_STORES
const FIELD_STORES
Definition:
CustomerDraft.php:47
Commercetools\Api\Models\Customer\CustomerDraft\getKey
getKey()
Commercetools\Api\Models\Customer\CustomerDraft\getBillingAddresses
getBillingAddresses()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_DEFAULT_SHIPPING_ADDRESS
const FIELD_DEFAULT_SHIPPING_ADDRESS
Definition:
CustomerDraft.php:38
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_TITLE
const FIELD_TITLE
Definition:
CustomerDraft.php:30
Commercetools\Api\Models\Customer\CustomerDraft\setDefaultShippingAddress
setDefaultShippingAddress(?int $defaultShippingAddress)
Commercetools\Api\Models\Customer\CustomerDraft\getAuthenticationMode
getAuthenticationMode()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_ADDRESSES
const FIELD_ADDRESSES
Definition:
CustomerDraft.php:37
Commercetools\Api\Models\Customer\CustomerDraft\setStores
setStores(?StoreResourceIdentifierCollection $stores)
Commercetools\Api\Models\Customer\CustomerDraft\setTitle
setTitle(?string $title)
Commercetools\Api\Models\Customer\CustomerDraft\getAnonymousCartId
getAnonymousCartId()
Commercetools\Api\Models\Customer\CustomerDraft\setEmail
setEmail(?string $email)
Commercetools\Api\Models\Customer\CustomerDraft\setCustom
setCustom(?CustomFieldsDraft $custom)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_LOCALE
const FIELD_LOCALE
Definition:
CustomerDraft.php:45
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_DATE_OF_BIRTH
const FIELD_DATE_OF_BIRTH
Definition:
CustomerDraft.php:34
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_ANONYMOUS_ID
const FIELD_ANONYMOUS_ID
Definition:
CustomerDraft.php:33
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_PASSWORD
const FIELD_PASSWORD
Definition:
CustomerDraft.php:26
Commercetools\Api\Models\Customer\CustomerDraft\getLocale
getLocale()
Commercetools\Api\Models\Customer\CustomerDraft\setBillingAddresses
setBillingAddresses(?array $billingAddresses)
Commercetools\Api\Models\Customer\CustomerDraft\setAuthenticationMode
setAuthenticationMode(?string $authenticationMode)
Commercetools\Api\Models\Customer\CustomerDraft\setFirstName
setFirstName(?string $firstName)
Commercetools\Api\Models\Customer\CustomerDraft\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_MIDDLE_NAME
const FIELD_MIDDLE_NAME
Definition:
CustomerDraft.php:29
Commercetools\Api\Models\Customer\CustomerDraft\getExternalId
getExternalId()
Commercetools\Api\Models\Customer\CustomerDraft\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_IS_EMAIL_VERIFIED
const FIELD_IS_EMAIL_VERIFIED
Definition:
CustomerDraft.php:42
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_VAT_ID
const FIELD_VAT_ID
Definition:
CustomerDraft.php:36
Commercetools\Api\Models\Customer\CustomerDraft\getCustomerNumber
getCustomerNumber()
Commercetools\Api\Models\Customer\CustomerDraft\setLastName
setLastName(?string $lastName)
Commercetools\Api\Models\Customer\CustomerDraft\getCompanyName
getCompanyName()
Commercetools\Api\Models\Customer\CustomerDraft\setAddresses
setAddresses(?BaseAddressCollection $addresses)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
CustomerDraft.php:44
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_BILLING_ADDRESSES
const FIELD_BILLING_ADDRESSES
Definition:
CustomerDraft.php:41
Commercetools\Api\Models\Customer\CustomerDraft\setDefaultBillingAddress
setDefaultBillingAddress(?int $defaultBillingAddress)
Commercetools\Api\Models\Customer\CustomerDraft\FIELD_SALUTATION
const FIELD_SALUTATION
Definition:
CustomerDraft.php:46
Commercetools\Api\Models\CustomerGroup\CustomerGroupResourceIdentifier
Definition:
CustomerGroupResourceIdentifier.php:16
Commercetools\Api\Models\Type\CustomFieldsDraft
Definition:
CustomFieldsDraft.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1