Package org.openapitools.client.api
Class StripeApi
- java.lang.Object
-
- org.openapitools.client.api.StripeApi
-
public class StripeApi extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelSubscription(String trOrganization, UUID subscriptionId)Cancel Subscription Cancel Subscription Cancel a subscription by its idokhttp3.CallcancelSubscriptionAsync(String trOrganization, UUID subscriptionId, ApiCallback<Void> _callback)Cancel Subscription (asynchronously) Cancel Subscription Cancel a subscription by its idokhttp3.CallcancelSubscriptionCall(String trOrganization, UUID subscriptionId, ApiCallback _callback)Build call for cancelSubscriptionApiResponse<Void>cancelSubscriptionWithHttpInfo(@NotNull String trOrganization, @NotNull UUID subscriptionId)Cancel Subscription Cancel Subscription Cancel a subscription by its idvoiddirectToPaymentLink(UUID planId, UUID organizationId)Checkout Checkout Get a direct link to the stripe checkout page for the plan and organizationokhttp3.CalldirectToPaymentLinkAsync(UUID planId, UUID organizationId, ApiCallback<Void> _callback)Checkout (asynchronously) Checkout Get a direct link to the stripe checkout page for the plan and organizationokhttp3.CalldirectToPaymentLinkCall(UUID planId, UUID organizationId, ApiCallback _callback)Build call for directToPaymentLinkApiResponse<Void>directToPaymentLinkWithHttpInfo(@NotNull UUID planId, @NotNull UUID organizationId)Checkout Checkout Get a direct link to the stripe checkout page for the plan and organizationList<StripePlan>getAllPlans()Get All Plans Get All Plans Get a list of all plansokhttp3.CallgetAllPlansAsync(ApiCallback<List<StripePlan>> _callback)Get All Plans (asynchronously) Get All Plans Get a list of all plansokhttp3.CallgetAllPlansCall(ApiCallback _callback)Build call for getAllPlansApiResponse<List<StripePlan>>getAllPlansWithHttpInfo()Get All Plans Get All Plans Get a list of all plansApiClientgetApiClient()StringgetCustomBaseUrl()intgetHostIndex()voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(String customBaseUrl)voidsetHostIndex(int hostIndex)voidupdateSubscriptionPlan(String trOrganization, UUID subscriptionId, UUID planId)Update Subscription Plan Update Subscription Plan Update a subscription to a new planokhttp3.CallupdateSubscriptionPlanAsync(String trOrganization, UUID subscriptionId, UUID planId, ApiCallback<Void> _callback)Update Subscription Plan (asynchronously) Update Subscription Plan Update a subscription to a new planokhttp3.CallupdateSubscriptionPlanCall(String trOrganization, UUID subscriptionId, UUID planId, ApiCallback _callback)Build call for updateSubscriptionPlanApiResponse<Void>updateSubscriptionPlanWithHttpInfo(@NotNull String trOrganization, @NotNull UUID subscriptionId, @NotNull UUID planId)Update Subscription Plan Update Subscription Plan Update a subscription to a new plan
-
-
-
Constructor Detail
-
StripeApi
public StripeApi()
-
StripeApi
public StripeApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(String customBaseUrl)
-
cancelSubscriptionCall
public okhttp3.Call cancelSubscriptionCall(String trOrganization, UUID subscriptionId, ApiCallback _callback) throws ApiException
Build call for cancelSubscription- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to cancel (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was cancelled - 400 Service error relating to creating a URL for a stripe checkout page -
-
cancelSubscription
public void cancelSubscription(String trOrganization, UUID subscriptionId) throws ApiException
Cancel Subscription Cancel Subscription Cancel a subscription by its id- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to cancel (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was cancelled - 400 Service error relating to creating a URL for a stripe checkout page -
-
cancelSubscriptionWithHttpInfo
public ApiResponse<Void> cancelSubscriptionWithHttpInfo(@NotNull @NotNull String trOrganization, @NotNull @NotNull UUID subscriptionId) throws ApiException
Cancel Subscription Cancel Subscription Cancel a subscription by its id- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to cancel (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was cancelled - 400 Service error relating to creating a URL for a stripe checkout page -
-
cancelSubscriptionAsync
public okhttp3.Call cancelSubscriptionAsync(String trOrganization, UUID subscriptionId, ApiCallback<Void> _callback) throws ApiException
Cancel Subscription (asynchronously) Cancel Subscription Cancel a subscription by its id- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to cancel (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was cancelled - 400 Service error relating to creating a URL for a stripe checkout page -
-
directToPaymentLinkCall
public okhttp3.Call directToPaymentLinkCall(UUID planId, UUID organizationId, ApiCallback _callback) throws ApiException
Build call for directToPaymentLink- Parameters:
planId- id of the plan you want to subscribe to (required)organizationId- id of the organization you want to subscribe to the plan (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 303 SeeOther response redirecting user to stripe checkout page - 400 Service error relating to creating a URL for a stripe checkout page -
-
directToPaymentLink
public void directToPaymentLink(UUID planId, UUID organizationId) throws ApiException
Checkout Checkout Get a direct link to the stripe checkout page for the plan and organization- Parameters:
planId- id of the plan you want to subscribe to (required)organizationId- id of the organization you want to subscribe to the plan (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 303 SeeOther response redirecting user to stripe checkout page - 400 Service error relating to creating a URL for a stripe checkout page -
-
directToPaymentLinkWithHttpInfo
public ApiResponse<Void> directToPaymentLinkWithHttpInfo(@NotNull @NotNull UUID planId, @NotNull @NotNull UUID organizationId) throws ApiException
Checkout Checkout Get a direct link to the stripe checkout page for the plan and organization- Parameters:
planId- id of the plan you want to subscribe to (required)organizationId- id of the organization you want to subscribe to the plan (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 303 SeeOther response redirecting user to stripe checkout page - 400 Service error relating to creating a URL for a stripe checkout page -
-
directToPaymentLinkAsync
public okhttp3.Call directToPaymentLinkAsync(UUID planId, UUID organizationId, ApiCallback<Void> _callback) throws ApiException
Checkout (asynchronously) Checkout Get a direct link to the stripe checkout page for the plan and organization- Parameters:
planId- id of the plan you want to subscribe to (required)organizationId- id of the organization you want to subscribe to the plan (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 303 SeeOther response redirecting user to stripe checkout page - 400 Service error relating to creating a URL for a stripe checkout page -
-
getAllPlansCall
public okhttp3.Call getAllPlansCall(ApiCallback _callback) throws ApiException
Build call for getAllPlans- Parameters:
_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 List of all plans - 400 Service error relating to getting all plans -
-
getAllPlans
public List<StripePlan> getAllPlans() throws ApiException
Get All Plans Get All Plans Get a list of all plans- Returns:
- List<StripePlan>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 List of all plans - 400 Service error relating to getting all plans -
-
getAllPlansWithHttpInfo
public ApiResponse<List<StripePlan>> getAllPlansWithHttpInfo() throws ApiException
Get All Plans Get All Plans Get a list of all plans- Returns:
- ApiResponse<List<StripePlan>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 List of all plans - 400 Service error relating to getting all plans -
-
getAllPlansAsync
public okhttp3.Call getAllPlansAsync(ApiCallback<List<StripePlan>> _callback) throws ApiException
Get All Plans (asynchronously) Get All Plans Get a list of all plans- Parameters:
_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 List of all plans - 400 Service error relating to getting all plans -
-
updateSubscriptionPlanCall
public okhttp3.Call updateSubscriptionPlanCall(String trOrganization, UUID subscriptionId, UUID planId, ApiCallback _callback) throws ApiException
Build call for updateSubscriptionPlan- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to update (required)planId- id of the plan you want to subscribe to (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was updated to the new plan - 400 Service error relating to updating the subscription to the new plan -
-
updateSubscriptionPlan
public void updateSubscriptionPlan(String trOrganization, UUID subscriptionId, UUID planId) throws ApiException
Update Subscription Plan Update Subscription Plan Update a subscription to a new plan- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to update (required)planId- id of the plan you want to subscribe to (required)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was updated to the new plan - 400 Service error relating to updating the subscription to the new plan -
-
updateSubscriptionPlanWithHttpInfo
public ApiResponse<Void> updateSubscriptionPlanWithHttpInfo(@NotNull @NotNull String trOrganization, @NotNull @NotNull UUID subscriptionId, @NotNull @NotNull UUID planId) throws ApiException
Update Subscription Plan Update Subscription Plan Update a subscription to a new plan- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to update (required)planId- id of the plan you want to subscribe to (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was updated to the new plan - 400 Service error relating to updating the subscription to the new plan -
-
updateSubscriptionPlanAsync
public okhttp3.Call updateSubscriptionPlanAsync(String trOrganization, UUID subscriptionId, UUID planId, ApiCallback<Void> _callback) throws ApiException
Update Subscription Plan (asynchronously) Update Subscription Plan Update a subscription to a new plan- Parameters:
trOrganization- The organization id to use for the request (required)subscriptionId- id of the subscription you want to update (required)planId- id of the plan you want to subscribe to (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 200 Confirmation that the subscription was updated to the new plan - 400 Service error relating to updating the subscription to the new plan -
-
-