Item
Item
- Full name:
\Onslip360\API\Item
- Parent class:
\Onslip360\Onslip360Object
Properties
productName
public string $productName
quantity
public float $quantity
type
public \Onslip360\API\ProductGroup\Type $type
campaign
public int|null $campaign
comment
public string|null $comment
description
public string|null $description
descriptionT9N
public array|null $descriptionT9N
discountRate
public float|null $discountRate
lastKitchenTicketItem
public \Onslip360\API\Item|null $lastKitchenTicketItem
metadata
public \Onslip360\API\Metadata|null $metadata
modifier
public int|null $modifier
modifiers
public array|null $modifiers
price
public float|null $price
product
public int|null $product
productGroup
public int|null $productGroup
productNameT9N
public array|null $productNameT9N
purchasePrice
public float|null $purchasePrice
stockLocation
public int|null $stockLocation
subItems
public array|null $subItems
tickets
public array|null $tickets
undiscountable
public bool|null $undiscountable
unit
public string|null $unit
vatAmount
public float|null $vatAmount
vatRate
public float|null $vatRate
Methods
__construct
public __construct(string $productName, float $quantity, \Onslip360\API\ProductGroup\Type $type, int|null $campaign = null, string|null $comment = null, string|null $description = null, string[][]|null $descriptionT9N = null, float|null $discountRate = null, \Onslip360\API\Item|null $lastKitchenTicketItem = null, \Onslip360\API\Metadata|null $metadata = null, int|null $modifier = null, \Onslip360\API\ItemModifier[]|null $modifiers = null, float|null $price = null, int|null $product = null, int|null $productGroup = null, string[][]|null $productNameT9N = null, float|null $purchasePrice = null, int|null $stockLocation = null, \Onslip360\API\Item[]|null $subItems = null, string[]|null $tickets = null, bool|null $undiscountable = null, string|null $unit = null, float|null $vatAmount = null, float|null $vatRate = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$productName | string | |
$quantity | float | |
$type | \Onslip360\API\ProductGroup\Type | |
$campaign | int|null | |
$comment | string|null | |
$description | string|null | |
$descriptionT9N | string[][]|null | |
$discountRate | float|null | |
$lastKitchenTicketItem | \Onslip360\API\Item|null | |
$metadata | \Onslip360\API\Metadata|null | |
$modifier | int|null | |
$modifiers | \Onslip360\API\ItemModifier[]|null | |
$price | float|null | |
$product | int|null | |
$productGroup | int|null | |
$productNameT9N | string[][]|null | |
$purchasePrice | float|null | |
$stockLocation | int|null | |
$subItems | \Onslip360\API\Item[]|null | |
$tickets | string[]|null | |
$undiscountable | bool|null | |
$unit | string|null | |
$vatAmount | float|null | |
$vatRate | float|null |
Inherited methods
getExtended
public getExtended(string $name): string|null|\Onslip360\Nil
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
setExtended
public setExtended(string $name, string|null|\Onslip360\Nil $value): static
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | string|null|\Onslip360\Nil |
fromJson
public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string|array|\JsonSerializable|\stdClass |
fromJsonArray
public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
- This method is static.
Parameters:
Parameter | Type | Description |
---|---|---|
$json | string[]|array[]|\JsonSerializable[]|\stdClass[] |
jsonSerialize
public jsonSerialize(): array|object
Automatically generated on 2024-11-05