Class RequestBuilder.Invoice
java.lang.Object
com.eqixiac.equinix.core.model.RequestBuilderBase<RequestBuilder.Invoice>
com.eqixiac.equinix.customerportal.client.RequestBuilder.Invoice
- All Implemented Interfaces:
OptionalRequestBuilder<RequestBuilder.Invoice>
- Enclosing class:
RequestBuilder
Query filter for billing v2
GET /v2/invoices and GET /v2/invoices/details.
Every filter is optional in the billing v2 spec; only the filters that were set are sent.
accountNumbers and transactionIds are declared style: form,
explode: false in the spec, so several values are sent as one comma-separated parameter
(accountNumbers=1,2).
-
Field Summary
Fields inherited from class RequestBuilderBase
queryParameters, wasBuilt -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the query parameters from the filters that were set.static RequestBuilder.Invoicebuilder()Starts an empty invoice filter.withAccountNumber(String accountNumber) Adds an account number to filter by;nullor blank values are ignored.SetsendDate.SetsstartDate.withTransactionId(String transactionId) Adds a transaction id to filter by;nullor blank values are ignored.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalRequestBuilder
getQueryParameters, wasBuilt
-
Constructor Details
-
Invoice
public Invoice()
-
-
Method Details
-
builder
Starts an empty invoice filter.- Returns:
- a new builder
-
withStart
SetsstartDate.- Parameters:
startDate- start date of the invoice, ornullto leave unset- Returns:
- this builder
-
withEnd
SetsendDate.- Parameters:
endDate- end date of the invoice, ornullto leave unset- Returns:
- this builder
-
withAccountNumber
Adds an account number to filter by;nullor blank values are ignored.- Parameters:
accountNumber- billing account number- Returns:
- this builder
-
withTransactionId
Adds a transaction id to filter by;nullor blank values are ignored.- Parameters:
transactionId- invoice or credit-memo transaction id- Returns:
- this builder
-
build
Builds the query parameters from the filters that were set.- Returns:
- this builder, marked as built
-