original_string: 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']);
      }
code: 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']);
      }
code_tokens: 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' ] ) ; }
docstring: Update a Gift Card
  
  @link   https://help.shopify.com/api/reference/gift_card#update
  @param  GiftCard $giftCard
  @return void
docstring_tokens: Update a Gift Card