Package com.skava.apppaymentplugin.web
Class AppDynamicAppController
java.lang.Object
com.skava.apppaymentplugin.web.AppDynamicAppController
@RestController
@RequestMapping("/payments/apps")
public class AppDynamicAppController
extends Object
AppDynamicAppController
App Controller to call the dynamic app api
With their respective allowed path variable
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<AppResponse>
dynamicAppCall
(AppPath appPath, String version, String locale, int paymentOptionId, long collectionId, AppRequest appRequest)
-
Constructor Details
-
AppDynamicAppController
public AppDynamicAppController()
-
-
Method Details
-
dynamicAppCall
@PostMapping("/{appPath}") @PreAuthorize("hasRoleForServiceAndCollection(\'ROLE_REG_USER\', \'payment\',#collectionId) || hasRoleForServiceAndCollection(\'ROLE_ACCOUNT_BUYER_ADMIN\',\'payment\', #collectionId) || hasRoleForServiceAndCollection(\'ROLE_GUEST\',\'payment\', #collectionId) || hasRoleForServiceAndCollection(\'ROLE_ACCOUNT_BUYER\',\'payment\', #collectionId) || hasPrivilegeForServiceAndCollection(\'payment/create/payment\',\'payment\', #collectionId) || hasPrivilegeForServiceAndCollection(\'payment/create/paymentitem\',\'payment\', #collectionId) || hasPrivilegeForServiceAndCollection(\'payment/create/transaction\', \'payment\',#collectionId) ") public org.springframework.http.ResponseEntity<AppResponse> dynamicAppCall(@PathVariable(value="appPath",required=true) AppPath appPath, @RequestHeader(value="x-version-id",required=false,defaultValue="8.17.4") String version, @RequestHeader(value="locale",required=false,defaultValue="en_US") String locale, @RequestHeader(value="paymentOptionId",required=true,defaultValue="1") int paymentOptionId, @RequestHeader(value="x-collection-id",required=true,defaultValue="1") long collectionId, @RequestBody(required=true) AppRequest appRequest) - Parameters:
appPath
- dynamic path suffix for payment appversion
- API versionlocale
- localeappId
- AppId for the paymentAppstoreId
- storeId for the APP installed inappVersion
- appVersioncollectionId
- collectionId for the userappRequest
- appRequest model containing the request body details- Returns:
-