Partial_CouponVoucherMetadata
Partial_CouponVoucherMetadata
- Full name:
\Onslip360\API\Partial_CouponVoucherMetadata
- Parent class:
\Onslip360\Onslip360Object
Properties
balance
public float|null|\Onslip360\Nil $balance
couponValue
public float|null|\Onslip360\Nil $couponValue
expires
public string|null|\Onslip360\Nil $expires
identifiers
public array|null|\Onslip360\Nil $identifiers
quantity
public float|null|\Onslip360\Nil $quantity
transactionDate
public string|null $transactionDate
transactionId
public string|null $transactionId
voucher
public int|null $voucher
Methods
__construct
public __construct(float|null|\Onslip360\Nil $balance = null, float|null|\Onslip360\Nil $couponValue = null, string|null|\Onslip360\Nil $expires = null, string[]|null|\Onslip360\Nil $identifiers = null, float|null|\Onslip360\Nil $quantity = null, string|null $transactionDate = null, string|null $transactionId = null, int|null $voucher = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$balance | float|null|\Onslip360\Nil | |
$couponValue | float|null|\Onslip360\Nil | |
$expires | string|null|\Onslip360\Nil | |
$identifiers | string[]|null|\Onslip360\Nil | |
$quantity | float|null|\Onslip360\Nil | |
$transactionDate | string|null | |
$transactionId | string|null | |
$voucher | 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