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