Stored_ProductGroup
Stored_ProductGroup
- Full name:
\Onslip360\API\Stored_ProductGroup
- Parent class:
\Onslip360\Onslip360Object
Properties
created
public string $created
id
public int $id
name
public string $name
type
public \Onslip360\API\ProductGroup\Type $type
updated
public string $updated
vatRate
public float $vatRate
account
public int|null $account
alert
public string|null $alert
deleted
public string|null $deleted
discountAccount
public int|null $discountAccount
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
updatedBy
public int|null $updatedBy
updatedFrom
public int|null $updatedFrom
vatAccount
public int|null $vatAccount
Methods
__construct
public __construct(string $created, int $id, string $name, \Onslip360\API\ProductGroup\Type $type, string $updated, float $vatRate, int|null $account = null, string|null $alert = null, string|null $deleted = null, int|null $discountAccount = 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, int|null $updatedBy = null, int|null $updatedFrom = null, int|null $vatAccount = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$created | string | |
$id | int | |
$name | string | |
$type | \Onslip360\API\ProductGroup\Type | |
$updated | string | |
$vatRate | float | |
$account | int|null | |
$alert | string|null | |
$deleted | string|null | |
$discountAccount | int|null | |
$kitchenPrinter | \Onslip360\API\Peripheral\PeripheralFunction|null | |
$labels | int[]|null | |
$modifiers | int[]|null | |
$secondaryKitchenPrinterMode | \Onslip360\API\ProductGroup\SecondaryKitchenPrinterMode|null | |
$secondaryKitchenPrinters | \Onslip360\API\Peripheral\PeripheralFunction[]|null | |
$tags | string[]|null | |
$undiscountable | bool|null | |
$updatedBy | int|null | |
$updatedFrom | int|null | |
$vatAccount | int|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