Class CustomerSavedPaymentMethodManagementEndpoint

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

@FrameworkRestController @FrameworkMapping("/customers/{customerId}/saved-payment-methods") @DataRouteByKey("paymentTransaction") @ConditionalOnPaymentTransactionAsSavedPaymentStorageLocation public class CustomerSavedPaymentMethodManagementEndpoint extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • readSavedPaymentMethods

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="customer_id") @FrameworkGetMapping public org.springframework.data.domain.Page<SavedPaymentMethodSummary> readSavedPaymentMethods(@PathVariable("customerId") String customerId, @RequestParam(value="availableToUse",required=false,defaultValue="true") boolean availableToUse, @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="CUSTOMER_SAVED_PAYMENT_MANAGEMENT") @FrameworkPostMapping public SavedPaymentMethodSummary createSavedPaymentMethod(@PathVariable("customerId") String customerId, @RequestBody CreateSavedPaymentMethodRequest createRequest, CustomerRef customerRef, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    • readSavedPaymentMethod

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

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

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="customer_id") @FrameworkDeleteMapping("/{savedPaymentMethodId}") @ResponseStatus(NO_CONTENT) public void deleteSavedPaymentMethod(@PathVariable("customerId") String customerId, @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()