Skip to main content

ExternalReceipt


ExternalReceipt

Properties

change

public float $change

items

public array $items

payments

public array $payments

type

public \Onslip360\API\Receipt\Type $type

customer

public \Onslip360\API\Customer|null $customer

order

public int|null $order

ourReference

public string|null $ourReference

reference

public string|null $reference

rounding

public float|null $rounding

tab

public int|null $tab

Methods

__construct

public __construct(float $change, \Onslip360\API\Item[] $items, \Onslip360\API\Payment[] $payments, \Onslip360\API\Receipt\Type $type, \Onslip360\API\Customer|null $customer = null, int|null $order = null, string|null $ourReference = null, string|null $reference = null, float|null $rounding = null, int|null $tab = null): mixed

Parameters:

ParameterTypeDescription
$changefloat
$items\Onslip360\API\Item[]
$payments\Onslip360\API\Payment[]
$type\Onslip360\API\Receipt\Type
$customer\Onslip360\API\Customer|null
$orderint|null
$ourReferencestring|null
$referencestring|null
$roundingfloat|null
$tabint|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