Documentation

AddLineItem extends SharedLineItem
in package

Model of Add Line Item.

Table of Contents

$category  : string|null
$description  : string
$discount_rate  : float|null
$end_date  : string|null
$hsn  : string|null
$order  : int
$price  : float|null
$quantity  : float|null
$section  : string|null
$sku  : string|null
$start_date  : string|null
$tax  : float|null
$tax_rate  : float|null
$total  : float
$unit_of_measure  : string|null
$upc  : string|null
$weight  : string|null
__construct()  : mixed

Properties

Methods

__construct()

public __construct(array<string|int, mixed> $data[, bool $verify = true ]) : mixed
Parameters
$data : array<string|int, mixed>

json array to init the object.

$verify : bool = true

if true it throws bad argument exception if a bad argument is given.

Tags
throws
Exception

throws 'Bad Argument' if a field is not in the model.

Return values
mixed

Search results