Skip to content

Commit c674317

Browse files
committed
Update python SDK from OpenAPI Generator
1 parent 2384a66 commit c674317

34 files changed

Lines changed: 512 additions & 747 deletions

.openapi-generator/FILES

Lines changed: 3 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ docs/HelloAssoApiV5CommonModelsApiNotificationsApiUrlNotificationModel.md
1515
docs/HelloAssoApiV5CommonModelsApiNotificationsPostApiUrlNotificationBody.md
1616
docs/HelloAssoApiV5CommonModelsCartsCheckoutIntentResponse.md
1717
docs/HelloAssoApiV5CommonModelsCartsCheckoutPayer.md
18+
docs/HelloAssoApiV5CommonModelsCartsCheckoutPaymentOptions.md
1819
docs/HelloAssoApiV5CommonModelsCartsCheckoutTerm.md
1920
docs/HelloAssoApiV5CommonModelsCartsInitCheckoutBody.md
2021
docs/HelloAssoApiV5CommonModelsCartsInitCheckoutResponse.md
@@ -136,6 +137,7 @@ helloasso_python/models/hello_asso_api_v5_common_models_api_notifications_api_ur
136137
helloasso_python/models/hello_asso_api_v5_common_models_api_notifications_post_api_url_notification_body.py
137138
helloasso_python/models/hello_asso_api_v5_common_models_carts_checkout_intent_response.py
138139
helloasso_python/models/hello_asso_api_v5_common_models_carts_checkout_payer.py
140+
helloasso_python/models/hello_asso_api_v5_common_models_carts_checkout_payment_options.py
139141
helloasso_python/models/hello_asso_api_v5_common_models_carts_checkout_term.py
140142
helloasso_python/models/hello_asso_api_v5_common_models_carts_init_checkout_body.py
141143
helloasso_python/models/hello_asso_api_v5_common_models_carts_init_checkout_response.py
@@ -229,90 +231,5 @@ setup.cfg
229231
setup.py
230232
test-requirements.txt
231233
test/__init__.py
232-
test/test_forms_api.py
233-
test/test_hello_asso_api_v5_common_models_accounts_clients_api_client_model.py
234-
test/test_hello_asso_api_v5_common_models_accounts_clients_public_put_api_client_request.py
235-
test/test_hello_asso_api_v5_common_models_accounts_company_legal_status_model.py
236-
test/test_hello_asso_api_v5_common_models_accounts_organism_category_model.py
237-
test/test_hello_asso_api_v5_common_models_api_notifications_api_notification_type.py
238-
test/test_hello_asso_api_v5_common_models_api_notifications_api_url_notification_model.py
239-
test/test_hello_asso_api_v5_common_models_api_notifications_post_api_url_notification_body.py
240-
test/test_hello_asso_api_v5_common_models_carts_checkout_intent_response.py
241-
test/test_hello_asso_api_v5_common_models_carts_checkout_payer.py
242-
test/test_hello_asso_api_v5_common_models_carts_checkout_term.py
243-
test/test_hello_asso_api_v5_common_models_carts_init_checkout_body.py
244-
test/test_hello_asso_api_v5_common_models_carts_init_checkout_response.py
245-
test/test_hello_asso_api_v5_common_models_common_contact_model.py
246-
test/test_hello_asso_api_v5_common_models_common_document_model.py
247-
test/test_hello_asso_api_v5_common_models_common_meta_model.py
248-
test/test_hello_asso_api_v5_common_models_common_pagination_model.py
249-
test/test_hello_asso_api_v5_common_models_common_place_model.py
250-
test/test_hello_asso_api_v5_common_models_compliance_v2_documents_document_state.py
251-
test/test_hello_asso_api_v5_common_models_directory_directory_organization_public_model.py
252-
test/test_hello_asso_api_v5_common_models_directory_list_forms_request.py
253-
test/test_hello_asso_api_v5_common_models_directory_list_organizations_request.py
254-
test/test_hello_asso_api_v5_common_models_directory_partner_organization_model.py
255-
test/test_hello_asso_api_v5_common_models_directory_synchronizable_form_model.py
256-
test/test_hello_asso_api_v5_common_models_directory_synchronizable_organization_model.py
257-
test/test_hello_asso_api_v5_common_models_enums_field_type.py
258-
test/test_hello_asso_api_v5_common_models_enums_form_state.py
259-
test/test_hello_asso_api_v5_common_models_enums_form_type.py
260-
test/test_hello_asso_api_v5_common_models_enums_item_state.py
261-
test/test_hello_asso_api_v5_common_models_enums_membership_validity_type.py
262-
test/test_hello_asso_api_v5_common_models_enums_operation_state.py
263-
test/test_hello_asso_api_v5_common_models_enums_organization_type.py
264-
test/test_hello_asso_api_v5_common_models_enums_payment_cash_out_state.py
265-
test/test_hello_asso_api_v5_common_models_enums_payment_frequency_type.py
266-
test/test_hello_asso_api_v5_common_models_enums_payment_means.py
267-
test/test_hello_asso_api_v5_common_models_enums_payment_provider_type.py
268-
test/test_hello_asso_api_v5_common_models_enums_payment_state.py
269-
test/test_hello_asso_api_v5_common_models_enums_payment_type.py
270-
test/test_hello_asso_api_v5_common_models_enums_price_category.py
271-
test/test_hello_asso_api_v5_common_models_enums_record_action_type.py
272-
test/test_hello_asso_api_v5_common_models_enums_sort_field.py
273-
test/test_hello_asso_api_v5_common_models_enums_sort_order.py
274-
test/test_hello_asso_api_v5_common_models_enums_tag_type.py
275-
test/test_hello_asso_api_v5_common_models_enums_tier_type.py
276-
test/test_hello_asso_api_v5_common_models_forms_custom_field_public_model.py
277-
test/test_hello_asso_api_v5_common_models_forms_extra_option_public_model.py
278-
test/test_hello_asso_api_v5_common_models_forms_form_basic_model.py
279-
test/test_hello_asso_api_v5_common_models_forms_form_light_model.py
280-
test/test_hello_asso_api_v5_common_models_forms_form_public_model.py
281-
test/test_hello_asso_api_v5_common_models_forms_form_quick_create_model.py
282-
test/test_hello_asso_api_v5_common_models_forms_form_quick_create_request.py
283-
test/test_hello_asso_api_v5_common_models_forms_form_state_request.py
284-
test/test_hello_asso_api_v5_common_models_forms_term_model.py
285-
test/test_hello_asso_api_v5_common_models_forms_tier_light_model.py
286-
test/test_hello_asso_api_v5_common_models_forms_tier_public_model.py
287-
test/test_hello_asso_api_v5_common_models_organization_organization_basic_model.py
288-
test/test_hello_asso_api_v5_common_models_organization_organization_light_model.py
289-
test/test_hello_asso_api_v5_common_models_organization_organization_model.py
290-
test/test_hello_asso_api_v5_common_models_partners_partner_public_model.py
291-
test/test_hello_asso_api_v5_common_models_payment_cashout_export_cashout_export_payment_operation.py
292-
test/test_hello_asso_api_v5_common_models_payment_cashout_export_cashout_export_payment_status.py
293-
test/test_hello_asso_api_v5_common_models_payment_cashout_export_cashout_export_row_model.py
294-
test/test_hello_asso_api_v5_common_models_payment_refund_operation_model.py
295-
test/test_hello_asso_api_v5_common_models_statistics_item.py
296-
test/test_hello_asso_api_v5_common_models_statistics_item_custom_field.py
297-
test/test_hello_asso_api_v5_common_models_statistics_item_detail.py
298-
test/test_hello_asso_api_v5_common_models_statistics_item_discount.py
299-
test/test_hello_asso_api_v5_common_models_statistics_item_option.py
300-
test/test_hello_asso_api_v5_common_models_statistics_item_payment.py
301-
test/test_hello_asso_api_v5_common_models_statistics_order.py
302-
test/test_hello_asso_api_v5_common_models_statistics_order_amount_model.py
303-
test/test_hello_asso_api_v5_common_models_statistics_order_detail.py
304-
test/test_hello_asso_api_v5_common_models_statistics_order_item.py
305-
test/test_hello_asso_api_v5_common_models_statistics_order_light.py
306-
test/test_hello_asso_api_v5_common_models_statistics_order_payment.py
307-
test/test_hello_asso_api_v5_common_models_statistics_payer.py
308-
test/test_hello_asso_api_v5_common_models_statistics_payment.py
309-
test/test_hello_asso_api_v5_common_models_statistics_payment_detail.py
310-
test/test_hello_asso_api_v5_common_models_statistics_payment_item.py
311-
test/test_hello_asso_api_v5_common_models_statistics_refund_operation_light_model.py
312-
test/test_hello_asso_api_v5_common_models_statistics_share_item.py
313-
test/test_hello_asso_api_v5_common_models_statistics_share_payment.py
314-
test/test_hello_asso_api_v5_common_models_statistics_user.py
315-
test/test_hello_asso_api_v5_common_models_tags_internal_tag_model.py
316-
test/test_hello_asso_api_v5_common_models_tags_public_tag_model.py
317-
test/test_versements_api.py
234+
test/test_hello_asso_api_v5_common_models_carts_checkout_payment_options.py
318235
tox.ini

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.16.0
1+
7.17.0

docs/AnnuaireApi.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **directory_forms_post**
12-
> ResultsWithPaginationModelSynchronizableFormModel directory_forms_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_forms_request=hello_asso_api_v5_common_models_directory_list_forms_request)
12+
> directory_forms_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_forms_request=hello_asso_api_v5_common_models_directory_list_forms_request)
1313
1414
Récupérer les formulaires
1515

@@ -22,7 +22,6 @@ Permet de récupérer une liste de tous les formulaires visibles correspondant
2222
```python
2323
import helloasso_python
2424
from helloasso_python.models.hello_asso_api_v5_common_models_directory_list_forms_request import HelloAssoApiV5CommonModelsDirectoryListFormsRequest
25-
from helloasso_python.models.results_with_pagination_model_synchronizable_form_model import ResultsWithPaginationModelSynchronizableFormModel
2625
from helloasso_python.rest import ApiException
2726
from pprint import pprint
2827

@@ -49,9 +48,7 @@ with helloasso_python.ApiClient(configuration) as api_client:
4948

5049
try:
5150
# Récupérer les formulaires
52-
api_response = api_instance.directory_forms_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_forms_request=hello_asso_api_v5_common_models_directory_list_forms_request)
53-
print("The response of AnnuaireApi->directory_forms_post:\n")
54-
pprint(api_response)
51+
api_instance.directory_forms_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_forms_request=hello_asso_api_v5_common_models_directory_list_forms_request)
5552
except Exception as e:
5653
print("Exception when calling AnnuaireApi->directory_forms_post: %s\n" % e)
5754
```
@@ -69,7 +66,7 @@ Name | Type | Description | Notes
6966

7067
### Return type
7168

72-
[**ResultsWithPaginationModelSynchronizableFormModel**](ResultsWithPaginationModelSynchronizableFormModel.md)
69+
void (empty response body)
7370

7471
### Authorization
7572

@@ -78,20 +75,20 @@ Name | Type | Description | Notes
7875
### HTTP request headers
7976

8077
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
81-
- **Accept**: text/plain, application/json, text/json
78+
- **Accept**: Not defined
8279

8380
### HTTP response details
8481

8582
| Status code | Description | Response headers |
8683
|-------------|-------------|------------------|
87-
**200** | Success | - |
84+
**200** | Get Form List | - |
8885
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : `Bearer TOKEN` | - |
8986
**403** | The JWT token hasn't the privileges or Roles for this action | - |
9087

9188
[[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)
9289

9390
# **directory_organizations_post**
94-
> ResultsWithPaginationModelSynchronizableOrganizationModel directory_organizations_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_organizations_request=hello_asso_api_v5_common_models_directory_list_organizations_request)
91+
> directory_organizations_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_organizations_request=hello_asso_api_v5_common_models_directory_list_organizations_request)
9592
9693
Récupérer les organisations
9794

@@ -104,7 +101,6 @@ Permet de récupérer une liste de toutes les organisations visibles corresponda
104101
```python
105102
import helloasso_python
106103
from helloasso_python.models.hello_asso_api_v5_common_models_directory_list_organizations_request import HelloAssoApiV5CommonModelsDirectoryListOrganizationsRequest
107-
from helloasso_python.models.results_with_pagination_model_synchronizable_organization_model import ResultsWithPaginationModelSynchronizableOrganizationModel
108104
from helloasso_python.rest import ApiException
109105
from pprint import pprint
110106

@@ -131,9 +127,7 @@ with helloasso_python.ApiClient(configuration) as api_client:
131127

132128
try:
133129
# Récupérer les organisations
134-
api_response = api_instance.directory_organizations_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_organizations_request=hello_asso_api_v5_common_models_directory_list_organizations_request)
135-
print("The response of AnnuaireApi->directory_organizations_post:\n")
136-
pprint(api_response)
130+
api_instance.directory_organizations_post(page_size=page_size, continuation_token=continuation_token, hello_asso_api_v5_common_models_directory_list_organizations_request=hello_asso_api_v5_common_models_directory_list_organizations_request)
137131
except Exception as e:
138132
print("Exception when calling AnnuaireApi->directory_organizations_post: %s\n" % e)
139133
```
@@ -151,7 +145,7 @@ Name | Type | Description | Notes
151145

152146
### Return type
153147

154-
[**ResultsWithPaginationModelSynchronizableOrganizationModel**](ResultsWithPaginationModelSynchronizableOrganizationModel.md)
148+
void (empty response body)
155149

156150
### Authorization
157151

@@ -160,13 +154,13 @@ Name | Type | Description | Notes
160154
### HTTP request headers
161155

162156
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
163-
- **Accept**: text/plain, application/json, text/json
157+
- **Accept**: Not defined
164158

165159
### HTTP response details
166160

167161
| Status code | Description | Response headers |
168162
|-------------|-------------|------------------|
169-
**200** | Success | - |
163+
**200** | Get Organization List | - |
170164
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : `Bearer TOKEN` | - |
171165
**403** | The JWT token hasn't the privileges or Roles for this action | - |
172166

docs/CheckoutApi.md

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **organizations_organization_slug_checkout_intents_checkout_intent_id_get**
12-
> HelloAssoApiV5CommonModelsCartsCheckoutIntentResponse organizations_organization_slug_checkout_intents_checkout_intent_id_get(organization_slug, checkout_intent_id, with_failed_refund_operation=with_failed_refund_operation)
12+
> organizations_organization_slug_checkout_intents_checkout_intent_id_get(organization_slug, checkout_intent_id, with_failed_refund_operation=with_failed_refund_operation)
1313
1414
Récupérer une intention de paiement
1515

@@ -21,7 +21,6 @@ Retourne aussi la commande associée. Uniquement dans le cas ou le paiement est
2121

2222
```python
2323
import helloasso_python
24-
from helloasso_python.models.hello_asso_api_v5_common_models_carts_checkout_intent_response import HelloAssoApiV5CommonModelsCartsCheckoutIntentResponse
2524
from helloasso_python.rest import ApiException
2625
from pprint import pprint
2726

@@ -48,9 +47,7 @@ with helloasso_python.ApiClient(configuration) as api_client:
4847

4948
try:
5049
# Récupérer une intention de paiement
51-
api_response = api_instance.organizations_organization_slug_checkout_intents_checkout_intent_id_get(organization_slug, checkout_intent_id, with_failed_refund_operation=with_failed_refund_operation)
52-
print("The response of CheckoutApi->organizations_organization_slug_checkout_intents_checkout_intent_id_get:\n")
53-
pprint(api_response)
50+
api_instance.organizations_organization_slug_checkout_intents_checkout_intent_id_get(organization_slug, checkout_intent_id, with_failed_refund_operation=with_failed_refund_operation)
5451
except Exception as e:
5552
print("Exception when calling CheckoutApi->organizations_organization_slug_checkout_intents_checkout_intent_id_get: %s\n" % e)
5653
```
@@ -68,7 +65,7 @@ Name | Type | Description | Notes
6865

6966
### Return type
7067

71-
[**HelloAssoApiV5CommonModelsCartsCheckoutIntentResponse**](HelloAssoApiV5CommonModelsCartsCheckoutIntentResponse.md)
68+
void (empty response body)
7269

7370
### Authorization
7471

@@ -77,20 +74,20 @@ Name | Type | Description | Notes
7774
### HTTP request headers
7875

7976
- **Content-Type**: Not defined
80-
- **Accept**: text/plain, application/json, text/json
77+
- **Accept**: Not defined
8178

8279
### HTTP response details
8380

8481
| Status code | Description | Response headers |
8582
|-------------|-------------|------------------|
86-
**200** | Success | - |
83+
**200** | Checkout intent found | - |
8784
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : `Bearer TOKEN` | - |
8885
**403** | The JWT token hasn't the privileges or Roles for this action | - |
8986

9087
[[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)
9188

9289
# **organizations_organization_slug_checkout_intents_post**
93-
> HelloAssoApiV5CommonModelsCartsInitCheckoutResponse organizations_organization_slug_checkout_intents_post(organization_slug, hello_asso_api_v5_common_models_carts_init_checkout_body=hello_asso_api_v5_common_models_carts_init_checkout_body)
90+
> organizations_organization_slug_checkout_intents_post(organization_slug, hello_asso_api_v5_common_models_carts_init_checkout_body=hello_asso_api_v5_common_models_carts_init_checkout_body)
9491
9592
Initialisation d'un Checkout
9693

@@ -103,7 +100,6 @@ Pour tout savoir sur Checkout consultez d'abord notre <a href="https://dev.hello
103100
```python
104101
import helloasso_python
105102
from helloasso_python.models.hello_asso_api_v5_common_models_carts_init_checkout_body import HelloAssoApiV5CommonModelsCartsInitCheckoutBody
106-
from helloasso_python.models.hello_asso_api_v5_common_models_carts_init_checkout_response import HelloAssoApiV5CommonModelsCartsInitCheckoutResponse
107103
from helloasso_python.rest import ApiException
108104
from pprint import pprint
109105

@@ -129,9 +125,7 @@ with helloasso_python.ApiClient(configuration) as api_client:
129125

130126
try:
131127
# Initialisation d'un Checkout
132-
api_response = api_instance.organizations_organization_slug_checkout_intents_post(organization_slug, hello_asso_api_v5_common_models_carts_init_checkout_body=hello_asso_api_v5_common_models_carts_init_checkout_body)
133-
print("The response of CheckoutApi->organizations_organization_slug_checkout_intents_post:\n")
134-
pprint(api_response)
128+
api_instance.organizations_organization_slug_checkout_intents_post(organization_slug, hello_asso_api_v5_common_models_carts_init_checkout_body=hello_asso_api_v5_common_models_carts_init_checkout_body)
135129
except Exception as e:
136130
print("Exception when calling CheckoutApi->organizations_organization_slug_checkout_intents_post: %s\n" % e)
137131
```
@@ -148,7 +142,7 @@ Name | Type | Description | Notes
148142

149143
### Return type
150144

151-
[**HelloAssoApiV5CommonModelsCartsInitCheckoutResponse**](HelloAssoApiV5CommonModelsCartsInitCheckoutResponse.md)
145+
void (empty response body)
152146

153147
### Authorization
154148

@@ -157,13 +151,13 @@ Name | Type | Description | Notes
157151
### HTTP request headers
158152

159153
- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
160-
- **Accept**: text/plain, application/json, text/json
154+
- **Accept**: Not defined
161155

162156
### HTTP response details
163157

164158
| Status code | Description | Response headers |
165159
|-------------|-------------|------------------|
166-
**200** | Success | - |
160+
**200** | Checkout intent initiated successfully | - |
167161
**401** | Unauthorized, you must add a valid JWT into Authorization Header with the format : &#x60;Bearer TOKEN&#x60; | - |
168162
**403** | The JWT token hasn&#39;t the privileges or Roles for this action | - |
169163

0 commit comments

Comments
 (0)