public function create(GiftCard &$giftCard)
    {
        $data = $giftCard->exportData();
        $endpoint = '/admin/gift_cards.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'gift_card' => $data
            )
        );
        $giftCard->setData($response['gift_card']);
    }
public function create(GiftCard &$giftCard)
    {
        $data = $giftCard->exportData();
        $endpoint = '/admin/gift_cards.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'gift_card' => $data
            )
        );
        $giftCard->setData($response['gift_card']);
    }
public function create ( GiftCard & $ giftCard ) { $ data = $ giftCard -> exportData ( ) ; $ endpoint = '/admin/gift_cards.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'gift_card' => $ data ) ) ; $ giftCard -> setData ( $ response [ 'gift_card' ] ) ; }
Create a gift card

@link   https://help.shopify.com/api/reference/gift_card#create
@param  GiftCard $giftCard
@return void
Create a gift card