ERPCreateInvoiceRequest
ERPCreateInvoiceRequest
- Full name:
\Onslip360\API\ERPCreateInvoiceRequest
- Parent class:
\Onslip360\Onslip360Object
Properties
customer
public \Onslip360\API\Customer $customer
items
public array $items
rounding
public float $rounding
totalAmount
public float $totalAmount
totalVatAmount
public float $totalVatAmount
client
public int|null $client
location
public int|null $location
originalInvoiceId
public string|null $originalInvoiceId
ourReference
public string|null $ourReference
reference
public string|null $reference
Methods
__construct
public __construct(\Onslip360\API\Customer $customer, \Onslip360\API\Item[] $items, float $rounding, float $totalAmount, float $totalVatAmount, int|null $client = null, int|null $location = null, string|null $originalInvoiceId = null, string|null $ourReference = null, string|null $reference = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$customer | \Onslip360\API\Customer | |
$items | \Onslip360\API\Item[] | |
$rounding | float | |
$totalAmount | float | |
$totalVatAmount | float | |
$client | int|null | |
$location | int|null | |
$originalInvoiceId | string|null | |
$ourReference | string|null | |
$reference | string|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