jp.co.freee.accounting.api.TaxesApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freee-accounting-sdk Show documentation
Show all versions of freee-accounting-sdk Show documentation
freee accounting client SDK for Java
package jp.co.freee.accounting.api;
import jp.co.freee.accounting.CollectionFormats.*;
import io.reactivex.Observable;
import io.reactivex.Completable;
import retrofit2.http.*;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import okhttp3.MultipartBody;
import jp.co.freee.accounting.models.BadRequestError;
import jp.co.freee.accounting.models.BadRequestNotFoundError;
import jp.co.freee.accounting.models.ForbiddenError;
import jp.co.freee.accounting.models.InlineResponse20010;
import jp.co.freee.accounting.models.InlineResponse2009;
import jp.co.freee.accounting.models.InternalServerError;
import jp.co.freee.accounting.models.TaxResponse;
import jp.co.freee.accounting.models.UnauthorizedError;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public interface TaxesApi {
/**
* 税区分コードの取得
*
* @param code 税区分コード (required)
* @return Observable<TaxResponse>
*/
@GET("api/1/taxes/codes/{code}")
Observable getTaxCode(
@retrofit2.http.Path("code") Integer code
);
/**
* 税区分コード一覧の取得
*
* @return Observable<InlineResponse2009>
*/
@GET("api/1/taxes/codes")
Observable getTaxCodes();
/**
* 税区分コード詳細一覧の取得
*
* @param companyId 事業所ID (required)
* @return Observable<InlineResponse20010>
*/
@GET("api/1/taxes/companies/{company_id}")
Observable getTaxesCompanies(
@retrofit2.http.Path("company_id") Integer companyId
);
}