Class BillingAccountsImpl

java.lang.Object
com.eqixiac.equinix.customerportal.client.implementation.BillingAccountsImpl
All Implemented Interfaces:
BillingAccounts

public class BillingAccountsImpl extends Object implements BillingAccounts
  • Constructor Details

    • BillingAccountsImpl

      public BillingAccountsImpl()
  • Method Details

    • summaries

      public PaginatedList<BillingAccount> summaries()
      Description copied from interface: BillingAccounts
      Pages over a summary of all the billing accounts that the current user has permission to view.
      Specified by:
      summaries in interface BillingAccounts
      Returns:
      a paginated list of billing account summaries
    • summaries

      public PaginatedList<BillingAccount> summaries(String sorts)
      Description copied from interface: BillingAccounts
      Pages over a summary of all the billing accounts that the current user has permission to view, sorted by the supplied sort specifier.
      Specified by:
      summaries in interface BillingAccounts
      Parameters:
      sorts - the sort specifier, e.g. "ACCOUNT_NUMBER" ascending or "-ACCOUNT_NUMBER" descending (may be null)
      Returns:
      a paginated list of billing account summaries
    • getByAccountNumber

      public BillingAccount getByAccountNumber(String accountNumber)
      Description copied from interface: BillingAccounts
      Returns the billing summary of a single account by its account number.
      Specified by:
      getByAccountNumber in interface BillingAccounts
      Parameters:
      accountNumber - the billing account number
      Returns:
      the billing account summary
    • getByAccountNumber

      public BillingAccount getByAccountNumber(String accountNumber, String months)
      Description copied from interface: BillingAccounts
      Returns the billing detail of a single account by its account number, restricting the available finance documents to the supplied months.
      Specified by:
      getByAccountNumber in interface BillingAccounts
      Parameters:
      accountNumber - the billing account number
      months - the months to pull finance documents for, as a comma-separated list of ISO local dates (e.g. "2017-12-03,2018-01-03"); may be null
      Returns:
      the billing account detail
    • downloadInvoiceDocument

      public byte[] downloadInvoiceDocument(String accountNumber, String invoiceId, String documentId)
      Description copied from interface: BillingAccounts
      Downloads a specific invoice document for an account by its invoice and document identifiers.
      Specified by:
      downloadInvoiceDocument in interface BillingAccounts
      Parameters:
      accountNumber - the billing account number
      invoiceId - the invoice identifier
      documentId - the document identifier
      Returns:
      the document content as raw bytes