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
-
Method Summary
Modifier and TypeMethodDescriptiongetCancelPaymentGatewayPriorities
(String applicationId, String tenantId) Gets the value ofcancelPaymentGatewayPriorities
based on the given application and tenant id.getCapturePaymentGatewayPriorities
(String applicationId, String tenantId) Gets the value ofcapturePaymentGatewayPriorities
based on the given application and tenant id.getRefundPaymentGatewayPriorities
(String applicationId, String tenantId) Gets the value ofrefundPaymentGatewayPriorities
based on the given application and tenant id.void
setCancelPaymentGatewayPriorities
(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.void
setCapturePaymentGatewayPriorities
(List<String> capturePaymentGatewayPriorities) A list of payment gateway types defining the order by which payments will be captured.void
setRefundPaymentGatewayPriorities
(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 ofcapturePaymentGatewayPriorities
based 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
capturePaymentGatewayPriorities
based on the given application and tenant id
-
getRefundPaymentGatewayPriorities
public List<String> getRefundPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofrefundPaymentGatewayPriorities
based 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
refundPaymentGatewayPriorities
based on the given application and tenant id
-
getCancelPaymentGatewayPriorities
public List<String> getCancelPaymentGatewayPriorities(@Nullable String applicationId, @Nullable String tenantId) Gets the value ofcancelPaymentGatewayPriorities
based 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
cancelPaymentGatewayPriorities
based 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.
-