package co.paystack.android.api.service;

import java.util.HashMap;

import co.paystack.android.api.model.TokenApiResponse;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * ApiService
 */
public interface ApiService {

  /**
   * call for creating token
   *
   * @param fields - the fields of postData to send
   * @return Call - a call that can be executed directly `call.execute()` (synchronous implementation)
   *            or enqueued `call.enqueue(params)` (asynchronous implementation)
   * @see retrofit2.Call
   */
  @FormUrlEncoded
  @POST("/bosco/createmobiletoken")
  Call<TokenApiResponse> createToken(@FieldMap HashMap<String, String> fields);

}

@@ -99,21 +99,135 @@
 i.model.
-Token
+ChargeApiResponse;%0Aimport co.paystack.android.api.model.TokenApiResponse;%0Aimport co.paystack.android.api.model.Validate
 ApiRespo
@@ -848,10 +848,286 @@
 elds);%0A%0A
+%0A    @FormUrlEncoded%0A    @POST(%22/charge/mobile_charge%22)%0A    Call%3CChargeApiResponse%3E charge(@FieldMap HashMap%3CString, String%3E fields);%0A%0A%0A    @FormUrlEncoded%0A    @POST(%22/charge/validate%22)%0A    Call%3CValidateApiResponse%3E validateCharge(@FieldMap HashMap%3CString, String%3E fields);%0A%0A%0A
 %7D%0A

Add Charge and Validate Endpoints