Class OrdersImpl

java.lang.Object
com.eqixiac.equinix.customerportal.client.implementation.OrdersImpl
All Implemented Interfaces:
Orders

public class OrdersImpl extends Object implements Orders
  • Constructor Details

    • OrdersImpl

      public OrdersImpl()
  • Method Details

    • getByUuid

      public Order getByUuid(String orderId)
      Description copied from interface: Orders
      Retrieves a specific order by its unique identifier.
      Specified by:
      getByUuid in interface Orders
      Parameters:
      orderId - the identifier of the order
      Returns:
      the matching order
    • getByUuid

      public Order getByUuid(String orderId, List<String> ibxs)
      Description copied from interface: Orders
      Retrieves a specific order by its unique identifier, scoped to the supplied IBXs.

      Maps to GET /colocations/v2/orders/{orderId} with the ibxs query parameter.

      Specified by:
      getByUuid in interface Orders
      Parameters:
      orderId - the identifier of the order
      ibxs - the IBX codes to scope the order to, or null/empty for all
      Returns:
      the matching order
    • getNegotiations

      public List<? extends OrderNegotiation> getNegotiations(String orderId)
      Description copied from interface: Orders
      Retrieves the negotiation messages for an order, each proposing an alternative date and time for fulfilling the order request.
      Specified by:
      getNegotiations in interface Orders
      Parameters:
      orderId - the identifier of the order
      Returns:
      the list of negotiation messages
    • replyNegotiation

      public Boolean replyNegotiation(String orderId, NegotiationAction action, String referenceId)
      Description copied from interface: Orders
      Replies to an order negotiation, approving or cancelling the proposed schedule.
      Specified by:
      replyNegotiation in interface Orders
      Parameters:
      orderId - the identifier of the order
      action - the action to perform (APPROVE, APPROVE_NON_EXPEDITE, or CANCEL)
      referenceId - the reference id of the activity or order line
      Returns:
      true if the reply was accepted
    • replyNegotiation

      public Boolean replyNegotiation(String orderId, NegotiationAction action, String referenceId, String reason)
      Description copied from interface: Orders
      Replies to an order negotiation, approving or cancelling the proposed schedule, with an optional reason (used when cancelling).
      Specified by:
      replyNegotiation in interface Orders
      Parameters:
      orderId - the identifier of the order
      action - the action to perform (APPROVE, APPROVE_NON_EXPEDITE, or CANCEL)
      referenceId - the reference id of the activity or order line
      reason - the reason for the action (used when cancelling)
      Returns:
      true if the reply was accepted
    • addNote

      public Boolean addNote(String orderId, String text)
      Description copied from interface: Orders
      Adds a note to an order.
      Specified by:
      addNote in interface Orders
      Parameters:
      orderId - the identifier of the order
      text - the text of the note
      Returns:
      true if the note was accepted
    • addNote

      public Boolean addNote(String orderId, String text, String referenceId, List<AttachmentReference> attachments)
      Description copied from interface: Orders
      Adds a note to an order with an optional reference id (for two-way notes) and attachments.
      Specified by:
      addNote in interface Orders
      Parameters:
      orderId - the identifier of the order
      text - the text of the note
      referenceId - the reference id associated with the note, or null
      attachments - references to previously uploaded attachments, or null
      Returns:
      true if the note was accepted
    • cancel

      public Boolean cancel(String orderId, String reason)
      Description copied from interface: Orders
      Cancels an order.
      Specified by:
      cancel in interface Orders
      Parameters:
      orderId - the identifier of the order
      reason - the reason for cancellation
      Returns:
      true if the cancellation was accepted
    • cancel

      public Boolean cancel(String orderId, String reason, List<AttachmentReference> attachments, List<String> lineIds)
      Description copied from interface: Orders
      Cancels an order, optionally restricting cancellation to specific order lines and attaching supporting documentation.
      Specified by:
      cancel in interface Orders
      Parameters:
      orderId - the identifier of the order
      reason - the reason for cancellation
      attachments - references to previously uploaded attachments, or null
      lineIds - the order line ids to cancel, or null to cancel the whole order
      Returns:
      true if the cancellation was accepted