Package com.chrt.api.resources.payments
Class AsyncPaymentsClient
- java.lang.Object
-
- com.chrt.api.resources.payments.AsyncPaymentsClient
-
public class AsyncPaymentsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncPaymentsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<CreateCheckoutSessionRes>createCheckoutSessionV1(CreateCheckoutSessionReq request)Creates a Stripe checkout session for a subscription with pricing based on the selected plan.java.util.concurrent.CompletableFuture<CreateCheckoutSessionRes>createCheckoutSessionV1(CreateCheckoutSessionReq request, RequestOptions requestOptions)Creates a Stripe checkout session for a subscription with pricing based on the selected plan.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncStripeToClerkV1()Synchronizes subscription data from Stripe to the authentication service for the current user.java.util.concurrent.CompletableFuture<java.lang.Boolean>syncStripeToClerkV1(RequestOptions requestOptions)Synchronizes subscription data from Stripe to the authentication service for the current user.AsyncRawPaymentsClientwithRawResponse()Get responses with HTTP metadata like headers
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncPaymentsClient
public AsyncPaymentsClient(ClientOptions clientOptions)
-
-
Method Detail
-
withRawResponse
public AsyncRawPaymentsClient withRawResponse()
Get responses with HTTP metadata like headers
-
createCheckoutSessionV1
public java.util.concurrent.CompletableFuture<CreateCheckoutSessionRes> createCheckoutSessionV1(CreateCheckoutSessionReq request)
Creates a Stripe checkout session for a subscription with pricing based on the selected plan. | (CreateCheckoutSessionReq) -> (CreateCheckoutSessionRes)
-
createCheckoutSessionV1
public java.util.concurrent.CompletableFuture<CreateCheckoutSessionRes> createCheckoutSessionV1(CreateCheckoutSessionReq request, RequestOptions requestOptions)
Creates a Stripe checkout session for a subscription with pricing based on the selected plan. | (CreateCheckoutSessionReq) -> (CreateCheckoutSessionRes)
-
syncStripeToClerkV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncStripeToClerkV1()
Synchronizes subscription data from Stripe to the authentication service for the current user. | () -> (bool)
-
syncStripeToClerkV1
public java.util.concurrent.CompletableFuture<java.lang.Boolean> syncStripeToClerkV1(RequestOptions requestOptions)
Synchronizes subscription data from Stripe to the authentication service for the current user. | () -> (bool)
-
-