Skip to content

Commit 403c07a

Browse files
committed
Regenerate client.
1 parent 70c488e commit 403c07a

File tree

99 files changed

+1426
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1426
-104
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Kill Bill is an open-source billing and payments platform
33

44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

6-
- API version: 0.19.11-SNAPSHOT
6+
- API version: 0.19.15-SNAPSHOT
77
- Package version: 0.0.1-SNAPSHOT
88
- Build package: org.killbill.billing.codegen.languages.KillbillPythonGenerator
99

killbill/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
from killbill.models.credit import Credit
8888
from killbill.models.custom_field import CustomField
8989
from killbill.models.duration import Duration
90+
from killbill.models.entity import Entity
9091
from killbill.models.event_subscription import EventSubscription
9192
from killbill.models.hosted_payment_page_fields import HostedPaymentPageFields
9293
from killbill.models.hosted_payment_page_form_descriptor import HostedPaymentPageFormDescriptor

killbill/api/account_api.py

+237-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Kill Bill is an open-source billing and payments platform # noqa: E501
2424
25-
OpenAPI spec version: 0.19.11-SNAPSHOT
25+
OpenAPI spec version: 0.19.15-SNAPSHOT
2626
2727
Generated by: https://github.com/swagger-api/swagger-codegen.git
2828
"""
@@ -1568,6 +1568,119 @@ def get_account_audit_logs_with_http_info(self, account_id=None, api_key=None, a
15681568
_request_timeout=params.get('_request_timeout'),
15691569
collection_formats=collection_formats)
15701570

1571+
def get_account_audit_logs_with_history(self, account_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
1572+
"""Retrieve account audit logs with history by account id # noqa: E501
1573+
1574+
# noqa: E501
1575+
This method makes a synchronous HTTP request by default. To make an
1576+
asynchronous HTTP request, please pass async=True
1577+
>>> thread = api.get_account_audit_logs_with_history(account_id, api_key, api_secret, async=True)
1578+
>>> result = thread.get()
1579+
1580+
:param async bool
1581+
:param Str account_id: (required)
1582+
:param Str api_key: (required)
1583+
:param Str api_secret: (required)
1584+
:return: List[AuditLog]
1585+
If the method is called asynchronously,
1586+
returns the request thread.
1587+
"""
1588+
kwargs['_return_http_data_only'] = True
1589+
if kwargs.get('async'):
1590+
return self.get_account_audit_logs_with_history_with_http_info(account_id, api_key, api_secret, **kwargs) # noqa: E501
1591+
else:
1592+
(data) = self.get_account_audit_logs_with_history_with_http_info(account_id, api_key, api_secret, **kwargs) # noqa: E501
1593+
return data
1594+
1595+
def get_account_audit_logs_with_history_with_http_info(self, account_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
1596+
"""Retrieve account audit logs with history by account id # noqa: E501
1597+
1598+
# noqa: E501
1599+
This method makes a synchronous HTTP request by default. To make an
1600+
asynchronous HTTP request, please pass async=True
1601+
>>> thread = api.get_account_audit_logs_with_history_with_http_info(account_id, api_key, api_secret, async=True)
1602+
>>> result = thread.get()
1603+
1604+
:param async bool
1605+
:param Str account_id: (required)
1606+
:param Str api_key: (required)
1607+
:param Str api_secret: (required)
1608+
:return: List[AuditLog]
1609+
If the method is called asynchronously,
1610+
returns the request thread.
1611+
"""
1612+
1613+
all_params = ['account_id', 'api_key', 'api_secret'] # noqa: E501
1614+
all_params.append('async')
1615+
all_params.append('_return_http_data_only')
1616+
all_params.append('_preload_content')
1617+
all_params.append('_request_timeout')
1618+
1619+
params = locals()
1620+
for key, val in six.iteritems(params['kwargs']):
1621+
if key not in all_params:
1622+
raise TypeError(
1623+
"Got an unexpected keyword argument '%s'"
1624+
" to method get_account_audit_logs_with_history" % key
1625+
)
1626+
params[key] = val
1627+
del params['kwargs']
1628+
# verify the required parameter 'account_id' is set
1629+
if ('account_id' not in params or
1630+
params['account_id'] is None):
1631+
raise ValueError("Missing the required parameter `account_id` when calling `get_account_audit_logs_with_history`") # noqa: E501
1632+
# verify the required parameter 'api_key' is set
1633+
if ('api_key' not in params or
1634+
params['api_key'] is None):
1635+
raise ValueError("Missing the required parameter `api_key` when calling `get_account_audit_logs_with_history`") # noqa: E501
1636+
# verify the required parameter 'api_secret' is set
1637+
if ('api_secret' not in params or
1638+
params['api_secret'] is None):
1639+
raise ValueError("Missing the required parameter `api_secret` when calling `get_account_audit_logs_with_history`") # noqa: E501
1640+
1641+
if 'account_id' in params and not re.search('\\w+-\\w+-\\w+-\\w+-\\w+', params['account_id']): # noqa: E501
1642+
raise ValueError("Invalid value for parameter `account_id` when calling `get_account_audit_logs_with_history`, must conform to the pattern `/\\w+-\\w+-\\w+-\\w+-\\w+/`") # noqa: E501
1643+
collection_formats = {}
1644+
1645+
path_params = {}
1646+
if 'account_id' in params:
1647+
path_params['accountId'] = params['account_id'] # noqa: E501
1648+
1649+
query_params = []
1650+
1651+
header_params = {}
1652+
if 'api_key' in params:
1653+
header_params['X-Killbill-ApiKey'] = params['api_key'] # noqa: E501
1654+
if 'api_secret' in params:
1655+
header_params['X-Killbill-ApiSecret'] = params['api_secret'] # noqa: E501
1656+
1657+
form_params = []
1658+
local_var_files = {}
1659+
1660+
body_params = None
1661+
# HTTP header `Accept`
1662+
header_params['Accept'] = self.api_client.select_header_accept(
1663+
['application/json']) # noqa: E501
1664+
1665+
# Authentication setting
1666+
auth_settings = ['basicAuth'] # noqa: E501
1667+
1668+
return self.api_client.call_api(
1669+
'/1.0/kb/accounts/{accountId}/auditLogsWithHistory', 'GET',
1670+
path_params,
1671+
query_params,
1672+
header_params,
1673+
body=body_params,
1674+
post_params=form_params,
1675+
files=local_var_files,
1676+
response_type='List[AuditLog]', # noqa: E501
1677+
auth_settings=auth_settings,
1678+
async=params.get('async'),
1679+
_return_http_data_only=params.get('_return_http_data_only'),
1680+
_preload_content=params.get('_preload_content', True),
1681+
_request_timeout=params.get('_request_timeout'),
1682+
collection_formats=collection_formats)
1683+
15711684
def get_account_bundles(self, account_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
15721685
"""Retrieve bundles for account # noqa: E501
15731686
@@ -1933,6 +2046,129 @@ def get_account_custom_fields_with_http_info(self, account_id=None, api_key=None
19332046
_request_timeout=params.get('_request_timeout'),
19342047
collection_formats=collection_formats)
19352048

2049+
def get_account_email_audit_logs_with_history(self, account_id=None, account_email_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
2050+
"""Retrieve account email audit logs with history by id # noqa: E501
2051+
2052+
# noqa: E501
2053+
This method makes a synchronous HTTP request by default. To make an
2054+
asynchronous HTTP request, please pass async=True
2055+
>>> thread = api.get_account_email_audit_logs_with_history(account_id, account_email_id, api_key, api_secret, async=True)
2056+
>>> result = thread.get()
2057+
2058+
:param async bool
2059+
:param Str account_id: (required)
2060+
:param Str account_email_id: (required)
2061+
:param Str api_key: (required)
2062+
:param Str api_secret: (required)
2063+
:return: List[AuditLog]
2064+
If the method is called asynchronously,
2065+
returns the request thread.
2066+
"""
2067+
kwargs['_return_http_data_only'] = True
2068+
if kwargs.get('async'):
2069+
return self.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, api_key, api_secret, **kwargs) # noqa: E501
2070+
else:
2071+
(data) = self.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, api_key, api_secret, **kwargs) # noqa: E501
2072+
return data
2073+
2074+
def get_account_email_audit_logs_with_history_with_http_info(self, account_id=None, account_email_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
2075+
"""Retrieve account email audit logs with history by id # noqa: E501
2076+
2077+
# noqa: E501
2078+
This method makes a synchronous HTTP request by default. To make an
2079+
asynchronous HTTP request, please pass async=True
2080+
>>> thread = api.get_account_email_audit_logs_with_history_with_http_info(account_id, account_email_id, api_key, api_secret, async=True)
2081+
>>> result = thread.get()
2082+
2083+
:param async bool
2084+
:param Str account_id: (required)
2085+
:param Str account_email_id: (required)
2086+
:param Str api_key: (required)
2087+
:param Str api_secret: (required)
2088+
:return: List[AuditLog]
2089+
If the method is called asynchronously,
2090+
returns the request thread.
2091+
"""
2092+
2093+
all_params = ['account_id', 'account_email_id', 'api_key', 'api_secret'] # noqa: E501
2094+
all_params.append('async')
2095+
all_params.append('_return_http_data_only')
2096+
all_params.append('_preload_content')
2097+
all_params.append('_request_timeout')
2098+
2099+
params = locals()
2100+
for key, val in six.iteritems(params['kwargs']):
2101+
if key not in all_params:
2102+
raise TypeError(
2103+
"Got an unexpected keyword argument '%s'"
2104+
" to method get_account_email_audit_logs_with_history" % key
2105+
)
2106+
params[key] = val
2107+
del params['kwargs']
2108+
# verify the required parameter 'account_id' is set
2109+
if ('account_id' not in params or
2110+
params['account_id'] is None):
2111+
raise ValueError("Missing the required parameter `account_id` when calling `get_account_email_audit_logs_with_history`") # noqa: E501
2112+
# verify the required parameter 'account_email_id' is set
2113+
if ('account_email_id' not in params or
2114+
params['account_email_id'] is None):
2115+
raise ValueError("Missing the required parameter `account_email_id` when calling `get_account_email_audit_logs_with_history`") # noqa: E501
2116+
# verify the required parameter 'api_key' is set
2117+
if ('api_key' not in params or
2118+
params['api_key'] is None):
2119+
raise ValueError("Missing the required parameter `api_key` when calling `get_account_email_audit_logs_with_history`") # noqa: E501
2120+
# verify the required parameter 'api_secret' is set
2121+
if ('api_secret' not in params or
2122+
params['api_secret'] is None):
2123+
raise ValueError("Missing the required parameter `api_secret` when calling `get_account_email_audit_logs_with_history`") # noqa: E501
2124+
2125+
if 'account_id' in params and not re.search('\\w+-\\w+-\\w+-\\w+-\\w+', params['account_id']): # noqa: E501
2126+
raise ValueError("Invalid value for parameter `account_id` when calling `get_account_email_audit_logs_with_history`, must conform to the pattern `/\\w+-\\w+-\\w+-\\w+-\\w+/`") # noqa: E501
2127+
if 'account_email_id' in params and not re.search('\\w+-\\w+-\\w+-\\w+-\\w+', params['account_email_id']): # noqa: E501
2128+
raise ValueError("Invalid value for parameter `account_email_id` when calling `get_account_email_audit_logs_with_history`, must conform to the pattern `/\\w+-\\w+-\\w+-\\w+-\\w+/`") # noqa: E501
2129+
collection_formats = {}
2130+
2131+
path_params = {}
2132+
if 'account_id' in params:
2133+
path_params['accountId'] = params['account_id'] # noqa: E501
2134+
if 'account_email_id' in params:
2135+
path_params['accountEmailId'] = params['account_email_id'] # noqa: E501
2136+
2137+
query_params = []
2138+
2139+
header_params = {}
2140+
if 'api_key' in params:
2141+
header_params['X-Killbill-ApiKey'] = params['api_key'] # noqa: E501
2142+
if 'api_secret' in params:
2143+
header_params['X-Killbill-ApiSecret'] = params['api_secret'] # noqa: E501
2144+
2145+
form_params = []
2146+
local_var_files = {}
2147+
2148+
body_params = None
2149+
# HTTP header `Accept`
2150+
header_params['Accept'] = self.api_client.select_header_accept(
2151+
['application/json']) # noqa: E501
2152+
2153+
# Authentication setting
2154+
auth_settings = ['basicAuth'] # noqa: E501
2155+
2156+
return self.api_client.call_api(
2157+
'/1.0/kb/accounts/{accountId}/emails/{accountEmailId}/auditLogsWithHistory', 'GET',
2158+
path_params,
2159+
query_params,
2160+
header_params,
2161+
body=body_params,
2162+
post_params=form_params,
2163+
files=local_var_files,
2164+
response_type='List[AuditLog]', # noqa: E501
2165+
auth_settings=auth_settings,
2166+
async=params.get('async'),
2167+
_return_http_data_only=params.get('_return_http_data_only'),
2168+
_preload_content=params.get('_preload_content', True),
2169+
_request_timeout=params.get('_request_timeout'),
2170+
collection_formats=collection_formats)
2171+
19362172
def get_account_tags(self, account_id=None, api_key=None, api_secret=None, **kwargs): # noqa: E501
19372173
"""Retrieve account tags # noqa: E501
19382174

killbill/api/admin_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Kill Bill is an open-source billing and payments platform # noqa: E501
2424
25-
OpenAPI spec version: 0.19.11-SNAPSHOT
25+
OpenAPI spec version: 0.19.15-SNAPSHOT
2626
2727
Generated by: https://github.com/swagger-api/swagger-codegen.git
2828
"""

killbill/api/bundle_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Kill Bill is an open-source billing and payments platform # noqa: E501
2424
25-
OpenAPI spec version: 0.19.11-SNAPSHOT
25+
OpenAPI spec version: 0.19.15-SNAPSHOT
2626
2727
Generated by: https://github.com/swagger-api/swagger-codegen.git
2828
"""

killbill/api/catalog_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Kill Bill is an open-source billing and payments platform # noqa: E501
2424
25-
OpenAPI spec version: 0.19.11-SNAPSHOT
25+
OpenAPI spec version: 0.19.15-SNAPSHOT
2626
2727
Generated by: https://github.com/swagger-api/swagger-codegen.git
2828
"""

killbill/api/credit_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
Kill Bill is an open-source billing and payments platform # noqa: E501
2424
25-
OpenAPI spec version: 0.19.11-SNAPSHOT
25+
OpenAPI spec version: 0.19.15-SNAPSHOT
2626
2727
Generated by: https://github.com/swagger-api/swagger-codegen.git
2828
"""

0 commit comments

Comments
 (0)