whop-sdk 0.0.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.
Potentially problematic release.
This version of whop-sdk might be problematic. Click here for more details.
- whop_sdk/__init__.py +94 -0
- whop_sdk/_base_client.py +1995 -0
- whop_sdk/_client.py +664 -0
- whop_sdk/_compat.py +219 -0
- whop_sdk/_constants.py +14 -0
- whop_sdk/_exceptions.py +112 -0
- whop_sdk/_files.py +123 -0
- whop_sdk/_models.py +835 -0
- whop_sdk/_qs.py +150 -0
- whop_sdk/_resource.py +43 -0
- whop_sdk/_response.py +830 -0
- whop_sdk/_streaming.py +333 -0
- whop_sdk/_types.py +260 -0
- whop_sdk/_utils/__init__.py +64 -0
- whop_sdk/_utils/_compat.py +45 -0
- whop_sdk/_utils/_datetime_parse.py +136 -0
- whop_sdk/_utils/_logs.py +25 -0
- whop_sdk/_utils/_proxy.py +65 -0
- whop_sdk/_utils/_reflection.py +42 -0
- whop_sdk/_utils/_resources_proxy.py +24 -0
- whop_sdk/_utils/_streams.py +12 -0
- whop_sdk/_utils/_sync.py +86 -0
- whop_sdk/_utils/_transform.py +457 -0
- whop_sdk/_utils/_typing.py +156 -0
- whop_sdk/_utils/_utils.py +421 -0
- whop_sdk/_version.py +4 -0
- whop_sdk/lib/.keep +4 -0
- whop_sdk/pagination.py +61 -0
- whop_sdk/py.typed +0 -0
- whop_sdk/resources/__init__.py +316 -0
- whop_sdk/resources/app_builds.py +562 -0
- whop_sdk/resources/apps.py +665 -0
- whop_sdk/resources/authorized_users.py +336 -0
- whop_sdk/resources/chat_channels.py +469 -0
- whop_sdk/resources/checkout_configurations.py +464 -0
- whop_sdk/resources/companies.py +171 -0
- whop_sdk/resources/course_lesson_interactions.py +343 -0
- whop_sdk/resources/entries.py +539 -0
- whop_sdk/resources/experiences.py +859 -0
- whop_sdk/resources/forum_posts.py +512 -0
- whop_sdk/resources/invoices.py +633 -0
- whop_sdk/resources/ledger_accounts.py +171 -0
- whop_sdk/resources/memberships.py +810 -0
- whop_sdk/resources/messages.py +446 -0
- whop_sdk/resources/payments.py +761 -0
- whop_sdk/resources/plans.py +906 -0
- whop_sdk/resources/products.py +969 -0
- whop_sdk/resources/reactions.py +423 -0
- whop_sdk/resources/shipments.py +451 -0
- whop_sdk/resources/support_channels.py +455 -0
- whop_sdk/resources/transfers.py +488 -0
- whop_sdk/resources/users.py +248 -0
- whop_sdk/resources/webhooks.py +69 -0
- whop_sdk/types/__init__.py +135 -0
- whop_sdk/types/app_build_create_params.py +59 -0
- whop_sdk/types/app_build_list_params.py +34 -0
- whop_sdk/types/app_build_list_response.py +50 -0
- whop_sdk/types/app_create_params.py +19 -0
- whop_sdk/types/app_list_params.py +54 -0
- whop_sdk/types/app_list_response.py +91 -0
- whop_sdk/types/app_update_params.py +58 -0
- whop_sdk/types/authorized_user_list_params.py +33 -0
- whop_sdk/types/authorized_user_list_response.py +33 -0
- whop_sdk/types/authorized_user_retrieve_response.py +33 -0
- whop_sdk/types/chat_channel_list_params.py +28 -0
- whop_sdk/types/chat_channel_list_response.py +43 -0
- whop_sdk/types/chat_channel_update_params.py +32 -0
- whop_sdk/types/checkout_configuration_create_params.py +129 -0
- whop_sdk/types/checkout_configuration_list_params.py +33 -0
- whop_sdk/types/checkout_configuration_list_response.py +66 -0
- whop_sdk/types/course_lesson_interaction_list_params.py +34 -0
- whop_sdk/types/entry_approve_response.py +10 -0
- whop_sdk/types/entry_list_params.py +44 -0
- whop_sdk/types/entry_list_response.py +56 -0
- whop_sdk/types/experience_attach_params.py +12 -0
- whop_sdk/types/experience_create_params.py +22 -0
- whop_sdk/types/experience_delete_response.py +7 -0
- whop_sdk/types/experience_detach_params.py +12 -0
- whop_sdk/types/experience_list_params.py +31 -0
- whop_sdk/types/experience_list_response.py +47 -0
- whop_sdk/types/experience_update_params.py +41 -0
- whop_sdk/types/forum_post_create_params.py +85 -0
- whop_sdk/types/forum_post_list_params.py +31 -0
- whop_sdk/types/forum_post_list_response.py +53 -0
- whop_sdk/types/invoice_create_params.py +137 -0
- whop_sdk/types/invoice_create_response.py +16 -0
- whop_sdk/types/invoice_created_webhook_event.py +26 -0
- whop_sdk/types/invoice_list_params.py +50 -0
- whop_sdk/types/invoice_paid_webhook_event.py +26 -0
- whop_sdk/types/invoice_past_due_webhook_event.py +26 -0
- whop_sdk/types/invoice_void_response.py +7 -0
- whop_sdk/types/invoice_voided_webhook_event.py +26 -0
- whop_sdk/types/ledger_account_retrieve_response.py +78 -0
- whop_sdk/types/membership_cancel_params.py +13 -0
- whop_sdk/types/membership_list_params.py +70 -0
- whop_sdk/types/membership_list_response.py +117 -0
- whop_sdk/types/membership_pause_params.py +16 -0
- whop_sdk/types/membership_update_params.py +13 -0
- whop_sdk/types/message_create_params.py +51 -0
- whop_sdk/types/message_list_params.py +30 -0
- whop_sdk/types/message_list_response.py +90 -0
- whop_sdk/types/payment_list_params.py +72 -0
- whop_sdk/types/payment_list_response.py +221 -0
- whop_sdk/types/payment_refund_params.py +13 -0
- whop_sdk/types/plan_create_params.py +106 -0
- whop_sdk/types/plan_delete_response.py +7 -0
- whop_sdk/types/plan_list_params.py +49 -0
- whop_sdk/types/plan_list_response.py +92 -0
- whop_sdk/types/plan_update_params.py +95 -0
- whop_sdk/types/product_create_params.py +170 -0
- whop_sdk/types/product_delete_response.py +7 -0
- whop_sdk/types/product_list_params.py +41 -0
- whop_sdk/types/product_update_params.py +90 -0
- whop_sdk/types/reaction_create_params.py +19 -0
- whop_sdk/types/reaction_list_params.py +25 -0
- whop_sdk/types/reaction_list_response.py +32 -0
- whop_sdk/types/shared/__init__.py +55 -0
- whop_sdk/types/shared/access_pass_type.py +7 -0
- whop_sdk/types/shared/app.py +159 -0
- whop_sdk/types/shared/app_build.py +50 -0
- whop_sdk/types/shared/app_build_platforms.py +7 -0
- whop_sdk/types/shared/app_build_statuses.py +7 -0
- whop_sdk/types/shared/app_statuses.py +7 -0
- whop_sdk/types/shared/app_view_type.py +7 -0
- whop_sdk/types/shared/authorized_user_roles.py +9 -0
- whop_sdk/types/shared/business_types.py +22 -0
- whop_sdk/types/shared/chat_channel.py +43 -0
- whop_sdk/types/shared/checkout_configuration.py +66 -0
- whop_sdk/types/shared/collection_method.py +7 -0
- whop_sdk/types/shared/company.py +71 -0
- whop_sdk/types/shared/course_lesson_interaction.py +44 -0
- whop_sdk/types/shared/course_lesson_interaction_list_item.py +44 -0
- whop_sdk/types/shared/currency.py +92 -0
- whop_sdk/types/shared/custom_cta.py +21 -0
- whop_sdk/types/shared/direction.py +7 -0
- whop_sdk/types/shared/dms_post_types.py +7 -0
- whop_sdk/types/shared/entry.py +70 -0
- whop_sdk/types/shared/entry_status.py +7 -0
- whop_sdk/types/shared/experience.py +66 -0
- whop_sdk/types/shared/forum_post.py +53 -0
- whop_sdk/types/shared/friendly_receipt_status.py +24 -0
- whop_sdk/types/shared/global_affiliate_status.py +7 -0
- whop_sdk/types/shared/industry_types.py +67 -0
- whop_sdk/types/shared/invoice.py +61 -0
- whop_sdk/types/shared/invoice_list_item.py +61 -0
- whop_sdk/types/shared/invoice_status.py +7 -0
- whop_sdk/types/shared/membership.py +117 -0
- whop_sdk/types/shared/membership_status.py +9 -0
- whop_sdk/types/shared/message.py +90 -0
- whop_sdk/types/shared/page_info.py +21 -0
- whop_sdk/types/shared/payment.py +211 -0
- whop_sdk/types/shared/plan.py +123 -0
- whop_sdk/types/shared/plan_type.py +7 -0
- whop_sdk/types/shared/product.py +124 -0
- whop_sdk/types/shared/product_list_item.py +49 -0
- whop_sdk/types/shared/promo_type.py +7 -0
- whop_sdk/types/shared/reaction.py +32 -0
- whop_sdk/types/shared/receipt_status.py +7 -0
- whop_sdk/types/shared/release_method.py +7 -0
- whop_sdk/types/shared/shipment.py +48 -0
- whop_sdk/types/shared/shipment_carrier.py +84 -0
- whop_sdk/types/shared/shipment_status.py +18 -0
- whop_sdk/types/shared/shipment_substatus.py +36 -0
- whop_sdk/types/shared/support_channel.py +39 -0
- whop_sdk/types/shared/tax_type.py +7 -0
- whop_sdk/types/shared/transfer.py +109 -0
- whop_sdk/types/shared/visibility.py +7 -0
- whop_sdk/types/shared/visibility_filter.py +9 -0
- whop_sdk/types/shared/who_can_post.py +7 -0
- whop_sdk/types/shared/who_can_react.py +7 -0
- whop_sdk/types/shared_params/__init__.py +27 -0
- whop_sdk/types/shared_params/access_pass_type.py +9 -0
- whop_sdk/types/shared_params/app_build_platforms.py +9 -0
- whop_sdk/types/shared_params/app_build_statuses.py +9 -0
- whop_sdk/types/shared_params/app_statuses.py +9 -0
- whop_sdk/types/shared_params/app_view_type.py +9 -0
- whop_sdk/types/shared_params/authorized_user_roles.py +11 -0
- whop_sdk/types/shared_params/business_types.py +24 -0
- whop_sdk/types/shared_params/collection_method.py +9 -0
- whop_sdk/types/shared_params/currency.py +94 -0
- whop_sdk/types/shared_params/custom_cta.py +23 -0
- whop_sdk/types/shared_params/direction.py +9 -0
- whop_sdk/types/shared_params/entry_status.py +9 -0
- whop_sdk/types/shared_params/friendly_receipt_status.py +26 -0
- whop_sdk/types/shared_params/global_affiliate_status.py +9 -0
- whop_sdk/types/shared_params/industry_types.py +69 -0
- whop_sdk/types/shared_params/invoice_status.py +9 -0
- whop_sdk/types/shared_params/membership_status.py +11 -0
- whop_sdk/types/shared_params/plan_type.py +9 -0
- whop_sdk/types/shared_params/receipt_status.py +9 -0
- whop_sdk/types/shared_params/release_method.py +9 -0
- whop_sdk/types/shared_params/tax_type.py +9 -0
- whop_sdk/types/shared_params/visibility.py +9 -0
- whop_sdk/types/shared_params/visibility_filter.py +11 -0
- whop_sdk/types/shared_params/who_can_post.py +9 -0
- whop_sdk/types/shared_params/who_can_react.py +9 -0
- whop_sdk/types/shipment_create_params.py +18 -0
- whop_sdk/types/shipment_list_params.py +31 -0
- whop_sdk/types/shipment_list_response.py +48 -0
- whop_sdk/types/support_channel_create_params.py +15 -0
- whop_sdk/types/support_channel_list_params.py +40 -0
- whop_sdk/types/support_channel_list_response.py +39 -0
- whop_sdk/types/transfer_create_params.py +36 -0
- whop_sdk/types/transfer_list_params.py +42 -0
- whop_sdk/types/transfer_list_response.py +35 -0
- whop_sdk/types/unwrap_webhook_event.py +15 -0
- whop_sdk/types/user_check_access_response.py +15 -0
- whop_sdk/types/user_retrieve_response.py +25 -0
- whop_sdk-0.0.1.dist-info/METADATA +522 -0
- whop_sdk-0.0.1.dist-info/RECORD +212 -0
- whop_sdk-0.0.1.dist-info/WHEEL +4 -0
- whop_sdk-0.0.1.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing import Union, Optional
|
|
4
|
+
from datetime import datetime
|
|
5
|
+
from typing_extensions import Literal, Annotated, TypeAlias
|
|
6
|
+
|
|
7
|
+
from ..._utils import PropertyInfo
|
|
8
|
+
from .currency import Currency
|
|
9
|
+
from ..._models import BaseModel
|
|
10
|
+
|
|
11
|
+
__all__ = ["Transfer", "Destination", "DestinationUser", "DestinationCompany", "Origin", "OriginUser", "OriginCompany"]
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class DestinationUser(BaseModel):
|
|
15
|
+
id: str
|
|
16
|
+
"""The internal ID of the user."""
|
|
17
|
+
|
|
18
|
+
name: Optional[str] = None
|
|
19
|
+
"""The name of the user from their Whop account."""
|
|
20
|
+
|
|
21
|
+
typename: Literal["User"]
|
|
22
|
+
"""The typename of this object"""
|
|
23
|
+
|
|
24
|
+
username: str
|
|
25
|
+
"""The username of the user from their Whop account."""
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class DestinationCompany(BaseModel):
|
|
29
|
+
id: str
|
|
30
|
+
"""The ID (tag) of the company."""
|
|
31
|
+
|
|
32
|
+
route: str
|
|
33
|
+
"""The slug/route of the company on the Whop site."""
|
|
34
|
+
|
|
35
|
+
title: str
|
|
36
|
+
"""The title of the company."""
|
|
37
|
+
|
|
38
|
+
typename: Literal["Company"]
|
|
39
|
+
"""The typename of this object"""
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
Destination: TypeAlias = Annotated[
|
|
43
|
+
Union[Optional[DestinationUser], Optional[DestinationCompany]], PropertyInfo(discriminator="typename")
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class OriginUser(BaseModel):
|
|
48
|
+
id: str
|
|
49
|
+
"""The internal ID of the user."""
|
|
50
|
+
|
|
51
|
+
name: Optional[str] = None
|
|
52
|
+
"""The name of the user from their Whop account."""
|
|
53
|
+
|
|
54
|
+
typename: Literal["User"]
|
|
55
|
+
"""The typename of this object"""
|
|
56
|
+
|
|
57
|
+
username: str
|
|
58
|
+
"""The username of the user from their Whop account."""
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class OriginCompany(BaseModel):
|
|
62
|
+
id: str
|
|
63
|
+
"""The ID (tag) of the company."""
|
|
64
|
+
|
|
65
|
+
route: str
|
|
66
|
+
"""The slug/route of the company on the Whop site."""
|
|
67
|
+
|
|
68
|
+
title: str
|
|
69
|
+
"""The title of the company."""
|
|
70
|
+
|
|
71
|
+
typename: Literal["Company"]
|
|
72
|
+
"""The typename of this object"""
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
Origin: TypeAlias = Annotated[
|
|
76
|
+
Union[Optional[OriginUser], Optional[OriginCompany]], PropertyInfo(discriminator="typename")
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class Transfer(BaseModel):
|
|
81
|
+
id: str
|
|
82
|
+
"""The unique identifier of the credit transaction transfer"""
|
|
83
|
+
|
|
84
|
+
amount: float
|
|
85
|
+
"""The amount of the credit transaction transfer"""
|
|
86
|
+
|
|
87
|
+
created_at: datetime
|
|
88
|
+
"""The timestamp when the credit transaction transfer was created"""
|
|
89
|
+
|
|
90
|
+
currency: Currency
|
|
91
|
+
"""The currency of the credit transaction transfer"""
|
|
92
|
+
|
|
93
|
+
destination: Destination
|
|
94
|
+
"""The recipient of the credit transaction transfer"""
|
|
95
|
+
|
|
96
|
+
destination_ledger_account_id: str
|
|
97
|
+
"""The ID of the destination ledger account"""
|
|
98
|
+
|
|
99
|
+
fee_amount: Optional[float] = None
|
|
100
|
+
"""The decimal fee of the credit transaction transfer"""
|
|
101
|
+
|
|
102
|
+
notes: Optional[str] = None
|
|
103
|
+
"""The notes of the credit transaction transfer"""
|
|
104
|
+
|
|
105
|
+
origin: Origin
|
|
106
|
+
"""The sender of the credit transaction transfer"""
|
|
107
|
+
|
|
108
|
+
origin_ledger_account_id: str
|
|
109
|
+
"""The ID of the origin ledger account"""
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from typing_extensions import Literal, TypeAlias
|
|
4
|
+
|
|
5
|
+
__all__ = ["VisibilityFilter"]
|
|
6
|
+
|
|
7
|
+
VisibilityFilter: TypeAlias = Literal[
|
|
8
|
+
"visible", "hidden", "archived", "quick_link", "all", "not_quick_link", "not_archived"
|
|
9
|
+
]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from .currency import Currency as Currency
|
|
4
|
+
from .tax_type import TaxType as TaxType
|
|
5
|
+
from .direction import Direction as Direction
|
|
6
|
+
from .plan_type import PlanType as PlanType
|
|
7
|
+
from .custom_cta import CustomCta as CustomCta
|
|
8
|
+
from .visibility import Visibility as Visibility
|
|
9
|
+
from .app_statuses import AppStatuses as AppStatuses
|
|
10
|
+
from .entry_status import EntryStatus as EntryStatus
|
|
11
|
+
from .who_can_post import WhoCanPost as WhoCanPost
|
|
12
|
+
from .app_view_type import AppViewType as AppViewType
|
|
13
|
+
from .who_can_react import WhoCanReact as WhoCanReact
|
|
14
|
+
from .business_types import BusinessTypes as BusinessTypes
|
|
15
|
+
from .industry_types import IndustryTypes as IndustryTypes
|
|
16
|
+
from .invoice_status import InvoiceStatus as InvoiceStatus
|
|
17
|
+
from .receipt_status import ReceiptStatus as ReceiptStatus
|
|
18
|
+
from .release_method import ReleaseMethod as ReleaseMethod
|
|
19
|
+
from .access_pass_type import AccessPassType as AccessPassType
|
|
20
|
+
from .collection_method import CollectionMethod as CollectionMethod
|
|
21
|
+
from .membership_status import MembershipStatus as MembershipStatus
|
|
22
|
+
from .visibility_filter import VisibilityFilter as VisibilityFilter
|
|
23
|
+
from .app_build_statuses import AppBuildStatuses as AppBuildStatuses
|
|
24
|
+
from .app_build_platforms import AppBuildPlatforms as AppBuildPlatforms
|
|
25
|
+
from .authorized_user_roles import AuthorizedUserRoles as AuthorizedUserRoles
|
|
26
|
+
from .friendly_receipt_status import FriendlyReceiptStatus as FriendlyReceiptStatus
|
|
27
|
+
from .global_affiliate_status import GlobalAffiliateStatus as GlobalAffiliateStatus
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AccessPassType"]
|
|
8
|
+
|
|
9
|
+
AccessPassType: TypeAlias = Literal["regular", "app", "experience_upsell", "api_only"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AppBuildPlatforms"]
|
|
8
|
+
|
|
9
|
+
AppBuildPlatforms: TypeAlias = Literal["ios", "android", "web"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AppBuildStatuses"]
|
|
8
|
+
|
|
9
|
+
AppBuildStatuses: TypeAlias = Literal["draft", "pending", "approved", "rejected"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AppStatuses"]
|
|
8
|
+
|
|
9
|
+
AppStatuses: TypeAlias = Literal["live", "unlisted", "hidden"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AppViewType"]
|
|
8
|
+
|
|
9
|
+
AppViewType: TypeAlias = Literal["hub", "discover", "dash", "dashboard", "analytics"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["AuthorizedUserRoles"]
|
|
8
|
+
|
|
9
|
+
AuthorizedUserRoles: TypeAlias = Literal[
|
|
10
|
+
"owner", "admin", "sales_manager", "moderator", "app_manager", "support", "manager"
|
|
11
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["BusinessTypes"]
|
|
8
|
+
|
|
9
|
+
BusinessTypes: TypeAlias = Literal[
|
|
10
|
+
"education_program",
|
|
11
|
+
"coaching",
|
|
12
|
+
"software",
|
|
13
|
+
"paid_group",
|
|
14
|
+
"newsletter",
|
|
15
|
+
"agency",
|
|
16
|
+
"physical_products",
|
|
17
|
+
"brick_and_mortar",
|
|
18
|
+
"events",
|
|
19
|
+
"coaching_and_courses",
|
|
20
|
+
"other",
|
|
21
|
+
"saas",
|
|
22
|
+
"course",
|
|
23
|
+
"community",
|
|
24
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["CollectionMethod"]
|
|
8
|
+
|
|
9
|
+
CollectionMethod: TypeAlias = Literal["send_invoice", "charge_automatically"]
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["Currency"]
|
|
8
|
+
|
|
9
|
+
Currency: TypeAlias = Literal[
|
|
10
|
+
"usd",
|
|
11
|
+
"sgd",
|
|
12
|
+
"inr",
|
|
13
|
+
"aud",
|
|
14
|
+
"brl",
|
|
15
|
+
"cad",
|
|
16
|
+
"dkk",
|
|
17
|
+
"eur",
|
|
18
|
+
"nok",
|
|
19
|
+
"gbp",
|
|
20
|
+
"sek",
|
|
21
|
+
"chf",
|
|
22
|
+
"hkd",
|
|
23
|
+
"huf",
|
|
24
|
+
"jpy",
|
|
25
|
+
"mxn",
|
|
26
|
+
"myr",
|
|
27
|
+
"pln",
|
|
28
|
+
"czk",
|
|
29
|
+
"nzd",
|
|
30
|
+
"aed",
|
|
31
|
+
"eth",
|
|
32
|
+
"ape",
|
|
33
|
+
"cop",
|
|
34
|
+
"ron",
|
|
35
|
+
"thb",
|
|
36
|
+
"bgn",
|
|
37
|
+
"idr",
|
|
38
|
+
"dop",
|
|
39
|
+
"php",
|
|
40
|
+
"try",
|
|
41
|
+
"krw",
|
|
42
|
+
"twd",
|
|
43
|
+
"vnd",
|
|
44
|
+
"pkr",
|
|
45
|
+
"clp",
|
|
46
|
+
"uyu",
|
|
47
|
+
"ars",
|
|
48
|
+
"zar",
|
|
49
|
+
"dzd",
|
|
50
|
+
"tnd",
|
|
51
|
+
"mad",
|
|
52
|
+
"kes",
|
|
53
|
+
"kwd",
|
|
54
|
+
"jod",
|
|
55
|
+
"all",
|
|
56
|
+
"xcd",
|
|
57
|
+
"amd",
|
|
58
|
+
"bsd",
|
|
59
|
+
"bhd",
|
|
60
|
+
"bob",
|
|
61
|
+
"bam",
|
|
62
|
+
"khr",
|
|
63
|
+
"crc",
|
|
64
|
+
"xof",
|
|
65
|
+
"egp",
|
|
66
|
+
"etb",
|
|
67
|
+
"gmd",
|
|
68
|
+
"ghs",
|
|
69
|
+
"gtq",
|
|
70
|
+
"gyd",
|
|
71
|
+
"ils",
|
|
72
|
+
"jmd",
|
|
73
|
+
"mop",
|
|
74
|
+
"mga",
|
|
75
|
+
"mur",
|
|
76
|
+
"mdl",
|
|
77
|
+
"mnt",
|
|
78
|
+
"nad",
|
|
79
|
+
"ngn",
|
|
80
|
+
"mkd",
|
|
81
|
+
"omr",
|
|
82
|
+
"pyg",
|
|
83
|
+
"pen",
|
|
84
|
+
"qar",
|
|
85
|
+
"rwf",
|
|
86
|
+
"sar",
|
|
87
|
+
"rsd",
|
|
88
|
+
"lkr",
|
|
89
|
+
"tzs",
|
|
90
|
+
"ttd",
|
|
91
|
+
"uzs",
|
|
92
|
+
"rub",
|
|
93
|
+
"btc",
|
|
94
|
+
]
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["CustomCta"]
|
|
8
|
+
|
|
9
|
+
CustomCta: TypeAlias = Literal[
|
|
10
|
+
"get_access",
|
|
11
|
+
"join",
|
|
12
|
+
"order_now",
|
|
13
|
+
"shop_now",
|
|
14
|
+
"call_now",
|
|
15
|
+
"donate_now",
|
|
16
|
+
"contact_us",
|
|
17
|
+
"sign_up",
|
|
18
|
+
"subscribe",
|
|
19
|
+
"purchase",
|
|
20
|
+
"get_offer",
|
|
21
|
+
"apply_now",
|
|
22
|
+
"complete_order",
|
|
23
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["EntryStatus"]
|
|
8
|
+
|
|
9
|
+
EntryStatus: TypeAlias = Literal["drafted", "pending", "approved", "denied", "any"]
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["FriendlyReceiptStatus"]
|
|
8
|
+
|
|
9
|
+
FriendlyReceiptStatus: TypeAlias = Literal[
|
|
10
|
+
"auto_refunded",
|
|
11
|
+
"refunded",
|
|
12
|
+
"partially_refunded",
|
|
13
|
+
"dispute_warning",
|
|
14
|
+
"open_resolution",
|
|
15
|
+
"open_dispute",
|
|
16
|
+
"failed",
|
|
17
|
+
"price_too_low",
|
|
18
|
+
"succeeded",
|
|
19
|
+
"drafted",
|
|
20
|
+
"uncollectible",
|
|
21
|
+
"unresolved",
|
|
22
|
+
"past_due",
|
|
23
|
+
"pending",
|
|
24
|
+
"incomplete",
|
|
25
|
+
"canceled",
|
|
26
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["GlobalAffiliateStatus"]
|
|
8
|
+
|
|
9
|
+
GlobalAffiliateStatus: TypeAlias = Literal["enabled", "disabled"]
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["IndustryTypes"]
|
|
8
|
+
|
|
9
|
+
IndustryTypes: TypeAlias = Literal[
|
|
10
|
+
"trading",
|
|
11
|
+
"sports_betting",
|
|
12
|
+
"reselling",
|
|
13
|
+
"fitness",
|
|
14
|
+
"amazon_fba",
|
|
15
|
+
"real_estate",
|
|
16
|
+
"kindle_book_publishing",
|
|
17
|
+
"dating",
|
|
18
|
+
"agencies",
|
|
19
|
+
"health_and_wellness",
|
|
20
|
+
"social_media",
|
|
21
|
+
"sales",
|
|
22
|
+
"business",
|
|
23
|
+
"ecommerce",
|
|
24
|
+
"video_games",
|
|
25
|
+
"home_services",
|
|
26
|
+
"ai",
|
|
27
|
+
"public_speaking",
|
|
28
|
+
"personal_finance",
|
|
29
|
+
"careers",
|
|
30
|
+
"travel",
|
|
31
|
+
"clipping",
|
|
32
|
+
"spirituality",
|
|
33
|
+
"vas",
|
|
34
|
+
"personal_development",
|
|
35
|
+
"software",
|
|
36
|
+
"other",
|
|
37
|
+
"marketing_agency",
|
|
38
|
+
"sales_agency",
|
|
39
|
+
"ai_agency",
|
|
40
|
+
"design_agency",
|
|
41
|
+
"coaching_agency",
|
|
42
|
+
"development_agency",
|
|
43
|
+
"recruiting_agency",
|
|
44
|
+
"customer_support_agency",
|
|
45
|
+
"clipping_agency",
|
|
46
|
+
"clothing",
|
|
47
|
+
"supplements",
|
|
48
|
+
"beauty_and_personal_care",
|
|
49
|
+
"fitness_gear",
|
|
50
|
+
"accessories",
|
|
51
|
+
"home_goods",
|
|
52
|
+
"electronics_and_gadgets",
|
|
53
|
+
"food_and_beverages",
|
|
54
|
+
"gym",
|
|
55
|
+
"restaurant",
|
|
56
|
+
"retail_store",
|
|
57
|
+
"coffee_shop",
|
|
58
|
+
"salon_spa",
|
|
59
|
+
"medical_dentist_office",
|
|
60
|
+
"hotel_lodging",
|
|
61
|
+
"auto_repair_shop",
|
|
62
|
+
"masterminds",
|
|
63
|
+
"webinars",
|
|
64
|
+
"bootcamps",
|
|
65
|
+
"convention",
|
|
66
|
+
"concerts",
|
|
67
|
+
"meetups",
|
|
68
|
+
"parties",
|
|
69
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["InvoiceStatus"]
|
|
8
|
+
|
|
9
|
+
InvoiceStatus: TypeAlias = Literal["open", "paid", "past_due", "void"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["MembershipStatus"]
|
|
8
|
+
|
|
9
|
+
MembershipStatus: TypeAlias = Literal[
|
|
10
|
+
"trialing", "active", "past_due", "completed", "canceled", "expired", "unresolved", "drafted"
|
|
11
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["ReceiptStatus"]
|
|
8
|
+
|
|
9
|
+
ReceiptStatus: TypeAlias = Literal["draft", "open", "paid", "pending", "uncollectible", "unresolved", "void"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["ReleaseMethod"]
|
|
8
|
+
|
|
9
|
+
ReleaseMethod: TypeAlias = Literal["buy_now", "waitlist"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["TaxType"]
|
|
8
|
+
|
|
9
|
+
TaxType: TypeAlias = Literal["inclusive", "exclusive", "unspecified"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["Visibility"]
|
|
8
|
+
|
|
9
|
+
Visibility: TypeAlias = Literal["visible", "hidden", "archived", "quick_link"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["VisibilityFilter"]
|
|
8
|
+
|
|
9
|
+
VisibilityFilter: TypeAlias = Literal[
|
|
10
|
+
"visible", "hidden", "archived", "quick_link", "all", "not_quick_link", "not_archived"
|
|
11
|
+
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["WhoCanPost"]
|
|
8
|
+
|
|
9
|
+
WhoCanPost: TypeAlias = Literal["everyone", "admins"]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Literal, TypeAlias
|
|
6
|
+
|
|
7
|
+
__all__ = ["WhoCanReact"]
|
|
8
|
+
|
|
9
|
+
WhoCanReact: TypeAlias = Literal["everyone", "no_one"]
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing_extensions import Required, TypedDict
|
|
6
|
+
|
|
7
|
+
__all__ = ["ShipmentCreateParams"]
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class ShipmentCreateParams(TypedDict, total=False):
|
|
11
|
+
company_id: Required[str]
|
|
12
|
+
"""The ID of the company to create the shipment for"""
|
|
13
|
+
|
|
14
|
+
payment_id: Required[str]
|
|
15
|
+
"""The ID of the payment to create the shipment for"""
|
|
16
|
+
|
|
17
|
+
tracking_code: Required[str]
|
|
18
|
+
"""The tracking code for the shipment"""
|