Skip to main content

Partial_ExternalReceipt


Partial_ExternalReceipt

Properties

change

public float|null $change

customer

public \Onslip360\API\Partial_Customer|null|\Onslip360\Nil $customer

items

public array|null $items

order

public int|null|\Onslip360\Nil $order

ourReference

public string|null|\Onslip360\Nil $ourReference

payments

public array|null $payments

reference

public string|null|\Onslip360\Nil $reference

rounding

public float|null|\Onslip360\Nil $rounding

tab

public int|null|\Onslip360\Nil $tab

type

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

Methods

__construct

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

Parameters:

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