Fulfillment.php 799 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php
/**
 * Created by PhpStorm.
 * User: Zero
 * Date: 2020/9/2
 * Time: 16:50
 */

namespace Meibuyu\Micro\Shopify\lib;

/**
 * Class Fulfillment
 * @package Meibuyu\Micro\Shopify\lib
 *
 * @property-read Event $Event
 *
 * @method Event Event(integer $id = null)
 *
19
 * @method array update_tracking($info)     Update Tracking
20 21 22 23 24 25 26 27 28 29 30 31 32 33
 * @method array complete()     Complete a fulfillment
 * @method array open()         Open a pending fulfillment
 * @method array cancel()       Cancel a fulfillment
 */
class Fulfillment extends AbstractShopify
{

    protected $resourceKey = 'fulfillment';

    protected $childResource = [
        'FulfillmentEvent' => 'Event',
    ];

    protected $customPostActions = [
34
        'update_tracking',
35 36 37 38 39 40
        'complete',
        'open',
        'cancel',
    ];

}