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 TypeMethodDescriptiongetCancelPaymentGatewayPriorities(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.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.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
-
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.
-