commercetools-sdk-php-v2  master
The platform, import-api and ml-api PHP sdks generated from our api reference.
Public Member Functions | Public Attributes | List of all members
Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft Interface Reference
Inheritance diagram for Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft:
Commercetools\Base\JsonObject Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel

Public Member Functions

 getKey ()
 
 getGroupName ()
 
 getCustom ()
 
 setKey (?string $key)
 
 setGroupName (?string $groupName)
 
 setCustom (?CustomFieldsDraft $custom)
 
- Public Member Functions inherited from Commercetools\Base\JsonObject
 get (string $field)
 
 with (callable $callable=null)
 

Public Attributes

const FIELD_KEY = 'key'
 
const FIELD_GROUP_NAME = 'groupName'
 
const FIELD_CUSTOM = 'custom'
 

Additional Inherited Members

- Static Public Member Functions inherited from Commercetools\Base\JsonObject
static of ($data=null)
 
static fromArray (array $data=[])
 
static fromStdClass (stdClass $data=null)
 

Detailed Description

Definition at line 15 of file CustomerGroupDraft.php.

Member Function Documentation

◆ getCustom()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::getCustom ( )

Custom Fields for the CustomerGroup.

Returns
null|CustomFieldsDraft

Implemented in Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel.

◆ getGroupName()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::getGroupName ( )

Unique value which must be different from any value used for name in CustomerGroup in the Project. If not, a DuplicateField error is returned.

Returns
null|string

Implemented in Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel.

◆ getKey()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::getKey ( )

User-defined unique identifier for the CustomerGroup.

Returns
null|string

Implemented in Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel.

◆ setCustom()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::setCustom ( ?CustomFieldsDraft  $custom)
Parameters
?CustomFieldsDraft$custom

Implemented in Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel.

◆ setGroupName()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::setGroupName ( ?string  $groupName)
Parameters
?string$groupName

Implemented in Commercetools\Api\Models\CustomerGroup\CustomerGroupDraftModel.

◆ setKey()

Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::setKey ( ?string  $key)

Member Data Documentation

◆ FIELD_CUSTOM

const Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::FIELD_CUSTOM = 'custom'

Definition at line 19 of file CustomerGroupDraft.php.

◆ FIELD_GROUP_NAME

const Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::FIELD_GROUP_NAME = 'groupName'

Definition at line 18 of file CustomerGroupDraft.php.

◆ FIELD_KEY

const Commercetools\Api\Models\CustomerGroup\CustomerGroupDraft::FIELD_KEY = 'key'

Definition at line 17 of file CustomerGroupDraft.php.


The documentation for this interface was generated from the following file: