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.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSensitiveCustomerPaymentAccountEndpoint
(PaymentAccountService<PaymentAccount> paymentAccountService, PaymentAccountSummaryService summaryService) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionaddPaymentAccountToCustomer
(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>
Deprecated, for removal: This API element is subject to removal in a future version.protected PaymentAccountSummaryService
Deprecated, for removal: This API element is subject to removal in a future version.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.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 Details
-
BASE_URI
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
SensitiveCustomerPaymentAccountEndpoint
public SensitiveCustomerPaymentAccountEndpoint(PaymentAccountService<PaymentAccount> paymentAccountService, PaymentAccountSummaryService summaryService) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
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
Deprecated, for removal: This API element is subject to removal in a future version. -
getSummaryService
Deprecated, for removal: This API element is subject to removal in a future version.
-
SavedPaymentMethod
in PaymentTransactionServices to manage saved payment methods.