1 package com.foxinmy.weixin4j.pay.type;
2
3 import java.io.Serializable;
4
5
6
7
8
9
10
11
12
13
14 public class IdQuery implements Serializable {
15
16 private static final long serialVersionUID = -5273675987521807370L;
17
18
19
20 private String id;
21
22
23
24
25
26 private IdType type;
27
28 public IdQuery(String id, IdType idType) {
29 this.id = id;
30 this.type = idType;
31 }
32
33 public String getId() {
34 return id;
35 }
36
37 public IdType getType() {
38 return type;
39 }
40
41 @Override
42 public String toString() {
43 return String.format("%s=%s", type.getName(), id);
44 }
45 }