企业付款到银行卡接口

        :param true_name: 开户人名称
        :param bank_card_no: 银行卡号
        :param bank_code: 银行编号
        :param amount: 付款金额，单位分
        :param desc: 付款说明
        :param out_trade_no: 可选，商户订单号，需保持唯一性，默认自动生成
        :return: 返回的结果信息
13268
def transfer_bankcard(self, true_name, bank_card_no, bank_code, amount, desc=None, out_trade_no=None):
        
        if not out_trade_no:
            now = datetime.now()
            out_trade_no = '{0}{1}{2}'.format(
                self.mch_id,
                now.strftime('%Y%m%d%H%M%S'),
                random.randint(1000, 10000)
            )
        data = {
            'mch_id': self.mch_id,
            'partner_trade_no': out_trade_no,
            'amount': amount,
            'desc': desc,
            'enc_bank_no': self._rsa_encrypt(bank_card_no),
            'enc_true_name': self._rsa_encrypt(true_name),
            'bank_code': bank_code,
        }
        return self._post('mmpaysptrans/pay_bank', data=data)
924492
def getEPrintURL(self, CorpNum, MgtKey, UserID=None):
        
        if MgtKey == None or MgtKey == "":
            raise PopbillException(-99999999, "관리번호가 입력되지 않았습니다.")

        result = self._httpget('/Cashbill/' + MgtKey + '?TG=EPRINT', CorpNum, UserID)

        return result.url
1031031
def receive_request(self, transaction):
        
        method = transaction.request.code
        if method == defines.Codes.GET.number:
            transaction = self._handle_get(transaction)
        elif method == defines.Codes.POST.number:
            transaction = self._handle_post(transaction)
        elif method == defines.Codes.PUT.number:
            transaction = self._handle_put(transaction)
        elif method == defines.Codes.DELETE.number:
            transaction = self._handle_delete(transaction)
        else:
            transaction.response = None
        return transaction
102399
def get_transactions_details(tx_hash_list, coin_symbol='btc', limit=None, api_key=None):
    

    for tx_hash in tx_hash_list:
        assert is_valid_hash(tx_hash)
    assert is_valid_coin_symbol(coin_symbol)

    if len(tx_hash_list) == 0:
        return []
    elif len(tx_hash_list) == 1:
        return [get_transaction_details(tx_hash=tx_hash_list[0],
                                        coin_symbol=coin_symbol,
                                        limit=limit,
                                        api_key=api_key
                                        )]

        url = make_url(coin_symbol, **dict(txs=';'.join(tx_hash_list)))

    params = {}
    if api_key:
        params['token'] = api_key
    if limit:
        params['limit'] = limit

    r = requests.get(url, params=params, verify=True, timeout=TIMEOUT_IN_SECONDS)
    response_dict_list = get_valid_json(r)

    cleaned_dict_list = []

    for response_dict in response_dict_list:
        if 'error' not in response_dict:
            if response_dict['block_height'] > 0:
                response_dict['confirmed'] = parser.parse(response_dict['confirmed'])
            else:
                # Blockcypher reports fake times if it's not in a block
                response_dict['confirmed'] = None
                response_dict['block_height'] = None

            # format this string as a datetime object
            response_dict['received'] = parser.parse(response_dict['received'])
        cleaned_dict_list.append(response_dict)

    return cleaned_dict_list
281669
def transaction_start(self, name):
        
        if not name:
            raise ValueError("Transaction name cannot be empty")
            #uid = id(self)

        self.transaction_count += 1
        logger.debug("{}. Start transaction {}".format(self.transaction_count, name))
        if self.transaction_count == 1:
            self._transaction_start()
        else:
            self._transaction_started(name)

        return self.transaction_count
516110
public function createMicroPay($auth_code, $out_trade_no, $total_fee, $body, $goods_tag = null)
    {
        $data = array(
            "appid"            => $this->appid,
            "mch_id"           => $this->mch_id,
            "body"             => $body,
            "out_trade_no"     => $out_trade_no,
            "total_fee"        => $total_fee,
            "auth_code"        => $auth_code,
            "spbill_create_ip" => Tools::getAddress(),
        );
        empty($goods_tag) || $data['goods_tag'] = $goods_tag;
        $json = Tools::xml2arr($this->postXml($data, self::MCH_BASE_URL . '/pay/micropay'));
        if (!empty($json) && false === $this->_parseResult($json)) {
            return false;
        }
        return $json;
    }
263605
def trades_get(self, **kwargs):
        ''''''
        request = TOPRequest('taobao.increment.trades.get')
        for k, v in kwargs.iteritems():
            if k not in ('status', 'nick', 'type', 'start_modified', 'end_modified', 'page_no', 'page_size') and v==None: continue
            request[k] = v
        self.create(self.execute(request), fields=['notify_trades', 'total_results'], models={'notify_trades':NotifyTrade})
        return self.notify_trades
921817
def bank_name(self):
        """"""
        entry = registry.get('bic').get(self.compact)
        if entry:
            return entry.get('name')
422921
def bank_short_name(self):
        """"""
        entry = registry.get('bic').get(self.compact)
        if entry:
            return entry.get('short_name')
808418
@Override
	public HTCashbillSummary summary(String CorpNum, String JobID,
			String[] TradeUsage, String[] TradeType, String UserID)
			throws PopbillException {
		if ( JobID.length() != 18 )
			throw new PopbillException(-99999999, "작업아이디가 올바르지 않습니다.");
		
		String uri = "/HomeTax/Cashbill/"+JobID+"/Summary";
				
		uri += "?TradeUsage=" + Arrays.toString(TradeUsage)
				.replaceAll("\\[|\\]|\\s", "");
		uri += "&TradeType=" + Arrays.toString(TradeType)
				.replaceAll("\\[|\\]|\\s", "");
		
		
		return httpget(uri, CorpNum, UserID, HTCashbillSummary.class);
	}
931862
function verifyTransactionName(name) {
	if (typeof name !== 'string' || name.length === 0) {
		const msg = util.format('Transaction name must be a non-empty string: %j', name);
		logger.error('verifyTransactionName:', msg);
		throw new Error(msg);
	}
}
715407
def get_bank_transactions(options = {})
      request_params = {}
      request_params[:BankTransactionID]  = options[:bank_transaction_id] if options[:bank_transaction_id]
      request_params[:ModifiedAfter]      = options[:modified_since] if options[:modified_since]
      request_params[:order]              = options[:order] if options[:order]
      request_params[:where]              = options[:where] if options[:where]
      request_params[:page]               = options[:page] if options[:page]

      response_xml = http_get(@client, "#{@xero_url}/BankTransactions", request_params)

      parse_response(response_xml, {:request_params => request_params}, {:request_signature => 'GET/BankTransactions'})
    end
1253860
def query(self, out_trade_no, bill_type='MCHT'):
        
        data = {
            'mch_billno': out_trade_no,
            'bill_type': bill_type,
            'appid': self.appid,
        }
        return self._post('mmpaymkttransfers/gethbinfo', data=data)
1103992
public function enterprisePay($openid,$amount,$out_trade_no,$desc,$re_user_name=null){
        $wxpay = new PayLib\WxPayApi($this->type);
        //企业付款
        $input = new PayLib\WxPayEnterprise();
        $input->SetOpenid($openid);
        $input->SetAmount($amount);//设置商品或支付单简要描述
        $input->SetTradeNo($out_trade_no);#设置单号
        $input->SetDesc($desc);#设置支付金额

        if($re_user_name!==null){
            $input->SetCheckName('FORCE_CHECK');
            $input->SetReUserName($re_user_name);//自定义的参数
        }

        return PayLib\WxPayApi::enterprisePay($input);
    }
21085
@Override
	public CashbillInfo getInfo(String CorpNum, String MgtKey)
			throws PopbillException {
		if (MgtKey == null || MgtKey.isEmpty())
			throw new PopbillException(-99999999, "관리번호가 입력되지 않았습니다.");

		return httpget("/Cashbill/" + MgtKey, CorpNum,
				null, CashbillInfo.class);
	}
1004034
def deposit(self, amount):
        
        _json = {"amount": amount}
        self.api_interface.piggy_bank_deposit(self, _json)
76380
def getCard(self, name):
        
        cards = self.projectCards

        for card in cards:
            if card.name.upper() == name.upper():
                return card

        return None