package co.paystack.android.api.request;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.HashMap;

/**
 * Created by i on 24/08/2016.
 */
public class ValidateRequestBody extends BaseRequestBody implements Serializable {

    public static final String FIELD_TRANS = "trans";
    public static final String FIELD_TOKEN = "token";

    @SerializedName(FIELD_TRANS)
    public String trans;

    @SerializedName(FIELD_TOKEN)
    public String token;

    public ValidateRequestBody() {
    }

    public ValidateRequestBody(String trans, String token) {
        this.trans = trans;
        this.token = token;
    }

    @Override
    public HashMap<String, String> getParamsHashMap() {
        HashMap<String, String> params = new HashMap<>();
        params.put(FIELD_TRANS, trans);
        params.put(FIELD_TOKEN, token);
        return params;
    }
}
@@ -531,24 +531,84 @@
 () %7B%0A    %7D%0A%0A
+    public String getTrans() %7B%0A        return trans;%0A    %7D%0A%0A
     public V
@@ -625,16 +625,25 @@
 uestBody
+ setTrans
 (String 
@@ -651,17 +651,86 @@
 rans
-,
+) %7B%0A        this.trans = trans;%0A        return this;%0A    %7D%0A%0A    public
  String 
 toke
@@ -725,21 +725,25 @@
  String 
-t
+getT
 oken
+(
 ) %7B%0A    
@@ -746,35 +746,92 @@
         
-this.trans = trans;
+return token;%0A    %7D%0A%0A    public ValidateRequestBody setToken(String token) %7B
 %0A       
@@ -843,32 +843,53 @@
 .token = token;%0A
+        return this;%0A
     %7D%0A%0A    @Over
@@ -1039,21 +1039,26 @@
 _TRANS, 
-t
+getT
 rans
+()
 );%0A     
@@ -1084,21 +1084,26 @@
 _TOKEN, 
-t
+getT
 oken
+()
 );%0A     

Validate request body get and set fields