Package com.stripe.model
Class StripeSearchResult<T>
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.StripeSearchResult<T>
- All Implemented Interfaces:
StripeActiveObject
,StripeCollectionInterface<T>
,StripeObjectInterface
,StripeSearchResultInterface<T>
- Direct Known Subclasses:
ChargeSearchResult
,CustomerSearchResult
,InvoiceSearchResult
,PaymentIntentSearchResult
,PriceSearchResult
,ProductSearchResult
,SubscriptionSearchResult
public class StripeSearchResult<T>
extends StripeObject
implements StripeSearchResultInterface<T>, StripeActiveObject
Provides a representation of a single page worth of data from a Stripe API search method.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoPagingIterable
(Map<String, Object> params) autoPagingIterable
(Map<String, Object> params, RequestOptions options) Constructs an iterable that can be used to iterate across all objects across all pages.protected boolean
boolean
getData()
Get request options that were used to fetch the collection.Get request parameters that were used to fetch the collection.Get the total count of search records in the result.getUrl()
int
hashCode()
void
void
setHasMore
(Boolean hasMore) void
setNextPage
(String nextPage) void
void
setPageTypeToken
(Type pageTypeToken) void
setRequestOptions
(RequestOptions requestOptions) Set request options that were used to fetch the collection.void
setRequestParams
(Map<String, Object> requestParams) Set request parameters that were used to fetch the collection.void
setResponseGetter
(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.void
setTotalCount
(Long totalCount) Get the total count of search records in the result.void
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
Methods inherited from interface com.stripe.model.StripeObjectInterface
getLastResponse, setLastResponse
-
Constructor Details
-
StripeSearchResult
public StripeSearchResult()
-
-
Method Details
-
autoPagingIterable
-
autoPagingIterable
-
autoPagingIterable
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)
-
setResponseGetter
Description copied from interface:StripeActiveObject
Method is used by the containing object orStripeResponseGetter
implementations to set theStripeResponseGetter
instance used to make further requests.- Specified by:
setResponseGetter
in interfaceStripeActiveObject
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getResponseGetter
-
getObject
-
getPageTypeToken
-
setObject
-
setData
-
setTotalCount
Get the total count of search records in the result. The value is present when `total_count` is added to the `expand` search parameter. -
setHasMore
-
setUrl
-
setNextPage
-
equals
-
canEqual
-
hashCode
public int hashCode() -
getData
- Specified by:
getData
in interfaceStripeCollectionInterface<T>
-
getTotalCount
Get the total count of search records in the result. The value is present when `total_count` is added to the `expand` search parameter.- Specified by:
getTotalCount
in interfaceStripeSearchResultInterface<T>
-
getHasMore
- Specified by:
getHasMore
in interfaceStripeCollectionInterface<T>
-
getUrl
- Specified by:
getUrl
in interfaceStripeCollectionInterface<T>
-
getNextPage
- Specified by:
getNextPage
in interfaceStripeSearchResultInterface<T>
-
getRequestOptions
Description copied from interface:StripeCollectionInterface
Get request options that were used to fetch the collection. This is useful for purposes of pagination.- Specified by:
getRequestOptions
in interfaceStripeCollectionInterface<T>
-
setRequestOptions
Description copied from interface:StripeCollectionInterface
Set request options that were used to fetch the collection. This is required for purposes of pagination.- Specified by:
setRequestOptions
in interfaceStripeCollectionInterface<T>
-
getRequestParams
Description copied from interface:StripeCollectionInterface
Get request parameters that were used to fetch the collection. This is useful for purposes of pagination.- Specified by:
getRequestParams
in interfaceStripeCollectionInterface<T>
-
setRequestParams
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 interfaceStripeCollectionInterface<T>
-
setPageTypeToken
- Specified by:
setPageTypeToken
in interfaceStripeCollectionInterface<T>
-