dub 0.26.11__py3-none-any.whl → 0.26.12__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 +3 -3
- dub/models/components/__init__.py +1 -13
- dub/models/components/analyticscities.py +4 -260
- dub/models/components/analyticscountries.py +4 -259
- dub/models/components/analyticsregions.py +6 -261
- dub/models/components/countrycode.py +1 -1
- dub/models/components/saleevent.py +2 -2
- dub/models/components/workspaceschema.py +5 -0
- dub/models/operations/createpartner.py +24 -23
- dub/models/operations/createreferralsembedtoken.py +24 -23
- dub/models/operations/listevents.py +2 -2
- dub/models/operations/retrieveanalytics.py +2 -2
- dub/models/operations/retrievelinks.py +0 -7
- dub/models/operations/tracklead.py +9 -9
- dub/models/operations/tracksale.py +14 -14
- {dub-0.26.11.dist-info → dub-0.26.12.dist-info}/METADATA +1 -1
- {dub-0.26.11.dist-info → dub-0.26.12.dist-info}/RECORD +19 -19
- {dub-0.26.11.dist-info → dub-0.26.12.dist-info}/LICENSE +0 -0
- {dub-0.26.11.dist-info → dub-0.26.12.dist-info}/WHEEL +0 -0
|
@@ -23,19 +23,19 @@ class TrackSaleRequestBodyTypedDict(TypedDict):
|
|
|
23
23
|
external_id: str
|
|
24
24
|
r"""The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer."""
|
|
25
25
|
amount: int
|
|
26
|
-
r"""The amount of the sale in cents."""
|
|
26
|
+
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"""
|
|
27
27
|
payment_processor: PaymentProcessor
|
|
28
28
|
r"""The payment processor via which the sale was made."""
|
|
29
|
+
currency: NotRequired[str]
|
|
30
|
+
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"""
|
|
29
31
|
event_name: NotRequired[str]
|
|
30
|
-
r"""The name of the sale event."""
|
|
32
|
+
r"""The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`."""
|
|
31
33
|
invoice_id: NotRequired[Nullable[str]]
|
|
32
34
|
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
|
-
currency: NotRequired[str]
|
|
34
|
-
r"""The currency of the sale. Accepts ISO 4217 currency codes."""
|
|
35
35
|
lead_event_name: NotRequired[Nullable[str]]
|
|
36
|
-
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, which is the default behavior)."""
|
|
36
|
+
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)."""
|
|
37
37
|
metadata: NotRequired[Nullable[Dict[str, Any]]]
|
|
38
|
-
r"""Additional metadata to be stored with the sale event. Max 10,000 characters."""
|
|
38
|
+
r"""Additional metadata to be stored with the sale event. Max 10,000 characters when stringified."""
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class TrackSaleRequestBody(BaseModel):
|
|
@@ -43,38 +43,38 @@ class TrackSaleRequestBody(BaseModel):
|
|
|
43
43
|
r"""The unique ID of the customer in your system. Will be used to identify and attribute all future events to this customer."""
|
|
44
44
|
|
|
45
45
|
amount: int
|
|
46
|
-
r"""The amount of the sale in cents."""
|
|
46
|
+
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"""
|
|
47
47
|
|
|
48
48
|
payment_processor: Annotated[
|
|
49
49
|
PaymentProcessor, pydantic.Field(alias="paymentProcessor")
|
|
50
50
|
]
|
|
51
51
|
r"""The payment processor via which the sale was made."""
|
|
52
52
|
|
|
53
|
+
currency: Optional[str] = "usd"
|
|
54
|
+
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"""
|
|
55
|
+
|
|
53
56
|
event_name: Annotated[Optional[str], pydantic.Field(alias="eventName")] = "Purchase"
|
|
54
|
-
r"""The name of the sale event."""
|
|
57
|
+
r"""The name of the sale event. Recommended format: `Invoice paid` or `Subscription created`."""
|
|
55
58
|
|
|
56
59
|
invoice_id: Annotated[OptionalNullable[str], pydantic.Field(alias="invoiceId")] = (
|
|
57
60
|
None
|
|
58
61
|
)
|
|
59
62
|
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."""
|
|
60
63
|
|
|
61
|
-
currency: Optional[str] = "usd"
|
|
62
|
-
r"""The currency of the sale. Accepts ISO 4217 currency codes."""
|
|
63
|
-
|
|
64
64
|
lead_event_name: Annotated[
|
|
65
65
|
OptionalNullable[str], pydantic.Field(alias="leadEventName")
|
|
66
66
|
] = None
|
|
67
|
-
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, which is the default behavior)."""
|
|
67
|
+
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)."""
|
|
68
68
|
|
|
69
69
|
metadata: OptionalNullable[Dict[str, Any]] = UNSET
|
|
70
|
-
r"""Additional metadata to be stored with the sale event. Max 10,000 characters."""
|
|
70
|
+
r"""Additional metadata to be stored with the sale event. Max 10,000 characters when stringified."""
|
|
71
71
|
|
|
72
72
|
@model_serializer(mode="wrap")
|
|
73
73
|
def serialize_model(self, handler):
|
|
74
74
|
optional_fields = [
|
|
75
|
+
"currency",
|
|
75
76
|
"eventName",
|
|
76
77
|
"invoiceId",
|
|
77
|
-
"currency",
|
|
78
78
|
"leadEventName",
|
|
79
79
|
"metadata",
|
|
80
80
|
]
|
|
@@ -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=
|
|
6
|
+
dub/_version.py,sha256=T97Vkn-4gMDZ54nCsZjVYZrcLDVJ5y8Sg-GLHuNZ6P0,452
|
|
7
7
|
dub/analytics.py,sha256=acVdNv1hS7JDmBS1ena0kG-RNNq64lRZwOV6_2FZn60,13032
|
|
8
8
|
dub/basesdk.py,sha256=nY5yee9uE5SQHkG_9Di9MUoQR0KcPr-WrtTCDHUdRnY,11779
|
|
9
9
|
dub/commissions.py,sha256=H56AkD5M03FuXaIdsd5jY6rWZ7qa8c0gssXQhLkF634,25796
|
|
@@ -15,24 +15,24 @@ dub/folders.py,sha256=5ADzg8iDWq1KwGXcQNR1MbHNZY0wBP6YhUSRkgOXe4o,50692
|
|
|
15
15
|
dub/httpclient.py,sha256=Eu73urOAiZQtdUIyOUnPccxCiBbWEKrXG-JrRG3SLM4,3946
|
|
16
16
|
dub/links.py,sha256=mRjn55fxFGaOmduUzBfsPGXDYkpeYzbAWi5BE-biAcM,129410
|
|
17
17
|
dub/models/__init__.py,sha256=wIW9sbvSKlrGyoPY4mXvHqw-_Inpl6zqpN6U6j-w6SU,83
|
|
18
|
-
dub/models/components/__init__.py,sha256=
|
|
18
|
+
dub/models/components/__init__.py,sha256=3j1H3UR5EvQBfyoP05DWcG6n6HQqUj6gXCtepj9IGFk,20735
|
|
19
19
|
dub/models/components/analyticsbrowsers.py,sha256=f6qMrkPFf38u3_PIovvdIc0hsX1YpYEaPxNwbXzkoeY,1172
|
|
20
|
-
dub/models/components/analyticscities.py,sha256=
|
|
20
|
+
dub/models/components/analyticscities.py,sha256=zef22QucFtrOCkPDrpvpNlrbX465_0dFHyZ5va_LRRI,1666
|
|
21
21
|
dub/models/components/analyticscontinents.py,sha256=D_SQTm1Xp_pOt7qZTLJVo2B3RQUP8k3MQmsYRQYbjlI,1616
|
|
22
22
|
dub/models/components/analyticscount.py,sha256=GddRT9d1RznwWgzQC09i8ZAIJUa06k2NkBnb14v3RGs,953
|
|
23
|
-
dub/models/components/analyticscountries.py,sha256=
|
|
23
|
+
dub/models/components/analyticscountries.py,sha256=UfSXHg_YLQiz_15D5CiCkzoUhh6t0KKya1dguTx8rCY,1556
|
|
24
24
|
dub/models/components/analyticsdevices.py,sha256=Xz4AixALF3DCe_MvO5Y0EnKUJegrO7txqmRAE4ycTIo,1158
|
|
25
25
|
dub/models/components/analyticsos.py,sha256=2Dfpkeh_jIMr7n20iEshmKK26dJgA5igHjGYU8uiReM,1100
|
|
26
26
|
dub/models/components/analyticsreferers.py,sha256=PyD9MvsyYjwo2WUhKOneI8A5NUdl1Nng3IlYBkXWmus,1246
|
|
27
27
|
dub/models/components/analyticsrefererurls.py,sha256=HDhayuZqqT1wvW09I-ialrQ1pvSMRp7WFDyX3MOsVjI,1411
|
|
28
|
-
dub/models/components/analyticsregions.py,sha256
|
|
28
|
+
dub/models/components/analyticsregions.py,sha256=--tqwuWSWUYswV_OkQFAbI1PIFala7t2d40-mUGZHXA,1637
|
|
29
29
|
dub/models/components/analyticstimeseries.py,sha256=ZEZpE6oX0FPeiy5snz-kwYhXE9pwGBwzXY0Rq3u9XPI,1186
|
|
30
30
|
dub/models/components/analyticstoplinks.py,sha256=RvhyKQcmDT47F-4sPojhhDgvFYRZCA5k257JrndHSp8,3649
|
|
31
31
|
dub/models/components/analyticstopurls.py,sha256=WN4oF32SSXUlFPpWvx7jKype0SfdBsX1BvrkaKjClRM,1122
|
|
32
32
|
dub/models/components/analyticstriggers.py,sha256=diQ_m3dJDa576H3oxEfkoy2xs1OdB3f5lrwn7vbsOVI,1432
|
|
33
33
|
dub/models/components/clickevent.py,sha256=umzsHdZcvkdaQ2TdbsbpY4a4rMgjvfnxEPk66cCIZ_Y,41254
|
|
34
34
|
dub/models/components/continentcode.py,sha256=YFw3_x0w7CxCQijsbfiiOoS9FbNATeHyGLcw-LEsXYw,315
|
|
35
|
-
dub/models/components/countrycode.py,sha256=
|
|
35
|
+
dub/models/components/countrycode.py,sha256=NcNDmnQ0TiXuO9JBZQ4tscUIVXld5dyuNcTCa2rtzUA,3796
|
|
36
36
|
dub/models/components/domainschema.py,sha256=MBaPJhQDSQtMTQYVsV8khaQGpY5BXa6IpwYP7qaWnzQ,5328
|
|
37
37
|
dub/models/components/folderschema.py,sha256=tfVy46SHPHMKl-_bOTr6_j5KHtx6aOJiFniYntBOVe4,2415
|
|
38
38
|
dub/models/components/leadcreatedevent.py,sha256=IjKCnsOj-TVbuuJorQACW4e7S2j-9einzaGJhQMSTLc,40616
|
|
@@ -47,11 +47,11 @@ dub/models/components/partneranalyticstimeseries.py,sha256=Bh431YfEd8v6TD9o9DPCA
|
|
|
47
47
|
dub/models/components/partneranalyticstoplinks.py,sha256=xy1F1vueaBX93Gj2AYqqa7jbEueJy-FAVD5GdnjPva8,3755
|
|
48
48
|
dub/models/components/partnerenrolledevent.py,sha256=O1TDMZc1qT-FFg_BBM457xbkxAsv2lMd1CclNvxtjbQ,10718
|
|
49
49
|
dub/models/components/salecreatedevent.py,sha256=MXY73Oek_E-g3q1MrYjnjM4k-RCboHm08aLu9gkSmd4,41970
|
|
50
|
-
dub/models/components/saleevent.py,sha256=
|
|
50
|
+
dub/models/components/saleevent.py,sha256=3Ae2N35PpuFDpXDaWW2rXHRRURer7XyVHqtPpMDrk3o,47802
|
|
51
51
|
dub/models/components/security.py,sha256=be_cng1n5ULto_xGGPBKH1ZE5LrtmBTg6kX2uPJqJOw,599
|
|
52
52
|
dub/models/components/tagschema.py,sha256=9aymPZgSYT_OUsr4AtHAt4GLej9v89yuS5X1YSZ72sE,759
|
|
53
53
|
dub/models/components/webhookevent.py,sha256=oDE16DmD_gDcnzqXSDKsSSXzItXdl_O4qY_rjxPo3EE,1090
|
|
54
|
-
dub/models/components/workspaceschema.py,sha256=
|
|
54
|
+
dub/models/components/workspaceschema.py,sha256=sF5cVYWBXZ-dnPPDJbKDz74lVwPJxGrSiL6fK7M-1XU,10934
|
|
55
55
|
dub/models/errors/__init__.py,sha256=Jx3RBLkPkjtNeQLlk8fGx6NfxvdNPBBpVery014Ty0E,5692
|
|
56
56
|
dub/models/errors/badrequest.py,sha256=WsUugiJ6-ffUlJ4BhQUxYWhkBZ8PcBeCP5IuP1mkX4w,1459
|
|
57
57
|
dub/models/errors/conflict.py,sha256=UF4vQkbQRXWnVwZgbL4-_D9UWxwwvKCYcnBd7OPwU_0,1373
|
|
@@ -72,9 +72,9 @@ dub/models/operations/createcustomer.py,sha256=gAwfJB7hXlbCKbfypCYxshq7LnWkTqAPd
|
|
|
72
72
|
dub/models/operations/createdomain.py,sha256=dHRvCzE6knsndN4FTFjfijHVmTi8NXKpURz8cM_C-bk,3900
|
|
73
73
|
dub/models/operations/createfolder.py,sha256=j9z0CIsc22VsWAwlCGNwxo6a3VsetD6t4T2LdCELYGE,1884
|
|
74
74
|
dub/models/operations/createlink.py,sha256=Fy934a9A1vWA_GLI-FQ7FQDlMskV-EElvtvFQKd_vmU,17263
|
|
75
|
-
dub/models/operations/createpartner.py,sha256=
|
|
75
|
+
dub/models/operations/createpartner.py,sha256=wsxEBFoASBvGAs6Z-3yKbHJZKVVD4WXAxHqtCdAdR_g,31529
|
|
76
76
|
dub/models/operations/createpartnerlink.py,sha256=rOlnyEQdBk2jb5T3ryzvboWney3cRXIG9rCxuwQO58I,17091
|
|
77
|
-
dub/models/operations/createreferralsembedtoken.py,sha256=
|
|
77
|
+
dub/models/operations/createreferralsembedtoken.py,sha256=5FrDNmx68MyArVnQ0-s3MoySTo5DdMk7yUwWfLiUC_0,22792
|
|
78
78
|
dub/models/operations/createtag.py,sha256=XUKuFcLoenYk1oxdeou-gI_s3A4YxtIJKgRiXtLfOpQ,1497
|
|
79
79
|
dub/models/operations/deletecustomer.py,sha256=sq1efo3bhCzQnVacAo9tg7JoHs68IbeheNp1uAlD8AU,1529
|
|
80
80
|
dub/models/operations/deletedomain.py,sha256=VtuDxUCmAcEmNn1vmrdlSKmASHSFwoho-CoJeGtyBBI,769
|
|
@@ -91,14 +91,14 @@ dub/models/operations/gettags.py,sha256=c9p_JrHFnTDJURyR5iiKFKpXFHlzJDt3R5X1U-an
|
|
|
91
91
|
dub/models/operations/getworkspace.py,sha256=V4-NfsEg3M1BTeoE13sDyazefb2_kI4yFxnzgvHPv4s,625
|
|
92
92
|
dub/models/operations/listcommissions.py,sha256=9gFR2iunDb08rhNYNYKY4KjlyZeaUN6t-OQWoXM_qyQ,8161
|
|
93
93
|
dub/models/operations/listdomains.py,sha256=gbQrJyBIvTGKSeqJo0Jb08iE44Xu39NS9zbfetx4p-s,1936
|
|
94
|
-
dub/models/operations/listevents.py,sha256=
|
|
94
|
+
dub/models/operations/listevents.py,sha256=fNiTbrtsHuyVwAf7uoD_w2ESfMwTaEdoS4TII84mOXs,18109
|
|
95
95
|
dub/models/operations/listfolders.py,sha256=5FGf62ZTjquVXjq5axlzQgYGfEnrEwDn8QLlgGH_7jQ,1209
|
|
96
96
|
dub/models/operations/registerdomain.py,sha256=fjozn1tFU-cNarHdAqN_flQoGAE498ob-f4A2bIAiOc,2058
|
|
97
|
-
dub/models/operations/retrieveanalytics.py,sha256=
|
|
98
|
-
dub/models/operations/retrievelinks.py,sha256=
|
|
97
|
+
dub/models/operations/retrieveanalytics.py,sha256=7K4UqTSIlo1PCdVqEnp-e7FrjFgJJVZ2LPPxemD5_ew,19377
|
|
98
|
+
dub/models/operations/retrievelinks.py,sha256=22oIJQnrwI3euUnSWJR21LjfADLTkrpou9o558gTLc8,2801
|
|
99
99
|
dub/models/operations/retrievepartneranalytics.py,sha256=9aldT3YxBAwQtNPu0Mat5Uxrmz6zMGnri5cqaxUDHdk,4968
|
|
100
|
-
dub/models/operations/tracklead.py,sha256=
|
|
101
|
-
dub/models/operations/tracksale.py,sha256=
|
|
100
|
+
dub/models/operations/tracklead.py,sha256=JuT4XbJ4PbZs-EHiQivYkNGZGBW7UybX3ZupSi71qHY,6855
|
|
101
|
+
dub/models/operations/tracksale.py,sha256=puLOEGOK5AyAC48oyVI7eCecsmulu4BdZNkTQZVdkWw,8965
|
|
102
102
|
dub/models/operations/updatecommission.py,sha256=vA5tD32Xq1-3QObjxrg1fIUwZaxJK1tJOaRc6GJMEbI,5596
|
|
103
103
|
dub/models/operations/updatecustomer.py,sha256=xlW-W99WgdlAsKD4fNhIEw3f1Sipnb4ahPnZFOcisSY,13517
|
|
104
104
|
dub/models/operations/updatedomain.py,sha256=rexCga7uNxgBZLPiCMcaudc2cQGB0E_qX2HI0DgG_3M,4519
|
|
@@ -134,7 +134,7 @@ dub/utils/serializers.py,sha256=hiHBXM1AY8_N2Z_rvFfNSYwvLBkSQlPGFp8poasdU4s,5986
|
|
|
134
134
|
dub/utils/url.py,sha256=BgGPgcTA6MRK4bF8fjP2dUopN3NzEzxWMXPBVg8NQUA,5254
|
|
135
135
|
dub/utils/values.py,sha256=CcaCXEa3xHhkUDROyXZocN8f0bdITftv9Y0P9lTf0YM,3517
|
|
136
136
|
dub/workspaces.py,sha256=_4KOZwwL0KADDqSrHZWfO7LpEwLi59uvaKm-X7JzAv0,25823
|
|
137
|
-
dub-0.26.
|
|
138
|
-
dub-0.26.
|
|
139
|
-
dub-0.26.
|
|
140
|
-
dub-0.26.
|
|
137
|
+
dub-0.26.12.dist-info/LICENSE,sha256=kc_aZ6YHHcdSsRy-mGsT0Ehji0ZgR_zevXiUt05V2KY,1079
|
|
138
|
+
dub-0.26.12.dist-info/METADATA,sha256=61BbHIqa5T0u6oU8RiGdpa_XahFYHiwmT5VedPRAYJ0,28076
|
|
139
|
+
dub-0.26.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
140
|
+
dub-0.26.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|