Skip to main content

ERPCreateInvoiceRequest


ERPCreateInvoiceRequest

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:

ParameterTypeDescription
$customer\Onslip360\API\Customer
$items\Onslip360\API\Item[]
$roundingfloat
$totalAmountfloat
$totalVatAmountfloat
$clientint|null
$locationint|null
$originalInvoiceIdstring|null
$ourReferencestring|null
$referencestring|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 2026-06-17