Skip to main content

Item


Item

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:

ParameterTypeDescription
$productNamestring
$quantityfloat
$type\Onslip360\API\ProductGroup\Type
$campaignint|null
$commentstring|null
$descriptionstring|null
$descriptionT9Nstring[][]|null
$discountRatefloat|null
$lastKitchenTicketItem\Onslip360\API\Item|null
$metadata\Onslip360\API\Metadata|null
$modifierint|null
$modifiers\Onslip360\API\ItemModifier[]|null
$pricefloat|null
$productint|null
$productGroupint|null
$productNameT9Nstring[][]|null
$purchasePricefloat|null
$stockLocationint|null
$subItems\Onslip360\API\Item[]|null
$ticketsstring[]|null
$undiscountablebool|null
$unitstring|null
$vatAmountfloat|null
$vatRatefloat|null

Inherited methods

getExtended

public getExtended(string $name): string|null|\Onslip360\Nil

Parameters:

ParameterTypeDescription
$namestring

setExtended

public setExtended(string $name, string|null|\Onslip360\Nil $value): static

Parameters:

ParameterTypeDescription
$namestring
$valuestring|null|\Onslip360\Nil

fromJson

public static fromJson(string|array|\JsonSerializable|\stdClass $json): static
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring|array|\JsonSerializable|\stdClass

fromJsonArray

public static fromJsonArray(string[]|array[]|\JsonSerializable[]|\stdClass[] $json): static[]
  • This method is static.

Parameters:

ParameterTypeDescription
$jsonstring[]|array[]|\JsonSerializable[]|\stdClass[]

jsonSerialize

public jsonSerialize(): array|object


Automatically generated on 2024-11-05