public class PaymentGatewayType extends Object implements Serializable, BroadleafEnumerationType
This is designed such that individual payment modules will extend this to add their own type. For instance, while this class does not explicitly have a 'Braintree' payment gateway type, the Braintree module will provide an extension to this class and add itself in the list of types. For instance:
public class BraintreeGatewayType extends PaymentGatewayType {
public static final BRAINTREE = new PaymentGatewayType("BRAINTREE", "Braintree");
}
And then in your application context:
{@code
}
This is especially useful in auditing scenarios so that, at a glance, you can easily see what gateway a particular order payment was processed by.
| Modifier and Type | Field and Description |
|---|---|
static PaymentGatewayType |
PASSTHROUGH |
static PaymentGatewayType |
TEMPORARY |
| Constructor and Description |
|---|
PaymentGatewayType() |
PaymentGatewayType(String type,
String friendlyType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFriendlyType() |
static PaymentGatewayType |
getInstance(String type) |
String |
getType() |
int |
hashCode() |
public static final PaymentGatewayType TEMPORARY
public static final PaymentGatewayType PASSTHROUGH
public static PaymentGatewayType getInstance(String type)
public String getType()
getType in interface BroadleafEnumerationTypepublic String getFriendlyType()
getFriendlyType in interface BroadleafEnumerationTypeCopyright © 2014. All Rights Reserved.