Skip to main content

ButtonMapItem


ButtonMapItem

Properties

action

public \Onslip360\API\ButtonMapItem\Action $action

x

public int $x

y

public int $y

amount

public float|null $amount

buttonMap

public int|null $buttonMap

discountRate

public float|null $discountRate

discountType

public \Onslip360\API\ButtonMapItem\DiscountType|null $discountType

name

public string|null $name

product

public int|null $product

theme

public int|null $theme

uri

public string|null $uri

Methods

__construct

public __construct(\Onslip360\API\ButtonMapItem\Action $action, int $x, int $y, float|null $amount = null, int|null $buttonMap = null, float|null $discountRate = null, \Onslip360\API\ButtonMapItem\DiscountType|null $discountType = null, string|null $name = null, int|null $product = null, int|null $theme = null, string|null $uri = null): mixed

Parameters:

ParameterTypeDescription
$action\Onslip360\API\ButtonMapItem\Action
$xint
$yint
$amountfloat|null
$buttonMapint|null
$discountRatefloat|null
$discountType\Onslip360\API\ButtonMapItem\DiscountType|null
$namestring|null
$productint|null
$themeint|null
$uristring|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