Class StripeSetupIntentEndpoint
java.lang.Object
com.broadleafcommerce.web.endpoint.StripeSetupIntentEndpoint
@FrameworkRestController
@FrameworkMapping("/stripe/setup-intent")
public class StripeSetupIntentEndpoint
extends Object
- Author:
- Dima Myroniuk (dmyroniuk)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStripeSetupIntentEndpoint
(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, StripeSetupIntentService stripeSetupIntentService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateSetupIntent
(SetupIntentRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils
getSetupIntentInfo
(String id, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) protected StripeSetupIntentService
protected com.broadleafcommerce.common.extension.TypeFactory
-
Field Details
-
BASE_URI
- See Also:
-
-
Constructor Details
-
StripeSetupIntentEndpoint
public StripeSetupIntentEndpoint(com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils authenticationUtils, StripeSetupIntentService stripeSetupIntentService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
createSetupIntent
@FrameworkPostMapping(consumes="application/json") @Policy(permissionRoots="CREATE_SETUP_INTENT") public SetupIntentResponse createSetupIntent(@RequestBody SetupIntentRequest request, @ContextOperation(CREATE) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getSetupIntentInfo
@FrameworkGetMapping(value="/{id}", produces="application/json") @Policy(permissionRoots="CREATE_SETUP_INTENT") public SetupIntentResponse getSetupIntentInfo(@PathVariable String id, @ContextOperation(READ) com.broadleafcommerce.data.tracking.core.context.ContextInfo context) -
getAuthenticationUtils
protected com.broadleafcommerce.resource.security.utils.service.AuthenticationUtils getAuthenticationUtils() -
getStripeSetupIntentService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-