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