Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/v1 20241122 #16

Draft
wants to merge 1 commit into
base: feature/v1
Choose a base branch
from
Draft
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/apilog/CreateSaasUserParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **str** | E-mail |
**password** | **str** | Password |
**password** | **str** | Password | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/apilog/SaasUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**email** | **str** | E-mail |
**attributes** | **Dict[str, object]** | Attribute information | [optional]
**attributes** | **Dict[str, object]** | Attribute information |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/apilog/SaasUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Name | Type | Description | Notes

Create SaaS User

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

### Example

Expand Down
29 changes: 29 additions & 0 deletions docs/apilog/StripeCustomer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# StripeCustomer


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **str** | stripe Customer ID |
**subscription_schedule_id** | **str** | stripe Subscription Schedule ID |

## Example

```python
from saasus_sdk_python.src.auth.models.stripe_customer import StripeCustomer

# TODO update the JSON string below
json = "{}"
# create an instance of StripeCustomer from a JSON string
stripe_customer_instance = StripeCustomer.from_json(json)
# print the JSON string representation of the object
print StripeCustomer.to_json()

# convert the object into a dict
stripe_customer_dict = stripe_customer_instance.to_dict()
# create an instance of StripeCustomer from a dict
stripe_customer_form_dict = stripe_customer.from_dict(stripe_customer_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


79 changes: 79 additions & 0 deletions docs/apilog/TenantApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Method | HTTP request | Description
[**create_tenant_and_pricing**](TenantApi.md#create_tenant_and_pricing) | **PATCH** /stripe/init | Stripe Initial Setting
[**delete_stripe_tenant_and_pricing**](TenantApi.md#delete_stripe_tenant_and_pricing) | **DELETE** /stripe | Delete Customer and Product From Stripe
[**delete_tenant**](TenantApi.md#delete_tenant) | **DELETE** /tenants/{tenant_id} | Delete Tenant
[**get_stripe_customer**](TenantApi.md#get_stripe_customer) | **GET** /tenants/{tenant_id}/stripe-customer | Get Stripe Customer
[**get_tenant**](TenantApi.md#get_tenant) | **GET** /tenants/{tenant_id} | Get Tenant Details
[**get_tenant_identity_providers**](TenantApi.md#get_tenant_identity_providers) | **GET** /tenants/{tenant_id}/identity-providers | Get identity provider per tenant
[**get_tenants**](TenantApi.md#get_tenants) | **GET** /tenants | Get Tenants
Expand Down Expand Up @@ -314,6 +315,84 @@ void (empty response body)

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_stripe_customer**
> StripeCustomer get_stripe_customer(tenant_id)

Get Stripe Customer

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

### Example

* Bearer Authentication (Bearer):
```python
import time
import os
import saasus_sdk_python.src.auth
from saasus_sdk_python.src.auth.models.stripe_customer import StripeCustomer
from saasus_sdk_python.src.auth.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.saasus.io/v1/auth
# See configuration.py for a list of all supported configuration parameters.
configuration = saasus_sdk_python.src.auth.Configuration(
host = "https://api.saasus.io/v1/auth"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: Bearer
configuration = saasus_sdk_python.src.auth.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = saasus_sdk_python.src.auth.TenantApi(api_client)
tenant_id = 'tenant_id_example' # str | Tenant ID

try:
# Get Stripe Customer
api_response = api_instance.get_stripe_customer(tenant_id)
print("The response of TenantApi->get_stripe_customer:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantApi->get_stripe_customer: %s\n" % e)
```



### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tenant_id** | **str**| 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 | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_tenant**
> TenantDetail get_tenant(tenant_id)

Expand Down
2 changes: 1 addition & 1 deletion docs/auth/CreateSaasUserParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **str** | E-mail |
**password** | **str** | Password |
**password** | **str** | Password | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/auth/SaasUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**email** | **str** | E-mail |
**attributes** | **Dict[str, object]** | Attribute information | [optional]
**attributes** | **Dict[str, object]** | Attribute information |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/auth/SaasUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Name | Type | Description | Notes

Create SaaS User

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

### Example

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


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **str** | stripe Customer ID |
**subscription_schedule_id** | **str** | stripe Subscription Schedule ID |

## Example

```python
from saasus_sdk_python.src.auth.models.stripe_customer import StripeCustomer

# TODO update the JSON string below
json = "{}"
# create an instance of StripeCustomer from a JSON string
stripe_customer_instance = StripeCustomer.from_json(json)
# print the JSON string representation of the object
print StripeCustomer.to_json()

# convert the object into a dict
stripe_customer_dict = stripe_customer_instance.to_dict()
# create an instance of StripeCustomer from a dict
stripe_customer_form_dict = stripe_customer.from_dict(stripe_customer_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


79 changes: 79 additions & 0 deletions docs/auth/TenantApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Method | HTTP request | Description
[**create_tenant_and_pricing**](TenantApi.md#create_tenant_and_pricing) | **PATCH** /stripe/init | Stripe Initial Setting
[**delete_stripe_tenant_and_pricing**](TenantApi.md#delete_stripe_tenant_and_pricing) | **DELETE** /stripe | Delete Customer and Product From Stripe
[**delete_tenant**](TenantApi.md#delete_tenant) | **DELETE** /tenants/{tenant_id} | Delete Tenant
[**get_stripe_customer**](TenantApi.md#get_stripe_customer) | **GET** /tenants/{tenant_id}/stripe-customer | Get Stripe Customer
[**get_tenant**](TenantApi.md#get_tenant) | **GET** /tenants/{tenant_id} | Get Tenant Details
[**get_tenant_identity_providers**](TenantApi.md#get_tenant_identity_providers) | **GET** /tenants/{tenant_id}/identity-providers | Get identity provider per tenant
[**get_tenants**](TenantApi.md#get_tenants) | **GET** /tenants | Get Tenants
Expand Down Expand Up @@ -314,6 +315,84 @@ void (empty response body)

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_stripe_customer**
> StripeCustomer get_stripe_customer(tenant_id)

Get Stripe Customer

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

### Example

* Bearer Authentication (Bearer):
```python
import time
import os
import saasus_sdk_python.src.auth
from saasus_sdk_python.src.auth.models.stripe_customer import StripeCustomer
from saasus_sdk_python.src.auth.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.saasus.io/v1/auth
# See configuration.py for a list of all supported configuration parameters.
configuration = saasus_sdk_python.src.auth.Configuration(
host = "https://api.saasus.io/v1/auth"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: Bearer
configuration = saasus_sdk_python.src.auth.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = saasus_sdk_python.src.auth.TenantApi(api_client)
tenant_id = 'tenant_id_example' # str | Tenant ID

try:
# Get Stripe Customer
api_response = api_instance.get_stripe_customer(tenant_id)
print("The response of TenantApi->get_stripe_customer:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantApi->get_stripe_customer: %s\n" % e)
```



### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**tenant_id** | **str**| 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 | - |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **get_tenant**
> TenantDetail get_tenant(tenant_id)

Expand Down
2 changes: 1 addition & 1 deletion docs/awsmarketplace/CreateSaasUserParam.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **str** | E-mail |
**password** | **str** | Password |
**password** | **str** | Password | [optional]

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/awsmarketplace/SaasUser.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **str** | |
**email** | **str** | E-mail |
**attributes** | **Dict[str, object]** | Attribute information | [optional]
**attributes** | **Dict[str, object]** | Attribute information |

## Example

Expand Down
2 changes: 1 addition & 1 deletion docs/awsmarketplace/SaasUserApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ Name | Type | Description | Notes

Create SaaS User

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

### Example

Expand Down
29 changes: 29 additions & 0 deletions docs/awsmarketplace/StripeCustomer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# StripeCustomer


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**customer_id** | **str** | stripe Customer ID |
**subscription_schedule_id** | **str** | stripe Subscription Schedule ID |

## Example

```python
from saasus_sdk_python.src.auth.models.stripe_customer import StripeCustomer

# TODO update the JSON string below
json = "{}"
# create an instance of StripeCustomer from a JSON string
stripe_customer_instance = StripeCustomer.from_json(json)
# print the JSON string representation of the object
print StripeCustomer.to_json()

# convert the object into a dict
stripe_customer_dict = stripe_customer_instance.to_dict()
# create an instance of StripeCustomer from a dict
stripe_customer_form_dict = stripe_customer.from_dict(stripe_customer_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


Loading