删除卡券接口
@param string $card_id
@return array
@throws Exceptions\InvalidResponseException
@throws Exceptions\LocalCacheException
772996
public function deleteCard($card_id)
    {
        $url = "https://api.weixin.qq.com/card/delete?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, ['card_id' => $card_id]);
    }
760242
public function setPaycell($card_id, $is_open = true)
    {
        $url = "https://api.weixin.qq.com/card/paycell/set?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, ['card_id' => $card_id, 'is_open' => $is_open]);
    }
606384
public function getCardMemberCardDetail($begin_date, $end_date, $card_id)
    {
        $data = ['begin_date' => $begin_date, 'end_date' => $end_date, 'card_id' => $card_id];
        $url = "https://api.weixin.qq.com/datacube/getcardmembercarddetail?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
968391
public function sendWxcardByGroup($group_id, $card_id, array $card_ext = array())
    {
        $ret = array();
        $ret['filter']['group_id'] = $group_id;
        if (! empty($this->is_to_all)) {
            $ret['filter']['is_to_all'] = $this->is_to_all;
        }
        $ret['msgtype'] = 'wxcard';
        $ret['wxcard']['card_id'] = $card_id;
        if (! empty($card_ext)) {
            $ret['wxcard']['card_ext'] = json_encode($card_ext);
        }
        return $this->sendAll($ret);
    }
1207520
public function cardDelete($card_id)
    {
        if (empty($card_id)) {
            $this->setError('缺少错误');

            return false;
        }

        $queryStr            = [];
        $queryStr['card_id'] = $card_id;

        $this->apitype = 'card';
        $this->module  = 'delete';
        $res           = $this->_post('', $queryStr);

        return $res;
    }
1025243
public function getCardList($openid, $card_id = null)
    {
        $data = ['openid' => $openid];
        is_null($card_id) || $data['card_id'] = $card_id;
        $url = "https://api.weixin.qq.com/card/user/getcardlist?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
703290
public function deposit($card_id, $code = [])
    {
        if (!is_string($card_id) || !is_array($code)) {
            $this->setError('参数错误');

            return false;
        }

        $queryStr            = [];
        $queryStr['card_id'] = $card_id;
        $queryStr['code']    = $code;

        $this->apitype = 'card';
        $this->module  = 'code';
        $res           = $this->_post('deposit', $queryStr);

        return $res;
    }
44694
public function modifystock($card_id, $stock = 'increase', $value = 0)
    {
        $queryStr            = [];
        $queryStr['card_id'] = $card_id;
        if ($stock == 'increase') {
            $queryStr['increase_stock_value'] = intval($value);
        } elseif ($stock == 'reduce') {
            $queryStr['reduce_stock_value'] = intval($value);
        } else {
            $this->setError('$stock 参数错误');

            return false;
        }

        $this->apitype = 'card';
        $this->module  = 'modifystock';

        $res = $this->_post('', $queryStr);

        return $res;
    }
1011831
public function getMembercardUserInfo($code, $card_id)
    {
        $params = array();
        $params['code'] = $code;
        $params['card_id'] = $card_id;
        $rst = $this->_request->post($this->_url . 'card/membercard/userinfo/get', $params);
        return $this->_client->rst($rst);
    }
9831
public function deleteCard($cardId)
    {
        return $this->auth(function () use ($cardId) {
            $data = json_encode(['card_id' => $cardId], JSON_UNESCAPED_UNICODE);
            $result = $this->http->postJson($this->baseUrl . 'card/delete?access_token=' . $this->accessToken, $data);

            return $result;
        });
    }
186320
public function listPages($location_id)
    {
        list($response, $statusCode, $httpHeader) = $this->listPagesWithHttpInfo ($location_id);
        return $response; 
    }
333244
public function listTimecardEvents($timecard_id)
    {
        list($response, $statusCode, $httpHeader) = $this->listTimecardEventsWithHttpInfo ($timecard_id);
        return $response; 
    }
133160
public function lists($offset = 0, $count = 10, $statusList = array())
    {
        $params = array(
            'offset' => $offset,
            'count' => $count,
            'status_list' => $statusList,
        );

        $result = $this->http->jsonPost(self::API_LIST, $params);

        return $result['card_id_list'];
    }
819812
String getContentByCardId(String cardId) {
        Map<String, Object> request = new HashMap<>();
        request.put("card_id", cardId);

        String url = WxEndpoint.get("url.card.mpnews.gethtml");
        String json = JsonMapper.defaultMapper().toJson(request);
        logger.debug("get mpnews content by card id: {}", json);
        String response = wxClient.post(url, json);
        Map<String, Object> result = JsonMapper.defaultMapper().json2Map(response);
        if (result.containsKey("content")) {
            return result.get("content").toString();
        } else {
            throw new WxRuntimeException(999, "get html content by card id failed.");
        }
    }
12333
def get_credit_card(self, credit_card_id):
        
        return self.client._get(self.url + 'creditCards/{}'.format(credit_card_id), headers=self.get_headers())
111312
public static function findAll($page_request = null)
    {
        if($page_request != null){
            return self::listAllCreditCardPayments(['page' => $page_request->getPageNumber(), 'size' => $page_request->getSize() ]);
        }else {
            return self::listAllCreditCardPayments();
        }
    }
1289621
public function getRevCardDel(){
        if (isset($this->_receive['CardId']))     //卡券 ID
            $array['CardId'] = $this->_receive['CardId'];
        if (isset($this->_receive['UserCardCode']) && !empty($this->_receive['UserCardCode'])) //code 序列号。自定义 code 及非自定义 code的卡券被领取后都支持事件推送。
            $array['UserCardCode'] = $this->_receive['UserCardCode'];
        if (isset($array) && count($array) > 0) {
            return $array;
        } else {
            return false;
        }
    }