dub 0.28.0__py3-none-any.whl → 0.28.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.
dub/_version.py CHANGED
@@ -3,10 +3,10 @@
3
3
  import importlib.metadata
4
4
 
5
5
  __title__: str = "dub"
6
- __version__: str = "0.28.0"
6
+ __version__: str = "0.28.1"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
- __gen_version__: str = "2.684.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.28.0 2.684.0 0.0.1 dub"
8
+ __gen_version__: str = "2.687.1"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.28.1 2.687.1 0.0.1 dub"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -28,29 +28,29 @@ class PaymentProcessor(str, Enum):
28
28
  class SaleTypedDict(TypedDict):
29
29
  amount: int
30
30
  r"""The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency"""
31
- payment_processor: PaymentProcessor
32
- r"""The payment processor via which the sale was made."""
33
31
  invoice_id: NotRequired[Nullable[str]]
34
32
  r"""The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID."""
33
+ payment_processor: NotRequired[PaymentProcessor]
34
+ r"""The payment processor via which the sale was made."""
35
35
 
36
36
 
37
37
  class Sale(BaseModel):
38
38
  amount: int
39
39
  r"""The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency"""
40
40
 
41
- payment_processor: Annotated[
42
- PaymentProcessor, pydantic.Field(alias="paymentProcessor")
43
- ]
44
- r"""The payment processor via which the sale was made."""
45
-
46
41
  invoice_id: Annotated[OptionalNullable[str], pydantic.Field(alias="invoiceId")] = (
47
42
  None
48
43
  )
49
44
  r"""The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID."""
50
45
 
46
+ payment_processor: Annotated[
47
+ Optional[PaymentProcessor], pydantic.Field(alias="paymentProcessor")
48
+ ] = PaymentProcessor.CUSTOM
49
+ r"""The payment processor via which the sale was made."""
50
+
51
51
  @model_serializer(mode="wrap")
52
52
  def serialize_model(self, handler):
53
- optional_fields = ["invoiceId"]
53
+ optional_fields = ["invoiceId", "paymentProcessor"]
54
54
  nullable_fields = ["invoiceId"]
55
55
  null_default_fields = ["invoiceId"]
56
56
 
@@ -25,12 +25,12 @@ class TrackSaleRequestBodyTypedDict(TypedDict):
25
25
  r"""The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer."""
26
26
  amount: int
27
27
  r"""The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency"""
28
- payment_processor: PaymentProcessor
29
- r"""The payment processor via which the sale was made."""
30
28
  currency: NotRequired[str]
31
29
  r"""The currency of the sale. Accepts ISO 4217 currency codes. Sales will be automatically converted and stored as USD at the latest exchange rates. Learn more: https://d.to/currency"""
32
30
  event_name: NotRequired[str]
33
31
  r"""The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`."""
32
+ payment_processor: NotRequired[PaymentProcessor]
33
+ r"""The payment processor via which the sale was made."""
34
34
  invoice_id: NotRequired[Nullable[str]]
35
35
  r"""The invoice ID of the sale. Can be used as a idempotency key – only one sale event can be recorded for a given invoice ID."""
36
36
  lead_event_name: NotRequired[Nullable[str]]
@@ -46,17 +46,17 @@ class TrackSaleRequestBody(BaseModel):
46
46
  amount: int
47
47
  r"""The amount of the sale in cents (for all two-decimal currencies). If the sale is in a zero-decimal currency, pass the full integer value (e.g. `1437` JPY). Learn more: https://d.to/currency"""
48
48
 
49
- payment_processor: Annotated[
50
- PaymentProcessor, pydantic.Field(alias="paymentProcessor")
51
- ]
52
- r"""The payment processor via which the sale was made."""
53
-
54
49
  currency: Optional[str] = "usd"
55
50
  r"""The currency of the sale. Accepts ISO 4217 currency codes. Sales will be automatically converted and stored as USD at the latest exchange rates. Learn more: https://d.to/currency"""
56
51
 
57
52
  event_name: Annotated[Optional[str], pydantic.Field(alias="eventName")] = "Purchase"
58
53
  r"""The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`."""
59
54
 
55
+ payment_processor: Annotated[
56
+ Optional[PaymentProcessor], pydantic.Field(alias="paymentProcessor")
57
+ ] = PaymentProcessor.CUSTOM
58
+ r"""The payment processor via which the sale was made."""
59
+
60
60
  invoice_id: Annotated[OptionalNullable[str], pydantic.Field(alias="invoiceId")] = (
61
61
  None
62
62
  )
@@ -75,6 +75,7 @@ class TrackSaleRequestBody(BaseModel):
75
75
  optional_fields = [
76
76
  "currency",
77
77
  "eventName",
78
+ "paymentProcessor",
78
79
  "invoiceId",
79
80
  "leadEventName",
80
81
  "metadata",
@@ -5,7 +5,7 @@ from dub.types import BaseModel, Nullable, OptionalNullable, UNSET, UNSET_SENTIN
5
5
  from dub.utils import FieldMetadata, PathParamMetadata, RequestMetadata
6
6
  import pydantic
7
7
  from pydantic import model_serializer
8
- from typing import List, Optional
8
+ from typing import Optional
9
9
  from typing_extensions import Annotated, NotRequired, TypedDict
10
10
 
11
11
 
@@ -14,7 +14,6 @@ class UpdateWorkspaceRequestBodyTypedDict(TypedDict):
14
14
  slug: NotRequired[str]
15
15
  logo: NotRequired[Nullable[str]]
16
16
  conversion_enabled: NotRequired[bool]
17
- allowed_hostnames: NotRequired[List[str]]
18
17
 
19
18
 
20
19
  class UpdateWorkspaceRequestBody(BaseModel):
@@ -28,19 +27,9 @@ class UpdateWorkspaceRequestBody(BaseModel):
28
27
  Optional[bool], pydantic.Field(alias="conversionEnabled")
29
28
  ] = None
30
29
 
31
- allowed_hostnames: Annotated[
32
- Optional[List[str]], pydantic.Field(alias="allowedHostnames")
33
- ] = None
34
-
35
30
  @model_serializer(mode="wrap")
36
31
  def serialize_model(self, handler):
37
- optional_fields = [
38
- "name",
39
- "slug",
40
- "logo",
41
- "conversionEnabled",
42
- "allowedHostnames",
43
- ]
32
+ optional_fields = ["name", "slug", "logo", "conversionEnabled"]
44
33
  nullable_fields = ["logo"]
45
34
  null_default_fields = []
46
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dub
3
- Version: 0.28.0
3
+ Version: 0.28.1
4
4
  Summary: Python Client SDK Generated by Speakeasy
5
5
  Author: Speakeasy
6
6
  Requires-Python: >=3.9.2
@@ -3,7 +3,7 @@ dub/_hooks/__init__.py,sha256=9_7W5jAYw8rcO8Kfc-Ty-lB82BHfksAJJpVFb_UeU1c,146
3
3
  dub/_hooks/registration.py,sha256=tT-1Cjp5ax1DL-84HBNWPy4wAwgP-0aI4-asLfnkIlw,625
4
4
  dub/_hooks/sdkhooks.py,sha256=2rLEjSz1xFGWabNs1voFn0lXSCqkS38bdKVFdnBJufE,2553
5
5
  dub/_hooks/types.py,sha256=5vcNbFBNpCxqI7ZebiBtut7T_Gz2i36L5MjTqGvxV7Y,3035
6
- dub/_version.py,sha256=8y0IRa7pv-v7tBRe9cXT-KZEGXegjHjSfuCgGVijqsM,450
6
+ dub/_version.py,sha256=7WedW8NS5GYo-J2rpWoyUUHKfKN9v_AlNK5O7begZrk,450
7
7
  dub/analytics.py,sha256=D4s6aPCiCVxwbG2bIvanBiaDtYZgN1xMwu5DOnuRrVg,12342
8
8
  dub/basesdk.py,sha256=6hqUvjS1s4AdIw3STtyBxJwgjqRYCK3ieGqPJVpjBh8,11813
9
9
  dub/commissions.py,sha256=OzDAs372f4VszeKJNkR4pR7q5SNI4JiCwz-bzny0YMc,24346
@@ -46,7 +46,7 @@ dub/models/components/partneranalyticstimeseries.py,sha256=Bh431YfEd8v6TD9o9DPCA
46
46
  dub/models/components/partneranalyticstoplinks.py,sha256=xy1F1vueaBX93Gj2AYqqa7jbEueJy-FAVD5GdnjPva8,3755
47
47
  dub/models/components/partnerenrolledevent.py,sha256=GoGLX2KX6aKbtyk0PgsI5cpDnWqV5_Zb1l7pUNjuWxw,16542
48
48
  dub/models/components/salecreatedevent.py,sha256=B1rj2KvfX4bbReMicWefT_zx2PAbwZWVC84DJZYqLmE,19401
49
- dub/models/components/saleevent.py,sha256=hZpYy7gih6bg3T2E0KEYCU0UuSHM8h63t7j2Vm9pL1U,26499
49
+ dub/models/components/saleevent.py,sha256=5PQKE60YPCS5wqNpi5DDxoWeZGHYGd-7RrrndrrTx_U,26568
50
50
  dub/models/components/security.py,sha256=be_cng1n5ULto_xGGPBKH1ZE5LrtmBTg6kX2uPJqJOw,599
51
51
  dub/models/components/tagschema.py,sha256=jZ2MFrE9ctCqR18S0GV-czRTcViglbpl-9h7pUt81VQ,759
52
52
  dub/models/components/webhookevent.py,sha256=12SgBns1nVcb0Efs8JR9JO8vmvK25bXMROCT-s0Ue5c,1268
@@ -101,14 +101,14 @@ dub/models/operations/retrieveanalytics.py,sha256=4dRnXcathBqM34MPZV6pE_fMYe3P3C
101
101
  dub/models/operations/retrievelinks.py,sha256=rMp0VPEdwLT5ekQ3g2eAHwlr8-4EaEw699yLzDqTXzk,2855
102
102
  dub/models/operations/retrievepartneranalytics.py,sha256=up_lKTeJBLQBmVaPOU9r06t-TysfnePx9eM5h6sFci4,5328
103
103
  dub/models/operations/tracklead.py,sha256=_c1iIlWtZCJjwg6Hbfiphj4rFVCThFE2UnRuXsDEYKE,6881
104
- dub/models/operations/tracksale.py,sha256=GDt1G0nAeelTlI7QxP3iCVmBYa9PMhLbJRChCLgvOeE,9021
104
+ dub/models/operations/tracksale.py,sha256=BPem53rbyCjrq_qdoRddxN1LKyY6rNPt1Cl9fUNw3jM,9102
105
105
  dub/models/operations/updatecommission.py,sha256=N_okp7jc6jqI4CnGRvTEKTw-QPb5DEwGVGfKmOSRQrY,11019
106
106
  dub/models/operations/updatecustomer.py,sha256=xlW-W99WgdlAsKD4fNhIEw3f1Sipnb4ahPnZFOcisSY,13517
107
107
  dub/models/operations/updatedomain.py,sha256=rexCga7uNxgBZLPiCMcaudc2cQGB0E_qX2HI0DgG_3M,4519
108
108
  dub/models/operations/updatefolder.py,sha256=dNvSPY67g58SWynB8ic5rcgT-h7THRmyxuzuFdO42GQ,2581
109
109
  dub/models/operations/updatelink.py,sha256=yka9fDd7uixr4QbbWm5V0bFhB5hqaXCyTRtoatit6HI,16977
110
110
  dub/models/operations/updatetag.py,sha256=_cQx77PnR9Jqz9xJ3q3ZwQwpntSibcnlkFFcRbxMqu4,2083
111
- dub/models/operations/updateworkspace.py,sha256=qdlmA-Rz8_fC3iQs7bzmcn0qL9Lu3a04ziEIYfX3Ugo,2690
111
+ dub/models/operations/updateworkspace.py,sha256=CKxZZGfgJJeKgWIllyBGmQIPjgfxF0BQMRxNu-c91is,2429
112
112
  dub/models/operations/upsertlink.py,sha256=qLnY-MD1KdYroYyV2hbegaZKWwnmbVrSy_FgrHycygg,17293
113
113
  dub/models/operations/upsertpartnerlink.py,sha256=Z0xtZHGzePne4wM2XaouR8f_pJrHA6avCmczxEo-9p0,17091
114
114
  dub/partners.py,sha256=y-lObDvW0e7UMFkmF2bjrikimU0zb1Lf2U-KSANCvnU,72639
@@ -138,7 +138,7 @@ dub/utils/unmarshal_json_response.py,sha256=FcgE-IWPMAHWDdw6QEZeLeD5G_rflScZbT10
138
138
  dub/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
139
139
  dub/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
140
140
  dub/workspaces.py,sha256=qqg3JuPFsC14D9OqUeMxYvXHOoIJOJ9To1faAG7x8kM,24373
141
- dub-0.28.0.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
142
- dub-0.28.0.dist-info/METADATA,sha256=S2GtdZNkZ2nU5IIbnYPC2087Ni3i-LbEcIcUrn2q-C0,30669
143
- dub-0.28.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
- dub-0.28.0.dist-info/RECORD,,
141
+ dub-0.28.1.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
142
+ dub-0.28.1.dist-info/METADATA,sha256=nQSxUAfe6D5q5RGz4xf4fLO2kYNb3X5TDGnKm2Xq_kg,30669
143
+ dub-0.28.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
+ dub-0.28.1.dist-info/RECORD,,
File without changes
File without changes