dub 0.29.0__py3-none-any.whl → 0.29.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.29.0"
6
+ __version__: str = "0.29.1"
7
7
  __openapi_doc_version__: str = "0.0.1"
8
8
  __gen_version__: str = "2.698.0"
9
- __user_agent__: str = "speakeasy-sdk/python 0.29.0 2.698.0 0.0.1 dub"
9
+ __user_agent__: str = "speakeasy-sdk/python 0.29.1 2.698.0 0.0.1 dub"
10
10
 
11
11
  try:
12
12
  if __package__ is not None:
@@ -33,10 +33,18 @@ class TrackSaleRequestBodyTypedDict(TypedDict):
33
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
- lead_event_name: NotRequired[Nullable[str]]
37
- r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior)."""
38
36
  metadata: NotRequired[Nullable[Dict[str, Any]]]
39
37
  r"""Additional metadata to be stored with the sale event. Max 10,000 characters when stringified."""
38
+ lead_event_name: NotRequired[Nullable[str]]
39
+ r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior). For sale tracking without a pre-existing lead event, this field can also be used to specify the lead event name."""
40
+ click_id: NotRequired[Nullable[str]]
41
+ r"""[For sale tracking without a pre-existing lead event]: The unique ID of the click that the sale conversion event is attributed to. You can read this value from `dub_id` cookie."""
42
+ customer_name: NotRequired[Nullable[str]]
43
+ r"""[For sale tracking without a pre-existing lead event]: The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”)."""
44
+ customer_email: NotRequired[Nullable[str]]
45
+ r"""[For sale tracking without a pre-existing lead event]: The email address of the customer."""
46
+ customer_avatar: NotRequired[Nullable[str]]
47
+ r"""[For sale tracking without a pre-existing lead event]: The avatar URL of the customer."""
40
48
 
41
49
 
42
50
  class TrackSaleRequestBody(BaseModel):
@@ -62,13 +70,31 @@ class TrackSaleRequestBody(BaseModel):
62
70
  )
63
71
  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."""
64
72
 
73
+ metadata: OptionalNullable[Dict[str, Any]] = UNSET
74
+ r"""Additional metadata to be stored with the sale event. Max 10,000 characters when stringified."""
75
+
65
76
  lead_event_name: Annotated[
66
77
  OptionalNullable[str], pydantic.Field(alias="leadEventName")
67
78
  ] = None
68
- r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior)."""
79
+ r"""The name of the lead event that occurred before the sale (case-sensitive). This is used to associate the sale event with a particular lead event (instead of the latest lead event for a link-customer combination, which is the default behavior). For sale tracking without a pre-existing lead event, this field can also be used to specify the lead event name."""
69
80
 
70
- metadata: OptionalNullable[Dict[str, Any]] = UNSET
71
- r"""Additional metadata to be stored with the sale event. Max 10,000 characters when stringified."""
81
+ click_id: Annotated[OptionalNullable[str], pydantic.Field(alias="clickId")] = UNSET
82
+ r"""[For sale tracking without a pre-existing lead event]: The unique ID of the click that the sale conversion event is attributed to. You can read this value from `dub_id` cookie."""
83
+
84
+ customer_name: Annotated[
85
+ OptionalNullable[str], pydantic.Field(alias="customerName")
86
+ ] = None
87
+ r"""[For sale tracking without a pre-existing lead event]: The name of the customer. If not passed, a random name will be generated (e.g. “Big Red Caribou”)."""
88
+
89
+ customer_email: Annotated[
90
+ OptionalNullable[str], pydantic.Field(alias="customerEmail")
91
+ ] = None
92
+ r"""[For sale tracking without a pre-existing lead event]: The email address of the customer."""
93
+
94
+ customer_avatar: Annotated[
95
+ OptionalNullable[str], pydantic.Field(alias="customerAvatar")
96
+ ] = None
97
+ r"""[For sale tracking without a pre-existing lead event]: The avatar URL of the customer."""
72
98
 
73
99
  @model_serializer(mode="wrap")
74
100
  def serialize_model(self, handler):
@@ -77,11 +103,29 @@ class TrackSaleRequestBody(BaseModel):
77
103
  "eventName",
78
104
  "paymentProcessor",
79
105
  "invoiceId",
106
+ "metadata",
80
107
  "leadEventName",
108
+ "clickId",
109
+ "customerName",
110
+ "customerEmail",
111
+ "customerAvatar",
112
+ ]
113
+ nullable_fields = [
114
+ "invoiceId",
81
115
  "metadata",
116
+ "leadEventName",
117
+ "clickId",
118
+ "customerName",
119
+ "customerEmail",
120
+ "customerAvatar",
121
+ ]
122
+ null_default_fields = [
123
+ "invoiceId",
124
+ "leadEventName",
125
+ "customerName",
126
+ "customerEmail",
127
+ "customerAvatar",
82
128
  ]
83
- nullable_fields = ["invoiceId", "leadEventName", "metadata"]
84
- null_default_fields = ["invoiceId", "leadEventName"]
85
129
 
86
130
  serialized = handler(self)
87
131
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: dub
3
- Version: 0.29.0
3
+ Version: 0.29.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=OK6WDstVS6QdLmv-8eIHWnssVpyVSMRzAyVfn-1HYSM,450
6
+ dub/_version.py,sha256=35aRnNE1PgZV6Lun1z5FraXsyMg7SI4_MxNb7dJx2hY,450
7
7
  dub/analytics.py,sha256=D4s6aPCiCVxwbG2bIvanBiaDtYZgN1xMwu5DOnuRrVg,12342
8
8
  dub/basesdk.py,sha256=ZpolQ0D1eZ93wq3jecXpg7RHj8NuFodyWkk9l4eIcqY,12108
9
9
  dub/commissions.py,sha256=OzDAs372f4VszeKJNkR4pR7q5SNI4JiCwz-bzny0YMc,24346
@@ -101,7 +101,7 @@ 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=iJLteV9tKPphqrN9tgtZvF3xIFpx1tJ2tlZLfVfmn4A,7446
104
- dub/models/operations/tracksale.py,sha256=BPem53rbyCjrq_qdoRddxN1LKyY6rNPt1Cl9fUNw3jM,9102
104
+ dub/models/operations/tracksale.py,sha256=rY_YMRP7ttbxvtdFcQfO3NWYSZd_1s1Qv6pSShsyge8,11442
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
@@ -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.29.0.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
142
- dub-0.29.0.dist-info/METADATA,sha256=0ML7kpyrfxPlXenUGN_zaPeo9MepwpH8sh6LJLe7UJc,30669
143
- dub-0.29.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
- dub-0.29.0.dist-info/RECORD,,
141
+ dub-0.29.1.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
142
+ dub-0.29.1.dist-info/METADATA,sha256=z8sF9nrz9c-60JBlsPNvawbqaPi1Sl519JTw9KXsJAk,30669
143
+ dub-0.29.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
144
+ dub-0.29.1.dist-info/RECORD,,
File without changes
File without changes