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 |
setBilling(InvoiceListParams.Billing billing)
The billing mode 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 |
setSubscription(java.lang.String subscription)
Only return invoices for the subscription specified by this subscription ID.
|
public InvoiceListParams build()
public InvoiceListParams.Builder setBilling(InvoiceListParams.Billing billing)
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)
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)
public InvoiceListParams.Builder setSubscription(java.lang.String subscription)