Class CalculationApi
java.lang.Object
com.sap.retail.sapppspricing.swagger.businessobject.api.CalculationApi
@Generated(value="io.swagger.codegen.v3.generators.java.JavaClientCodegen",
date="2022-09-26T19:16:22.658615400+05:30[Asia/Calcutta]")
@Component("com.sap.retail.sapppspricing.swagger.businessobject.api.CalculationApi")
public class CalculationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcalculateViaRestWithTenant(String tenantName) Calculates a PriceCalculateTransaction Determines regular prices by applying promotional rules for the provided list of items.org.springframework.http.ResponseEntity<Void>calculateViaRestWithTenantWithHttpInfo(String tenantName) Calculates a PriceCalculateTransaction Determines regular prices by applying promotional rules for the provided list of items.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
CalculationApi
public CalculationApi() -
CalculationApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
calculateViaRestWithTenant
public void calculateViaRestWithTenant(String tenantName) throws org.springframework.web.client.RestClientException Calculates a PriceCalculateTransaction Determines regular prices by applying promotional rules for the provided list of items.200 - Price calculation was successful.
400 - The price could not be calculated. For more information, see the \"Response\" element of the \"ARTSHeader\" in the returned response.
0 - This error is not related to the Calculation service.
- Parameters:
tenantName- The name of the subdomain in which the service instance/subscription is created. **For the sandbox environment, enter 'oppsapihub'.** (required)- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-
calculateViaRestWithTenantWithHttpInfo
public org.springframework.http.ResponseEntity<Void> calculateViaRestWithTenantWithHttpInfo(String tenantName) throws org.springframework.web.client.RestClientException Calculates a PriceCalculateTransaction Determines regular prices by applying promotional rules for the provided list of items.200 - Price calculation was successful.
400 - The price could not be calculated. For more information, see the \"Response\" element of the \"ARTSHeader\" in the returned response.
0 - This error is not related to the Calculation service.
- Parameters:
tenantName- The name of the subdomain in which the service instance/subscription is created. **For the sandbox environment, enter 'oppsapihub'.** (required)- Returns:
- ResponseEntity<Void>
- Throws:
org.springframework.web.client.RestClientException- if an error occurs while attempting to invoke the API
-