Class AccountSavedPaymentMethodManagementEndpoint

java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.AccountSavedPaymentMethodManagementEndpoint

@FrameworkRestController @FrameworkMapping("/accounts/{accountId}/saved-payment-methods") @DataRouteByKey("paymentTransaction") @ConditionalOnPaymentTransactionAsSavedPaymentStorageLocation public class AccountSavedPaymentMethodManagementEndpoint extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • readSavedPaymentMethods

      @Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping public org.springframework.data.domain.Page<SavedPaymentMethodSummary> readSavedPaymentMethods(@PathVariable("accountId") String accountId, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • createSavedPaymentMethod

      @Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPostMapping public SavedPaymentMethodSummary createSavedPaymentMethod(@PathVariable("accountId") String accountId, @RequestBody CreateSavedPaymentMethodRequest createRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readSavedPaymentMethod

      @Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping("/{savedPaymentMethodId}") public SavedPaymentMethodSummary readSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • updateSavedPaymentMethod

      @Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPatchMapping("/{savedPaymentMethodId}") public SavedPaymentMethodSummary updateSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, @RequestBody UpdateSavedPaymentMethodRequest updateRequest, Integer version, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • deleteSavedPaymentMethod

      @Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkDeleteMapping("/{savedPaymentMethodId}") @ResponseStatus(NO_CONTENT) public void deleteSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, Integer version, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • getSavedPaymentMethodService

      protected SavedPaymentMethodService<SavedPaymentMethod> getSavedPaymentMethodService()
    • getSummaryService

      protected SavedPaymentMethodSummaryService getSummaryService()
    • getSavedPaymentMethodVersionValidationService

      protected SavedPaymentMethodVersionValidationService getSavedPaymentMethodVersionValidationService()