Enum RefundPolicy

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RefundPolicy>

    public enum RefundPolicy
    extends java.lang.Enum<RefundPolicy>
    • Enum Constant Detail

      • CONDITIONAL_REFUND

        public static final RefundPolicy CONDITIONAL_REFUND
      • CUSTOM_POLICY

        public static final RefundPolicy CUSTOM_POLICY
      • EVENT_BASED_POLICY

        public static final RefundPolicy EVENT_BASED_POLICY
      • FULL_REFUND_EXTENDED_WINDOW

        public static final RefundPolicy FULL_REFUND_EXTENDED_WINDOW
      • FULL_REFUND_WITHIN30_DAYS

        public static final RefundPolicy FULL_REFUND_WITHIN30_DAYS
      • PARTIAL_REFUND

        public static final RefundPolicy PARTIAL_REFUND
      • PRORATED_REFUND

        public static final RefundPolicy PRORATED_REFUND
      • STORE_CREDIT_ONLY

        public static final RefundPolicy STORE_CREDIT_ONLY
    • Method Detail

      • values

        public static RefundPolicy[] 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 (RefundPolicy c : RefundPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RefundPolicy 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 name
        java.lang.NullPointerException - if the argument is null
      • value

        public java.lang.String value()
      • fromValue

        public static java.util.Optional<RefundPolicy> fromValue​(java.lang.String value)