Skip to main content

Voucher


Voucher

Properties​

identifiers​

public array $identifiers

type​

public \Onslip360\API\Voucher\Type $type

coupon​

public \Onslip360\API\CouponVoucher|null $coupon

created​

public string|null $created

customer​

public int|null $customer

deleted​

public string|null $deleted

expires​

public string|null $expires

id​

public int|null $id

labels​

public array|null $labels

payment​

public \Onslip360\API\PaymentVoucher|null $payment

tags​

public array|null $tags

updated​

public string|null $updated

updatedBy​

public int|null $updatedBy

updatedFrom​

public int|null $updatedFrom

Methods​

__construct​

public __construct(string[] $identifiers, \Onslip360\API\Voucher\Type $type, \Onslip360\API\CouponVoucher|null $coupon = null, string|null $created = null, int|null $customer = null, string|null $deleted = null, string|null $expires = null, int|null $id = null, int[]|null $labels = null, \Onslip360\API\PaymentVoucher|null $payment = null, string[]|null $tags = null, string|null $updated = null, int|null $updatedBy = null, int|null $updatedFrom = null): mixed

Parameters:

ParameterTypeDescription
$identifiersstring[]
$type\Onslip360\API\Voucher\Type
$coupon\Onslip360\API\CouponVoucher|null
$createdstring|null
$customerint|null
$deletedstring|null
$expiresstring|null
$idint|null
$labelsint[]|null
$payment\Onslip360\API\PaymentVoucher|null
$tagsstring[]|null
$updatedstring|null
$updatedByint|null
$updatedFromint|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-06-17