Voucher
Voucher
- Full name:
\Onslip360\API\Voucher
- Parent class:
\Onslip360\Onslip360Object
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:
Parameter | Type | Description |
---|---|---|
$identifiers | string[] | |
$type | \Onslip360\API\Voucher\Type | |
$coupon | \Onslip360\API\CouponVoucher|null | |
$created | string|null | |
$customer | int|null | |
$deleted | string|null | |
$expires | string|null | |
$id | int|null | |
$labels | int[]|null | |
$payment | \Onslip360\API\PaymentVoucher|null | |
$tags | string[]|null | |
$updated | string|null | |
$updatedBy | int|null | |
$updatedFrom | int|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 2024-11-05