Partial_Item
Partial_Item
- Full name:
\Onslip360\API\Partial_Item
- Parent class:
\Onslip360\Onslip360Object
Properties
campaign
public int|null|\Onslip360\Nil $campaign
comment
public string|null|\Onslip360\Nil $comment
description
public string|null|\Onslip360\Nil $description
descriptionT9N
public array|null|\Onslip360\Nil $descriptionT9N
discountRate
public float|null|\Onslip360\Nil $discountRate
lastKitchenTicketItem
public \Onslip360\API\Partial_Item|null|\Onslip360\Nil $lastKitchenTicketItem
metadata
public \Onslip360\API\Partial_Metadata|null|\Onslip360\Nil $metadata
modifier
public int|null|\Onslip360\Nil $modifier
modifiers
public array|null|\Onslip360\Nil $modifiers
price
public float|null|\Onslip360\Nil $price
product
public int|null|\Onslip360\Nil $product
productGroup
public int|null|\Onslip360\Nil $productGroup
productName
public string|null $productName
productNameT9N
public array|null|\Onslip360\Nil $productNameT9N
purchasePrice
public float|null|\Onslip360\Nil $purchasePrice
quantity
public float|null $quantity
stockLocation
public int|null|\Onslip360\Nil $stockLocation
subItems
public array|null|\Onslip360\Nil $subItems
tickets
public array|null|\Onslip360\Nil $tickets
type
public \Onslip360\API\ProductGroup\Type|null $type
undiscountable
public bool|null|\Onslip360\Nil $undiscountable
unit
public string|null|\Onslip360\Nil $unit
vatAmount
public float|null|\Onslip360\Nil $vatAmount
vatRate
public float|null|\Onslip360\Nil $vatRate
Methods
__construct
public __construct(int|null|\Onslip360\Nil $campaign = null, string|null|\Onslip360\Nil $comment = null, string|null|\Onslip360\Nil $description = null, string[][]|null|\Onslip360\Nil $descriptionT9N = null, float|null|\Onslip360\Nil $discountRate = null, \Onslip360\API\Partial_Item|null|\Onslip360\Nil $lastKitchenTicketItem = null, \Onslip360\API\Partial_Metadata|null|\Onslip360\Nil $metadata = null, int|null|\Onslip360\Nil $modifier = null, \Onslip360\API\Partial_ItemModifier[]|null|\Onslip360\Nil $modifiers = null, float|null|\Onslip360\Nil $price = null, int|null|\Onslip360\Nil $product = null, int|null|\Onslip360\Nil $productGroup = null, string|null $productName = null, string[][]|null|\Onslip360\Nil $productNameT9N = null, float|null|\Onslip360\Nil $purchasePrice = null, float|null $quantity = null, int|null|\Onslip360\Nil $stockLocation = null, \Onslip360\API\Partial_Item[]|null|\Onslip360\Nil $subItems = null, string[]|null|\Onslip360\Nil $tickets = null, \Onslip360\API\ProductGroup\Type|null $type = null, bool|null|\Onslip360\Nil $undiscountable = null, string|null|\Onslip360\Nil $unit = null, float|null|\Onslip360\Nil $vatAmount = null, float|null|\Onslip360\Nil $vatRate = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$campaign | int|null|\Onslip360\Nil | |
$comment | string|null|\Onslip360\Nil | |
$description | string|null|\Onslip360\Nil | |
$descriptionT9N | string[][]|null|\Onslip360\Nil | |
$discountRate | float|null|\Onslip360\Nil | |
$lastKitchenTicketItem | \Onslip360\API\Partial_Item|null|\Onslip360\Nil | |
$metadata | \Onslip360\API\Partial_Metadata|null|\Onslip360\Nil | |
$modifier | int|null|\Onslip360\Nil | |
$modifiers | \Onslip360\API\Partial_ItemModifier[]|null|\Onslip360\Nil | |
$price | float|null|\Onslip360\Nil | |
$product | int|null|\Onslip360\Nil | |
$productGroup | int|null|\Onslip360\Nil | |
$productName | string|null | |
$productNameT9N | string[][]|null|\Onslip360\Nil | |
$purchasePrice | float|null|\Onslip360\Nil | |
$quantity | float|null | |
$stockLocation | int|null|\Onslip360\Nil | |
$subItems | \Onslip360\API\Partial_Item[]|null|\Onslip360\Nil | |
$tickets | string[]|null|\Onslip360\Nil | |
$type | \Onslip360\API\ProductGroup\Type|null | |
$undiscountable | bool|null|\Onslip360\Nil | |
$unit | string|null|\Onslip360\Nil | |
$vatAmount | float|null|\Onslip360\Nil | |
$vatRate | float|null|\Onslip360\Nil |
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