Package org.killbill.billing.util.tag
Enum ControlTagType
- java.lang.Object
-
- java.lang.Enum<ControlTagType>
-
- org.killbill.billing.util.tag.ControlTagType
-
- All Implemented Interfaces:
Serializable,Comparable<ControlTagType>
public enum ControlTagType extends Enum<ControlTagType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_INVOICING_DRAFTAUTO_INVOICING_OFFAUTO_INVOICING_REUSE_DRAFTAUTO_PAY_OFFMANUAL_PAYOVERDUE_ENFORCEMENT_OFFPARTNERTESTWRITTEN_OFF
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ObjectType>getApplicableObjectTypes()booleangetAutoInvoicingOff()booleangetAutoPaymentOff()StringgetDescription()UUIDgetId()static ControlTagTypegetTypeFromId(UUID targetId)static booleanisAutoInvoicingOff(Collection<UUID> input)Convenience method to return whether an account is configured with auto_invoicing_off (information of which control tag is configured with which behavior stays here)static booleanisAutoPayOff(Collection<UUID> input)Convenience method to return whether an account is configured with auto_pay_off (information of which control tag is configured with which behavior stays here)static ControlTagTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ControlTagType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AUTO_PAY_OFF
public static final ControlTagType AUTO_PAY_OFF
-
AUTO_INVOICING_OFF
public static final ControlTagType AUTO_INVOICING_OFF
-
OVERDUE_ENFORCEMENT_OFF
public static final ControlTagType OVERDUE_ENFORCEMENT_OFF
-
WRITTEN_OFF
public static final ControlTagType WRITTEN_OFF
-
MANUAL_PAY
public static final ControlTagType MANUAL_PAY
-
TEST
public static final ControlTagType TEST
-
PARTNER
public static final ControlTagType PARTNER
-
AUTO_INVOICING_DRAFT
public static final ControlTagType AUTO_INVOICING_DRAFT
-
AUTO_INVOICING_REUSE_DRAFT
public static final ControlTagType AUTO_INVOICING_REUSE_DRAFT
-
-
Method Detail
-
values
public static ControlTagType[] 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 (ControlTagType c : ControlTagType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ControlTagType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getId
public UUID getId()
-
getDescription
public String getDescription()
-
getAutoPaymentOff
public boolean getAutoPaymentOff()
-
getAutoInvoicingOff
public boolean getAutoInvoicingOff()
-
getApplicableObjectTypes
public List<ObjectType> getApplicableObjectTypes()
-
getTypeFromId
public static ControlTagType getTypeFromId(UUID targetId)
-
isAutoPayOff
public static boolean isAutoPayOff(Collection<UUID> input)
Convenience method to return whether an account is configured with auto_pay_off (information of which control tag is configured with which behavior stays here)- Parameters:
input- tagDefinitionIds for all the tags associated to a given account- Returns:
- whether that account is set with auto_pay_off
-
isAutoInvoicingOff
public static boolean isAutoInvoicingOff(Collection<UUID> input)
Convenience method to return whether an account is configured with auto_invoicing_off (information of which control tag is configured with which behavior stays here)- Parameters:
input- tagDefinitionIds for all the tags associated to a given account- Returns:
- whether that account is set with auto_invoicing_off
-
-