Partial_Voucher
Partial_Voucher
- Full name:
\Onslip360\API\Partial_Voucher
- Parent class:
\Onslip360\Onslip360Object
Properties
coupon
public \Onslip360\API\Partial_CouponVoucher|null|\Onslip360\Nil $coupon
customer
public int|null|\Onslip360\Nil $customer
deleted
public string|null|\Onslip360\Nil $deleted
expires
public string|null|\Onslip360\Nil $expires
identifiers
public array|null $identifiers
labels
public array|null|\Onslip360\Nil $labels
payment
public \Onslip360\API\Partial_PaymentVoucher|null|\Onslip360\Nil $payment
tags
public array|null|\Onslip360\Nil $tags
type
public \Onslip360\API\Voucher\Type|null $type
Methods
__construct
public __construct(\Onslip360\API\Partial_CouponVoucher|null|\Onslip360\Nil $coupon = null, int|null|\Onslip360\Nil $customer = null, string|null|\Onslip360\Nil $deleted = null, string|null|\Onslip360\Nil $expires = null, string[]|null $identifiers = null, int[]|null|\Onslip360\Nil $labels = null, \Onslip360\API\Partial_PaymentVoucher|null|\Onslip360\Nil $payment = null, string[]|null|\Onslip360\Nil $tags = null, \Onslip360\API\Voucher\Type|null $type = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$coupon | \Onslip360\API\Partial_CouponVoucher|null|\Onslip360\Nil | |
$customer | int|null|\Onslip360\Nil | |
$deleted | string|null|\Onslip360\Nil | |
$expires | string|null|\Onslip360\Nil | |
$identifiers | string[]|null | |
$labels | int[]|null|\Onslip360\Nil | |
$payment | \Onslip360\API\Partial_PaymentVoucher|null|\Onslip360\Nil | |
$tags | string[]|null|\Onslip360\Nil | |
$type | \Onslip360\API\Voucher\Type|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