package com.jeequan.jeepay.thirdparty.channel.lklspay.model;


import com.jeequan.jeepay.thirdparty.channel.lklspay.util.LklspayConst;
import org.springframework.http.MediaType;

import static com.jeequan.jeepay.thirdparty.channel.lklspay.util.LklspayConst.*;

public final class LklTkReqMethod extends ILklTkReqMethod {

    /**
     * 拉卡拉平台公钥
     */
    public static final String PUB_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCHB7j7gG3ioLnnr7bsuEXTAh/8YSxSp4lQIYGW9gX0Ikgz9JqARdg4iEnU6tgNirxA6Jdg0AWgLJQxQBEZMkwyK2ZfYgesYhlJkv6WVC8v5OkOrhA9NSQ3iS6JsYegsZO0GJSTtLQaTOF8WobPYe5NI+eWU1fRz2ZyxlWlKshBeQIDAQAB";

    /**
     * 拉卡拉roshang机构私钥
     */
    public static final String PRI_KEY = "MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAIcHuPuAbeKgueevtuy4RdMCH/xhLFKniVAhgZb2BfQiSDP0moBF2DiISdTq2A2KvEDol2DQBaAslDFAERkyTDIrZl9iB6xiGUmS/pZULy/k6Q6uED01JDeJLomxh6Cxk7QYlJO0tBpM4Xxahs9h7k0j55ZTV9HPZnLGVaUqyEF5AgMBAAECgYAmugRHvXHGiapH1JF2GvOLrRRXYddAbWRoYvOzxCO4/QwQOpsFJwL4U745HpGQcLXFN/ASiBbU9XQbG/DLdS182qAjvdZVJOA2e3H3LhpY3D8ec3webO+0nGk6e4oWGG1efJLM88Nb0FtQiQ0E6z17Paw5AGvxMVBPbL5SoQfq8QJBANHQmvFkAWlBL2XTLPUXaj+NAJzolE90ctAquxfDcTtfEXv0JitC5bwTg87uNl7n4PUTmtMDIkse+D5vQ2CIF78CQQCkwOIMzedKtWhOEbdGxiz1Y/jkuA8yF7HREeC7X2Av0z2Gi3yltoJd0s6zLn+6zowQp1O/5U6ifrYCIObWlTTHAkA0WOZ/eWL8vr2zmvdpgtkIWAaiH0j5deU7WJ3rNODoXjS/h0+KlZs5zGijVT2Nei7fFnAXW33P3j8zXJEj4XCDAkAcrG0rKVLNz9C9dZveN3NvqdyRge8zGqiZ6HCia7ED4dHdbr1c4ezCg4Px72/PhU8fPt/2j+Qlp8PpjuxeAE3VAkBqUiVV9XZptFEXa/77rgHP3SWrC3TcrrS5jtNTGfA4VISV95YXnZzWjYfpgs2WoxdAXjsrM5TB7L3V4um4o6Dp";

    public static final ILklTkReqMethod TOKEN_AUDIT = new LklTkReqMethod("https://tkapi.lakala.com/auth/oauth/token", null, POST, MediaType.APPLICATION_FORM_URLENCODED);
    public static final ILklTkReqMethod AUDIT = new LklTkReqMethod("https://htkactvi.lakala.com/registration/merchant", null, POST);
    public static final ILklTkReqMethod SUB_MERC_LIST = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/open/merchant/submer", null, POST, true);

    public static final ILklTkReqMethod AUDIT_STATUS_GET = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/open/merchant/info", null, POST, true);
    public static final ILklTkReqMethod TOKEN_EDIT = new LklTkReqMethod("https://htkapi.lakala.com/auth/oauth/token", null, POST, MediaType.APPLICATION_FORM_URLENCODED);
    public static final ILklTkReqMethod RATE_GET = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/channel/customer/update/fee/" + CUSTOMER_NO_PLACE_HOLDER, CUSTOMER_NO_PLACE_HOLDER, GET);
    public static final ILklTkReqMethod RATE_CHANGE = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/channel/customer/update/fee/" + CUSTOMER_NO_PLACE_HOLDER, CUSTOMER_NO_PLACE_HOLDER, POST, EDIT);
    public static final ILklTkReqMethod SETTLE_GET = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/channel/customer/update/settle/" + CUSTOMER_NO_PLACE_HOLDER, CUSTOMER_NO_PLACE_HOLDER, GET);
    public static final ILklTkReqMethod SETTLE_CHANGE = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/channel/customer/update/settle/" + CUSTOMER_NO_PLACE_HOLDER, CUSTOMER_NO_PLACE_HOLDER, POST);
    public static final ILklTkReqMethod BASE_INFO_CHANGE = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/channel/customer/update/basic", null, POST, EDIT);
    public static final ILklTkReqMethod CHANGE_STATUS_GET = new LklTkReqMethod("https://htkapi.lakala.com/api/customer/update/review", null, GET, EDIT);
    public static final ILklTkReqMethod UPLOAD = new LklTkReqMethod("https://htkactvi.lakala.com/registration/file/upload", null, POST);

    public static final ILklTkReqMethod ADD_TERM = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/open/merchant/addTerm", null, POST);
    public static final ILklTkReqMethod MCH_AUTH_STATUS = new LklTkReqMethod("https://s2.lakala.com/api/v2/mms/sme/mrchAuthStateQuery", null, POST);

    /**
     * 拉卡拉开放平台接口，用于查询汇拓客对应的开放平台子商户号
     */
    public static final ILklTkReqMethod QUERY_SUB_MERC = new LklTkReqMethod("https://s2.lakala.com/api/v2/mms/openApi/querySubMerInfo", null, POST);

    /**
     * 复议提交
     */
    public static final ILklTkReqMethod AUDIT_RETRY = new LklTkReqMethod("https://tkapi.lakala.com/htkmerchants/open/merchant/reconsider/submit", null, POST);

    private LklTkReqMethod(String url, String templateWord, String method, MediaType contentType) {
        super(url, templateWord, method, contentType);
    }


    private LklTkReqMethod(String url, String templateWord, String method) {
        super(url, templateWord, method, LklspayConst.AUDIT);
    }

    private LklTkReqMethod(String url, String templateWord, String method, String urlFlag) {
        super(url, templateWord, method, urlFlag);
    }

    private LklTkReqMethod(String url, String templateWord, String method, boolean encrypt) {
        super(url, templateWord, method, encrypt, LklspayConst.AUDIT);
    }
}
