public function update(GiftCard &$giftCard)
    {
        $data = $giftCard->exportData();
        $endpoint = '/admin/gift_cards/'.$giftCard->id.'.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'gift_card' => $data
            )
        );
        $giftCard->setData($response['gift_card']);
    }
public function update(GiftCard &$giftCard)
    {
        $data = $giftCard->exportData();
        $endpoint = '/admin/gift_cards/'.$giftCard->id.'.json';
        $response = $this->request(
            $endpoint, 'POST', array(
            'gift_card' => $data
            )
        );
        $giftCard->setData($response['gift_card']);
    }
public function update ( GiftCard & $ giftCard ) { $ data = $ giftCard -> exportData ( ) ; $ endpoint = '/admin/gift_cards/' . $ giftCard -> id . '.json' ; $ response = $ this -> request ( $ endpoint , 'POST' , array ( 'gift_card' => $ data ) ) ; $ giftCard -> setData ( $ response [ 'gift_card' ] ) ; }
Update a Gift Card

@link   https://help.shopify.com/api/reference/gift_card#update
@param  GiftCard $giftCard
@return void
Update a Gift Card