Class AsyncConnectionsClient
- java.lang.Object
-
- com.chrt.api.resources.connections.AsyncConnectionsClient
-
public class AsyncConnectionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncConnectionToCourierClient>connectionToCourierClientprotected java.util.function.Supplier<AsyncConnectionToForwarderClient>connectionToForwarderClientprotected java.util.function.Supplier<AsyncConnectionToShipperClient>connectionToShipperClient
-
Constructor Summary
Constructors Constructor Description AsyncConnectionsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncConnectionToCourierClientconnectionToCourier()AsyncConnectionToForwarderClientconnectionToForwarder()AsyncConnectionToShipperClientconnectionToShipper()java.util.concurrent.CompletableFuture<java.util.Optional<ConnectionsGetByHandleV1Response>>getByHandleV1(java.lang.String handle)Gets connection between caller's org and org with specified handle.java.util.concurrent.CompletableFuture<java.util.Optional<ConnectionsGetByHandleV1Response>>getByHandleV1(java.lang.String handle, RequestOptions requestOptions)Gets connection between caller's org and org with specified handle.java.util.concurrent.CompletableFuture<java.util.List<CourierConnectionRes>>listCouriersV1()Lists courier organizations based on the caller's organization type.java.util.concurrent.CompletableFuture<java.util.List<CourierConnectionRes>>listCouriersV1(RequestOptions requestOptions)Lists courier organizations based on the caller's organization type.java.util.concurrent.CompletableFuture<java.util.List<ForwarderConnectionRes>>listForwardersV1()Lists forwarder organizations based on the caller's organization type.java.util.concurrent.CompletableFuture<java.util.List<ForwarderConnectionRes>>listForwardersV1(RequestOptions requestOptions)Lists forwarder organizations based on the caller's organization type.java.util.concurrent.CompletableFuture<java.util.List<ShipperConnectionRes>>listShippersV1()Lists shipper organizations based on the caller's organization type.java.util.concurrent.CompletableFuture<java.util.List<ShipperConnectionRes>>listShippersV1(RequestOptions requestOptions)Lists shipper organizations based on the caller's organization type.AsyncRawConnectionsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
connectionToCourierClient
protected final java.util.function.Supplier<AsyncConnectionToCourierClient> connectionToCourierClient
-
connectionToShipperClient
protected final java.util.function.Supplier<AsyncConnectionToShipperClient> connectionToShipperClient
-
connectionToForwarderClient
protected final java.util.function.Supplier<AsyncConnectionToForwarderClient> connectionToForwarderClient
-
-
Constructor Detail
-
AsyncConnectionsClient
public AsyncConnectionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawConnectionsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listShippersV1
public java.util.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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.concurrent.CompletableFuture<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 AsyncConnectionToCourierClient connectionToCourier()
-
connectionToShipper
public AsyncConnectionToShipperClient connectionToShipper()
-
connectionToForwarder
public AsyncConnectionToForwarderClient connectionToForwarder()
-
-