Class ConnectionsClient
- java.lang.Object
-
- com.chrt.api.resources.orgs.connections.ConnectionsClient
-
public class ConnectionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description ConnectionsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringcreateConnectionToCourierV1(CreateConnectionReq request)Creates a new connection to a courier organization.java.lang.StringcreateConnectionToCourierV1(CreateConnectionReq request, RequestOptions requestOptions)Creates a new connection to a courier organization.java.lang.StringcreateConnectionToForwarderV1(CreateConnectionReq request)Creates a new connection to a forwarder organization.java.lang.StringcreateConnectionToForwarderV1(CreateConnectionReq request, RequestOptions requestOptions)Creates a new connection to a forwarder organization.java.lang.StringcreateConnectionToShipperV1(CreateConnectionReq request)Creates a new connection to a shipper organization.java.lang.StringcreateConnectionToShipperV1(CreateConnectionReq request, RequestOptions requestOptions)Creates a new connection to a shipper organization.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.CourierConnectionListReslistCouriersV1()Lists courier organizations based on the caller's organization type.CourierConnectionListReslistCouriersV1(ConnectionsListCouriersV1Request request)Lists courier organizations based on the caller's organization type.CourierConnectionListReslistCouriersV1(ConnectionsListCouriersV1Request request, RequestOptions requestOptions)Lists courier organizations based on the caller's organization type.ForwarderConnectionListReslistForwardersV1()Lists forwarder organizations based on the caller's organization type.ForwarderConnectionListReslistForwardersV1(ConnectionsListForwardersV1Request request)Lists forwarder organizations based on the caller's organization type.ForwarderConnectionListReslistForwardersV1(ConnectionsListForwardersV1Request request, RequestOptions requestOptions)Lists forwarder organizations based on the caller's organization type.ShipperConnectionListReslistShippersV1()Lists shipper organizations based on the caller's organization type.ShipperConnectionListReslistShippersV1(ConnectionsListShippersV1Request request)Lists shipper organizations based on the caller's organization type.ShipperConnectionListReslistShippersV1(ConnectionsListShippersV1Request request, 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
-
-
Constructor Detail
-
ConnectionsClient
public ConnectionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawConnectionsClient withRawResponse()
Get responses with HTTP metadata like headers
-
listShippersV1
public ShipperConnectionListRes listShippersV1()
Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (ShipperConnectionListRes)
-
listShippersV1
public ShipperConnectionListRes listShippersV1(ConnectionsListShippersV1Request request)
Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (ShipperConnectionListRes)
-
listShippersV1
public ShipperConnectionListRes listShippersV1(ConnectionsListShippersV1Request request, RequestOptions requestOptions)
Lists shipper organizations based on the caller's organization type. Couriers see connected shippers, forwarders see connected shippers. | () -> (ShipperConnectionListRes)
-
listCouriersV1
public CourierConnectionListRes listCouriersV1()
Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (CourierConnectionListRes)
-
listCouriersV1
public CourierConnectionListRes listCouriersV1(ConnectionsListCouriersV1Request request)
Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (CourierConnectionListRes)
-
listCouriersV1
public CourierConnectionListRes listCouriersV1(ConnectionsListCouriersV1Request request, RequestOptions requestOptions)
Lists courier organizations based on the caller's organization type. Shippers see connected couriers, forwarders see connected couriers. | () -> (CourierConnectionListRes)
-
listForwardersV1
public ForwarderConnectionListRes listForwardersV1()
Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (ForwarderConnectionListRes)
-
listForwardersV1
public ForwarderConnectionListRes listForwardersV1(ConnectionsListForwardersV1Request request)
Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (ForwarderConnectionListRes)
-
listForwardersV1
public ForwarderConnectionListRes listForwardersV1(ConnectionsListForwardersV1Request request, RequestOptions requestOptions)
Lists forwarder organizations based on the caller's organization type. Shippers see connected forwarders, couriers see connected forwarders. | () -> (ForwarderConnectionListRes)
-
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)
-
createConnectionToCourierV1
public java.lang.String createConnectionToCourierV1(CreateConnectionReq request)
Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers. | (CreateConnectionReq) -> (PydanticObjectId)
-
createConnectionToCourierV1
public java.lang.String createConnectionToCourierV1(CreateConnectionReq request, RequestOptions requestOptions)
Creates a new connection to a courier organization. Shippers and forwarders can initiate connections to couriers. | (CreateConnectionReq) -> (PydanticObjectId)
-
createConnectionToShipperV1
public java.lang.String createConnectionToShipperV1(CreateConnectionReq request)
Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers. | (CreateConnectionReq) -> (PydanticObjectId)
-
createConnectionToShipperV1
public java.lang.String createConnectionToShipperV1(CreateConnectionReq request, RequestOptions requestOptions)
Creates a new connection to a shipper organization. Only forwarders can initiate connections to shippers. | (CreateConnectionReq) -> (PydanticObjectId)
-
createConnectionToForwarderV1
public java.lang.String createConnectionToForwarderV1(CreateConnectionReq request)
Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders. | (CreateConnectionReq) -> (PydanticObjectId)
-
createConnectionToForwarderV1
public java.lang.String createConnectionToForwarderV1(CreateConnectionReq request, RequestOptions requestOptions)
Creates a new connection to a forwarder organization. Only shippers can initiate connections to forwarders. | (CreateConnectionReq) -> (PydanticObjectId)
-
-