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
Constructors -
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 booleanbooleangetData()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()inthashCode()voidvoidsetHasMore(Boolean hasMore) voidsetNextPage(String nextPage) voidvoidsetPageTypeToken(Type pageTypeToken) voidsetRequestOptions(RequestOptions requestOptions) Set request options that were used to fetch the collection.voidsetRequestParams(Map<String, Object> requestParams) Set request parameters that were used to fetch the collection.voidsetResponseGetter(StripeResponseGetter responseGetter) Method is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.voidsetTotalCount(Long totalCount) Get the total count of search records in the result.voidMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetterMethods 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:StripeActiveObjectMethod is used by the containing object orStripeResponseGetterimplementations to set theStripeResponseGetterinstance used to make further requests.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Parameters:
responseGetter- theStripeResponseGetterinstance 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:
getDatain 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:
getTotalCountin interfaceStripeSearchResultInterface<T>
-
getHasMore
- Specified by:
getHasMorein interfaceStripeCollectionInterface<T>
-
getUrl
- Specified by:
getUrlin interfaceStripeCollectionInterface<T>
-
getNextPage
- Specified by:
getNextPagein interfaceStripeSearchResultInterface<T>
-
getRequestOptions
Description copied from interface:StripeCollectionInterfaceGet request options that were used to fetch the collection. This is useful for purposes of pagination.- Specified by:
getRequestOptionsin interfaceStripeCollectionInterface<T>
-
setRequestOptions
Description copied from interface:StripeCollectionInterfaceSet request options that were used to fetch the collection. This is required for purposes of pagination.- Specified by:
setRequestOptionsin interfaceStripeCollectionInterface<T>
-
getRequestParams
Description copied from interface:StripeCollectionInterfaceGet request parameters that were used to fetch the collection. This is useful for purposes of pagination.- Specified by:
getRequestParamsin interfaceStripeCollectionInterface<T>
-
setRequestParams
Description copied from interface:StripeCollectionInterfaceSet request parameters that were used to fetch the collection. This is required for purposes of pagination.- Specified by:
setRequestParamsin interfaceStripeCollectionInterface<T>
-
setPageTypeToken
- Specified by:
setPageTypeTokenin interfaceStripeCollectionInterface<T>
-