Class ValueList

    • Constructor Detail

      • ValueList

        public ValueList()
    • Method Detail

      • list

        public static ValueListCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                        throws StripeException
        Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • list

        public static ValueListCollection list​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                               RequestOptions options)
                                        throws StripeException
        Returns a list of ValueList objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        Throws:
        StripeException
      • create

        public static ValueList create​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                throws StripeException
        Creates a new ValueList object, which can then be referenced in rules.
        Throws:
        StripeException
      • update

        public ValueList update​(java.util.Map<java.lang.String,​java.lang.Object> params)
                         throws StripeException
        Updates a ValueList object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that item_type is immutable.
        Specified by:
        update in interface MetadataStore<ValueList>
        Throws:
        StripeException
      • delete

        public ValueList delete()
                         throws StripeException
        Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
        Throws:
        StripeException
      • delete

        public ValueList delete​(java.util.Map<java.lang.String,​java.lang.Object> params)
                         throws StripeException
        Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
        Throws:
        StripeException
      • delete

        public ValueList delete​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                RequestOptions options)
                         throws StripeException
        Deletes a ValueList object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.
        Throws:
        StripeException
      • getAlias

        public java.lang.String getAlias()
        The name of the value list for use in rules.
      • getCreated

        public java.lang.Long getCreated()
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • getCreatedBy

        public java.lang.String getCreatedBy()
        The name or email address of the user who created this value list.
      • getDeleted

        public java.lang.Boolean getDeleted()
        Always true for a deleted object.
      • getItemType

        public java.lang.String getItemType()
        The type of items in the value list. One of card_fingerprint, card_bin, email, ip_address, country, string, case_sensitive_string, or customer_id.
      • getLivemode

        public java.lang.Boolean getLivemode()
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • getName

        public java.lang.String getName()
        The name of the value list.
      • getObject

        public java.lang.String getObject()
        String representing the object's type. Objects of the same type share the same value.

        Equal to radar.value_list.

      • setAlias

        public void setAlias​(java.lang.String alias)
        The name of the value list for use in rules.
      • setCreated

        public void setCreated​(java.lang.Long created)
        Time at which the object was created. Measured in seconds since the Unix epoch.
      • setCreatedBy

        public void setCreatedBy​(java.lang.String createdBy)
        The name or email address of the user who created this value list.
      • setDeleted

        public void setDeleted​(java.lang.Boolean deleted)
        Always true for a deleted object.
      • setId

        public void setId​(java.lang.String id)
        Unique identifier for the object.
      • setItemType

        public void setItemType​(java.lang.String itemType)
        The type of items in the value list. One of card_fingerprint, card_bin, email, ip_address, country, string, case_sensitive_string, or customer_id.
      • setListItems

        public void setListItems​(ValueListItemCollection listItems)
        List of items contained within this value list.
      • setLivemode

        public void setLivemode​(java.lang.Boolean livemode)
        Has the value true if the object exists in live mode or the value false if the object exists in test mode.
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.String> metadata)
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
      • setName

        public void setName​(java.lang.String name)
        The name of the value list.
      • setObject

        public void setObject​(java.lang.String object)
        String representing the object's type. Objects of the same type share the same value.

        Equal to radar.value_list.

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getId

        public java.lang.String getId()
        Unique identifier for the object.
        Specified by:
        getId in interface HasId
      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.String> getMetadata()
        Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
        Specified by:
        getMetadata in interface MetadataStore<ValueList>