Skip to main content

ProductGroup


ProductGroup

Properties

name

public string $name

type

public \Onslip360\API\ProductGroup\Type $type

vatRate

public float $vatRate

account

public int|null $account

alert

public string|null $alert

created

public string|null $created

deleted

public string|null $deleted

discountAccount

public int|null $discountAccount

id

public int|null $id

kitchenPrinter

public \Onslip360\API\Peripheral\PeripheralFunction|null $kitchenPrinter

labels

public array|null $labels

modifiers

public array|null $modifiers

secondaryKitchenPrinterMode

public \Onslip360\API\ProductGroup\SecondaryKitchenPrinterMode|null $secondaryKitchenPrinterMode

secondaryKitchenPrinters

public array|null $secondaryKitchenPrinters

tags

public array|null $tags

undiscountable

public bool|null $undiscountable

updated

public string|null $updated

updatedBy

public int|null $updatedBy

updatedFrom

public int|null $updatedFrom

vatAccount

public int|null $vatAccount

Methods

__construct

public __construct(string $name, \Onslip360\API\ProductGroup\Type $type, float $vatRate, int|null $account = null, string|null $alert = null, string|null $created = null, string|null $deleted = null, int|null $discountAccount = null, int|null $id = null, \Onslip360\API\Peripheral\PeripheralFunction|null $kitchenPrinter = null, int[]|null $labels = null, int[]|null $modifiers = null, \Onslip360\API\ProductGroup\SecondaryKitchenPrinterMode|null $secondaryKitchenPrinterMode = null, \Onslip360\API\Peripheral\PeripheralFunction[]|null $secondaryKitchenPrinters = null, string[]|null $tags = null, bool|null $undiscountable = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null, int|null $vatAccount = null): mixed

Parameters:

ParameterTypeDescription
$namestring
$type\Onslip360\API\ProductGroup\Type
$vatRatefloat
$accountint|null
$alertstring|null
$createdstring|null
$deletedstring|null
$discountAccountint|null
$idint|null
$kitchenPrinter\Onslip360\API\Peripheral\PeripheralFunction|null
$labelsint[]|null
$modifiersint[]|null
$secondaryKitchenPrinterMode\Onslip360\API\ProductGroup\SecondaryKitchenPrinterMode|null
$secondaryKitchenPrinters\Onslip360\API\Peripheral\PeripheralFunction[]|null
$tagsstring[]|null
$undiscountablebool|null
$updatedstring|null
$updatedByint|null
$updatedFromint|null
$vatAccountint|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