Class OrderDraftsClient


  • public class OrderDraftsClient
    extends java.lang.Object
    • Field Detail

      • taskGroupClient

        protected final java.util.function.Supplier<TaskGroupClient> taskGroupClient
      • taskClient

        protected final java.util.function.Supplier<TaskClient> taskClient
      • taskArtifactClient

        protected final java.util.function.Supplier<TaskArtifactClient> taskArtifactClient
      • cargoClient

        protected final java.util.function.Supplier<CargoClient> cargoClient
      • expandedClient

        protected final java.util.function.Supplier<ExpandedClient> expandedClient
    • Constructor Detail

      • OrderDraftsClient

        public OrderDraftsClient​(ClientOptions clientOptions)
    • Method Detail

      • withRawResponse

        public RawOrderDraftsClient withRawResponse()
        Get responses with HTTP metadata like headers
      • newV1

        public OrdersNewDraftRes newV1()
        Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
      • newV1

        public OrdersNewDraftRes newV1​(OrdersNewDraftReq request)
        Creates a new draft order with org assignments based on caller's organization type. | (OrdersNewDraftReq) -> (OrdersNewDraftRes)
      • updateV1

        public OrdersDraftUpdateRes updateV1​(OrdersDraftUpdateReq request)
        Updates forwarder and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
      • deleteV1

        public boolean deleteV1​(java.lang.String orderId)
        Deletes a draft order and all associated entities. | () -> (bool)
      • deleteV1

        public boolean deleteV1​(java.lang.String orderId,
                                RequestOptions requestOptions)
        Deletes a draft order and all associated entities. | () -> (bool)
      • validateV1

        public boolean validateV1​(java.lang.String orderId)
        Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)
      • validateV1

        public boolean validateV1​(java.lang.String orderId,
                                  RequestOptions requestOptions)
        Checks whether the draft order satisfies all requirements to move into staging. | () -> (bool)