// Path: libs/token/src/main/java/com/africastalking/token/AuthTokenResponse.java
// public final class AuthTokenResponse {
//     public String token;
//     public long lifetimeInSeconds;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }
// 
// Path: libs/token/src/main/java/com/africastalking/token/CheckoutTokenResponse.java
// public final class CheckoutTokenResponse {
//     public String token;
//     public String description;
//     
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// 
// }


import com.africastalking.token.AuthTokenResponse;
import com.africastalking.token.CheckoutTokenResponse;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Body;
package com.africastalking;



interface IToken {

    @FormUrlEncoded
    @POST("checkout/token/create")
    Call<CheckoutTokenResponse> createCheckoutToken(@Field("phoneNumber") String phoneNumber);

    @Headers("Content-Type: application/json")
    @POST("auth-token/generate")
// Path: libs/token/src/main/java/com/africastalking/token/AuthTokenResponse.java
// public final class AuthTokenResponse {
//     public String token;
//     public long lifetimeInSeconds;
// 
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// }
// 
// Path: libs/token/src/main/java/com/africastalking/token/CheckoutTokenResponse.java
// public final class CheckoutTokenResponse {
//     public String token;
//     public String description;
//     
//     @Override
//     public String toString() {
//         return new Gson().toJson(this);
//     }
// 
// }


// Path: libs/token/src/main/java/com/africastalking/IToken.java
import com.africastalking.token.AuthTokenResponse;
import com.africastalking.token.CheckoutTokenResponse;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Body;

package com.africastalking;



interface IToken {

    @FormUrlEncoded
    @POST("checkout/token/create")
    Call<CheckoutTokenResponse> createCheckoutToken(@Field("phoneNumber") String phoneNumber);

    @Headers("Content-Type: application/json")
    @POST("auth-token/generate")
    Call<AuthTokenResponse> generateAuthToken(@Body String body);