commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
lib
commercetools-api
src
Models
Customer
Customer.php
1
<?php
2
3
declare(strict_types=1);
9
namespace
Commercetools\Api\Models\Customer
;
10
11
use
Commercetools\Api\Models\Common\AddressCollection
;
12
use
Commercetools\Api\Models\Common\BaseResource
;
13
use
Commercetools\Api\Models\Common\CreatedBy
;
14
use
Commercetools\Api\Models\Common\LastModifiedBy
;
15
use
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
;
16
use
Commercetools\Api\Models\Store\StoreKeyReferenceCollection
;
17
use
Commercetools\Api\Models\Type\CustomFields
;
18
use
Commercetools\Base\DateTimeImmutableCollection
;
19
use
Commercetools\Base\JsonObject
;
20
use DateTimeImmutable;
21
22
interface
Customer
extends
BaseResource
23
{
24
public
const
FIELD_KEY
=
'key'
;
25
public
const
FIELD_CUSTOMER_NUMBER
=
'customerNumber'
;
26
public
const
FIELD_EXTERNAL_ID
=
'externalId'
;
27
public
const
FIELD_LAST_MODIFIED_BY
=
'lastModifiedBy'
;
28
public
const
FIELD_CREATED_BY
=
'createdBy'
;
29
public
const
FIELD_EMAIL
=
'email'
;
30
public
const
FIELD_PASSWORD
=
'password'
;
31
public
const
FIELD_FIRST_NAME
=
'firstName'
;
32
public
const
FIELD_LAST_NAME
=
'lastName'
;
33
public
const
FIELD_MIDDLE_NAME
=
'middleName'
;
34
public
const
FIELD_TITLE
=
'title'
;
35
public
const
FIELD_DATE_OF_BIRTH
=
'dateOfBirth'
;
36
public
const
FIELD_COMPANY_NAME
=
'companyName'
;
37
public
const
FIELD_VAT_ID
=
'vatId'
;
38
public
const
FIELD_ADDRESSES
=
'addresses'
;
39
public
const
FIELD_DEFAULT_SHIPPING_ADDRESS_ID
=
'defaultShippingAddressId'
;
40
public
const
FIELD_SHIPPING_ADDRESS_IDS
=
'shippingAddressIds'
;
41
public
const
FIELD_DEFAULT_BILLING_ADDRESS_ID
=
'defaultBillingAddressId'
;
42
public
const
FIELD_BILLING_ADDRESS_IDS
=
'billingAddressIds'
;
43
public
const
FIELD_IS_EMAIL_VERIFIED
=
'isEmailVerified'
;
44
public
const
FIELD_CUSTOMER_GROUP
=
'customerGroup'
;
45
public
const
FIELD_CUSTOM
=
'custom'
;
46
public
const
FIELD_LOCALE
=
'locale'
;
47
public
const
FIELD_SALUTATION
=
'salutation'
;
48
public
const
FIELD_STORES
=
'stores'
;
49
public
const
FIELD_AUTHENTICATION_MODE
=
'authenticationMode'
;
50
57
public
function
getId
();
58
65
public
function
getVersion
();
66
73
public
function
getKey
();
74
82
public
function
getCustomerNumber
();
83
90
public
function
getExternalId
();
91
98
public
function
getCreatedAt
();
99
106
public
function
getLastModifiedAt
();
107
114
public
function
getLastModifiedBy
();
115
122
public
function
getCreatedBy
();
123
131
public
function
getEmail
();
132
139
public
function
getPassword
();
140
147
public
function
getFirstName
();
148
155
public
function
getLastName
();
156
163
public
function
getMiddleName
();
164
171
public
function
getTitle
();
172
179
public
function
getDateOfBirth
();
180
187
public
function
getCompanyName
();
188
195
public
function
getVatId
();
196
203
public
function
getAddresses
();
204
211
public
function
getDefaultShippingAddressId
();
212
219
public
function
getShippingAddressIds
();
220
227
public
function
getDefaultBillingAddressId
();
228
235
public
function
getBillingAddressIds
();
236
243
public
function
getIsEmailVerified
();
244
251
public
function
getCustomerGroup
();
252
259
public
function
getCustom
();
260
267
public
function
getLocale
();
268
275
public
function
getSalutation
();
276
287
public
function
getStores
();
288
295
public
function
getAuthenticationMode
();
296
300
public
function
setId
(?
string
$id): void;
301
305
public
function
setVersion
(?
int
$version): void;
306
310
public
function
setKey
(?
string
$key): void;
311
315
public
function
setCustomerNumber
(?
string
$customerNumber): void;
316
320
public
function
setExternalId
(?
string
$externalId): void;
321
325
public
function
setCreatedAt
(?DateTimeImmutable $createdAt): void;
326
330
public
function
setLastModifiedAt
(?DateTimeImmutable $lastModifiedAt): void;
331
335
public
function
setLastModifiedBy
(?
LastModifiedBy
$lastModifiedBy): void;
336
340
public
function
setCreatedBy
(?
CreatedBy
$createdBy): void;
341
345
public
function
setEmail
(?
string
$email): void;
346
350
public
function
setPassword
(?
string
$password): void;
351
355
public
function
setFirstName
(?
string
$firstName): void;
356
360
public
function
setLastName
(?
string
$lastName): void;
361
365
public
function
setMiddleName
(?
string
$middleName): void;
366
370
public
function
setTitle
(?
string
$title): void;
371
375
public
function
setDateOfBirth
(?DateTimeImmutable $dateOfBirth): void;
376
380
public
function
setCompanyName
(?
string
$companyName): void;
381
385
public
function
setVatId
(?
string
$vatId): void;
386
390
public
function
setAddresses
(?
AddressCollection
$addresses): void;
391
395
public
function
setDefaultShippingAddressId
(?
string
$defaultShippingAddressId): void;
396
400
public
function
setShippingAddressIds
(?array $shippingAddressIds): void;
401
405
public
function
setDefaultBillingAddressId
(?
string
$defaultBillingAddressId): void;
406
410
public
function
setBillingAddressIds
(?array $billingAddressIds): void;
411
415
public
function
setIsEmailVerified
(?
bool
$isEmailVerified): void;
416
420
public
function
setCustomerGroup
(?
CustomerGroupReference
$customerGroup): void;
421
425
public
function
setCustom
(?
CustomFields
$custom): void;
426
430
public
function
setLocale
(?
string
$locale): void;
431
435
public
function
setSalutation
(?
string
$salutation): void;
436
440
public
function
setStores
(?
StoreKeyReferenceCollection
$stores): void;
441
445
public
function
setAuthenticationMode
(?
string
$authenticationMode): void;
446
}
Commercetools\Api\Models\Common\AddressCollection
Definition:
AddressCollection.php:22
Commercetools\Api\Models\Store\StoreKeyReferenceCollection
Definition:
StoreKeyReferenceCollection.php:22
Commercetools\Base\DateTimeImmutableCollection
Definition:
DateTimeImmutableCollection.php:21
Commercetools\Api\Models\Common\BaseResource
Definition:
BaseResource.php:249
Commercetools\Api\Models\Common\CreatedBy
Definition:
CreatedBy.php:16
Commercetools\Api\Models\Common\LastModifiedBy
Definition:
LastModifiedBy.php:16
Commercetools\Api\Models\Customer\Customer
Definition:
Customer.php:23
Commercetools\Api\Models\Customer\Customer\setShippingAddressIds
setShippingAddressIds(?array $shippingAddressIds)
Commercetools\Api\Models\Customer\Customer\getLastName
getLastName()
Commercetools\Api\Models\Customer\Customer\getExternalId
getExternalId()
Commercetools\Api\Models\Customer\Customer\setFirstName
setFirstName(?string $firstName)
Commercetools\Api\Models\Customer\Customer\FIELD_DATE_OF_BIRTH
const FIELD_DATE_OF_BIRTH
Definition:
Customer.php:35
Commercetools\Api\Models\Customer\Customer\setSalutation
setSalutation(?string $salutation)
Commercetools\Api\Models\Customer\Customer\FIELD_CREATED_BY
const FIELD_CREATED_BY
Definition:
Customer.php:28
Commercetools\Api\Models\Customer\Customer\setVatId
setVatId(?string $vatId)
Commercetools\Api\Models\Customer\Customer\setExternalId
setExternalId(?string $externalId)
Commercetools\Api\Models\Customer\Customer\getCreatedAt
getCreatedAt()
Commercetools\Api\Models\Customer\Customer\FIELD_EMAIL
const FIELD_EMAIL
Definition:
Customer.php:29
Commercetools\Api\Models\Customer\Customer\getCustom
getCustom()
Commercetools\Api\Models\Customer\Customer\setLocale
setLocale(?string $locale)
Commercetools\Api\Models\Customer\Customer\getAddresses
getAddresses()
Commercetools\Api\Models\Customer\Customer\FIELD_STORES
const FIELD_STORES
Definition:
Customer.php:48
Commercetools\Api\Models\Customer\Customer\setVersion
setVersion(?int $version)
Commercetools\Api\Models\Customer\Customer\FIELD_COMPANY_NAME
const FIELD_COMPANY_NAME
Definition:
Customer.php:36
Commercetools\Api\Models\Customer\Customer\FIELD_IS_EMAIL_VERIFIED
const FIELD_IS_EMAIL_VERIFIED
Definition:
Customer.php:43
Commercetools\Api\Models\Customer\Customer\FIELD_FIRST_NAME
const FIELD_FIRST_NAME
Definition:
Customer.php:31
Commercetools\Api\Models\Customer\Customer\setDateOfBirth
setDateOfBirth(?DateTimeImmutable $dateOfBirth)
Commercetools\Api\Models\Customer\Customer\getIsEmailVerified
getIsEmailVerified()
Commercetools\Api\Models\Customer\Customer\setAuthenticationMode
setAuthenticationMode(?string $authenticationMode)
Commercetools\Api\Models\Customer\Customer\getDefaultBillingAddressId
getDefaultBillingAddressId()
Commercetools\Api\Models\Customer\Customer\getEmail
getEmail()
Commercetools\Api\Models\Customer\Customer\FIELD_ADDRESSES
const FIELD_ADDRESSES
Definition:
Customer.php:38
Commercetools\Api\Models\Customer\Customer\setKey
setKey(?string $key)
Commercetools\Api\Models\Customer\Customer\getDateOfBirth
getDateOfBirth()
Commercetools\Api\Models\Customer\Customer\FIELD_DEFAULT_BILLING_ADDRESS_ID
const FIELD_DEFAULT_BILLING_ADDRESS_ID
Definition:
Customer.php:41
Commercetools\Api\Models\Customer\Customer\getAuthenticationMode
getAuthenticationMode()
Commercetools\Api\Models\Customer\Customer\setLastName
setLastName(?string $lastName)
Commercetools\Api\Models\Customer\Customer\FIELD_CUSTOM
const FIELD_CUSTOM
Definition:
Customer.php:45
Commercetools\Api\Models\Customer\Customer\setTitle
setTitle(?string $title)
Commercetools\Api\Models\Customer\Customer\FIELD_SHIPPING_ADDRESS_IDS
const FIELD_SHIPPING_ADDRESS_IDS
Definition:
Customer.php:40
Commercetools\Api\Models\Customer\Customer\getLocale
getLocale()
Commercetools\Api\Models\Customer\Customer\setMiddleName
setMiddleName(?string $middleName)
Commercetools\Api\Models\Customer\Customer\getMiddleName
getMiddleName()
Commercetools\Api\Models\Customer\Customer\setDefaultBillingAddressId
setDefaultBillingAddressId(?string $defaultBillingAddressId)
Commercetools\Api\Models\Customer\Customer\getTitle
getTitle()
Commercetools\Api\Models\Customer\Customer\FIELD_TITLE
const FIELD_TITLE
Definition:
Customer.php:34
Commercetools\Api\Models\Customer\Customer\getCustomerNumber
getCustomerNumber()
Commercetools\Api\Models\Customer\Customer\FIELD_VAT_ID
const FIELD_VAT_ID
Definition:
Customer.php:37
Commercetools\Api\Models\Customer\Customer\FIELD_LAST_MODIFIED_BY
const FIELD_LAST_MODIFIED_BY
Definition:
Customer.php:27
Commercetools\Api\Models\Customer\Customer\setDefaultShippingAddressId
setDefaultShippingAddressId(?string $defaultShippingAddressId)
Commercetools\Api\Models\Customer\Customer\getCompanyName
getCompanyName()
Commercetools\Api\Models\Customer\Customer\FIELD_CUSTOMER_GROUP
const FIELD_CUSTOMER_GROUP
Definition:
Customer.php:44
Commercetools\Api\Models\Customer\Customer\getLastModifiedAt
getLastModifiedAt()
Commercetools\Api\Models\Customer\Customer\setStores
setStores(?StoreKeyReferenceCollection $stores)
Commercetools\Api\Models\Customer\Customer\setPassword
setPassword(?string $password)
Commercetools\Api\Models\Customer\Customer\getBillingAddressIds
getBillingAddressIds()
Commercetools\Api\Models\Customer\Customer\setCustomerGroup
setCustomerGroup(?CustomerGroupReference $customerGroup)
Commercetools\Api\Models\Customer\Customer\setCustomerNumber
setCustomerNumber(?string $customerNumber)
Commercetools\Api\Models\Customer\Customer\getPassword
getPassword()
Commercetools\Api\Models\Customer\Customer\setCustom
setCustom(?CustomFields $custom)
Commercetools\Api\Models\Customer\Customer\FIELD_KEY
const FIELD_KEY
Definition:
Customer.php:24
Commercetools\Api\Models\Customer\Customer\FIELD_DEFAULT_SHIPPING_ADDRESS_ID
const FIELD_DEFAULT_SHIPPING_ADDRESS_ID
Definition:
Customer.php:39
Commercetools\Api\Models\Customer\Customer\setCreatedBy
setCreatedBy(?CreatedBy $createdBy)
Commercetools\Api\Models\Customer\Customer\FIELD_LAST_NAME
const FIELD_LAST_NAME
Definition:
Customer.php:32
Commercetools\Api\Models\Customer\Customer\FIELD_AUTHENTICATION_MODE
const FIELD_AUTHENTICATION_MODE
Definition:
Customer.php:49
Commercetools\Api\Models\Customer\Customer\setCreatedAt
setCreatedAt(?DateTimeImmutable $createdAt)
Commercetools\Api\Models\Customer\Customer\setIsEmailVerified
setIsEmailVerified(?bool $isEmailVerified)
Commercetools\Api\Models\Customer\Customer\setBillingAddressIds
setBillingAddressIds(?array $billingAddressIds)
Commercetools\Api\Models\Customer\Customer\getKey
getKey()
Commercetools\Api\Models\Customer\Customer\FIELD_BILLING_ADDRESS_IDS
const FIELD_BILLING_ADDRESS_IDS
Definition:
Customer.php:42
Commercetools\Api\Models\Customer\Customer\getId
getId()
Commercetools\Api\Models\Customer\Customer\getDefaultShippingAddressId
getDefaultShippingAddressId()
Commercetools\Api\Models\Customer\Customer\FIELD_LOCALE
const FIELD_LOCALE
Definition:
Customer.php:46
Commercetools\Api\Models\Customer\Customer\setLastModifiedBy
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
Commercetools\Api\Models\Customer\Customer\FIELD_CUSTOMER_NUMBER
const FIELD_CUSTOMER_NUMBER
Definition:
Customer.php:25
Commercetools\Api\Models\Customer\Customer\getVatId
getVatId()
Commercetools\Api\Models\Customer\Customer\getCustomerGroup
getCustomerGroup()
Commercetools\Api\Models\Customer\Customer\getSalutation
getSalutation()
Commercetools\Api\Models\Customer\Customer\getLastModifiedBy
getLastModifiedBy()
Commercetools\Api\Models\Customer\Customer\getVersion
getVersion()
Commercetools\Api\Models\Customer\Customer\setLastModifiedAt
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
Commercetools\Api\Models\Customer\Customer\FIELD_MIDDLE_NAME
const FIELD_MIDDLE_NAME
Definition:
Customer.php:33
Commercetools\Api\Models\Customer\Customer\getFirstName
getFirstName()
Commercetools\Api\Models\Customer\Customer\FIELD_SALUTATION
const FIELD_SALUTATION
Definition:
Customer.php:47
Commercetools\Api\Models\Customer\Customer\getCreatedBy
getCreatedBy()
Commercetools\Api\Models\Customer\Customer\setCompanyName
setCompanyName(?string $companyName)
Commercetools\Api\Models\Customer\Customer\setId
setId(?string $id)
Commercetools\Api\Models\Customer\Customer\FIELD_PASSWORD
const FIELD_PASSWORD
Definition:
Customer.php:30
Commercetools\Api\Models\Customer\Customer\getStores
getStores()
Commercetools\Api\Models\Customer\Customer\FIELD_EXTERNAL_ID
const FIELD_EXTERNAL_ID
Definition:
Customer.php:26
Commercetools\Api\Models\Customer\Customer\getShippingAddressIds
getShippingAddressIds()
Commercetools\Api\Models\Customer\Customer\setAddresses
setAddresses(?AddressCollection $addresses)
Commercetools\Api\Models\Customer\Customer\setEmail
setEmail(?string $email)
Commercetools\Api\Models\CustomerGroup\CustomerGroupReference
Definition:
CustomerGroupReference.php:16
Commercetools\Api\Models\Type\CustomFields
Definition:
CustomFields.php:15
Commercetools\Base\JsonObject
Definition:
JsonObject.php:15
Commercetools\Api\Models\Customer
Definition:
Customer.php:9
Generated by
1.9.1