Skip to content

Commit 107b05a

Browse files
committed
feat: Update package version to 1.0.12 and refine client ID type annotations in models and documentation
1 parent 208d8fd commit 107b05a

14 files changed

Lines changed: 37 additions & 45 deletions

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ each action as an independent path while routing all requests to the /api.php en
99
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
1010

1111
- API version: 1.0.0
12-
- Package version: 1.0.11
12+
- Package version: 1.0.12
1313
- Generator version: 7.13.0
1414
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1515

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packageName": "whmcs_client",
33
"projectName": "whmcs-api-client",
4-
"packageVersion": "1.0.11",
4+
"packageVersion": "1.0.12",
55
"packageUrl": "https://github.com/truehostcloud/whmcs-python-client",
66
"packageCompany": "Truehost",
77
"packageAuthor": "William Mwai",

docs/AddClientResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**result** | **str** | | [optional]
99
**message** | **str** | Response message | [optional]
10-
**clientid** | **object** | The ID of the newly created client | [optional]
10+
**clientid** | **int** | The ID of the newly created client | [optional]
1111
**owner_user_id** | **int** | The ID of the user that owns the client | [optional]
1212

1313
## Example

docs/DefaultApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ with whmcs_client.ApiClient(configuration) as api_client:
165165
api_instance = whmcs_client.DefaultApi(api_client)
166166
username = 'username_example' # str | Admin username/API identifier
167167
password = 'password_example' # str | Admin password/API secret
168-
clientid = None # object | The ID of the client to add the order for
168+
clientid = 56 # int | The ID of the client to add the order for
169169
paymentmethod = 'paymentmethod_example' # str | The payment method for the order in the system format (e.g., paypal, mailin)
170170
accesskey = 'accesskey_example' # str | Optional API access key (optional)
171171
responsetype = json # str | Response format (optional) (default to json)
@@ -231,7 +231,7 @@ Name | Type | Description | Notes
231231
------------- | ------------- | ------------- | -------------
232232
**username** | **str**| Admin username/API identifier |
233233
**password** | **str**| Admin password/API secret |
234-
**clientid** | [**object**](object.md)| The ID of the client to add the order for |
234+
**clientid** | **int**| The ID of the client to add the order for |
235235
**paymentmethod** | **str**| The payment method for the order in the system format (e.g., paypal, mailin) |
236236
**accesskey** | **str**| Optional API access key | [optional]
237237
**responsetype** | **str**| Response format | [optional] [default to json]
@@ -492,7 +492,7 @@ with whmcs_client.ApiClient(configuration) as api_client:
492492
api_instance = whmcs_client.DefaultApi(api_client)
493493
username = 'username_example' # str | Admin username/API identifier
494494
password = 'password_example' # str | Admin password/API secret
495-
clientid = None # object | The ID of the client to update
495+
clientid = 56 # int | The ID of the client to update
496496
accesskey = 'accesskey_example' # str | Optional API access key (optional)
497497
responsetype = json # str | Response format (optional) (default to json)
498498
clientemail = 'clientemail_example' # str | The email address of the client to update (optional)
@@ -551,7 +551,7 @@ Name | Type | Description | Notes
551551
------------- | ------------- | ------------- | -------------
552552
**username** | **str**| Admin username/API identifier |
553553
**password** | **str**| Admin password/API secret |
554-
**clientid** | [**object**](object.md)| The ID of the client to update |
554+
**clientid** | **int**| The ID of the client to update |
555555
**accesskey** | **str**| Optional API access key | [optional]
556556
**responsetype** | **str**| Response format | [optional] [default to json]
557557
**clientemail** | **str**| The email address of the client to update | [optional]

docs/UpdateClientResponse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**result** | **str** | | [optional]
99
**message** | **str** | Response message | [optional]
10-
**clientid** | **object** | The ID of the updated client | [optional]
10+
**clientid** | **int** | The ID of the updated client | [optional]
1111

1212
## Example
1313

openapi.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ components:
245245
- clientid
246246
properties:
247247
clientid:
248+
type: integer
249+
format: int64
248250
description: The ID of the client to update
249251
clientemail:
250252
type: string
@@ -365,6 +367,8 @@ components:
365367
- paymentmethod
366368
properties:
367369
clientid:
370+
type: integer
371+
format: int64
368372
description: The ID of the client to add the order for
369373
clientemail:
370374
type: string
@@ -622,9 +626,8 @@ components:
622626
- type: object
623627
properties:
624628
clientid:
625-
type: object
626-
additionalProperties:
627-
type: [string, integer]
629+
type: integer
630+
format: int64
628631
description: The ID of the newly created client
629632
owner_user_id:
630633
type: integer
@@ -636,9 +639,8 @@ components:
636639
- type: object
637640
properties:
638641
clientid:
639-
type: object
640-
additionalProperties:
641-
type: [string, integer]
642+
type: integer
643+
format: int64
642644
description: The ID of the updated client
643645

644646
AddOrderResponse:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "whmcs_client"
3-
version = "1.0.11"
3+
version = "1.0.12"
44
description = "WHMCS API"
55
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
66
license = "NoLicense"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# prerequisite: setuptools
2222
# http://pypi.python.org/pypi/setuptools
2323
NAME = "whmcs-api-client"
24-
VERSION = "1.0.11"
24+
VERSION = "1.0.12"
2525
PYTHON_REQUIRES = ">= 3.9"
2626
REQUIRES = [
2727
"urllib3 >= 2.1.0, < 3.0.0",

whmcs_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
""" # noqa: E501
1515

1616

17-
__version__ = "1.0.11"
17+
__version__ = "1.0.12"
1818

1919
# import apis into sdk package
2020
from whmcs_client.api.default_api import DefaultApi

whmcs_client/api/default_api.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from typing_extensions import Annotated
1818

1919
from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr, field_validator
20-
from typing import Any, Dict, List, Optional, Union
20+
from typing import Dict, List, Optional, Union
2121
from typing_extensions import Annotated
2222
from whmcs_client.models.add_client_response import AddClientResponse
2323
from whmcs_client.models.add_order_response import AddOrderResponse
@@ -741,7 +741,7 @@ def add_order(
741741
self,
742742
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
743743
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
744-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to add the order for")],
744+
clientid: Annotated[StrictInt, Field(description="The ID of the client to add the order for")],
745745
paymentmethod: Annotated[StrictStr, Field(description="The payment method for the order in the system format (e.g., paypal, mailin)")],
746746
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
747747
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
@@ -810,7 +810,7 @@ def add_order(
810810
:param password: Admin password/API secret (required)
811811
:type password: str
812812
:param clientid: The ID of the client to add the order for (required)
813-
:type clientid: object
813+
:type clientid: int
814814
:param paymentmethod: The payment method for the order in the system format (e.g., paypal, mailin) (required)
815815
:type paymentmethod: str
816816
:param accesskey: Optional API access key
@@ -1000,7 +1000,7 @@ def add_order_with_http_info(
10001000
self,
10011001
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
10021002
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
1003-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to add the order for")],
1003+
clientid: Annotated[StrictInt, Field(description="The ID of the client to add the order for")],
10041004
paymentmethod: Annotated[StrictStr, Field(description="The payment method for the order in the system format (e.g., paypal, mailin)")],
10051005
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
10061006
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
@@ -1069,7 +1069,7 @@ def add_order_with_http_info(
10691069
:param password: Admin password/API secret (required)
10701070
:type password: str
10711071
:param clientid: The ID of the client to add the order for (required)
1072-
:type clientid: object
1072+
:type clientid: int
10731073
:param paymentmethod: The payment method for the order in the system format (e.g., paypal, mailin) (required)
10741074
:type paymentmethod: str
10751075
:param accesskey: Optional API access key
@@ -1259,7 +1259,7 @@ def add_order_without_preload_content(
12591259
self,
12601260
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
12611261
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
1262-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to add the order for")],
1262+
clientid: Annotated[StrictInt, Field(description="The ID of the client to add the order for")],
12631263
paymentmethod: Annotated[StrictStr, Field(description="The payment method for the order in the system format (e.g., paypal, mailin)")],
12641264
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
12651265
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
@@ -1328,7 +1328,7 @@ def add_order_without_preload_content(
13281328
:param password: Admin password/API secret (required)
13291329
:type password: str
13301330
:param clientid: The ID of the client to add the order for (required)
1331-
:type clientid: object
1331+
:type clientid: int
13321332
:param paymentmethod: The payment method for the order in the system format (e.g., paypal, mailin) (required)
13331333
:type paymentmethod: str
13341334
:param accesskey: Optional API access key
@@ -2487,7 +2487,7 @@ def update_client(
24872487
self,
24882488
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
24892489
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
2490-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to update")],
2490+
clientid: Annotated[StrictInt, Field(description="The ID of the client to update")],
24912491
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
24922492
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
24932493
clientemail: Annotated[Optional[StrictStr], Field(description="The email address of the client to update")] = None,
@@ -2549,7 +2549,7 @@ def update_client(
25492549
:param password: Admin password/API secret (required)
25502550
:type password: str
25512551
:param clientid: The ID of the client to update (required)
2552-
:type clientid: object
2552+
:type clientid: int
25532553
:param accesskey: Optional API access key
25542554
:type accesskey: str
25552555
:param responsetype: Response format
@@ -2718,7 +2718,7 @@ def update_client_with_http_info(
27182718
self,
27192719
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
27202720
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
2721-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to update")],
2721+
clientid: Annotated[StrictInt, Field(description="The ID of the client to update")],
27222722
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
27232723
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
27242724
clientemail: Annotated[Optional[StrictStr], Field(description="The email address of the client to update")] = None,
@@ -2780,7 +2780,7 @@ def update_client_with_http_info(
27802780
:param password: Admin password/API secret (required)
27812781
:type password: str
27822782
:param clientid: The ID of the client to update (required)
2783-
:type clientid: object
2783+
:type clientid: int
27842784
:param accesskey: Optional API access key
27852785
:type accesskey: str
27862786
:param responsetype: Response format
@@ -2949,7 +2949,7 @@ def update_client_without_preload_content(
29492949
self,
29502950
username: Annotated[StrictStr, Field(description="Admin username/API identifier")],
29512951
password: Annotated[StrictStr, Field(description="Admin password/API secret")],
2952-
clientid: Annotated[Optional[Any], Field(description="The ID of the client to update")],
2952+
clientid: Annotated[StrictInt, Field(description="The ID of the client to update")],
29532953
accesskey: Annotated[Optional[StrictStr], Field(description="Optional API access key")] = None,
29542954
responsetype: Annotated[Optional[StrictStr], Field(description="Response format")] = None,
29552955
clientemail: Annotated[Optional[StrictStr], Field(description="The email address of the client to update")] = None,
@@ -3011,7 +3011,7 @@ def update_client_without_preload_content(
30113011
:param password: Admin password/API secret (required)
30123012
:type password: str
30133013
:param clientid: The ID of the client to update (required)
3014-
:type clientid: object
3014+
:type clientid: int
30153015
:param accesskey: Optional API access key
30163016
:type accesskey: str
30173017
:param responsetype: Response format

0 commit comments

Comments
 (0)