Class CustomerPaymentAccountEndpoint

java.lang.Object
com.broadleafcommerce.customer.web.endpoint.CustomerPaymentAccountEndpoint

@FrameworkRestController @FrameworkMapping("/customers/{customerId}/payment-accounts") @DataRouteByExample(Customer.class) @ConditionalOnCustomerAsSavedPaymentStorageLocation @Deprecated(since="1.7.2", forRemoval=true) public class CustomerPaymentAccountEndpoint extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
since 1.7.2, in favor of using SavedPaymentMethod in PaymentTransactionServices to manage saved payment methods.
  • Constructor Details

  • Method Details

    • readPaymentAccounts

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkGetMapping public org.springframework.data.domain.Page<PaymentAccountSummary> readPaymentAccounts(@PathVariable("customerId") String customerId, @PageableDefault org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addPaymentAccountToCustomer

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkPostMapping public PaymentAccountSummary addPaymentAccountToCustomer(@PathVariable("customerId") String customerId, @RequestBody PaymentAccount paymentAccountRequest, @RequestParam(value="default",required=false,defaultValue="false") boolean makeDefaultAccount, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • readPaymentAccount

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkGetMapping("/{paymentAccountId}") public PaymentAccountSummary readPaymentAccount(@PathVariable("customerId") String customerId, @PathVariable("paymentAccountId") String paymentAccountId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • updatePaymentAccount

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkPatchMapping("/{paymentAccountId}") public PaymentAccountSummary updatePaymentAccount(@PathVariable("customerId") String customerId, @PathVariable("paymentAccountId") String paymentAccountId, @RequestParam(value="default",required=false,defaultValue="false") boolean makeDefaultAccount, @RequestBody CustomerPaymentAccountEndpoint.PaymentAccountUpdate paymentAccountRequest, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • deletePaymentAccount

      @Policy(permissionRoots="CUSTOMER_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkDeleteMapping("/{paymentAccountId}") @ResponseStatus(NO_CONTENT) public void deletePaymentAccount(@PathVariable("customerId") String customerId, @PathVariable("paymentAccountId") String paymentAccountId, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCustomerService

      protected CustomerService<Customer> getCustomerService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPaymentAccountService

      protected PaymentAccountService<PaymentAccount> getPaymentAccountService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getSummaryService

      protected PaymentAccountSummaryService getSummaryService()
      Deprecated, for removal: This API element is subject to removal in a future version.