<commit_before><?php
/**
 * SageOne Library
 *
 * @category Library
 * @package  SageOne
 * @author   <NAME> <<EMAIL>>
 * @license  MIT <https://github.com/darrynten/sage-one-php/blob/master/LICENSE>
 * @link     https://github.com/darrynten/sage-one-php
 */

namespace DarrynTen\SageOne\Models;

use DarrynTen\SageOne\BaseModel;

/**
 * Asset Model
 *
 * Details on writable properties for Asset:
 * https://accounting.sageone.co.za/api/1.1.2/Help/ResourceModel?modelName=Asset
 */
class Asset extends BaseModel
{
    /**
     * The API Endpoint
     *
     * @var string $endpoint
     */
    protected $endpoint = 'Asset';

    /**
     * @var array $fields
     */
    protected $fields = [
        'id' => [
            'type' => 'integer',
            'nullable' => false,
            'readonly' => false,
        ],
        'description' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
        ],
        'category' => [
            'type' => 'AssetCategory',
            'nullable' => false,
            'readonly' => false,
        ],
        'location' => [
            'type' => 'AssetLocation',
            'nullable' => false,
            'readonly' => false,
        ],
        'datePurchased' => [
            'type' => 'DateTime',
            'nullable' => false,
            'readonly' => false,
        ],
        'serialNumber' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
        ],
        'boughtFrom' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
        ],
        'purchasePrice' => [
            'type' => 'double',
            'nullable' => true,<commit_msg>Added missing properties to asset<commit_after><?php
/**
 * SageOne Library
 *
 * @category Library
 * @package  SageOne
 * @author   <NAME> <<EMAIL>>
 * @license  MIT <https://github.com/darrynten/sage-one-php/blob/master/LICENSE>
 * @link     https://github.com/darrynten/sage-one-php
 */

namespace DarrynTen\SageOne\Models;

use DarrynTen\SageOne\BaseModel;

/**
 * Asset Model
 *
 * Details on writable properties for Asset:
 * https://accounting.sageone.co.za/api/1.1.2/Help/ResourceModel?modelName=Asset
 */
class Asset extends BaseModel
{
    /**
     * The API Endpoint
     *
     * @var string $endpoint
     */
    protected $endpoint = 'Asset';

    /**
     * @var array $fields
     */
    protected $fields = [
        'id' => [
            'type' => 'integer',
            'nullable' => false,
            'readonly' => false,
        ],
        'description' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
            'min' => 0,
            'max' => 500,
        ],
        'category' => [
            'type' => 'AssetCategory',
            'nullable' => false,
            'readonly' => false,
        ],
        'location' => [
            'type' => 'AssetLocation',
            'nullable' => false,
            'readonly' => false,
        ],
        'datePurchased' => [
            'type' => 'DateTime',
            'nullable' => false,
            'readonly' => false,
        ],
        'serialNumber' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
            'min' => 0,
            'max' => 100,
        ],
        'boughtFrom' => [
            'type' => 'string',
            'nullable' => false,
            'readonly' => false,
            'min' => 0,
            'max' => 100,
        ],
        'purchasePrice' => [
            'type' => 'double',
            'nullable' => true,
{'fraction_non_alphanumeric': 0.16630434782608697, 'fraction_numerical': 0.004891304347826087, 'mean_word_length': 1.53337921541638, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 79, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '769534', 'n_tokens_mistral': 1127, 'n_tokens_neox': 1122, 'n_words': 215}