circle-developer-controlled-wallets 6.3.0__py3-none-any.whl → 7.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of circle-developer-controlled-wallets might be problematic. Click here for more details.

Files changed (86) hide show
  1. circle/web3/developer_controlled_wallets/__init__.py +1 -1
  2. circle/web3/developer_controlled_wallets/api/wallets_api.py +4 -4
  3. circle/web3/developer_controlled_wallets/api_client.py +1 -1
  4. circle/web3/developer_controlled_wallets/configuration.py +1 -1
  5. circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +5 -5
  6. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +9 -2
  7. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +9 -2
  8. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +9 -2
  9. circle/web3/developer_controlled_wallets/models/bad_request_response.py +9 -2
  10. circle/web3/developer_controlled_wallets/models/balance.py +9 -2
  11. circle/web3/developer_controlled_wallets/models/balances.py +9 -2
  12. circle/web3/developer_controlled_wallets/models/balances_data.py +9 -2
  13. circle/web3/developer_controlled_wallets/models/base_screening_decision.py +9 -2
  14. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +9 -2
  15. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +9 -2
  16. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +9 -2
  17. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +9 -2
  18. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +9 -2
  19. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +9 -2
  20. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +9 -2
  21. circle/web3/developer_controlled_wallets/models/create_wallet_request.py +9 -2
  22. circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +9 -2
  23. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +9 -2
  24. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +9 -2
  25. circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +9 -2
  26. circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +9 -2
  27. circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +9 -2
  28. circle/web3/developer_controlled_wallets/models/eoa_wallet.py +9 -2
  29. circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +9 -2
  30. circle/web3/developer_controlled_wallets/models/error.py +9 -2
  31. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -2
  32. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +9 -2
  33. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +9 -2
  34. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -2
  35. circle/web3/developer_controlled_wallets/models/evm_blockchain.py +2 -0
  36. circle/web3/developer_controlled_wallets/models/nft.py +9 -2
  37. circle/web3/developer_controlled_wallets/models/nfts.py +9 -2
  38. circle/web3/developer_controlled_wallets/models/nfts_data.py +9 -2
  39. circle/web3/developer_controlled_wallets/models/not_authorized_response.py +9 -2
  40. circle/web3/developer_controlled_wallets/models/not_found_response.py +9 -2
  41. circle/web3/developer_controlled_wallets/models/risk_signal.py +9 -2
  42. circle/web3/developer_controlled_wallets/models/sca_wallet.py +9 -2
  43. circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +9 -2
  44. circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +9 -2
  45. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +9 -2
  46. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +9 -2
  47. circle/web3/developer_controlled_wallets/models/sign_message_request.py +9 -2
  48. circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +9 -2
  49. circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +9 -2
  50. circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +9 -2
  51. circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +9 -2
  52. circle/web3/developer_controlled_wallets/models/signature_response.py +9 -2
  53. circle/web3/developer_controlled_wallets/models/signature_response_data.py +9 -2
  54. circle/web3/developer_controlled_wallets/models/token.py +9 -2
  55. circle/web3/developer_controlled_wallets/models/token_response.py +9 -2
  56. circle/web3/developer_controlled_wallets/models/token_response_data.py +9 -2
  57. circle/web3/developer_controlled_wallets/models/transaction.py +9 -2
  58. circle/web3/developer_controlled_wallets/models/transaction_fee.py +13 -4
  59. circle/web3/developer_controlled_wallets/models/transaction_response.py +9 -2
  60. circle/web3/developer_controlled_wallets/models/transaction_response_data.py +9 -2
  61. circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +9 -2
  62. circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -1
  63. circle/web3/developer_controlled_wallets/models/transactions.py +9 -2
  64. circle/web3/developer_controlled_wallets/models/transactions_data.py +9 -2
  65. circle/web3/developer_controlled_wallets/models/update_wallet_request.py +9 -2
  66. circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +9 -2
  67. circle/web3/developer_controlled_wallets/models/validate_address.py +9 -2
  68. circle/web3/developer_controlled_wallets/models/validate_address_data.py +9 -2
  69. circle/web3/developer_controlled_wallets/models/validate_address_request.py +9 -2
  70. circle/web3/developer_controlled_wallets/models/wallet.py +9 -2
  71. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +9 -2
  72. circle/web3/developer_controlled_wallets/models/wallet_response.py +9 -2
  73. circle/web3/developer_controlled_wallets/models/wallet_response_data.py +9 -2
  74. circle/web3/developer_controlled_wallets/models/wallet_set.py +9 -2
  75. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +9 -2
  76. circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +9 -2
  77. circle/web3/developer_controlled_wallets/models/wallet_sets.py +9 -2
  78. circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +9 -2
  79. circle/web3/developer_controlled_wallets/models/wallets.py +9 -2
  80. circle/web3/developer_controlled_wallets/models/wallets_data.py +9 -2
  81. circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +9 -2
  82. circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +9 -2
  83. {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/METADATA +3 -4
  84. {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/RECORD +86 -86
  85. {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/WHEEL +0 -0
  86. {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/top_level.txt +0 -0
@@ -10,7 +10,7 @@
10
10
  """ # noqa: E501
11
11
 
12
12
 
13
- __version__ = "6.3.0"
13
+ __version__ = "7.0.0"
14
14
 
15
15
  # import apis into sdk package
16
16
  from circle.web3.developer_controlled_wallets.api.signing_api import SigningApi
@@ -799,7 +799,7 @@ class WalletsApi(object):
799
799
  def get_wallets_with_balances(self, blockchain : Annotated[Blockchain, Field(..., description="Filter by blockchain.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, address : Annotated[Optional[StrictStr], Field(description="Filter by the blockchain address of the wallet.")] = None, sca_core : Annotated[Optional[ScaCore], Field(description="Filters results by the SCA version.")] = None, wallet_set_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet set.")] = None, ref_id : Annotated[Optional[StrictStr], Field(description="Filter by the reference identifier.")] = None, amount__gte : Annotated[Optional[StrictStr], Field(description="Filters wallets with a balance greater than or equal to the specified amount. If `tokenAddress` is provided, the filter applies to the specified token; otherwise, it applies to the native token.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token address.")] = None, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> WalletsWithBalances: # noqa: E501
800
800
  """List wallets with balances # noqa: E501
801
801
 
802
- Retrieves a list of wallets that match the specified parameters, including native token balances and, if specified, USDC/EURC balances. Balances update automatically with transfers or using the [Get token balance for a wallet](https://developers.circle.com/api-reference/w3s/developer-controlled-wallets/list-wallet-balance) endpoint for accuracy. # noqa: E501
802
+ Retrieves a list of all wallets that match the specified parameters. Wallet balances update automatically after each transfer. **Note**: On Aptos, this endpoint only returns balances for tokens stored in primary storage. Tokens held in [AIP-21](https://github.com/aptos-labs/aptos-core/releases/tag/aptos-node-v1.5.0) secondary storage are excluded from balance queries and deposit notifications to prevent incorrect or misleading results from secondary storage-based state changes. # noqa: E501
803
803
  This method makes a synchronous HTTP request by default. To make an
804
804
  asynchronous HTTP request, please pass async_req=True
805
805
 
@@ -853,7 +853,7 @@ class WalletsApi(object):
853
853
  def get_wallets_with_balances_with_http_info(self, blockchain : Annotated[Blockchain, Field(..., description="Filter by blockchain.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, address : Annotated[Optional[StrictStr], Field(description="Filter by the blockchain address of the wallet.")] = None, sca_core : Annotated[Optional[ScaCore], Field(description="Filters results by the SCA version.")] = None, wallet_set_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet set.")] = None, ref_id : Annotated[Optional[StrictStr], Field(description="Filter by the reference identifier.")] = None, amount__gte : Annotated[Optional[StrictStr], Field(description="Filters wallets with a balance greater than or equal to the specified amount. If `tokenAddress` is provided, the filter applies to the specified token; otherwise, it applies to the native token.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token address.")] = None, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
854
854
  """List wallets with balances # noqa: E501
855
855
 
856
- Retrieves a list of wallets that match the specified parameters, including native token balances and, if specified, USDC/EURC balances. Balances update automatically with transfers or using the [Get token balance for a wallet](https://developers.circle.com/api-reference/w3s/developer-controlled-wallets/list-wallet-balance) endpoint for accuracy. # noqa: E501
856
+ Retrieves a list of all wallets that match the specified parameters. Wallet balances update automatically after each transfer. **Note**: On Aptos, this endpoint only returns balances for tokens stored in primary storage. Tokens held in [AIP-21](https://github.com/aptos-labs/aptos-core/releases/tag/aptos-node-v1.5.0) secondary storage are excluded from balance queries and deposit notifications to prevent incorrect or misleading results from secondary storage-based state changes. # noqa: E501
857
857
  This method makes a synchronous HTTP request by default. To make an
858
858
  asynchronous HTTP request, please pass async_req=True
859
859
 
@@ -1043,7 +1043,7 @@ class WalletsApi(object):
1043
1043
  def list_wallet_balance(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token address.")] = None, standard : Annotated[Optional[TokenStandard], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain, FungibleAsset is the standard for the Aptos chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> Balances: # noqa: E501
1044
1044
  """Get token balance for a wallet # noqa: E501
1045
1045
 
1046
- Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
1046
+ Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. **Note**: On Aptos, this endpoint only returns balances for tokens stored in primary storage. Tokens held in [AIP-21](https://github.com/aptos-labs/aptos-core/releases/tag/aptos-node-v1.5.0) secondary storage are excluded from balance queries and deposit notifications to prevent incorrect or misleading results from secondary storage-based state changes. # noqa: E501
1047
1047
  This method makes a synchronous HTTP request by default. To make an
1048
1048
  asynchronous HTTP request, please pass async_req=True
1049
1049
 
@@ -1089,7 +1089,7 @@ class WalletsApi(object):
1089
1089
  def list_wallet_balance_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token address.")] = None, standard : Annotated[Optional[TokenStandard], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain, FungibleAsset is the standard for the Aptos chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
1090
1090
  """Get token balance for a wallet # noqa: E501
1091
1091
 
1092
- Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
1092
+ Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. **Note**: On Aptos, this endpoint only returns balances for tokens stored in primary storage. Tokens held in [AIP-21](https://github.com/aptos-labs/aptos-core/releases/tag/aptos-node-v1.5.0) secondary storage are excluded from balance queries and deposit notifications to prevent incorrect or misleading results from secondary storage-based state changes. # noqa: E501
1093
1093
  This method makes a synchronous HTTP request by default. To make an
1094
1094
  asynchronous HTTP request, please pass async_req=True
1095
1095
 
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = (user_agent + ' / ' if user_agent else '') + 'CircleWeb3PythonSDK / DeveloperControlledWallets / 6.3.0'
80
+ self.user_agent = (user_agent + ' / ' if user_agent else '') + 'CircleWeb3PythonSDK / DeveloperControlledWallets / 7.0.0'
81
81
  self.client_side_validation = configuration.client_side_validation
82
82
 
83
83
  def __enter__(self):
@@ -383,7 +383,7 @@ class Configuration(object):
383
383
  "OS: {env}\n"\
384
384
  "Python Version: {pyversion}\n"\
385
385
  "Version of the API: 1.0\n"\
386
- "SDK Package Version: 6.3.0".\
386
+ "SDK Package Version: 7.0.0".\
387
387
  format(env=sys.platform, pyversion=sys.version)
388
388
 
389
389
  def get_host_settings(self):
@@ -150,16 +150,16 @@ class AbiParametersInner(BaseModel):
150
150
  else:
151
151
  return json.dumps(self.actual_instance)
152
152
 
153
- def to_dict(self) -> dict:
153
+ def to_dict(self):
154
154
  """Returns the dict representation of the actual instance"""
155
155
  if self.actual_instance is None:
156
- return "null"
156
+ return None
157
157
 
158
- to_json = getattr(self.actual_instance, "to_json", None)
159
- if callable(to_json):
158
+ to_dict = getattr(self.actual_instance, "to_dict", None)
159
+ if callable(to_dict):
160
160
  return self.actual_instance.to_dict()
161
161
  else:
162
- return json.dumps(self.actual_instance)
162
+ return self.actual_instance # Return actual value instead of json.dumps()
163
163
 
164
164
  def to_str(self) -> str:
165
165
  """Returns the string representation of the actual instance"""
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional
18
23
  from pydantic import BaseModel
@@ -44,8 +49,10 @@ class AccelerateTransactionForDeveloper(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloper:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional
18
23
  from pydantic import BaseModel, Field, StrictStr
@@ -43,8 +48,10 @@ class AccelerateTransactionForDeveloperData(BaseModel):
43
48
  return pprint.pformat(self.dict(by_alias=True))
44
49
 
45
50
  def to_json(self) -> str:
46
- """Returns the JSON representation of the model using alias"""
47
- return json.dumps(self.to_dict())
51
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
52
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
53
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
54
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
48
55
 
49
56
  @classmethod
50
57
  def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloperData:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
@@ -44,8 +49,10 @@ class AccelerateTransactionForDeveloperRequest(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloperRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field, StrictInt, StrictStr
@@ -44,8 +49,10 @@ class BadRequestResponse(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> BadRequestResponse:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
  from datetime import datetime
17
22
 
18
23
  from pydantic import BaseModel, Field, StrictStr
@@ -46,8 +51,10 @@ class Balance(BaseModel):
46
51
  return pprint.pformat(self.dict(by_alias=True))
47
52
 
48
53
  def to_json(self) -> str:
49
- """Returns the JSON representation of the model using alias"""
50
- return json.dumps(self.to_dict())
54
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
55
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
56
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
57
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
51
58
 
52
59
  @classmethod
53
60
  def from_json(cls, json_str: str) -> Balance:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field
@@ -44,8 +49,10 @@ class Balances(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> Balances:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import List, Optional
18
23
  from pydantic import BaseModel, Field, conlist
@@ -44,8 +49,10 @@ class BalancesData(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> BalancesData:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
  from datetime import datetime
17
22
  from typing import List, Optional
18
23
  from pydantic import BaseModel, Field, StrictStr, conlist
@@ -46,8 +51,10 @@ class BaseScreeningDecision(BaseModel):
46
51
  return pprint.pformat(self.dict(by_alias=True))
47
52
 
48
53
  def to_json(self) -> str:
49
- """Returns the JSON representation of the model using alias"""
50
- return json.dumps(self.to_dict())
54
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
55
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
56
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
57
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
51
58
 
52
59
  @classmethod
53
60
  def from_json(cls, json_str: str) -> BaseScreeningDecision:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field
@@ -44,8 +49,10 @@ class CancelTransactionForDeveloper(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> CancelTransactionForDeveloper:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
@@ -44,8 +49,10 @@ class CancelTransactionForDeveloperRequest(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> CancelTransactionForDeveloperRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field
@@ -44,8 +49,10 @@ class CreateContractExecutionTransactionForDeveloper(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> CreateContractExecutionTransactionForDeveloper:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import List, Optional, Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr, conlist
@@ -58,8 +63,10 @@ class CreateContractExecutionTransactionForDeveloperRequest(BaseModel):
58
63
  return pprint.pformat(self.dict(by_alias=True))
59
64
 
60
65
  def to_json(self) -> str:
61
- """Returns the JSON representation of the model using alias"""
62
- return json.dumps(self.to_dict())
66
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
67
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
68
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
69
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
63
70
 
64
71
  @classmethod
65
72
  def from_json(cls, json_str: str) -> CreateContractExecutionTransactionForDeveloperRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import List, Optional, Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr, conlist
@@ -59,8 +64,10 @@ class CreateTransferTransactionForDeveloperRequest(BaseModel):
59
64
  return pprint.pformat(self.dict(by_alias=True))
60
65
 
61
66
  def to_json(self) -> str:
62
- """Returns the JSON representation of the model using alias"""
63
- return json.dumps(self.to_dict())
67
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
68
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
69
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
70
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
64
71
 
65
72
  @classmethod
66
73
  def from_json(cls, json_str: str) -> CreateTransferTransactionForDeveloperRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional
18
23
  from pydantic import BaseModel
@@ -44,8 +49,10 @@ class CreateTransferTransactionForDeveloperResponse(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> CreateTransferTransactionForDeveloperResponse:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field, StrictStr
@@ -45,8 +50,10 @@ class CreateTransferTransactionForDeveloperResponseData(BaseModel):
45
50
  return pprint.pformat(self.dict(by_alias=True))
46
51
 
47
52
  def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(self.to_dict())
53
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
54
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
55
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
56
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
50
57
 
51
58
  @classmethod
52
59
  def from_json(cls, json_str: str) -> CreateTransferTransactionForDeveloperResponseData:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import List, Optional, Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr, conint, conlist
@@ -52,8 +57,10 @@ class CreateWalletRequest(BaseModel):
52
57
  return pprint.pformat(self.dict(by_alias=True))
53
58
 
54
59
  def to_json(self) -> str:
55
- """Returns the JSON representation of the model using alias"""
56
- return json.dumps(self.to_dict())
60
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
61
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
62
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
63
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
57
64
 
58
65
  @classmethod
59
66
  def from_json(cls, json_str: str) -> CreateWalletRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional, Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
@@ -45,8 +50,10 @@ class CreateWalletSetRequest(BaseModel):
45
50
  return pprint.pformat(self.dict(by_alias=True))
46
51
 
47
52
  def to_json(self) -> str:
48
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(self.to_dict())
53
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
54
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
55
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
56
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
50
57
 
51
58
  @classmethod
52
59
  def from_json(cls, json_str: str) -> CreateWalletSetRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
 
18
23
  from pydantic import BaseModel, Field
@@ -44,8 +49,10 @@ class CreateWalletUpgradeTransactionForDeveloper(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> CreateWalletUpgradeTransactionForDeveloper:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional, Union
18
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
@@ -54,8 +59,10 @@ class CreateWalletUpgradeTransactionForDeveloperRequest(BaseModel):
54
59
  return pprint.pformat(self.dict(by_alias=True))
55
60
 
56
61
  def to_json(self) -> str:
57
- """Returns the JSON representation of the model using alias"""
58
- return json.dumps(self.to_dict())
62
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
63
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
64
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
65
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
59
66
 
60
67
  @classmethod
61
68
  def from_json(cls, json_str: str) -> CreateWalletUpgradeTransactionForDeveloperRequest:
@@ -13,6 +13,11 @@ import pprint
13
13
  import re # noqa: F401
14
14
  import json
15
15
 
16
+ # CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
17
+ # pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
18
+ # which are not handled by the default JSON encoder.
19
+ from pydantic.json import pydantic_encoder
20
+
16
21
 
17
22
  from typing import Optional
18
23
  from pydantic import BaseModel
@@ -44,8 +49,10 @@ class DeriveWalletRequest(BaseModel):
44
49
  return pprint.pformat(self.dict(by_alias=True))
45
50
 
46
51
  def to_json(self) -> str:
47
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
52
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
53
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
54
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
55
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
49
56
 
50
57
  @classmethod
51
58
  def from_json(cls, json_str: str) -> DeriveWalletRequest: