Class SensitiveCustomerPaymentAccountEndpoint

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

@FrameworkRestController @FrameworkMapping("/payment-accounts") @DataRouteByExample(Customer.class) @ConditionalOnCustomerAsSavedPaymentStorageLocation @Deprecated(since="1.7.2", forRemoval=true) public class SensitiveCustomerPaymentAccountEndpoint 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.
  • Field Details

    • BASE_URI

      public static final String BASE_URI
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

  • Method Details

    • readPaymentAccount

      @Policy(permissionRoots="SENSITIVE_CUSTOMER_PAYMENT_ACCOUNT") @FrameworkGetMapping("/{paymentAccountId}") public PaymentAccount readPaymentAccount(@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.
    • addPaymentAccountToCustomer

      @Policy(permissionRoots="SENSITIVE_CUSTOMER_PAYMENT_ACCOUNT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0) @FrameworkPostMapping("/{customerId}") 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.
    • updatePaymentAccountLastTransactionData

      @Policy(permissionRoots="SENSITIVE_CUSTOMER_PAYMENT_ACCOUNT") @FrameworkPatchMapping("/update-transaction-data/{paymentAccountId}") public PaymentAccountSummary updatePaymentAccountLastTransactionData(@PathVariable("paymentAccountId") String paymentAccountId, @RequestParam("lastTransactionDateTime") Instant lastTransactionDateTime, @RequestParam(value="lastTransactionResultCode",required=false) String lastTransactionResultCode, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      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.