Skip to content

Commit

Permalink
Release 1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Apr 19, 2024
1 parent 1efa6f1 commit 3c0138c
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 36 deletions.
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "flagright"
version = "1.5.1"
version = "1.5.2"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
UserStateDetails,
UserWithRulesResult,
WalletDetails,
WalletDetailsNetwork,
WalletNetwork,
WalletPaymentMethod,
WebhookEvent,
WebhookEventBase,
Expand Down Expand Up @@ -322,7 +322,7 @@
"UserStateDetails",
"UserWithRulesResult",
"WalletDetails",
"WalletDetailsNetwork",
"WalletNetwork",
"WalletPaymentMethod",
"WebhookEvent",
"WebhookEventBase",
Expand Down
2 changes: 1 addition & 1 deletion src/flagright/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "flagright",
"X-Fern-SDK-Version": "1.5.1",
"X-Fern-SDK-Version": "1.5.2",
}
headers["x-api-key"] = self.api_key
return headers
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
from .user_state_details import UserStateDetails
from .user_with_rules_result import UserWithRulesResult
from .wallet_details import WalletDetails
from .wallet_details_network import WalletDetailsNetwork
from .wallet_network import WalletNetwork
from .wallet_payment_method import WalletPaymentMethod
from .webhook_event import WebhookEvent
from .webhook_event_base import WebhookEventBase
Expand Down Expand Up @@ -305,7 +305,7 @@
"UserStateDetails",
"UserWithRulesResult",
"WalletDetails",
"WalletDetailsNetwork",
"WalletNetwork",
"WalletPaymentMethod",
"WebhookEvent",
"WebhookEventBase",
Expand Down
4 changes: 2 additions & 2 deletions src/flagright/types/wallet_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .amount import Amount
from .email_id import EmailId
from .tag import Tag
from .wallet_details_network import WalletDetailsNetwork
from .wallet_network import WalletNetwork

try:
import pydantic.v1 as pydantic # type: ignore
Expand Down Expand Up @@ -37,7 +37,7 @@ class WalletDetails(pydantic.BaseModel):
alias="walletPhoneNumber", description="Phone number associated with the wallet, if any"
)
wallet_balance: typing.Optional[Amount] = pydantic.Field(alias="walletBalance")
network: typing.Optional[WalletDetailsNetwork] = pydantic.Field(description="Network of the wallet")
network: typing.Optional[WalletNetwork]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
T_Result = typing.TypeVar("T_Result")


class WalletDetailsNetwork(str, enum.Enum):
class WalletNetwork(str, enum.Enum):
"""
Network of the wallet
"""
Expand Down Expand Up @@ -63,51 +63,51 @@ def visit(
algorand: typing.Callable[[], T_Result],
celestia: typing.Callable[[], T_Result],
) -> T_Result:
if self is WalletDetailsNetwork.BITCOIN:
if self is WalletNetwork.BITCOIN:
return bitcoin()
if self is WalletDetailsNetwork.ETHEREUM:
if self is WalletNetwork.ETHEREUM:
return ethereum()
if self is WalletDetailsNetwork.POLYGON:
if self is WalletNetwork.POLYGON:
return polygon()
if self is WalletDetailsNetwork.BNB_SMART_CHAIN:
if self is WalletNetwork.BNB_SMART_CHAIN:
return bnb_smart_chain()
if self is WalletDetailsNetwork.BNB_BEACON_CHAIN:
if self is WalletNetwork.BNB_BEACON_CHAIN:
return bnb_beacon_chain()
if self is WalletDetailsNetwork.ARBITRUM_L_2:
if self is WalletNetwork.ARBITRUM_L_2:
return arbitrum_l_2()
if self is WalletDetailsNetwork.SOLANA:
if self is WalletNetwork.SOLANA:
return solana()
if self is WalletDetailsNetwork.AVALANCHE_C_CHAIN:
if self is WalletNetwork.AVALANCHE_C_CHAIN:
return avalanche_c_chain()
if self is WalletDetailsNetwork.LITECOIN:
if self is WalletNetwork.LITECOIN:
return litecoin()
if self is WalletDetailsNetwork.BITCOIN_CASH:
if self is WalletNetwork.BITCOIN_CASH:
return bitcoin_cash()
if self is WalletDetailsNetwork.RIPPLE:
if self is WalletNetwork.RIPPLE:
return ripple()
if self is WalletDetailsNetwork.STELLAR:
if self is WalletNetwork.STELLAR:
return stellar()
if self is WalletDetailsNetwork.EOS_PUBLIC:
if self is WalletNetwork.EOS_PUBLIC:
return eos_public()
if self is WalletDetailsNetwork.TRON:
if self is WalletNetwork.TRON:
return tron()
if self is WalletDetailsNetwork.CARDANO:
if self is WalletNetwork.CARDANO:
return cardano()
if self is WalletDetailsNetwork.POLKADOT:
if self is WalletNetwork.POLKADOT:
return polkadot()
if self is WalletDetailsNetwork.NEAR_PROTOCOL:
if self is WalletNetwork.NEAR_PROTOCOL:
return near_protocol()
if self is WalletDetailsNetwork.COSMOS:
if self is WalletNetwork.COSMOS:
return cosmos()
if self is WalletDetailsNetwork.DOGECOIN:
if self is WalletNetwork.DOGECOIN:
return dogecoin()
if self is WalletDetailsNetwork.OPTIMISM_MAINNET:
if self is WalletNetwork.OPTIMISM_MAINNET:
return optimism_mainnet()
if self is WalletDetailsNetwork.FANTOM:
if self is WalletNetwork.FANTOM:
return fantom()
if self is WalletDetailsNetwork.HEDERA:
if self is WalletNetwork.HEDERA:
return hedera()
if self is WalletDetailsNetwork.ALGORAND:
if self is WalletNetwork.ALGORAND:
return algorand()
if self is WalletDetailsNetwork.CELESTIA:
if self is WalletNetwork.CELESTIA:
return celestia()

0 comments on commit 3c0138c

Please sign in to comment.