Class AccountSavedPaymentMethodManagementEndpoint
java.lang.Object
com.broadleafcommerce.paymenttransaction.web.endpoint.AccountSavedPaymentMethodManagementEndpoint
@FrameworkRestController
@FrameworkMapping("/accounts/{accountId}/saved-payment-methods")
@DataRouteByKey("paymentTransaction")
@ConditionalOnPaymentTransactionAsSavedPaymentStorageLocation
public class AccountSavedPaymentMethodManagementEndpoint
extends Object
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAccountSavedPaymentMethodManagementEndpoint
(SavedPaymentMethodService<SavedPaymentMethod> savedPaymentMethodService, SavedPaymentMethodSummaryService summaryService, SavedPaymentMethodVersionValidationService savedPaymentMethodVersionValidationService) -
Method Summary
Modifier and TypeMethodDescriptioncreateSavedPaymentMethod
(String accountId, CreateSavedPaymentMethodRequest createRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
deleteSavedPaymentMethod
(String accountId, String savedPaymentMethodId, Integer version, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected SavedPaymentMethodService<SavedPaymentMethod>
protected SavedPaymentMethodSummaryService
readSavedPaymentMethod
(String accountId, String savedPaymentMethodId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) org.springframework.data.domain.Page<SavedPaymentMethodSummary>
readSavedPaymentMethods
(String accountId, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) updateSavedPaymentMethod
(String accountId, String savedPaymentMethodId, UpdateSavedPaymentMethodRequest updateRequest, Integer version, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
AccountSavedPaymentMethodManagementEndpoint
public AccountSavedPaymentMethodManagementEndpoint(SavedPaymentMethodService<SavedPaymentMethod> savedPaymentMethodService, SavedPaymentMethodSummaryService summaryService, SavedPaymentMethodVersionValidationService savedPaymentMethodVersionValidationService)
-
-
Method Details
-
readSavedPaymentMethods
@Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping public org.springframework.data.domain.Page<SavedPaymentMethodSummary> readSavedPaymentMethods(@PathVariable("accountId") String accountId, @PageableDefault(size=50) org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
createSavedPaymentMethod
@Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPostMapping public SavedPaymentMethodSummary createSavedPaymentMethod(@PathVariable("accountId") String accountId, @RequestBody CreateSavedPaymentMethodRequest createRequest, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
readSavedPaymentMethod
@Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id,parent_accts") @FrameworkGetMapping("/{savedPaymentMethodId}") public SavedPaymentMethodSummary readSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
updateSavedPaymentMethod
@Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkPatchMapping("/{savedPaymentMethodId}") public SavedPaymentMethodSummary updateSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, @RequestBody UpdateSavedPaymentMethodRequest updateRequest, Integer version, @ContextOperation(UPDATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
deleteSavedPaymentMethod
@Policy(permissionRoots="ACCOUNT_SAVED_PAYMENT_MANAGEMENT", identityTypes={ADMIN,OWNER}, ownerIdentifierParam=0, ownerIdentifier="acct_id") @FrameworkDeleteMapping("/{savedPaymentMethodId}") @ResponseStatus(NO_CONTENT) public void deleteSavedPaymentMethod(@PathVariable("accountId") String accountId, @PathVariable("savedPaymentMethodId") String savedPaymentMethodId, Integer version, @ContextOperation(DELETE) com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
getSavedPaymentMethodService
-
getSummaryService
-
getSavedPaymentMethodVersionValidationService
protected SavedPaymentMethodVersionValidationService getSavedPaymentMethodVersionValidationService()
-