Plentymarkets interface documentation
ItemSet
Contracts
ItemSetComponentRepositoryContract
The contract for the item set component repository
Namespace
Plenty\Modules\ItemSet\Contracts
Methods
public show($id, $with):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Gets an item set component. The ID of the item set component must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique ID of the item set component  | 
|
  | 
public get($setId, $id):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Gets an item set component. The item ID of the item set and the component ID must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
The unique ID of the item set component  | 
public create($setConfigId, $data):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Creates an item set component.
Name  | 
Type  | 
Description  | 
  | 
The unique ID of the item set configuration  | 
|
  | 
public createComponents($setId, $data):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Creates a link between an item and a set item and adds the item as a set component.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
public updateComponents($setId, $data):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Updates the item set components of a set item.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
public update($setId, $id, $data):Plenty\Modules\ItemSet\Models\ItemSetComponent
Return type:        ItemSetComponent
Updates an item set component. The item ID of the set and the ID of the set component must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
The unique ID of the item set component  | 
|
  | 
public deleteComponents($setId, $data):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Removes all item set components from an item set.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
public delete($setId, $id):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Deletes the link between an item set component and an item set. The item ID of the set and the ID of the set component must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
The unique ID of the item set component  | 
public all():array
Lists all item set components.
public findBySetId($setId, $with):array
Lists the item set components of a set. The item ID of the item set must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
public findByItemId($itemId):array
Lists the item set components of a set. The item ID of the item set component must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set component  | 
public deleteOne($setConfigId, $itemId):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Delete an item set component. The item ID of the item set component and the set config ID must be specified.
Name  | 
Type  | 
Description  | 
  | 
||
  | 
ItemSetConfigRepositoryContract
The contract for the item set configuration repository
Namespace
Plenty\Modules\ItemSet\Contracts
Methods
public show($id):Plenty\Modules\ItemSet\Models\ItemSetConfig
Return type:        ItemSetConfig
Gets an item set. The ID of the item set configuration must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique ID of the item set configuration  | 
public create($data):Plenty\Modules\ItemSet\Models\ItemSetConfig
Return type:        ItemSetConfig
Creates an item set configuration.
Name  | 
Type  | 
Description  | 
  | 
public update($id, $data):Plenty\Modules\ItemSet\Models\ItemSetConfig
Return type:        ItemSetConfig
Updates an item set configuration. The ID of the item set configuration must be specified.
Name  | 
Type  | 
Description  | 
  | 
||
  | 
public delete($id):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Deletes an item set configuration. The ID of the item set configuration must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique ID of the item set configuration  | 
public get($setId, $setConfigId):Plenty\Modules\ItemSet\Models\ItemSetConfig
Return type:        ItemSetConfig
Gets the item set configuration of an item set.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
|
  | 
The unique ID of the item set configuration  | 
public findBySetId($setId):Plenty\Modules\ItemSet\Models\ItemSetConfig
Return type:        ItemSetConfig
Gets the item set configuration of an item set. The item ID of the set item must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the item set  | 
public calculateSetPrice($setId):void
Trigger a sales price calculation for an item set
Name  | 
Type  | 
Description  | 
  | 
ItemSetRepositoryContract
The contract for the item set repository
Namespace
Plenty\Modules\ItemSet\Contracts
Methods
public show($id):Plenty\Modules\ItemSet\Models\ItemSet
Return type:        ItemSet
Gets an item set. The item ID of the set must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the set  | 
public create($data):Plenty\Modules\ItemSet\Models\ItemSet
Return type:        ItemSet
Creates an item set.
Name  | 
Type  | 
Description  | 
  | 
public createSets($data):Plenty\Modules\ItemSet\Models\ItemSet
Return type:        ItemSet
Creates item sets.
Name  | 
Type  | 
Description  | 
  | 
public updateSets($data):array
Updates item sets.
Name  | 
Type  | 
Description  | 
  | 
public update($id, $data):Plenty\Modules\ItemSet\Models\ItemSet
Return type:        ItemSet
Updates an item set. The item ID of the set must be specified.
Name  | 
Type  | 
Description  | 
  | 
The unique item ID of the set.  | 
|
  | 
public deleteSets($data):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Deletes item sets.
Name  | 
Type  | 
Description  | 
  | 
public delete($id):Plenty\Repositories\Models\DeleteResponse
Return type:        DeleteResponse
Deletes an item set configuration. The ID must be specified.
Name  | 
Type  | 
Description  | 
  | 
public all():array
Lists all item set configurations.
Models
ItemSet
The ItemSet model.
Namespace
Plenty\Modules\ItemSet\Models
| Name | Type | Description | 
|---|---|---|
id  | 
The item ID of the item set. The ID must be unique.  | 
|
name  | 
The name of the item set. The default language of the system is used.  | 
|
categories  | 
The array with categories of the item set. The category ID key "categoryId" must be specified. Example for JSON Object: "categories":[{"categoryId":"34"},{"categoryId":"35"}]}]  | 
Methods
public toArray()
Returns this model as an array.
ItemSetComponent
The ItemSetComponent model.
Namespace
Plenty\Modules\ItemSet\Models
| Name | Type | Description | 
|---|---|---|
id  | 
The item set component ID. The ID must be unique.  | 
|
setId  | 
The item ID of the item set. The ID must be unique.  | 
|
itemId  | 
The item ID of the set component  | 
|
minimalOrderQuantity  | 
Minimum order quantity.  | 
|
maximumOrderQuantity  | 
Maximum order quantity.  | 
|
orderQuantityPossible  | 
Order quantities possible.  | 
Methods
public toArray()
Returns this model as an array.
ItemSetConfig
The ItemSetConfig model.
Namespace
Plenty\Modules\ItemSet\Models
| Name | Type | Description | 
|---|---|---|
setId  | 
set id The item ID of the item set. The ID must be unique.  | 
|
rebate  | 
The discount in percent to be subtracted from the sum of the prices of the selected set components.  | 
Methods
public toArray()
Returns this model as an array.