Package com.testdroid.api.model.enums
Enum APIPaymentMethod
- java.lang.Object
-
- java.lang.Enum<APIPaymentMethod>
-
- com.testdroid.api.model.enums.APIPaymentMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<APIPaymentMethod>
public enum APIPaymentMethod extends java.lang.Enum<APIPaymentMethod>
- Author:
- Ćukasz Kajda
, Damian Sniezek Mapping is (isServiceIdPresent, isOldAccountServiceIdPresent, isNewAccountServiceIdPresent, isCallByUser)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
APIPaymentMethod.PlanOperation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canChange(boolean byUser)
java.util.Map<java.util.List<java.lang.Boolean>,java.util.List<APIPaymentMethod.PlanOperation>>
getOperationSchema()
static APIPaymentMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static APIPaymentMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAYPAL
public static final APIPaymentMethod PAYPAL
-
BRAINTREE
public static final APIPaymentMethod BRAINTREE
-
STRIPE
public static final APIPaymentMethod STRIPE
-
INVOICE
public static final APIPaymentMethod INVOICE
-
PROMOTION
public static final APIPaymentMethod PROMOTION
-
AWS
public static final APIPaymentMethod AWS
-
-
Method Detail
-
values
public static APIPaymentMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (APIPaymentMethod c : APIPaymentMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static APIPaymentMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
canChange
public boolean canChange(boolean byUser)
-
getOperationSchema
public java.util.Map<java.util.List<java.lang.Boolean>,java.util.List<APIPaymentMethod.PlanOperation>> getOperationSchema()
-
-