public static class InvoiceListParams.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InvoiceListParams.Builder |
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.
|
InvoiceListParams.Builder |
addExpand(java.lang.String element)
Add an element to `expand` list.
|
InvoiceListParams |
build()
Finalize and obtain parameter instance from this builder.
|
InvoiceListParams.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
InvoiceListParams.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
InvoiceListParams.Builder |
setCollectionMethod(InvoiceListParams.CollectionMethod collectionMethod)
The collection method of the invoice to retrieve.
|
InvoiceListParams.Builder |
setCreated(InvoiceListParams.Created created) |
InvoiceListParams.Builder |
setCreated(java.lang.Long created) |
InvoiceListParams.Builder |
setCustomer(java.lang.String customer)
Only return invoices for the customer specified by this customer ID.
|
InvoiceListParams.Builder |
setDueDate(InvoiceListParams.DueDate dueDate) |
InvoiceListParams.Builder |
setDueDate(java.lang.Long dueDate) |
InvoiceListParams.Builder |
setEndingBefore(java.lang.String endingBefore)
A cursor for use in pagination.
|
InvoiceListParams.Builder |
setLimit(java.lang.Long limit)
A limit on the number of objects to be returned.
|
InvoiceListParams.Builder |
setStartingAfter(java.lang.String startingAfter)
A cursor for use in pagination.
|
InvoiceListParams.Builder |
setStatus(InvoiceListParams.Status status)
The status of the invoice, one of
draft , open , paid , uncollectible , or void . |
InvoiceListParams.Builder |
setSubscription(java.lang.String subscription)
Only return invoices for the subscription specified by this subscription ID.
|
public InvoiceListParams build()
public InvoiceListParams.Builder setCollectionMethod(InvoiceListParams.CollectionMethod collectionMethod)
charge_automatically
or
send_invoice
.public InvoiceListParams.Builder setCreated(InvoiceListParams.Created created)
public InvoiceListParams.Builder setCreated(java.lang.Long created)
public InvoiceListParams.Builder setCustomer(java.lang.String customer)
public InvoiceListParams.Builder setDueDate(InvoiceListParams.DueDate dueDate)
public InvoiceListParams.Builder setDueDate(java.lang.Long dueDate)
public InvoiceListParams.Builder setEndingBefore(java.lang.String endingBefore)
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 InvoiceListParams.Builder addExpand(java.lang.String element)
InvoiceListParams.expand
for the field documentation.public InvoiceListParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
InvoiceListParams.expand
for the field documentation.public InvoiceListParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
InvoiceListParams.extraParams
for the field documentation.public InvoiceListParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
InvoiceListParams.extraParams
for the field documentation.public InvoiceListParams.Builder setLimit(java.lang.Long limit)
public InvoiceListParams.Builder setStartingAfter(java.lang.String startingAfter)
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 InvoiceListParams.Builder setStatus(InvoiceListParams.Status status)
public InvoiceListParams.Builder setSubscription(java.lang.String subscription)