package io.renren.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Data;

/**
 * 连连账户系统常量
 * @author lsy
 */
@Component
@Data
public class LLianPayConstant {
	public final static String RET_CODE = "0000";
	
    /**
	 * 连连账户公钥（无需进行替换）
	 */
	@Value("${LLianPay.public-key:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCSS/DiwdCf/aZsxxcacDnooGph3d2JOj5GXWi+q3gznZauZjkNP8SKl3J2liP0O6rU/Y/29+IUe+GTMhMOFJuZm1htAtKiu5ekW0GlBMWxf4FPkYlQkPE0FtaoMP3gYfh+OwI+fIRrpW3ySn3mScnc6Z700nU/VYrRkfcSCbSnRwIDAQAB}")
	private String publicKey;
    
	/**
	 * 连连账户私钥（正式环境需要替换）
	 */
	@Value("${LLianPay.private-key:MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAPD+malK2W3UJXfX5rO79gRUbLe+kwCskw7VzETXA4Qf/5VWlPxOb16SlflkE4zyInhGwehjUTvXPvebNtZJJpKS+Q/7oWw6hMQ1cIC99DWmV6Orjtz61Tmi5A/4QnYqUm2GRScfrnyILQw9/qikkvyjo0pPsIMT2rhmu31LSySNAgMBAAECgYEAokaubeKq2lu6ByLohCqTFINM2cWH8zJBrAGnFMu74GIzlfnBRMwEDiiiuFX9HDGHqHns5HDMKIFeMxjfKhgD0exp3S06xpSbmkIbvWLM+xBl70/+SLG7wztZ4KtdKu7PR26xJht6zM/KDrovuRzFYNB6ZbyO3My9CJXaZS6GU/kCQQD+/wsf0M7Byp+sPzy3SEn8katFopVOz8oESBBuSNNXl1rgyWfgVXBUKRDAus8oa/Nhx2zWNqpuchrHerPp5McHAkEA8fFyidW4nMkL3x4ULQmbsZBqsNEXoKv3fDDvHWRljX0AElel+XaVuxrtpYiDxwqFSM0s92nCBj2ZXt4O+d2eywJAS5mFzMr1YZMXP9QHxjcSaGUvqBeJuLH2LMrIxEmnDuL6uIY928643NrH8rvvywYmRCkB5YiTgucldVq1mHSRZQJAYny8+WrsqbYVhQ/DesnsfQ2iwLN9AMTAC+gHjlluFXiK7OyM/c3OCcpebwHxUrbvpsEOyvBcMRomMr4GLqSOnQJAcDKoXpkYFGakejn6LQj57EBtMgfVNatTipBnQxPaHMGGO9V9SzedbkgNg0NBSzsNsauKnFOy+yFwFqf6oGHm0A==}")
	private String privateKey;
	
	/**
	 * 连连账户商户号（正式环境需要替换）
	 */
	@Value("${LLianPay.oid-partner:2020042200284052}")
	private String oidPartner;
	
    /**
	 * 交易完成回跳页面地址
	 */
	@Value("${LLianPay.return-url:https://open.lianlianpay.com?jump=page}")
	private String returnUrl;
	
	/**
	 * 交易结果异步通知接收地址
	 */
	@Value("${LLianPay.notify-url:https://test.lianlianpay/notify}")
	private String notifyUrl;
	
	/**
	 * 开户申请
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpgw-ste.lianlianpay-inc.com/v1/acctmgr/openacct-apply}")
	private String openacctApply;
	
	/**
	 * 账户信息查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/acctmgr/query-acctinfo}")
	private String queryAcctinfo;
	
	/**
	 * 用户信息查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/acctmgr/query-userinfo}")
	private String queryUserinfo;
	
	/**
	 * 资金流水列表查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/acctmgr/query-acctserial}")
	private String queryAcctserial;
	
	/**
	 * 资金流水详情查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/acctmgr/query-acctserialdetail}")
	private String queryAcctserialdetail;
	
	/**
	 * 协议申请
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpgw-ste.lianlianpay-inc.com/v1/txn/pap-agree-apply}")
	private String papAgreeApply;
	/**
	 * 协议修改
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpgw-ste.lianlianpay-inc.com/v1/txn/pap-agree-modify}")
	private String papAgreeModify;
	
	/**
	 * 协议单条查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpgw-ste.lianlianpay-inc.com/v1/txn/pap-agree-query}")
	private String papAgreeQuery;
	
	/**
	 * 协议分页查询
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/txn/pap-agree-pagequery}")
	private String papAgreePagequery;
	
	/**
	 * 内部代发
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/txn/transfer-morepyee}")
	private String transferMorepyee;
	
	/**
	 * 外部代发
	 */
	@Value("${LLianPay.url.openacct-apply:https://accpapi-ste.lianlianpay-inc.com/v1/txn/transfer}")
	private String transfer;
}
