Class ConnectionsClient
- java.lang.Object
-
- com.chrt.api.resources.connections.ConnectionsClient
-
public class ConnectionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<ConnectionToCourierClient>connectionToCourierClientprotected java.util.function.Supplier<ConnectionToForwarderClient>connectionToForwarderClientprotected java.util.function.Supplier<ConnectionToShipperClient>connectionToShipperClient
-
Constructor Summary
Constructors Constructor Description ConnectionsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectionToCourierClientconnectionToCourier()ConnectionToForwarderClientconnectionToForwarder()ConnectionToShipperClientconnectionToShipper()java.util.Optional<ConnectionsGetByHandleV1Response>getByHandleV1(java.lang.String handle)Gets connection between caller's org and org with specified handle.java.util.Optional<ConnectionsGetByHandleV1Response>getByHandleV1(java.lang.String handle, RequestOptions requestOptions)Gets connection between caller's org and org with specified handle.java.util.List<CourierConnectionRes>listCouriersV1()Lists courier organizations based on the caller's organization type.java.util.List<CourierConnectionRes>listCouriersV1(RequestOptions requestOptions)Lists courier organizations based on the caller's organization type.java.util.List<ForwarderConnectionRes>listForwardersV1()Lists forwarder organizations based on the caller's organization type.java.util.List<ForwarderConnectionRes>listForwardersV1(RequestOptions requestOptions)Lists forwarder organizations based on the caller's organization type.java.util.List<ShipperConnectionRes>listShippersV1()Lists shipper organizations based on the caller's organization type.java.util.List<ShipperConnectionRes>listShippersV1(RequestOptions requestOptions)Lists shipper organizations based on the caller's organization type.RawConnectionsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
connectionToCourierClient
protected final java.util.function.Supplier<ConnectionToCourierClient> connectionToCourierClient
-
connectionToShipperClient
protected final java.util.function.Supplier<ConnectionToShipperClient> connectionToShipperClient
-
connectionToForwarderClient
protected final java.util.function.Supplier<ConnectionToForwarderClient> connectionToForwarderClient
-
-
Constructor Detail
-
ConnectionsClient
public ConnectionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawConnectionsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listShippersV1
public java.util.List<ShipperConnectionRes> listShippersV1()
Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
-
listShippersV1
public java.util.List<ShipperConnectionRes> listShippersV1(RequestOptions requestOptions)
Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (list[ShipperConnectionRes])
-
listCouriersV1
public java.util.List<CourierConnectionRes> listCouriersV1()
Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
-
listCouriersV1
public java.util.List<CourierConnectionRes> listCouriersV1(RequestOptions requestOptions)
Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (list[CourierConnectionRes])
-
listForwardersV1
public java.util.List<ForwarderConnectionRes> listForwardersV1()
Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
-
listForwardersV1
public java.util.List<ForwarderConnectionRes> listForwardersV1(RequestOptions requestOptions)
Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (list[ForwarderConnectionRes])
-
getByHandleV1
public java.util.Optional<ConnectionsGetByHandleV1Response> getByHandleV1(java.lang.String handle)
Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
-
getByHandleV1
public java.util.Optional<ConnectionsGetByHandleV1Response> getByHandleV1(java.lang.String handle, RequestOptions requestOptions)
Gets connection between caller's org and org with specified handle. | () -> (ShipperCourierConnection1 | ShipperForwarderConnection1 | ForwarderCourierConnection1 | None)
-
connectionToCourier
public ConnectionToCourierClient connectionToCourier()
-
connectionToShipper
public ConnectionToShipperClient connectionToShipper()
-
connectionToForwarder
public ConnectionToForwarderClient connectionToForwarder()
-
-