Class BillingAccountSearchRequest

java.lang.Object
com.eqixiac.equinix.customerportal.model.json.creators.BillingAccountSearchRequest
All Implemented Interfaces:
PaginatedPostBody

public class BillingAccountSearchRequest extends Object implements PaginatedPostBody
Request body for searching billing accounts (POST /billing/v2/billingAccounts/search, searchBillingAccount).

All criteria are optional: ibxCode and metroCode narrow by where the account may place orders, accountStatus filters by one or more statuses, projectId scopes to an associated project, and limit/offset control paging.

Implements PaginatedPostBody so the shared paging pipeline can fetch subsequent pages by re-pointing the body's top-level offset/limit members (that is where the basv2 spec's SearchRequest carries its pagination) at the next window.

  • Method Details

    • builder

      public static BillingAccountSearchRequest.Builder builder()
      Returns a new builder for a billing account search body. All criteria are optional.
      Returns:
      a new builder
    • seekPage

      public void seekPage(long pageOffset, long pageLimit)
      Description copied from interface: PaginatedPostBody
      Points this body's serialized pagination state at the page window starting at offset, sized limit. Called by the paging pipeline both to advance to the next page and to roll back to the current page after a failed fetch.
      Specified by:
      seekPage in interface PaginatedPostBody
      Parameters:
      pageOffset - the zero-based index of the first record of the requested page
      pageLimit - the page size; implementations should ignore non-positive values (keeping their current/default limit) rather than sending an invalid one