inttegro.wallet

Models, requests, and enums for the Inttegro wallet resource.

The primary returned object is inttegro.wallet.Wallet. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK.

 1"""Models, requests, and enums for the Inttegro wallet resource.
 2
 3The primary returned object is ``inttegro.wallet.Wallet``. Related request types, nested response shapes, and string-backed enums are exported from this singular namespace. Public members load lazily, so importing one resource does not eagerly import the entire SDK."""
 4
 5from importlib import import_module
 6from typing import TYPE_CHECKING, Any
 7
 8if TYPE_CHECKING:
 9    from .mobile_money import MobileMoney as MobileMoney
10    from .mobile_money_params import MobileMoneyParams as MobileMoneyParams
11    from .params import Params as Params
12    from .type import Type as Type
13    from .updated_mobile_money import UpdatedMobileMoney as UpdatedMobileMoney
14    from .updated_wallet import UpdatedWallet as UpdatedWallet
15    from .wallet import Wallet as Wallet
16
17
18_EXPORTS: dict[str, tuple[str, str]] = {
19    "MobileMoney": ("inttegro.wallet.mobile_money", "MobileMoney"),
20    "MobileMoneyParams": ("inttegro.wallet.mobile_money_params", "MobileMoneyParams"),
21    "Params": ("inttegro.wallet.params", "Params"),
22    "Type": ("inttegro.wallet.type", "Type"),
23    "UpdatedMobileMoney": ("inttegro.wallet.updated_mobile_money", "UpdatedMobileMoney"),
24    "UpdatedWallet": ("inttegro.wallet.updated_wallet", "UpdatedWallet"),
25    "Wallet": ("inttegro.wallet.wallet", "Wallet"),
26}
27
28__all__ = [
29    "MobileMoney",
30    "MobileMoneyParams",
31    "Params",
32    "Type",
33    "UpdatedMobileMoney",
34    "UpdatedWallet",
35    "Wallet",
36]
37
38
39def __getattr__(name: str) -> Any:
40    """Load a public resource type on first access."""
41    try:
42        module_name, attribute_name = _EXPORTS[name]
43    except KeyError:
44        raise AttributeError(f"module {__name__!r} has no attribute {name!r}") from None
45    value = getattr(import_module(module_name), attribute_name)
46    globals()[name] = value
47    return value
@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class MobileMoney(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class MobileMoney(ApiModel):
15    """Typed mobile money data in the wallet resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``FinancialAccountWalletMobileMoney``.
24    """
25    account_number: str = field(init=False)
26    """The account number associated with this mobile money. Required. Python type: ``str``; wire name: ``account_number``; JSON type: string"""
27    network: Literal['airtel', 'mtn', 'telecel', 'vodafone'] = field(init=False)
28    """The network associated with this mobile money. Required. Python type: ``Literal['airtel', 'mtn', 'telecel', 'vodafone']``; wire name: ``network``; JSON type: string. Constraints: allowed values ``airtel``, ``mtn``, ``telecel``, ``vodafone``"""

Typed mobile money data in the wallet resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: FinancialAccountWalletMobileMoney.

account_number: str

The account number associated with this mobile money. Required. Python type: str; wire name: account_number; JSON type: string

network: Literal['airtel', 'mtn', 'telecel', 'vodafone']

The network associated with this mobile money. Required. Python type: Literal['airtel', 'mtn', 'telecel', 'vodafone']; wire name: network; JSON type: string. Constraints: allowed values airtel, mtn, telecel, vodafone

@dataclass(frozen=True, slots=True, kw_only=True)
class MobileMoneyParams(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class MobileMoneyParams(ApiRequest):
15    """Parameters accepted by the mobile money params operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``FinancialAccountWalletRequestWalletMobileMoney``.
22    """
23    account_number: str
24    """The account number associated with this mobile money param. Required. Python type: ``str``; wire name: ``account_number``; JSON type: string"""
25    network: Literal['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]
26    """The network associated with this mobile money param. Required. Python type: ``Literal['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]``; wire name: ``network``; JSON type: string. Constraints: allowed values ``airtel``, ``mtn``, ``telecel``, ``vodafone``"""

Parameters accepted by the mobile money params operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: FinancialAccountWalletRequestWalletMobileMoney.

MobileMoneyParams( *, account_number: str, network: Literal['airtel', 'mtn', 'telecel', 'vodafone', <MobileMoneyNetwork.AIRTEL: 'airtel'>, <MobileMoneyNetwork.MTN: 'mtn'>, <MobileMoneyNetwork.TELECEL: 'telecel'>, <MobileMoneyNetwork.VODAFONE: 'vodafone'>])
account_number: str

The account number associated with this mobile money param. Required. Python type: str; wire name: account_number; JSON type: string

network: Literal['airtel', 'mtn', 'telecel', 'vodafone', <MobileMoneyNetwork.AIRTEL: 'airtel'>, <MobileMoneyNetwork.MTN: 'mtn'>, <MobileMoneyNetwork.TELECEL: 'telecel'>, <MobileMoneyNetwork.VODAFONE: 'vodafone'>]

The network associated with this mobile money param. Required. Python type: Literal['airtel', 'mtn', 'telecel', 'vodafone', MobileMoneyNetwork.AIRTEL, MobileMoneyNetwork.MTN, MobileMoneyNetwork.TELECEL, MobileMoneyNetwork.VODAFONE]; wire name: network; JSON type: string. Constraints: allowed values airtel, mtn, telecel, vodafone

@dataclass(frozen=True, slots=True, kw_only=True)
class Params(inttegro._request_base.ApiRequest):
13@dataclass(frozen=True, slots=True, kw_only=True)
14class Params(ApiRequest):
15    """Parameters accepted by the params operation.
16
17    This is an immutable, keyword-only request object. ``to_dict()`` uses
18    the documented wire names, omits fields left as ``UNSET``, serializes
19    string-backed enums by value, and requires timezone-aware datetimes.
20
21    API contract schema: ``FinancialAccountWalletRequestWallet``.
22    """
23    type: Literal['mobile_money', WalletType.MOBILE_MONEY]
24    """Discriminator identifying the param type. Required. Python type: ``Literal['mobile_money', WalletType.MOBILE_MONEY]``; wire name: ``type``; JSON type: string. Constraints: allowed values ``mobile_money``"""
25    mobile_money: FinancialAccountWalletRequestWalletMobileMoney
26    """The mobile money associated with this param. Required. Python type: ``FinancialAccountWalletRequestWalletMobileMoney``; wire name: ``mobile_money``; JSON type: object"""

Parameters accepted by the params operation.

This is an immutable, keyword-only request object. to_dict() uses the documented wire names, omits fields left as UNSET, serializes string-backed enums by value, and requires timezone-aware datetimes.

API contract schema: FinancialAccountWalletRequestWallet.

Params( *, type: Literal['mobile_money', <Type.MOBILE_MONEY: 'mobile_money'>], mobile_money: MobileMoneyParams)
type: Literal['mobile_money', <Type.MOBILE_MONEY: 'mobile_money'>]

Discriminator identifying the param type. Required. Python type: Literal['mobile_money', WalletType.MOBILE_MONEY]; wire name: type; JSON type: string. Constraints: allowed values mobile_money

mobile_money: MobileMoneyParams

The mobile money associated with this param. Required. Python type: FinancialAccountWalletRequestWalletMobileMoney; wire name: mobile_money; JSON type: object

class Type(inttegro._enum_base.WireEnum):
11class Type(WireEnum):
12    """Typed type data in the wallet resource namespace.
13
14    Members are strings as well as enum values, so they compare naturally
15    with API payloads and serialize to the lowercase wire value shown below.
16
17    API contract schema: ``WalletType``.
18    """
19    MOBILE_MONEY = "mobile_money"
20    """Wire value ``mobile_money`` (mobile money)"""

Typed type data in the wallet resource namespace.

Members are strings as well as enum values, so they compare naturally with API payloads and serialize to the lowercase wire value shown below.

API contract schema: WalletType.

MOBILE_MONEY = <Type.MOBILE_MONEY: 'mobile_money'>

Wire value mobile_money (mobile money)

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class UpdatedMobileMoney(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class UpdatedMobileMoney(ApiModel):
15    """Typed updated mobile money data in the wallet resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``FinancialAccountWalletRawResponseMobileMoney``.
24    """
25    account_number: str = field(init=False)
26    """The account number associated with this updated mobile money. Required. Python type: ``str``; wire name: ``account_number``; JSON type: string"""
27    network: Literal['airtel', 'mtn', 'telecel', 'vodafone'] = field(init=False)
28    """The network associated with this updated mobile money. Required. Python type: ``Literal['airtel', 'mtn', 'telecel', 'vodafone']``; wire name: ``network``; JSON type: string. Constraints: allowed values ``airtel``, ``mtn``, ``telecel``, ``vodafone``"""

Typed updated mobile money data in the wallet resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: FinancialAccountWalletRawResponseMobileMoney.

account_number: str

The account number associated with this updated mobile money. Required. Python type: str; wire name: account_number; JSON type: string

network: Literal['airtel', 'mtn', 'telecel', 'vodafone']

The network associated with this updated mobile money. Required. Python type: Literal['airtel', 'mtn', 'telecel', 'vodafone']; wire name: network; JSON type: string. Constraints: allowed values airtel, mtn, telecel, vodafone

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class UpdatedWallet(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class UpdatedWallet(ApiModel):
15    """Update responses currently return the wallet ID without its type prefix.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``FinancialAccountWalletRawResponse``.
24    """
25    id: str = field(init=False)
26    """Unique identifier for this updated wallet. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
27    type: Literal['mobile_money'] = field(init=False)
28    """Discriminator identifying the updated wallet type. Required. Python type: ``Literal['mobile_money']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``mobile_money``"""
29    mobile_money: FinancialAccountWalletRawResponseMobileMoney | None = field(init=False)
30    """The mobile money associated with this updated wallet. Optional; nullable. Python type: ``FinancialAccountWalletRawResponseMobileMoney | None``; wire name: ``mobile_money``; JSON type: object"""

Update responses currently return the wallet ID without its type prefix.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: FinancialAccountWalletRawResponse.

id: str

Unique identifier for this updated wallet. Required. Python type: str; wire name: id; JSON type: string

type: Literal['mobile_money']

Discriminator identifying the updated wallet type. Required. Python type: Literal['mobile_money']; wire name: type; JSON type: string. Constraints: allowed values mobile_money

mobile_money: UpdatedMobileMoney | None

The mobile money associated with this updated wallet. Optional; nullable. Python type: FinancialAccountWalletRawResponseMobileMoney | None; wire name: mobile_money; JSON type: object

@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
class Wallet(inttegro._model_base.ApiModel):
13@dataclass(frozen=True, slots=True, init=False, repr=False, eq=False)
14class Wallet(ApiModel):
15    """Typed wallet data in the wallet resource namespace.
16
17    Instances are immutable API responses. ``from_dict()`` decodes nested
18    objects, string-backed enums, and timezone-aware ISO-8601 timestamps;
19    ``to_dict()`` returns the corresponding JSON-compatible wire shape.
20    Fields not returned by the API remain absent and can still be queried
21    through mapping-style access.
22
23    API contract schema: ``FinancialAccountWallet``.
24    """
25    id: str = field(init=False)
26    """Unique identifier for this wallet. Required. Python type: ``str``; wire name: ``id``; JSON type: string"""
27    type: Literal['mobile_money'] = field(init=False)
28    """Discriminator identifying the wallet type. Required. Python type: ``Literal['mobile_money']``; wire name: ``type``; JSON type: string. Constraints: allowed values ``mobile_money``"""
29    mobile_money: FinancialAccountWalletMobileMoney | None = field(init=False)
30    """The mobile money associated with this wallet. Optional; nullable. Python type: ``FinancialAccountWalletMobileMoney | None``; wire name: ``mobile_money``; JSON type: object"""

Typed wallet data in the wallet resource namespace.

Instances are immutable API responses. from_dict() decodes nested objects, string-backed enums, and timezone-aware ISO-8601 timestamps; to_dict() returns the corresponding JSON-compatible wire shape. Fields not returned by the API remain absent and can still be queried through mapping-style access.

API contract schema: FinancialAccountWallet.

id: str

Unique identifier for this wallet. Required. Python type: str; wire name: id; JSON type: string

type: Literal['mobile_money']

Discriminator identifying the wallet type. Required. Python type: Literal['mobile_money']; wire name: type; JSON type: string. Constraints: allowed values mobile_money

mobile_money: MobileMoney | None

The mobile money associated with this wallet. Optional; nullable. Python type: FinancialAccountWalletMobileMoney | None; wire name: mobile_money; JSON type: object