moovio_sdk 0.6.0__py3-none-any.whl → 0.7.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 +194 -0
- moovio_sdk/models/components/webhookdata.py +195 -0
- moovio_sdk/models/components/webhookdataaccountcreated.py +18 -0
- moovio_sdk/models/components/webhookdataaccountdeleted.py +18 -0
- moovio_sdk/models/components/webhookdataaccountupdated.py +18 -0
- moovio_sdk/models/components/webhookdatabalanceupdated.py +17 -0
- moovio_sdk/models/components/webhookdatabankaccountcreated.py +17 -0
- moovio_sdk/models/components/webhookdatabankaccountdeleted.py +17 -0
- moovio_sdk/models/components/webhookdatabankaccountupdated.py +38 -0
- moovio_sdk/models/components/webhookdatacancellationcreated.py +21 -0
- moovio_sdk/models/components/webhookdatacancellationupdated.py +21 -0
- moovio_sdk/models/components/webhookdatacapabilityrequested.py +30 -0
- moovio_sdk/models/components/webhookdatacapabilityupdated.py +36 -0
- moovio_sdk/models/components/webhookdatacardautoupdated.py +23 -0
- moovio_sdk/models/components/webhookdatadisputecreated.py +41 -0
- moovio_sdk/models/components/webhookdatadisputeupdated.py +41 -0
- moovio_sdk/models/components/webhookdatanetworkidupdated.py +33 -0
- moovio_sdk/models/components/webhookdatapaymentmethoddisabled.py +20 -0
- moovio_sdk/models/components/webhookdatapaymentmethodenabled.py +20 -0
- moovio_sdk/models/components/webhookdatarefundcreated.py +20 -0
- moovio_sdk/models/components/webhookdatarefundupdated.py +24 -0
- moovio_sdk/models/components/webhookdatarepresentativecreated.py +17 -0
- moovio_sdk/models/components/webhookdatarepresentativedisabled.py +17 -0
- moovio_sdk/models/components/webhookdatarepresentativeupdated.py +17 -0
- moovio_sdk/models/components/webhookdatasweepcreated.py +17 -0
- moovio_sdk/models/components/webhookdatasweepupdated.py +25 -0
- moovio_sdk/models/components/webhookdataterminalapplicationcreated.py +22 -0
- moovio_sdk/models/components/webhookdataterminalapplicationupdated.py +22 -0
- moovio_sdk/models/components/webhookdatatransfercreated.py +25 -0
- moovio_sdk/models/components/webhookdatatransferupdated.py +39 -0
- moovio_sdk/models/components/webhookdatawallettransactionupdated.py +37 -0
- moovio_sdk/models/components/webhookevent.py +36 -0
- moovio_sdk/models/components/webhookeventtype.py +38 -0
- moovio_sdk/models/components/webhooktransferpaymentmethoddetails.py +21 -0
- moovio_sdk/models/components/webhookwalletavailablebalance.py +24 -0
- moovio_sdk/payment_links.py +22 -2
- {moovio_sdk-0.6.0.dist-info → moovio_sdk-0.7.1.dist-info}/METADATA +1 -1
- {moovio_sdk-0.6.0.dist-info → moovio_sdk-0.7.1.dist-info}/RECORD +40 -6
- {moovio_sdk-0.6.0.dist-info → moovio_sdk-0.7.1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .cardupdatereason import CardUpdateReason
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class WebhookDataCardAutoUpdatedTypedDict(TypedDict):
|
11
|
+
card_id: str
|
12
|
+
account_id: str
|
13
|
+
update_type: CardUpdateReason
|
14
|
+
r"""The results of the card update request."""
|
15
|
+
|
16
|
+
|
17
|
+
class WebhookDataCardAutoUpdated(BaseModel):
|
18
|
+
card_id: Annotated[str, pydantic.Field(alias="cardID")]
|
19
|
+
|
20
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
21
|
+
|
22
|
+
update_type: Annotated[CardUpdateReason, pydantic.Field(alias="updateType")]
|
23
|
+
r"""The results of the card update request."""
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .disputephase import DisputePhase
|
5
|
+
from .disputestatus import DisputeStatus
|
6
|
+
from moovio_sdk.types import BaseModel
|
7
|
+
import pydantic
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
9
|
+
|
10
|
+
|
11
|
+
class WebhookDataDisputeCreatedTypedDict(TypedDict):
|
12
|
+
account_id: str
|
13
|
+
transfer_id: str
|
14
|
+
transaction_id: str
|
15
|
+
dispute_id: str
|
16
|
+
status: DisputeStatus
|
17
|
+
r"""The status of a particular dispute.
|
18
|
+
|
19
|
+
Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
20
|
+
"""
|
21
|
+
phase: DisputePhase
|
22
|
+
r"""The phase of a dispute within the dispute lifecycle."""
|
23
|
+
|
24
|
+
|
25
|
+
class WebhookDataDisputeCreated(BaseModel):
|
26
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
27
|
+
|
28
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
29
|
+
|
30
|
+
transaction_id: Annotated[str, pydantic.Field(alias="transactionID")]
|
31
|
+
|
32
|
+
dispute_id: Annotated[str, pydantic.Field(alias="disputeID")]
|
33
|
+
|
34
|
+
status: DisputeStatus
|
35
|
+
r"""The status of a particular dispute.
|
36
|
+
|
37
|
+
Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
38
|
+
"""
|
39
|
+
|
40
|
+
phase: DisputePhase
|
41
|
+
r"""The phase of a dispute within the dispute lifecycle."""
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .disputephase import DisputePhase
|
5
|
+
from .disputestatus import DisputeStatus
|
6
|
+
from moovio_sdk.types import BaseModel
|
7
|
+
import pydantic
|
8
|
+
from typing_extensions import Annotated, TypedDict
|
9
|
+
|
10
|
+
|
11
|
+
class WebhookDataDisputeUpdatedTypedDict(TypedDict):
|
12
|
+
account_id: str
|
13
|
+
transfer_id: str
|
14
|
+
transaction_id: str
|
15
|
+
dispute_id: str
|
16
|
+
status: DisputeStatus
|
17
|
+
r"""The status of a particular dispute.
|
18
|
+
|
19
|
+
Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
20
|
+
"""
|
21
|
+
phase: DisputePhase
|
22
|
+
r"""The phase of a dispute within the dispute lifecycle."""
|
23
|
+
|
24
|
+
|
25
|
+
class WebhookDataDisputeUpdated(BaseModel):
|
26
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
27
|
+
|
28
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
29
|
+
|
30
|
+
transaction_id: Annotated[str, pydantic.Field(alias="transactionID")]
|
31
|
+
|
32
|
+
dispute_id: Annotated[str, pydantic.Field(alias="disputeID")]
|
33
|
+
|
34
|
+
status: DisputeStatus
|
35
|
+
r"""The status of a particular dispute.
|
36
|
+
|
37
|
+
Read our [disputes guide](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/disputes/#dispute-statuses) to learn what each status means.
|
38
|
+
"""
|
39
|
+
|
40
|
+
phase: DisputePhase
|
41
|
+
r"""The phase of a dispute within the dispute lifecycle."""
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from datetime import datetime
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing import Optional
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
9
|
+
|
10
|
+
|
11
|
+
class WebhookDataNetworkIDUpdatedTypedDict(TypedDict):
|
12
|
+
account_id: str
|
13
|
+
visa_mid: NotRequired[str]
|
14
|
+
mastercard_mid: NotRequired[str]
|
15
|
+
discover_mid: NotRequired[str]
|
16
|
+
amex_mid: NotRequired[str]
|
17
|
+
updated_on: NotRequired[datetime]
|
18
|
+
|
19
|
+
|
20
|
+
class WebhookDataNetworkIDUpdated(BaseModel):
|
21
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
22
|
+
|
23
|
+
visa_mid: Annotated[Optional[str], pydantic.Field(alias="visaMid")] = None
|
24
|
+
|
25
|
+
mastercard_mid: Annotated[Optional[str], pydantic.Field(alias="mastercardMid")] = (
|
26
|
+
None
|
27
|
+
)
|
28
|
+
|
29
|
+
discover_mid: Annotated[Optional[str], pydantic.Field(alias="discoverMid")] = None
|
30
|
+
|
31
|
+
amex_mid: Annotated[Optional[str], pydantic.Field(alias="amexMid")] = None
|
32
|
+
|
33
|
+
updated_on: Annotated[Optional[datetime], pydantic.Field(alias="updatedOn")] = None
|
@@ -0,0 +1,20 @@
|
|
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 WebhookDataPaymentMethodDisabledTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
payment_method_id: str
|
12
|
+
source_id: str
|
13
|
+
|
14
|
+
|
15
|
+
class WebhookDataPaymentMethodDisabled(BaseModel):
|
16
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
17
|
+
|
18
|
+
payment_method_id: Annotated[str, pydantic.Field(alias="paymentMethodID")]
|
19
|
+
|
20
|
+
source_id: Annotated[str, pydantic.Field(alias="sourceID")]
|
@@ -0,0 +1,20 @@
|
|
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 WebhookDataPaymentMethodEnabledTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
payment_method_id: str
|
12
|
+
source_id: str
|
13
|
+
|
14
|
+
|
15
|
+
class WebhookDataPaymentMethodEnabled(BaseModel):
|
16
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
17
|
+
|
18
|
+
payment_method_id: Annotated[str, pydantic.Field(alias="paymentMethodID")]
|
19
|
+
|
20
|
+
source_id: Annotated[str, pydantic.Field(alias="sourceID")]
|
@@ -0,0 +1,20 @@
|
|
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 WebhookDataRefundCreatedTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
transfer_id: str
|
12
|
+
refund_id: str
|
13
|
+
|
14
|
+
|
15
|
+
class WebhookDataRefundCreated(BaseModel):
|
16
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
17
|
+
|
18
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
19
|
+
|
20
|
+
refund_id: Annotated[str, pydantic.Field(alias="refundID")]
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .refundstatus import RefundStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class WebhookDataRefundUpdatedTypedDict(TypedDict):
|
11
|
+
account_id: str
|
12
|
+
transfer_id: str
|
13
|
+
refund_id: str
|
14
|
+
status: RefundStatus
|
15
|
+
|
16
|
+
|
17
|
+
class WebhookDataRefundUpdated(BaseModel):
|
18
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
19
|
+
|
20
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
21
|
+
|
22
|
+
refund_id: Annotated[str, pydantic.Field(alias="refundID")]
|
23
|
+
|
24
|
+
status: RefundStatus
|
@@ -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 WebhookDataRepresentativeCreatedTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
representative_id: str
|
12
|
+
|
13
|
+
|
14
|
+
class WebhookDataRepresentativeCreated(BaseModel):
|
15
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
16
|
+
|
17
|
+
representative_id: Annotated[str, pydantic.Field(alias="representativeID")]
|
@@ -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 WebhookDataRepresentativeDisabledTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
representative_id: str
|
12
|
+
|
13
|
+
|
14
|
+
class WebhookDataRepresentativeDisabled(BaseModel):
|
15
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
16
|
+
|
17
|
+
representative_id: Annotated[str, pydantic.Field(alias="representativeID")]
|
@@ -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 WebhookDataRepresentativeUpdatedTypedDict(TypedDict):
|
10
|
+
account_id: str
|
11
|
+
representative_id: str
|
12
|
+
|
13
|
+
|
14
|
+
class WebhookDataRepresentativeUpdated(BaseModel):
|
15
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
16
|
+
|
17
|
+
representative_id: Annotated[str, pydantic.Field(alias="representativeID")]
|
@@ -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 WebhookDataSweepCreatedTypedDict(TypedDict):
|
10
|
+
wallet_id: str
|
11
|
+
sweep_id: str
|
12
|
+
|
13
|
+
|
14
|
+
class WebhookDataSweepCreated(BaseModel):
|
15
|
+
wallet_id: Annotated[str, pydantic.Field(alias="walletID")]
|
16
|
+
|
17
|
+
sweep_id: Annotated[str, pydantic.Field(alias="sweepID")]
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .sweepstatus import SweepStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing import Optional
|
8
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
9
|
+
|
10
|
+
|
11
|
+
class WebhookDataSweepUpdatedTypedDict(TypedDict):
|
12
|
+
wallet_id: str
|
13
|
+
sweep_id: str
|
14
|
+
status: SweepStatus
|
15
|
+
transfer_id: NotRequired[str]
|
16
|
+
|
17
|
+
|
18
|
+
class WebhookDataSweepUpdated(BaseModel):
|
19
|
+
wallet_id: Annotated[str, pydantic.Field(alias="walletID")]
|
20
|
+
|
21
|
+
sweep_id: Annotated[str, pydantic.Field(alias="sweepID")]
|
22
|
+
|
23
|
+
status: SweepStatus
|
24
|
+
|
25
|
+
transfer_id: Annotated[Optional[str], pydantic.Field(alias="transferID")] = None
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .terminalapplicationstatus import TerminalApplicationStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class WebhookDataTerminalApplicationCreatedTypedDict(TypedDict):
|
11
|
+
terminal_application_id: str
|
12
|
+
status: TerminalApplicationStatus
|
13
|
+
r"""Status of the terminal application."""
|
14
|
+
|
15
|
+
|
16
|
+
class WebhookDataTerminalApplicationCreated(BaseModel):
|
17
|
+
terminal_application_id: Annotated[
|
18
|
+
str, pydantic.Field(alias="terminalApplicationID")
|
19
|
+
]
|
20
|
+
|
21
|
+
status: TerminalApplicationStatus
|
22
|
+
r"""Status of the terminal application."""
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .terminalapplicationstatus import TerminalApplicationStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class WebhookDataTerminalApplicationUpdatedTypedDict(TypedDict):
|
11
|
+
terminal_application_id: str
|
12
|
+
status: TerminalApplicationStatus
|
13
|
+
r"""Status of the terminal application."""
|
14
|
+
|
15
|
+
|
16
|
+
class WebhookDataTerminalApplicationUpdated(BaseModel):
|
17
|
+
terminal_application_id: Annotated[
|
18
|
+
str, pydantic.Field(alias="terminalApplicationID")
|
19
|
+
]
|
20
|
+
|
21
|
+
status: TerminalApplicationStatus
|
22
|
+
r"""Status of the terminal application."""
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .transferstatus import TransferStatus
|
5
|
+
from moovio_sdk.types import BaseModel
|
6
|
+
import pydantic
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
8
|
+
|
9
|
+
|
10
|
+
class WebhookDataTransferCreatedTypedDict(TypedDict):
|
11
|
+
account_id: str
|
12
|
+
r"""The accountID which facilitated the transfer."""
|
13
|
+
transfer_id: str
|
14
|
+
status: TransferStatus
|
15
|
+
r"""Status of a transfer."""
|
16
|
+
|
17
|
+
|
18
|
+
class WebhookDataTransferCreated(BaseModel):
|
19
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
20
|
+
r"""The accountID which facilitated the transfer."""
|
21
|
+
|
22
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
23
|
+
|
24
|
+
status: TransferStatus
|
25
|
+
r"""Status of a transfer."""
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .transferstatus import TransferStatus
|
5
|
+
from .webhooktransferpaymentmethoddetails import (
|
6
|
+
WebhookTransferPaymentMethodDetails,
|
7
|
+
WebhookTransferPaymentMethodDetailsTypedDict,
|
8
|
+
)
|
9
|
+
from moovio_sdk.types import BaseModel
|
10
|
+
import pydantic
|
11
|
+
from typing_extensions import Annotated, TypedDict
|
12
|
+
|
13
|
+
|
14
|
+
class WebhookDataTransferUpdatedTypedDict(TypedDict):
|
15
|
+
account_id: str
|
16
|
+
r"""The accountID which facilitated the transfer."""
|
17
|
+
transfer_id: str
|
18
|
+
status: TransferStatus
|
19
|
+
r"""Status of a transfer."""
|
20
|
+
source: WebhookTransferPaymentMethodDetailsTypedDict
|
21
|
+
r"""Payment method details for the source or destination of a transfer."""
|
22
|
+
destination: WebhookTransferPaymentMethodDetailsTypedDict
|
23
|
+
r"""Payment method details for the source or destination of a transfer."""
|
24
|
+
|
25
|
+
|
26
|
+
class WebhookDataTransferUpdated(BaseModel):
|
27
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
28
|
+
r"""The accountID which facilitated the transfer."""
|
29
|
+
|
30
|
+
transfer_id: Annotated[str, pydantic.Field(alias="transferID")]
|
31
|
+
|
32
|
+
status: TransferStatus
|
33
|
+
r"""Status of a transfer."""
|
34
|
+
|
35
|
+
source: WebhookTransferPaymentMethodDetails
|
36
|
+
r"""Payment method details for the source or destination of a transfer."""
|
37
|
+
|
38
|
+
destination: WebhookTransferPaymentMethodDetails
|
39
|
+
r"""Payment method details for the source or destination of a transfer."""
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .wallettransactionstatus import WalletTransactionStatus
|
5
|
+
from .webhookwalletavailablebalance import (
|
6
|
+
WebhookWalletAvailableBalance,
|
7
|
+
WebhookWalletAvailableBalanceTypedDict,
|
8
|
+
)
|
9
|
+
from moovio_sdk.types import BaseModel
|
10
|
+
import pydantic
|
11
|
+
from typing import Optional
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
13
|
+
|
14
|
+
|
15
|
+
class WebhookDataWalletTransactionUpdatedTypedDict(TypedDict):
|
16
|
+
account_id: str
|
17
|
+
wallet_id: str
|
18
|
+
transaction_id: str
|
19
|
+
status: WalletTransactionStatus
|
20
|
+
available_balance: NotRequired[WebhookWalletAvailableBalanceTypedDict]
|
21
|
+
r"""The available balance of a wallet."""
|
22
|
+
|
23
|
+
|
24
|
+
class WebhookDataWalletTransactionUpdated(BaseModel):
|
25
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
26
|
+
|
27
|
+
wallet_id: Annotated[str, pydantic.Field(alias="walletID")]
|
28
|
+
|
29
|
+
transaction_id: Annotated[str, pydantic.Field(alias="transactionID")]
|
30
|
+
|
31
|
+
status: WalletTransactionStatus
|
32
|
+
|
33
|
+
available_balance: Annotated[
|
34
|
+
Optional[WebhookWalletAvailableBalance],
|
35
|
+
pydantic.Field(alias="availableBalance"),
|
36
|
+
] = None
|
37
|
+
r"""The available balance of a wallet."""
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
2
|
+
|
3
|
+
from __future__ import annotations
|
4
|
+
from .webhookdata import WebhookData, WebhookDataTypedDict
|
5
|
+
from .webhookeventtype import WebhookEventType
|
6
|
+
from datetime import datetime
|
7
|
+
from moovio_sdk.types import BaseModel
|
8
|
+
import pydantic
|
9
|
+
from typing_extensions import Annotated, TypedDict
|
10
|
+
|
11
|
+
|
12
|
+
class WebhookEventTypedDict(TypedDict):
|
13
|
+
r"""Webhook events are sent to your webhook URL when certain actions occur in the Moov API. You can subscribe to these events to receive real-time notifications."""
|
14
|
+
|
15
|
+
event_id: str
|
16
|
+
r"""Unique identifier for the webhook event."""
|
17
|
+
type: WebhookEventType
|
18
|
+
r"""The type of event that occurred."""
|
19
|
+
data: WebhookDataTypedDict
|
20
|
+
r"""The data for the webhook event. The contents are based on the event type."""
|
21
|
+
created_on: datetime
|
22
|
+
|
23
|
+
|
24
|
+
class WebhookEvent(BaseModel):
|
25
|
+
r"""Webhook events are sent to your webhook URL when certain actions occur in the Moov API. You can subscribe to these events to receive real-time notifications."""
|
26
|
+
|
27
|
+
event_id: Annotated[str, pydantic.Field(alias="eventID")]
|
28
|
+
r"""Unique identifier for the webhook event."""
|
29
|
+
|
30
|
+
type: WebhookEventType
|
31
|
+
r"""The type of event that occurred."""
|
32
|
+
|
33
|
+
data: WebhookData
|
34
|
+
r"""The data for the webhook event. The contents are based on the event type."""
|
35
|
+
|
36
|
+
created_on: Annotated[datetime, pydantic.Field(alias="createdOn")]
|
@@ -0,0 +1,38 @@
|
|
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 WebhookEventType(str, Enum):
|
8
|
+
r"""The type of event that occurred."""
|
9
|
+
|
10
|
+
ACCOUNT_CREATED = "account.created"
|
11
|
+
ACCOUNT_UPDATED = "account.updated"
|
12
|
+
ACCOUNT_DELETED = "account.deleted"
|
13
|
+
BALANCE_UPDATED = "balance.updated"
|
14
|
+
BANK_ACCOUNT_CREATED = "bankAccount.created"
|
15
|
+
BANK_ACCOUNT_UPDATED = "bankAccount.updated"
|
16
|
+
BANK_ACCOUNT_DELETED = "bankAccount.deleted"
|
17
|
+
CANCELLATION_CREATED = "cancellation.created"
|
18
|
+
CANCELLATION_UPDATED = "cancellation.updated"
|
19
|
+
CARD_AUTO_UPDATED = "card.autoUpdated"
|
20
|
+
CAPABILITY_REQUESTED = "capability.requested"
|
21
|
+
CAPABILITY_UPDATED = "capability.updated"
|
22
|
+
DISPUTE_CREATED = "dispute.created"
|
23
|
+
DISPUTE_UPDATED = "dispute.updated"
|
24
|
+
NETWORK_ID_UPDATED = "networkID.updated"
|
25
|
+
PAYMENT_METHOD_ENABLED = "paymentMethod.enabled"
|
26
|
+
PAYMENT_METHOD_DISABLED = "paymentMethod.disabled"
|
27
|
+
REFUND_CREATED = "refund.created"
|
28
|
+
REFUND_UPDATED = "refund.updated"
|
29
|
+
REPRESENTATIVE_CREATED = "representative.created"
|
30
|
+
REPRESENTATIVE_UPDATED = "representative.updated"
|
31
|
+
REPRESENTATIVE_DELETED = "representative.deleted"
|
32
|
+
SWEEP_CREATED = "sweep.created"
|
33
|
+
SWEEP_UPDATED = "sweep.updated"
|
34
|
+
TERMINAL_APPLICATION_CREATED = "terminalApplication.created"
|
35
|
+
TERMINAL_APPLICATION_UPDATED = "terminalApplication.updated"
|
36
|
+
TRANSFER_CREATED = "transfer.created"
|
37
|
+
TRANSFER_UPDATED = "transfer.updated"
|
38
|
+
WALLET_TRANSACTION_UPDATED = "walletTransaction.updated"
|
@@ -0,0 +1,21 @@
|
|
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 WebhookTransferPaymentMethodDetailsTypedDict(TypedDict):
|
10
|
+
r"""Payment method details for the source or destination of a transfer."""
|
11
|
+
|
12
|
+
account_id: str
|
13
|
+
payment_method_id: str
|
14
|
+
|
15
|
+
|
16
|
+
class WebhookTransferPaymentMethodDetails(BaseModel):
|
17
|
+
r"""Payment method details for the source or destination of a transfer."""
|
18
|
+
|
19
|
+
account_id: Annotated[str, pydantic.Field(alias="accountID")]
|
20
|
+
|
21
|
+
payment_method_id: Annotated[str, pydantic.Field(alias="paymentMethodID")]
|
@@ -0,0 +1,24 @@
|
|
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 WebhookWalletAvailableBalanceTypedDict(TypedDict):
|
10
|
+
r"""The available balance of a wallet."""
|
11
|
+
|
12
|
+
currency: str
|
13
|
+
value: int
|
14
|
+
value_decimal: str
|
15
|
+
|
16
|
+
|
17
|
+
class WebhookWalletAvailableBalance(BaseModel):
|
18
|
+
r"""The available balance of a wallet."""
|
19
|
+
|
20
|
+
currency: str
|
21
|
+
|
22
|
+
value: int
|
23
|
+
|
24
|
+
value_decimal: Annotated[str, pydantic.Field(alias="valueDecimal")]
|
moovio_sdk/payment_links.py
CHANGED
@@ -1313,7 +1313,7 @@ class PaymentLinks(BaseSDK):
|
|
1313
1313
|
),
|
1314
1314
|
),
|
1315
1315
|
request=req,
|
1316
|
-
error_status_codes=["4XX", "5XX"],
|
1316
|
+
error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
1317
1317
|
retry_config=retry_config,
|
1318
1318
|
)
|
1319
1319
|
|
@@ -1321,6 +1321,16 @@ class PaymentLinks(BaseSDK):
|
|
1321
1321
|
return operations.DisablePaymentLinkResponse(
|
1322
1322
|
headers=utils.get_response_headers(http_res.headers)
|
1323
1323
|
)
|
1324
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
1325
|
+
http_res_text = utils.stream_to_text(http_res)
|
1326
|
+
raise errors.APIError(
|
1327
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1328
|
+
)
|
1329
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
1330
|
+
http_res_text = utils.stream_to_text(http_res)
|
1331
|
+
raise errors.APIError(
|
1332
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1333
|
+
)
|
1324
1334
|
if utils.match_response(http_res, "4XX", "*"):
|
1325
1335
|
http_res_text = utils.stream_to_text(http_res)
|
1326
1336
|
raise errors.APIError(
|
@@ -1415,7 +1425,7 @@ class PaymentLinks(BaseSDK):
|
|
1415
1425
|
),
|
1416
1426
|
),
|
1417
1427
|
request=req,
|
1418
|
-
error_status_codes=["4XX", "5XX"],
|
1428
|
+
error_status_codes=["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
1419
1429
|
retry_config=retry_config,
|
1420
1430
|
)
|
1421
1431
|
|
@@ -1423,6 +1433,16 @@ class PaymentLinks(BaseSDK):
|
|
1423
1433
|
return operations.DisablePaymentLinkResponse(
|
1424
1434
|
headers=utils.get_response_headers(http_res.headers)
|
1425
1435
|
)
|
1436
|
+
if utils.match_response(http_res, ["401", "403", "404", "429"], "*"):
|
1437
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1438
|
+
raise errors.APIError(
|
1439
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1440
|
+
)
|
1441
|
+
if utils.match_response(http_res, ["500", "504"], "*"):
|
1442
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
1443
|
+
raise errors.APIError(
|
1444
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
1445
|
+
)
|
1426
1446
|
if utils.match_response(http_res, "4XX", "*"):
|
1427
1447
|
http_res_text = await utils.stream_to_text_async(http_res)
|
1428
1448
|
raise errors.APIError(
|