Interface ChargesApi
public interface ChargesApi
-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<PostChargesResponse>createCharge(PostChargesRequest postChargesRequest) Create/Define a Charge Define a new charge that can later be associated with loans and savings through their respective product definitions or directly on each account instance.retrofit2.Call<PostChargesResponse>createCharge(PostChargesRequest postChargesRequest, Map<String, String> headers) Create/Define a Charge Define a new charge that can later be associated with loans and savings through their respective product definitions or directly on each account instance.retrofit2.Call<DeleteChargesChargeIdResponse>deleteCharge(Long chargeId) Delete a Charge Deletes a Charge.retrofit2.Call<DeleteChargesChargeIdResponse>deleteCharge(Long chargeId, Map<String, String> headers) Delete a Charge Deletes a Charge.retrofit2.Call<List<GetChargesResponse>>Retrieve Charges Returns the list of defined charges.retrofit2.Call<List<GetChargesResponse>>retrieveAllCharges(Map<String, String> headers) Retrieve Charges Returns the list of defined charges.retrofit2.Call<GetChargesResponse>retrieveCharge(Long chargeId) Retrieve a Charge Returns the details of a defined Charge.retrofit2.Call<GetChargesResponse>retrieveCharge(Long chargeId, Map<String, String> headers) Retrieve a Charge Returns the details of a defined Charge.retrofit2.Call<GetChargesTemplateResponse>Retrieve Charge Template This is a convenience resource.retrofit2.Call<GetChargesTemplateResponse>retrieveNewChargeDetails(Map<String, String> headers) Retrieve Charge Template This is a convenience resource.retrofit2.Call<PutChargesChargeIdResponse>updateCharge(Long chargeId, PutChargesChargeIdRequest putChargesChargeIdRequest) Update a Charge Updates the details of a Charge.retrofit2.Call<PutChargesChargeIdResponse>updateCharge(Long chargeId, PutChargesChargeIdRequest putChargesChargeIdRequest, Map<String, String> headers) Update a Charge Updates the details of a Charge.
-
Method Details
-
createCharge
@Headers("Content-Type:application/json") @POST("v1/charges") retrofit2.Call<PostChargesResponse> createCharge(@Body PostChargesRequest postChargesRequest) Create/Define a Charge Define a new charge that can later be associated with loans and savings through their respective product definitions or directly on each account instance.- Parameters:
postChargesRequest- (required)- Returns:
- Call<PostChargesResponse>
-
deleteCharge
@DELETE("v1/charges/{chargeId}") retrofit2.Call<DeleteChargesChargeIdResponse> deleteCharge(@Path("chargeId") Long chargeId) Delete a Charge Deletes a Charge.- Parameters:
chargeId- chargeId (required)- Returns:
- Call<DeleteChargesChargeIdResponse>
-
retrieveAllCharges
Retrieve Charges Returns the list of defined charges. Example Requests: charges- Returns:
- Call<List<GetChargesResponse>>
-
retrieveCharge
@GET("v1/charges/{chargeId}") retrofit2.Call<GetChargesResponse> retrieveCharge(@Path("chargeId") Long chargeId) Retrieve a Charge Returns the details of a defined Charge. Example Requests: charges/1- Parameters:
chargeId- chargeId (required)- Returns:
- Call<GetChargesResponse>
-
retrieveNewChargeDetails
Retrieve Charge Template This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Request: charges/template- Returns:
- Call<GetChargesTemplateResponse>
-
updateCharge
@Headers("Content-Type:application/json") @PUT("v1/charges/{chargeId}") retrofit2.Call<PutChargesChargeIdResponse> updateCharge(@Path("chargeId") Long chargeId, @Body PutChargesChargeIdRequest putChargesChargeIdRequest) Update a Charge Updates the details of a Charge.- Parameters:
chargeId- chargeId (required)putChargesChargeIdRequest- (required)- Returns:
- Call<PutChargesChargeIdResponse>
-
createCharge
@Headers("Content-Type:application/json") @POST("v1/charges") retrofit2.Call<PostChargesResponse> createCharge(@Body PostChargesRequest postChargesRequest, @HeaderMap Map<String, String> headers) Create/Define a Charge Define a new charge that can later be associated with loans and savings through their respective product definitions or directly on each account instance.- Parameters:
postChargesRequest- (required)- Returns:
- Call<PostChargesResponse>
-
deleteCharge
@DELETE("v1/charges/{chargeId}") retrofit2.Call<DeleteChargesChargeIdResponse> deleteCharge(@Path("chargeId") Long chargeId, @HeaderMap Map<String, String> headers) Delete a Charge Deletes a Charge.- Parameters:
chargeId- chargeId (required)- Returns:
- Call<DeleteChargesChargeIdResponse>
-
retrieveAllCharges
@GET("v1/charges") retrofit2.Call<List<GetChargesResponse>> retrieveAllCharges(@HeaderMap Map<String, String> headers) Retrieve Charges Returns the list of defined charges. Example Requests: charges- Returns:
- Call<List<GetChargesResponse>>
-
retrieveCharge
@GET("v1/charges/{chargeId}") retrofit2.Call<GetChargesResponse> retrieveCharge(@Path("chargeId") Long chargeId, @HeaderMap Map<String, String> headers) Retrieve a Charge Returns the details of a defined Charge. Example Requests: charges/1- Parameters:
chargeId- chargeId (required)- Returns:
- Call<GetChargesResponse>
-
retrieveNewChargeDetails
@GET("v1/charges/template") retrofit2.Call<GetChargesTemplateResponse> retrieveNewChargeDetails(@HeaderMap Map<String, String> headers) Retrieve Charge Template This is a convenience resource. It can be useful when building maintenance user interface screens for client applications. The template data returned consists of any or all of: Field Defaults Allowed description Lists Example Request: charges/template- Returns:
- Call<GetChargesTemplateResponse>
-
updateCharge
@Headers("Content-Type:application/json") @PUT("v1/charges/{chargeId}") retrofit2.Call<PutChargesChargeIdResponse> updateCharge(@Path("chargeId") Long chargeId, @Body PutChargesChargeIdRequest putChargesChargeIdRequest, @HeaderMap Map<String, String> headers) Update a Charge Updates the details of a Charge.- Parameters:
chargeId- chargeId (required)putChargesChargeIdRequest- (required)- Returns:
- Call<PutChargesChargeIdResponse>
-