Payment
Payment
- Full name:
\Onslip360\API\Payment
- Parent class:
\Onslip360\Onslip360Object
Properties
amount
public float $amount
method
public \Onslip360\API\PaymentMethod\Type $method
foreignAmount
public float|null $foreignAmount
gratuity
public float|null $gratuity
metadata
public \Onslip360\API\Metadata|null $metadata
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, \Onslip360\API\PaymentMethod\Type $method, float|null $foreignAmount = null, float|null $gratuity = null, \Onslip360\API\Metadata|null $metadata = null, string|null $name = null, int|null $paymentMethod = null, float|null $vatAmount = null, float|null $vatRate = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$amount | float | |
$method | \Onslip360\API\PaymentMethod\Type | |
$foreignAmount | float|null | |
$gratuity | float|null | |
$metadata | \Onslip360\API\Metadata|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