Logistics.php 5.1 KB
<?php

namespace Lackoxygen\TiktokShop\Passage\Logistics;

use Lackoxygen\TiktokShop\Passage\Passage;

class Logistics extends Passage implements LogisticsInterface
{
    /**
     * @inheritDoc
     */
    public function appendSubOrder(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.appendSubOrder')
            ->path('logistics/appendSubOrder')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function logisticsCompanyList(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsCompanyList')
            ->path('order/logisticsCompanyList')
            ->params($params);
    }


    /**
     * @inheritDoc
     */
    public function add(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsAdd')
            ->path('order/logisticsAdd')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function edit(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsEdit')
            ->path('order/logisticsEdit')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function logisticsEditByPack(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsEditByPack')
            ->path('order/logisticsEditByPack')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function logisticsAddMultiPack(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsAddMultiPack')
            ->path('order/logisticsAddMultiPack')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function freightTemplateList(array $params)
    {
        $this->builder->method('POST')
            ->service('freightTemplate.list')
            ->path('freightTemplate/list')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function logisticsAddSinglePack(array $params)
    {
        $this->builder->method('POST')
            ->service('order.logisticsAddSinglePack')
            ->path('order/logisticsAddSinglePack')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function updateOrder(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.updateOrder')
            ->path('logistics/updateOrder')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function cancelOrder(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.cancelOrder')
            ->path('logistics/cancelOrder')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function orderOperate(array $params)
    {
        $this->builder->method('POST')
            ->service('crossBorder.orderOperate')
            ->path('crossBorder/orderOperate')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function orderCustomClearance(array $params)
    {
        $this->builder->method('POST')
            ->service('crossborder.orderCustomClearance')
            ->path('crossborder/orderCustomClearance')
            ->params($params);
    }


    /**
     * @inheritDoc
     */
    public function orderLogisticsTrace(array $params)
    {
        $this->builder->method('POST')
            ->service('crossborder.orderLogisticsTrace')
            ->path('crossborder/orderLogisticsTrace')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function customTemplateList(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.customTemplateList')
            ->path('logistics/customTemplateList')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function getOutRange(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.getOutRange')
            ->path('logistics/getOutRange')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function templateList(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.templateList')
            ->path('logistics/templateList')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function waybillApply(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.waybillApply')
            ->path('logistics/waybillApply')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function deliveryNotice(array $params)
    {
        $this->builder->method('POST')
            ->service('logistics.deliveryNotice')
            ->path('logistics/deliveryNotice')
            ->params($params);
    }

    /**
     * @inheritDoc
     */
    public function isByteDancePackage(array $params)
    {
        $this->builder->method('POST')
            ->service('power.isByteDancePackage')
            ->path('power/isByteDancePackage')
            ->params($params);
    }
}