Class AsyncRawAirWaybillsClient
- java.lang.Object
-
- com.chrt.api.resources.integrations.airwaybills.AsyncRawAirWaybillsClient
-
public class AsyncRawAirWaybillsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawAirWaybillsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<ChampConfirmationReceipt1>>>confirmationsV1(java.lang.String taskGroupId)Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<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.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>createV1(AirWaybillCreateReq request)Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>createV1(AirWaybillCreateReq request, RequestOptions requestOptions)Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.util.List<ChampFlightStatus1>>>flightStatusesV1(java.lang.String taskGroupId)Retrieves all CHAMP flight status updates linked to the air waybill for a task group.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<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.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Object>>pdfV1(java.lang.String taskGroupId)Converts a CHAMP air waybill to PDF via CHAMP's conversion API.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<java.lang.Object>>pdfV1(java.lang.String taskGroupId, RequestOptions requestOptions)Converts a CHAMP air waybill to PDF via CHAMP's conversion API.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>retrieveV1(java.lang.String taskGroupId)Retrieves the stored CHAMP air waybill for a task group.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>retrieveV1(java.lang.String taskGroupId, RequestOptions requestOptions)Retrieves the stored CHAMP air waybill for a task group.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>submitV1(java.lang.String taskGroupId)Submits a draft CHAMP air waybill to Traxon cargoHUB.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>submitV1(java.lang.String taskGroupId, RequestOptions requestOptions)Submits a draft CHAMP air waybill to Traxon cargoHUB.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>updateV1(java.lang.String taskGroupId)Updates fields on an existing CHAMP air waybill.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>updateV1(java.lang.String taskGroupId, ChampAirWaybillClientUpdate1 request)Updates fields on an existing CHAMP air waybill.java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<ChampAirWaybill1>>updateV1(java.lang.String taskGroupId, ChampAirWaybillClientUpdate1 request, RequestOptions requestOptions)Updates fields on an existing CHAMP air waybill.
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawAirWaybillsClient
public AsyncRawAirWaybillsClient(ClientOptions clientOptions)
-
-
Method Detail
-
createV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<ChampAirWaybill1>> retrieveV1(java.lang.String taskGroupId)
Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
-
retrieveV1
public java.util.concurrent.CompletableFuture<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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<ChrtApiHttpResponse<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])
-
-