ExternalPaymentVoucherTransaction
ExternalPaymentVoucherTransaction
- Full name:
\Onslip360\API\ExternalPaymentVoucherTransaction - Parent class:
\Onslip360\Onslip360Object
Properties
accountingCurrency
public string $accountingCurrency
amount
public float $amount
cashback
public float $cashback
gratuity
public float $gratuity
interactive
public bool $interactive
reason
public \Onslip360\API\ExternalPaymentVoucherTransaction\Reason $reason
requestId
public string $requestId
transactionCurrency
public string $transactionCurrency
vatAmount
public float $vatAmount
customer
public int|null $customer
exchangeRate
public float|null $exchangeRate
order
public int|null $order
paymentReference
public string|null $paymentReference
tab
public int|null $tab
transactionReference
public string|null $transactionReference
Methods
__construct
public __construct(string $accountingCurrency, float $amount, float $cashback, float $gratuity, bool $interactive, \Onslip360\API\ExternalPaymentVoucherTransaction\Reason $reason, string $requestId, string $transactionCurrency, float $vatAmount, int|null $customer = null, float|null $exchangeRate = null, int|null $order = null, string|null $paymentReference = null, int|null $tab = null, string|null $transactionReference = null): mixed
Parameters:
| Parameter | Type | Description |
|---|---|---|
$accountingCurrency | string | |
$amount | float | |
$cashback | float | |
$gratuity | float | |
$interactive | bool | |
$reason | \Onslip360\API\ExternalPaymentVoucherTransaction\Reason | |
$requestId | string | |
$transactionCurrency | string | |
$vatAmount | float | |
$customer | int|null | |
$exchangeRate | float|null | |
$order | int|null | |
$paymentReference | string|null | |
$tab | int|null | |
$transactionReference | string|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 2026-12-02