Class OrderDraftsClient


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

      • agenticClient

        protected final java.util.function.Supplier<AgenticClient> agenticClient
      • 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​(java.lang.String orderId)
        Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
      • updateV1

        public OrdersDraftUpdateRes updateV1​(java.lang.String orderId,
                                             OrdersDraftUpdateReq request)
        Updates coordinator and/or shipper org assignments for a draft order. | (OrdersDraftUpdateReq) -> (OrdersDraftUpdateRes)
      • setTaskGroupOrderingV1

        public boolean setTaskGroupOrderingV1​(java.lang.String orderId,
                                              SetTaskGroupOrderingDraftReq request)
        Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
      • setTaskGroupOrderingV1

        public boolean setTaskGroupOrderingV1​(java.lang.String orderId,
                                              SetTaskGroupOrderingDraftReq request,
                                              RequestOptions requestOptions)
        Sets the ordering of task groups within a draft order. Must provide all task group IDs with no duplicates. | (SetTaskGroupOrderingDraftReq) -> (bool)
      • 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)
      • deleteManyV1

        public boolean deleteManyV1​(OrdersDraftDeleteManyReq request)
        Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
      • deleteManyV1

        public boolean deleteManyV1​(OrdersDraftDeleteManyReq request,
                                    RequestOptions requestOptions)
        Deletes multiple draft orders and associated entities. | (OrdersDraftDeleteManyReq) -> (bool)
      • typeaheadV1

        public java.util.List<OrderTypeaheadResult> typeaheadV1​(OrderDraftsTypeaheadV1Request request)
        Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
      • typeaheadV1

        public java.util.List<OrderTypeaheadResult> typeaheadV1​(OrderDraftsTypeaheadV1Request request,
                                                                RequestOptions requestOptions)
        Returns distinct short_id and off_chrt_reference_id values matching the query via case-insensitive regex. Searches draft orders created by the caller's org. | authz: min_org_role=operator | () -> (list[OrderTypeaheadResult])
      • validateV1

        public OrderDraftValidationResult validateV1​(java.lang.String orderId)
        Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)
      • validateV1

        public OrderDraftValidationResult validateV1​(java.lang.String orderId,
                                                     RequestOptions requestOptions)
        Validates the draft order for staging and returns requirement results. | () -> (OrderDraftValidationResult)