Class AirWaybillsClient
- java.lang.Object
-
- com.chrt.api.resources.integrations.airwaybills.AirWaybillsClient
-
public class AirWaybillsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AirWaybillsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<ChampConfirmationReceipt1>confirmationsV1(java.lang.String taskGroupId, RequestOptions requestOptions)Retrieves all CHAMP confirmation receipts linked to the air waybill for a task group.ChampAirWaybill1createV1(AirWaybillCreateReq request)Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record.ChampAirWaybill1createV1(AirWaybillCreateReq request, RequestOptions requestOptions)Creates a CHAMP air waybill pre-populated from the stored WebCargo booking record.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.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.lang.ObjectpdfV1(java.lang.String taskGroupId)Converts a CHAMP air waybill to PDF via CHAMP's conversion API.java.lang.ObjectpdfV1(java.lang.String taskGroupId, RequestOptions requestOptions)Converts a CHAMP air waybill to PDF via CHAMP's conversion API.ChampAirWaybill1retrieveV1(java.lang.String taskGroupId)Retrieves the stored CHAMP air waybill for a task group.ChampAirWaybill1retrieveV1(java.lang.String taskGroupId, RequestOptions requestOptions)Retrieves the stored CHAMP air waybill for a task group.ChampAirWaybill1submitV1(java.lang.String taskGroupId)Submits a draft CHAMP air waybill to Traxon cargoHUB.ChampAirWaybill1submitV1(java.lang.String taskGroupId, RequestOptions requestOptions)Submits a draft CHAMP air waybill to Traxon cargoHUB.ChampAirWaybill1updateV1(java.lang.String taskGroupId)Updates fields on an existing CHAMP air waybill.ChampAirWaybill1updateV1(java.lang.String taskGroupId, ChampAirWaybillClientUpdate1 request)Updates fields on an existing CHAMP air waybill.ChampAirWaybill1updateV1(java.lang.String taskGroupId, ChampAirWaybillClientUpdate1 request, RequestOptions requestOptions)Updates fields on an existing CHAMP air waybill.RawAirWaybillsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AirWaybillsClient
public AirWaybillsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawAirWaybillsClient withRawResponse()
Get responses with HTTP metadata like headers
-
createV1
public 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 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 ChampAirWaybill1 retrieveV1(java.lang.String taskGroupId)
Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
-
retrieveV1
public ChampAirWaybill1 retrieveV1(java.lang.String taskGroupId, RequestOptions requestOptions)
Retrieves the stored CHAMP air waybill for a task group. | () -> (ChampAirWaybill1)
-
updateV1
public 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 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 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 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 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.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.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.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.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.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.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])
-
-