Skip to main content

Payment


Payment

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:

ParameterTypeDescription
$amountfloat
$method\Onslip360\API\PaymentMethod\Type
$foreignAmountfloat|null
$gratuityfloat|null
$metadata\Onslip360\API\Metadata|null
$namestring|null
$paymentMethodint|null
$vatAmountfloat|null
$vatRatefloat|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 2024-11-05