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 ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description OrgsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateOrgPublicDataRescreateOrgPublicDataV1()Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT.CreateOrgPublicDataRescreateOrgPublicDataV1(CreateOrgPublicDataReq request)Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT.CreateOrgPublicDataRescreateOrgPublicDataV1(CreateOrgPublicDataReq request, RequestOptions requestOptions)Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT.java.util.Map<java.lang.String,java.lang.Object>getInfoV1()Retrieves basic organization information from the authentication service.java.util.Map<java.lang.String,java.lang.Object>getInfoV1(RequestOptions requestOptions)Retrieves basic organization information from the authentication service.OrgPublicData1getOrgPublicDataByOrgIdV1(java.lang.String orgId)Retrieves public organization data for a specific organization by ID.OrgPublicData1getOrgPublicDataByOrgIdV1(java.lang.String orgId, RequestOptions requestOptions)Retrieves public organization data for a specific organization by ID.booleangetOrgPublicDataHandleAvailabilityV1(java.lang.String handle)Returns True when the provided handle is available, otherwise False.booleangetOrgPublicDataHandleAvailabilityV1(java.lang.String handle, RequestOptions requestOptions)Returns True when the provided handle is available, otherwise False.OrgPublicData1getOrgPublicDataV1()Retrieves public organization data for the caller's organization.OrgPublicData1getOrgPublicDataV1(RequestOptions requestOptions)Retrieves public organization data for the caller's organization.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.java.util.List<OrgMemberDetails>listMembersV1()Lists all members of the caller's organization with their roles and details.java.util.List<OrgMemberDetails>listMembersV1(RequestOptions requestOptions)Lists all members of the caller's organization with their roles and details.booleansetOrgTypeV1(SetOrgTypeReq request)Sets the org_type in Clerk's JWT public metadata.booleansetOrgTypeV1(SetOrgTypeReq request, RequestOptions requestOptions)Sets the org_type in Clerk's JWT public metadata.booleanupdateOrgPublicDataV1()Updates the handle and/or company_name for the caller's organization.booleanupdateOrgPublicDataV1(UpdateOrgPublicDataReq request)Updates the handle and/or company_name for the caller's organization.booleanupdateOrgPublicDataV1(UpdateOrgPublicDataReq request, RequestOptions requestOptions)Updates the handle and/or company_name for the caller's organization.RawOrgsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
OrgsClient
public OrgsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawOrgsClient withRawResponse()
Get responses with HTTP metadata like headers
-
getInfoV1
public java.util.Map<java.lang.String,java.lang.Object> getInfoV1()
Retrieves basic organization information from the authentication service. | () -> (dict)
-
getInfoV1
public java.util.Map<java.lang.String,java.lang.Object> getInfoV1(RequestOptions requestOptions)
Retrieves basic organization information from the authentication service. | () -> (dict)
-
listMembersV1
public java.util.List<OrgMemberDetails> listMembersV1()
Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
-
listMembersV1
public java.util.List<OrgMemberDetails> listMembersV1(RequestOptions requestOptions)
Lists all members of the caller's organization with their roles and details. | () -> (list[OrgMemberDetails])
-
getOrgPublicDataV1
public OrgPublicData1 getOrgPublicDataV1()
Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
-
getOrgPublicDataV1
public OrgPublicData1 getOrgPublicDataV1(RequestOptions requestOptions)
Retrieves public organization data for the caller's organization. | () -> (OrgPublicData1)
-
createOrgPublicDataV1
public CreateOrgPublicDataRes createOrgPublicDataV1()
Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
-
createOrgPublicDataV1
public CreateOrgPublicDataRes createOrgPublicDataV1(CreateOrgPublicDataReq request)
Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
-
createOrgPublicDataV1
public CreateOrgPublicDataRes createOrgPublicDataV1(CreateOrgPublicDataReq request, RequestOptions requestOptions)
Creates org_public_data and org_private_data documents for the caller's organization using org_type from JWT. | (CreateOrgPublicDataReq) -> (CreateOrgPublicDataRes)
-
updateOrgPublicDataV1
public boolean updateOrgPublicDataV1()
Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
-
updateOrgPublicDataV1
public boolean updateOrgPublicDataV1(UpdateOrgPublicDataReq request)
Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
-
updateOrgPublicDataV1
public boolean updateOrgPublicDataV1(UpdateOrgPublicDataReq request, RequestOptions requestOptions)
Updates the handle and/or company_name for the caller's organization. | (UpdateOrgPublicDataReq) -> (bool)
-
getOrgPublicDataByOrgIdV1
public OrgPublicData1 getOrgPublicDataByOrgIdV1(java.lang.String orgId)
Retrieves public organization data for a specific organization by ID. | () -> (OrgPublicData1)
-
getOrgPublicDataByOrgIdV1
public OrgPublicData1 getOrgPublicDataByOrgIdV1(java.lang.String orgId, RequestOptions requestOptions)
Retrieves public organization data for a specific organization by ID. | () -> (OrgPublicData1)
-
getOrgPublicDataHandleAvailabilityV1
public boolean getOrgPublicDataHandleAvailabilityV1(java.lang.String handle)
Returns True when the provided handle is available, otherwise False. | () -> (bool)
-
getOrgPublicDataHandleAvailabilityV1
public boolean getOrgPublicDataHandleAvailabilityV1(java.lang.String handle, RequestOptions requestOptions)Returns True when the provided handle is available, otherwise False. | () -> (bool)
-
setOrgTypeV1
public boolean setOrgTypeV1(SetOrgTypeReq request)
Sets the org_type in Clerk's JWT public metadata. Returns True if already set and matching, sets it if not present, or raises exception if conflicting. | (SetOrgTypeReq) -> (bool)
-
setOrgTypeV1
public boolean setOrgTypeV1(SetOrgTypeReq request, RequestOptions requestOptions)
Sets the org_type in Clerk's JWT public metadata. Returns True if already set and matching, sets it if not present, or raises exception if conflicting. | (SetOrgTypeReq) -> (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)
-
-