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
@@ -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
@@ -46,8 +51,10 @@ class SignTypedDataRequest(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) -> SignTypedDataRequest:
@@ -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 SignatureResponse(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) -> SignatureResponse:
@@ -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
@@ -43,8 +48,10 @@ class SignatureResponseData(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) -> SignatureResponseData:
@@ -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 Optional
18
23
  from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr
@@ -54,8 +59,10 @@ class Token(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) -> Token:
@@ -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 TokenResponse(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) -> TokenResponse:
@@ -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 TokenResponseData(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) -> TokenResponseData:
@@ -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, StrictInt, StrictStr, conlist, constr
@@ -82,8 +87,10 @@ class Transaction(BaseModel):
82
87
  return pprint.pformat(self.dict(by_alias=True))
83
88
 
84
89
  def to_json(self) -> str:
85
- """Returns the JSON representation of the model using alias"""
86
- return json.dumps(self.to_dict())
90
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
91
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
92
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
93
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
87
94
 
88
95
  @classmethod
89
96
  def from_json(cls, json_str: str) -> Transaction:
@@ -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
@@ -27,7 +32,8 @@ class TransactionFee(BaseModel):
27
32
  priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the [`POST /transactions/transfer/estimateFee`](/api-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. ")
28
33
  base_fee: Optional[StrictStr] = Field(None, alias="baseFee", description="For blockchains with EIP-1559 support, the estimated base fee represents the minimum fee required for a transaction to be included in a block on the blockchain. It is measured in gwei and compensates for the computational resources validators consume to process the transaction. The base fee is supplemented by a separate \"tip\" called the priority fee, which acts as an extra incentive for validators to prioritize the transaction. The priority fee is added to the base fee to calculate the final transaction fee. ")
29
34
  network_fee: Optional[StrictStr] = Field(None, alias="networkFee", description="The estimated network fee is the maximum amount of cryptocurrency (such as ETH, ARB, or SOL) that you will pay for your transaction. This fee depends on the parameters you set, including Gas Limit, Priority Fee, and Max Fee. It compensates for the computational resources that validators consume to process the transaction. It is measured in native token such as ETH, SOL. For blockchains with L1 data fees such as OP/BASE, the network fee is a combination of the Execution Gas Fee and the L1 Data Fee. Each blockchain might use different formula for network fee. Refer to each specific blockchain's documentation to understand how `networkFee` is calculated. ")
30
- __properties = ["gasLimit", "gasPrice", "maxFee", "priorityFee", "baseFee", "networkFee"]
35
+ network_fee_raw: Optional[StrictStr] = Field(None, alias="networkFeeRaw", description="Similar to `networkFee`, `networkFeeRaw` is an estimation with lower buffer and thus should be closer to the actual on-chain expense. This field will only be returned in the estimation response. ")
36
+ __properties = ["gasLimit", "gasPrice", "maxFee", "priorityFee", "baseFee", "networkFee", "networkFeeRaw"]
31
37
 
32
38
  def __init__(self, **kwargs):
33
39
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -48,8 +54,10 @@ class TransactionFee(BaseModel):
48
54
  return pprint.pformat(self.dict(by_alias=True))
49
55
 
50
56
  def to_json(self) -> str:
51
- """Returns the JSON representation of the model using alias"""
52
- return json.dumps(self.to_dict())
57
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
58
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
59
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
60
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
53
61
 
54
62
  @classmethod
55
63
  def from_json(cls, json_str: str) -> TransactionFee:
@@ -86,7 +94,8 @@ class TransactionFee(BaseModel):
86
94
  "max_fee": obj.get("maxFee"),
87
95
  "priority_fee": obj.get("priorityFee"),
88
96
  "base_fee": obj.get("baseFee"),
89
- "network_fee": obj.get("networkFee")
97
+ "network_fee": obj.get("networkFee"),
98
+ "network_fee_raw": obj.get("networkFeeRaw")
90
99
  })
91
100
  return _obj
92
101
 
@@ -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 TransactionResponse(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) -> TransactionResponse:
@@ -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 TransactionResponseData(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) -> TransactionResponseData:
@@ -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
@@ -48,8 +53,10 @@ class TransactionScreeningDecision(BaseModel):
48
53
  return pprint.pformat(self.dict(by_alias=True))
49
54
 
50
55
  def to_json(self) -> str:
51
- """Returns the JSON representation of the model using alias"""
52
- return json.dumps(self.to_dict())
56
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
57
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
58
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
59
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
53
60
 
54
61
  @classmethod
55
62
  def from_json(cls, json_str: str) -> TransactionScreeningDecision:
@@ -31,7 +31,7 @@ class TransactionState(str, Enum):
31
31
  DENIED = 'DENIED'
32
32
  FAILED = 'FAILED'
33
33
  INITIATED = 'INITIATED'
34
- PENDING_RISK_SCREENING = 'PENDING_RISK_SCREENING'
34
+ CLEARED = 'CLEARED'
35
35
  QUEUED = 'QUEUED'
36
36
  SENT = 'SENT'
37
37
 
@@ -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 Transactions(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) -> Transactions:
@@ -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, conlist
@@ -44,8 +49,10 @@ class TransactionsData(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) -> TransactionsData:
@@ -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
@@ -44,8 +49,10 @@ class UpdateWalletRequest(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) -> UpdateWalletRequest:
@@ -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 UpdateWalletSetRequest(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) -> UpdateWalletSetRequest:
@@ -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 ValidateAddress(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) -> ValidateAddress:
@@ -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, StrictBool
@@ -43,8 +48,10 @@ class ValidateAddressData(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) -> ValidateAddressData:
@@ -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 ValidateAddressRequest(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) -> ValidateAddressRequest:
@@ -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 Optional
18
23
  from pydantic import BaseModel, Field, StrictStr, constr
@@ -57,8 +62,10 @@ class Wallet(BaseModel):
57
62
  return pprint.pformat(self.dict(by_alias=True))
58
63
 
59
64
  def to_json(self) -> str:
60
- """Returns the JSON representation of the model using alias"""
61
- return json.dumps(self.to_dict())
65
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
66
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
67
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
68
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
62
69
 
63
70
  @classmethod
64
71
  def from_json(cls, json_str: str) -> Wallet:
@@ -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
@@ -44,8 +49,10 @@ class WalletMetadata(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) -> WalletMetadata:
@@ -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 WalletResponse(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) -> WalletResponse:
@@ -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 WalletResponseData(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) -> WalletResponseData:
@@ -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
@@ -45,8 +50,10 @@ class WalletSet(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) -> WalletSet: