Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/auth/CreateSaasUserParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**email** | **String** | E-mail | |
|**password** | **String** | Password | |
|**password** | **String** | Password | [optional] |



2 changes: 1 addition & 1 deletion docs/auth/SaasUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public class Example {

Create SaaS User

Create SaaS User.
Create SaaS User. If attributes is empty, a temporary password will be sent to the registered email.

### Example
```java
Expand Down
14 changes: 14 additions & 0 deletions docs/auth/StripeCustomer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# StripeCustomer


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**customerId** | **String** | stripe Customer ID | |
|**subscriptionScheduleId** | **String** | stripe Subscription Schedule ID | |



69 changes: 69 additions & 0 deletions docs/auth/TenantApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All URIs are relative to *https://api.saasus.io/v1/auth*
| [**createTenantAndPricing**](TenantApi.md#createTenantAndPricing) | **PATCH** /stripe/init | Stripe Initial Setting |
| [**deleteStripeTenantAndPricing**](TenantApi.md#deleteStripeTenantAndPricing) | **DELETE** /stripe | Delete Customer and Product From Stripe |
| [**deleteTenant**](TenantApi.md#deleteTenant) | **DELETE** /tenants/{tenant_id} | Delete Tenant |
| [**getStripeCustomer**](TenantApi.md#getStripeCustomer) | **GET** /tenants/{tenant_id}/stripe-customer | Get Stripe Customer |
| [**getTenant**](TenantApi.md#getTenant) | **GET** /tenants/{tenant_id} | Get Tenant Details |
| [**getTenantIdentityProviders**](TenantApi.md#getTenantIdentityProviders) | **GET** /tenants/{tenant_id}/identity-providers | Get identity provider per tenant |
| [**getTenants**](TenantApi.md#getTenants) | **GET** /tenants | Get Tenants |
Expand Down Expand Up @@ -279,6 +280,74 @@ null (empty response body)
| **200** | OK | - |
| **500** | Internal Server Error | - |

<a id="getStripeCustomer"></a>
# **getStripeCustomer**
> StripeCustomer getStripeCustomer(tenantId)

Get Stripe Customer

Get the Stripe Customer information associated with the tenant, including their subscriptions.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.TenantApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

TenantApi apiInstance = new TenantApi(defaultClient);
String tenantId = "tenantId_example"; // String | Tenant ID
try {
StripeCustomer result = apiInstance.getStripeCustomer(tenantId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TenantApi#getStripeCustomer");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **tenantId** | **String**| Tenant ID | |

### Return type

[**StripeCustomer**](StripeCustomer.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **500** | Internal Server Error | - |

<a id="getTenant"></a>
# **getTenant**
> TenantDetail getTenant(tenantId)
Expand Down
70 changes: 70 additions & 0 deletions docs/auth/UserInfoApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://api.saasus.io/v1/auth*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**getUserInfo**](UserInfoApi.md#getUserInfo) | **GET** /userinfo | Get User Info |
| [**getUserInfoByEmail**](UserInfoApi.md#getUserInfoByEmail) | **GET** /userinfo/search/email | Get User Info by Email |


<a id="getUserInfo"></a>
Expand Down Expand Up @@ -76,3 +77,72 @@ public class Example {
| **401** | Unauthorized | - |
| **500** | Internal Server Error | - |

<a id="getUserInfoByEmail"></a>
# **getUserInfoByEmail**
> UserInfo getUserInfoByEmail(email)

Get User Info by Email

Get user information by email address.

### Example
```java
// Import classes:
import saasus.sdk.auth.ApiClient;
import saasus.sdk.auth.ApiException;
import saasus.sdk.auth.Configuration;
import saasus.sdk.auth.auth.*;
import saasus.sdk.auth.models.*;
import saasus.sdk.auth.api.UserInfoApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.saasus.io/v1/auth");

// Configure HTTP bearer authorization: Bearer
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
Bearer.setBearerToken("BEARER TOKEN");

UserInfoApi apiInstance = new UserInfoApi(defaultClient);
String email = "email_example"; // String | Email
try {
UserInfo result = apiInstance.getUserInfoByEmail(email);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling UserInfoApi#getUserInfoByEmail");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **email** | **String**| Email | |

### Return type

[**UserInfo**](UserInfo.md)

### Authorization

[Bearer](../README.md#Bearer)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | OK | - |
| **404** | Not Found | - |
| **500** | Internal Server Error | - |

2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.apilog;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class Configuration {
public static final String VERSION = "1.0.0";

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.apilog;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/auth/HttpBearerAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import java.util.Optional;
import java.util.function.Supplier;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class HttpBearerAuth implements Authentication {
private final String scheme;
private Supplier<String> tokenSupplier;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public abstract class AbstractOpenApiSchema {

// store the actual instance of the schema/object
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/ApiLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
/**
* ApiLog
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class ApiLog {
public static final String SERIALIZED_NAME_TRACE_ID = "trace_id";
@SerializedName(SERIALIZED_NAME_TRACE_ID)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/ApiLogs.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
/**
* ApiLogs
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class ApiLogs {
public static final String SERIALIZED_NAME_API_LOGS = "api_logs";
@SerializedName(SERIALIZED_NAME_API_LOGS)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/apilog/models/Error.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
/**
* Error
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:40.405574501Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:38.501345938Z[Etc/UTC]")
public class Error {
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:21.529968105Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:21.140838443Z[Etc/UTC]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.auth;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:21.529968105Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:21.140838443Z[Etc/UTC]")
public class Configuration {
public static final String VERSION = "1.0.0";

Expand Down
1 change: 1 addition & 0 deletions src/main/java/saasus/sdk/auth/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SignUpWithAwsMarketplaceParam.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SingleTenantSettings.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.SoftwareTokenSecretCode.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.StripeCustomer.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.Tenant.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.TenantAttributes.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new saasus.sdk.auth.models.TenantDetail.CustomTypeAdapterFactory());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package saasus.sdk.auth;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:21.529968105Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:21.140838443Z[Etc/UTC]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/saasus/sdk/auth/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-08-16T05:09:21.529968105Z[Etc/UTC]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-06-19T09:08:21.140838443Z[Etc/UTC]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/saasus/sdk/auth/api/SaasUserApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ private okhttp3.Call createSaasUserValidateBeforeCall(CreateSaasUserParam create

/**
* Create SaaS User
* Create SaaS User.
* Create SaaS User. If attributes is empty, a temporary password will be sent to the registered email.
* @param createSaasUserParam (optional)
* @return SaasUser
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand All @@ -550,7 +550,7 @@ public SaasUser createSaasUser(CreateSaasUserParam createSaasUserParam) throws A

/**
* Create SaaS User
* Create SaaS User.
* Create SaaS User. If attributes is empty, a temporary password will be sent to the registered email.
* @param createSaasUserParam (optional)
* @return ApiResponse&lt;SaasUser&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
Expand All @@ -570,7 +570,7 @@ public ApiResponse<SaasUser> createSaasUserWithHttpInfo(CreateSaasUserParam crea

/**
* Create SaaS User (asynchronously)
* Create SaaS User.
* Create SaaS User. If attributes is empty, a temporary password will be sent to the registered email.
* @param createSaasUserParam (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
Expand Down
Loading