Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "f7cde5506d2791bbd0c2529a3db673aff245364a",
"originGitCommit": "70f1d0d2a2240f8ab315d8db1d2e22e2966d0fa8",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.8.1",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
typing.Literal[
"account_settlement",
"ad_affiliate_payout_received",
"ad_balance_funding_receipt",
"ad_budget_release",
"ad_campaign_budget",
"ad_funding_disbursement",
"ad_income_receipt",
"ad_publisher_payout",
"ad_publisher_payout_received",
"ad_spend_charge",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
typing.Literal[
"account_settlement",
"ad_affiliate_payout_received",
"ad_balance_funding_receipt",
"ad_budget_release",
"ad_campaign_budget",
"ad_funding_disbursement",
"ad_income_receipt",
"ad_publisher_payout",
"ad_publisher_payout_received",
"ad_spend_charge",
Expand Down
10 changes: 10 additions & 0 deletions src/whop_sdk/types/ledger_activity_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ class LedgerActivitySource(UniversalBaseModel):
Source of this ledger activity. Platform markup fees use object platform_fee and the ledger activity ID.
"""

account_id: typing.Optional[str] = pydantic.Field(default=None)
"""
ID of the account that runs the ad campaign (ad_campaign sources only).
"""

amount_float: typing.Optional[float] = pydantic.Field(default=None)
"""
Payout amount as a decimal number in the destination currency (payout sources only; requires payout:withdrawal:read).
Expand Down Expand Up @@ -139,6 +144,11 @@ class LedgerActivitySource(UniversalBaseModel):
Lifecycle status. On payout sources this is the payout status (requires payout:withdrawal:read); on airdrop_link sources it is the claim-link status (ungated); on payment and top-up sources it is the friendly payment status such as succeeded/pending/failed (ungated); on bank_deposit sources it is succeeded, reversal_in_progress or reversed (ungated).
"""

title: typing.Optional[str] = pydantic.Field(default=None)
"""
Name of the ad campaign the spend, payout, or funding belongs to (ad_campaign sources only).
"""

to_amount: typing.Optional[str] = pydantic.Field(default=None)
"""
Amount received in to_currency as a decimal string (swap sources only).
Expand Down
Loading