public class PaymentGroupConfiguration
extends java.lang.Object
Constructor and Description |
---|
PaymentGroupConfiguration(java.lang.String localGroupName)
This method creates a new PaymentGroupConfiguration object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAvsResponseActionName(java.lang.String paymentMethod,
int avsCode)
This method gets an action name from an AVS(Address Verification Service) code.
|
TargetStateWrapper |
getCancelPaymentActionForDNE(java.lang.String paymentMethod)
This method returns the actions need be executed to move payment to DNE state because cancel payment, for this specified payment method.
|
java.util.ArrayList |
getCoreConfigurationFiles()
This method returns the core configuration files for this payment group.
|
TargetStateWrapper |
getEditReversalPaymentActionForDNE(java.lang.String paymentMethod)
This method returns the actions need be executed to move payment back to DNE state for this specified payment method.
|
EditRules |
getEditRules(java.lang.String paymentMethod)
This method returns the edit rule configuration values for this payment group.
|
PaymentMappings |
getMappings()
This method returns the mappings for this specified payment group, which maps a payment method to payment configuration and certain rule.
|
TargetStateWrapper |
getPaymentActionForApproved(java.lang.String paymentMethod)
This method returns the actions need be executed to move payment to Approved state for this specified payment method.
|
TargetStateWrapper |
getPaymentActionForDeposited(java.lang.String paymentMethod)
This method returns the actions need be executed to move payment to Deposited state for this specified payment method.
|
TargetStateWrapper |
getPaymentActionForDNE(java.lang.String paymentMethod)
This method returns the actions need be executed to move payment to DNE state for this specified payment method.
|
PaymentRules |
getPaymentActionRules()
This method returns the payment rules that store payment rules for this payment group.
|
PaymentMethodConfigurations |
getPaymentMethodConfigurations()
This method returns the paymentMethodConfigurations field.The paymentMethodConfigurations stores the mapping from payment configuration to payment system and some attributes of this payment configuration.
|
RefundMappings |
getRefundMappings()
This method returns the refundMappings.
|
RefundMethodConfigurations |
getRefundMethodConfigurations()
This method returns the refundMethodConfigurations.
|
void |
setCoreConfigurationFiles(java.util.ArrayList localCoreConfigurationFiles)
This method sets the coreConfigurationFiles field for this payment group.
|
void |
setMappings(PaymentMappings localMappings)
This method sets the mappings for this specified payment group, which maps a payment method to payment configuration and certain rule.
|
void |
setPaymentMethodConfigurations(PaymentMethodConfigurations localPaymentMethodConfigurations)
This method sets the paymentMethodConfigurations field.
|
void |
setPaymentRules(PaymentRules localPaymentRules)
This method sets the paymentRules field that store payment rules for this
payment group.
|
void |
setRefundMappings(RefundMappings localRefundMappings)
This method sets the refundMappings filed.
|
void |
setRefundMethodConfigurations(RefundMethodConfigurations localRefundMethodConfigurations)
This method sets the refundMethodConfigurations.
|
public PaymentGroupConfiguration(java.lang.String localGroupName)
localGroupName
- the id of this payment grouppublic java.lang.String getAvsResponseActionName(java.lang.String paymentMethod, int avsCode) throws InvalidDataException, RuleException
paymentMethod
- The payment method, value such as VISAavsCode
- The input AVS code to be mapped into an actionInvalidDataException
- Invalid input data, such as null value of parameterRuleException
- If a payment method configuration cannot be foundpublic TargetStateWrapper getCancelPaymentActionForDNE(java.lang.String paymentMethod) throws RuleException, InvalidDataException
The current states could be DNE, Approved, Deposited
paymentMethod
- A String value of payment method, such as VISARuleException
- Configurations not found for this payment methodInvalidDataException
- Invalid input parameter value, for example null valuepublic void setCoreConfigurationFiles(java.util.ArrayList localCoreConfigurationFiles)
localCoreConfigurationFiles
- The coreConfigurationFiles to setpublic java.util.ArrayList getCoreConfigurationFiles()
public EditRules getEditRules(java.lang.String paymentMethod) throws RuleException, InvalidDataException
paymentMethod
- A String of payment method such as VISARuleException
- Edit rules for this payment group can not foundInvalidDataException
- Payment group id or payment method is invalidpublic TargetStateWrapper getEditReversalPaymentActionForDNE(java.lang.String paymentMethod) throws RuleException, InvalidDataException
The current states could be DNE, Approved, Deposited
paymentMethod
- such as VISARuleException
- Rules configuration files error, such not foundInvalidDataException
- Input values not acceptable, such as null value passedpublic void setMappings(PaymentMappings localMappings)
localMappings
- The mappings to setpublic PaymentMappings getMappings()
public TargetStateWrapper getPaymentActionForApproved(java.lang.String paymentMethod) throws RuleException, InvalidDataException
The current states could be DNE, Approved, Deposited.
paymentMethod
- A String value of payment method such as VISARuleException
- Configurations not found for this payment methodInvalidDataException
- Invalid input parameter value, for example null valuepublic TargetStateWrapper getPaymentActionForDNE(java.lang.String paymentMethod) throws RuleException, InvalidDataException
The current states could be DNE, Approved, Deposited.
paymentMethod
- A String value of payment method such as VISARuleException
- Configurations not found for this payment methodInvalidDataException
- Invalid input parameter value, for example null valuepublic TargetStateWrapper getPaymentActionForDeposited(java.lang.String paymentMethod) throws RuleException, InvalidDataException
The valid current states could be DNE, Approved, Deposited
paymentMethod
- A String value of payment method such as VISARuleException
- Configurations not found for this payment methodInvalidDataException
- Invalid input parameter value, for example null valuepublic PaymentRules getPaymentActionRules()
public void setPaymentMethodConfigurations(PaymentMethodConfigurations localPaymentMethodConfigurations)
The attributes include if allow refund, minimum amount, ...
localPaymentMethodConfigurations
- The paymentMethodConfigurations to setpublic PaymentMethodConfigurations getPaymentMethodConfigurations()
The attributes include if allow refund, minimum amount, ...
public void setPaymentRules(PaymentRules localPaymentRules)
localPaymentRules
- a PaymentRules object to setpublic void setRefundMappings(RefundMappings localRefundMappings)
localRefundMappings
- The refundMappings to setpublic RefundMappings getRefundMappings()
public void setRefundMethodConfigurations(RefundMethodConfigurations localRefundMethodConfigurations)
localRefundMethodConfigurations
- The refundMethodConfigurations to setpublic RefundMethodConfigurations getRefundMethodConfigurations()