Skip to main content

Metadata


Metadata

Properties

type

public \Onslip360\API\Metadata\Type $type

cardReceipt

public \Onslip360\API\CardReceiptMetadata|null $cardReceipt

couponVoucher

public \Onslip360\API\CouponVoucherMetadata|null $couponVoucher

currency

public \Onslip360\API\CurrencyMetadata|null $currency

erpInvoice

public \Onslip360\API\ERPInvoiceMetadata|null $erpInvoice

labels

public array|null $labels

paymentVoucher

public \Onslip360\API\PaymentVoucherMetadata|null $paymentVoucher

prePaid

public \Onslip360\API\PrePaidMetadata|null $prePaid

swishTransaction

public \Onslip360\API\SwishTransactionMetadata|null $swishTransaction

Methods

__construct

public __construct(\Onslip360\API\Metadata\Type $type, \Onslip360\API\CardReceiptMetadata|null $cardReceipt = null, \Onslip360\API\CouponVoucherMetadata|null $couponVoucher = null, \Onslip360\API\CurrencyMetadata|null $currency = null, \Onslip360\API\ERPInvoiceMetadata|null $erpInvoice = null, int[]|null $labels = null, \Onslip360\API\PaymentVoucherMetadata|null $paymentVoucher = null, \Onslip360\API\PrePaidMetadata|null $prePaid = null, \Onslip360\API\SwishTransactionMetadata|null $swishTransaction = null): mixed

Parameters:

ParameterTypeDescription
$type\Onslip360\API\Metadata\Type
$cardReceipt\Onslip360\API\CardReceiptMetadata|null
$couponVoucher\Onslip360\API\CouponVoucherMetadata|null
$currency\Onslip360\API\CurrencyMetadata|null
$erpInvoice\Onslip360\API\ERPInvoiceMetadata|null
$labelsint[]|null
$paymentVoucher\Onslip360\API\PaymentVoucherMetadata|null
$prePaid\Onslip360\API\PrePaidMetadata|null
$swishTransaction\Onslip360\API\SwishTransactionMetadata|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