-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
from .payment_type_enum import PaymentTypeEnum | ||
|
||
PatchedPaymentRequestType = typing.Union[PaymentTypeEnum, str] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
from .payment_type_enum import PaymentTypeEnum | ||
|
||
PaymentRequestType = typing.Union[PaymentTypeEnum, str] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
from .payment_type_enum import PaymentTypeEnum | ||
|
||
PaymentType = typing.Union[PaymentTypeEnum, str] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import enum | ||
import typing | ||
|
||
T_Result = typing.TypeVar("T_Result") | ||
|
||
|
||
class PaymentTypeEnum(str, enum.Enum): | ||
""" | ||
- `ACCOUNTS_PAYABLE` - ACCOUNTS_PAYABLE | ||
- `ACCOUNTS_RECEIVABLE` - ACCOUNTS_RECEIVABLE | ||
""" | ||
|
||
ACCOUNTS_PAYABLE = "ACCOUNTS_PAYABLE" | ||
ACCOUNTS_RECEIVABLE = "ACCOUNTS_RECEIVABLE" | ||
|
||
def visit( | ||
self, accounts_payable: typing.Callable[[], T_Result], accounts_receivable: typing.Callable[[], T_Result] | ||
) -> T_Result: | ||
if self is PaymentTypeEnum.ACCOUNTS_PAYABLE: | ||
return accounts_payable() | ||
if self is PaymentTypeEnum.ACCOUNTS_RECEIVABLE: | ||
return accounts_receivable() |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
RemoteFieldApiCoverage = typing.Union[int, float] |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# This file was auto-generated by Fern from our API Definition. | ||
|
||
import typing | ||
|
||
RemoteFieldApiCoverage = typing.Union[int, float] |