Receipt
Receipt
- Full name:
\Onslip360\API\Receipt
- Parent class:
\Onslip360\Onslip360Object
Properties
change
public float $change
id
public string $id
items
public array $items
payments
public array $payments
rounding
public float $rounding
totalAmount
public float $totalAmount
totalVatAmount
public float $totalVatAmount
type
public \Onslip360\API\Receipt\Type $type
vatSummaries
public array $vatSummaries
customer
public \Onslip360\API\Customer|null $customer
order
public int|null $order
ourReference
public string|null $ourReference
reference
public string|null $reference
tab
public int|null $tab
totalSalesAmount
public float|null $totalSalesAmount
totalSalesVatAmount
public float|null $totalSalesVatAmount
Methods
__construct
public __construct(float $change, string $id, \Onslip360\API\Item[] $items, \Onslip360\API\Payment[] $payments, float $rounding, float $totalAmount, float $totalVatAmount, \Onslip360\API\Receipt\Type $type, \Onslip360\API\VATSummary[] $vatSummaries, \Onslip360\API\Customer|null $customer = null, int|null $order = null, string|null $ourReference = null, string|null $reference = null, int|null $tab = null, float|null $totalSalesAmount = null, float|null $totalSalesVatAmount = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$change | float | |
$id | string | |
$items | \Onslip360\API\Item[] | |
$payments | \Onslip360\API\Payment[] | |
$rounding | float | |
$totalAmount | float | |
$totalVatAmount | float | |
$type | \Onslip360\API\Receipt\Type | |
$vatSummaries | \Onslip360\API\VATSummary[] | |
$customer | \Onslip360\API\Customer|null | |
$order | int|null | |
$ourReference | string|null | |
$reference | string|null | |
$tab | int|null | |
$totalSalesAmount | float|null | |
$totalSalesVatAmount | float|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