Skip to main content

Stored_Voucher


Stored_Voucher

Properties

created

public string $created

id

public int $id

identifiers

public array $identifiers

type

public \Onslip360\API\Voucher\Type $type

updated

public string $updated

coupon

public \Onslip360\API\CouponVoucher|null $coupon

customer

public int|null $customer

deleted

public string|null $deleted

expires

public string|null $expires

labels

public array|null $labels

payment

public \Onslip360\API\PaymentVoucher|null $payment

tags

public array|null $tags

updatedBy

public int|null $updatedBy

updatedFrom

public int|null $updatedFrom

Methods

__construct

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

Parameters:

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