Skip to main content

ExternalPaymentVoucherTransaction


ExternalPaymentVoucherTransaction

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:

ParameterTypeDescription
$accountingCurrencystring
$amountfloat
$cashbackfloat
$gratuityfloat
$interactivebool
$reason\Onslip360\API\ExternalPaymentVoucherTransaction\Reason
$requestIdstring
$transactionCurrencystring
$vatAmountfloat
$customerint|null
$exchangeRatefloat|null
$orderint|null
$paymentReferencestring|null
$tabint|null
$transactionReferencestring|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 2026-12-02