Class DefaultStoreCreditTransactionService
java.lang.Object
com.broadleafcommerce.payment.service.gateway.DefaultStoreCreditTransactionService
- All Implemented Interfaces:
StoreCreditTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
,com.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
public class DefaultStoreCreditTransactionService
extends Object
implements StoreCreditTransactionService
The default implementation of the transaction service that is used to execute transactions.
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultStoreCreditTransactionService
(StoreCreditExternalCallService creditAccountExternalCallService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.paymentgateway.domain.PaymentResponse
authorizeAndCapture
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected StoreCreditExternalCallService
protected com.broadleafcommerce.common.extension.TypeFactory
com.broadleafcommerce.paymentgateway.domain.PaymentResponse
refund
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) protected void
validatePaymentRequest
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
authorize, capture, detachedCredit, identifyParentTransactionReferenceIfExists, identifyTransactionReferenceIdOverrideForInitialTransaction, identifyTransactionTypeFromTransactionResults, reverseAuthorize
-
Constructor Details
-
DefaultStoreCreditTransactionService
public DefaultStoreCreditTransactionService(StoreCreditExternalCallService creditAccountExternalCallService, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
authorizeAndCapture
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse authorizeAndCapture(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
authorizeAndCapture
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
refund
public com.broadleafcommerce.paymentgateway.domain.PaymentResponse refund(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) - Specified by:
refund
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTransactionService
-
getGatewayType
- Specified by:
getGatewayType
in interfacecom.broadleafcommerce.paymentgateway.service.PaymentGatewayTypeAware
-
validatePaymentRequest
protected void validatePaymentRequest(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentRequest paymentRequest) -
getCreditAccountExternalCallService
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-