Skip to content

Commit

Permalink
Release 1.5.0 (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtreminio-dropbox authored Aug 22, 2024
1 parent 838351a commit e814122
Show file tree
Hide file tree
Showing 16 changed files with 422 additions and 77 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ docs/AccountCreateResponse.md
docs/AccountGetResponse.md
docs/AccountResponse.md
docs/AccountResponseQuotas.md
docs/AccountResponseUsage.md
docs/AccountUpdateRequest.md
docs/AccountVerifyRequest.md
docs/AccountVerifyResponse.md
Expand Down Expand Up @@ -207,6 +208,7 @@ dropbox_sign/model/account_create_response.py
dropbox_sign/model/account_get_response.py
dropbox_sign/model/account_response.py
dropbox_sign/model/account_response_quotas.py
dropbox_sign/model/account_response_usage.py
dropbox_sign/model/account_update_request.py
dropbox_sign/model/account_verify_request.py
dropbox_sign/model/account_verify_response.py
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Python >=3.7
Install using `pip`:

```shell
python3 -m pip install dropbox-sign==1.4.2
python3 -m pip install dropbox-sign==1.5.0
```

Alternatively:
Expand Down Expand Up @@ -171,6 +171,7 @@ All URIs are relative to *https://api.hellosign.com/v3*
- [AccountGetResponse](docs/AccountGetResponse.md)
- [AccountResponse](docs/AccountResponse.md)
- [AccountResponseQuotas](docs/AccountResponseQuotas.md)
- [AccountResponseUsage](docs/AccountResponseUsage.md)
- [AccountUpdateRequest](docs/AccountUpdateRequest.md)
- [AccountVerifyRequest](docs/AccountVerifyRequest.md)
- [AccountVerifyResponse](docs/AccountVerifyResponse.md)
Expand Down Expand Up @@ -362,6 +363,6 @@ apisupport@hellosign.com
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- Package version: 1.4.2
- Package version: 1.5.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.2
1.5.0
1 change: 1 addition & 0 deletions docs/AccountResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
| `role_code` | ```str, none_type``` | The membership role for the team. | |
| `team_id` | ```str, none_type``` | The id of the team account belongs to. | |
| `locale` | ```str, none_type``` | The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values. | |
| `usage` | [```AccountResponseUsage```](AccountResponseUsage.md) | | |


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions docs/AccountResponseQuotas.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Details concerning remaining monthly quotas.
| `templates_total` | ```int, none_type``` | Total API templates allowed. | |
| `templates_left` | ```int, none_type``` | API templates remaining. | |
| `sms_verifications_left` | ```int, none_type``` | SMS verifications remaining. | |
| `num_fax_pages_left` | ```int, none_type``` | Number of fax pages left | |


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
14 changes: 14 additions & 0 deletions docs/AccountResponseUsage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# AccountResponseUsage

Details concerning monthly usage

## Properties

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| `fax_pages_sent` | ```int, none_type``` | Number of fax pages sent | |


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion dropbox_sign/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "1.4.2"
__version__ = "1.5.0"

# import ApiClient
from dropbox_sign.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.4.2/python'
self.user_agent = 'OpenAPI-Generator/1.5.0/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion dropbox_sign/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 3.0.0\n"\
"SDK Package Version: 1.4.2".\
"SDK Package Version: 1.5.0".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
15 changes: 15 additions & 0 deletions dropbox_sign/model/account_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@
from dropbox_sign.exceptions import ApiAttributeError
if TYPE_CHECKING:
from dropbox_sign.model.account_response_quotas import AccountResponseQuotas
from dropbox_sign.model.account_response_usage import AccountResponseUsage


def lazy_import():
from dropbox_sign.model.account_response_quotas import AccountResponseQuotas
from dropbox_sign.model.account_response_usage import AccountResponseUsage
globals()['AccountResponseQuotas'] = AccountResponseQuotas
globals()['AccountResponseUsage'] = AccountResponseUsage


class AccountResponse(ModelNormal):
Expand Down Expand Up @@ -104,6 +107,7 @@ def openapi_types():
'role_code': (str, none_type,), # noqa: E501
'team_id': (str, none_type,), # noqa: E501
'locale': (str, none_type,), # noqa: E501
'usage': (AccountResponseUsage,), # noqa: E501
}

@cached_property
Expand Down Expand Up @@ -137,6 +141,7 @@ def init(data: any) -> AccountResponse:
'role_code': 'role_code', # noqa: E501
'team_id': 'team_id', # noqa: E501
'locale': 'locale', # noqa: E501
'usage': 'usage', # noqa: E501
}

read_only_vars = {
Expand Down Expand Up @@ -224,6 +229,14 @@ def locale(self) -> Optional[str]:
def locale(self, value: Optional[str]):
setattr(self, "locale", value)

@property
def usage(self) -> AccountResponseUsage:
return self.get("usage")

@usage.setter
def usage(self, value: AccountResponseUsage):
setattr(self, "usage", value)

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Expand Down Expand Up @@ -270,6 +283,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
role_code (str, none_type): The membership role for the team.. [optional] # noqa: E501
team_id (str, none_type): The id of the team account belongs to.. [optional] # noqa: E501
locale (str, none_type): The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. [optional] # noqa: E501
usage (AccountResponseUsage): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -361,6 +375,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
role_code (str, none_type): The membership role for the team.. [optional] # noqa: E501
team_id (str, none_type): The id of the team account belongs to.. [optional] # noqa: E501
locale (str, none_type): The locale used in this Account. Check out the list of [supported locales](/api/reference/constants/#supported-locales) to learn more about the possible values.. [optional] # noqa: E501
usage (AccountResponseUsage): [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
12 changes: 12 additions & 0 deletions dropbox_sign/model/account_response_quotas.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def openapi_types():
'templates_total': (int, none_type,), # noqa: E501
'templates_left': (int, none_type,), # noqa: E501
'sms_verifications_left': (int, none_type,), # noqa: E501
'num_fax_pages_left': (int, none_type,), # noqa: E501
}

@cached_property
Expand Down Expand Up @@ -119,6 +120,7 @@ def init(data: any) -> AccountResponseQuotas:
'templates_total': 'templates_total', # noqa: E501
'templates_left': 'templates_left', # noqa: E501
'sms_verifications_left': 'sms_verifications_left', # noqa: E501
'num_fax_pages_left': 'num_fax_pages_left', # noqa: E501
}

read_only_vars = {
Expand Down Expand Up @@ -166,6 +168,14 @@ def sms_verifications_left(self) -> Optional[int]:
def sms_verifications_left(self, value: Optional[int]):
setattr(self, "sms_verifications_left", value)

@property
def num_fax_pages_left(self) -> Optional[int]:
return self.get("num_fax_pages_left")

@num_fax_pages_left.setter
def num_fax_pages_left(self, value: Optional[int]):
setattr(self, "num_fax_pages_left", value)

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
Expand Down Expand Up @@ -207,6 +217,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
templates_total (int, none_type): Total API templates allowed.. [optional] # noqa: E501
templates_left (int, none_type): API templates remaining.. [optional] # noqa: E501
sms_verifications_left (int, none_type): SMS verifications remaining.. [optional] # noqa: E501
num_fax_pages_left (int, none_type): Number of fax pages left. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down Expand Up @@ -293,6 +304,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
templates_total (int, none_type): Total API templates allowed.. [optional] # noqa: E501
templates_left (int, none_type): API templates remaining.. [optional] # noqa: E501
sms_verifications_left (int, none_type): SMS verifications remaining.. [optional] # noqa: E501
num_fax_pages_left (int, none_type): Number of fax pages left. [optional] # noqa: E501
"""

_check_type = kwargs.pop('_check_type', True)
Expand Down
Loading

0 comments on commit e814122

Please sign in to comment.