Class StripeCollection<T extends HasId>

    • Constructor Detail

      • StripeCollection

        public StripeCollection()
    • Method Detail

      • autoPagingIterable

        public java.lang.Iterable<T> autoPagingIterable()
      • autoPagingIterable

        public java.lang.Iterable<T> autoPagingIterable​(java.util.Map<java.lang.String,​java.lang.Object> params)
      • autoPagingIterable

        public java.lang.Iterable<T> autoPagingIterable​(java.util.Map<java.lang.String,​java.lang.Object> params,
                                                        RequestOptions options)
        Constructs an iterable that can be used to iterate across all objects across all pages. As page boundaries are encountered, the next page will be fetched automatically for continued iteration.
        Parameters:
        params - request parameters (will override the parameters from the initial list request)
        options - request options (will override the options from the initial list request)
      • getObject

        public java.lang.String getObject()
      • getCount

        @Deprecated
        public java.lang.Long getCount()
        Deprecated.
        Use pagination parameters instead.
        The count attribute.
        See Also:
        Pagination
      • setObject

        public void setObject​(java.lang.String object)
      • setData

        public void setData​(java.util.List<T> data)
      • setHasMore

        public void setHasMore​(java.lang.Boolean hasMore)
      • setTotalCount

        public void setTotalCount​(java.lang.Long totalCount)
      • setUrl

        public void setUrl​(java.lang.String url)
      • setCount

        @Deprecated
        public void setCount​(java.lang.Long count)
        Deprecated.
        Use pagination parameters instead.
        The count attribute.
        See Also:
        Pagination
      • 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
      • setRequestParams

        public void setRequestParams​(java.util.Map<java.lang.String,​java.lang.Object> requestParams)
        Description copied from interface: StripeCollectionInterface
        Set request parameters that were used to fetch the collection. This is required for purposes of pagination.
        Specified by:
        setRequestParams in interface StripeCollectionInterface<T extends HasId>