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

namespace Meibuyu\Micro\Shopify\lib;

/**
 * Class Order
 * @package Meibuyu\Micro\Shopify\lib
 *
15 16 17 18 19 20
 * @property-read Fulfillment $Fulfillment
 * @property-read Event $Event
 *
 * @method Fulfillment Fulfillment(integer $id = null)
 * @method Event Event(integer $id = null)
 *
21 22 23 24 25 26 27 28 29
 * @method array close()     Close an Order
 * @method array open()         Re-open a closed Order
 * @method array cancel(array $data)  Cancel an Order
 */
class Order extends AbstractShopify
{

    protected $resourceKey = 'order';

30 31 32 33 34
    protected $childResource = [
        'Fulfillment',
        'Event',
    ];

35 36 37 38 39 40 41
    protected $customPostActions = [
        'close',
        'open',
        'cancel',
    ];

}