Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ cobo_waas2/models/fee_reserved.py
cobo_waas2/models/fee_station_check_fee_station_usage.py
cobo_waas2/models/fee_station_check_fee_station_usage_response.py
cobo_waas2/models/fee_station_destination.py
cobo_waas2/models/fee_station_fiat_transaction.py
cobo_waas2/models/fee_station_fiat_transaction_type.py
cobo_waas2/models/fee_station_gas_station_type.py
cobo_waas2/models/fee_station_sponsor_transaction_description.py
cobo_waas2/models/fee_station_transaction_type.py
Expand Down Expand Up @@ -362,6 +364,7 @@ cobo_waas2/models/list_counterparty_entries200_response.py
cobo_waas2/models/list_destination_entries200_response.py
cobo_waas2/models/list_destinations200_response.py
cobo_waas2/models/list_exchanges200_response_inner.py
cobo_waas2/models/list_fee_station_fiat_transactions200_response.py
cobo_waas2/models/list_forced_sweep_requests200_response.py
cobo_waas2/models/list_key_share_holder_groups200_response.py
cobo_waas2/models/list_key_share_holders200_response.py
Expand Down Expand Up @@ -1111,6 +1114,8 @@ docs/FeeStationApi.md
docs/FeeStationCheckFeeStationUsage.md
docs/FeeStationCheckFeeStationUsageResponse.md
docs/FeeStationDestination.md
docs/FeeStationFiatTransaction.md
docs/FeeStationFiatTransactionType.md
docs/FeeStationGasStationType.md
docs/FeeStationSponsorTransactionDescription.md
docs/FeeStationTransactionType.md
Expand Down Expand Up @@ -1184,6 +1189,7 @@ docs/ListCounterpartyEntries200Response.md
docs/ListDestinationEntries200Response.md
docs/ListDestinations200Response.md
docs/ListExchanges200ResponseInner.md
docs/ListFeeStationFiatTransactions200Response.md
docs/ListForcedSweepRequests200Response.md
docs/ListKeyShareHolderGroups200Response.md
docs/ListKeyShareHolders200Response.md
Expand Down Expand Up @@ -1948,6 +1954,8 @@ test/test_fee_station_api.py
test/test_fee_station_check_fee_station_usage.py
test/test_fee_station_check_fee_station_usage_response.py
test/test_fee_station_destination.py
test/test_fee_station_fiat_transaction.py
test/test_fee_station_fiat_transaction_type.py
test/test_fee_station_gas_station_type.py
test/test_fee_station_sponsor_transaction_description.py
test/test_fee_station_transaction_type.py
Expand Down Expand Up @@ -2023,6 +2031,7 @@ test/test_list_counterparty_entries200_response.py
test/test_list_destination_entries200_response.py
test/test_list_destinations200_response.py
test/test_list_exchanges200_response_inner.py
test/test_list_fee_station_fiat_transactions200_response.py
test/test_list_forced_sweep_requests200_response.py
test/test_list_key_share_holder_groups200_response.py
test/test_list_key_share_holders200_response.py
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v2
- Package version: 1.33.0
- Package version: 1.34.0
- Generator version: 7.6.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
Expand All @@ -27,7 +27,7 @@ Python 3.7+
### pip install

```sh
pip install cobo-waas2==1.33.0
pip install cobo-waas2==1.34.0
```

Then import the package:
Expand Down Expand Up @@ -87,6 +87,7 @@ Class | Method | HTTP request | Description
*AppWorkflowsApi* | [**list_app_workflows**](docs/AppWorkflowsApi.md#list_app_workflows) | **GET** /app/workflows | List app workflows
*AppWorkflowsApi* | [**list_approval_requests**](docs/AppWorkflowsApi.md#list_approval_requests) | **GET** /app/workflows/approval_requests | List approval requests
*AppWorkflowsApi* | [**revoke_approval_request**](docs/AppWorkflowsApi.md#revoke_approval_request) | **POST** /app/workflows/approval_requests/{approval_id}/revoke | Revoke approval request
*AutoSweepApi* | [**cancel_auto_sweep_task_by_id**](docs/AutoSweepApi.md#cancel_auto_sweep_task_by_id) | **POST** /auto_sweep/tasks/{task_id}/cancel | Cancel auto sweep task
*AutoSweepApi* | [**create_auto_sweep_task**](docs/AutoSweepApi.md#create_auto_sweep_task) | **POST** /auto_sweep/tasks | Create auto-sweep task
*AutoSweepApi* | [**create_wallet_sweep_to_addresses**](docs/AutoSweepApi.md#create_wallet_sweep_to_addresses) | **POST** /auto_sweep/sweep_to_addresses | Create sweep-to address
*AutoSweepApi* | [**get_auto_sweep_task_by_id**](docs/AutoSweepApi.md#get_auto_sweep_task_by_id) | **GET** /auto_sweep/tasks/{task_id} | Get auto-sweep task details
Expand Down Expand Up @@ -119,6 +120,7 @@ Class | Method | HTTP request | Description
*FeeStationApi* | [**estimate_fee_station_fee**](docs/FeeStationApi.md#estimate_fee_station_fee) | **POST** /fee_station/transactions/estimate_fee | Estimate transaction fee
*FeeStationApi* | [**get_fee_station_transaction_by_id**](docs/FeeStationApi.md#get_fee_station_transaction_by_id) | **GET** /fee_station/transactions/{transaction_id} | Get Fee Station transaction information
*FeeStationApi* | [**list_fee_station_addresses**](docs/FeeStationApi.md#list_fee_station_addresses) | **GET** /fee_station/addresses | List Fee Station addresses
*FeeStationApi* | [**list_fee_station_fiat_transactions**](docs/FeeStationApi.md#list_fee_station_fiat_transactions) | **GET** /fee_station/fiat_transactions | List Fee Station fiat transactions
*FeeStationApi* | [**list_fee_station_transactions**](docs/FeeStationApi.md#list_fee_station_transactions) | **GET** /fee_station/transactions | List all Fee Station transactions
*FeeStationApi* | [**list_token_balances_for_fee_station**](docs/FeeStationApi.md#list_token_balances_for_fee_station) | **GET** /fee_station/tokens | List Fee Station token balances
*GraphQLApi* | [**execute_graphql**](docs/GraphQLApi.md#execute_graphql) | **POST** /graphql | Execute a GraphQL query or mutation
Expand Down Expand Up @@ -586,6 +588,8 @@ Class | Method | HTTP request | Description
- [FeeStationCheckFeeStationUsage](docs/FeeStationCheckFeeStationUsage.md)
- [FeeStationCheckFeeStationUsageResponse](docs/FeeStationCheckFeeStationUsageResponse.md)
- [FeeStationDestination](docs/FeeStationDestination.md)
- [FeeStationFiatTransaction](docs/FeeStationFiatTransaction.md)
- [FeeStationFiatTransactionType](docs/FeeStationFiatTransactionType.md)
- [FeeStationGasStationType](docs/FeeStationGasStationType.md)
- [FeeStationSponsorTransactionDescription](docs/FeeStationSponsorTransactionDescription.md)
- [FeeStationTransactionType](docs/FeeStationTransactionType.md)
Expand Down Expand Up @@ -658,6 +662,7 @@ Class | Method | HTTP request | Description
- [ListDestinationEntries200Response](docs/ListDestinationEntries200Response.md)
- [ListDestinations200Response](docs/ListDestinations200Response.md)
- [ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
- [ListFeeStationFiatTransactions200Response](docs/ListFeeStationFiatTransactions200Response.md)
- [ListForcedSweepRequests200Response](docs/ListForcedSweepRequests200Response.md)
- [ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
- [ListKeyShareHolders200Response](docs/ListKeyShareHolders200Response.md)
Expand Down
5 changes: 4 additions & 1 deletion cobo_waas2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
""" # noqa: E501


__version__ = "1.33.0"
__version__ = "1.34.0"

# import apis into sdk package
from cobo_waas2.api.address_books_api import AddressBooksApi
Expand Down Expand Up @@ -302,6 +302,8 @@
from cobo_waas2.models.fee_station_check_fee_station_usage import FeeStationCheckFeeStationUsage
from cobo_waas2.models.fee_station_check_fee_station_usage_response import FeeStationCheckFeeStationUsageResponse
from cobo_waas2.models.fee_station_destination import FeeStationDestination
from cobo_waas2.models.fee_station_fiat_transaction import FeeStationFiatTransaction
from cobo_waas2.models.fee_station_fiat_transaction_type import FeeStationFiatTransactionType
from cobo_waas2.models.fee_station_gas_station_type import FeeStationGasStationType
from cobo_waas2.models.fee_station_sponsor_transaction_description import FeeStationSponsorTransactionDescription
from cobo_waas2.models.fee_station_transaction_type import FeeStationTransactionType
Expand Down Expand Up @@ -374,6 +376,7 @@
from cobo_waas2.models.list_destination_entries200_response import ListDestinationEntries200Response
from cobo_waas2.models.list_destinations200_response import ListDestinations200Response
from cobo_waas2.models.list_exchanges200_response_inner import ListExchanges200ResponseInner
from cobo_waas2.models.list_fee_station_fiat_transactions200_response import ListFeeStationFiatTransactions200Response
from cobo_waas2.models.list_forced_sweep_requests200_response import ListForcedSweepRequests200Response
from cobo_waas2.models.list_key_share_holder_groups200_response import ListKeyShareHolderGroups200Response
from cobo_waas2.models.list_key_share_holders200_response import ListKeyShareHolders200Response
Expand Down
169 changes: 169 additions & 0 deletions cobo_waas2/api/auto_sweep_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,175 @@ def __init__(self, api_client: ApiClient = None) -> None:
api_client = ApiClient.get_default()
self.api_client = api_client

@validate_call
def cancel_auto_sweep_task_by_id(
self,
task_id: Annotated[StrictStr, Field(description="The auto sweep task ID.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
) -> AutoSweepTask:
"""Cancel auto sweep task

This operation cancels an in-progress auto sweep task by its ID. Only tasks with the `Submitted` status can be cancelled. Tasks that have already been processed (status `TransactionCreated`) cannot be cancelled.

:param task_id: The auto sweep task ID. (required)
:type task_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:return: Returns the result object.
""" # noqa: E501

_param = self._cancel_auto_sweep_task_by_id_serialize(
task_id=task_id,
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "AutoSweepTask",
'4XX': "ErrorResponse",
'5XX': "ErrorResponse",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
response_data.read()
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
).data

@validate_call
def cancel_auto_sweep_task_by_id_with_http_info(
self,
task_id: Annotated[StrictStr, Field(description="The auto sweep task ID.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
) -> ApiResponse[AutoSweepTask]:
"""Cancel auto sweep task

This operation cancels an in-progress auto sweep task by its ID. Only tasks with the `Submitted` status can be cancelled. Tasks that have already been processed (status `TransactionCreated`) cannot be cancelled.

:param task_id: The auto sweep task ID. (required)
:type task_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:return: Returns the result object.
""" # noqa: E501

_param = self._cancel_auto_sweep_task_by_id_serialize(
task_id=task_id,
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "AutoSweepTask",
'4XX': "ErrorResponse",
'5XX': "ErrorResponse",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
response_data.read()
return self.api_client.response_deserialize(
response_data=response_data,
response_types_map=_response_types_map,
)

@validate_call
def cancel_auto_sweep_task_by_id_without_preload_content(
self,
task_id: Annotated[StrictStr, Field(description="The auto sweep task ID.")],
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Tuple[
Annotated[StrictFloat, Field(gt=0)],
Annotated[StrictFloat, Field(gt=0)]
]
] = None,
) -> RESTResponseType:
"""Cancel auto sweep task

This operation cancels an in-progress auto sweep task by its ID. Only tasks with the `Submitted` status can be cancelled. Tasks that have already been processed (status `TransactionCreated`) cannot be cancelled.

:param task_id: The auto sweep task ID. (required)
:type task_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:type _request_timeout: int, tuple(int, int), optional
:return: Returns the result object.
""" # noqa: E501

_param = self._cancel_auto_sweep_task_by_id_serialize(
task_id=task_id,
)

_response_types_map: Dict[str, Optional[str]] = {
'200': "AutoSweepTask",
'4XX': "ErrorResponse",
'5XX': "ErrorResponse",
}
response_data = self.api_client.call_api(
*_param,
_request_timeout=_request_timeout
)
return response_data.response

def _cancel_auto_sweep_task_by_id_serialize(
self,
task_id,
) -> RequestSerialized:
_path_params: Dict[str, str] = {}
_query_params: List[Tuple[str, str]] = []
_form_params: List[Tuple[str, str]] = []
_files: Dict[str, Union[str, bytes]] = {}
_body_params: Optional[bytes] = None

# process the path parameters
if task_id is not None:
_path_params['task_id'] = task_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter

# set the HTTP header `Accept`
_header_params = {
"Accept": "application/json",
"Content-Type": "application/json"
}

return self.api_client.param_serialize(
method='POST',
resource_path='/auto_sweep/tasks/{task_id}/cancel',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
body=_body_params,
post_params=_form_params,
files=_files,
)

@validate_call
def create_auto_sweep_task(
self,
Expand Down
Loading
Loading