moovio_sdk 0.14.0__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 +3 -3
- moovio_sdk/models/components/__init__.py +32 -0
- moovio_sdk/models/components/createwallet.py +26 -0
- moovio_sdk/models/components/patchwallet.py +34 -0
- moovio_sdk/models/components/wallet.py +51 -1
- moovio_sdk/models/components/walletstatus.py +14 -0
- moovio_sdk/models/components/wallettype.py +14 -0
- moovio_sdk/models/components/webhookdata.py +24 -12
- moovio_sdk/models/components/webhookdatawalletcreated.py +17 -0
- moovio_sdk/models/components/webhookdatawalletupdated.py +29 -0
- moovio_sdk/models/components/webhookeventtype.py +2 -0
- moovio_sdk/models/errors/__init__.py +10 -0
- moovio_sdk/models/errors/createwalleterror.py +29 -0
- moovio_sdk/models/errors/patchwalleterror.py +31 -0
- moovio_sdk/models/operations/__init__.py +40 -0
- moovio_sdk/models/operations/createwallet.py +80 -0
- moovio_sdk/models/operations/listwallets.py +40 -2
- moovio_sdk/models/operations/updatewallet.py +89 -0
- moovio_sdk/wallets.py +569 -1
- {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.1.dist-info}/METADATA +53 -39
- {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.1.dist-info}/RECORD +22 -12
- {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.1.dist-info}/WHEEL +0 -0
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.14.
|
6
|
+
__version__: str = "0.14.1"
|
7
7
|
__openapi_doc_version__: str = "latest"
|
8
|
-
__gen_version__: str = "2.
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.14.
|
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:
|
@@ -356,6 +356,7 @@ if TYPE_CHECKING:
|
|
356
356
|
CreateTransferSourceCard,
|
357
357
|
CreateTransferSourceCardTypedDict,
|
358
358
|
)
|
359
|
+
from .createwallet import CreateWallet, CreateWalletTypedDict
|
359
360
|
from .customersupport import CustomerSupport, CustomerSupportTypedDict
|
360
361
|
from .customersupporterror import (
|
361
362
|
CustomerSupportError,
|
@@ -653,6 +654,7 @@ if TYPE_CHECKING:
|
|
653
654
|
Status,
|
654
655
|
)
|
655
656
|
from .patchtransfer import PatchTransfer, PatchTransferTypedDict
|
657
|
+
from .patchwallet import PatchWallet, PatchWalletTypedDict
|
656
658
|
from .paymentdetailserror import PaymentDetailsError, PaymentDetailsErrorTypedDict
|
657
659
|
from .paymentlink import PaymentLink, PaymentLinkTypedDict
|
658
660
|
from .paymentlinkcustomeroptions import (
|
@@ -937,10 +939,12 @@ if TYPE_CHECKING:
|
|
937
939
|
WalletAvailableBalance,
|
938
940
|
WalletAvailableBalanceTypedDict,
|
939
941
|
)
|
942
|
+
from .walletstatus import WalletStatus
|
940
943
|
from .wallettransaction import WalletTransaction, WalletTransactionTypedDict
|
941
944
|
from .wallettransactionsourcetype import WalletTransactionSourceType
|
942
945
|
from .wallettransactionstatus import WalletTransactionStatus
|
943
946
|
from .wallettransactiontype import WalletTransactionType
|
947
|
+
from .wallettype import WalletType
|
944
948
|
from .webhookdata import WebhookData, WebhookDataTypedDict
|
945
949
|
from .webhookdataaccountcreated import (
|
946
950
|
WebhookDataAccountCreated,
|
@@ -1067,10 +1071,18 @@ if TYPE_CHECKING:
|
|
1067
1071
|
WebhookDataTransferUpdated,
|
1068
1072
|
WebhookDataTransferUpdatedTypedDict,
|
1069
1073
|
)
|
1074
|
+
from .webhookdatawalletcreated import (
|
1075
|
+
WebhookDataWalletCreated,
|
1076
|
+
WebhookDataWalletCreatedTypedDict,
|
1077
|
+
)
|
1070
1078
|
from .webhookdatawallettransactionupdated import (
|
1071
1079
|
WebhookDataWalletTransactionUpdated,
|
1072
1080
|
WebhookDataWalletTransactionUpdatedTypedDict,
|
1073
1081
|
)
|
1082
|
+
from .webhookdatawalletupdated import (
|
1083
|
+
WebhookDataWalletUpdated,
|
1084
|
+
WebhookDataWalletUpdatedTypedDict,
|
1085
|
+
)
|
1074
1086
|
from .webhookevent import WebhookEvent, WebhookEventTypedDict
|
1075
1087
|
from .webhookeventtype import WebhookEventType
|
1076
1088
|
from .webhooktransferpaymentmethoddetails import (
|
@@ -1374,6 +1386,8 @@ __all__ = [
|
|
1374
1386
|
"CreateTransferSourceCardTypedDict",
|
1375
1387
|
"CreateTransferSourceTypedDict",
|
1376
1388
|
"CreateTransferTypedDict",
|
1389
|
+
"CreateWallet",
|
1390
|
+
"CreateWalletTypedDict",
|
1377
1391
|
"CreatedTransfer",
|
1378
1392
|
"CreatedTransferTypedDict",
|
1379
1393
|
"CustomerSupport",
|
@@ -1625,6 +1639,8 @@ __all__ = [
|
|
1625
1639
|
"PatchSweepConfigTypedDict",
|
1626
1640
|
"PatchTransfer",
|
1627
1641
|
"PatchTransferTypedDict",
|
1642
|
+
"PatchWallet",
|
1643
|
+
"PatchWalletTypedDict",
|
1628
1644
|
"PaymentDetailsError",
|
1629
1645
|
"PaymentDetailsErrorTypedDict",
|
1630
1646
|
"PaymentLink",
|
@@ -1905,11 +1921,13 @@ __all__ = [
|
|
1905
1921
|
"Wallet",
|
1906
1922
|
"WalletAvailableBalance",
|
1907
1923
|
"WalletAvailableBalanceTypedDict",
|
1924
|
+
"WalletStatus",
|
1908
1925
|
"WalletTransaction",
|
1909
1926
|
"WalletTransactionSourceType",
|
1910
1927
|
"WalletTransactionStatus",
|
1911
1928
|
"WalletTransactionType",
|
1912
1929
|
"WalletTransactionTypedDict",
|
1930
|
+
"WalletType",
|
1913
1931
|
"WalletTypedDict",
|
1914
1932
|
"WebhookData",
|
1915
1933
|
"WebhookDataAccountCreated",
|
@@ -1976,8 +1994,12 @@ __all__ = [
|
|
1976
1994
|
"WebhookDataTransferUpdated",
|
1977
1995
|
"WebhookDataTransferUpdatedTypedDict",
|
1978
1996
|
"WebhookDataTypedDict",
|
1997
|
+
"WebhookDataWalletCreated",
|
1998
|
+
"WebhookDataWalletCreatedTypedDict",
|
1979
1999
|
"WebhookDataWalletTransactionUpdated",
|
1980
2000
|
"WebhookDataWalletTransactionUpdatedTypedDict",
|
2001
|
+
"WebhookDataWalletUpdated",
|
2002
|
+
"WebhookDataWalletUpdatedTypedDict",
|
1981
2003
|
"WebhookEvent",
|
1982
2004
|
"WebhookEventType",
|
1983
2005
|
"WebhookEventTypedDict",
|
@@ -2285,6 +2307,8 @@ _dynamic_imports: dict[str, str] = {
|
|
2285
2307
|
"CreateTransferSourceACHTypedDict": ".createtransfersourceach",
|
2286
2308
|
"CreateTransferSourceCard": ".createtransfersourcecard",
|
2287
2309
|
"CreateTransferSourceCardTypedDict": ".createtransfersourcecard",
|
2310
|
+
"CreateWallet": ".createwallet",
|
2311
|
+
"CreateWalletTypedDict": ".createwallet",
|
2288
2312
|
"CustomerSupport": ".customersupport",
|
2289
2313
|
"CustomerSupportTypedDict": ".customersupport",
|
2290
2314
|
"CustomerSupportError": ".customersupporterror",
|
@@ -2539,6 +2563,8 @@ _dynamic_imports: dict[str, str] = {
|
|
2539
2563
|
"Status": ".patchsweepconfig",
|
2540
2564
|
"PatchTransfer": ".patchtransfer",
|
2541
2565
|
"PatchTransferTypedDict": ".patchtransfer",
|
2566
|
+
"PatchWallet": ".patchwallet",
|
2567
|
+
"PatchWalletTypedDict": ".patchwallet",
|
2542
2568
|
"PaymentDetailsError": ".paymentdetailserror",
|
2543
2569
|
"PaymentDetailsErrorTypedDict": ".paymentdetailserror",
|
2544
2570
|
"PaymentLink": ".paymentlink",
|
@@ -2815,11 +2841,13 @@ _dynamic_imports: dict[str, str] = {
|
|
2815
2841
|
"WalletTypedDict": ".wallet",
|
2816
2842
|
"WalletAvailableBalance": ".walletavailablebalance",
|
2817
2843
|
"WalletAvailableBalanceTypedDict": ".walletavailablebalance",
|
2844
|
+
"WalletStatus": ".walletstatus",
|
2818
2845
|
"WalletTransaction": ".wallettransaction",
|
2819
2846
|
"WalletTransactionTypedDict": ".wallettransaction",
|
2820
2847
|
"WalletTransactionSourceType": ".wallettransactionsourcetype",
|
2821
2848
|
"WalletTransactionStatus": ".wallettransactionstatus",
|
2822
2849
|
"WalletTransactionType": ".wallettransactiontype",
|
2850
|
+
"WalletType": ".wallettype",
|
2823
2851
|
"WebhookData": ".webhookdata",
|
2824
2852
|
"WebhookDataTypedDict": ".webhookdata",
|
2825
2853
|
"WebhookDataAccountCreated": ".webhookdataaccountcreated",
|
@@ -2885,8 +2913,12 @@ _dynamic_imports: dict[str, str] = {
|
|
2885
2913
|
"WebhookDataTransferStatus": ".webhookdatatransferstatus",
|
2886
2914
|
"WebhookDataTransferUpdated": ".webhookdatatransferupdated",
|
2887
2915
|
"WebhookDataTransferUpdatedTypedDict": ".webhookdatatransferupdated",
|
2916
|
+
"WebhookDataWalletCreated": ".webhookdatawalletcreated",
|
2917
|
+
"WebhookDataWalletCreatedTypedDict": ".webhookdatawalletcreated",
|
2888
2918
|
"WebhookDataWalletTransactionUpdated": ".webhookdatawallettransactionupdated",
|
2889
2919
|
"WebhookDataWalletTransactionUpdatedTypedDict": ".webhookdatawallettransactionupdated",
|
2920
|
+
"WebhookDataWalletUpdated": ".webhookdatawalletupdated",
|
2921
|
+
"WebhookDataWalletUpdatedTypedDict": ".webhookdatawalletupdated",
|
2890
2922
|
"WebhookEvent": ".webhookevent",
|
2891
2923
|
"WebhookEventTypedDict": ".webhookevent",
|
2892
2924
|
"WebhookEventType": ".webhookeventtype",
|
@@ -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
|
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
|
-
|
152
|
+
WebhookDataWalletCreatedTypedDict,
|
145
153
|
WebhookDataBankAccountDeletedTypedDict,
|
146
|
-
|
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
|
-
|
165
|
+
WebhookDataWalletUpdatedTypedDict,
|
166
|
+
WebhookDataPaymentMethodEnabledTypedDict,
|
158
167
|
WebhookDataCancellationCreatedTypedDict,
|
168
|
+
WebhookDataTicketUpdatedTypedDict,
|
159
169
|
WebhookDataCardAutoUpdatedTypedDict,
|
160
170
|
WebhookDataCapabilityRequestedTypedDict,
|
161
|
-
WebhookDataSweepUpdatedTypedDict,
|
162
171
|
WebhookDataCapabilityUpdatedTypedDict,
|
163
|
-
|
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
|
-
|
194
|
+
WebhookDataWalletCreated,
|
185
195
|
WebhookDataBankAccountDeleted,
|
186
|
-
|
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
|
-
|
207
|
+
WebhookDataWalletUpdated,
|
208
|
+
WebhookDataPaymentMethodEnabled,
|
198
209
|
WebhookDataCancellationCreated,
|
210
|
+
WebhookDataTicketUpdated,
|
199
211
|
WebhookDataCardAutoUpdated,
|
200
212
|
WebhookDataCapabilityRequested,
|
201
|
-
WebhookDataSweepUpdated,
|
202
213
|
WebhookDataCapabilityUpdated,
|
203
|
-
|
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"
|
@@ -31,6 +31,7 @@ if TYPE_CHECKING:
|
|
31
31
|
CreateSweepConfigErrorData,
|
32
32
|
)
|
33
33
|
from .createticketerror import CreateTicketError, CreateTicketErrorData
|
34
|
+
from .createwalleterror import CreateWalletError, CreateWalletErrorData
|
34
35
|
from .feeplanagreementerror import FeePlanAgreementError, FeePlanAgreementErrorData
|
35
36
|
from .fileuploadvalidationerror import (
|
36
37
|
File,
|
@@ -50,6 +51,7 @@ if TYPE_CHECKING:
|
|
50
51
|
from .onboardinginviteerror import OnboardingInviteError, OnboardingInviteErrorData
|
51
52
|
from .patchaccounterror import PatchAccountError, PatchAccountErrorData
|
52
53
|
from .patchsweepconfigerror import PatchSweepConfigError, PatchSweepConfigErrorData
|
54
|
+
from .patchwalleterror import PatchWalletError, PatchWalletErrorData
|
53
55
|
from .refundvalidationerror import RefundValidationError, RefundValidationErrorData
|
54
56
|
from .representativevalidationerror import (
|
55
57
|
Error,
|
@@ -126,6 +128,8 @@ __all__ = [
|
|
126
128
|
"CreateSweepConfigErrorData",
|
127
129
|
"CreateTicketError",
|
128
130
|
"CreateTicketErrorData",
|
131
|
+
"CreateWalletError",
|
132
|
+
"CreateWalletErrorData",
|
129
133
|
"Error",
|
130
134
|
"ErrorTypedDict",
|
131
135
|
"FeePlanAgreementError",
|
@@ -152,6 +156,8 @@ __all__ = [
|
|
152
156
|
"PatchAccountErrorData",
|
153
157
|
"PatchSweepConfigError",
|
154
158
|
"PatchSweepConfigErrorData",
|
159
|
+
"PatchWalletError",
|
160
|
+
"PatchWalletErrorData",
|
155
161
|
"RefundValidationError",
|
156
162
|
"RefundValidationErrorData",
|
157
163
|
"RepresentativeValidationError",
|
@@ -213,6 +219,8 @@ _dynamic_imports: dict[str, str] = {
|
|
213
219
|
"CreateSweepConfigErrorData": ".createsweepconfigerror",
|
214
220
|
"CreateTicketError": ".createticketerror",
|
215
221
|
"CreateTicketErrorData": ".createticketerror",
|
222
|
+
"CreateWalletError": ".createwalleterror",
|
223
|
+
"CreateWalletErrorData": ".createwalleterror",
|
216
224
|
"FeePlanAgreementError": ".feeplanagreementerror",
|
217
225
|
"FeePlanAgreementErrorData": ".feeplanagreementerror",
|
218
226
|
"File": ".fileuploadvalidationerror",
|
@@ -236,6 +244,8 @@ _dynamic_imports: dict[str, str] = {
|
|
236
244
|
"PatchAccountErrorData": ".patchaccounterror",
|
237
245
|
"PatchSweepConfigError": ".patchsweepconfigerror",
|
238
246
|
"PatchSweepConfigErrorData": ".patchsweepconfigerror",
|
247
|
+
"PatchWalletError": ".patchwalleterror",
|
248
|
+
"PatchWalletErrorData": ".patchwalleterror",
|
239
249
|
"RefundValidationError": ".refundvalidationerror",
|
240
250
|
"RefundValidationErrorData": ".refundvalidationerror",
|
241
251
|
"Error": ".representativevalidationerror",
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
6
|
+
from moovio_sdk.types import BaseModel
|
7
|
+
from typing import Optional
|
8
|
+
|
9
|
+
|
10
|
+
class CreateWalletErrorData(BaseModel):
|
11
|
+
name: Optional[str] = None
|
12
|
+
|
13
|
+
description: Optional[str] = None
|
14
|
+
|
15
|
+
metadata: Optional[str] = None
|
16
|
+
|
17
|
+
|
18
|
+
class CreateWalletError(MoovError):
|
19
|
+
data: CreateWalletErrorData
|
20
|
+
|
21
|
+
def __init__(
|
22
|
+
self,
|
23
|
+
data: CreateWalletErrorData,
|
24
|
+
raw_response: httpx.Response,
|
25
|
+
body: Optional[str] = None,
|
26
|
+
):
|
27
|
+
message = body or raw_response.text
|
28
|
+
super().__init__(message, raw_response, body)
|
29
|
+
self.data = data
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
import httpx
|
5
|
+
from moovio_sdk.models.errors import MoovError
|
6
|
+
from moovio_sdk.types import BaseModel
|
7
|
+
from typing import Optional
|
8
|
+
|
9
|
+
|
10
|
+
class PatchWalletErrorData(BaseModel):
|
11
|
+
name: Optional[str] = None
|
12
|
+
|
13
|
+
status: Optional[str] = None
|
14
|
+
|
15
|
+
description: Optional[str] = None
|
16
|
+
|
17
|
+
metadata: Optional[str] = None
|
18
|
+
|
19
|
+
|
20
|
+
class PatchWalletError(MoovError):
|
21
|
+
data: PatchWalletErrorData
|
22
|
+
|
23
|
+
def __init__(
|
24
|
+
self,
|
25
|
+
data: PatchWalletErrorData,
|
26
|
+
raw_response: httpx.Response,
|
27
|
+
body: Optional[str] = None,
|
28
|
+
):
|
29
|
+
message = body or raw_response.text
|
30
|
+
super().__init__(message, raw_response, body)
|
31
|
+
self.data = data
|
@@ -182,6 +182,14 @@ if TYPE_CHECKING:
|
|
182
182
|
CreateTransferOptionsResponse,
|
183
183
|
CreateTransferOptionsResponseTypedDict,
|
184
184
|
)
|
185
|
+
from .createwallet import (
|
186
|
+
CreateWalletGlobals,
|
187
|
+
CreateWalletGlobalsTypedDict,
|
188
|
+
CreateWalletRequest,
|
189
|
+
CreateWalletRequestTypedDict,
|
190
|
+
CreateWalletResponse,
|
191
|
+
CreateWalletResponseTypedDict,
|
192
|
+
)
|
185
193
|
from .deletedisputeevidencefile import (
|
186
194
|
DeleteDisputeEvidenceFileGlobals,
|
187
195
|
DeleteDisputeEvidenceFileGlobalsTypedDict,
|
@@ -1107,6 +1115,14 @@ if TYPE_CHECKING:
|
|
1107
1115
|
UpdateTransferResponse,
|
1108
1116
|
UpdateTransferResponseTypedDict,
|
1109
1117
|
)
|
1118
|
+
from .updatewallet import (
|
1119
|
+
UpdateWalletGlobals,
|
1120
|
+
UpdateWalletGlobalsTypedDict,
|
1121
|
+
UpdateWalletRequest,
|
1122
|
+
UpdateWalletRequestTypedDict,
|
1123
|
+
UpdateWalletResponse,
|
1124
|
+
UpdateWalletResponseTypedDict,
|
1125
|
+
)
|
1110
1126
|
from .uploaddisputeevidencefile import (
|
1111
1127
|
UploadDisputeEvidenceFileGlobals,
|
1112
1128
|
UploadDisputeEvidenceFileGlobalsTypedDict,
|
@@ -1279,6 +1295,12 @@ __all__ = [
|
|
1279
1295
|
"CreateTransferResponseResult",
|
1280
1296
|
"CreateTransferResponseResultTypedDict",
|
1281
1297
|
"CreateTransferResponseTypedDict",
|
1298
|
+
"CreateWalletGlobals",
|
1299
|
+
"CreateWalletGlobalsTypedDict",
|
1300
|
+
"CreateWalletRequest",
|
1301
|
+
"CreateWalletRequestTypedDict",
|
1302
|
+
"CreateWalletResponse",
|
1303
|
+
"CreateWalletResponseTypedDict",
|
1282
1304
|
"DeleteDisputeEvidenceFileGlobals",
|
1283
1305
|
"DeleteDisputeEvidenceFileGlobalsTypedDict",
|
1284
1306
|
"DeleteDisputeEvidenceFileRequest",
|
@@ -1974,6 +1996,12 @@ __all__ = [
|
|
1974
1996
|
"UpdateTransferRequestTypedDict",
|
1975
1997
|
"UpdateTransferResponse",
|
1976
1998
|
"UpdateTransferResponseTypedDict",
|
1999
|
+
"UpdateWalletGlobals",
|
2000
|
+
"UpdateWalletGlobalsTypedDict",
|
2001
|
+
"UpdateWalletRequest",
|
2002
|
+
"UpdateWalletRequestTypedDict",
|
2003
|
+
"UpdateWalletResponse",
|
2004
|
+
"UpdateWalletResponseTypedDict",
|
1977
2005
|
"UploadDisputeEvidenceFileGlobals",
|
1978
2006
|
"UploadDisputeEvidenceFileGlobalsTypedDict",
|
1979
2007
|
"UploadDisputeEvidenceFileRequest",
|
@@ -2137,6 +2165,12 @@ _dynamic_imports: dict[str, str] = {
|
|
2137
2165
|
"CreateTransferOptionsRequestTypedDict": ".createtransferoptions",
|
2138
2166
|
"CreateTransferOptionsResponse": ".createtransferoptions",
|
2139
2167
|
"CreateTransferOptionsResponseTypedDict": ".createtransferoptions",
|
2168
|
+
"CreateWalletGlobals": ".createwallet",
|
2169
|
+
"CreateWalletGlobalsTypedDict": ".createwallet",
|
2170
|
+
"CreateWalletRequest": ".createwallet",
|
2171
|
+
"CreateWalletRequestTypedDict": ".createwallet",
|
2172
|
+
"CreateWalletResponse": ".createwallet",
|
2173
|
+
"CreateWalletResponseTypedDict": ".createwallet",
|
2140
2174
|
"DeleteDisputeEvidenceFileGlobals": ".deletedisputeevidencefile",
|
2141
2175
|
"DeleteDisputeEvidenceFileGlobalsTypedDict": ".deletedisputeevidencefile",
|
2142
2176
|
"DeleteDisputeEvidenceFileRequest": ".deletedisputeevidencefile",
|
@@ -2832,6 +2866,12 @@ _dynamic_imports: dict[str, str] = {
|
|
2832
2866
|
"UpdateTransferRequestTypedDict": ".updatetransfer",
|
2833
2867
|
"UpdateTransferResponse": ".updatetransfer",
|
2834
2868
|
"UpdateTransferResponseTypedDict": ".updatetransfer",
|
2869
|
+
"UpdateWalletGlobals": ".updatewallet",
|
2870
|
+
"UpdateWalletGlobalsTypedDict": ".updatewallet",
|
2871
|
+
"UpdateWalletRequest": ".updatewallet",
|
2872
|
+
"UpdateWalletRequestTypedDict": ".updatewallet",
|
2873
|
+
"UpdateWalletResponse": ".updatewallet",
|
2874
|
+
"UpdateWalletResponseTypedDict": ".updatewallet",
|
2835
2875
|
"UploadDisputeEvidenceFileGlobals": ".uploaddisputeevidencefile",
|
2836
2876
|
"UploadDisputeEvidenceFileGlobalsTypedDict": ".uploaddisputeevidencefile",
|
2837
2877
|
"UploadDisputeEvidenceFileRequest": ".uploaddisputeevidencefile",
|