agilicus 1.256.8__py3-none-any.whl → 1.256.10__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. agilicus/.openapi-generator/FILES +9 -0
  2. agilicus/agilicus_api/__init__.py +3 -0
  3. agilicus/agilicus_api/api/billing_api.py +146 -0
  4. agilicus/agilicus_api/api/billing_api_mock.py +7 -0
  5. agilicus/agilicus_api/api/organisations_api.py +130 -0
  6. agilicus/agilicus_api/api/organisations_api_mock.py +7 -0
  7. agilicus/agilicus_api/api_client.py +1 -1
  8. agilicus/agilicus_api/configuration.py +1 -1
  9. agilicus/agilicus_api/docs/BillingApi.md +92 -0
  10. agilicus/agilicus_api/docs/BillingCheckoutSession.md +14 -0
  11. agilicus/agilicus_api/docs/CreateBillingCheckoutSession.md +16 -0
  12. agilicus/agilicus_api/docs/ListBillingCheckoutSessions.md +14 -0
  13. agilicus/agilicus_api/docs/OrganisationsApi.md +94 -0
  14. agilicus/agilicus_api/model/billing_checkout_session.py +284 -0
  15. agilicus/agilicus_api/model/create_billing_checkout_session.py +305 -0
  16. agilicus/agilicus_api/model/list_billing_checkout_sessions.py +287 -0
  17. agilicus/agilicus_api/models/__init__.py +3 -0
  18. agilicus/agilicus_api/test/test_billing_api.py +7 -0
  19. agilicus/agilicus_api/test/test_billing_checkout_session.py +36 -0
  20. agilicus/agilicus_api/test/test_create_billing_checkout_session.py +36 -0
  21. agilicus/agilicus_api/test/test_list_billing_checkout_sessions.py +38 -0
  22. agilicus/agilicus_api/test/test_organisations_api.py +7 -0
  23. agilicus/agilicus_api_README.md +6 -1
  24. agilicus/billing.py +28 -0
  25. agilicus/main.py +21 -0
  26. {agilicus-1.256.8.dist-info → agilicus-1.256.10.dist-info}/METADATA +1 -1
  27. {agilicus-1.256.8.dist-info → agilicus-1.256.10.dist-info}/RECORD +30 -21
  28. {agilicus-1.256.8.dist-info → agilicus-1.256.10.dist-info}/LICENSE.txt +0 -0
  29. {agilicus-1.256.8.dist-info → agilicus-1.256.10.dist-info}/WHEEL +0 -0
  30. {agilicus-1.256.8.dist-info → agilicus-1.256.10.dist-info}/entry_points.txt +0 -0
@@ -178,6 +178,7 @@ agilicus_api/docs/BillingAccountSpec.md
178
178
  agilicus_api/docs/BillingAccountStatus.md
179
179
  agilicus_api/docs/BillingApi.md
180
180
  agilicus_api/docs/BillingBalanceTransaction.md
181
+ agilicus_api/docs/BillingCheckoutSession.md
181
182
  agilicus_api/docs/BillingCustomer.md
182
183
  agilicus_api/docs/BillingOrg.md
183
184
  agilicus_api/docs/BillingOrgSubscription.md
@@ -256,6 +257,7 @@ agilicus_api/docs/ConnectorSystemStats.md
256
257
  agilicus_api/docs/ConnectorUpstreamStatsPublish.md
257
258
  agilicus_api/docs/ConnectorsApi.md
258
259
  agilicus_api/docs/ContentTypeOptionsSettings.md
260
+ agilicus_api/docs/CreateBillingCheckoutSession.md
259
261
  agilicus_api/docs/CreateBillingUsageRecords.md
260
262
  agilicus_api/docs/CreateSessionAndTokenRequest.md
261
263
  agilicus_api/docs/CreateSessionAndTokenResponse.md
@@ -427,6 +429,7 @@ agilicus_api/docs/ListAuthAuditsResponse.md
427
429
  agilicus_api/docs/ListAuthenticationDocumentResponse.md
428
430
  agilicus_api/docs/ListBillingAccountsResponse.md
429
431
  agilicus_api/docs/ListBillingBalanceTransactions.md
432
+ agilicus_api/docs/ListBillingCheckoutSessions.md
430
433
  agilicus_api/docs/ListBillingOrgSubscriptionsResponse.md
431
434
  agilicus_api/docs/ListBillingUsageRecordsResponse.md
432
435
  agilicus_api/docs/ListCatalogueEntriesResponse.md
@@ -987,6 +990,7 @@ agilicus_api/model/billing_account.py
987
990
  agilicus_api/model/billing_account_spec.py
988
991
  agilicus_api/model/billing_account_status.py
989
992
  agilicus_api/model/billing_balance_transaction.py
993
+ agilicus_api/model/billing_checkout_session.py
990
994
  agilicus_api/model/billing_customer.py
991
995
  agilicus_api/model/billing_org.py
992
996
  agilicus_api/model/billing_org_subscription.py
@@ -1058,6 +1062,7 @@ agilicus_api/model/connector_upstream_stats_publish.py
1058
1062
  agilicus_api/model/content_type_options_settings.py
1059
1063
  agilicus_api/model/cors_origin.py
1060
1064
  agilicus_api/model/cors_settings.py
1065
+ agilicus_api/model/create_billing_checkout_session.py
1061
1066
  agilicus_api/model/create_billing_usage_records.py
1062
1067
  agilicus_api/model/create_session_and_token_request.py
1063
1068
  agilicus_api/model/create_session_and_token_response.py
@@ -1223,6 +1228,7 @@ agilicus_api/model/list_auth_audits_response.py
1223
1228
  agilicus_api/model/list_authentication_document_response.py
1224
1229
  agilicus_api/model/list_billing_accounts_response.py
1225
1230
  agilicus_api/model/list_billing_balance_transactions.py
1231
+ agilicus_api/model/list_billing_checkout_sessions.py
1226
1232
  agilicus_api/model/list_billing_org_subscriptions_response.py
1227
1233
  agilicus_api/model/list_billing_usage_records_response.py
1228
1234
  agilicus_api/model/list_catalogue_entries_response.py
@@ -1774,6 +1780,7 @@ agilicus_api/test/test_billing_account_spec.py
1774
1780
  agilicus_api/test/test_billing_account_status.py
1775
1781
  agilicus_api/test/test_billing_api.py
1776
1782
  agilicus_api/test/test_billing_balance_transaction.py
1783
+ agilicus_api/test/test_billing_checkout_session.py
1777
1784
  agilicus_api/test/test_billing_customer.py
1778
1785
  agilicus_api/test/test_billing_org.py
1779
1786
  agilicus_api/test/test_billing_org_subscription.py
@@ -1849,6 +1856,7 @@ agilicus_api/test/test_connectors_api.py
1849
1856
  agilicus_api/test/test_content_type_options_settings.py
1850
1857
  agilicus_api/test/test_cors_origin.py
1851
1858
  agilicus_api/test/test_cors_settings.py
1859
+ agilicus_api/test/test_create_billing_checkout_session.py
1852
1860
  agilicus_api/test/test_create_billing_usage_records.py
1853
1861
  agilicus_api/test/test_create_session_and_token_request.py
1854
1862
  agilicus_api/test/test_create_session_and_token_response.py
@@ -2023,6 +2031,7 @@ agilicus_api/test/test_list_auth_audits_response.py
2023
2031
  agilicus_api/test/test_list_authentication_document_response.py
2024
2032
  agilicus_api/test/test_list_billing_accounts_response.py
2025
2033
  agilicus_api/test/test_list_billing_balance_transactions.py
2034
+ agilicus_api/test/test_list_billing_checkout_sessions.py
2026
2035
  agilicus_api/test/test_list_billing_org_subscriptions_response.py
2027
2036
  agilicus_api/test/test_list_billing_usage_records_response.py
2028
2037
  agilicus_api/test/test_list_catalogue_entries_response.py
@@ -167,6 +167,7 @@ from agilicus_api.model.billing_account import BillingAccount
167
167
  from agilicus_api.model.billing_account_spec import BillingAccountSpec
168
168
  from agilicus_api.model.billing_account_status import BillingAccountStatus
169
169
  from agilicus_api.model.billing_balance_transaction import BillingBalanceTransaction
170
+ from agilicus_api.model.billing_checkout_session import BillingCheckoutSession
170
171
  from agilicus_api.model.billing_customer import BillingCustomer
171
172
  from agilicus_api.model.billing_org import BillingOrg
172
173
  from agilicus_api.model.billing_org_subscription import BillingOrgSubscription
@@ -241,6 +242,7 @@ from agilicus_api.model.connector_status import ConnectorStatus
241
242
  from agilicus_api.model.connector_system_stats import ConnectorSystemStats
242
243
  from agilicus_api.model.connector_upstream_stats_publish import ConnectorUpstreamStatsPublish
243
244
  from agilicus_api.model.content_type_options_settings import ContentTypeOptionsSettings
245
+ from agilicus_api.model.create_billing_checkout_session import CreateBillingCheckoutSession
244
246
  from agilicus_api.model.create_billing_usage_records import CreateBillingUsageRecords
245
247
  from agilicus_api.model.create_session_and_token_request import CreateSessionAndTokenRequest
246
248
  from agilicus_api.model.create_session_and_token_response import CreateSessionAndTokenResponse
@@ -403,6 +405,7 @@ from agilicus_api.model.list_auth_audits_response import ListAuthAuditsResponse
403
405
  from agilicus_api.model.list_authentication_document_response import ListAuthenticationDocumentResponse
404
406
  from agilicus_api.model.list_billing_accounts_response import ListBillingAccountsResponse
405
407
  from agilicus_api.model.list_billing_balance_transactions import ListBillingBalanceTransactions
408
+ from agilicus_api.model.list_billing_checkout_sessions import ListBillingCheckoutSessions
406
409
  from agilicus_api.model.list_billing_org_subscriptions_response import ListBillingOrgSubscriptionsResponse
407
410
  from agilicus_api.model.list_billing_usage_records_response import ListBillingUsageRecordsResponse
408
411
  from agilicus_api.model.list_catalogue_entries_response import ListCatalogueEntriesResponse
@@ -32,6 +32,7 @@ from agilicus_api.model.feature import Feature
32
32
  from agilicus_api.model.feature_key import FeatureKey
33
33
  from agilicus_api.model.list_billing_accounts_response import ListBillingAccountsResponse
34
34
  from agilicus_api.model.list_billing_balance_transactions import ListBillingBalanceTransactions
35
+ from agilicus_api.model.list_billing_checkout_sessions import ListBillingCheckoutSessions
35
36
  from agilicus_api.model.list_billing_org_subscriptions_response import ListBillingOrgSubscriptionsResponse
36
37
  from agilicus_api.model.list_billing_usage_records_response import ListBillingUsageRecordsResponse
37
38
  from agilicus_api.model.list_features_response import ListFeaturesResponse
@@ -3018,6 +3019,150 @@ class BillingApi(object):
3018
3019
  callable=__list_billing_accounts
3019
3020
  )
3020
3021
 
3022
+ def __list_checkout_sessions(
3023
+ self,
3024
+ billing_account_id,
3025
+ **kwargs
3026
+ ):
3027
+ """list checkout sessions # noqa: E501
3028
+
3029
+ list checkout sessions # noqa: E501
3030
+ This method makes a synchronous HTTP request by default. To make an
3031
+ asynchronous HTTP request, please pass async_req=True
3032
+
3033
+ >>> thread = api.list_checkout_sessions(billing_account_id, async_req=True)
3034
+ >>> result = thread.get()
3035
+
3036
+ Args:
3037
+ billing_account_id (str): Billing account Unique identifier
3038
+
3039
+ Keyword Args:
3040
+ org_id (str): Organisation Unique identifier. [optional]
3041
+ limit (int): limit the number of rows in the response. [optional] if omitted the server will use the default value of 500
3042
+ checkout_session_status (str): retreive checkout sessions with specified status . [optional]
3043
+ _return_http_data_only (bool): response data without head status
3044
+ code and headers. Default is True.
3045
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
3046
+ will be returned without reading/decoding response data.
3047
+ Default is True.
3048
+ _request_timeout (float/tuple): timeout setting for this request. If one
3049
+ number provided, it will be total request timeout. It can also
3050
+ be a pair (tuple) of (connection, read) timeouts.
3051
+ Default is None.
3052
+ _check_input_type (bool): specifies if type checking
3053
+ should be done one the data sent to the server.
3054
+ Default is True.
3055
+ _check_return_type (bool): specifies if type checking
3056
+ should be done one the data received from the server.
3057
+ Default is True.
3058
+ _host_index (int/None): specifies the index of the server
3059
+ that we want to use.
3060
+ Default is read from the configuration.
3061
+ async_req (bool): execute request asynchronously
3062
+
3063
+ Returns:
3064
+ ListBillingCheckoutSessions
3065
+ If the method is called asynchronously, returns the request
3066
+ thread.
3067
+ """
3068
+ kwargs['async_req'] = kwargs.get(
3069
+ 'async_req', False
3070
+ )
3071
+ kwargs['_return_http_data_only'] = kwargs.get(
3072
+ '_return_http_data_only', True
3073
+ )
3074
+ kwargs['_preload_content'] = kwargs.get(
3075
+ '_preload_content', True
3076
+ )
3077
+ kwargs['_request_timeout'] = kwargs.get(
3078
+ '_request_timeout', None
3079
+ )
3080
+ kwargs['_check_input_type'] = kwargs.get(
3081
+ '_check_input_type', True
3082
+ )
3083
+ kwargs['_check_return_type'] = kwargs.get(
3084
+ '_check_return_type', True
3085
+ )
3086
+ kwargs['_host_index'] = kwargs.get('_host_index')
3087
+ kwargs['billing_account_id'] = \
3088
+ billing_account_id
3089
+ return self.call_with_http_info(**kwargs)
3090
+
3091
+ if self.list_checkout_sessions is None:
3092
+ self.list_checkout_sessions = _Endpoint(
3093
+ settings={
3094
+ 'response_type': (ListBillingCheckoutSessions,),
3095
+ 'auth': [
3096
+ 'token-valid'
3097
+ ],
3098
+ 'endpoint_path': '/v1/billing_accounts/{billing_account_id}/checkout',
3099
+ 'operation_id': 'list_checkout_sessions',
3100
+ 'http_method': 'GET',
3101
+ 'servers': None,
3102
+ },
3103
+ params_map={
3104
+ 'all': [
3105
+ 'billing_account_id',
3106
+ 'org_id',
3107
+ 'limit',
3108
+ 'checkout_session_status',
3109
+ ],
3110
+ 'required': [
3111
+ 'billing_account_id',
3112
+ ],
3113
+ 'nullable': [
3114
+ ],
3115
+ 'enum': [
3116
+ ],
3117
+ 'validation': [
3118
+ 'limit',
3119
+ ]
3120
+ },
3121
+ root_map={
3122
+ 'validations': {
3123
+ ('limit',): {
3124
+
3125
+ 'inclusive_maximum': 500,
3126
+ 'inclusive_minimum': 1,
3127
+ },
3128
+ },
3129
+ 'allowed_values': {
3130
+ },
3131
+ 'openapi_types': {
3132
+ 'billing_account_id':
3133
+ (str,),
3134
+ 'org_id':
3135
+ (str,),
3136
+ 'limit':
3137
+ (int,),
3138
+ 'checkout_session_status':
3139
+ (str,),
3140
+ },
3141
+ 'attribute_map': {
3142
+ 'billing_account_id': 'billing_account_id',
3143
+ 'org_id': 'org_id',
3144
+ 'limit': 'limit',
3145
+ 'checkout_session_status': 'checkout_session_status',
3146
+ },
3147
+ 'location_map': {
3148
+ 'billing_account_id': 'path',
3149
+ 'org_id': 'query',
3150
+ 'limit': 'query',
3151
+ 'checkout_session_status': 'query',
3152
+ },
3153
+ 'collection_format_map': {
3154
+ }
3155
+ },
3156
+ headers_map={
3157
+ 'accept': [
3158
+ 'application/json'
3159
+ ],
3160
+ 'content_type': [],
3161
+ },
3162
+ api_client=api_client,
3163
+ callable=__list_checkout_sessions
3164
+ )
3165
+
3021
3166
  def __list_features(
3022
3167
  self,
3023
3168
  **kwargs
@@ -4525,6 +4670,7 @@ class BillingApi(object):
4525
4670
  get_subscription_balance_transactions = None
4526
4671
  get_usage_records = None
4527
4672
  list_billing_accounts = None
4673
+ list_checkout_sessions = None
4528
4674
  list_features = None
4529
4675
  list_products = None
4530
4676
  list_subscription_features = None
@@ -26,6 +26,7 @@ class BillingApiMock:
26
26
  self.mock_get_subscription_balance_transactions = MagicMock()
27
27
  self.mock_get_usage_records = MagicMock()
28
28
  self.mock_list_billing_accounts = MagicMock()
29
+ self.mock_list_checkout_sessions = MagicMock()
29
30
  self.mock_list_features = MagicMock()
30
31
  self.mock_list_products = MagicMock()
31
32
  self.mock_list_subscription_features = MagicMock()
@@ -176,6 +177,12 @@ class BillingApiMock:
176
177
  """
177
178
  return self.mock_list_billing_accounts(self, *args, **kwargs)
178
179
 
180
+ def list_checkout_sessions(self, *args, **kwargs):
181
+ """
182
+ This method mocks the original api BillingApi.list_checkout_sessions with MagicMock.
183
+ """
184
+ return self.mock_list_checkout_sessions(self, *args, **kwargs)
185
+
179
186
  def list_features(self, *args, **kwargs):
180
187
  """
181
188
  This method mocks the original api BillingApi.list_features with MagicMock.
@@ -23,7 +23,9 @@ from agilicus_api.model_utils import ( # noqa: F401
23
23
  validate_and_convert_types
24
24
  )
25
25
  from agilicus_api.model.billing_account import BillingAccount
26
+ from agilicus_api.model.billing_checkout_session import BillingCheckoutSession
26
27
  from agilicus_api.model.billing_portal_link import BillingPortalLink
28
+ from agilicus_api.model.create_billing_checkout_session import CreateBillingCheckoutSession
27
29
  from agilicus_api.model.error_message import ErrorMessage
28
30
  from agilicus_api.model.list_domains_response import ListDomainsResponse
29
31
  from agilicus_api.model.list_features_response import ListFeaturesResponse
@@ -289,6 +291,133 @@ class OrganisationsApi(object):
289
291
  callable=__create_blocking_upgrade_orgs_task
290
292
  )
291
293
 
294
+ def __create_checkout_session(
295
+ self,
296
+ org_id,
297
+ **kwargs
298
+ ):
299
+ """Create a session checkout # noqa: E501
300
+
301
+ Create a session checkout # noqa: E501
302
+ This method makes a synchronous HTTP request by default. To make an
303
+ asynchronous HTTP request, please pass async_req=True
304
+
305
+ >>> thread = api.create_checkout_session(org_id, async_req=True)
306
+ >>> result = thread.get()
307
+
308
+ Args:
309
+ org_id (str): Organisation Unique identifier
310
+
311
+ Keyword Args:
312
+ create_billing_checkout_session (CreateBillingCheckoutSession): [optional]
313
+ _return_http_data_only (bool): response data without head status
314
+ code and headers. Default is True.
315
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
316
+ will be returned without reading/decoding response data.
317
+ Default is True.
318
+ _request_timeout (float/tuple): timeout setting for this request. If one
319
+ number provided, it will be total request timeout. It can also
320
+ be a pair (tuple) of (connection, read) timeouts.
321
+ Default is None.
322
+ _check_input_type (bool): specifies if type checking
323
+ should be done one the data sent to the server.
324
+ Default is True.
325
+ _check_return_type (bool): specifies if type checking
326
+ should be done one the data received from the server.
327
+ Default is True.
328
+ _host_index (int/None): specifies the index of the server
329
+ that we want to use.
330
+ Default is read from the configuration.
331
+ async_req (bool): execute request asynchronously
332
+
333
+ Returns:
334
+ BillingCheckoutSession
335
+ If the method is called asynchronously, returns the request
336
+ thread.
337
+ """
338
+ kwargs['async_req'] = kwargs.get(
339
+ 'async_req', False
340
+ )
341
+ kwargs['_return_http_data_only'] = kwargs.get(
342
+ '_return_http_data_only', True
343
+ )
344
+ kwargs['_preload_content'] = kwargs.get(
345
+ '_preload_content', True
346
+ )
347
+ kwargs['_request_timeout'] = kwargs.get(
348
+ '_request_timeout', None
349
+ )
350
+ kwargs['_check_input_type'] = kwargs.get(
351
+ '_check_input_type', True
352
+ )
353
+ kwargs['_check_return_type'] = kwargs.get(
354
+ '_check_return_type', True
355
+ )
356
+ kwargs['_host_index'] = kwargs.get('_host_index')
357
+ kwargs['org_id'] = \
358
+ org_id
359
+ return self.call_with_http_info(**kwargs)
360
+
361
+ if self.create_checkout_session is None:
362
+ self.create_checkout_session = _Endpoint(
363
+ settings={
364
+ 'response_type': (BillingCheckoutSession,),
365
+ 'auth': [
366
+ 'token-valid'
367
+ ],
368
+ 'endpoint_path': '/v1/orgs/{org_id}/billing_checkout',
369
+ 'operation_id': 'create_checkout_session',
370
+ 'http_method': 'POST',
371
+ 'servers': None,
372
+ },
373
+ params_map={
374
+ 'all': [
375
+ 'org_id',
376
+ 'create_billing_checkout_session',
377
+ ],
378
+ 'required': [
379
+ 'org_id',
380
+ ],
381
+ 'nullable': [
382
+ ],
383
+ 'enum': [
384
+ ],
385
+ 'validation': [
386
+ ]
387
+ },
388
+ root_map={
389
+ 'validations': {
390
+ },
391
+ 'allowed_values': {
392
+ },
393
+ 'openapi_types': {
394
+ 'org_id':
395
+ (str,),
396
+ 'create_billing_checkout_session':
397
+ (CreateBillingCheckoutSession,),
398
+ },
399
+ 'attribute_map': {
400
+ 'org_id': 'org_id',
401
+ },
402
+ 'location_map': {
403
+ 'org_id': 'path',
404
+ 'create_billing_checkout_session': 'body',
405
+ },
406
+ 'collection_format_map': {
407
+ }
408
+ },
409
+ headers_map={
410
+ 'accept': [
411
+ 'application/json'
412
+ ],
413
+ 'content_type': [
414
+ 'application/json'
415
+ ]
416
+ },
417
+ api_client=api_client,
418
+ callable=__create_checkout_session
419
+ )
420
+
292
421
  def __create_org(
293
422
  self,
294
423
  organisation_admin,
@@ -2767,6 +2896,7 @@ class OrganisationsApi(object):
2767
2896
 
2768
2897
  create_billing_portal_link = None
2769
2898
  create_blocking_upgrade_orgs_task = None
2899
+ create_checkout_session = None
2770
2900
  create_org = None
2771
2901
  create_reconcile_org_default_policy = None
2772
2902
  create_sub_org = None
@@ -5,6 +5,7 @@ class OrganisationsApiMock:
5
5
  def __init__(self):
6
6
  self.mock_create_billing_portal_link = MagicMock()
7
7
  self.mock_create_blocking_upgrade_orgs_task = MagicMock()
8
+ self.mock_create_checkout_session = MagicMock()
8
9
  self.mock_create_org = MagicMock()
9
10
  self.mock_create_reconcile_org_default_policy = MagicMock()
10
11
  self.mock_create_sub_org = MagicMock()
@@ -37,6 +38,12 @@ class OrganisationsApiMock:
37
38
  """
38
39
  return self.mock_create_blocking_upgrade_orgs_task(self, *args, **kwargs)
39
40
 
41
+ def create_checkout_session(self, *args, **kwargs):
42
+ """
43
+ This method mocks the original api OrganisationsApi.create_checkout_session with MagicMock.
44
+ """
45
+ return self.mock_create_checkout_session(self, *args, **kwargs)
46
+
40
47
  def create_org(self, *args, **kwargs):
41
48
  """
42
49
  This method mocks the original api OrganisationsApi.create_org with MagicMock.
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = 'OpenAPI-Generator/1.256.8/python'
80
+ self.user_agent = 'OpenAPI-Generator/1.256.10/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -387,7 +387,7 @@ class Configuration(object):
387
387
  "OS: {env}\n"\
388
388
  "Python Version: {pyversion}\n"\
389
389
  "Version of the API: 2024.05.09\n"\
390
- "SDK Package Version: 1.256.8".\
390
+ "SDK Package Version: 1.256.10".\
391
391
  format(env=sys.platform, pyversion=sys.version)
392
392
 
393
393
  def get_host_settings(self):
@@ -27,6 +27,7 @@ Method | HTTP request | Description
27
27
  [**get_subscription_balance_transactions**](BillingApi.md#get_subscription_balance_transactions) | **GET** /v1/billing_subscriptions/{billing_subscription_id}/balance_transactions | Get the subscription balance transactions
28
28
  [**get_usage_records**](BillingApi.md#get_usage_records) | **GET** /v1/billing_accounts/{billing_account_id}/usage_records | Get all subscription usage records
29
29
  [**list_billing_accounts**](BillingApi.md#list_billing_accounts) | **GET** /v1/billing_accounts | Get all billing accounts
30
+ [**list_checkout_sessions**](BillingApi.md#list_checkout_sessions) | **GET** /v1/billing_accounts/{billing_account_id}/checkout | list checkout sessions
30
31
  [**list_features**](BillingApi.md#list_features) | **GET** /v1/features | Get all features
31
32
  [**list_products**](BillingApi.md#list_products) | **GET** /v1/products | Get all products
32
33
  [**list_subscription_features**](BillingApi.md#list_subscription_features) | **GET** /v1/billing_subscriptions/{billing_subscription_id}/features | Get all subscription features
@@ -2661,6 +2662,97 @@ Name | Type | Description | Notes
2661
2662
 
2662
2663
  [[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)
2663
2664
 
2665
+ # **list_checkout_sessions**
2666
+ > ListBillingCheckoutSessions list_checkout_sessions(billing_account_id)
2667
+
2668
+ list checkout sessions
2669
+
2670
+ list checkout sessions
2671
+
2672
+ ### Example
2673
+
2674
+ * Bearer (JWT) Authentication (token-valid):
2675
+ ```python
2676
+ import time
2677
+ import agilicus_api
2678
+ from agilicus_api.api import billing_api
2679
+ from agilicus_api.model.list_billing_checkout_sessions import ListBillingCheckoutSessions
2680
+ from pprint import pprint
2681
+ # Defining the host is optional and defaults to https://api.agilicus.com
2682
+ # See configuration.py for a list of all supported configuration parameters.
2683
+ configuration = agilicus_api.Configuration(
2684
+ host = "https://api.agilicus.com"
2685
+ )
2686
+
2687
+ # The client must configure the authentication and authorization parameters
2688
+ # in accordance with the API server security policy.
2689
+ # Examples for each auth method are provided below, use the example that
2690
+ # satisfies your auth use case.
2691
+
2692
+ # Configure Bearer authorization (JWT): token-valid
2693
+ configuration = agilicus_api.Configuration(
2694
+ access_token = 'YOUR_BEARER_TOKEN'
2695
+ )
2696
+
2697
+ # Enter a context with an instance of the API client
2698
+ with agilicus_api.ApiClient(configuration) as api_client:
2699
+ # Create an instance of the API class
2700
+ api_instance = billing_api.BillingApi(api_client)
2701
+ billing_account_id = "1234" # str | Billing account Unique identifier
2702
+ org_id = "1234" # str | Organisation Unique identifier (optional)
2703
+ limit = 1 # int | limit the number of rows in the response (optional) if omitted the server will use the default value of 500
2704
+ checkout_session_status = "checkout_session_status_example" # str | retreive checkout sessions with specified status (optional)
2705
+
2706
+ # example passing only required values which don't have defaults set
2707
+ try:
2708
+ # list checkout sessions
2709
+ api_response = api_instance.list_checkout_sessions(billing_account_id)
2710
+ pprint(api_response)
2711
+ except agilicus_api.ApiException as e:
2712
+ print("Exception when calling BillingApi->list_checkout_sessions: %s\n" % e)
2713
+
2714
+ # example passing only required values which don't have defaults set
2715
+ # and optional values
2716
+ try:
2717
+ # list checkout sessions
2718
+ api_response = api_instance.list_checkout_sessions(billing_account_id, org_id=org_id, limit=limit, checkout_session_status=checkout_session_status)
2719
+ pprint(api_response)
2720
+ except agilicus_api.ApiException as e:
2721
+ print("Exception when calling BillingApi->list_checkout_sessions: %s\n" % e)
2722
+ ```
2723
+
2724
+
2725
+ ### Parameters
2726
+
2727
+ Name | Type | Description | Notes
2728
+ ------------- | ------------- | ------------- | -------------
2729
+ **billing_account_id** | **str**| Billing account Unique identifier |
2730
+ **org_id** | **str**| Organisation Unique identifier | [optional]
2731
+ **limit** | **int**| limit the number of rows in the response | [optional] if omitted the server will use the default value of 500
2732
+ **checkout_session_status** | **str**| retreive checkout sessions with specified status | [optional]
2733
+
2734
+ ### Return type
2735
+
2736
+ [**ListBillingCheckoutSessions**](ListBillingCheckoutSessions.md)
2737
+
2738
+ ### Authorization
2739
+
2740
+ [token-valid](../README.md#token-valid)
2741
+
2742
+ ### HTTP request headers
2743
+
2744
+ - **Content-Type**: Not defined
2745
+ - **Accept**: application/json
2746
+
2747
+
2748
+ ### HTTP response details
2749
+ | Status code | Description | Response headers |
2750
+ |-------------|-------------|------------------|
2751
+ **200** | Return ListBillingCheckoutSessions | - |
2752
+ **404** | billing account does not exist | - |
2753
+
2754
+ [[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)
2755
+
2664
2756
  # **list_features**
2665
2757
  > ListFeaturesResponse list_features()
2666
2758
 
@@ -0,0 +1,14 @@
1
+ # BillingCheckoutSession
2
+
3
+ A checkout session
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **str** | Unique identifier for the object. | [optional]
9
+ **url** | **str** | The URL to the Checkout Session | [optional]
10
+ **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+
@@ -0,0 +1,16 @@
1
+ # CreateBillingCheckoutSession
2
+
3
+ create a checkout session options
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **ui_mode** | **str** | The ui_mode. When ommited, defaults to embedded. | [optional]
9
+ **return_url** | **str** | The return url. | [optional]
10
+ **success_url** | **str** | The success_url. | [optional]
11
+ **custom_text** | **str** | custom text | [optional]
12
+ **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
13
+
14
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15
+
16
+
@@ -0,0 +1,14 @@
1
+ # ListBillingCheckoutSessions
2
+
3
+ Response object for listing checkout sessions.
4
+
5
+ ## Properties
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **has_more** | **bool** | Whether or not there are more elements available after this set. If false, this set comprises the end of the list. | [optional]
9
+ **data** | [**[BillingCheckoutSession]**](BillingCheckoutSession.md) | A list of checkout sessions. | [optional]
10
+ **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
11
+
12
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13
+
14
+