|
@@ -11,8 +11,6 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
public class AlipayHeaders {
|
|
|
- private static final Map<Integer, List<String>> mappedHeaders = new HashMap<>();
|
|
|
- private static final Map<Integer, String> mappedNames = new HashMap<>();
|
|
|
public static final String REGISTER_1 = "卡类型";
|
|
|
public static final String REGISTER_2 = "银行简称";
|
|
|
public static final String REGISTER_3 = "绑定卡号";
|
|
@@ -28,16 +26,8 @@ public class AlipayHeaders {
|
|
|
public static final String ACCOUNT_2 = "支付宝户名";
|
|
|
public static final String ACCOUNT_3 = "对手支付宝用户ID";
|
|
|
public static final String ACCOUNT_4 = "对手支付宝户名";
|
|
|
-
|
|
|
- public AlipayHeaders() {}
|
|
|
-
|
|
|
- public static List<String> getHeaders(int type) {
|
|
|
- return mappedHeaders.get(type);
|
|
|
- }
|
|
|
-
|
|
|
- public static String getGeneratedName(int type) {
|
|
|
- return mappedNames.get(type);
|
|
|
- }
|
|
|
+ private static final Map<Integer, List<String>> mappedHeaders = new HashMap<>();
|
|
|
+ private static final Map<Integer, String> mappedNames = new HashMap<>();
|
|
|
|
|
|
static {
|
|
|
mappedHeaders.put(
|
|
@@ -127,4 +117,14 @@ public class AlipayHeaders {
|
|
|
mappedNames.put(10, "五联单-转账明细");
|
|
|
mappedNames.put(11, "五联单-用户汇总表");
|
|
|
}
|
|
|
+
|
|
|
+ public AlipayHeaders() {}
|
|
|
+
|
|
|
+ public static List<String> getHeaders(int type) {
|
|
|
+ return mappedHeaders.get(type);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static String getGeneratedName(int type) {
|
|
|
+ return mappedNames.get(type);
|
|
|
+ }
|
|
|
}
|