ExternalReceipt
ExternalReceipt
- Full name:
\Onslip360\API\ExternalReceipt
- Parent class:
\Onslip360\Onslip360Object
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:
Parameter | Type | Description |
---|---|---|
$change | float | |
$items | \Onslip360\API\Item[] | |
$payments | \Onslip360\API\Payment[] | |
$type | \Onslip360\API\Receipt\Type | |
$customer | \Onslip360\API\Customer|null | |
$order | int|null | |
$ourReference | string|null | |
$reference | string|null | |
$rounding | float|null | |
$tab | 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