Skip to content

Commit 954054e

Browse files
committed
Update python SDK from OpenAPI Generator
1 parent e4beca3 commit 954054e

23 files changed

+1279
-9
lines changed

.openapi-generator/FILES

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ docs/HelloAssoApiV5ModelsOrganizationLegalInformationsUpdateOrganizationLegalInf
6464
docs/HelloAssoApiV5ModelsOrganizationOrganizationBasicModel.md
6565
docs/HelloAssoApiV5ModelsOrganizationOrganizationLightModel.md
6666
docs/HelloAssoApiV5ModelsOrganizationOrganizationModel.md
67+
docs/HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationKey.md
68+
docs/HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.md
69+
docs/HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest.md
6770
docs/HelloAssoApiV5ModelsPartnerStatisticsModel.md
6871
docs/HelloAssoApiV5ModelsPartnersPartnerPublicModel.md
6972
docs/HelloAssoApiV5ModelsPaymentPublicPaymentModel.md
@@ -99,6 +102,7 @@ docs/HelloAssoModelsPaymentsCashInFiscalReceiptFiscalReceiptFormatOption.md
99102
docs/HelloAssoModelsSharedGeoLocation.md
100103
docs/ListeDeValeursApi.md
101104
docs/OrganisationApi.md
105+
docs/OrganizationPublicConfigurationsApi.md
102106
docs/PaiementsApi.md
103107
docs/PartenairesApi.md
104108
docs/ResultsWithPaginationModelFormLightModel.md
@@ -121,6 +125,7 @@ helloasso_python/api/commandes_api.py
121125
helloasso_python/api/formulaires_api.py
122126
helloasso_python/api/liste_de_valeurs_api.py
123127
helloasso_python/api/organisation_api.py
128+
helloasso_python/api/organization_public_configurations_api.py
124129
helloasso_python/api/paiements_api.py
125130
helloasso_python/api/partenaires_api.py
126131
helloasso_python/api/reus_fiscaux_api.py
@@ -190,6 +195,9 @@ helloasso_python/models/hello_asso_api_v5_models_organization_legal_informations
190195
helloasso_python/models/hello_asso_api_v5_models_organization_organization_basic_model.py
191196
helloasso_python/models/hello_asso_api_v5_models_organization_organization_light_model.py
192197
helloasso_python/models/hello_asso_api_v5_models_organization_organization_model.py
198+
helloasso_python/models/hello_asso_api_v5_models_organizations_organization_public_configuration_key.py
199+
helloasso_python/models/hello_asso_api_v5_models_organizations_organization_public_configuration_model.py
200+
helloasso_python/models/hello_asso_api_v5_models_organizations_organization_public_configurations_request.py
193201
helloasso_python/models/hello_asso_api_v5_models_partner_statistics_model.py
194202
helloasso_python/models/hello_asso_api_v5_models_partners_partner_public_model.py
195203
helloasso_python/models/hello_asso_api_v5_models_payment_public_payment_model.py
@@ -239,6 +247,8 @@ setup.cfg
239247
setup.py
240248
test-requirements.txt
241249
test/__init__.py
242-
test/test_hello_asso_api_v5_models_forms_custom_field_public_model.py
243-
test/test_hello_asso_api_v5_models_forms_extra_option_public_model.py
250+
test/test_hello_asso_api_v5_models_organizations_organization_public_configuration_key.py
251+
test/test_hello_asso_api_v5_models_organizations_organization_public_configuration_model.py
252+
test/test_hello_asso_api_v5_models_organizations_organization_public_configurations_request.py
253+
test/test_organization_public_configurations_api.py
244254
tox.ini
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationKey
2+
3+
4+
## Enum
5+
6+
* `DONATIONSEPAENABLED` (value: `'DonationSepaEnabled'`)
7+
8+
* `ADHESIONSEPAENABLED` (value: `'AdhesionSepaEnabled'`)
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**name** | [**HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationKey**](HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationKey.md) | | [optional]
9+
**value** | **object** | | [optional]
10+
11+
## Example
12+
13+
```python
14+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configuration_model import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel
15+
16+
# TODO update the JSON string below
17+
json = "{}"
18+
# create an instance of HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel from a JSON string
19+
hello_asso_api_v5_models_organizations_organization_public_configuration_model_instance = HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.from_json(json)
20+
# print the JSON string representation of the object
21+
print(HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.to_json())
22+
23+
# convert the object into a dict
24+
hello_asso_api_v5_models_organizations_organization_public_configuration_model_dict = hello_asso_api_v5_models_organizations_organization_public_configuration_model_instance.to_dict()
25+
# create an instance of HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel from a dict
26+
hello_asso_api_v5_models_organizations_organization_public_configuration_model_from_dict = HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.from_dict(hello_asso_api_v5_models_organizations_organization_public_configuration_model_dict)
27+
```
28+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
29+
30+
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest
2+
3+
4+
## Properties
5+
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**configurations** | [**List[HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel]**](HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.md) | | [optional]
9+
10+
## Example
11+
12+
```python
13+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configurations_request import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest
14+
15+
# TODO update the JSON string below
16+
json = "{}"
17+
# create an instance of HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest from a JSON string
18+
hello_asso_api_v5_models_organizations_organization_public_configurations_request_instance = HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest.from_json(json)
19+
# print the JSON string representation of the object
20+
print(HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest.to_json())
21+
22+
# convert the object into a dict
23+
hello_asso_api_v5_models_organizations_organization_public_configurations_request_dict = hello_asso_api_v5_models_organizations_organization_public_configurations_request_instance.to_dict()
24+
# create an instance of HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest from a dict
25+
hello_asso_api_v5_models_organizations_organization_public_configurations_request_from_dict = HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest.from_dict(hello_asso_api_v5_models_organizations_organization_public_configurations_request_dict)
26+
```
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
29+

docs/HelloAssoApiV5ModelsStatisticsOrder.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**organization_is_under_coluche_law** | **bool** | Whether or not the organization is subject to the coluche law | [optional]
2020
**checkout_intent_id** | **int** | Checkout intent Id if available | [optional]
2121
**meta** | [**HelloAssoApiV5ModelsCommonMetaModel**](HelloAssoApiV5ModelsCommonMetaModel.md) | | [optional]
22+
**place** | [**HelloAssoApiV5ModelsCommonPlaceModel**](HelloAssoApiV5ModelsCommonPlaceModel.md) | | [optional]
2223

2324
## Example
2425

docs/HelloAssoApiV5ModelsStatisticsOrderDetail.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Name | Type | Description | Notes
1919
**organization_is_under_coluche_law** | **bool** | Whether or not the organization is subject to the coluche law | [optional]
2020
**checkout_intent_id** | **int** | Checkout intent Id if available | [optional]
2121
**meta** | [**HelloAssoApiV5ModelsCommonMetaModel**](HelloAssoApiV5ModelsCommonMetaModel.md) | | [optional]
22+
**place** | [**HelloAssoApiV5ModelsCommonPlaceModel**](HelloAssoApiV5ModelsCommonPlaceModel.md) | | [optional]
2223

2324
## Example
2425

docs/HelloAssoApiV5ModelsStatisticsOrderLight.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**organization_is_under_coluche_law** | **bool** | Whether or not the organization is subject to the coluche law | [optional]
1616
**checkout_intent_id** | **int** | Checkout intent Id if available | [optional]
1717
**meta** | [**HelloAssoApiV5ModelsCommonMetaModel**](HelloAssoApiV5ModelsCommonMetaModel.md) | | [optional]
18+
**place** | [**HelloAssoApiV5ModelsCommonPlaceModel**](HelloAssoApiV5ModelsCommonPlaceModel.md) | | [optional]
1819

1920
## Example
2021

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# helloasso_python.OrganizationPublicConfigurationsApi
2+
3+
All URIs are relative to *https://api.helloasso.com/v5*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**organizations_organization_slug_configurations_get**](OrganizationPublicConfigurationsApi.md#organizations_organization_slug_configurations_get) | **GET** /organizations/{organizationSlug}/configurations |
8+
[**organizations_organization_slug_configurations_put**](OrganizationPublicConfigurationsApi.md#organizations_organization_slug_configurations_put) | **PUT** /organizations/{organizationSlug}/configurations |
9+
10+
11+
# **organizations_organization_slug_configurations_get**
12+
> List[HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel] organizations_organization_slug_configurations_get(organization_slug)
13+
14+
<br/><br/><b>Your token must have one of these roles : </b><br/>OrganizationAdmin<br/><br/>If you are an <b>association</b>, you can obtain these roles with your client.<br/>If you are a <b>partner</b>, you can obtain these roles by the authorize flow.<br/><br/><b>Your clientId must be allowed all of those privileges : </b> <br/> OrganizationAdministration<br/><br/>
15+
16+
### Example
17+
18+
19+
```python
20+
import helloasso_python
21+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configuration_model import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel
22+
from helloasso_python.rest import ApiException
23+
from pprint import pprint
24+
25+
# Defining the host is optional and defaults to https://api.helloasso.com/v5
26+
# See configuration.py for a list of all supported configuration parameters.
27+
configuration = helloasso_python.Configuration(
28+
host = "https://api.helloasso.com/v5"
29+
)
30+
31+
32+
# Enter a context with an instance of the API client
33+
with helloasso_python.ApiClient(configuration) as api_client:
34+
# Create an instance of the API class
35+
api_instance = helloasso_python.OrganizationPublicConfigurationsApi(api_client)
36+
organization_slug = 'organization_slug_example' # str |
37+
38+
try:
39+
api_response = api_instance.organizations_organization_slug_configurations_get(organization_slug)
40+
print("The response of OrganizationPublicConfigurationsApi->organizations_organization_slug_configurations_get:\n")
41+
pprint(api_response)
42+
except Exception as e:
43+
print("Exception when calling OrganizationPublicConfigurationsApi->organizations_organization_slug_configurations_get: %s\n" % e)
44+
```
45+
46+
47+
48+
### Parameters
49+
50+
51+
Name | Type | Description | Notes
52+
------------- | ------------- | ------------- | -------------
53+
**organization_slug** | **str**| |
54+
55+
### Return type
56+
57+
[**List[HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel]**](HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel.md)
58+
59+
### Authorization
60+
61+
No authorization required
62+
63+
### HTTP request headers
64+
65+
- **Content-Type**: Not defined
66+
- **Accept**: text/plain, application/json, text/json
67+
68+
### HTTP response details
69+
70+
| Status code | Description | Response headers |
71+
|-------------|-------------|------------------|
72+
**200** | Success | - |
73+
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : &#x60;Bearer TOKEN&#x60; | - |
74+
**403** | The JWT token hasn&#39;t the privileges or Roles for this action | - |
75+
76+
[[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)
77+
78+
# **organizations_organization_slug_configurations_put**
79+
> organizations_organization_slug_configurations_put(organization_slug, hello_asso_api_v5_models_organizations_organization_public_configurations_request=hello_asso_api_v5_models_organizations_organization_public_configurations_request)
80+
81+
<br/><br/><b>Your token must have one of these roles : </b><br/>OrganizationAdmin<br/><br/>If you are an <b>association</b>, you can obtain these roles with your client.<br/>If you are a <b>partner</b>, you can obtain these roles by the authorize flow.<br/><br/><b>Your clientId must be allowed all of those privileges : </b> <br/> OrganizationAdministration<br/><br/>
82+
83+
### Example
84+
85+
86+
```python
87+
import helloasso_python
88+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configurations_request import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest
89+
from helloasso_python.rest import ApiException
90+
from pprint import pprint
91+
92+
# Defining the host is optional and defaults to https://api.helloasso.com/v5
93+
# See configuration.py for a list of all supported configuration parameters.
94+
configuration = helloasso_python.Configuration(
95+
host = "https://api.helloasso.com/v5"
96+
)
97+
98+
99+
# Enter a context with an instance of the API client
100+
with helloasso_python.ApiClient(configuration) as api_client:
101+
# Create an instance of the API class
102+
api_instance = helloasso_python.OrganizationPublicConfigurationsApi(api_client)
103+
organization_slug = 'organization_slug_example' # str |
104+
hello_asso_api_v5_models_organizations_organization_public_configurations_request = helloasso_python.HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest() # HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest | (optional)
105+
106+
try:
107+
api_instance.organizations_organization_slug_configurations_put(organization_slug, hello_asso_api_v5_models_organizations_organization_public_configurations_request=hello_asso_api_v5_models_organizations_organization_public_configurations_request)
108+
except Exception as e:
109+
print("Exception when calling OrganizationPublicConfigurationsApi->organizations_organization_slug_configurations_put: %s\n" % e)
110+
```
111+
112+
113+
114+
### Parameters
115+
116+
117+
Name | Type | Description | Notes
118+
------------- | ------------- | ------------- | -------------
119+
**organization_slug** | **str**| |
120+
**hello_asso_api_v5_models_organizations_organization_public_configurations_request** | [**HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest**](HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest.md)| | [optional]
121+
122+
### Return type
123+
124+
void (empty response body)
125+
126+
### Authorization
127+
128+
No authorization required
129+
130+
### HTTP request headers
131+
132+
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
133+
- **Accept**: Not defined
134+
135+
### HTTP response details
136+
137+
| Status code | Description | Response headers |
138+
|-------------|-------------|------------------|
139+
**204** | No Content | - |
140+
**400** | Bad Request | - |
141+
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : &#x60;Bearer TOKEN&#x60; | - |
142+
**403** | The JWT token hasn&#39;t the privileges or Roles for this action | - |
143+
144+
[[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)
145+

helloasso_python/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from helloasso_python.api.formulaires_api import FormulairesApi
2424
from helloasso_python.api.liste_de_valeurs_api import ListeDeValeursApi
2525
from helloasso_python.api.organisation_api import OrganisationApi
26+
from helloasso_python.api.organization_public_configurations_api import OrganizationPublicConfigurationsApi
2627
from helloasso_python.api.paiements_api import PaiementsApi
2728
from helloasso_python.api.partenaires_api import PartenairesApi
2829
from helloasso_python.api.reus_fiscaux_api import ReusFiscauxApi
@@ -100,6 +101,9 @@
100101
from helloasso_python.models.hello_asso_api_v5_models_organization_organization_basic_model import HelloAssoApiV5ModelsOrganizationOrganizationBasicModel
101102
from helloasso_python.models.hello_asso_api_v5_models_organization_organization_light_model import HelloAssoApiV5ModelsOrganizationOrganizationLightModel
102103
from helloasso_python.models.hello_asso_api_v5_models_organization_organization_model import HelloAssoApiV5ModelsOrganizationOrganizationModel
104+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configuration_key import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationKey
105+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configuration_model import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationModel
106+
from helloasso_python.models.hello_asso_api_v5_models_organizations_organization_public_configurations_request import HelloAssoApiV5ModelsOrganizationsOrganizationPublicConfigurationsRequest
103107
from helloasso_python.models.hello_asso_api_v5_models_partner_statistics_model import HelloAssoApiV5ModelsPartnerStatisticsModel
104108
from helloasso_python.models.hello_asso_api_v5_models_partners_partner_public_model import HelloAssoApiV5ModelsPartnersPartnerPublicModel
105109
from helloasso_python.models.hello_asso_api_v5_models_payment_public_payment_model import HelloAssoApiV5ModelsPaymentPublicPaymentModel

helloasso_python/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from helloasso_python.api.formulaires_api import FormulairesApi
88
from helloasso_python.api.liste_de_valeurs_api import ListeDeValeursApi
99
from helloasso_python.api.organisation_api import OrganisationApi
10+
from helloasso_python.api.organization_public_configurations_api import OrganizationPublicConfigurationsApi
1011
from helloasso_python.api.paiements_api import PaiementsApi
1112
from helloasso_python.api.partenaires_api import PartenairesApi
1213
from helloasso_python.api.reus_fiscaux_api import ReusFiscauxApi

0 commit comments

Comments
 (0)