Skip to main content

Product


Product

Properties​

name​

public string $name

productGroup​

public int $productGroup

alert​

public string|null $alert

brand​

public string|null $brand

created​

public string|null $created

defaultQuantity​

public float|null $defaultQuantity

deleted​

public string|null $deleted

description​

public string|null $description

descriptionT9N​

public array|null $descriptionT9N

ean​

public string|null $ean

expiration​

public string|null $expiration

htmlDescription​

public string|null $htmlDescription

htmlDescriptionT9N​

public array|null $htmlDescriptionT9N

id​

public int|null $id

labels​

public array|null $labels

modelNumber​

public string|null $modelNumber

modifiers​

public array|null $modifiers

nameT9N​

public array|null $nameT9N

plu​

public int|null $plu

price​

public float|null $price

purchasePrice​

public float|null $purchasePrice

sku​

public string|null $sku

tags​

public array|null $tags

type​

public \Onslip360\API\Product\Type|null $type

unit​

public string|null $unit

updated​

public string|null $updated

updatedBy​

public int|null $updatedBy

updatedFrom​

public int|null $updatedFrom

voucherCouponProduct​

public int|null $voucherCouponProduct

voucherCouponQuantity​

public float|null $voucherCouponQuantity

voucherPaymentMethod​

public int|null $voucherPaymentMethod

Methods​

__construct​

public __construct(string $name, int $productGroup, string|null $alert = null, string|null $brand = null, string|null $created = null, float|null $defaultQuantity = null, string|null $deleted = null, string|null $description = null, string[][]|null $descriptionT9N = null, string|null $ean = null, string|null $expiration = null, string|null $htmlDescription = null, string[][]|null $htmlDescriptionT9N = null, int|null $id = null, int[]|null $labels = null, string|null $modelNumber = null, int[]|null $modifiers = null, string[][]|null $nameT9N = null, int|null $plu = null, float|null $price = null, float|null $purchasePrice = null, string|null $sku = null, string[]|null $tags = null, \Onslip360\API\Product\Type|null $type = null, string|null $unit = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null, int|null $voucherCouponProduct = null, float|null $voucherCouponQuantity = null, int|null $voucherPaymentMethod = null): mixed

Parameters:

ParameterTypeDescription
$namestring
$productGroupint
$alertstring|null
$brandstring|null
$createdstring|null
$defaultQuantityfloat|null
$deletedstring|null
$descriptionstring|null
$descriptionT9Nstring[][]|null
$eanstring|null
$expirationstring|null
$htmlDescriptionstring|null
$htmlDescriptionT9Nstring[][]|null
$idint|null
$labelsint[]|null
$modelNumberstring|null
$modifiersint[]|null
$nameT9Nstring[][]|null
$pluint|null
$pricefloat|null
$purchasePricefloat|null
$skustring|null
$tagsstring[]|null
$type\Onslip360\API\Product\Type|null
$unitstring|null
$updatedstring|null
$updatedByint|null
$updatedFromint|null
$voucherCouponProductint|null
$voucherCouponQuantityfloat|null
$voucherPaymentMethodint|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 2026-06-17