Class WebcargoBookingsClient
- java.lang.Object
-
- com.chrt.api.resources.integrations.webcargobookings.WebcargoBookingsClient
-
public class WebcargoBookingsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description WebcargoBookingsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebcargoBookingRecord1retrieveV1(java.lang.String taskGroupId)Retrieves the stored WebCargo booking record for a task group.WebcargoBookingRecord1retrieveV1(java.lang.String taskGroupId, RequestOptions requestOptions)Retrieves the stored WebCargo booking record for a task group.WebcargoBookingRecord1syncV1(java.lang.String taskGroupId)Fetches the latest booking record from WebCargo for a task group and upserts it in the database.WebcargoBookingRecord1syncV1(java.lang.String taskGroupId, RequestOptions requestOptions)Fetches the latest booking record from WebCargo for a task group and upserts it in the database.RawWebcargoBookingsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
WebcargoBookingsClient
public WebcargoBookingsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawWebcargoBookingsClient withRawResponse()
Get responses with HTTP metadata like headers
-
syncV1
public WebcargoBookingRecord1 syncV1(java.lang.String taskGroupId)
Fetches the latest booking record from WebCargo for a task group and upserts it in the database. Creates the record on first call, updates on subsequent calls. | () -> (WebcargoBookingRecord1)
-
syncV1
public WebcargoBookingRecord1 syncV1(java.lang.String taskGroupId, RequestOptions requestOptions)
Fetches the latest booking record from WebCargo for a task group and upserts it in the database. Creates the record on first call, updates on subsequent calls. | () -> (WebcargoBookingRecord1)
-
retrieveV1
public WebcargoBookingRecord1 retrieveV1(java.lang.String taskGroupId)
Retrieves the stored WebCargo booking record for a task group. Returns 404 if the booking has never been synced. | () -> (WebcargoBookingRecord1)
-
retrieveV1
public WebcargoBookingRecord1 retrieveV1(java.lang.String taskGroupId, RequestOptions requestOptions)
Retrieves the stored WebCargo booking record for a task group. Returns 404 if the booking has never been synced. | () -> (WebcargoBookingRecord1)
-
-