格式化退款数据
{@link me.hao0.alipay.model.enums.AlipayField#DETAIL_DATA}
@return 退款数据
322409
public String formatDetailDatas(){
        StringBuilder details = new StringBuilder();
        for (RefundDetailData data : detailDatas){
            details.append(data.format()).append("#");
        }
        details.deleteCharAt(details.length() - 1);
        return details.toString();
    }
1165427
public Map<String, Object> getDataModel() {
        final AbstractResponseRenderer renderer = getRenderer();
        if (null == renderer) {
            return null;
        }

        return renderer.getRenderDataModel();
    }
116112
public TraceOptionsData getTraceOptionsData() {
        if (classInfo != null) {
            return classInfo.getTraceOptionsData();
        }
        if (optionsAnnotationVisitor != null) {
            return optionsAnnotationVisitor.getTraceOptionsData();
        }
        return null;
    }
273252
public ValidationData updateKey(DetailParam detailParam) {
        if (detailParam == null) {
            return this;
        }
        this.methodKey = detailParam.getMethodKey();
        this.parameterKey = this.paramType.getUniqueKey(this.methodKey);
        this.urlMapping = detailParam.isUrlMapping();

        return this;
    }
780299
public String to_string() 
	{
		String str = "";
		if (pageno > 0) 
			str = "pageno="+pageno;
		
		if (pagesize > 0) 
		{
			if (str.length() > 0)
				str = str + "&";
			
			str = str +"pagesize="+pagesize;
		}
		
		if (detailview) 
		{
			if (str.length() > 0)
				str = str + "&";
			
			str = str +"view=detail";
		}
		
		if (count) 
		{
			if (str.length() > 0)
				str = str + "&";
			
			str = str +"count=yes";
		}
		
		if (args != null) {
			if (str.length() > 0)
				str = str + "&";
			str = str+"args="+args;
		}
		if (filter != null) {
			if (filter.length() > 0)
				str = str + "&";
			str = str+"filter="+filter;
		}
		return str;
	}
579376
@ApiModelProperty(example = "null", required = true, value = "")
  public Map<String, Object> getData() {
    return data;
  }
979704
public function getData()
    {
        $this->validate('orderId', 'txnTime', 'accNo', 'payTimeout');

        $data = array(
            'version'       => $this->getVersion(),  //版本号
            'encoding'      => $this->getEncoding(),  //编码方式
            'certId'        => $this->getTheCertId(),    //证书ID
            'signMethod'    => $this->getSignMethod(),  //签名方法
            'txnType'       => '79',        //交易类型
            'txnSubType'    => '00',        //交易子类
            'bizType'       => '000902',    //业务类型
            'accessType'    => $this->getAccessType(),         //接入类型
            'channelType'   => $this->getChannelType(), //05:语音 07:互联网 08:移动
            'encryptCertId' => CertUtil::readX509CertId($this->getEncryptKey()),
            'merId'         => $this->getMerId(),     //商户代码
            'orderId'       => $this->getOrderId(),     //商户订单号，填写开通并支付交易的orderId
            'txnTime'       => $this->getTxnTime(),    //订单发送时间
            'tokenPayData'  => sprintf('{trId=%s&tokenType=01}', $this->getTrId()), //标记请求者 trId
            'accNo'         => $this->encrypt($this->getAccNo()), //银行卡号
            'customerInfo'  => $this->getEncryptCustomerInfo(), //标记请求者 trId,
            'frontUrl'      => $this->getReturnUrl(), //前台通知地址
            'backUrl'       => $this->getNotifyUrl(), //后台通知地址
            'payTimeout'    => $this->getPayTimeout(), //订单超时时间
        );

        $data = $this->filter($data);

        $data['signature'] = $this->sign($data, 'RSA2');

        return $data;
    }
370778
public function getData()
    {
        $this->validateData();

        $data = array(
            'version'            => $this->getVersion(),
            'charset'            => $this->getEncoding(), //UTF-8, GBK等
            'merId'              => $this->getMerId(),   //无卡商户填写
            'merAbbr'            => $this->getMerAbbr(), //商户名称
            'transType'          => $this->getTransType(), //交易类型，CONSUME or PRE_AUTH
            'orderAmount'        => $this->getOrderAmount(), //交易金额
            'orderNumber'        => $this->getOrderNumber(), //订单号，必须唯一
            'orderTime'          => $this->getOrderTime(), //交易时间, YYYYmmhhddHHMMSS
            'orderCurrency'      => $this->getOrderCurrency(), //交易币种，CURRENCY_CNY=>156
            'customerIp'         => $this->getCustomerIp(), //用户IP
            'frontEndUrl'        => $this->getReturnUrl(), //前台回调URL
            'backEndUrl'         => $this->getNotifyUrl(), //后台回调URL
            'commodityUrl'       => $this->getShowUrl(),
            'commodityName'      => $this->getTitle(),
            'origQid'            => '',
            'acqCode'            => '',
            'merCode'            => '',
            'commodityUnitPrice' => '',
            'commodityQuantity'  => '',
            'commodityDiscount'  => '',
            'transferFee'        => '',
            'customerName'       => '',
            'defaultPayType'     => '',
            'defaultBankNumber'  => '',
            'transTimeout'       => '',
            'merReserved'        => '',
            'signMethod'         => 'md5',
        );

        $data = $this->filter($data);

        $data['signature'] = $this->sign($data);

        return $data;
    }
374163
def serialize(cls, share_detail):
        

        return {
            cls._FIELD_PAYMENT: converter.serialize(
                share_detail._payment_field_for_request),
            cls._FIELD_READ_ONLY: converter.serialize(
                share_detail._read_only_field_for_request),
            cls._FIELD_DRAFT_PAYMENT: converter.serialize(
                share_detail._draft_payment
            ),
        }
458083
public com.riversoft.weixin.pay.payment.bean.OrderQueryResponse query(com.riversoft.weixin.pay.payment.bean.OrderQueryRequest orderQueryRequest) {
        OrderQueryRequestWrapper wrapper = new OrderQueryRequestWrapper();
        wrapper.setRequest(orderQueryRequest);
        setBaseSettings(wrapper);
        SortedMap<String, Object> queryRequestMap = JsonMapper.nonEmptyMapper().getMapper().convertValue(wrapper, SortedMap.class);
        sign(wrapper, queryRequestMap);

        String url = WxEndpoint.get("url.pay.payment.order.query");
        try {
            String xml = XmlObjectMapper.nonEmptyMapper().toXml(wrapper);
            logger.info("支付 query order request: {}", xml);
            String response = wxSslClient.post(url, xml);
            logger.info("支付 query order response: {}", response);

            OrderQueryResponseWrapper responseWrapper = XmlObjectMapper.defaultMapper().fromXml(response, OrderQueryResponseWrapper.class);
            return responseWrapper.getResponse();
        } catch (Exception e) {
            throw new WxRuntimeException(999, "query order failed:" + e.getMessage());
        }

    }
957483
protected Map<String, Object> getSignableData()
    {
    	final Map<String, Object> doc = getSendableData();

    	// remove node-specific data
    	for (int i = 0; i < excludedFields.length; i++) {
    		doc.remove(excludedFields[i]);
    	}
        return doc;
    }
349390
public function info() {
        /**
         * avatar	用户头像	String	如果没有数据的时候不会返回该数据，请做好容错	可空	https://tfsimg.alipay.com/images/partner/T1k0xiXXRnXXXXXXXX
        nick_name	用户昵称	String	如果没有数据的时候不会返回该数据，请做好容错	可空	张三
        province	省份	String	用户注册时填写的省份 如果没有数据的时候不会返回该数据，请做好容错	可空	浙江省
        city	城市	String	用户注册时填写的城市， 如果没有数据的时候不会返回该数据，请做好容错	可空	杭州
        gender	用户性别	String	M为男性，F为女性， 如果没有数据的时候不会返回该数据，请做好容错	可空	M
        user_type_value	用户类型	String	（1/2），1代表公司账户；2代表个人账户	不可空	1
        is_licence_auth	是否经过营业执照认证	String	T为通过营业执照认证，F为没有通过	不可空	T
        is_certified	是否通过实名认证	String	T是通过；F是没有实名认证	不可空	F
        is_certify_grade_a	是否A类认证	String	T表示是A类认证，F表示非A类认证，A类认证用户是指上传过身份证照片并且通过审核的支付宝用户	不可空	T
        is_student_certified	是否是学生	String	T表示是学生，F表示不是学生	不可空	T
        is_bank_auth	是否经过银行卡认证	String	T为经过银行卡认证，F为未经过银行卡认证	不可空	T
        is_mobile_auth	是否经过手机认证	String	T为经过手机认证，F为未经过手机认证	不可空	T
        alipay_user_id	当前用户的userId	String	支付宝用户的userId	不可空	2088411964574197
        user_id	已废弃，请勿使用	String	已废弃，请勿使用	不可空	已废弃，请勿使用
        user_status	用户状态（Q/T/B/W）	String	Q代表快速注册用户；T代表已认证用户；B代表被冻结账户；W代表已注册，未激活的账户	不可空	T
        is_id_auth	是否身份证认证	String	T为是身份证认证，F为非身份证认证	不可空	T
         */
        $user = (new OAuth())->info($this->get('access_token'));
        if (!is_array($user) || $user['code'] != 10000) {
            return false;
        }
        $user['username'] = $user['nick_name'];
        $user['sex'] = $user['gender'];
        $this->set($user);
        return $user;
    }
266619
public function getData()
    {
        $this->validateData();

        $data = array(
            //版本号
            'version'        => $this->getVersion(),
            //编码方式
            'encoding'       => $this->getEncoding(),
            //证书ID
            'certId'         => $this->getTheCertId(),
            //交易类型
            'txnType'        => $this->getTxnSubType() ?: '01',
            //交易子类
            'txnSubType'     => $this->getTxnSubType() ?: '01',
            //业务类型
            'bizType'        => $this->getBizType(),
            //前台通知地址
            'frontUrl'       => $this->getReturnUrl(),
            //后台通知地址
            'backUrl'        => $this->getNotifyUrl(),
            //签名方法
            'signMethod'     => $this->getSignMethod(),
            //渠道类型，07-PC，08-手机
            'channelType'    => $this->getChannelType(),
            //接入类型
            'accessType'     => $this->getAccessType(),
            //商户代码，请改自己的测试商户号
            'merId'          => $this->getMerId(),
            //商户订单号
            'orderId'        => $this->getOrderId(),
            //订单发送时间
            'txnTime'        => $this->getTxnTime(),
            //交易金额，单位分
            'txnAmt'         => $this->getTxnAmt(),
            //交易币种
            'currencyCode'   => $this->getCurrencyCode(),
            //默认支付方式
            'defaultPayType' => $this->getDefaultPayType(),
            //订单描述，网关支付和wap支付暂时不起作用
            'orderDesc'      => $this->getOrderDesc(),
            //请求方保留域，透传字段，查询、通知、对账文件中均会原样出现
            'reqReserved'    => $this->getReqReserved(),
        );

        $data = $this->filter($data);

        $data['signature'] = $this->sign($data);

        return $data;
    }
1201743
public Object getESDataFromDmlData(ESMapping mapping, Map<String, Object> dmlData,
                                       Map<String, Object> esFieldData) {
        SchemaItem schemaItem = mapping.getSchemaItem();
        String idFieldName = mapping.get_id() == null ? mapping.getPk() : mapping.get_id();
        Object resultIdVal = null;
        for (FieldItem fieldItem : schemaItem.getSelectFields().values()) {
            String columnName = fieldItem.getColumnItems().iterator().next().getColumnName();
            Object value = getValFromData(mapping, dmlData, fieldItem.getFieldName(), columnName);

            if (fieldItem.getFieldName().equals(idFieldName)) {
                resultIdVal = value;
            }

            if (!fieldItem.getFieldName().equals(mapping.get_id())
                && !mapping.getSkips().contains(fieldItem.getFieldName())) {
                esFieldData.put(Util.cleanColumn(fieldItem.getFieldName()), value);
            }
        }

        // 添加父子文档关联信息
        putRelationData(mapping, schemaItem, dmlData, esFieldData);
        return resultIdVal;
    }
1138126
public function getData ()
	{
		
		// PaymentMethod independant checks
		$this->validate( 'transactionReference', 'currency', 'siteId', 'amount', 'description', 'returnUrl', 
				'notifyUrl', 'ipaddress' );
		
		// PaymentMethod specific checks
		$this->validatePaymentMethodSpecific();
		
		// Transaction data
		$data = array( 
				'ref' => $this->getTransactionReference(), 
				'currency' => $this->getCurrency(), 
				'site_id' => $this->getSiteId(), 
				'amount' => $this->getAmountInteger(), 
				'description' => $this->getDescription(), 
				'control_url' => $this->getNotifyUrl(), 
				'return_url' => $this->getReturnUrl(), 
				'return_url_failed' => $this->getCancelUrl(), 
				'ip_address' => $this->getIpAddress(), 
				'language' => $this->getLanguage() 
		);
		if ( $this->getPaymentMethod() == 'ideal' ) {
			$data['issuer_id'] = $this->getIssuer();
		}
		
		// Customer data
		$customerData = new CreditCard( $_POST );
		if ( $customerData && strlen( $customerData->getFirstName() ) && strlen( $customerData->getLastName() ) ) {
			$data['customer'] = array( 
					'first_name' => $customerData->getFirstName(), 
					'last_name' => $customerData->getLastName(), 
					'company_name' => $customerData->getCompany(), 
					'address' => $customerData->getAddress1(), 
					'city' => $customerData->getCity(), 
					'state' => $customerData->getState(), 
					'postal_code' => $customerData->getPostcode(), 
					'country_code' => $customerData->getCountry(), 
					'phone_number' => $customerData->getPhone(), 
					'email' => $customerData->getEmail() 
			);
		}
		
		return $data;
	}
708340
public String getResponseCodeDetail() {
    if( this.responseCode == null )
      return null;

    if( this.responseCode == 10001 )
      return "General undefined response";
    if( this.responseCode == 10002 )
      return "Still waiting on something.";
    if( this.responseCode == 20000 )
      return "General success response.";
    if( this.responseCode == 40000 )
      return "General problem with data.";
    if( this.responseCode == 40001 )
      return "General problem with payment data.";
    if( this.responseCode == 40100 )
      return "Problem with credit card data.";
    if( this.responseCode == 40101 )
      return "Problem with cvv.";
    if( this.responseCode == 40102 )
      return "Card expired or not yet valid.";
    if( this.responseCode == 40103 )
      return "Limit exceeded.";
    if( this.responseCode == 40104 )
      return "Card invalid.";
    if( this.responseCode == 40105 )
      return "Expiry date not valid.";
    if( this.responseCode == 40106 )
      return "Credit card brand required.";
    if( this.responseCode == 40200 )
      return "Problem with bank account data.";
    if( this.responseCode == 40201 )
      return "Bank account data combination mismatch.";
    if( this.responseCode == 40202 )
      return "User authentication failed.";
    if( this.responseCode == 40300 )
      return "Problem with 3d secure data.";
    if( this.responseCode == 40301 )
      return "Currency / amount mismatch";
    if( this.responseCode == 40400 )
      return "Problem with input data.";
    if( this.responseCode == 40401 )
      return "Amount too low or zero.";
    if( this.responseCode == 40402 )
      return "Usage field too long.";
    if( this.responseCode == 40403 )
      return "Currency not allowed.";
    if( this.responseCode == 50000 )
      return "General problem with backend.";
    if( this.responseCode == 50001 )
      return "Country blacklisted.";
    if( this.responseCode == 50002 )
      return "IP address blacklisted.";
    if( this.responseCode == 50003 )
      return "Anonymous IP proxy used.";
    if( this.responseCode == 50100 )
      return "Technical error with credit card.";
    if( this.responseCode == 50101 )
      return "Error limit exceeded.";
    if( this.responseCode == 50102 )
      return "Card declined by authorization system.";
    if( this.responseCode == 50103 )
      return "Manipulation or stolen card.";
    if( this.responseCode == 50104 )
      return "Card restricted.";
    if( this.responseCode == 50105 )
      return "Invalid card configuration data.";
    if( this.responseCode == 50200 )
      return "Technical error with bank account.";
    if( this.responseCode == 50201 )
      return "Card blacklisted.";
    if( this.responseCode == 50300 )
      return "Technical error with 3D secure.";
    if( this.responseCode == 50400 )
      return "Decline because of risk issues.";
    if( this.responseCode == 50500 )
      return "General timeout.";
    if( this.responseCode == 50501 )
      return "Timeout on side of the acquirer.";
    if( this.responseCode == 50502 )
      return "Risk management transaction timeout.";
    if( this.responseCode == 50600 )
      return "Duplicate transaction.";

    return null;
  }
483802
private ItemDetail getItemDetail(Gson gson, JsonElement itemType, JsonElement detail) {
		if (itemType == null || detail == null) return null;

		Item.Type type = gson.fromJson(itemType, Item.Type.class);
		Class<? extends ItemDetail> detailType;

		switch (type) {
			case Armor:
				detailType = Armor.class;
				break;
			case Back:
				detailType = Back.class;
				break;
			case Bag:
				detailType = Bag.class;
				break;
			case Consumable:
				detailType = Consumable.class;
				break;
			case MiniPet:
				detailType = Mini.class;
				break;
			case Trinket:
				detailType = Trinket.class;
				break;
			case UpgradeComponent:
				detailType = UpgradeComponent.class;
				break;
			case Weapon:
				detailType = Weapon.class;
				break;
			default:
				detailType = Utility.class;
		}

		return gson.fromJson(detail, detailType);
	}