0x-sra-client.py: Fix bug in config_order, and other small improvements (#2399)
* Bug fix: unescape backslashes in regexes Root problem is that there are too many backslashes in the SRA spec itself. See https://github.com/0xProject/0x-monorepo/issues/1727 This was previously fixed for heavily-tested endpoints (get and post order, etc), but was only recently discovered for the get-order-config endpoint. * Demonstrate get_order_config() * Rename DefaultApi to RelayerApi * Simplify RelayerApi instantiation * Document paylod and response schemas * Stop caring which contracts are wrapped * Increase platform agnosticism * Update CHANGELOG * Remove unnecessary f-string
This commit is contained in:
parent
4c21a697f4
commit
551a65c069
28
.gitignore
vendored
28
.gitignore
vendored
@ -160,33 +160,7 @@ contracts/exchange-forwarder/generated-wrappers/
|
||||
contracts/exchange-forwarder/test/generated-wrappers/
|
||||
contracts/dev-utils/generated-wrappers/
|
||||
contracts/dev-utils/test/generated-wrappers/
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dev_utils/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_token/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/exchange/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/asset_proxy_owner/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/coordinator/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/coordinator_registry/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dummy_erc20_token/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dummy_erc721_token/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dutch_auction/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc1155_mintable/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc1155_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_bridge_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_token/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/forwarder/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_asset_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_validator/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_wallet/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/multi_asset_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/order_validator/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/staking/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/staking_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/static_call_proxy/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/weth9/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/zrx_token/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/zrx_vault/__init__.py
|
||||
python-packages/contract_wrappers/src/zero_ex/contract_wrappers/*/__init__.py
|
||||
|
||||
# solc-bin in sol-compiler
|
||||
packages/sol-compiler/solc_bin/
|
||||
|
@ -6,6 +6,7 @@
|
||||
# we import things outside of top-level because 3rd party libs may not yet be
|
||||
# installed when you invoke this script
|
||||
|
||||
from glob import glob
|
||||
import subprocess # nosec
|
||||
from shutil import rmtree
|
||||
from os import environ, path, remove
|
||||
@ -18,30 +19,6 @@ from setuptools import find_packages, setup
|
||||
from setuptools.command.test import test as TestCommand
|
||||
|
||||
|
||||
CONTRACTS_TO_BE_WRAPPED = [
|
||||
"asset_proxy_owner",
|
||||
"coordinator",
|
||||
"coordinator_registry",
|
||||
"dev_utils",
|
||||
"dummy_erc20_token",
|
||||
"dummy_erc721_token",
|
||||
"dutch_auction",
|
||||
"erc20_proxy",
|
||||
"erc20_token",
|
||||
"erc721_proxy",
|
||||
"erc721_token",
|
||||
"exchange",
|
||||
"forwarder",
|
||||
"i_asset_proxy",
|
||||
"i_validator",
|
||||
"i_wallet",
|
||||
"multi_asset_proxy",
|
||||
"order_validator",
|
||||
"weth9",
|
||||
"zrx_token",
|
||||
]
|
||||
|
||||
|
||||
class PreInstallCommand(distutils.command.build_py.build_py):
|
||||
"""Custom setuptools command class for pulling in generated code."""
|
||||
|
||||
@ -128,11 +105,27 @@ class CleanCommandExtension(clean):
|
||||
rmtree(".mypy_cache", ignore_errors=True)
|
||||
rmtree(".tox", ignore_errors=True)
|
||||
rmtree(".pytest_cache", ignore_errors=True)
|
||||
rmtree("src/0x_contract_wrappers.egg-info", ignore_errors=True)
|
||||
rmtree(
|
||||
path.join("src", "0x_contract_wrappers.egg-info"),
|
||||
ignore_errors=True,
|
||||
)
|
||||
# generated files:
|
||||
for contract in CONTRACTS_TO_BE_WRAPPED:
|
||||
print("Removing src/zero_ex/contract_wrappers/*/__init__.py...")
|
||||
for contract in glob(
|
||||
path.join(
|
||||
".", "src", "zero_ex", "contract_wrappers", "*", "__init__.py"
|
||||
)
|
||||
):
|
||||
try:
|
||||
remove(f"src/zero_ex/contract_wrappers/{contract}/__init__.py")
|
||||
remove(
|
||||
path.join(
|
||||
"src",
|
||||
"zero_ex",
|
||||
"contract_wrappers",
|
||||
contract,
|
||||
"__init__.py",
|
||||
)
|
||||
)
|
||||
except FileNotFoundError:
|
||||
pass
|
||||
|
||||
|
@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 5.0.0 - TBD
|
||||
|
||||
- Renamed class DefaultApi to RelayerApi, and changed its construction parameters.
|
||||
- Updated documentation to include schemas for request payloads and responses, and to demonstrate the RelayerApi.get_order_config() method.
|
||||
- Fixed bug with numeric types not being handled properly for asset data trade info and order config methods.
|
||||
|
||||
## 4.0.0 - 2019-12-03
|
||||
|
||||
- Migrated from v2 to v3 of the 0x protocol.
|
||||
|
@ -9,10 +9,55 @@ Python zero_ex.sra_client
|
||||
|
||||
.. automodule:: zero_ex.sra_client
|
||||
|
||||
zero_ex.sra_client.DefaultApi
|
||||
zero_ex.sra_client.RelayerApi
|
||||
=============================
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.DefaultApi
|
||||
.. autoclass:: zero_ex.sra_client.RelayerApi
|
||||
:members:
|
||||
|
||||
zero_ex.sra_client.models
|
||||
=========================
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_asset_data_pairs_response_schema.RelayerApiAssetDataPairsResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_asset_data_trade_info_schema.RelayerApiAssetDataTradeInfoSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_error_response_schema.RelayerApiErrorResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_error_response_schema_validation_errors.RelayerApiErrorResponseSchemaValidationErrors
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_fee_recipients_response_schema.RelayerApiFeeRecipientsResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_orderbook_response_schema.RelayerApiOrderbookResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_order_config_payload_schema.RelayerApiOrderConfigPayloadSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_order_config_response_schema.RelayerApiOrderConfigResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_subscribe_payload_schema.RelayerApiOrdersChannelSubscribePayloadSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_subscribe_schema.RelayerApiOrdersChannelSubscribeSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_update_schema.RelayerApiOrdersChannelUpdateSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_order_schema.RelayerApiOrderSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_response_schema.RelayerApiOrdersResponseSchema
|
||||
:members:
|
||||
|
||||
.. autoclass:: zero_ex.sra_client.models.signed_order_schema.SignedOrderSchema
|
||||
:members:
|
||||
|
||||
Indices and tables
|
||||
|
@ -42,10 +42,8 @@ replicate this environment yourself by using `this docker-compose.yml file
|
||||
Configure and create an API client instance
|
||||
-------------------------------------------
|
||||
|
||||
>>> from zero_ex.sra_client import ApiClient, Configuration, DefaultApi
|
||||
>>> config = Configuration()
|
||||
>>> config.host = "http://localhost:3000"
|
||||
>>> relayer = DefaultApi(ApiClient(config))
|
||||
>>> from zero_ex.sra_client import RelayerApi
|
||||
>>> relayer = RelayerApi("http://localhost:3000")
|
||||
|
||||
Preparing to trade
|
||||
------------------
|
||||
@ -121,10 +119,39 @@ Post an order for our Maker to trade ZRX for WETH:
|
||||
... )
|
||||
... )
|
||||
|
||||
Before hashing and submitting our order, it's a good idea to ask the relayer
|
||||
how to configure the order, so that the submission won't be rejected:
|
||||
|
||||
>>> order_config = relayer.get_order_config(
|
||||
... relayer_api_order_config_payload_schema={
|
||||
... "makerAddress": order["makerAddress"],
|
||||
... "takerAddress": order["takerAddress"],
|
||||
... "makerAssetAmount": order["makerAssetAmount"],
|
||||
... "takerAssetAmount": order["takerAssetAmount"],
|
||||
... "expirationTimeSeconds": order["expirationTimeSeconds"],
|
||||
... "makerAssetData": '0x' + order["makerAssetData"].hex(),
|
||||
... "takerAssetData": '0x' + order["takerAssetData"].hex(),
|
||||
... "exchangeAddress": contract_addresses.exchange,
|
||||
... }
|
||||
... )
|
||||
>>> order_config
|
||||
{'fee_recipient_address': '0x0000000000000000000000000000000000000001',
|
||||
'maker_fee': '0',
|
||||
'sender_address': '0x0000000000000000000000000000000000000000',
|
||||
'taker_fee': '0'}
|
||||
|
||||
Now we'll apply that configuration to our order before proceeding:
|
||||
|
||||
>>> order["feeRecipientAddress"] = order_config.fee_recipient_address
|
||||
>>> order["makerFee"] = int(order_config.maker_fee)
|
||||
>>> order["takerFee"] = int(order_config.taker_fee)
|
||||
>>> order["senderAddress"] = order_config.sender_address
|
||||
|
||||
>>> from zero_ex.order_utils import generate_order_hash_hex
|
||||
>>> order_hash_hex = generate_order_hash_hex(
|
||||
... order, contract_addresses.exchange, Web3(eth_node).eth.chainId
|
||||
... )
|
||||
|
||||
>>> relayer.post_order_with_http_info(
|
||||
... signed_order_schema=order_to_jsdict(
|
||||
... order=order,
|
||||
@ -155,7 +182,7 @@ Retrieve the order we just posted:
|
||||
'order': {'chainId': 1337,
|
||||
'exchangeAddress': '0x...',
|
||||
'expirationTimeSeconds': '...',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000000',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000001',
|
||||
'makerAddress': '0x...',
|
||||
'makerAssetAmount': '2',
|
||||
'makerAssetData': '0xf47261b0000000000000000000000000...',
|
||||
@ -182,7 +209,7 @@ of the one we just posted:
|
||||
'order': {'chainId': 1337,
|
||||
'exchangeAddress': '0x...',
|
||||
'expirationTimeSeconds': '...',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000000',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000001',
|
||||
'makerAddress': '0x...',
|
||||
'makerAssetAmount': '2',
|
||||
'makerAssetData': '0xf47261b000000000000000000000000...',
|
||||
@ -242,7 +269,7 @@ consists just of our order):
|
||||
'order': {'chainId': 1337,
|
||||
'exchangeAddress': '0x...',
|
||||
'expirationTimeSeconds': '...',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000000',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000001',
|
||||
'makerAddress': '0x...',
|
||||
'makerAssetAmount': '2',
|
||||
'makerAssetData': '0xf47261b0000000000000000000000000...',
|
||||
@ -278,7 +305,7 @@ hash. To calculate an order hash, we'll use the Exchange contract:
|
||||
>>> pprint(order)
|
||||
{'chainId': 1337,
|
||||
'expirationTimeSeconds': ...,
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000000',
|
||||
'feeRecipientAddress': '0x0000000000000000000000000000000000000001',
|
||||
'makerAddress': '0x...',
|
||||
'makerAssetAmount': 2,
|
||||
'makerAssetData': b...
|
||||
@ -403,7 +430,7 @@ from __future__ import absolute_import
|
||||
__version__ = "1.0.0"
|
||||
|
||||
# import apis into sdk package
|
||||
from .api.default_api import DefaultApi
|
||||
from .api.relayer_api import RelayerApi
|
||||
|
||||
# import ApiClient
|
||||
from .api_client import ApiClient
|
||||
|
@ -3,4 +3,4 @@ from __future__ import absolute_import
|
||||
# flake8: noqa
|
||||
|
||||
# import apis into api package
|
||||
from zero_ex.sra_client.api.default_api import DefaultApi
|
||||
from zero_ex.sra_client.api.relayer_api import RelayerApi
|
||||
|
@ -9,23 +9,24 @@ import re # noqa: F401
|
||||
import six
|
||||
|
||||
from zero_ex.sra_client.api_client import ApiClient
|
||||
from zero_ex.sra_client.configuration import Configuration
|
||||
from zero_ex.sra_client.models.relayer_api_order_config_payload_schema import (
|
||||
RelayerApiOrderConfigPayloadSchema,
|
||||
)
|
||||
|
||||
|
||||
class DefaultApi(object):
|
||||
"""Default API for SRA compliant 0x relayers."""
|
||||
class RelayerApi(object):
|
||||
"""API for SRA compliant 0x relayers."""
|
||||
|
||||
# NOTE: This class is auto generated by OpenAPI Generator
|
||||
# Ref: https://openapi-generator.tech
|
||||
|
||||
# Do not edit the class manually.
|
||||
|
||||
def __init__(self, api_client=None):
|
||||
if api_client is None:
|
||||
api_client = ApiClient()
|
||||
self.api_client = api_client
|
||||
def __init__(self, url: str):
|
||||
config = Configuration()
|
||||
config.host = url
|
||||
self.api_client = ApiClient(config)
|
||||
|
||||
def get_asset_pairs(self, **kwargs):
|
||||
"""get_asset_pairs
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class OrderSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class PaginatedCollectionSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiAssetDataPairsResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -35,10 +29,9 @@ class RelayerApiAssetDataPairsResponseSchema(object):
|
||||
|
||||
@property
|
||||
def records(self):
|
||||
"""Gets the records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501
|
||||
"""Gets the records of this RelayerApiAssetDataPairsResponseSchema.
|
||||
|
||||
|
||||
:return: The records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501
|
||||
:return: The records of this RelayerApiAssetDataPairsResponseSchema.
|
||||
:rtype: list[object]
|
||||
"""
|
||||
return self._records
|
||||
@ -47,8 +40,7 @@ class RelayerApiAssetDataPairsResponseSchema(object):
|
||||
def records(self, records):
|
||||
"""Sets the records of this RelayerApiAssetDataPairsResponseSchema.
|
||||
|
||||
|
||||
:param records: The records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501
|
||||
:param records: The records of this RelayerApiAssetDataPairsResponseSchema.
|
||||
:type: list[object]
|
||||
"""
|
||||
if records is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -56,10 +50,10 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
|
||||
@property
|
||||
def asset_data(self):
|
||||
"""Gets the asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
"""Gets the asset_data of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:return: The asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:return: The asset_data of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._asset_data
|
||||
@ -69,7 +63,7 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
"""Sets the asset_data of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:param asset_data: The asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:param asset_data: The asset_data of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:type: str
|
||||
"""
|
||||
if asset_data is None:
|
||||
@ -87,10 +81,10 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
|
||||
@property
|
||||
def min_amount(self):
|
||||
"""Gets the min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
"""Gets the min_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:return: The min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:return: The min_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._min_amount
|
||||
@ -100,24 +94,24 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
"""Sets the min_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:param min_amount: The min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:param min_amount: The min_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:type: str
|
||||
"""
|
||||
if min_amount is not None and not re.search(
|
||||
r"^\\d+$", min_amount
|
||||
r"^\d+$", min_amount
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `min_amount`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `min_amount`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._min_amount = min_amount
|
||||
|
||||
@property
|
||||
def max_amount(self):
|
||||
"""Gets the max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
"""Gets the max_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:return: The max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:return: The max_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._max_amount
|
||||
@ -127,24 +121,24 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
"""Sets the max_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:param max_amount: The max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:param max_amount: The max_amount of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:type: str
|
||||
"""
|
||||
if max_amount is not None and not re.search(
|
||||
r"^\\d+$", max_amount
|
||||
r"^\d+$", max_amount
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `max_amount`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `max_amount`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._max_amount = max_amount
|
||||
|
||||
@property
|
||||
def precision(self):
|
||||
"""Gets the precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
"""Gets the precision of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:return: The precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:return: The precision of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:rtype: float
|
||||
"""
|
||||
return self._precision
|
||||
@ -154,7 +148,7 @@ class RelayerApiAssetDataTradeInfoSchema(object):
|
||||
"""Sets the precision of this RelayerApiAssetDataTradeInfoSchema.
|
||||
|
||||
|
||||
:param precision: The precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501
|
||||
:param precision: The precision of this RelayerApiAssetDataTradeInfoSchema.
|
||||
:type: float
|
||||
"""
|
||||
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiErrorResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -50,10 +44,10 @@ class RelayerApiErrorResponseSchema(object):
|
||||
|
||||
@property
|
||||
def code(self):
|
||||
"""Gets the code of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
"""Gets the code of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:return: The code of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:return: The code of this RelayerApiErrorResponseSchema.
|
||||
:rtype: int
|
||||
"""
|
||||
return self._code
|
||||
@ -63,7 +57,7 @@ class RelayerApiErrorResponseSchema(object):
|
||||
"""Sets the code of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:param code: The code of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:param code: The code of this RelayerApiErrorResponseSchema.
|
||||
:type: int
|
||||
"""
|
||||
if code is None:
|
||||
@ -83,10 +77,10 @@ class RelayerApiErrorResponseSchema(object):
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
"""Gets the reason of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:return: The reason of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:return: The reason of this RelayerApiErrorResponseSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
@ -96,7 +90,7 @@ class RelayerApiErrorResponseSchema(object):
|
||||
"""Sets the reason of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:param reason: The reason of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:param reason: The reason of this RelayerApiErrorResponseSchema.
|
||||
:type: str
|
||||
"""
|
||||
if reason is None:
|
||||
@ -108,10 +102,10 @@ class RelayerApiErrorResponseSchema(object):
|
||||
|
||||
@property
|
||||
def validation_errors(self):
|
||||
"""Gets the validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
"""Gets the validation_errors of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:return: The validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:return: The validation_errors of this RelayerApiErrorResponseSchema.
|
||||
:rtype: list[RelayerApiErrorResponseSchemaValidationErrors]
|
||||
"""
|
||||
return self._validation_errors
|
||||
@ -121,7 +115,7 @@ class RelayerApiErrorResponseSchema(object):
|
||||
"""Sets the validation_errors of this RelayerApiErrorResponseSchema.
|
||||
|
||||
|
||||
:param validation_errors: The validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501
|
||||
:param validation_errors: The validation_errors of this RelayerApiErrorResponseSchema.
|
||||
:type: list[RelayerApiErrorResponseSchemaValidationErrors]
|
||||
"""
|
||||
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -39,10 +33,10 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
|
||||
@property
|
||||
def field(self):
|
||||
"""Gets the field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
"""Gets the field of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:return: The field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:return: The field of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._field
|
||||
@ -52,7 +46,7 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
"""Sets the field of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:param field: The field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:param field: The field of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:type: str
|
||||
"""
|
||||
if field is None:
|
||||
@ -64,10 +58,10 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
|
||||
@property
|
||||
def code(self):
|
||||
"""Gets the code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
"""Gets the code of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:return: The code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:return: The code of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:rtype: int
|
||||
"""
|
||||
return self._code
|
||||
@ -77,7 +71,7 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
"""Sets the code of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:param code: The code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:param code: The code of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:type: int
|
||||
"""
|
||||
if code is None:
|
||||
@ -97,10 +91,10 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
|
||||
@property
|
||||
def reason(self):
|
||||
"""Gets the reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
"""Gets the reason of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:return: The reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:return: The reason of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._reason
|
||||
@ -110,7 +104,7 @@ class RelayerApiErrorResponseSchemaValidationErrors(object):
|
||||
"""Sets the reason of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
|
||||
|
||||
:param reason: The reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501
|
||||
:param reason: The reason of this RelayerApiErrorResponseSchemaValidationErrors.
|
||||
:type: str
|
||||
"""
|
||||
if reason is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiFeeRecipientsResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -35,10 +29,10 @@ class RelayerApiFeeRecipientsResponseSchema(object):
|
||||
|
||||
@property
|
||||
def records(self):
|
||||
"""Gets the records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501
|
||||
"""Gets the records of this RelayerApiFeeRecipientsResponseSchema.
|
||||
|
||||
|
||||
:return: The records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501
|
||||
:return: The records of this RelayerApiFeeRecipientsResponseSchema.
|
||||
:rtype: list[str]
|
||||
"""
|
||||
return self._records
|
||||
@ -48,7 +42,7 @@ class RelayerApiFeeRecipientsResponseSchema(object):
|
||||
"""Sets the records of this RelayerApiFeeRecipientsResponseSchema.
|
||||
|
||||
|
||||
:param records: The records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501
|
||||
:param records: The records of this RelayerApiFeeRecipientsResponseSchema.
|
||||
:type: list[str]
|
||||
"""
|
||||
if records is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -77,10 +71,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def maker_address(self):
|
||||
"""Gets the maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the maker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The maker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_address
|
||||
@ -90,7 +84,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the maker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param maker_address: The maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param maker_address: The maker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_address is None:
|
||||
@ -108,10 +102,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def taker_address(self):
|
||||
"""Gets the taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the taker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The taker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_address
|
||||
@ -121,7 +115,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the taker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param taker_address: The taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param taker_address: The taker_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_address is None:
|
||||
@ -139,10 +133,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def maker_asset_amount(self):
|
||||
"""Gets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_asset_amount
|
||||
@ -152,7 +146,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param maker_asset_amount: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param maker_asset_amount: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_asset_amount is None:
|
||||
@ -160,20 +154,20 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"Invalid value for `maker_asset_amount`, must not be `None`"
|
||||
) # noqa: E501
|
||||
if maker_asset_amount is not None and not re.search(
|
||||
r"^\\d+$", maker_asset_amount
|
||||
r"^\d+$", maker_asset_amount
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `maker_asset_amount`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `maker_asset_amount`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._maker_asset_amount = maker_asset_amount
|
||||
|
||||
@property
|
||||
def taker_asset_amount(self):
|
||||
"""Gets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_asset_amount
|
||||
@ -183,7 +177,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param taker_asset_amount: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param taker_asset_amount: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_asset_amount is None:
|
||||
@ -191,20 +185,20 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"Invalid value for `taker_asset_amount`, must not be `None`"
|
||||
) # noqa: E501
|
||||
if taker_asset_amount is not None and not re.search(
|
||||
r"^\\d+$", taker_asset_amount
|
||||
r"^\d+$", taker_asset_amount
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `taker_asset_amount`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `taker_asset_amount`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._taker_asset_amount = taker_asset_amount
|
||||
|
||||
@property
|
||||
def maker_asset_data(self):
|
||||
"""Gets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_asset_data
|
||||
@ -214,7 +208,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param maker_asset_data: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param maker_asset_data: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_asset_data is None:
|
||||
@ -232,10 +226,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def taker_asset_data(self):
|
||||
"""Gets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_asset_data
|
||||
@ -245,7 +239,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param taker_asset_data: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param taker_asset_data: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_asset_data is None:
|
||||
@ -263,10 +257,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def exchange_address(self):
|
||||
"""Gets the exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the exchange_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The exchange_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._exchange_address
|
||||
@ -276,7 +270,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the exchange_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param exchange_address: The exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param exchange_address: The exchange_address of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if exchange_address is None:
|
||||
@ -294,10 +288,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
|
||||
@property
|
||||
def expiration_time_seconds(self):
|
||||
"""Gets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
"""Gets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:return: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:return: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._expiration_time_seconds
|
||||
@ -307,7 +301,7 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"""Sets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema.
|
||||
|
||||
|
||||
:param expiration_time_seconds: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501
|
||||
:param expiration_time_seconds: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if expiration_time_seconds is None:
|
||||
@ -315,10 +309,10 @@ class RelayerApiOrderConfigPayloadSchema(object):
|
||||
"Invalid value for `expiration_time_seconds`, must not be `None`"
|
||||
) # noqa: E501
|
||||
if expiration_time_seconds is not None and not re.search(
|
||||
r"^\\d+$", expiration_time_seconds
|
||||
r"^\d+$", expiration_time_seconds
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `expiration_time_seconds`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `expiration_time_seconds`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._expiration_time_seconds = expiration_time_seconds
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrderConfigResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -57,10 +51,10 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
|
||||
@property
|
||||
def maker_fee(self):
|
||||
"""Gets the maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
"""Gets the maker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:return: The maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:return: The maker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_fee
|
||||
@ -70,7 +64,7 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"""Sets the maker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:param maker_fee: The maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:param maker_fee: The maker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_fee is None:
|
||||
@ -78,20 +72,20 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"Invalid value for `maker_fee`, must not be `None`"
|
||||
) # noqa: E501
|
||||
if maker_fee is not None and not re.search(
|
||||
r"^\\d+$", maker_fee
|
||||
r"^\d+$", maker_fee
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `maker_fee`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `maker_fee`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._maker_fee = maker_fee
|
||||
|
||||
@property
|
||||
def taker_fee(self):
|
||||
"""Gets the taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
"""Gets the taker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:return: The taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:return: The taker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_fee
|
||||
@ -101,7 +95,7 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"""Sets the taker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:param taker_fee: The taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:param taker_fee: The taker_fee of this RelayerApiOrderConfigResponseSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_fee is None:
|
||||
@ -109,20 +103,20 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"Invalid value for `taker_fee`, must not be `None`"
|
||||
) # noqa: E501
|
||||
if taker_fee is not None and not re.search(
|
||||
r"^\\d+$", taker_fee
|
||||
r"^\d+$", taker_fee
|
||||
): # noqa: E501
|
||||
raise ValueError(
|
||||
r"Invalid value for `taker_fee`, must be a follow pattern or equal to `/^\\d+$/`"
|
||||
r"Invalid value for `taker_fee`, must be a follow pattern or equal to `/^\d+$/`"
|
||||
) # noqa: E501
|
||||
|
||||
self._taker_fee = taker_fee
|
||||
|
||||
@property
|
||||
def fee_recipient_address(self):
|
||||
"""Gets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
"""Gets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:return: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:return: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._fee_recipient_address
|
||||
@ -132,7 +126,7 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"""Sets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:param fee_recipient_address: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:param fee_recipient_address: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema.
|
||||
:type: str
|
||||
"""
|
||||
if fee_recipient_address is None:
|
||||
@ -150,10 +144,10 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
|
||||
@property
|
||||
def sender_address(self):
|
||||
"""Gets the sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
"""Gets the sender_address of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:return: The sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:return: The sender_address of this RelayerApiOrderConfigResponseSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._sender_address
|
||||
@ -163,7 +157,7 @@ class RelayerApiOrderConfigResponseSchema(object):
|
||||
"""Sets the sender_address of this RelayerApiOrderConfigResponseSchema.
|
||||
|
||||
|
||||
:param sender_address: The sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501
|
||||
:param sender_address: The sender_address of this RelayerApiOrderConfigResponseSchema.
|
||||
:type: str
|
||||
"""
|
||||
if sender_address is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrderSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -37,10 +31,10 @@ class RelayerApiOrderSchema(object):
|
||||
|
||||
@property
|
||||
def order(self):
|
||||
"""Gets the order of this RelayerApiOrderSchema. # noqa: E501
|
||||
"""Gets the order of this RelayerApiOrderSchema.
|
||||
|
||||
|
||||
:return: The order of this RelayerApiOrderSchema. # noqa: E501
|
||||
:return: The order of this RelayerApiOrderSchema.
|
||||
:rtype: OrderSchema
|
||||
"""
|
||||
return self._order
|
||||
@ -50,7 +44,7 @@ class RelayerApiOrderSchema(object):
|
||||
"""Sets the order of this RelayerApiOrderSchema.
|
||||
|
||||
|
||||
:param order: The order of this RelayerApiOrderSchema. # noqa: E501
|
||||
:param order: The order of this RelayerApiOrderSchema.
|
||||
:type: OrderSchema
|
||||
"""
|
||||
if order is None:
|
||||
@ -62,10 +56,10 @@ class RelayerApiOrderSchema(object):
|
||||
|
||||
@property
|
||||
def meta_data(self):
|
||||
"""Gets the meta_data of this RelayerApiOrderSchema. # noqa: E501
|
||||
"""Gets the meta_data of this RelayerApiOrderSchema.
|
||||
|
||||
|
||||
:return: The meta_data of this RelayerApiOrderSchema. # noqa: E501
|
||||
:return: The meta_data of this RelayerApiOrderSchema.
|
||||
:rtype: object
|
||||
"""
|
||||
return self._meta_data
|
||||
@ -75,7 +69,7 @@ class RelayerApiOrderSchema(object):
|
||||
"""Sets the meta_data of this RelayerApiOrderSchema.
|
||||
|
||||
|
||||
:param meta_data: The meta_data of this RelayerApiOrderSchema. # noqa: E501
|
||||
:param meta_data: The meta_data of this RelayerApiOrderSchema.
|
||||
:type: object
|
||||
"""
|
||||
if meta_data is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrderbookResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -40,10 +34,10 @@ class RelayerApiOrderbookResponseSchema(object):
|
||||
|
||||
@property
|
||||
def bids(self):
|
||||
"""Gets the bids of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
"""Gets the bids of this RelayerApiOrderbookResponseSchema.
|
||||
|
||||
|
||||
:return: The bids of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
:return: The bids of this RelayerApiOrderbookResponseSchema.
|
||||
:rtype: RelayerApiOrdersResponseSchema
|
||||
"""
|
||||
return self._bids
|
||||
@ -53,7 +47,7 @@ class RelayerApiOrderbookResponseSchema(object):
|
||||
"""Sets the bids of this RelayerApiOrderbookResponseSchema.
|
||||
|
||||
|
||||
:param bids: The bids of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
:param bids: The bids of this RelayerApiOrderbookResponseSchema.
|
||||
:type: RelayerApiOrdersResponseSchema
|
||||
"""
|
||||
if bids is None:
|
||||
@ -65,10 +59,10 @@ class RelayerApiOrderbookResponseSchema(object):
|
||||
|
||||
@property
|
||||
def asks(self):
|
||||
"""Gets the asks of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
"""Gets the asks of this RelayerApiOrderbookResponseSchema.
|
||||
|
||||
|
||||
:return: The asks of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
:return: The asks of this RelayerApiOrderbookResponseSchema.
|
||||
:rtype: RelayerApiOrdersResponseSchema
|
||||
"""
|
||||
return self._asks
|
||||
@ -78,7 +72,7 @@ class RelayerApiOrderbookResponseSchema(object):
|
||||
"""Sets the asks of this RelayerApiOrderbookResponseSchema.
|
||||
|
||||
|
||||
:param asks: The asks of this RelayerApiOrderbookResponseSchema. # noqa: E501
|
||||
:param asks: The asks of this RelayerApiOrderbookResponseSchema.
|
||||
:type: RelayerApiOrdersResponseSchema
|
||||
"""
|
||||
if asks is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -79,10 +73,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def maker_asset_proxy_id(self):
|
||||
"""Gets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_asset_proxy_id
|
||||
@ -92,7 +86,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param maker_asset_proxy_id: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param maker_asset_proxy_id: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_asset_proxy_id is not None and not re.search(
|
||||
@ -106,10 +100,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def taker_asset_proxy_id(self):
|
||||
"""Gets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_asset_proxy_id
|
||||
@ -119,7 +113,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param taker_asset_proxy_id: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param taker_asset_proxy_id: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_asset_proxy_id is not None and not re.search(
|
||||
@ -133,10 +127,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def maker_asset_address(self):
|
||||
"""Gets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_asset_address
|
||||
@ -146,7 +140,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param maker_asset_address: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param maker_asset_address: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_asset_address is not None and not re.search(
|
||||
@ -160,10 +154,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def taker_asset_address(self):
|
||||
"""Gets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_asset_address
|
||||
@ -173,7 +167,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param taker_asset_address: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param taker_asset_address: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_asset_address is not None and not re.search(
|
||||
@ -187,10 +181,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def maker_asset_data(self):
|
||||
"""Gets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._maker_asset_data
|
||||
@ -200,7 +194,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param maker_asset_data: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param maker_asset_data: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if maker_asset_data is not None and not re.search(
|
||||
@ -214,10 +208,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def taker_asset_data(self):
|
||||
"""Gets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._taker_asset_data
|
||||
@ -227,7 +221,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param taker_asset_data: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param taker_asset_data: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if taker_asset_data is not None and not re.search(
|
||||
@ -241,10 +235,10 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
|
||||
@property
|
||||
def trader_asset_data(self):
|
||||
"""Gets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
"""Gets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:return: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:return: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._trader_asset_data
|
||||
@ -254,7 +248,7 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object):
|
||||
"""Sets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
|
||||
|
||||
:param trader_asset_data: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501
|
||||
:param trader_asset_data: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema.
|
||||
:type: str
|
||||
"""
|
||||
if trader_asset_data is not None and not re.search(
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -54,10 +48,10 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
"""Gets the type of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:return: The type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:return: The type of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
@ -67,7 +61,7 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
"""Sets the type of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:param type: The type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:param type: The type of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:type: str
|
||||
"""
|
||||
if type is None:
|
||||
@ -86,10 +80,10 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
|
||||
@property
|
||||
def channel(self):
|
||||
"""Gets the channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
"""Gets the channel of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:return: The channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:return: The channel of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._channel
|
||||
@ -99,7 +93,7 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
"""Sets the channel of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:param channel: The channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:param channel: The channel of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:type: str
|
||||
"""
|
||||
if channel is None:
|
||||
@ -118,10 +112,10 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
|
||||
@property
|
||||
def request_id(self):
|
||||
"""Gets the request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
"""Gets the request_id of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:return: The request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:return: The request_id of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._request_id
|
||||
@ -131,7 +125,7 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
"""Sets the request_id of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:param request_id: The request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:param request_id: The request_id of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:type: str
|
||||
"""
|
||||
if request_id is None:
|
||||
@ -143,10 +137,10 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
|
||||
@property
|
||||
def payload(self):
|
||||
"""Gets the payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
"""Gets the payload of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:return: The payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:return: The payload of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:rtype: RelayerApiOrdersChannelSubscribePayloadSchema
|
||||
"""
|
||||
return self._payload
|
||||
@ -156,7 +150,7 @@ class RelayerApiOrdersChannelSubscribeSchema(object):
|
||||
"""Sets the payload of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
|
||||
|
||||
:param payload: The payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501
|
||||
:param payload: The payload of this RelayerApiOrdersChannelSubscribeSchema.
|
||||
:type: RelayerApiOrdersChannelSubscribePayloadSchema
|
||||
"""
|
||||
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -54,10 +48,10 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
|
||||
@property
|
||||
def type(self):
|
||||
"""Gets the type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
"""Gets the type of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:return: The type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:return: The type of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._type
|
||||
@ -67,7 +61,7 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
"""Sets the type of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:param type: The type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:param type: The type of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:type: str
|
||||
"""
|
||||
if type is None:
|
||||
@ -86,10 +80,10 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
|
||||
@property
|
||||
def channel(self):
|
||||
"""Gets the channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
"""Gets the channel of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:return: The channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:return: The channel of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._channel
|
||||
@ -99,7 +93,7 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
"""Sets the channel of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:param channel: The channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:param channel: The channel of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:type: str
|
||||
"""
|
||||
if channel is None:
|
||||
@ -118,10 +112,10 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
|
||||
@property
|
||||
def request_id(self):
|
||||
"""Gets the request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
"""Gets the request_id of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:return: The request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:return: The request_id of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._request_id
|
||||
@ -131,7 +125,7 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
"""Sets the request_id of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:param request_id: The request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:param request_id: The request_id of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:type: str
|
||||
"""
|
||||
if request_id is None:
|
||||
@ -143,10 +137,10 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
|
||||
@property
|
||||
def payload(self):
|
||||
"""Gets the payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
"""Gets the payload of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:return: The payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:return: The payload of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:rtype: list[RelayerApiOrderSchema]
|
||||
"""
|
||||
return self._payload
|
||||
@ -156,7 +150,7 @@ class RelayerApiOrdersChannelUpdateSchema(object):
|
||||
"""Sets the payload of this RelayerApiOrdersChannelUpdateSchema.
|
||||
|
||||
|
||||
:param payload: The payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501
|
||||
:param payload: The payload of this RelayerApiOrdersChannelUpdateSchema.
|
||||
:type: list[RelayerApiOrderSchema]
|
||||
"""
|
||||
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class RelayerApiOrdersResponseSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -35,10 +29,10 @@ class RelayerApiOrdersResponseSchema(object):
|
||||
|
||||
@property
|
||||
def records(self):
|
||||
"""Gets the records of this RelayerApiOrdersResponseSchema. # noqa: E501
|
||||
"""Gets the records of this RelayerApiOrdersResponseSchema.
|
||||
|
||||
|
||||
:return: The records of this RelayerApiOrdersResponseSchema. # noqa: E501
|
||||
:return: The records of this RelayerApiOrdersResponseSchema.
|
||||
:rtype: list[RelayerApiOrderSchema]
|
||||
"""
|
||||
return self._records
|
||||
@ -48,7 +42,7 @@ class RelayerApiOrdersResponseSchema(object):
|
||||
"""Sets the records of this RelayerApiOrdersResponseSchema.
|
||||
|
||||
|
||||
:param records: The records of this RelayerApiOrdersResponseSchema. # noqa: E501
|
||||
:param records: The records of this RelayerApiOrdersResponseSchema.
|
||||
:type: list[RelayerApiOrderSchema]
|
||||
"""
|
||||
if records is None:
|
||||
|
@ -8,12 +8,6 @@ import six
|
||||
|
||||
|
||||
class SignedOrderSchema(object):
|
||||
"""NOTE: This class is auto generated by OpenAPI Generator.
|
||||
Ref: https://openapi-generator.tech
|
||||
|
||||
Do not edit the class manually.
|
||||
"""
|
||||
|
||||
"""
|
||||
Attributes:
|
||||
openapi_types (dict): The key is attribute name
|
||||
@ -35,10 +29,10 @@ class SignedOrderSchema(object):
|
||||
|
||||
@property
|
||||
def signature(self):
|
||||
"""Gets the signature of this SignedOrderSchema. # noqa: E501
|
||||
"""Gets the signature of this SignedOrderSchema.
|
||||
|
||||
|
||||
:return: The signature of this SignedOrderSchema. # noqa: E501
|
||||
:return: The signature of this SignedOrderSchema.
|
||||
:rtype: str
|
||||
"""
|
||||
return self._signature
|
||||
@ -48,7 +42,7 @@ class SignedOrderSchema(object):
|
||||
"""Sets the signature of this SignedOrderSchema.
|
||||
|
||||
|
||||
:param signature: The signature of this SignedOrderSchema. # noqa: E501
|
||||
:param signature: The signature of this SignedOrderSchema.
|
||||
:type: str
|
||||
"""
|
||||
if signature is None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user