Skip to main content

Partial_PaymentSaleSummary


Partial_PaymentSaleSummary

Properties

amount

public float|null $amount

count

public int|null $count

foreignAmount

public float|null|\Onslip360\Nil $foreignAmount

gratuity

public float|null|\Onslip360\Nil $gratuity

method

public \Onslip360\API\PaymentMethod\Type|null $method

name

public string|null|\Onslip360\Nil $name

paymentMethod

public int|null|\Onslip360\Nil $paymentMethod

vatAmount

public float|null|\Onslip360\Nil $vatAmount

vatRate

public float|null|\Onslip360\Nil $vatRate

Methods

__construct

public __construct(float|null $amount = null, int|null $count = null, float|null|\Onslip360\Nil $foreignAmount = null, float|null|\Onslip360\Nil $gratuity = null, \Onslip360\API\PaymentMethod\Type|null $method = null, string|null|\Onslip360\Nil $name = null, int|null|\Onslip360\Nil $paymentMethod = null, float|null|\Onslip360\Nil $vatAmount = null, float|null|\Onslip360\Nil $vatRate = null): mixed

Parameters:

ParameterTypeDescription
$amountfloat|null
$countint|null
$foreignAmountfloat|null|\Onslip360\Nil
$gratuityfloat|null|\Onslip360\Nil
$method\Onslip360\API\PaymentMethod\Type|null
$namestring|null|\Onslip360\Nil
$paymentMethodint|null|\Onslip360\Nil
$vatAmountfloat|null|\Onslip360\Nil
$vatRatefloat|null|\Onslip360\Nil

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 2024-11-05