Package com.chrt.api.resources.utils.dev
Class DevClient
- java.lang.Object
-
- com.chrt.api.resources.utils.dev.DevClient
-
public class DevClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description DevClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TemplateRescreateTemplateV1(TemplateReq request)Development template endpoint that demonstrates transaction handling and request mirroring.TemplateRescreateTemplateV1(TemplateReq request, RequestOptions requestOptions)Development template endpoint that demonstrates transaction handling and request mirroring.DecodedJwtWithOrgAndUserIdgetDecodedJwtV1()Returns the complete decoded JWT token information for development purposes.DecodedJwtWithOrgAndUserIdgetDecodedJwtV1(RequestOptions requestOptions)Returns the complete decoded JWT token information for development purposes.java.lang.StringgetEmailV1()Retrieves the primary email address for the caller from the authentication service.java.lang.StringgetEmailV1(RequestOptions requestOptions)Retrieves the primary email address for the caller from the authentication service.java.util.Map<java.lang.String,java.lang.String>getGitInfoV1()Returns the current GitHub PR number and commit hash for the deployment.java.util.Map<java.lang.String,java.lang.String>getGitInfoV1(RequestOptions requestOptions)Returns the current GitHub PR number and commit hash for the deployment.java.lang.StringgetTemplateV1()Development template endpoint that returns the caller's ID for testing.java.lang.StringgetTemplateV1(RequestOptions requestOptions)Development template endpoint that returns the caller's ID for testing.java.lang.StringgetUserIdV1()(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.java.lang.StringgetUserIdV1(RequestOptions requestOptions)(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token.java.lang.StringgetUserIdV2()Extracts and returns the user ID from the authenticated request's JWT token.java.lang.StringgetUserIdV2(RequestOptions requestOptions)Extracts and returns the user ID from the authenticated request's JWT token.AgentRespostAgentV1()Runs a customer service agent that responds with logistics fun facts (real order data not yet available).AgentRespostAgentV1(AgentReq request)Runs a customer service agent that responds with logistics fun facts (real order data not yet available).AgentRespostAgentV1(AgentReq request, RequestOptions requestOptions)Runs a customer service agent that responds with logistics fun facts (real order data not yet available).RawDevClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
DevClient
public DevClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public RawDevClient withRawResponse()
Get responses with HTTP metadata like headers
-
postAgentV1
public AgentRes postAgentV1()
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
postAgentV1
public AgentRes postAgentV1(AgentReq request)
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
postAgentV1
public AgentRes postAgentV1(AgentReq request, RequestOptions requestOptions)
Runs a customer service agent that responds with logistics fun facts (real order data not yet available). | (AgentReq) -> (AgentRes)
-
getUserIdV1
public java.lang.String getUserIdV1()
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV1
public java.lang.String getUserIdV1(RequestOptions requestOptions)
(DEPRECATED) Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public java.lang.String getUserIdV2()
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getUserIdV2
public java.lang.String getUserIdV2(RequestOptions requestOptions)
Extracts and returns the user ID from the authenticated request's JWT token. | () -> (str)
-
getDecodedJwtV1
public DecodedJwtWithOrgAndUserId getDecodedJwtV1()
Returns the complete decoded JWT token information for development purposes. | () -> (DecodedJWTWithOrgAndUserId)
-
getDecodedJwtV1
public DecodedJwtWithOrgAndUserId getDecodedJwtV1(RequestOptions requestOptions)
Returns the complete decoded JWT token information for development purposes. | () -> (DecodedJWTWithOrgAndUserId)
-
getEmailV1
public java.lang.String getEmailV1()
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getEmailV1
public java.lang.String getEmailV1(RequestOptions requestOptions)
Retrieves the primary email address for the caller from the authentication service. | () -> (str)
-
getTemplateV1
public java.lang.String getTemplateV1()
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
getTemplateV1
public java.lang.String getTemplateV1(RequestOptions requestOptions)
Development template endpoint that returns the caller's ID for testing. | () -> (str)
-
createTemplateV1
public TemplateRes createTemplateV1(TemplateReq request)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
createTemplateV1
public TemplateRes createTemplateV1(TemplateReq request, RequestOptions requestOptions)
Development template endpoint that demonstrates transaction handling and request mirroring. | (TemplateReq) -> (TemplateRes)
-
getGitInfoV1
public java.util.Map<java.lang.String,java.lang.String> getGitInfoV1()
Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
-
getGitInfoV1
public java.util.Map<java.lang.String,java.lang.String> getGitInfoV1(RequestOptions requestOptions)
Returns the current GitHub PR number and commit hash for the deployment. | () -> (dict[str, str])
-
-