Skip to main content

Partial_Item


Partial_Item

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:

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

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