UsageEntry
UsageEntry
- Full name:
\Onslip360\API\UsageEntry
- Parent class:
\Onslip360\Onslip360Object
Properties
type
public \Onslip360\API\UsageEntry\Type $type
erpInvoiceMetadata
public \Onslip360\API\ERPInvoiceMetadata|null $erpInvoiceMetadata
inventoryAdjustment
public int|null $inventoryAdjustment
location
public int|null $location
passwordReset
public \Onslip360\API\PasswordReset|null $passwordReset
passwordResetChallenge
public \Onslip360\API\PasswordResetChallenge|null $passwordResetChallenge
product
public int|null $product
productGroup
public int|null $productGroup
shiftHistory
public \Onslip360\API\ShiftHistoryExport|null $shiftHistory
stockBalanceTransaction
public \Onslip360\API\StockBalanceTransaction|null $stockBalanceTransaction
tab
public int|null $tab
user
public int|null $user
voucher
public int|null $voucher
voucherTransaction
public \Onslip360\API\VoucherTransaction|null $voucherTransaction
Methods
__construct
public __construct(\Onslip360\API\UsageEntry\Type $type, \Onslip360\API\ERPInvoiceMetadata|null $erpInvoiceMetadata = null, int|null $inventoryAdjustment = null, int|null $location = null, \Onslip360\API\PasswordReset|null $passwordReset = null, \Onslip360\API\PasswordResetChallenge|null $passwordResetChallenge = null, int|null $product = null, int|null $productGroup = null, \Onslip360\API\ShiftHistoryExport|null $shiftHistory = null, \Onslip360\API\StockBalanceTransaction|null $stockBalanceTransaction = null, int|null $tab = null, int|null $user = null, int|null $voucher = null, \Onslip360\API\VoucherTransaction|null $voucherTransaction = null): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$type | \Onslip360\API\UsageEntry\Type | |
$erpInvoiceMetadata | \Onslip360\API\ERPInvoiceMetadata|null | |
$inventoryAdjustment | int|null | |
$location | int|null | |
$passwordReset | \Onslip360\API\PasswordReset|null | |
$passwordResetChallenge | \Onslip360\API\PasswordResetChallenge|null | |
$product | int|null | |
$productGroup | int|null | |
$shiftHistory | \Onslip360\API\ShiftHistoryExport|null | |
$stockBalanceTransaction | \Onslip360\API\StockBalanceTransaction|null | |
$tab | int|null | |
$user | int|null | |
$voucher | int|null | |
$voucherTransaction | \Onslip360\API\VoucherTransaction|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