Package com.chrt.api.resources.orgs
Class AsyncOrgsClient
- java.lang.Object
-
- com.chrt.api.resources.orgs.AsyncOrgsClient
-
public class AsyncOrgsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptionsprotected java.util.function.Supplier<AsyncComplianceDocumentsClient>complianceDocumentsClientprotected java.util.function.Supplier<AsyncConnectionsClient>connectionsClientprotected java.util.function.Supplier<AsyncOffChrtProviderOrgClient>offChrtProviderOrgClientprotected java.util.function.Supplier<AsyncOffChrtShipperOrgClient>offChrtShipperOrgClientprotected java.util.function.Supplier<AsyncOrgInfoForConnectionsClient>orgInfoForConnectionsClientprotected java.util.function.Supplier<AsyncOrgProfilesClient>orgProfilesClientprotected java.util.function.Supplier<AsyncPrivateDataClient>privateDataClientprotected java.util.function.Supplier<AsyncPublicDataClient>publicDataClient
-
Constructor Summary
Constructors Constructor Description AsyncOrgsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncComplianceDocumentsClientcomplianceDocuments()AsyncConnectionsClientconnections()java.util.concurrent.CompletableFuture<OrgInfoResponse>getInfoV1()Retrieves basic organization information from the authentication service.java.util.concurrent.CompletableFuture<OrgInfoResponse>getInfoV1(RequestOptions requestOptions)Retrieves basic organization information from the authentication service.java.util.concurrent.CompletableFuture<java.lang.String>getStripeConnectAccountIdV1()Retrieves the Stripe Connect account ID for the caller's organization.java.util.concurrent.CompletableFuture<java.lang.String>getStripeConnectAccountIdV1(RequestOptions requestOptions)Retrieves the Stripe Connect account ID for the caller's organization.java.util.concurrent.CompletableFuture<OrgMemberListRes>listMembersV1()Lists all members of the caller's organization with their roles and details.java.util.concurrent.CompletableFuture<OrgMemberListRes>listMembersV1(OrgsListMembersV1Request request)Lists all members of the caller's organization with their roles and details.java.util.concurrent.CompletableFuture<OrgMemberListRes>listMembersV1(OrgsListMembersV1Request request, RequestOptions requestOptions)Lists all members of the caller's organization with their roles and details.AsyncOffChrtProviderOrgClientoffChrtProviderOrg()AsyncOffChrtShipperOrgClientoffChrtShipperOrg()AsyncOrgInfoForConnectionsClientorgInfoForConnections()AsyncOrgProfilesClientorgProfiles()AsyncPrivateDataClientprivateData()AsyncPublicDataClientpublicData()java.util.concurrent.CompletableFuture<java.lang.Boolean>setupOrgV1(SetupOrgReq request)Single onboarding entry point.java.util.concurrent.CompletableFuture<java.lang.Boolean>setupOrgV1(SetupOrgReq request, RequestOptions requestOptions)Single onboarding entry point.AsyncRawOrgsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
connectionsClient
protected final java.util.function.Supplier<AsyncConnectionsClient> connectionsClient
-
offChrtProviderOrgClient
protected final java.util.function.Supplier<AsyncOffChrtProviderOrgClient> offChrtProviderOrgClient
-
offChrtShipperOrgClient
protected final java.util.function.Supplier<AsyncOffChrtShipperOrgClient> offChrtShipperOrgClient
-
complianceDocumentsClient
protected final java.util.function.Supplier<AsyncComplianceDocumentsClient> complianceDocumentsClient
-
privateDataClient
protected final java.util.function.Supplier<AsyncPrivateDataClient> privateDataClient
-
orgProfilesClient
protected final java.util.function.Supplier<AsyncOrgProfilesClient> orgProfilesClient
-
publicDataClient
protected final java.util.function.Supplier<AsyncPublicDataClient> publicDataClient
-
orgInfoForConnectionsClient
protected final java.util.function.Supplier<AsyncOrgInfoForConnectionsClient> orgInfoForConnectionsClient
-
-
Constructor Detail
-
AsyncOrgsClient
public AsyncOrgsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawOrgsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getInfoV1
public java.util.concurrent.CompletableFuture<OrgInfoResponse> getInfoV1()
Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
-
getInfoV1
public java.util.concurrent.CompletableFuture<OrgInfoResponse> getInfoV1(RequestOptions requestOptions)
Retrieves basic organization information from the authentication service. | () -> (OrgInfoResponse)
-
listMembersV1
public java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<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 java.util.concurrent.CompletableFuture<java.lang.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 java.util.concurrent.CompletableFuture<java.lang.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.util.concurrent.CompletableFuture<java.lang.String> getStripeConnectAccountIdV1()
Retrieves the Stripe Connect account ID for the caller's organization. Returns 404 if not set. | () -> (str)
-
getStripeConnectAccountIdV1
public java.util.concurrent.CompletableFuture<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 AsyncConnectionsClient connections()
-
offChrtProviderOrg
public AsyncOffChrtProviderOrgClient offChrtProviderOrg()
-
offChrtShipperOrg
public AsyncOffChrtShipperOrgClient offChrtShipperOrg()
-
complianceDocuments
public AsyncComplianceDocumentsClient complianceDocuments()
-
privateData
public AsyncPrivateDataClient privateData()
-
orgProfiles
public AsyncOrgProfilesClient orgProfiles()
-
publicData
public AsyncPublicDataClient publicData()
-
orgInfoForConnections
public AsyncOrgInfoForConnectionsClient orgInfoForConnections()
-
-