Class OrderOperationPaymentProperties
java.lang.Object
com.broadleafcommerce.orderoperation.properties.DiscriminatedProperties<OrderOperationPaymentProperties>
com.broadleafcommerce.orderoperation.service.payment.OrderOperationPaymentProperties
@ConfigurationProperties("broadleaf.orderoperation.service.payment")
public class OrderOperationPaymentProperties
extends DiscriminatedProperties<OrderOperationPaymentProperties>
Payment-related properties within OrderOperationServices, discriminated by tenant and
application.
- Author:
- Sunny Yu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAutoCapturePaymentGateways(String applicationId, String tenantId) Gets the value ofautoCapturePaymentGatewaysbased on the given application and tenant id.getCancelPaymentGatewayPriorities(String applicationId, String tenantId) Gets the value ofcancelPaymentGatewayPrioritiesbased on the given application and tenant id.getCapturePaymentGatewayPriorities(String applicationId, String tenantId) Gets the value ofcapturePaymentGatewayPrioritiesbased on the given application and tenant id.getRefundPaymentGatewayPriorities(String applicationId, String tenantId) Gets the value ofrefundPaymentGatewayPrioritiesbased on the given application and tenant id.booleanIf true, auto-capture will be enabled for thespecified gatewaysduring order creation.voidsetAutoCapturePaymentGateways(List<String> autoCapturePaymentGateways) A list of payment gateway types that require auto-capturing the payments.voidsetCancelPaymentGatewayPriorities(List<String> cancelPaymentGatewayPriorities) A list of payment gateway types defining the order by which the payments will be refunded and/or reversed for the cancelled fulfillment.voidsetCapturePaymentGatewayPriorities(List<String> capturePaymentGatewayPriorities) A list of payment gateway types defining the order by which payments will be captured.voidsetEnableAutoCapture(boolean enableAutoCapture) If true, auto-capture will be enabled for thespecified gatewaysduring order creation.voidsetRefundPaymentGatewayPriorities(List<String> refundPaymentGatewayPriorities) A list of payment gateway types defining the order by which payments will be refunded.Methods inherited from class com.broadleafcommerce.orderoperation.properties.DiscriminatedProperties
getApplication, getField, getTenant, setApplication, setTenant
-
Constructor Details
-
OrderOperationPaymentProperties
public OrderOperationPaymentProperties()
-
-
Method Details
-
getCapturePaymentGatewayPriorities
public List<String> getCapturePaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofcapturePaymentGatewayPrioritiesbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
capturePaymentGatewayPrioritiesbased on the given application and tenant id
-
getRefundPaymentGatewayPriorities
public List<String> getRefundPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofrefundPaymentGatewayPrioritiesbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
refundPaymentGatewayPrioritiesbased on the given application and tenant id
-
getCancelPaymentGatewayPriorities
public List<String> getCancelPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofcancelPaymentGatewayPrioritiesbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
cancelPaymentGatewayPrioritiesbased on the given application and tenant id
-
getAutoCapturePaymentGateways
public List<String> getAutoCapturePaymentGateways(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofautoCapturePaymentGatewaysbased on the given application and tenant id.- Parameters:
applicationId- the current context's application idtenantId- the current context's tenant id- Returns:
- the value of
autoCapturePaymentGatewaysbased on the given application and tenant id
-
setCapturePaymentGatewayPriorities
A list of payment gateway types defining the order by which payments will be captured.Note that these priorities affect claiming checkout-executed AuthAndCapture transactions as well, therefore it is recommended to put payment gateways that use AuthAndCapture transaction type at a higher priority. This is to ensure that transactions can be claimed when possible, instead of executing new capture transactions.
-
setRefundPaymentGatewayPriorities
A list of payment gateway types defining the order by which payments will be refunded. -
setCancelPaymentGatewayPriorities
A list of payment gateway types defining the order by which the payments will be refunded and/or reversed for the cancelled fulfillment. -
setEnableAutoCapture
public void setEnableAutoCapture(boolean enableAutoCapture) If true, auto-capture will be enabled for thespecified gatewaysduring order creation. -
setAutoCapturePaymentGateways
A list of payment gateway types that require auto-capturing the payments. To enable auto-capturing during order creation, setenableAutoCaptureto true. -
isEnableAutoCapture
public boolean isEnableAutoCapture()If true, auto-capture will be enabled for thespecified gatewaysduring order creation.
-