Class DepartmentRoutingRulesClient
- java.lang.Object
-
- com.chrt.api.resources.operations.departmentroutingrules.DepartmentRoutingRulesClient
-
public class DepartmentRoutingRulesClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description DepartmentRoutingRulesClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeleteV1()Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params.booleandeleteV1(DepartmentRoutingRulesDeleteV1Request request)Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params.booleandeleteV1(DepartmentRoutingRulesDeleteV1Request request, RequestOptions requestOptions)Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params.java.util.List<DepartmentRoutingRule1>listV1()Lists the caller org's department routing rules.java.util.List<DepartmentRoutingRule1>listV1(RequestOptions requestOptions)Lists the caller org's department routing rules.java.lang.StringupsertV1(DepartmentRoutingRuleClientCreate1 request)Sets the caller org's default operations desk for a counterparty.java.lang.StringupsertV1(DepartmentRoutingRuleClientCreate1 request, RequestOptions requestOptions)Sets the caller org's default operations desk for a counterparty.RawDepartmentRoutingRulesClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
DepartmentRoutingRulesClient
public DepartmentRoutingRulesClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawDepartmentRoutingRulesClient withRawResponse()
Get responses with HTTP metadata like headers
-
listV1
public java.util.List<DepartmentRoutingRule1> listV1()
Lists the caller org's department routing rules. | authz: min_org_role=operator | () -> (list[DepartmentRoutingRule1])
-
listV1
public java.util.List<DepartmentRoutingRule1> listV1(RequestOptions requestOptions)
Lists the caller org's department routing rules. | authz: min_org_role=operator | () -> (list[DepartmentRoutingRule1])
-
upsertV1
public java.lang.String upsertV1(DepartmentRoutingRuleClientCreate1 request)
Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
-
upsertV1
public java.lang.String upsertV1(DepartmentRoutingRuleClientCreate1 request, RequestOptions requestOptions)
Sets the caller org's default operations desk for a counterparty. The body must set exactly one of shipper_org_id (on-chrt shipper) / off_chrt_shipper_org_id (off-chrt shipper shell) (XOR). Upsert: one rule per (owner, counterparty). Returns the rule id. The mapping is a non-binding suggestion surfaced at Case creation. | authz: min_org_role=administrator | (DepartmentRoutingRuleClientCreate1) -> (PydanticObjectId)
-
deleteV1
public boolean deleteV1()
Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
-
deleteV1
public boolean deleteV1(DepartmentRoutingRulesDeleteV1Request request)
Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
-
deleteV1
public boolean deleteV1(DepartmentRoutingRulesDeleteV1Request request, RequestOptions requestOptions)
Clears the caller org's default operations desk for a counterparty, keyed by exactly one of the shipper_org_id / off_chrt_shipper_org_id query params. | authz: min_org_role=administrator | () -> (bool)
-
-