moovio_sdk 0.13.24__py3-none-any.whl → 0.14.1__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.
moovio_sdk/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "moovio_sdk"
6
- __version__: str = "0.13.24"
6
+ __version__: str = "0.14.1"
7
7
  __openapi_doc_version__: str = "latest"
8
- __gen_version__: str = "2.687.1"
9
- __user_agent__: str = "speakeasy-sdk/python 0.13.24 2.687.1 latest moovio_sdk"
8
+ __gen_version__: str = "2.692.0"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.14.1 2.692.0 latest moovio_sdk"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
moovio_sdk/accounts.py CHANGED
@@ -352,8 +352,7 @@ class Accounts(BaseSDK):
352
352
  *,
353
353
  name: Optional[str] = None,
354
354
  email: Optional[str] = None,
355
- type_: Optional[components.AccountType] = None,
356
- include_guest: Optional[bool] = None,
355
+ type_: Optional[components.CreateAccountType] = None,
357
356
  foreign_id: Optional[str] = None,
358
357
  include_disconnected: Optional[bool] = None,
359
358
  capability: Optional[components.CapabilityID] = None,
@@ -376,8 +375,7 @@ class Accounts(BaseSDK):
376
375
 
377
376
  :param name: Filter connected accounts by name. If provided, this query will attempt to find matches against the following Account and Profile fields: <ul> <li>Account `displayName`</li> <li>Individual Profile `firstName`, `middleName`, and `lastName`</li> <li>Business Profile `legalBusinessName`</li> </ul>
378
377
  :param email: Filter connected accounts by email address. Provide the full email address to filter by email.
379
- :param type: Filter connected accounts by AccountType. If the `type` parameter is used in combination with `name`, only the corresponding type's name fields will be searched. For example, if `type=business` and `name=moov`, the search will attempt to find matches against the display name and Business Profile name fields (`legalBusinessName`, and `doingBusinessAs`).
380
- :param include_guest: Filter accounts with AccountType guest. If true, the response will include guest accounts.
378
+ :param type: Filter connected accounts by AccountType. If the `type` parameter is used in combination with `name`, only the corresponding type's name fields will be searched. For example, if `type=business` and `name=moov`, the search will attempt to find matches against the display name and Business Profile name fields (`legalBusinessName`, and `doingBusinessAs`). Filtering by `type=guest` is not currently supported.
381
379
  :param foreign_id: Serves as an optional alias from a foreign/external system which can be used to reference this resource.
382
380
  :param include_disconnected: Filter disconnected accounts. If true, the response will include disconnected accounts.
383
381
  :param capability: Filter connected accounts by the capability.
@@ -403,7 +401,6 @@ class Accounts(BaseSDK):
403
401
  name=name,
404
402
  email=email,
405
403
  type=type_,
406
- include_guest=include_guest,
407
404
  foreign_id=foreign_id,
408
405
  include_disconnected=include_disconnected,
409
406
  capability=capability,
@@ -479,8 +476,7 @@ class Accounts(BaseSDK):
479
476
  *,
480
477
  name: Optional[str] = None,
481
478
  email: Optional[str] = None,
482
- type_: Optional[components.AccountType] = None,
483
- include_guest: Optional[bool] = None,
479
+ type_: Optional[components.CreateAccountType] = None,
484
480
  foreign_id: Optional[str] = None,
485
481
  include_disconnected: Optional[bool] = None,
486
482
  capability: Optional[components.CapabilityID] = None,
@@ -503,8 +499,7 @@ class Accounts(BaseSDK):
503
499
 
504
500
  :param name: Filter connected accounts by name. If provided, this query will attempt to find matches against the following Account and Profile fields: <ul> <li>Account `displayName`</li> <li>Individual Profile `firstName`, `middleName`, and `lastName`</li> <li>Business Profile `legalBusinessName`</li> </ul>
505
501
  :param email: Filter connected accounts by email address. Provide the full email address to filter by email.
506
- :param type: Filter connected accounts by AccountType. If the `type` parameter is used in combination with `name`, only the corresponding type's name fields will be searched. For example, if `type=business` and `name=moov`, the search will attempt to find matches against the display name and Business Profile name fields (`legalBusinessName`, and `doingBusinessAs`).
507
- :param include_guest: Filter accounts with AccountType guest. If true, the response will include guest accounts.
502
+ :param type: Filter connected accounts by AccountType. If the `type` parameter is used in combination with `name`, only the corresponding type's name fields will be searched. For example, if `type=business` and `name=moov`, the search will attempt to find matches against the display name and Business Profile name fields (`legalBusinessName`, and `doingBusinessAs`). Filtering by `type=guest` is not currently supported.
508
503
  :param foreign_id: Serves as an optional alias from a foreign/external system which can be used to reference this resource.
509
504
  :param include_disconnected: Filter disconnected accounts. If true, the response will include disconnected accounts.
510
505
  :param capability: Filter connected accounts by the capability.
@@ -530,7 +525,6 @@ class Accounts(BaseSDK):
530
525
  name=name,
531
526
  email=email,
532
527
  type=type_,
533
- include_guest=include_guest,
534
528
  foreign_id=foreign_id,
535
529
  include_disconnected=include_disconnected,
536
530
  capability=capability,
moovio_sdk/basesdk.py CHANGED
@@ -16,9 +16,19 @@ from urllib.parse import parse_qs, urlparse
16
16
 
17
17
  class BaseSDK:
18
18
  sdk_configuration: SDKConfiguration
19
+ parent_ref: Optional[object] = None
20
+ """
21
+ Reference to the root SDK instance, if any. This will prevent it from
22
+ being garbage collected while there are active streams.
23
+ """
19
24
 
20
- def __init__(self, sdk_config: SDKConfiguration) -> None:
25
+ def __init__(
26
+ self,
27
+ sdk_config: SDKConfiguration,
28
+ parent_ref: Optional[object] = None,
29
+ ) -> None:
21
30
  self.sdk_configuration = sdk_config
31
+ self.parent_ref = parent_ref
22
32
 
23
33
  def _get_url(self, base_url, url_variables):
24
34
  sdk_url, sdk_variables = self.sdk_configuration.get_server_details()
@@ -3,6 +3,7 @@
3
3
  from typing import TYPE_CHECKING
4
4
  from importlib import import_module
5
5
  import builtins
6
+ import sys
6
7
 
7
8
  if TYPE_CHECKING:
8
9
  from .account import Account, AccountTypedDict
@@ -355,6 +356,7 @@ if TYPE_CHECKING:
355
356
  CreateTransferSourceCard,
356
357
  CreateTransferSourceCardTypedDict,
357
358
  )
359
+ from .createwallet import CreateWallet, CreateWalletTypedDict
358
360
  from .customersupport import CustomerSupport, CustomerSupportTypedDict
359
361
  from .customersupporterror import (
360
362
  CustomerSupportError,
@@ -652,6 +654,7 @@ if TYPE_CHECKING:
652
654
  Status,
653
655
  )
654
656
  from .patchtransfer import PatchTransfer, PatchTransferTypedDict
657
+ from .patchwallet import PatchWallet, PatchWalletTypedDict
655
658
  from .paymentdetailserror import PaymentDetailsError, PaymentDetailsErrorTypedDict
656
659
  from .paymentlink import PaymentLink, PaymentLinkTypedDict
657
660
  from .paymentlinkcustomeroptions import (
@@ -936,10 +939,12 @@ if TYPE_CHECKING:
936
939
  WalletAvailableBalance,
937
940
  WalletAvailableBalanceTypedDict,
938
941
  )
942
+ from .walletstatus import WalletStatus
939
943
  from .wallettransaction import WalletTransaction, WalletTransactionTypedDict
940
944
  from .wallettransactionsourcetype import WalletTransactionSourceType
941
945
  from .wallettransactionstatus import WalletTransactionStatus
942
946
  from .wallettransactiontype import WalletTransactionType
947
+ from .wallettype import WalletType
943
948
  from .webhookdata import WebhookData, WebhookDataTypedDict
944
949
  from .webhookdataaccountcreated import (
945
950
  WebhookDataAccountCreated,
@@ -1066,10 +1071,18 @@ if TYPE_CHECKING:
1066
1071
  WebhookDataTransferUpdated,
1067
1072
  WebhookDataTransferUpdatedTypedDict,
1068
1073
  )
1074
+ from .webhookdatawalletcreated import (
1075
+ WebhookDataWalletCreated,
1076
+ WebhookDataWalletCreatedTypedDict,
1077
+ )
1069
1078
  from .webhookdatawallettransactionupdated import (
1070
1079
  WebhookDataWalletTransactionUpdated,
1071
1080
  WebhookDataWalletTransactionUpdatedTypedDict,
1072
1081
  )
1082
+ from .webhookdatawalletupdated import (
1083
+ WebhookDataWalletUpdated,
1084
+ WebhookDataWalletUpdatedTypedDict,
1085
+ )
1073
1086
  from .webhookevent import WebhookEvent, WebhookEventTypedDict
1074
1087
  from .webhookeventtype import WebhookEventType
1075
1088
  from .webhooktransferpaymentmethoddetails import (
@@ -1373,6 +1386,8 @@ __all__ = [
1373
1386
  "CreateTransferSourceCardTypedDict",
1374
1387
  "CreateTransferSourceTypedDict",
1375
1388
  "CreateTransferTypedDict",
1389
+ "CreateWallet",
1390
+ "CreateWalletTypedDict",
1376
1391
  "CreatedTransfer",
1377
1392
  "CreatedTransferTypedDict",
1378
1393
  "CustomerSupport",
@@ -1624,6 +1639,8 @@ __all__ = [
1624
1639
  "PatchSweepConfigTypedDict",
1625
1640
  "PatchTransfer",
1626
1641
  "PatchTransferTypedDict",
1642
+ "PatchWallet",
1643
+ "PatchWalletTypedDict",
1627
1644
  "PaymentDetailsError",
1628
1645
  "PaymentDetailsErrorTypedDict",
1629
1646
  "PaymentLink",
@@ -1904,11 +1921,13 @@ __all__ = [
1904
1921
  "Wallet",
1905
1922
  "WalletAvailableBalance",
1906
1923
  "WalletAvailableBalanceTypedDict",
1924
+ "WalletStatus",
1907
1925
  "WalletTransaction",
1908
1926
  "WalletTransactionSourceType",
1909
1927
  "WalletTransactionStatus",
1910
1928
  "WalletTransactionType",
1911
1929
  "WalletTransactionTypedDict",
1930
+ "WalletType",
1912
1931
  "WalletTypedDict",
1913
1932
  "WebhookData",
1914
1933
  "WebhookDataAccountCreated",
@@ -1975,8 +1994,12 @@ __all__ = [
1975
1994
  "WebhookDataTransferUpdated",
1976
1995
  "WebhookDataTransferUpdatedTypedDict",
1977
1996
  "WebhookDataTypedDict",
1997
+ "WebhookDataWalletCreated",
1998
+ "WebhookDataWalletCreatedTypedDict",
1978
1999
  "WebhookDataWalletTransactionUpdated",
1979
2000
  "WebhookDataWalletTransactionUpdatedTypedDict",
2001
+ "WebhookDataWalletUpdated",
2002
+ "WebhookDataWalletUpdatedTypedDict",
1980
2003
  "WebhookEvent",
1981
2004
  "WebhookEventType",
1982
2005
  "WebhookEventTypedDict",
@@ -2284,6 +2307,8 @@ _dynamic_imports: dict[str, str] = {
2284
2307
  "CreateTransferSourceACHTypedDict": ".createtransfersourceach",
2285
2308
  "CreateTransferSourceCard": ".createtransfersourcecard",
2286
2309
  "CreateTransferSourceCardTypedDict": ".createtransfersourcecard",
2310
+ "CreateWallet": ".createwallet",
2311
+ "CreateWalletTypedDict": ".createwallet",
2287
2312
  "CustomerSupport": ".customersupport",
2288
2313
  "CustomerSupportTypedDict": ".customersupport",
2289
2314
  "CustomerSupportError": ".customersupporterror",
@@ -2538,6 +2563,8 @@ _dynamic_imports: dict[str, str] = {
2538
2563
  "Status": ".patchsweepconfig",
2539
2564
  "PatchTransfer": ".patchtransfer",
2540
2565
  "PatchTransferTypedDict": ".patchtransfer",
2566
+ "PatchWallet": ".patchwallet",
2567
+ "PatchWalletTypedDict": ".patchwallet",
2541
2568
  "PaymentDetailsError": ".paymentdetailserror",
2542
2569
  "PaymentDetailsErrorTypedDict": ".paymentdetailserror",
2543
2570
  "PaymentLink": ".paymentlink",
@@ -2814,11 +2841,13 @@ _dynamic_imports: dict[str, str] = {
2814
2841
  "WalletTypedDict": ".wallet",
2815
2842
  "WalletAvailableBalance": ".walletavailablebalance",
2816
2843
  "WalletAvailableBalanceTypedDict": ".walletavailablebalance",
2844
+ "WalletStatus": ".walletstatus",
2817
2845
  "WalletTransaction": ".wallettransaction",
2818
2846
  "WalletTransactionTypedDict": ".wallettransaction",
2819
2847
  "WalletTransactionSourceType": ".wallettransactionsourcetype",
2820
2848
  "WalletTransactionStatus": ".wallettransactionstatus",
2821
2849
  "WalletTransactionType": ".wallettransactiontype",
2850
+ "WalletType": ".wallettype",
2822
2851
  "WebhookData": ".webhookdata",
2823
2852
  "WebhookDataTypedDict": ".webhookdata",
2824
2853
  "WebhookDataAccountCreated": ".webhookdataaccountcreated",
@@ -2884,8 +2913,12 @@ _dynamic_imports: dict[str, str] = {
2884
2913
  "WebhookDataTransferStatus": ".webhookdatatransferstatus",
2885
2914
  "WebhookDataTransferUpdated": ".webhookdatatransferupdated",
2886
2915
  "WebhookDataTransferUpdatedTypedDict": ".webhookdatatransferupdated",
2916
+ "WebhookDataWalletCreated": ".webhookdatawalletcreated",
2917
+ "WebhookDataWalletCreatedTypedDict": ".webhookdatawalletcreated",
2887
2918
  "WebhookDataWalletTransactionUpdated": ".webhookdatawallettransactionupdated",
2888
2919
  "WebhookDataWalletTransactionUpdatedTypedDict": ".webhookdatawallettransactionupdated",
2920
+ "WebhookDataWalletUpdated": ".webhookdatawalletupdated",
2921
+ "WebhookDataWalletUpdatedTypedDict": ".webhookdatawalletupdated",
2889
2922
  "WebhookEvent": ".webhookevent",
2890
2923
  "WebhookEventTypedDict": ".webhookevent",
2891
2924
  "WebhookEventType": ".webhookeventtype",
@@ -2898,6 +2931,18 @@ _dynamic_imports: dict[str, str] = {
2898
2931
  }
2899
2932
 
2900
2933
 
2934
+ def dynamic_import(modname, retries=3):
2935
+ for attempt in range(retries):
2936
+ try:
2937
+ return import_module(modname, __package__)
2938
+ except KeyError:
2939
+ # Clear any half-initialized module and retry
2940
+ sys.modules.pop(modname, None)
2941
+ if attempt == retries - 1:
2942
+ break
2943
+ raise KeyError(f"Failed to import module '{modname}' after {retries} attempts")
2944
+
2945
+
2901
2946
  def __getattr__(attr_name: str) -> object:
2902
2947
  module_name = _dynamic_imports.get(attr_name)
2903
2948
  if module_name is None:
@@ -2906,7 +2951,7 @@ def __getattr__(attr_name: str) -> object:
2906
2951
  )
2907
2952
 
2908
2953
  try:
2909
- module = import_module(module_name, __package__)
2954
+ module = dynamic_import(module_name)
2910
2955
  result = getattr(module, attr_name)
2911
2956
  return result
2912
2957
  except ImportError as e:
@@ -0,0 +1,26 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.types import BaseModel
5
+ from typing import Dict, Optional
6
+ from typing_extensions import NotRequired, TypedDict
7
+
8
+
9
+ class CreateWalletTypedDict(TypedDict):
10
+ name: str
11
+ r"""Name of the wallet."""
12
+ description: NotRequired[str]
13
+ r"""Description of the wallet."""
14
+ metadata: NotRequired[Dict[str, str]]
15
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
16
+
17
+
18
+ class CreateWallet(BaseModel):
19
+ name: str
20
+ r"""Name of the wallet."""
21
+
22
+ description: Optional[str] = None
23
+ r"""Description of the wallet."""
24
+
25
+ metadata: Optional[Dict[str, str]] = None
26
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
@@ -0,0 +1,34 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .walletstatus import WalletStatus
5
+ from moovio_sdk.types import BaseModel
6
+ from typing import Dict, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class PatchWalletTypedDict(TypedDict):
11
+ name: NotRequired[str]
12
+ status: NotRequired[WalletStatus]
13
+ r"""Status of a wallet.
14
+ - `active`: The wallet is available for use and has an enabled payment method.
15
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
16
+ """
17
+ description: NotRequired[str]
18
+ metadata: NotRequired[Dict[str, str]]
19
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
20
+
21
+
22
+ class PatchWallet(BaseModel):
23
+ name: Optional[str] = None
24
+
25
+ status: Optional[WalletStatus] = None
26
+ r"""Status of a wallet.
27
+ - `active`: The wallet is available for use and has an enabled payment method.
28
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
29
+ """
30
+
31
+ description: Optional[str] = None
32
+
33
+ metadata: Optional[Dict[str, str]] = None
34
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
@@ -5,9 +5,13 @@ from .walletavailablebalance import (
5
5
  WalletAvailableBalance,
6
6
  WalletAvailableBalanceTypedDict,
7
7
  )
8
+ from .walletstatus import WalletStatus
9
+ from .wallettype import WalletType
10
+ from datetime import datetime
8
11
  from moovio_sdk.types import BaseModel
9
12
  import pydantic
10
- from typing_extensions import Annotated, TypedDict
13
+ from typing import Dict, Optional
14
+ from typing_extensions import Annotated, NotRequired, TypedDict
11
15
 
12
16
 
13
17
  class WalletTypedDict(TypedDict):
@@ -15,6 +19,25 @@ class WalletTypedDict(TypedDict):
15
19
 
16
20
  wallet_id: str
17
21
  available_balance: WalletAvailableBalanceTypedDict
22
+ partner_account_id: str
23
+ name: str
24
+ r"""Name of the wallet"""
25
+ status: WalletStatus
26
+ r"""Status of a wallet.
27
+ - `active`: The wallet is available for use and has an enabled payment method.
28
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
29
+ """
30
+ wallet_type: WalletType
31
+ r"""Type of a wallet.
32
+ - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
33
+ - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
34
+ """
35
+ description: str
36
+ r"""Description of the wallet"""
37
+ created_on: datetime
38
+ metadata: NotRequired[Dict[str, str]]
39
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
40
+ closed_on: NotRequired[datetime]
18
41
 
19
42
 
20
43
  class Wallet(BaseModel):
@@ -25,3 +48,30 @@ class Wallet(BaseModel):
25
48
  available_balance: Annotated[
26
49
  WalletAvailableBalance, pydantic.Field(alias="availableBalance")
27
50
  ]
51
+
52
+ partner_account_id: Annotated[str, pydantic.Field(alias="partnerAccountID")]
53
+
54
+ name: str
55
+ r"""Name of the wallet"""
56
+
57
+ status: WalletStatus
58
+ r"""Status of a wallet.
59
+ - `active`: The wallet is available for use and has an enabled payment method.
60
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
61
+ """
62
+
63
+ wallet_type: Annotated[WalletType, pydantic.Field(alias="walletType")]
64
+ r"""Type of a wallet.
65
+ - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
66
+ - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
67
+ """
68
+
69
+ description: str
70
+ r"""Description of the wallet"""
71
+
72
+ created_on: Annotated[datetime, pydantic.Field(alias="createdOn")]
73
+
74
+ metadata: Optional[Dict[str, str]] = None
75
+ r"""Free-form key-value pair list. Useful for storing information that is not captured elsewhere."""
76
+
77
+ closed_on: Annotated[Optional[datetime], pydantic.Field(alias="closedOn")] = None
@@ -0,0 +1,14 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class WalletStatus(str, Enum):
8
+ r"""Status of a wallet.
9
+ - `active`: The wallet is available for use and has an enabled payment method.
10
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
11
+ """
12
+
13
+ ACTIVE = "active"
14
+ CLOSED = "closed"
@@ -0,0 +1,14 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class WalletType(str, Enum):
8
+ r"""Type of a wallet.
9
+ - `default`: The primary system-generated wallet automatically created by Moov when an account is granted the wallet capability. This generates a moov-wallet payment method that is available for use immediately. Only one default wallet exists per account.
10
+ - `general`: A user-defined wallet created via the API to segment funds for specific use cases. Users can create multiple general wallets per account to support internal business models or financial reporting needs.
11
+ """
12
+
13
+ DEFAULT = "default"
14
+ GENERAL = "general"
@@ -125,10 +125,18 @@ from .webhookdatatransferupdated import (
125
125
  WebhookDataTransferUpdated,
126
126
  WebhookDataTransferUpdatedTypedDict,
127
127
  )
128
+ from .webhookdatawalletcreated import (
129
+ WebhookDataWalletCreated,
130
+ WebhookDataWalletCreatedTypedDict,
131
+ )
128
132
  from .webhookdatawallettransactionupdated import (
129
133
  WebhookDataWalletTransactionUpdated,
130
134
  WebhookDataWalletTransactionUpdatedTypedDict,
131
135
  )
136
+ from .webhookdatawalletupdated import (
137
+ WebhookDataWalletUpdated,
138
+ WebhookDataWalletUpdatedTypedDict,
139
+ )
132
140
  from typing import Union
133
141
  from typing_extensions import TypeAliasType
134
142
 
@@ -141,27 +149,29 @@ WebhookDataTypedDict = TypeAliasType(
141
149
  WebhookDataAccountDisconnectedTypedDict,
142
150
  WebhookDataBalanceUpdatedTypedDict,
143
151
  WebhookDataBankAccountCreatedTypedDict,
144
- WebhookDataTicketMessageAddedTypedDict,
152
+ WebhookDataWalletCreatedTypedDict,
145
153
  WebhookDataBankAccountDeletedTypedDict,
146
- WebhookDataTicketCreatedTypedDict,
154
+ WebhookDataTicketMessageAddedTypedDict,
147
155
  WebhookDataAccountCreatedTypedDict,
156
+ WebhookDataTicketCreatedTypedDict,
148
157
  WebhookDataTerminalApplicationUpdatedTypedDict,
149
158
  WebhookDataTerminalApplicationCreatedTypedDict,
150
159
  WebhookDataSweepCreatedTypedDict,
151
160
  WebhookDataRepresentativeDisabledTypedDict,
152
161
  WebhookDataRepresentativeUpdatedTypedDict,
153
162
  WebhookDataCancellationUpdatedTypedDict,
154
- WebhookDataPaymentMethodEnabledTypedDict,
155
163
  WebhookDataPaymentMethodDisabledTypedDict,
156
164
  WebhookDataRefundCreatedTypedDict,
157
- WebhookDataTicketUpdatedTypedDict,
165
+ WebhookDataWalletUpdatedTypedDict,
166
+ WebhookDataPaymentMethodEnabledTypedDict,
158
167
  WebhookDataCancellationCreatedTypedDict,
168
+ WebhookDataTicketUpdatedTypedDict,
159
169
  WebhookDataCardAutoUpdatedTypedDict,
160
170
  WebhookDataCapabilityRequestedTypedDict,
161
- WebhookDataSweepUpdatedTypedDict,
162
171
  WebhookDataCapabilityUpdatedTypedDict,
163
- WebhookDataRefundUpdatedTypedDict,
172
+ WebhookDataSweepUpdatedTypedDict,
164
173
  WebhookDataTransferCreatedTypedDict,
174
+ WebhookDataRefundUpdatedTypedDict,
165
175
  WebhookDataBankAccountUpdatedTypedDict,
166
176
  WebhookDataWalletTransactionUpdatedTypedDict,
167
177
  WebhookDataDisputeCreatedTypedDict,
@@ -181,27 +191,29 @@ WebhookData = TypeAliasType(
181
191
  WebhookDataAccountDisconnected,
182
192
  WebhookDataBalanceUpdated,
183
193
  WebhookDataBankAccountCreated,
184
- WebhookDataTicketMessageAdded,
194
+ WebhookDataWalletCreated,
185
195
  WebhookDataBankAccountDeleted,
186
- WebhookDataTicketCreated,
196
+ WebhookDataTicketMessageAdded,
187
197
  WebhookDataAccountCreated,
198
+ WebhookDataTicketCreated,
188
199
  WebhookDataTerminalApplicationUpdated,
189
200
  WebhookDataTerminalApplicationCreated,
190
201
  WebhookDataSweepCreated,
191
202
  WebhookDataRepresentativeDisabled,
192
203
  WebhookDataRepresentativeUpdated,
193
204
  WebhookDataCancellationUpdated,
194
- WebhookDataPaymentMethodEnabled,
195
205
  WebhookDataPaymentMethodDisabled,
196
206
  WebhookDataRefundCreated,
197
- WebhookDataTicketUpdated,
207
+ WebhookDataWalletUpdated,
208
+ WebhookDataPaymentMethodEnabled,
198
209
  WebhookDataCancellationCreated,
210
+ WebhookDataTicketUpdated,
199
211
  WebhookDataCardAutoUpdated,
200
212
  WebhookDataCapabilityRequested,
201
- WebhookDataSweepUpdated,
202
213
  WebhookDataCapabilityUpdated,
203
- WebhookDataRefundUpdated,
214
+ WebhookDataSweepUpdated,
204
215
  WebhookDataTransferCreated,
216
+ WebhookDataRefundUpdated,
205
217
  WebhookDataBankAccountUpdated,
206
218
  WebhookDataWalletTransactionUpdated,
207
219
  WebhookDataDisputeCreated,
@@ -0,0 +1,17 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.types import BaseModel
5
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class WebhookDataWalletCreatedTypedDict(TypedDict):
10
+ account_id: str
11
+ wallet_id: str
12
+
13
+
14
+ class WebhookDataWalletCreated(BaseModel):
15
+ account_id: Annotated[str, pydantic.Field(alias="accountID")]
16
+
17
+ wallet_id: Annotated[str, pydantic.Field(alias="walletID")]
@@ -0,0 +1,29 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .walletstatus import WalletStatus
5
+ from moovio_sdk.types import BaseModel
6
+ import pydantic
7
+ from typing_extensions import Annotated, TypedDict
8
+
9
+
10
+ class WebhookDataWalletUpdatedTypedDict(TypedDict):
11
+ account_id: str
12
+ wallet_id: str
13
+ status: WalletStatus
14
+ r"""Status of a wallet.
15
+ - `active`: The wallet is available for use and has an enabled payment method.
16
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
17
+ """
18
+
19
+
20
+ class WebhookDataWalletUpdated(BaseModel):
21
+ account_id: Annotated[str, pydantic.Field(alias="accountID")]
22
+
23
+ wallet_id: Annotated[str, pydantic.Field(alias="walletID")]
24
+
25
+ status: WalletStatus
26
+ r"""Status of a wallet.
27
+ - `active`: The wallet is available for use and has an enabled payment method.
28
+ - `closed`: The wallet is no longer active and the corresponding payment method has been disabled.
29
+ """
@@ -39,4 +39,6 @@ class WebhookEventType(str, Enum):
39
39
  TICKET_MESSAGE_ADDED = "ticket.messageAdded"
40
40
  TRANSFER_CREATED = "transfer.created"
41
41
  TRANSFER_UPDATED = "transfer.updated"
42
+ WALLET_CREATED = "wallet.created"
43
+ WALLET_UPDATED = "wallet.updated"
42
44
  WALLET_TRANSACTION_UPDATED = "walletTransaction.updated"