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 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 app
      version - API version
      locale - locale
      appId - AppId for the paymentApp
      storeId - storeId for the APP installed in
      appVersion - appVersion
      collectionId - collectionId for the user
      appRequest - appRequest model containing the request body details
      Returns: