Product
Product
- Full name:
\Onslip360\API\Product
- Parent class:
\Onslip360\Onslip360Object
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:
Parameter | Type | Description |
---|---|---|
$name | string | |
$productGroup | int | |
$alert | string|null | |
$brand | string|null | |
$created | string|null | |
$defaultQuantity | float|null | |
$deleted | string|null | |
$description | string|null | |
$descriptionT9N | string[][]|null | |
$ean | string|null | |
$expiration | string|null | |
$htmlDescription | string|null | |
$htmlDescriptionT9N | string[][]|null | |
$id | int|null | |
$labels | int[]|null | |
$modelNumber | string|null | |
$modifiers | int[]|null | |
$nameT9N | string[][]|null | |
$plu | int|null | |
$price | float|null | |
$purchasePrice | float|null | |
$sku | string|null | |
$tags | string[]|null | |
$type | \Onslip360\API\Product\Type|null | |
$unit | string|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|null | |
$voucherCouponProduct | int|null | |
$voucherCouponQuantity | float|null | |
$voucherPaymentMethod | 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