Subversion Repositories SmartDukaan

Rev

Rev 21935 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21935 Rev 21964
Line 8... Line 8...
8
 
8
 
9
import com.google.gson.Gson;
9
import com.google.gson.Gson;
10
 
10
 
11
public class VerifyDocController extends BaseController {
11
public class VerifyDocController extends BaseController {
12
	
12
	
13
	String gstIn;
13
	String gstin;
14
	long userId;
14
	long userId;
15
	private String response;
15
	private String response;
16
	
16
	
17
 
17
 
18
	public String index() throws Exception {
18
	public String index() throws Exception {
19
		UserClient userServiceClient = new UserClient();
19
		UserClient userServiceClient = new UserClient();
20
        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
20
        in.shop2020.model.v1.user.UserContextService.Client userClient = userServiceClient.getClient();
21
        Counter counter = new Counter();
21
        Counter counter = new Counter();
22
        long currentTime = new Date().getTime();
22
        long currentTime = new Date().getTime();
23
        counter.setGstIn(gstIn);
23
        counter.setGstin(gstin);
24
        counter.setAddedOn(currentTime);
24
        counter.setAddedOn(currentTime);
25
        counter.setVerifiedOn(currentTime);
25
        counter.setVerifiedOn(currentTime);
26
        counter.setVerificationType(CounterVerificationType.OFFLINE);
26
        counter.setVerificationType(CounterVerificationType.OFFLINE);
27
        counter.setDocumentVerified(true);
27
        counter.setDocumentVerified(true);
28
        this.response = new Gson().toJson(userClient.registerCounter(counter, userId));
28
        this.response = new Gson().toJson(userClient.registerCounter(counter, userId));
29
        return "index";
29
        return "index";
30
	}
30
	}
31
 
-
 
32
	
31
	
-
 
32
 
33
	public String getResponse() {
33
	public String getResponse() {
34
		return response;
34
		return response;
35
	}
35
	}
36
 
36
 
-
 
37
 
37
	public String getGstIn() {
38
	public String getGstin() {
38
		return gstIn;
39
		return gstin;
39
	}
40
	}
40
 
41
 
41
	public void setGstIn(String gstIn) {
42
	public void setGstin(String gstin) {
42
		this.gstIn = gstIn;
43
		this.gstin = gstin;
43
	}
44
	}
44
 
45
 
45
 
46
 
46
 
47
 
47
	public long getUserId() {
48
	public long getUserId() {