package com.icloud.server.scala.paynotify

import scala.beans.BeanProperty

class PayNotifiyLog {

}

case class event(@BeanProperty returnCode:String,@BeanProperty return_msg:String,@BeanProperty appid:String,@BeanProperty mchId:String,
                 @BeanProperty device_info:String,@BeanProperty nonceStr:String,@BeanProperty sign:String,@BeanProperty sign_type:String,
                 @BeanProperty resultCode:String,@BeanProperty err_code:String,@BeanProperty err_code_des:String,@BeanProperty openid:String,
                 @BeanProperty is_subscribe:String,@BeanProperty tradeType:String,@BeanProperty bankType:String,@BeanProperty totalFee:String,
                 @BeanProperty settlement_total_fee:String,@BeanProperty fee_type:String,@BeanProperty cashFee:String,@BeanProperty cash_fee_type:String,
                 @BeanProperty coupon_fee:String,@BeanProperty coupon_count:String,@BeanProperty coupon_type_$n:String,@BeanProperty coupon_id_$n:String,
                 @BeanProperty coupon_fee_$n:String,@BeanProperty transactionId:String,@BeanProperty outTradeNo:String,@BeanProperty attach:String,
                 @BeanProperty timeEnd:String,@BeanProperty isSubscribe:String,@BeanProperty subAppid:String,@BeanProperty subIsSubscribe:String,
                 @BeanProperty subMchId:String,@BeanProperty subOpenid:String

                ){
  def tolog:String={
    returnCode+"|"+return_msg+"|"+appid+"|"+mchId+"|"+
      device_info+"|"+nonceStr +"|"+ sign +"|"+ sign_type+"|"+
      resultCode+"|"+err_code+"|"+ err_code_des+"|"+ openid+"|"+
      is_subscribe +"|"+ tradeType+"|"+ bankType+"|"+ totalFee+"|"+
      settlement_total_fee+"|"+fee_type+"|"+cashFee+"|"+ timeEnd+"|"+
      isSubscribe+"|"+outTradeNo+"|"+subAppid+"|"+subIsSubscribe+"|"+
      subMchId+"|"+subOpenid+"|"+transactionId

  }
}

