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 usingSavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.
-
-
Constructor Summary
Constructors Constructor Description SensitiveCustomerPaymentAccountEndpoint(PaymentAccountService<PaymentAccount> paymentAccountService, PaymentAccountSummaryService summaryService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description PaymentAccountSummary
addPaymentAccountToCustomer(String customerId, PaymentAccount paymentAccountRequest, boolean makeDefaultAccount, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated, for removal: This API element is subject to removal in a future version.protected PaymentAccountService<PaymentAccount>
getPaymentAccountService()
Deprecated, for removal: This API element is subject to removal in a future version.protected PaymentAccountSummaryService
getSummaryService()
Deprecated, for removal: This API element is subject to removal in a future version.PaymentAccount
readPaymentAccount(String paymentAccountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated, for removal: This API element is subject to removal in a future version.PaymentAccountSummary
updatePaymentAccountLastTransactionData(String paymentAccountId, Instant lastTransactionDateTime, String lastTransactionResultCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
-
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
-
-
Constructor Detail
-
SensitiveCustomerPaymentAccountEndpoint
public SensitiveCustomerPaymentAccountEndpoint(PaymentAccountService<PaymentAccount> paymentAccountService, PaymentAccountSummaryService summaryService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
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.
-
-