@whop/elements 1.2.0 → 1.3.0
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.
- package/package.json +2 -2
- package/wallet.d.cts +35 -3
- package/wallet.d.ts +35 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whop/elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Whop Elements — vanilla-js loader + types. Loads the hosted SDK and exposes the typed WhopElements factory.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"checkout",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
},
|
|
100
|
-
"whopElementsApiHash": "
|
|
100
|
+
"whopElementsApiHash": "e01164998bb759c635b8c36948d68516eca5cb8e9e3550e04ebc9360043609e4"
|
|
101
101
|
}
|
package/wallet.d.cts
CHANGED
|
@@ -1730,7 +1730,7 @@ export interface BreakdownElementCreateOptions {
|
|
|
1730
1730
|
/**
|
|
1731
1731
|
* A balance row or its matching bar segment was clicked. The host can open details for `available`, `pending`, `reserve`, or `debt`.
|
|
1732
1732
|
*/
|
|
1733
|
-
onBreakdownSelected?: ((payload: { category: "available" | "
|
|
1733
|
+
onBreakdownSelected?: ((payload: { category: "available" | "debt" | "pending" | "reserve"; }) => void);
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Runs after the loading skeleton first paints and before `onReady`.
|
|
1736
1736
|
*/
|
|
@@ -2828,6 +2828,38 @@ export interface Money {
|
|
|
2828
2828
|
display_decimals: number;
|
|
2829
2829
|
}
|
|
2830
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Declared from the app's `UserProfilePicture`, referenced by a host-capability surface.
|
|
2833
|
+
*/
|
|
2834
|
+
export interface UserProfilePicture {
|
|
2835
|
+
/**
|
|
2836
|
+
* Avatar image URL. Always present — a generated placeholder when the user set no picture.
|
|
2837
|
+
*/
|
|
2838
|
+
url: string;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Declared from the app's `UserSummary`, referenced by a host-capability surface.
|
|
2843
|
+
*/
|
|
2844
|
+
export interface UserSummary {
|
|
2845
|
+
/**
|
|
2846
|
+
* User ID, prefixed `user_`.
|
|
2847
|
+
*/
|
|
2848
|
+
id: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Public username.
|
|
2851
|
+
*/
|
|
2852
|
+
username: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Display name.
|
|
2855
|
+
*/
|
|
2856
|
+
name: string | null;
|
|
2857
|
+
/**
|
|
2858
|
+
* Avatar wrapper; its `url` is always present, using a generated placeholder when the user set no picture.
|
|
2859
|
+
*/
|
|
2860
|
+
profile_picture: UserProfilePicture;
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2831
2863
|
/**
|
|
2832
2864
|
* Declared from the app's `LedgerActivity`, referenced by a host-capability surface.
|
|
2833
2865
|
*/
|
|
@@ -2840,7 +2872,7 @@ export interface LedgerActivity {
|
|
|
2840
2872
|
/**
|
|
2841
2873
|
* The ledger line category this activity was posted under.
|
|
2842
2874
|
*/
|
|
2843
|
-
line_type: "platform_balance_transfer_outgoing" | "payment_gross" | "withdrawal" | "topup" | "payment_dispute" | "payment_revshare" | "card_spend_authorization" | "airdrop" | "onchain_swap_target" | "cashback" | "account_settlement" | "ad_budget_release" | "ad_campaign_budget" | "ad_publisher_payout" | "ad_publisher_payout_received" | "ad_spend_charge" | "affiliate_fee" | "airdrop_link_created" | "airdrop_link_redeemed" | "airdrop_link_returned" | "airdrop_reversal" | "application_fee" | "application_fee_payout" | "balance_reservation" | "balance_reservation_reversal" | "bank_transfer" | "billing_percentage_fee" | "buyer_fee" | "card_interchange" | "card_load_deposit" | "card_load_transfer" | "card_spend_authorization_void" | "card_spend_refund" | "card_unload_deposit" | "card_unload_transfer" | "cashback_funding" | "company_referral" | "connected_account_negative_balance" | "cross_border_percentage_fee" | "currency_conversion_incoming" | "currency_conversion_outgoing" | "dispute_alert_fee" | "dispute_hold_adjustment" | "dispute_representment_fee" | "economic_intelligence_percentage_fee" | "external_card_load_deposit" | "fraud_prevention_fee" | "fx_percentage_fee" | "high_risk_merchant_fee" | "installment_default" | "internal_balance_transfer_incoming" | "internal_balance_transfer_outgoing" | "internal_withdrawal" | "internal_withdrawal_complete" | "internal_withdrawal_fee" | "internal_withdrawal_fee_reversal" | "internal_withdrawal_in_transit" | "internal_withdrawal_in_transit_reversal" | "internal_withdrawal_markup_fee" | "internal_withdrawal_markup_fee_payout" | "internal_withdrawal_markup_fee_payout_reversal" | "internal_withdrawal_markup_fee_reversal" | "internal_withdrawal_reversal" | "legacy_crypto_payment" | "legacy_payment" | "legacy_payment_refund" | "license_sale" | "license_sale_commission" | "license_sale_revenue" | "marketplace_affiliate_fee" | "misc_purchase" | "misc_refund" | "misc_reversal" | "onboarding_reward" | "onchain_deposit" | "onchain_swap_source" | "onchain_wallet_transfer_incoming" | "onchain_wallet_transfer_outgoing" | "onchain_withdrawal" | "orchestration_percentage_fee" | "partner_grant_reward" | "passthrough_gmv" | "payment_dispute_adjustment" | "payment_dispute_fee" | "payment_dispute_reversal" | "payment_gross_reversal" | "payment_processing_fixed_fee" | "payment_processing_percentage_fee" | "payment_referral" | "payment_referral_refund" | "payment_referral_reversal" | "payment_refund" | "payment_refund_reversal" | "payment_revshare_payout" | "payment_revshare_refund" | "payment_revshare_reversal" | "payout_fee" | "platform_affiliate_payment" | "platform_affiliate_payment_reversal" | "platform_balance_payment" | "platform_balance_payment_refund" | "platform_balance_transfer_fee" | "platform_balance_transfer_incoming" | "platform_covered_dispute" | "platform_credits_granted" | "platform_credits_payment" | "platform_credits_payment_refund" | "platform_earning" | "platform_markup_fee" | "platform_markup_fee_payout" | "promo_reversal" | "referral_bonus" | "resolution_center_refund" | "revshare_percentage_fee" | "sales_tax_fee" | "sales_tax_remittance" | "sales_tax_remittance_reversal" | "software_rental_revshare" | "software_rental_transaction" | "stripe_domestic_processing_fee" | "stripe_international_processing_fee" | "swap_fee" | "three_ds_fixed_fee" | "topup_fee" | "topup_reversal" | "treasury_payin" | "whop_processing_fee" | "withdrawal_clawback" | "withdrawal_clawback_reversal" | "withdrawal_fee" | "withdrawal_fee_reversal" | "withdrawal_markup_fee" | "withdrawal_markup_fee_payout" | "withdrawal_markup_fee_payout_reversal" | "withdrawal_markup_fee_reversal" | "withdrawal_reclassification" | "withdrawal_reversal" | "withdrawal_topup_adjustment" | "deposit" | "wallet_transfer_incoming" | "wallet_transfer_outgoing" | "swap_source" | "swap_target";
|
|
2875
|
+
line_type: "platform_balance_transfer_outgoing" | "payment_gross" | "withdrawal" | "topup" | "payment_dispute" | "payment_revshare" | "card_spend_authorization" | "airdrop" | "onchain_swap_target" | "cashback" | "account_settlement" | "ad_budget_release" | "ad_campaign_budget" | "ad_publisher_payout" | "ad_publisher_payout_received" | "ad_spend_charge" | "affiliate_fee" | "airdrop_link_created" | "airdrop_link_redeemed" | "airdrop_link_returned" | "airdrop_reversal" | "application_fee" | "application_fee_payout" | "balance_reservation" | "balance_reservation_reversal" | "bank_transfer" | "billing_percentage_fee" | "buyer_fee" | "card_interchange" | "card_load_deposit" | "card_load_transfer" | "card_spend_authorization_void" | "card_spend_refund" | "card_unload_deposit" | "card_unload_transfer" | "cashback_funding" | "company_referral" | "connected_account_negative_balance" | "cross_border_percentage_fee" | "currency_conversion_incoming" | "currency_conversion_outgoing" | "dispute_alert_fee" | "dispute_hold_adjustment" | "dispute_representment_fee" | "economic_intelligence_percentage_fee" | "external_card_load_deposit" | "fraud_prevention_fee" | "fx_percentage_fee" | "high_risk_merchant_fee" | "installment_default" | "internal_balance_transfer_incoming" | "internal_balance_transfer_outgoing" | "internal_withdrawal" | "internal_withdrawal_complete" | "internal_withdrawal_fee" | "internal_withdrawal_fee_reversal" | "internal_withdrawal_in_transit" | "internal_withdrawal_in_transit_reversal" | "internal_withdrawal_markup_fee" | "internal_withdrawal_markup_fee_payout" | "internal_withdrawal_markup_fee_payout_reversal" | "internal_withdrawal_markup_fee_reversal" | "internal_withdrawal_reversal" | "legacy_crypto_payment" | "legacy_payment" | "legacy_payment_refund" | "license_sale" | "license_sale_commission" | "license_sale_revenue" | "marketplace_affiliate_fee" | "misc_purchase" | "misc_refund" | "misc_reversal" | "onboarding_reward" | "onchain_deposit" | "onchain_swap_source" | "onchain_wallet_transfer_incoming" | "onchain_wallet_transfer_outgoing" | "onchain_withdrawal" | "orchestration_percentage_fee" | "partner_grant_reward" | "passthrough_gmv" | "payment_dispute_adjustment" | "payment_dispute_fee" | "payment_dispute_reversal" | "payment_gross_reversal" | "payment_processing_fixed_fee" | "payment_processing_percentage_fee" | "payment_referral" | "payment_referral_refund" | "payment_referral_reversal" | "payment_refund" | "payment_refund_reversal" | "payment_revshare_payout" | "payment_revshare_refund" | "payment_revshare_reversal" | "payout_fee" | "platform_affiliate_payment" | "platform_affiliate_payment_reversal" | "platform_balance_payment" | "platform_balance_payment_refund" | "platform_balance_transfer_fee" | "platform_balance_transfer_incoming" | "platform_covered_dispute" | "platform_credits_granted" | "platform_credits_payment" | "platform_credits_payment_refund" | "platform_earning" | "platform_markup_fee" | "platform_markup_fee_payout" | "promo_reversal" | "referral_bonus" | "resolution_center_refund" | "revshare_percentage_fee" | "sales_tax_fee" | "sales_tax_remittance" | "sales_tax_remittance_reversal" | "software_rental_revshare" | "software_rental_transaction" | "stripe_domestic_processing_fee" | "stripe_international_processing_fee" | "swap_fee" | "three_ds_fixed_fee" | "topup_fee" | "topup_reversal" | "treasury_payin" | "whop_processing_fee" | "withdrawal_clawback" | "withdrawal_clawback_reversal" | "withdrawal_fee" | "withdrawal_fee_reversal" | "withdrawal_markup_fee" | "withdrawal_markup_fee_payout" | "withdrawal_markup_fee_payout_reversal" | "withdrawal_markup_fee_reversal" | "withdrawal_reclassification" | "withdrawal_reversal" | "withdrawal_topup_adjustment" | "psp_payment_receivable" | "ad_spend_purchase" | "psp_refund_payable" | "passthrough_gmv_offset" | "aggregated_fee" | "sales_tax_collected" | "sales_tax_collected_reversal" | "sales_tax_remitted" | "dispute_hold_blocked" | "psp_dispute_payable" | "withdrawal_payable" | "withdrawal_payable_reversal" | "payout_receivable" | "clawback_receivable" | "clawback_receivable_reversal" | "treasury_payin_receivable" | "onchain_deposit_offset" | "onchain_withdrawal_offset" | "trading_account_withdrawal" | "trading_account_withdrawal_offset" | "trading_account_deposit" | "trading_account_deposit_offset" | "onchain_swap_offset" | "whop_swap_fee_received" | "internal_withdrawal_payable" | "internal_withdrawal_payable_reversal" | "external_card_load_offset" | "card_spend_authorization_hold" | "card_spend_capture" | "card_spend_capture_offset" | "card_spend_authorization_void_release" | "card_spend_refund_offset" | "cashback_expense" | "card_interchange_receivable" | "balance_reservation_hold" | "balance_reservation_release" | "bad_debt_offset" | "bad_debt_expense" | "connected_account_clawback" | "payment_referral_payable" | "application_fee_payable" | "airdrop_expense" | "airdrop_expense_reversal" | "airdrop_link_funded" | "airdrop_link_canceled" | "airdrop_link_claimed" | "ad_funding_disbursement" | "ads_card_spread" | "ad_network_cost" | "ad_spend_margin" | "ad_income_expense" | "ad_income_receipt" | "ad_network_settlement" | "ad_balance_funding_receipt" | "fx_gain_loss" | "fx_markup" | "payment_receivable_settlement" | "platform_earning_settlement" | "platform_earning_unreconciled_clearing" | "payment_receivable_clearing" | "payment_receivable_reversal" | "payment_unreconciled_clearing" | "payment_unreconciled_reversal" | "settlement_shortfall_loss" | "fx_settlement_gain_loss" | "settlement_rounding_variance" | "psp_payout_settlement" | "psp_payout_deposit" | "psp_payout_receivable" | "psp_payout_receivable_clearing" | "payout_unreconciled_clearing" | "psp_currency_conversion_outgoing" | "psp_currency_conversion_incoming" | "psp_currency_conversion_receivable" | "psp_currency_conversion_receivable_clearing" | "psp_fx_adjustment" | "refund_settlement" | "refund_settlement_reversal" | "refund_payable_clearing" | "refund_payable_reversal" | "refund_unreconciled_clearing" | "refund_unreconciled_reversal" | "psp_account_debit" | "payment_refund_fee" | "dispute_settlement" | "dispute_settlement_reversal" | "dispute_payable_clearing" | "dispute_payable_reversal" | "dispute_unreconciled_clearing" | "dispute_unreconciled_reversal" | "psp_reserve_hold" | "psp_reserve_release" | "psp_dispute_fee" | "psp_dispute_alert_fee" | "psp_refund_fee" | "psp_account_updater_fee" | "psp_adjusted_processing_fee" | "psp_authentication_fee" | "psp_commission_fee" | "psp_fixed_fee" | "psp_gateway_fee" | "psp_interchange_fee" | "psp_invoice_tax_fee" | "psp_markup_fee" | "psp_network_token_fee" | "psp_optimization_fee" | "psp_payment_method_fee" | "psp_payout_fee" | "psp_processing_fee" | "psp_risk_fee" | "psp_scheme_fee" | "psp_variable_fee" | "psp_billing_fee" | "psp_tax_service_fee" | "psp_connect_fee" | "external_account_connection_fee" | "psp_external_account_connection_fee" | "psp_invoicing_fee" | "psp_terminal_fee" | "treasury_fee" | "psp_treasury_fee" | "accelerated_settlement_fee" | "psp_accelerated_settlement_fee" | "psp_receivable_pooled" | "psp_pool_settlement" | "psp_pool_clearing" | "psp_pool_refund_settlement" | "psp_pool_refund_clearing" | "psp_correction" | "psp_payin_settlement" | "psp_payin_clearing" | "psp_bank_pull_settlement" | "psp_bank_pull_clearing" | "psp_pool_dispute_settlement" | "psp_payout_consolidation" | "psp_withholding_tax" | "psp_payout_settlement_reversal" | "psp_transfer_settlement" | "psp_transfer_settlement_reversal" | "psp_collection_settlement" | "payout_subsidy" | "withdrawal_payable_clearing" | "withdrawal_payable_clearing_reversal" | "identity_verification_fee" | "psp_identity_verification_fee" | "tax_filing_fee" | "psp_tax_filing_fee" | "psp_service_fee" | "recipient_wallet_load" | "psp_recipient_wallet_load" | "dispute_management_fee" | "psp_dispute_management_fee" | "psp_clawback_settlement" | "psp_clawback_settlement_reversal" | "clawback_receivable_settlement" | "clawback_receivable_settlement_reversal" | "clawback_fee" | "psp_clawback_fee" | "deposit" | "wallet_transfer_incoming" | "wallet_transfer_outgoing" | "swap_source" | "swap_target";
|
|
2844
2876
|
/**
|
|
2845
2877
|
* Signed amount in the currency's smallest precision units.
|
|
2846
2878
|
*/
|
|
@@ -2868,7 +2900,7 @@ export interface LedgerActivity {
|
|
|
2868
2900
|
/**
|
|
2869
2901
|
* Source of this ledger activity. Platform markup fees use object platform_fee and the ledger activity ID.
|
|
2870
2902
|
*/
|
|
2871
|
-
source: { object: string; id: string; fee_kind?: "transfer" | "card_spend" | "deposit" | "swap" | "payout" | null | undefined; status?: string | null | undefined; payment_amount?: Money | null | undefined; payment_method_type?: string | null | undefined; payment_processor?: string | null | undefined; card_brand?: string | null | undefined; reason?: string | null | undefined; notes?: string | null | undefined; risk_review_hold?: boolean | null | undefined; claim_url?: string | null | undefined; amount_float?: number | null | undefined; created_at?: string | null | undefined; estimated_arrival?: string | null | undefined; payer_name?: string | null | undefined; payout_token_nickname?: string | null | undefined; tx_hash?: string | null | undefined; sender_address?: string | null | undefined; chain?: string | null | undefined; from_amount?: string | null | undefined; from_currency?: string | null | undefined; to_amount?: string | null | undefined; to_currency?: string | null | undefined; payout_destination?: { payer_name?: string | null | undefined; icon_url?: string | null | undefined; } | null | undefined; [key: string]: unknown; } | null;
|
|
2903
|
+
source: { object: string; id: string; fee_kind?: "transfer" | "card_spend" | "deposit" | "swap" | "payout" | null | undefined; status?: string | null | undefined; payment_amount?: Money | null | undefined; payment_method_type?: string | null | undefined; payment_processor?: string | null | undefined; card_brand?: string | null | undefined; reason?: string | null | undefined; notes?: string | null | undefined; risk_review_hold?: boolean | null | undefined; claim_url?: string | null | undefined; amount_float?: number | null | undefined; payout_amount?: Money | null | undefined; fee_amount?: Money | null | undefined; fee_type?: "exclusive" | "inclusive" | null | undefined; created_by_user?: UserSummary | null | undefined; trace_code?: string | null | undefined; created_at?: string | null | undefined; estimated_arrival?: string | null | undefined; payer_name?: string | null | undefined; payout_token_nickname?: string | null | undefined; tx_hash?: string | null | undefined; sender_address?: string | null | undefined; chain?: string | null | undefined; from_amount?: string | null | undefined; from_currency?: string | null | undefined; to_amount?: string | null | undefined; to_currency?: string | null | undefined; payout_destination?: { payer_name?: string | null | undefined; icon_url?: string | null | undefined; } | null | undefined; [key: string]: unknown; } | null;
|
|
2872
2904
|
/**
|
|
2873
2905
|
* Payment related to this ledger activity. Included when rich resource hydration is enabled and the movement is tied to a payment.
|
|
2874
2906
|
*/
|
package/wallet.d.ts
CHANGED
|
@@ -1730,7 +1730,7 @@ export interface BreakdownElementCreateOptions {
|
|
|
1730
1730
|
/**
|
|
1731
1731
|
* A balance row or its matching bar segment was clicked. The host can open details for `available`, `pending`, `reserve`, or `debt`.
|
|
1732
1732
|
*/
|
|
1733
|
-
onBreakdownSelected?: ((payload: { category: "available" | "
|
|
1733
|
+
onBreakdownSelected?: ((payload: { category: "available" | "debt" | "pending" | "reserve"; }) => void);
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Runs after the loading skeleton first paints and before `onReady`.
|
|
1736
1736
|
*/
|
|
@@ -2828,6 +2828,38 @@ export interface Money {
|
|
|
2828
2828
|
display_decimals: number;
|
|
2829
2829
|
}
|
|
2830
2830
|
|
|
2831
|
+
/**
|
|
2832
|
+
* Declared from the app's `UserProfilePicture`, referenced by a host-capability surface.
|
|
2833
|
+
*/
|
|
2834
|
+
export interface UserProfilePicture {
|
|
2835
|
+
/**
|
|
2836
|
+
* Avatar image URL. Always present — a generated placeholder when the user set no picture.
|
|
2837
|
+
*/
|
|
2838
|
+
url: string;
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* Declared from the app's `UserSummary`, referenced by a host-capability surface.
|
|
2843
|
+
*/
|
|
2844
|
+
export interface UserSummary {
|
|
2845
|
+
/**
|
|
2846
|
+
* User ID, prefixed `user_`.
|
|
2847
|
+
*/
|
|
2848
|
+
id: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Public username.
|
|
2851
|
+
*/
|
|
2852
|
+
username: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Display name.
|
|
2855
|
+
*/
|
|
2856
|
+
name: string | null;
|
|
2857
|
+
/**
|
|
2858
|
+
* Avatar wrapper; its `url` is always present, using a generated placeholder when the user set no picture.
|
|
2859
|
+
*/
|
|
2860
|
+
profile_picture: UserProfilePicture;
|
|
2861
|
+
}
|
|
2862
|
+
|
|
2831
2863
|
/**
|
|
2832
2864
|
* Declared from the app's `LedgerActivity`, referenced by a host-capability surface.
|
|
2833
2865
|
*/
|
|
@@ -2840,7 +2872,7 @@ export interface LedgerActivity {
|
|
|
2840
2872
|
/**
|
|
2841
2873
|
* The ledger line category this activity was posted under.
|
|
2842
2874
|
*/
|
|
2843
|
-
line_type: "platform_balance_transfer_outgoing" | "payment_gross" | "withdrawal" | "topup" | "payment_dispute" | "payment_revshare" | "card_spend_authorization" | "airdrop" | "onchain_swap_target" | "cashback" | "account_settlement" | "ad_budget_release" | "ad_campaign_budget" | "ad_publisher_payout" | "ad_publisher_payout_received" | "ad_spend_charge" | "affiliate_fee" | "airdrop_link_created" | "airdrop_link_redeemed" | "airdrop_link_returned" | "airdrop_reversal" | "application_fee" | "application_fee_payout" | "balance_reservation" | "balance_reservation_reversal" | "bank_transfer" | "billing_percentage_fee" | "buyer_fee" | "card_interchange" | "card_load_deposit" | "card_load_transfer" | "card_spend_authorization_void" | "card_spend_refund" | "card_unload_deposit" | "card_unload_transfer" | "cashback_funding" | "company_referral" | "connected_account_negative_balance" | "cross_border_percentage_fee" | "currency_conversion_incoming" | "currency_conversion_outgoing" | "dispute_alert_fee" | "dispute_hold_adjustment" | "dispute_representment_fee" | "economic_intelligence_percentage_fee" | "external_card_load_deposit" | "fraud_prevention_fee" | "fx_percentage_fee" | "high_risk_merchant_fee" | "installment_default" | "internal_balance_transfer_incoming" | "internal_balance_transfer_outgoing" | "internal_withdrawal" | "internal_withdrawal_complete" | "internal_withdrawal_fee" | "internal_withdrawal_fee_reversal" | "internal_withdrawal_in_transit" | "internal_withdrawal_in_transit_reversal" | "internal_withdrawal_markup_fee" | "internal_withdrawal_markup_fee_payout" | "internal_withdrawal_markup_fee_payout_reversal" | "internal_withdrawal_markup_fee_reversal" | "internal_withdrawal_reversal" | "legacy_crypto_payment" | "legacy_payment" | "legacy_payment_refund" | "license_sale" | "license_sale_commission" | "license_sale_revenue" | "marketplace_affiliate_fee" | "misc_purchase" | "misc_refund" | "misc_reversal" | "onboarding_reward" | "onchain_deposit" | "onchain_swap_source" | "onchain_wallet_transfer_incoming" | "onchain_wallet_transfer_outgoing" | "onchain_withdrawal" | "orchestration_percentage_fee" | "partner_grant_reward" | "passthrough_gmv" | "payment_dispute_adjustment" | "payment_dispute_fee" | "payment_dispute_reversal" | "payment_gross_reversal" | "payment_processing_fixed_fee" | "payment_processing_percentage_fee" | "payment_referral" | "payment_referral_refund" | "payment_referral_reversal" | "payment_refund" | "payment_refund_reversal" | "payment_revshare_payout" | "payment_revshare_refund" | "payment_revshare_reversal" | "payout_fee" | "platform_affiliate_payment" | "platform_affiliate_payment_reversal" | "platform_balance_payment" | "platform_balance_payment_refund" | "platform_balance_transfer_fee" | "platform_balance_transfer_incoming" | "platform_covered_dispute" | "platform_credits_granted" | "platform_credits_payment" | "platform_credits_payment_refund" | "platform_earning" | "platform_markup_fee" | "platform_markup_fee_payout" | "promo_reversal" | "referral_bonus" | "resolution_center_refund" | "revshare_percentage_fee" | "sales_tax_fee" | "sales_tax_remittance" | "sales_tax_remittance_reversal" | "software_rental_revshare" | "software_rental_transaction" | "stripe_domestic_processing_fee" | "stripe_international_processing_fee" | "swap_fee" | "three_ds_fixed_fee" | "topup_fee" | "topup_reversal" | "treasury_payin" | "whop_processing_fee" | "withdrawal_clawback" | "withdrawal_clawback_reversal" | "withdrawal_fee" | "withdrawal_fee_reversal" | "withdrawal_markup_fee" | "withdrawal_markup_fee_payout" | "withdrawal_markup_fee_payout_reversal" | "withdrawal_markup_fee_reversal" | "withdrawal_reclassification" | "withdrawal_reversal" | "withdrawal_topup_adjustment" | "deposit" | "wallet_transfer_incoming" | "wallet_transfer_outgoing" | "swap_source" | "swap_target";
|
|
2875
|
+
line_type: "platform_balance_transfer_outgoing" | "payment_gross" | "withdrawal" | "topup" | "payment_dispute" | "payment_revshare" | "card_spend_authorization" | "airdrop" | "onchain_swap_target" | "cashback" | "account_settlement" | "ad_budget_release" | "ad_campaign_budget" | "ad_publisher_payout" | "ad_publisher_payout_received" | "ad_spend_charge" | "affiliate_fee" | "airdrop_link_created" | "airdrop_link_redeemed" | "airdrop_link_returned" | "airdrop_reversal" | "application_fee" | "application_fee_payout" | "balance_reservation" | "balance_reservation_reversal" | "bank_transfer" | "billing_percentage_fee" | "buyer_fee" | "card_interchange" | "card_load_deposit" | "card_load_transfer" | "card_spend_authorization_void" | "card_spend_refund" | "card_unload_deposit" | "card_unload_transfer" | "cashback_funding" | "company_referral" | "connected_account_negative_balance" | "cross_border_percentage_fee" | "currency_conversion_incoming" | "currency_conversion_outgoing" | "dispute_alert_fee" | "dispute_hold_adjustment" | "dispute_representment_fee" | "economic_intelligence_percentage_fee" | "external_card_load_deposit" | "fraud_prevention_fee" | "fx_percentage_fee" | "high_risk_merchant_fee" | "installment_default" | "internal_balance_transfer_incoming" | "internal_balance_transfer_outgoing" | "internal_withdrawal" | "internal_withdrawal_complete" | "internal_withdrawal_fee" | "internal_withdrawal_fee_reversal" | "internal_withdrawal_in_transit" | "internal_withdrawal_in_transit_reversal" | "internal_withdrawal_markup_fee" | "internal_withdrawal_markup_fee_payout" | "internal_withdrawal_markup_fee_payout_reversal" | "internal_withdrawal_markup_fee_reversal" | "internal_withdrawal_reversal" | "legacy_crypto_payment" | "legacy_payment" | "legacy_payment_refund" | "license_sale" | "license_sale_commission" | "license_sale_revenue" | "marketplace_affiliate_fee" | "misc_purchase" | "misc_refund" | "misc_reversal" | "onboarding_reward" | "onchain_deposit" | "onchain_swap_source" | "onchain_wallet_transfer_incoming" | "onchain_wallet_transfer_outgoing" | "onchain_withdrawal" | "orchestration_percentage_fee" | "partner_grant_reward" | "passthrough_gmv" | "payment_dispute_adjustment" | "payment_dispute_fee" | "payment_dispute_reversal" | "payment_gross_reversal" | "payment_processing_fixed_fee" | "payment_processing_percentage_fee" | "payment_referral" | "payment_referral_refund" | "payment_referral_reversal" | "payment_refund" | "payment_refund_reversal" | "payment_revshare_payout" | "payment_revshare_refund" | "payment_revshare_reversal" | "payout_fee" | "platform_affiliate_payment" | "platform_affiliate_payment_reversal" | "platform_balance_payment" | "platform_balance_payment_refund" | "platform_balance_transfer_fee" | "platform_balance_transfer_incoming" | "platform_covered_dispute" | "platform_credits_granted" | "platform_credits_payment" | "platform_credits_payment_refund" | "platform_earning" | "platform_markup_fee" | "platform_markup_fee_payout" | "promo_reversal" | "referral_bonus" | "resolution_center_refund" | "revshare_percentage_fee" | "sales_tax_fee" | "sales_tax_remittance" | "sales_tax_remittance_reversal" | "software_rental_revshare" | "software_rental_transaction" | "stripe_domestic_processing_fee" | "stripe_international_processing_fee" | "swap_fee" | "three_ds_fixed_fee" | "topup_fee" | "topup_reversal" | "treasury_payin" | "whop_processing_fee" | "withdrawal_clawback" | "withdrawal_clawback_reversal" | "withdrawal_fee" | "withdrawal_fee_reversal" | "withdrawal_markup_fee" | "withdrawal_markup_fee_payout" | "withdrawal_markup_fee_payout_reversal" | "withdrawal_markup_fee_reversal" | "withdrawal_reclassification" | "withdrawal_reversal" | "withdrawal_topup_adjustment" | "psp_payment_receivable" | "ad_spend_purchase" | "psp_refund_payable" | "passthrough_gmv_offset" | "aggregated_fee" | "sales_tax_collected" | "sales_tax_collected_reversal" | "sales_tax_remitted" | "dispute_hold_blocked" | "psp_dispute_payable" | "withdrawal_payable" | "withdrawal_payable_reversal" | "payout_receivable" | "clawback_receivable" | "clawback_receivable_reversal" | "treasury_payin_receivable" | "onchain_deposit_offset" | "onchain_withdrawal_offset" | "trading_account_withdrawal" | "trading_account_withdrawal_offset" | "trading_account_deposit" | "trading_account_deposit_offset" | "onchain_swap_offset" | "whop_swap_fee_received" | "internal_withdrawal_payable" | "internal_withdrawal_payable_reversal" | "external_card_load_offset" | "card_spend_authorization_hold" | "card_spend_capture" | "card_spend_capture_offset" | "card_spend_authorization_void_release" | "card_spend_refund_offset" | "cashback_expense" | "card_interchange_receivable" | "balance_reservation_hold" | "balance_reservation_release" | "bad_debt_offset" | "bad_debt_expense" | "connected_account_clawback" | "payment_referral_payable" | "application_fee_payable" | "airdrop_expense" | "airdrop_expense_reversal" | "airdrop_link_funded" | "airdrop_link_canceled" | "airdrop_link_claimed" | "ad_funding_disbursement" | "ads_card_spread" | "ad_network_cost" | "ad_spend_margin" | "ad_income_expense" | "ad_income_receipt" | "ad_network_settlement" | "ad_balance_funding_receipt" | "fx_gain_loss" | "fx_markup" | "payment_receivable_settlement" | "platform_earning_settlement" | "platform_earning_unreconciled_clearing" | "payment_receivable_clearing" | "payment_receivable_reversal" | "payment_unreconciled_clearing" | "payment_unreconciled_reversal" | "settlement_shortfall_loss" | "fx_settlement_gain_loss" | "settlement_rounding_variance" | "psp_payout_settlement" | "psp_payout_deposit" | "psp_payout_receivable" | "psp_payout_receivable_clearing" | "payout_unreconciled_clearing" | "psp_currency_conversion_outgoing" | "psp_currency_conversion_incoming" | "psp_currency_conversion_receivable" | "psp_currency_conversion_receivable_clearing" | "psp_fx_adjustment" | "refund_settlement" | "refund_settlement_reversal" | "refund_payable_clearing" | "refund_payable_reversal" | "refund_unreconciled_clearing" | "refund_unreconciled_reversal" | "psp_account_debit" | "payment_refund_fee" | "dispute_settlement" | "dispute_settlement_reversal" | "dispute_payable_clearing" | "dispute_payable_reversal" | "dispute_unreconciled_clearing" | "dispute_unreconciled_reversal" | "psp_reserve_hold" | "psp_reserve_release" | "psp_dispute_fee" | "psp_dispute_alert_fee" | "psp_refund_fee" | "psp_account_updater_fee" | "psp_adjusted_processing_fee" | "psp_authentication_fee" | "psp_commission_fee" | "psp_fixed_fee" | "psp_gateway_fee" | "psp_interchange_fee" | "psp_invoice_tax_fee" | "psp_markup_fee" | "psp_network_token_fee" | "psp_optimization_fee" | "psp_payment_method_fee" | "psp_payout_fee" | "psp_processing_fee" | "psp_risk_fee" | "psp_scheme_fee" | "psp_variable_fee" | "psp_billing_fee" | "psp_tax_service_fee" | "psp_connect_fee" | "external_account_connection_fee" | "psp_external_account_connection_fee" | "psp_invoicing_fee" | "psp_terminal_fee" | "treasury_fee" | "psp_treasury_fee" | "accelerated_settlement_fee" | "psp_accelerated_settlement_fee" | "psp_receivable_pooled" | "psp_pool_settlement" | "psp_pool_clearing" | "psp_pool_refund_settlement" | "psp_pool_refund_clearing" | "psp_correction" | "psp_payin_settlement" | "psp_payin_clearing" | "psp_bank_pull_settlement" | "psp_bank_pull_clearing" | "psp_pool_dispute_settlement" | "psp_payout_consolidation" | "psp_withholding_tax" | "psp_payout_settlement_reversal" | "psp_transfer_settlement" | "psp_transfer_settlement_reversal" | "psp_collection_settlement" | "payout_subsidy" | "withdrawal_payable_clearing" | "withdrawal_payable_clearing_reversal" | "identity_verification_fee" | "psp_identity_verification_fee" | "tax_filing_fee" | "psp_tax_filing_fee" | "psp_service_fee" | "recipient_wallet_load" | "psp_recipient_wallet_load" | "dispute_management_fee" | "psp_dispute_management_fee" | "psp_clawback_settlement" | "psp_clawback_settlement_reversal" | "clawback_receivable_settlement" | "clawback_receivable_settlement_reversal" | "clawback_fee" | "psp_clawback_fee" | "deposit" | "wallet_transfer_incoming" | "wallet_transfer_outgoing" | "swap_source" | "swap_target";
|
|
2844
2876
|
/**
|
|
2845
2877
|
* Signed amount in the currency's smallest precision units.
|
|
2846
2878
|
*/
|
|
@@ -2868,7 +2900,7 @@ export interface LedgerActivity {
|
|
|
2868
2900
|
/**
|
|
2869
2901
|
* Source of this ledger activity. Platform markup fees use object platform_fee and the ledger activity ID.
|
|
2870
2902
|
*/
|
|
2871
|
-
source: { object: string; id: string; fee_kind?: "transfer" | "card_spend" | "deposit" | "swap" | "payout" | null | undefined; status?: string | null | undefined; payment_amount?: Money | null | undefined; payment_method_type?: string | null | undefined; payment_processor?: string | null | undefined; card_brand?: string | null | undefined; reason?: string | null | undefined; notes?: string | null | undefined; risk_review_hold?: boolean | null | undefined; claim_url?: string | null | undefined; amount_float?: number | null | undefined; created_at?: string | null | undefined; estimated_arrival?: string | null | undefined; payer_name?: string | null | undefined; payout_token_nickname?: string | null | undefined; tx_hash?: string | null | undefined; sender_address?: string | null | undefined; chain?: string | null | undefined; from_amount?: string | null | undefined; from_currency?: string | null | undefined; to_amount?: string | null | undefined; to_currency?: string | null | undefined; payout_destination?: { payer_name?: string | null | undefined; icon_url?: string | null | undefined; } | null | undefined; [key: string]: unknown; } | null;
|
|
2903
|
+
source: { object: string; id: string; fee_kind?: "transfer" | "card_spend" | "deposit" | "swap" | "payout" | null | undefined; status?: string | null | undefined; payment_amount?: Money | null | undefined; payment_method_type?: string | null | undefined; payment_processor?: string | null | undefined; card_brand?: string | null | undefined; reason?: string | null | undefined; notes?: string | null | undefined; risk_review_hold?: boolean | null | undefined; claim_url?: string | null | undefined; amount_float?: number | null | undefined; payout_amount?: Money | null | undefined; fee_amount?: Money | null | undefined; fee_type?: "exclusive" | "inclusive" | null | undefined; created_by_user?: UserSummary | null | undefined; trace_code?: string | null | undefined; created_at?: string | null | undefined; estimated_arrival?: string | null | undefined; payer_name?: string | null | undefined; payout_token_nickname?: string | null | undefined; tx_hash?: string | null | undefined; sender_address?: string | null | undefined; chain?: string | null | undefined; from_amount?: string | null | undefined; from_currency?: string | null | undefined; to_amount?: string | null | undefined; to_currency?: string | null | undefined; payout_destination?: { payer_name?: string | null | undefined; icon_url?: string | null | undefined; } | null | undefined; [key: string]: unknown; } | null;
|
|
2872
2904
|
/**
|
|
2873
2905
|
* Payment related to this ledger activity. Included when rich resource hydration is enabled and the movement is tied to a payment.
|
|
2874
2906
|
*/
|