Order.php 851 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
 * @property-read Fulfillment $Fulfillment
 * @property-read Event $Event
 *
 * @method Fulfillment Fulfillment(integer $id = null)
19
 * @method FulfillmentOrder FulfillmentOrder()
20 21
 * @method Event Event(integer $id = null)
 *
22 23 24 25 26 27 28 29 30
 * @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';

31 32
    protected $childResource = [
        'Fulfillment',
33
        'FulfillmentOrder',
34 35 36
        'Event',
    ];

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

}