Interface ProductsApi
public interface ProductsApi
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<PostProductsTypeResponse> createProduct(String type, PostProductsTypeRequest postProductsTypeRequest) Create a Share Product Creates a Share Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, locale, totalShares, unitPrice, nominalShares,allowDividendCalculationForInactiveClients,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): shareReferenceId, shareSuspenseId, shareEquityId, incomeFromFeeAccountId Optional Fields: sharesIssued, minimumShares, maximumShares, minimumActivePeriodForDividends, minimumactiveperiodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType, marketPricePeriods, chargesSelectedretrofit2.Call<PostProductsTypeResponse> createProduct(String type, PostProductsTypeRequest postProductsTypeRequest, Map<String, String> headers) Create a Share Product Creates a Share Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, locale, totalShares, unitPrice, nominalShares,allowDividendCalculationForInactiveClients,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): shareReferenceId, shareSuspenseId, shareEquityId, incomeFromFeeAccountId Optional Fields: sharesIssued, minimumShares, maximumShares, minimumActivePeriodForDividends, minimumactiveperiodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType, marketPricePeriods, chargesSelectedretrofit2.Call<String> handleCommands3(String type, Long productId, String command) retrofit2.Call<String> retrofit2.Call<GetProductsTypeResponse> retrieveAllProducts(String type, Integer offset, Integer limit) List Share Products Lists Share Products Mandatory Fields: limit, offset Example Requests: shareproductsretrofit2.Call<GetProductsTypeResponse> List Share Products Lists Share Products Mandatory Fields: limit, offset Example Requests: shareproductsretrofit2.Call<GetProductsTypeProductIdResponse> retrieveProduct(Long productId, String type) Retrieve a Share Product Retrieves a Share Product Example Requests: products/share/1 products/share/1?template=trueretrofit2.Call<GetProductsTypeProductIdResponse> Retrieve a Share Product Retrieves a Share Product Example Requests: products/share/1 products/share/1?template=trueretrofit2.Call<String> retrieveTemplate13(String type) retrofit2.Call<String> retrieveTemplate13(String type, Map<String, String> headers) retrofit2.Call<PutProductsTypeProductIdResponse> updateProduct(String type, Long productId, PutProductsTypeProductIdRequest putProductsTypeProductIdRequest) Update a Share Product Updates a Share Productretrofit2.Call<PutProductsTypeProductIdResponse> updateProduct(String type, Long productId, PutProductsTypeProductIdRequest putProductsTypeProductIdRequest, Map<String, String> headers) Update a Share Product Updates a Share Product
-
Method Details
-
createProduct
@Headers("Content-Type:application/json") @POST("v1/products/{type}") retrofit2.Call<PostProductsTypeResponse> createProduct(@Path("type") String type, @Body PostProductsTypeRequest postProductsTypeRequest) Create a Share Product Creates a Share Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, locale, totalShares, unitPrice, nominalShares,allowDividendCalculationForInactiveClients,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): shareReferenceId, shareSuspenseId, shareEquityId, incomeFromFeeAccountId Optional Fields: sharesIssued, minimumShares, maximumShares, minimumActivePeriodForDividends, minimumactiveperiodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType, marketPricePeriods, chargesSelected- Parameters:
type- type (required)postProductsTypeRequest- (required)- Returns:
- Call<PostProductsTypeResponse>
-
handleCommands3
@POST("v1/products/{type}/{productId}") retrofit2.Call<String> handleCommands3(@Path("type") String type, @Path("productId") Long productId, @Query("command") String command) - Parameters:
type- type (required)productId- productId (required)command- command (optional)- Returns:
- Call<String>
-
retrieveAllProducts
@GET("v1/products/{type}") retrofit2.Call<GetProductsTypeResponse> retrieveAllProducts(@Path("type") String type, @Query("offset") Integer offset, @Query("limit") Integer limit) List Share Products Lists Share Products Mandatory Fields: limit, offset Example Requests: shareproducts- Parameters:
type- type (required)offset- offset (optional)limit- limit (optional)- Returns:
- Call<GetProductsTypeResponse>
-
retrieveProduct
@GET("v1/products/{type}/{productId}") retrofit2.Call<GetProductsTypeProductIdResponse> retrieveProduct(@Path("productId") Long productId, @Path("type") String type) Retrieve a Share Product Retrieves a Share Product Example Requests: products/share/1 products/share/1?template=true- Parameters:
productId- productId (required)type- type (required)- Returns:
- Call<GetProductsTypeProductIdResponse>
-
retrieveTemplate13
@GET("v1/products/{type}/template") retrofit2.Call<String> retrieveTemplate13(@Path("type") String type) - Parameters:
type- type (required)- Returns:
- Call<String>
-
updateProduct
@Headers("Content-Type:application/json") @PUT("v1/products/{type}/{productId}") retrofit2.Call<PutProductsTypeProductIdResponse> updateProduct(@Path("type") String type, @Path("productId") Long productId, @Body PutProductsTypeProductIdRequest putProductsTypeProductIdRequest) Update a Share Product Updates a Share Product- Parameters:
type- type (required)productId- productId (required)putProductsTypeProductIdRequest- (required)- Returns:
- Call<PutProductsTypeProductIdResponse>
-
createProduct
@Headers("Content-Type:application/json") @POST("v1/products/{type}") retrofit2.Call<PostProductsTypeResponse> createProduct(@Path("type") String type, @Body PostProductsTypeRequest postProductsTypeRequest, @HeaderMap Map<String, String> headers) Create a Share Product Creates a Share Product Mandatory Fields: name, shortName, description, currencyCode, digitsAfterDecimal,inMultiplesOf, locale, totalShares, unitPrice, nominalShares,allowDividendCalculationForInactiveClients,accountingRule Mandatory Fields for Cash based accounting (accountingRule = 2): shareReferenceId, shareSuspenseId, shareEquityId, incomeFromFeeAccountId Optional Fields: sharesIssued, minimumShares, maximumShares, minimumActivePeriodForDividends, minimumactiveperiodFrequencyType, lockinPeriodFrequency, lockinPeriodFrequencyType, marketPricePeriods, chargesSelected- Parameters:
type- type (required)postProductsTypeRequest- (required)- Returns:
- Call<PostProductsTypeResponse>
-
handleCommands3
@POST("v1/products/{type}/{productId}") retrofit2.Call<String> handleCommands3(@Path("type") String type, @Path("productId") Long productId, @Query("command") String command, @HeaderMap Map<String, String> headers) - Parameters:
type- type (required)productId- productId (required)command- command (optional)- Returns:
- Call<String>
-
retrieveAllProducts
@GET("v1/products/{type}") retrofit2.Call<GetProductsTypeResponse> retrieveAllProducts(@Path("type") String type, @Query("offset") Integer offset, @Query("limit") Integer limit, @HeaderMap Map<String, String> headers) List Share Products Lists Share Products Mandatory Fields: limit, offset Example Requests: shareproducts- Parameters:
type- type (required)offset- offset (optional)limit- limit (optional)- Returns:
- Call<GetProductsTypeResponse>
-
retrieveProduct
@GET("v1/products/{type}/{productId}") retrofit2.Call<GetProductsTypeProductIdResponse> retrieveProduct(@Path("productId") Long productId, @Path("type") String type, @HeaderMap Map<String, String> headers) Retrieve a Share Product Retrieves a Share Product Example Requests: products/share/1 products/share/1?template=true- Parameters:
productId- productId (required)type- type (required)- Returns:
- Call<GetProductsTypeProductIdResponse>
-
retrieveTemplate13
@GET("v1/products/{type}/template") retrofit2.Call<String> retrieveTemplate13(@Path("type") String type, @HeaderMap Map<String, String> headers) - Parameters:
type- type (required)- Returns:
- Call<String>
-
updateProduct
@Headers("Content-Type:application/json") @PUT("v1/products/{type}/{productId}") retrofit2.Call<PutProductsTypeProductIdResponse> updateProduct(@Path("type") String type, @Path("productId") Long productId, @Body PutProductsTypeProductIdRequest putProductsTypeProductIdRequest, @HeaderMap Map<String, String> headers) Update a Share Product Updates a Share Product- Parameters:
type- type (required)productId- productId (required)putProductsTypeProductIdRequest- (required)- Returns:
- Call<PutProductsTypeProductIdResponse>
-