moovio_sdk 0.14.0__py3-none-any.whl → 0.14.2__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.
Files changed (28) hide show
  1. moovio_sdk/_version.py +3 -3
  2. moovio_sdk/models/components/__init__.py +32 -8
  3. moovio_sdk/models/components/createwallet.py +26 -0
  4. moovio_sdk/models/components/patchwallet.py +34 -0
  5. moovio_sdk/models/components/paymentlinkpayoutdetails.py +2 -0
  6. moovio_sdk/models/components/paymentlinkpayoutdetailsupdate.py +5 -3
  7. moovio_sdk/models/components/payoutrecipient.py +10 -3
  8. moovio_sdk/models/components/payoutrecipienterror.py +4 -0
  9. moovio_sdk/models/components/requirementid.py +126 -18
  10. moovio_sdk/models/components/wallet.py +51 -1
  11. moovio_sdk/models/components/walletstatus.py +14 -0
  12. moovio_sdk/models/components/wallettype.py +14 -0
  13. moovio_sdk/models/components/webhookdata.py +24 -12
  14. moovio_sdk/models/components/webhookdatawalletcreated.py +17 -0
  15. moovio_sdk/models/components/webhookdatawalletupdated.py +29 -0
  16. moovio_sdk/models/components/webhookeventtype.py +2 -0
  17. moovio_sdk/models/errors/__init__.py +10 -0
  18. moovio_sdk/models/errors/createwalleterror.py +29 -0
  19. moovio_sdk/models/errors/patchwalleterror.py +31 -0
  20. moovio_sdk/models/operations/__init__.py +40 -0
  21. moovio_sdk/models/operations/createwallet.py +80 -0
  22. moovio_sdk/models/operations/listwallets.py +40 -2
  23. moovio_sdk/models/operations/updatewallet.py +89 -0
  24. moovio_sdk/wallets.py +569 -1
  25. {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.2.dist-info}/METADATA +53 -39
  26. {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.2.dist-info}/RECORD +27 -18
  27. moovio_sdk/models/components/payoutrecipientupdate.py +0 -24
  28. {moovio_sdk-0.14.0.dist-info → moovio_sdk-0.14.2.dist-info}/WHEEL +0 -0
@@ -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"
@@ -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",
@@ -0,0 +1,80 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.models.components import (
5
+ createwallet as components_createwallet,
6
+ wallet as components_wallet,
7
+ )
8
+ from moovio_sdk.types import BaseModel
9
+ from moovio_sdk.utils import (
10
+ FieldMetadata,
11
+ HeaderMetadata,
12
+ PathParamMetadata,
13
+ RequestMetadata,
14
+ )
15
+ import pydantic
16
+ from typing import Dict, List, Optional
17
+ from typing_extensions import Annotated, NotRequired, TypedDict
18
+
19
+
20
+ class CreateWalletGlobalsTypedDict(TypedDict):
21
+ x_moov_version: NotRequired[str]
22
+ r"""Specify an API version.
23
+
24
+ API versioning follows the format `vYYYY.QQ.BB`, where
25
+ - `YYYY` is the year
26
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
27
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
28
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
+
30
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ """
32
+
33
+
34
+ class CreateWalletGlobals(BaseModel):
35
+ x_moov_version: Annotated[
36
+ Optional[str],
37
+ pydantic.Field(alias="x-moov-version"),
38
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
39
+ ] = "v2024.01.00"
40
+ r"""Specify an API version.
41
+
42
+ API versioning follows the format `vYYYY.QQ.BB`, where
43
+ - `YYYY` is the year
44
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
45
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
46
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
47
+
48
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
49
+ """
50
+
51
+
52
+ class CreateWalletRequestTypedDict(TypedDict):
53
+ account_id: str
54
+ r"""The Moov account ID the wallet belongs to."""
55
+ create_wallet: components_createwallet.CreateWalletTypedDict
56
+
57
+
58
+ class CreateWalletRequest(BaseModel):
59
+ account_id: Annotated[
60
+ str,
61
+ pydantic.Field(alias="accountID"),
62
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
63
+ ]
64
+ r"""The Moov account ID the wallet belongs to."""
65
+
66
+ create_wallet: Annotated[
67
+ components_createwallet.CreateWallet,
68
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
69
+ ]
70
+
71
+
72
+ class CreateWalletResponseTypedDict(TypedDict):
73
+ headers: Dict[str, List[str]]
74
+ result: components_wallet.WalletTypedDict
75
+
76
+
77
+ class CreateWalletResponse(BaseModel):
78
+ headers: Dict[str, List[str]]
79
+
80
+ result: components_wallet.Wallet
@@ -1,9 +1,18 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
- from moovio_sdk.models.components import wallet as components_wallet
4
+ from moovio_sdk.models.components import (
5
+ wallet as components_wallet,
6
+ walletstatus as components_walletstatus,
7
+ wallettype as components_wallettype,
8
+ )
5
9
  from moovio_sdk.types import BaseModel
6
- from moovio_sdk.utils import FieldMetadata, HeaderMetadata, PathParamMetadata
10
+ from moovio_sdk.utils import (
11
+ FieldMetadata,
12
+ HeaderMetadata,
13
+ PathParamMetadata,
14
+ QueryParamMetadata,
15
+ )
7
16
  import pydantic
8
17
  from typing import Dict, List, Optional
9
18
  from typing_extensions import Annotated, NotRequired, TypedDict
@@ -43,6 +52,12 @@ class ListWalletsGlobals(BaseModel):
43
52
 
44
53
  class ListWalletsRequestTypedDict(TypedDict):
45
54
  account_id: str
55
+ status: NotRequired[components_walletstatus.WalletStatus]
56
+ r"""Optional parameter for filtering wallets by status."""
57
+ wallet_type: NotRequired[components_wallettype.WalletType]
58
+ r"""Optional parameter for filtering wallets by type."""
59
+ skip: NotRequired[int]
60
+ count: NotRequired[int]
46
61
 
47
62
 
48
63
  class ListWalletsRequest(BaseModel):
@@ -52,6 +67,29 @@ class ListWalletsRequest(BaseModel):
52
67
  FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
53
68
  ]
54
69
 
70
+ status: Annotated[
71
+ Optional[components_walletstatus.WalletStatus],
72
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
73
+ ] = None
74
+ r"""Optional parameter for filtering wallets by status."""
75
+
76
+ wallet_type: Annotated[
77
+ Optional[components_wallettype.WalletType],
78
+ pydantic.Field(alias="walletType"),
79
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
80
+ ] = None
81
+ r"""Optional parameter for filtering wallets by type."""
82
+
83
+ skip: Annotated[
84
+ Optional[int],
85
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
86
+ ] = None
87
+
88
+ count: Annotated[
89
+ Optional[int],
90
+ FieldMetadata(query=QueryParamMetadata(style="form", explode=False)),
91
+ ] = None
92
+
55
93
 
56
94
  class ListWalletsResponseTypedDict(TypedDict):
57
95
  headers: Dict[str, List[str]]
@@ -0,0 +1,89 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from moovio_sdk.models.components import (
5
+ patchwallet as components_patchwallet,
6
+ wallet as components_wallet,
7
+ )
8
+ from moovio_sdk.types import BaseModel
9
+ from moovio_sdk.utils import (
10
+ FieldMetadata,
11
+ HeaderMetadata,
12
+ PathParamMetadata,
13
+ RequestMetadata,
14
+ )
15
+ import pydantic
16
+ from typing import Dict, List, Optional
17
+ from typing_extensions import Annotated, NotRequired, TypedDict
18
+
19
+
20
+ class UpdateWalletGlobalsTypedDict(TypedDict):
21
+ x_moov_version: NotRequired[str]
22
+ r"""Specify an API version.
23
+
24
+ API versioning follows the format `vYYYY.QQ.BB`, where
25
+ - `YYYY` is the year
26
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
27
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
28
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
29
+
30
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
31
+ """
32
+
33
+
34
+ class UpdateWalletGlobals(BaseModel):
35
+ x_moov_version: Annotated[
36
+ Optional[str],
37
+ pydantic.Field(alias="x-moov-version"),
38
+ FieldMetadata(header=HeaderMetadata(style="simple", explode=False)),
39
+ ] = "v2024.01.00"
40
+ r"""Specify an API version.
41
+
42
+ API versioning follows the format `vYYYY.QQ.BB`, where
43
+ - `YYYY` is the year
44
+ - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
45
+ - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
46
+ - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
47
+
48
+ The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
49
+ """
50
+
51
+
52
+ class UpdateWalletRequestTypedDict(TypedDict):
53
+ wallet_id: str
54
+ r"""Identifier for the wallet."""
55
+ account_id: str
56
+ r"""The Moov account ID the wallet belongs to."""
57
+ patch_wallet: components_patchwallet.PatchWalletTypedDict
58
+
59
+
60
+ class UpdateWalletRequest(BaseModel):
61
+ wallet_id: Annotated[
62
+ str,
63
+ pydantic.Field(alias="walletID"),
64
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
65
+ ]
66
+ r"""Identifier for the wallet."""
67
+
68
+ account_id: Annotated[
69
+ str,
70
+ pydantic.Field(alias="accountID"),
71
+ FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
72
+ ]
73
+ r"""The Moov account ID the wallet belongs to."""
74
+
75
+ patch_wallet: Annotated[
76
+ components_patchwallet.PatchWallet,
77
+ FieldMetadata(request=RequestMetadata(media_type="application/json")),
78
+ ]
79
+
80
+
81
+ class UpdateWalletResponseTypedDict(TypedDict):
82
+ headers: Dict[str, List[str]]
83
+ result: components_wallet.WalletTypedDict
84
+
85
+
86
+ class UpdateWalletResponse(BaseModel):
87
+ headers: Dict[str, List[str]]
88
+
89
+ result: components_wallet.Wallet