Skip to content

Commit f7f4342

Browse files
feat(api): api update
1 parent 854cddd commit f7f4342

34 files changed

Lines changed: 420 additions & 304 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 265
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-136aa659b2d54ff3c25f6b35164a84db20dba3a7b513bf2c72544bbdb13ce6c1.yml
3-
openapi_spec_hash: 94a889e758a4baf8e3b699a6cbe17d01
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/onlyfansapi/onlyfansapi-30d2856fcf5d0f1f2bdbf89fc9677a880978681e54e25f457ec292535eb4680d.yml
3+
openapi_spec_hash: d8ba0e7217781706117e33b695548118
44
config_hash: 397c91e15c0024f8b5bbed9b82c2348c

src/onlyfansapi/_client.py

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,10 @@ def following(self) -> FollowingResource:
290290

291291
@cached_property
292292
def trial_links(self) -> TrialLinksResource:
293-
"""APIs for managing Free Trial Links"""
293+
"""APIs for managing Free Trial Links.
294+
295+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
296+
"""
294297
from .resources.trial_links import TrialLinksResource
295298

296299
return TrialLinksResource(self)
@@ -451,7 +454,10 @@ def bundles(self) -> BundlesResource:
451454

452455
@cached_property
453456
def tracking_links(self) -> TrackingLinksResource:
454-
"""APIs for managing tracking links"""
457+
"""APIs for managing tracking links.
458+
459+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
460+
"""
455461
from .resources.tracking_links import TrackingLinksResource
456462

457463
return TrackingLinksResource(self)
@@ -754,7 +760,10 @@ def following(self) -> AsyncFollowingResource:
754760

755761
@cached_property
756762
def trial_links(self) -> AsyncTrialLinksResource:
757-
"""APIs for managing Free Trial Links"""
763+
"""APIs for managing Free Trial Links.
764+
765+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
766+
"""
758767
from .resources.trial_links import AsyncTrialLinksResource
759768

760769
return AsyncTrialLinksResource(self)
@@ -915,7 +924,10 @@ def bundles(self) -> AsyncBundlesResource:
915924

916925
@cached_property
917926
def tracking_links(self) -> AsyncTrackingLinksResource:
918-
"""APIs for managing tracking links"""
927+
"""APIs for managing tracking links.
928+
929+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
930+
"""
919931
from .resources.tracking_links import AsyncTrackingLinksResource
920932

921933
return AsyncTrackingLinksResource(self)
@@ -1160,7 +1172,10 @@ def following(self) -> following.FollowingResourceWithRawResponse:
11601172

11611173
@cached_property
11621174
def trial_links(self) -> trial_links.TrialLinksResourceWithRawResponse:
1163-
"""APIs for managing Free Trial Links"""
1175+
"""APIs for managing Free Trial Links.
1176+
1177+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1178+
"""
11641179
from .resources.trial_links import TrialLinksResourceWithRawResponse
11651180

11661181
return TrialLinksResourceWithRawResponse(self._client.trial_links)
@@ -1321,7 +1336,10 @@ def bundles(self) -> bundles.BundlesResourceWithRawResponse:
13211336

13221337
@cached_property
13231338
def tracking_links(self) -> tracking_links.TrackingLinksResourceWithRawResponse:
1324-
"""APIs for managing tracking links"""
1339+
"""APIs for managing tracking links.
1340+
1341+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1342+
"""
13251343
from .resources.tracking_links import TrackingLinksResourceWithRawResponse
13261344

13271345
return TrackingLinksResourceWithRawResponse(self._client.tracking_links)
@@ -1447,7 +1465,10 @@ def following(self) -> following.AsyncFollowingResourceWithRawResponse:
14471465

14481466
@cached_property
14491467
def trial_links(self) -> trial_links.AsyncTrialLinksResourceWithRawResponse:
1450-
"""APIs for managing Free Trial Links"""
1468+
"""APIs for managing Free Trial Links.
1469+
1470+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1471+
"""
14511472
from .resources.trial_links import AsyncTrialLinksResourceWithRawResponse
14521473

14531474
return AsyncTrialLinksResourceWithRawResponse(self._client.trial_links)
@@ -1608,7 +1629,10 @@ def bundles(self) -> bundles.AsyncBundlesResourceWithRawResponse:
16081629

16091630
@cached_property
16101631
def tracking_links(self) -> tracking_links.AsyncTrackingLinksResourceWithRawResponse:
1611-
"""APIs for managing tracking links"""
1632+
"""APIs for managing tracking links.
1633+
1634+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1635+
"""
16121636
from .resources.tracking_links import AsyncTrackingLinksResourceWithRawResponse
16131637

16141638
return AsyncTrackingLinksResourceWithRawResponse(self._client.tracking_links)
@@ -1734,7 +1758,10 @@ def following(self) -> following.FollowingResourceWithStreamingResponse:
17341758

17351759
@cached_property
17361760
def trial_links(self) -> trial_links.TrialLinksResourceWithStreamingResponse:
1737-
"""APIs for managing Free Trial Links"""
1761+
"""APIs for managing Free Trial Links.
1762+
1763+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1764+
"""
17381765
from .resources.trial_links import TrialLinksResourceWithStreamingResponse
17391766

17401767
return TrialLinksResourceWithStreamingResponse(self._client.trial_links)
@@ -1895,7 +1922,10 @@ def bundles(self) -> bundles.BundlesResourceWithStreamingResponse:
18951922

18961923
@cached_property
18971924
def tracking_links(self) -> tracking_links.TrackingLinksResourceWithStreamingResponse:
1898-
"""APIs for managing tracking links"""
1925+
"""APIs for managing tracking links.
1926+
1927+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1928+
"""
18991929
from .resources.tracking_links import TrackingLinksResourceWithStreamingResponse
19001930

19011931
return TrackingLinksResourceWithStreamingResponse(self._client.tracking_links)
@@ -2021,7 +2051,10 @@ def following(self) -> following.AsyncFollowingResourceWithStreamingResponse:
20212051

20222052
@cached_property
20232053
def trial_links(self) -> trial_links.AsyncTrialLinksResourceWithStreamingResponse:
2024-
"""APIs for managing Free Trial Links"""
2054+
"""APIs for managing Free Trial Links.
2055+
2056+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
2057+
"""
20252058
from .resources.trial_links import AsyncTrialLinksResourceWithStreamingResponse
20262059

20272060
return AsyncTrialLinksResourceWithStreamingResponse(self._client.trial_links)
@@ -2182,7 +2215,10 @@ def bundles(self) -> bundles.AsyncBundlesResourceWithStreamingResponse:
21822215

21832216
@cached_property
21842217
def tracking_links(self) -> tracking_links.AsyncTrackingLinksResourceWithStreamingResponse:
2185-
"""APIs for managing tracking links"""
2218+
"""APIs for managing tracking links.
2219+
2220+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
2221+
"""
21862222
from .resources.tracking_links import AsyncTrackingLinksResourceWithStreamingResponse
21872223

21882224
return AsyncTrackingLinksResourceWithStreamingResponse(self._client.tracking_links)

src/onlyfansapi/resources/tracking_links/tags.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424

2525

2626
class TagsResource(SyncAPIResource):
27-
"""APIs for managing tracking links"""
27+
"""APIs for managing tracking links.
28+
29+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
30+
"""
2831

2932
@cached_property
3033
def with_raw_response(self) -> TagsResourceWithRawResponse:
@@ -173,7 +176,10 @@ def remove(
173176

174177

175178
class AsyncTagsResource(AsyncAPIResource):
176-
"""APIs for managing tracking links"""
179+
"""APIs for managing tracking links.
180+
181+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
182+
"""
177183

178184
@cached_property
179185
def with_raw_response(self) -> AsyncTagsResourceWithRawResponse:

src/onlyfansapi/resources/tracking_links/tracking_links.py

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,17 @@
4646

4747

4848
class TrackingLinksResource(SyncAPIResource):
49-
"""APIs for managing tracking links"""
49+
"""APIs for managing tracking links.
50+
51+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
52+
"""
5053

5154
@cached_property
5255
def tags(self) -> TagsResource:
53-
"""APIs for managing tracking links"""
56+
"""APIs for managing tracking links.
57+
58+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
59+
"""
5460
return TagsResource(self._client)
5561

5662
@cached_property
@@ -513,11 +519,17 @@ def list_subscribers(
513519

514520

515521
class AsyncTrackingLinksResource(AsyncAPIResource):
516-
"""APIs for managing tracking links"""
522+
"""APIs for managing tracking links.
523+
524+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
525+
"""
517526

518527
@cached_property
519528
def tags(self) -> AsyncTagsResource:
520-
"""APIs for managing tracking links"""
529+
"""APIs for managing tracking links.
530+
531+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
532+
"""
521533
return AsyncTagsResource(self._client)
522534

523535
@cached_property
@@ -1010,7 +1022,10 @@ def __init__(self, tracking_links: TrackingLinksResource) -> None:
10101022

10111023
@cached_property
10121024
def tags(self) -> TagsResourceWithRawResponse:
1013-
"""APIs for managing tracking links"""
1025+
"""APIs for managing tracking links.
1026+
1027+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1028+
"""
10141029
return TagsResourceWithRawResponse(self._tracking_links.tags)
10151030

10161031

@@ -1045,7 +1060,10 @@ def __init__(self, tracking_links: AsyncTrackingLinksResource) -> None:
10451060

10461061
@cached_property
10471062
def tags(self) -> AsyncTagsResourceWithRawResponse:
1048-
"""APIs for managing tracking links"""
1063+
"""APIs for managing tracking links.
1064+
1065+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1066+
"""
10491067
return AsyncTagsResourceWithRawResponse(self._tracking_links.tags)
10501068

10511069

@@ -1080,7 +1098,10 @@ def __init__(self, tracking_links: TrackingLinksResource) -> None:
10801098

10811099
@cached_property
10821100
def tags(self) -> TagsResourceWithStreamingResponse:
1083-
"""APIs for managing tracking links"""
1101+
"""APIs for managing tracking links.
1102+
1103+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1104+
"""
10841105
return TagsResourceWithStreamingResponse(self._tracking_links.tags)
10851106

10861107

@@ -1115,5 +1136,8 @@ def __init__(self, tracking_links: AsyncTrackingLinksResource) -> None:
11151136

11161137
@cached_property
11171138
def tags(self) -> AsyncTagsResourceWithStreamingResponse:
1118-
"""APIs for managing tracking links"""
1139+
"""APIs for managing tracking links.
1140+
1141+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
1142+
"""
11191143
return AsyncTagsResourceWithStreamingResponse(self._tracking_links.tags)

src/onlyfansapi/resources/trial_links/tags.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@
2424

2525

2626
class TagsResource(SyncAPIResource):
27-
"""APIs for managing Free Trial Links"""
27+
"""APIs for managing Free Trial Links.
28+
29+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
30+
"""
2831

2932
@cached_property
3033
def with_raw_response(self) -> TagsResourceWithRawResponse:
@@ -167,7 +170,10 @@ def remove(
167170

168171

169172
class AsyncTagsResource(AsyncAPIResource):
170-
"""APIs for managing Free Trial Links"""
173+
"""APIs for managing Free Trial Links.
174+
175+
Revenue totals are net earnings after refunds and chargebacks. `revenue.chargebacks` (or `summary.chargebacks_total` in stats) is the positive cached net amount already excluded from revenue; do not subtract it again. Spender responses include chargebacks across all attributed periods for each fan with positive net revenue.
176+
"""
171177

172178
@cached_property
173179
def with_raw_response(self) -> AsyncTagsResourceWithRawResponse:

0 commit comments

Comments
 (0)