Skip to main content

PaymentSummary


PaymentSummary

Properties

amount

public float $amount

count

public int $count

method

public \Onslip360\API\PaymentMethod\Type $method

foreignAmount

public float|null $foreignAmount

gratuity

public float|null $gratuity

name

public string|null $name

paymentMethod

public int|null $paymentMethod

vatAmount

public float|null $vatAmount

vatRate

public float|null $vatRate

Methods

__construct

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

Parameters:

ParameterTypeDescription
$amountfloat
$countint
$method\Onslip360\API\PaymentMethod\Type
$foreignAmountfloat|null
$gratuityfloat|null
$namestring|null
$paymentMethodint|null
$vatAmountfloat|null
$vatRatefloat|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 2024-11-05