Skip to main content

Partial_Voucher


Partial_Voucher

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:

ParameterTypeDescription
$coupon\Onslip360\API\Partial_CouponVoucher|null|\Onslip360\Nil
$customerint|null|\Onslip360\Nil
$deletedstring|null|\Onslip360\Nil
$expiresstring|null|\Onslip360\Nil
$identifiersstring[]|null
$labelsint[]|null|\Onslip360\Nil
$payment\Onslip360\API\Partial_PaymentVoucher|null|\Onslip360\Nil
$tagsstring[]|null|\Onslip360\Nil
$type\Onslip360\API\Voucher\Type|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