Class SensitiveCustomerPaymentAccountEndpoint

    • Field Detail

      • BASE_URI

        public static final String BASE_URI
        Deprecated, for removal: This API element is subject to removal in a future version.
        See Also:
        Constant Field Values
    • Method Detail

      • 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.