commercetools-sdk-php-v2
master
The platform, import-api and ml-api PHP sdks generated from our api reference.
|
Public Member Functions | |
getName () | |
getSlug () | |
getCustomer () | |
getKey () | |
getDescription () | |
getAnonymousId () | |
getDeleteDaysAfterLastModification () | |
getLineItems () | |
getTextLineItems () | |
getStore () | |
getCustom () | |
setName (?LocalizedString $name) | |
setSlug (?LocalizedString $slug) | |
setCustomer (?CustomerResourceIdentifier $customer) | |
setKey (?string $key) | |
setDescription (?LocalizedString $description) | |
setAnonymousId (?string $anonymousId) | |
setDeleteDaysAfterLastModification (?int $deleteDaysAfterLastModification) | |
setLineItems (?ShoppingListLineItemDraftCollection $lineItems) | |
setTextLineItems (?TextLineItemDraftCollection $textLineItems) | |
setStore (?StoreResourceIdentifier $store) | |
setCustom (?CustomFieldsDraft $custom) | |
Public Member Functions inherited from Commercetools\Base\JsonObject | |
get (string $field) | |
with (callable $callable=null) | |
Public Attributes | |
const | FIELD_NAME = 'name' |
const | FIELD_SLUG = 'slug' |
const | FIELD_CUSTOMER = 'customer' |
const | FIELD_KEY = 'key' |
const | FIELD_DESCRIPTION = 'description' |
const | FIELD_ANONYMOUS_ID = 'anonymousId' |
const | FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification' |
const | FIELD_LINE_ITEMS = 'lineItems' |
const | FIELD_TEXT_LINE_ITEMS = 'textLineItems' |
const | FIELD_STORE = 'store' |
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) |
Definition at line 18 of file ShoppingListDraft.php.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getAnonymousId | ( | ) |
Identifies ShoppingLists belonging to an anonymous session.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getCustom | ( | ) |
Custom Fields defined for the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getCustomer | ( | ) |
The Customer the ShoppingList should be associated to.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getDeleteDaysAfterLastModification | ( | ) |
Number of days after which the ShoppingList will be automatically deleted if it has not been modified. If not set, the default value configured in the Project is used.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getDescription | ( | ) |
Description of the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getKey | ( | ) |
User-defined unique identifier for the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getLineItems | ( | ) |
Line Items (containing Products) to add to the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getName | ( | ) |
Name of the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getSlug | ( | ) |
Human-readable identifiers usually used as deep-link URL to the related ShoppingList. Each slug is unique across a Project, but a ShoppingList can have the same slug for different languages. The slug must match the pattern [a-zA-Z0-9_-]{2,256}
.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getStore | ( | ) |
Assigns the new ShoppingList to the Store.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::getTextLineItems | ( | ) |
Line Items (containing text values) to add to the ShoppingList.
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setAnonymousId | ( | ?string | $anonymousId | ) |
?string | $anonymousId |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setCustom | ( | ?CustomFieldsDraft | $custom | ) |
?CustomFieldsDraft | $custom |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setCustomer | ( | ?CustomerResourceIdentifier | $customer | ) |
?CustomerResourceIdentifier | $customer |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setDeleteDaysAfterLastModification | ( | ?int | $deleteDaysAfterLastModification | ) |
?int | $deleteDaysAfterLastModification |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setDescription | ( | ?LocalizedString | $description | ) |
?LocalizedString | $description |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setKey | ( | ?string | $key | ) |
?string | $key |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setLineItems | ( | ?ShoppingListLineItemDraftCollection | $lineItems | ) |
?ShoppingListLineItemDraftCollection | $lineItems |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setName | ( | ?LocalizedString | $name | ) |
?LocalizedString | $name |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setSlug | ( | ?LocalizedString | $slug | ) |
?LocalizedString | $slug |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setStore | ( | ?StoreResourceIdentifier | $store | ) |
?StoreResourceIdentifier | $store |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
Commercetools\Api\Models\ShoppingList\ShoppingListDraft::setTextLineItems | ( | ?TextLineItemDraftCollection | $textLineItems | ) |
?TextLineItemDraftCollection | $textLineItems |
Implemented in Commercetools\Api\Models\ShoppingList\ShoppingListDraftModel.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_ANONYMOUS_ID = 'anonymousId' |
Definition at line 25 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_CUSTOM = 'custom' |
Definition at line 30 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_CUSTOMER = 'customer' |
Definition at line 22 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_DELETE_DAYS_AFTER_LAST_MODIFICATION = 'deleteDaysAfterLastModification' |
Definition at line 26 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_DESCRIPTION = 'description' |
Definition at line 24 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_KEY = 'key' |
Definition at line 23 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_LINE_ITEMS = 'lineItems' |
Definition at line 27 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_NAME = 'name' |
Definition at line 20 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_SLUG = 'slug' |
Definition at line 21 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_STORE = 'store' |
Definition at line 29 of file ShoppingListDraft.php.
const Commercetools\Api\Models\ShoppingList\ShoppingListDraft::FIELD_TEXT_LINE_ITEMS = 'textLineItems' |
Definition at line 28 of file ShoppingListDraft.php.