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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version.A custom DTO that is intended for the specific purpose of supporting PATCH forPaymentAccount
. -
Constructor Summary
ConstructorDescriptionCustomerPaymentAccountEndpoint
(CustomerService<Customer> customerService, 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.void
deletePaymentAccount
(String customerId, String paymentAccountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected CustomerService<Customer>
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 customerId, String paymentAccountId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.org.springframework.data.domain.Page<PaymentAccountSummary>
readPaymentAccounts
(String customerId, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.updatePaymentAccount
(String customerId, String paymentAccountId, boolean makeDefaultAccount, CustomerPaymentAccountEndpoint.PaymentAccountUpdate paymentAccountRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
CustomerPaymentAccountEndpoint
public CustomerPaymentAccountEndpoint(CustomerService<Customer> customerService, PaymentAccountService<PaymentAccount> paymentAccountService, PaymentAccountSummaryService summaryService) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
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
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.