Metadata
Metadata
- Full name:
\Onslip360\API\Metadata
- Parent class:
\Onslip360\Onslip360Object
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:
Parameter | Type | Description |
---|---|---|
$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 | |
$labels | int[]|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:
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