commercetools-sdk-php-v2
The commercetools platform, import-api and PHP sdks generated from our api reference.
Customer.php
1 <?php
2 
3 declare(strict_types=1);
10 
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 }
setShippingAddressIds(?array $shippingAddressIds)
setDateOfBirth(?DateTimeImmutable $dateOfBirth)
setAuthenticationMode(?string $authenticationMode)
setDefaultBillingAddressId(?string $defaultBillingAddressId)
setDefaultShippingAddressId(?string $defaultShippingAddressId)
setStores(?StoreKeyReferenceCollection $stores)
setCustomerGroup(?CustomerGroupReference $customerGroup)
setCustomerNumber(?string $customerNumber)
setCreatedAt(?DateTimeImmutable $createdAt)
setIsEmailVerified(?bool $isEmailVerified)
setBillingAddressIds(?array $billingAddressIds)
setLastModifiedBy(?LastModifiedBy $lastModifiedBy)
setLastModifiedAt(?DateTimeImmutable $lastModifiedAt)
setAddresses(?AddressCollection $addresses)