PaymentSummary
PaymentSummary
- Full name:
\Onslip360\API\PaymentSummary
- Parent class:
\Onslip360\Onslip360Object
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:
Parameter | Type | Description |
---|---|---|
$amount | float | |
$count | int | |
$method | \Onslip360\API\PaymentMethod\Type | |
$foreignAmount | float|null | |
$gratuity | float|null | |
$name | string|null | |
$paymentMethod | int|null | |
$vatAmount | float|null | |
$vatRate | float|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