GetStockInventoryRequest.php 948 字节
<?php


namespace Lackoxygen\TopWarehouse\Request\Inventory;


use Lackoxygen\TopWarehouse\Constants\WarehouseCode;
use Lackoxygen\TopWarehouse\Request\Request;

class GetStockInventoryRequest extends Request
{
    /**
     * @see WarehouseCode::TABLE_CODE
     * 仓库编码
     *
     * @var string
     */
    public $warehouse_id;

    /**
     *
     * 商品编码,(多个以,号隔开)
     *
     * @var string
     */
    public $goods_id;

    /**
     *通过发布单表体ID,去匹配商品有效期规则编码,该商品会按照此有效期规则出仓
     *
     * @var string|null
     */
    public $deliveryItemId;

    /**
     * 代发:2
     *
     * @var string
     */
    public $type;

    protected function initialize(): void
    {
        $this->contentType = 'application/json';
        $this->method      = 'POST';
        $this->path        = '/inventory.do?method=epass.wms.stock.inventory.get';
    }
}