Skip to content

Commit 27c87e9

Browse files
committed
feat: Update package version to 1.0.11 and remove deprecated client ID models
1 parent 4aff786 commit 27c87e9

16 files changed

Lines changed: 46 additions & 81 deletions

.openapi-generator/FILES

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
.travis.yml
55
README.md
66
docs/AddClientResponse.md
7-
docs/AddClientResponseAllOfClientid.md
8-
docs/AddOrderRequestClientid.md
97
docs/AddOrderResponse.md
108
docs/ClientInfo.md
119
docs/CurrencyInfo.md
@@ -14,9 +12,7 @@ docs/GetClientsResponse.md
1412
docs/GetClientsResponseAllOfClients.md
1513
docs/GetCurrenciesResponse.md
1614
docs/GetCurrenciesResponseAllOfCurrencies.md
17-
docs/UpdateClientRequestClientid.md
1815
docs/UpdateClientResponse.md
19-
docs/UpdateClientResponseAllOfClientid.md
2016
docs/WHMCSBaseResponse.md
2117
docs/WHMCSErrorResponse.md
2218
docs/WHMCSSuccessResponse.md
@@ -37,18 +33,14 @@ whmcs_client/configuration.py
3733
whmcs_client/exceptions.py
3834
whmcs_client/models/__init__.py
3935
whmcs_client/models/add_client_response.py
40-
whmcs_client/models/add_client_response_all_of_clientid.py
41-
whmcs_client/models/add_order_request_clientid.py
4236
whmcs_client/models/add_order_response.py
4337
whmcs_client/models/client_info.py
4438
whmcs_client/models/currency_info.py
4539
whmcs_client/models/get_clients_response.py
4640
whmcs_client/models/get_clients_response_all_of_clients.py
4741
whmcs_client/models/get_currencies_response.py
4842
whmcs_client/models/get_currencies_response_all_of_currencies.py
49-
whmcs_client/models/update_client_request_clientid.py
5043
whmcs_client/models/update_client_response.py
51-
whmcs_client/models/update_client_response_all_of_clientid.py
5244
whmcs_client/models/whmcs_base_response.py
5345
whmcs_client/models/whmcs_error_response.py
5446
whmcs_client/models/whmcs_success_response.py

README.md

Lines changed: 1 addition & 5 deletions
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.10
12+
- Package version: 1.0.11
1313
- Generator version: 7.13.0
1414
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
1515

@@ -128,18 +128,14 @@ Class | Method | HTTP request | Description
128128
## Documentation For Models
129129

130130
- [AddClientResponse](docs/AddClientResponse.md)
131-
- [AddClientResponseAllOfClientid](docs/AddClientResponseAllOfClientid.md)
132-
- [AddOrderRequestClientid](docs/AddOrderRequestClientid.md)
133131
- [AddOrderResponse](docs/AddOrderResponse.md)
134132
- [ClientInfo](docs/ClientInfo.md)
135133
- [CurrencyInfo](docs/CurrencyInfo.md)
136134
- [GetClientsResponse](docs/GetClientsResponse.md)
137135
- [GetClientsResponseAllOfClients](docs/GetClientsResponseAllOfClients.md)
138136
- [GetCurrenciesResponse](docs/GetCurrenciesResponse.md)
139137
- [GetCurrenciesResponseAllOfCurrencies](docs/GetCurrenciesResponseAllOfCurrencies.md)
140-
- [UpdateClientRequestClientid](docs/UpdateClientRequestClientid.md)
141138
- [UpdateClientResponse](docs/UpdateClientResponse.md)
142-
- [UpdateClientResponseAllOfClientid](docs/UpdateClientResponseAllOfClientid.md)
143139
- [WHMCSBaseResponse](docs/WHMCSBaseResponse.md)
144140
- [WHMCSErrorResponse](docs/WHMCSErrorResponse.md)
145141
- [WHMCSSuccessResponse](docs/WHMCSSuccessResponse.md)

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.10",
4+
"packageVersion": "1.0.11",
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** | [**AddClientResponseAllOfClientid**](AddClientResponseAllOfClientid.md) | | [optional]
10+
**clientid** | **object** | 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 & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ Places a new order for products/services
148148

149149
```python
150150
import whmcs_client
151-
from whmcs_client.models.add_order_request_clientid import AddOrderRequestClientid
152151
from whmcs_client.models.add_order_response import AddOrderResponse
153152
from whmcs_client.rest import ApiException
154153
from pprint import pprint
@@ -166,7 +165,7 @@ with whmcs_client.ApiClient(configuration) as api_client:
166165
api_instance = whmcs_client.DefaultApi(api_client)
167166
username = 'username_example' # str | Admin username/API identifier
168167
password = 'password_example' # str | Admin password/API secret
169-
clientid = whmcs_client.AddOrderRequestClientid() # AddOrderRequestClientid |
168+
clientid = None # object | The ID of the client to add the order for
170169
paymentmethod = 'paymentmethod_example' # str | The payment method for the order in the system format (e.g., paypal, mailin)
171170
accesskey = 'accesskey_example' # str | Optional API access key (optional)
172171
responsetype = json # str | Response format (optional) (default to json)
@@ -232,7 +231,7 @@ Name | Type | Description | Notes
232231
------------- | ------------- | ------------- | -------------
233232
**username** | **str**| Admin username/API identifier |
234233
**password** | **str**| Admin password/API secret |
235-
**clientid** | [**AddOrderRequestClientid**](AddOrderRequestClientid.md)| |
234+
**clientid** | [**object**](object.md)| The ID of the client to add the order for |
236235
**paymentmethod** | **str**| The payment method for the order in the system format (e.g., paypal, mailin) |
237236
**accesskey** | **str**| Optional API access key | [optional]
238237
**responsetype** | **str**| Response format | [optional] [default to json]
@@ -476,7 +475,6 @@ Modifies an existing client's information
476475

477476
```python
478477
import whmcs_client
479-
from whmcs_client.models.update_client_request_clientid import UpdateClientRequestClientid
480478
from whmcs_client.models.update_client_response import UpdateClientResponse
481479
from whmcs_client.rest import ApiException
482480
from pprint import pprint
@@ -494,7 +492,7 @@ with whmcs_client.ApiClient(configuration) as api_client:
494492
api_instance = whmcs_client.DefaultApi(api_client)
495493
username = 'username_example' # str | Admin username/API identifier
496494
password = 'password_example' # str | Admin password/API secret
497-
clientid = whmcs_client.UpdateClientRequestClientid() # UpdateClientRequestClientid |
495+
clientid = None # object | The ID of the client to update
498496
accesskey = 'accesskey_example' # str | Optional API access key (optional)
499497
responsetype = json # str | Response format (optional) (default to json)
500498
clientemail = 'clientemail_example' # str | The email address of the client to update (optional)
@@ -553,7 +551,7 @@ Name | Type | Description | Notes
553551
------------- | ------------- | ------------- | -------------
554552
**username** | **str**| Admin username/API identifier |
555553
**password** | **str**| Admin password/API secret |
556-
**clientid** | [**UpdateClientRequestClientid**](UpdateClientRequestClientid.md)| |
554+
**clientid** | [**object**](object.md)| The ID of the client to update |
557555
**accesskey** | **str**| Optional API access key | [optional]
558556
**responsetype** | **str**| Response format | [optional] [default to json]
559557
**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** | [**UpdateClientResponseAllOfClientid**](UpdateClientResponseAllOfClientid.md) | | [optional]
10+
**clientid** | **str** | The ID of the updated client | [optional]
1111

1212
## Example
1313

openapi.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ components:
245245
- clientid
246246
properties:
247247
clientid:
248-
oneOf:
249-
- type: integer
250-
- type: string
248+
type: [string, integer]
251249
description: The ID of the client to update
252250
clientemail:
253251
type: string
@@ -368,9 +366,7 @@ components:
368366
- paymentmethod
369367
properties:
370368
clientid:
371-
oneOf:
372-
- type: integer
373-
- type: string
369+
type: [string, integer]
374370
description: The ID of the client to add the order for
375371
clientemail:
376372
type: string
@@ -628,9 +624,7 @@ components:
628624
- type: object
629625
properties:
630626
clientid:
631-
oneOf:
632-
- type: integer
633-
- type: string
627+
type: [string, integer]
634628
description: The ID of the newly created client
635629
owner_user_id:
636630
type: integer
@@ -642,9 +636,7 @@ components:
642636
- type: object
643637
properties:
644638
clientid:
645-
oneOf:
646-
- type: integer
647-
- type: string
639+
type: string
648640
description: The ID of the updated client
649641

650642
AddOrderResponse:
@@ -781,4 +773,4 @@ x-whmcs-config:
781773
should be sent to the actual /api.php endpoint. The client implementation should:
782774
1. Route all requests to /api.php regardless of the path in this spec
783775
2. Automatically inject the 'action' parameter based on the operation
784-
3. Merge the base request fields with action-specific fields
776+
3. Merge the base request fields with action-specific fields

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.10"
3+
version = "1.0.11"
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.10"
24+
VERSION = "1.0.11"
2525
PYTHON_REQUIRES = ">= 3.9"
2626
REQUIRES = [
2727
"urllib3 >= 2.1.0, < 3.0.0",

whmcs_client/__init__.py

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

1616

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

1919
# import apis into sdk package
2020
from whmcs_client.api.default_api import DefaultApi
@@ -32,18 +32,14 @@
3232

3333
# import models into sdk package
3434
from whmcs_client.models.add_client_response import AddClientResponse
35-
from whmcs_client.models.add_client_response_all_of_clientid import AddClientResponseAllOfClientid
36-
from whmcs_client.models.add_order_request_clientid import AddOrderRequestClientid
3735
from whmcs_client.models.add_order_response import AddOrderResponse
3836
from whmcs_client.models.client_info import ClientInfo
3937
from whmcs_client.models.currency_info import CurrencyInfo
4038
from whmcs_client.models.get_clients_response import GetClientsResponse
4139
from whmcs_client.models.get_clients_response_all_of_clients import GetClientsResponseAllOfClients
4240
from whmcs_client.models.get_currencies_response import GetCurrenciesResponse
4341
from whmcs_client.models.get_currencies_response_all_of_currencies import GetCurrenciesResponseAllOfCurrencies
44-
from whmcs_client.models.update_client_request_clientid import UpdateClientRequestClientid
4542
from whmcs_client.models.update_client_response import UpdateClientResponse
46-
from whmcs_client.models.update_client_response_all_of_clientid import UpdateClientResponseAllOfClientid
4743
from whmcs_client.models.whmcs_base_response import WHMCSBaseResponse
4844
from whmcs_client.models.whmcs_error_response import WHMCSErrorResponse
4945
from whmcs_client.models.whmcs_success_response import WHMCSSuccessResponse

0 commit comments

Comments
 (0)