# billingo/4.2.9/src/Validation/Document/DocumentQueryValidator.php

Billingo Official for WooCommerce, version 4.2.9. 37 lines.

- Page: https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Validation/Document/DocumentQueryValidator.php
- Raw: https://pluginprobe.com/plugins/billingo/4.2.9/raw/src/Validation/Document/DocumentQueryValidator.php
- Modified: 2025-05-26T04:53:08+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/billingo/4.2.9/code/src/Validation/Document/DocumentQueryValidator.php#L10-L20`.

```php
<?php

namespace App\Billingo\Validation\Document;

use App\Billingo\Enums\PaymentMethodEnum;
use App\Billingo\Enums\PaymentStatusEnum;
use App\Billingo\Validation\Validator;

class DocumentQueryValidator extends Validator
{

    protected function rules(): array
    {
        return [
            'page' => ['integer'],
            'per_page' => ['integer'],
            'block_id' => ['integer'],
            'partner_id' => ['integer'],
            'payment_method' => [['in', getEnumValues(PaymentMethodEnum::class)]],
            'payment_status' => [['in', getEnumValues(PaymentStatusEnum::class)]],
            'start_date' => [['dateFormat', 'Y-m-d']],
            'end_date' => [['dateFormat', 'Y-m-d']],
            'start_number' => ['integer'],
            'end_number' => ['integer'],
            'start_year' => ['integer'],
            'end_year' => ['integer'],
            'type' => ['string'],
            'query' => ['string'],
            'paid_start_date' => [['dateFormat', 'Y-m-d']],
            'paid_end_date' => [['dateFormat', 'Y-m-d']],
            'fulfillment_start_date' => [['dateFormat', 'Y-m-d']],
            'fulfillment_end_date' => [['dateFormat', 'Y-m-d']],
            'last_modified_date' => [['dateFormat', 'Y-m-d']],
        ];
    }
}

```
