Package com.chrt.api.resources.orgs
Class OrgsClient
- java.lang.Object
-
- com.chrt.api.resources.orgs.OrgsClient
-
public class OrgsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<ComplianceDocumentsClient>complianceDocumentsClientprotected java.util.function.Supplier<ConnectionsClient>connectionsClientprotected java.util.function.Supplier<OffChrtProviderOrgClient>offChrtProviderOrgClientprotected java.util.function.Supplier<OffChrtShipperOrgClient>offChrtShipperOrgClientprotected java.util.function.Supplier<OrgInfoForConnectionsClient>orgInfoForConnectionsClientprotected java.util.function.Supplier<OrgProfilesClient>orgProfilesClientprotected java.util.function.Supplier<PrivateDataClient>privateDataClientprotected java.util.function.Supplier<PublicDataClient>publicDataClient
-
Constructor Summary
Constructors Constructor Description OrgsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComplianceDocumentsClientcomplianceDocuments()ConnectionsClientconnections()OrgInfoResponsegetInfoV1()Retrieves basic organization information from the authentication service.OrgInfoResponsegetInfoV1(RequestOptions requestOptions)Retrieves basic organization information from the authentication service.java.lang.StringgetStripeConnectAccountIdV1()Retrieves the Stripe Connect account ID for the caller's organization.java.lang.StringgetStripeConnectAccountIdV1(RequestOptions requestOptions)Retrieves the Stripe Connect account ID for the caller's organization.OrgMemberListReslistMembersV1()Lists all members of the caller's organization with their roles and details.OrgMemberListReslistMembersV1(OrgsListMembersV1Request request)Lists all members of the caller's organization with their roles and details.OrgMemberListReslistMembersV1(OrgsListMembersV1Request request, RequestOptions requestOptions)Lists all members of the caller's organization with their roles and details.OffChrtProviderOrgClientoffChrtProviderOrg()OffChrtShipperOrgClientoffChrtShipperOrg()OrgInfoForConnectionsClientorgInfoForConnections()OrgProfilesClientorgProfiles()PrivateDataClientprivateData()PublicDataClientpublicData()booleansetupOrgV1(SetupOrgReq request)Single onboarding entry point.booleansetupOrgV1(SetupOrgReq request, RequestOptions requestOptions)Single onboarding entry point.RawOrgsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
connectionsClient
protected final java.util.function.Supplier<ConnectionsClient> connectionsClient
-
offChrtProviderOrgClient
protected final java.util.function.Supplier<OffChrtProviderOrgClient> offChrtProviderOrgClient
-
offChrtShipperOrgClient
protected final java.util.function.Supplier<OffChrtShipperOrgClient> offChrtShipperOrgClient
-
complianceDocumentsClient
protected final java.util.function.Supplier<ComplianceDocumentsClient> complianceDocumentsClient
-
privateDataClient
protected final java.util.function.Supplier<PrivateDataClient> privateDataClient
-
orgProfilesClient
protected final java.util.function.Supplier<OrgProfilesClient> orgProfilesClient
-
publicDataClient
protected final java.util.function.Supplier<PublicDataClient> publicDataClient
-
orgInfoForConnectionsClient
protected final java.util.function.Supplier<OrgInfoForConnectionsClient> orgInfoForConnectionsClient
-
-
Constructor Detail
-
OrgsClient
public OrgsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawOrgsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getInfoV1
public OrgInfoResponse getInfoV1()
Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
-
getInfoV1
public OrgInfoResponse getInfoV1(RequestOptions requestOptions)
Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
-
listMembersV1
public OrgMemberListRes listMembersV1()
Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
-
listMembersV1
public OrgMemberListRes listMembersV1(OrgsListMembersV1Request request)
Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
-
listMembersV1
public OrgMemberListRes listMembersV1(OrgsListMembersV1Request request, RequestOptions requestOptions)
Lists all members of the caller's organization with their roles and details. Supports search by name, filtering by role, sorting, and pagination. | () -> (OrgMemberListRes)
-
setupOrgV1
public boolean setupOrgV1(SetupOrgReq request)
Single onboarding entry point. Setsorg_typein WorkOS JWT metadata (immutable once set) and idempotently createsorg_private_data+org_public_datafor the caller's organization. Optionalhandleandcompany_namepopulate the public doc on first call; later updates go through PATCH /orgs/org_public_data/v1. Returns True on success (including idempotent retries), 400 on org_type conflict or handle collision. | (SetupOrgReq) -> (bool)
-
setupOrgV1
public boolean setupOrgV1(SetupOrgReq request, RequestOptions requestOptions)
Single onboarding entry point. Setsorg_typein WorkOS JWT metadata (immutable once set) and idempotently createsorg_private_data+org_public_datafor the caller's organization. Optionalhandleandcompany_namepopulate the public doc on first call; later updates go through PATCH /orgs/org_public_data/v1. Returns True on success (including idempotent retries), 400 on org_type conflict or handle collision. | (SetupOrgReq) -> (bool)
-
getStripeConnectAccountIdV1
public java.lang.String getStripeConnectAccountIdV1()
Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
-
getStripeConnectAccountIdV1
public java.lang.String getStripeConnectAccountIdV1(RequestOptions requestOptions)
Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
-
connections
public ConnectionsClient connections()
-
offChrtProviderOrg
public OffChrtProviderOrgClient offChrtProviderOrg()
-
offChrtShipperOrg
public OffChrtShipperOrgClient offChrtShipperOrg()
-
complianceDocuments
public ComplianceDocumentsClient complianceDocuments()
-
privateData
public PrivateDataClient privateData()
-
orgProfiles
public OrgProfilesClient orgProfiles()
-
publicData
public PublicDataClient publicData()
-
orgInfoForConnections
public OrgInfoForConnectionsClient orgInfoForConnections()
-
-