public class SubscriptionListParams extends ApiRequestParams
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionListParams.Builder |
static class |
SubscriptionListParams.CollectionMethod
Maximum value to filter by (inclusive).
|
static class |
SubscriptionListParams.Created |
static class |
SubscriptionListParams.CurrentPeriodEnd
Maximum value to filter by (inclusive).
|
static class |
SubscriptionListParams.CurrentPeriodStart
Maximum value to filter by (inclusive).
|
static class |
SubscriptionListParams.Status |
ApiRequestParams.EnumParam
EXTRA_PARAMS_KEY
Modifier and Type | Method and Description |
---|---|
static SubscriptionListParams.Builder |
builder() |
SubscriptionListParams.CollectionMethod |
getCollectionMethod()
The collection method of the subscriptions to retrieve.
|
java.lang.Object |
getCreated() |
java.lang.Object |
getCurrentPeriodEnd() |
java.lang.Object |
getCurrentPeriodStart() |
java.lang.String |
getCustomer()
The ID of the customer whose subscriptions will be retrieved.
|
java.lang.String |
getEndingBefore()
A cursor for use in pagination.
|
java.util.List<java.lang.String> |
getExpand()
Specifies which fields in the response should be expanded.
|
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.Long |
getLimit()
A limit on the number of objects to be returned.
|
java.lang.String |
getPlan()
The ID of the plan whose subscriptions will be retrieved.
|
java.lang.String |
getPrice()
Filter for subscriptions that contain this recurring price ID.
|
java.lang.String |
getStartingAfter()
A cursor for use in pagination.
|
SubscriptionListParams.Status |
getStatus()
The status of the subscriptions to retrieve.
|
toMap
public static SubscriptionListParams.Builder builder()
public SubscriptionListParams.CollectionMethod getCollectionMethod()
charge_automatically
or
send_invoice
.public java.lang.Object getCreated()
public java.lang.Object getCurrentPeriodEnd()
public java.lang.Object getCurrentPeriodStart()
public java.lang.String getCustomer()
public java.lang.String getEndingBefore()
ending_before
is an object ID that defines your place
in the list. For instance, if you make a list request and receive 100 objects, starting with
obj_bar
, your subsequent call can include ending_before=obj_bar
in order to
fetch the previous page of the list.public java.util.List<java.lang.String> getExpand()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. Instead, each
key/value pair is serialized as if the key is a root-level field (serialized) name in this
param object. Effectively, this map is flattened to its parent instance.public java.lang.Long getLimit()
public java.lang.String getPlan()
public java.lang.String getPrice()
public java.lang.String getStartingAfter()
starting_after
is an object ID that defines your place
in the list. For instance, if you make a list request and receive 100 objects, ending with
obj_foo
, your subsequent call can include starting_after=obj_foo
in order to
fetch the next page of the list.public SubscriptionListParams.Status getStatus()
canceled
will return
all canceled subscriptions, including those belonging to deleted customers. Pass ended
to find subscriptions that are canceled and subscriptions that are expired due to incomplete
payment. Passing in a value of all
will return subscriptions of all statuses.