All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cloudesire.platform.apiclient.api.EventTestApi Maven / Gradle / Ivy

The newest version!
package com.cloudesire.platform.apiclient.api;

import com.cloudesire.platform.apiclient.dto.model.dto.InvoiceDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.MyUserDTO;
import com.cloudesire.platform.apiclient.dto.model.dto.UserCompanyDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.PATCH;
import retrofit2.http.PUT;
import retrofit2.http.Path;
import retrofit2.http.Query;

import java.util.Map;

public interface EventTestApi
{
    @GET( "test/user/{id}" )
    Call getUser( @Path( "id" ) int userId );

    @GET( "test/invoicePaid/{id}" )
    Call getInvoice( @Path( "id" ) int invoiceId );

    @PATCH( "test/subscription/{id}" )
    Call patch( @Path( "id" ) int subscriptionId, @Body Map emptyMap,
            @Query( "language" ) String language );

    @GET( "test/user/{id}/metadata" )
    Call> getSandboxMetadata( @Path( "id" ) int id );

    @PUT( "test/user/{id}/metadata" )
    Call updateSandboxMetadata( @Path( "id" ) int id, @Body Map payload );

    @GET( "test/userCompany/{id}" )
    Call getUserCompany( @Path( "id" ) int id );
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy