Class AsyncAirWaybillsClient


  • public class AsyncAirWaybillsClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncAirWaybillsClient

        public AsyncAirWaybillsClient​(ClientOptions clientOptions)
    • Method Detail

      • createV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> createV1​(AirWaybillCreateReq request)
        Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record. The booking must be synced first via the webcargo_bookings sync route. Returns 409 if an air waybill already exists for this task group. | (AirWaybillCreateReq) -> (ChampAirWaybill1)
      • createV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> createV1​(AirWaybillCreateReq request,
                                                                                 RequestOptions requestOptions)
        Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record. The booking must be synced first via the webcargo_bookings sync route. Returns 409 if an air waybill already exists for this task group. | (AirWaybillCreateReq) -> (ChampAirWaybill1)
      • retrieveV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> retrieveV1​(java.lang.String taskGroupId)
        Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
      • retrieveV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> retrieveV1​(java.lang.String taskGroupId,
                                                                                   RequestOptions requestOptions)
        Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
      • updateV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> updateV1​(java.lang.String taskGroupId)
        Updates fields on an existing CHAMP air waybill. Any editable field can be set — only fields included in the request body are changed. | (ChampAirWaybillClientUpdate1) -> (ChampAirWaybill1)
      • updateV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> updateV1​(java.lang.String taskGroupId,
                                                                                 ChampAirWaybillClientUpdate1 request)
        Updates fields on an existing CHAMP air waybill. Any editable field can be set — only fields included in the request body are changed. | (ChampAirWaybillClientUpdate1) -> (ChampAirWaybill1)
      • updateV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> updateV1​(java.lang.String taskGroupId,
                                                                                 ChampAirWaybillClientUpdate1 request,
                                                                                 RequestOptions requestOptions)
        Updates fields on an existing CHAMP air waybill. Any editable field can be set — only fields included in the request body are changed. | (ChampAirWaybillClientUpdate1) -> (ChampAirWaybill1)
      • submitV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> submitV1​(java.lang.String taskGroupId)
        Submits a draft CHAMP air waybill to Traxon cargoHUB. Requires shipper, consignee, and charge_declarations to be filled in. Returns 422 if the AWB is not in draft status or required fields are missing. | () -> (ChampAirWaybill1)
      • submitV1

        public java.util.concurrent.CompletableFuture<ChampAirWaybill1> submitV1​(java.lang.String taskGroupId,
                                                                                 RequestOptions requestOptions)
        Submits a draft CHAMP air waybill to Traxon cargoHUB. Requires shipper, consignee, and charge_declarations to be filled in. Returns 422 if the AWB is not in draft status or required fields are missing. | () -> (ChampAirWaybill1)
      • pdfV1

        public java.util.concurrent.CompletableFuture<java.lang.Object> pdfV1​(java.lang.String taskGroupId)
        Converts a CHAMP air waybill to PDF via CHAMP's conversion API. Requires shipper, consignee, and charge_declarations to be filled in. Returns the PDF file as application/pdf. | () -> (PDF binary)
      • pdfV1

        public java.util.concurrent.CompletableFuture<java.lang.Object> pdfV1​(java.lang.String taskGroupId,
                                                                              RequestOptions requestOptions)
        Converts a CHAMP air waybill to PDF via CHAMP's conversion API. Requires shipper, consignee, and charge_declarations to be filled in. Returns the PDF file as application/pdf. | () -> (PDF binary)
      • confirmationsV1

        public java.util.concurrent.CompletableFuture<java.util.List<ChampConfirmationReceipt1>> confirmationsV1​(java.lang.String taskGroupId)
        Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group. | () -> (list[ChampConfirmationReceipt1])
      • confirmationsV1

        public java.util.concurrent.CompletableFuture<java.util.List<ChampConfirmationReceipt1>> confirmationsV1​(java.lang.String taskGroupId,
                                                                                                                 RequestOptions requestOptions)
        Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group. | () -> (list[ChampConfirmationReceipt1])
      • flightStatusesV1

        public java.util.concurrent.CompletableFuture<java.util.List<ChampFlightStatus1>> flightStatusesV1​(java.lang.String taskGroupId)
        Retrieves all CHAMP flight status updates linked to the air waybill for a task group. | () -> (list[ChampFlightStatus1])
      • flightStatusesV1

        public java.util.concurrent.CompletableFuture<java.util.List<ChampFlightStatus1>> flightStatusesV1​(java.lang.String taskGroupId,
                                                                                                           RequestOptions requestOptions)
        Retrieves all CHAMP flight status updates linked to the air waybill for a task group. | () -> (list[ChampFlightStatus1])