Class ValueListItem

    • Constructor Detail

      • ValueListItem

        public ValueListItem()
    • Method Detail

      • list

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

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

        public static ValueListItem create​(java.util.Map<java.lang.String,​java.lang.Object> params)
                                    throws StripeException
        Creates a new ValueListItem object, which is added to the specified parent value list.
        Throws:
        StripeException
      • delete

        public ValueListItem delete​(java.util.Map<java.lang.String,​java.lang.Object> params)
                             throws StripeException
        Deletes a ValueListItem object, removing it from its parent value list.
        Throws:
        StripeException
      • 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 added this item to the value list.
      • getDeleted

        public java.lang.Boolean getDeleted()
        Always true for a deleted object.
      • 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.
      • 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_item.

      • getValue

        public java.lang.String getValue()
        The value of the item.
      • getValueList

        public java.lang.String getValueList()
        The identifier of the value list this item belongs to.
      • 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 added this item to the 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.
      • 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.
      • 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_item.

      • setValue

        public void setValue​(java.lang.String value)
        The value of the item.
      • setValueList

        public void setValueList​(java.lang.String valueList)
        The identifier of the value list this item belongs to.
      • 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