Plentymarkets interface documentation
PriceCalculation
Contracts
PriceCalculationErrorRepositoryContract
The repository contract for the price calculation errors
Namespace
Plenty\Modules\PriceCalculation\Contracts
Methods
public get($id, $page, $itemsPerPage, $variationIds = null):Plenty\Repositories\Models\PaginatedResult
Return type: PaginatedResult
Name |
Type |
Description |
|
||
|
||
|
||
|
public getAll($columns = [], $page = 1, $itemsPerPage = 50, $variationIds = null):Plenty\Repositories\Models\PaginatedResult
Return type: PaginatedResult
Name |
Type |
Description |
|
||
|
||
|
||
|
public create($variationId, $formulaId, $uuid, $reason):void
Name |
Type |
Description |
|
||
|
||
|
||
|
public delete($ids):void
Name |
Type |
Description |
|
PriceCalculationRepositoryContract
The repository contract for the new price calculations
Namespace
Plenty\Modules\PriceCalculation\Contracts
Methods
public createOrUpdate($id, $body):array
Creates or updates a price calculation
Name |
Type |
Description |
|
||
|
public get($id, $with = []):array
Gets a price calculation by the specified UUID
Name |
Type |
Description |
|
||
|
public getList():void
Gets a list of price calculations
public delete($id):Plenty\Repositories\Models\DeleteResponse
Return type: DeleteResponse
Deletes a price calculation with the specified UUID
Name |
Type |
Description |
|
public uses($id, $type, $key):bool
Check if type & key are used in the price calculation.
Name |
Type |
Description |
|
||
|
||
|
public usesAny($id, $type, $keys):bool
Check if type & any (at least one) of the keys are used in the price calculation.
Name |
Type |
Description |
|
||
|
||
|
public getVariationsByPriceCalculationId($priceCalculationId):array
Gets variations which use the specified price calculation. The price calculation UUID is required.
Name |
Type |
Description |
|
Models
PriceCalculation
The price calculation model
Namespace
Plenty\Modules\PriceCalculation\Models
Name | Type | Description |
---|---|---|
id |
The id of a price calculation |
|
name |
The name of the a price calculation |
|
dataHash |
The md5 hash created by the content of data |
|
placeholder |
The used placeholder of every formula collected and unique |
|
createdAt |
ISO8601 timestamp represents creation date |
|
updatedAt |
ISO8601 timestamp represents last update date |
|
ranAt |
ISO8601 timestamp represents last full run |
|
data |
contains core information for formulas |
Methods
public toArray()
Returns this model as an array.