diff --git a/.fern/metadata.json b/.fern/metadata.json index 04bccdec..0d3203a7 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -13,7 +13,7 @@ "standardwebhooks": ">= 1.0" } }, - "originGitCommit": "22b3e2486cd3162724999db3ec87536875f54cce", + "originGitCommit": "773623581af8feff5f48dd06991be2cacc1828f5", "originGitCommitIsDirty": false, "invokedBy": "ci", "requestedVersion": "1.0.14", diff --git a/.fern/replay.lock b/.fern/replay.lock index 278b4354..0311f3cc 100644 --- a/.fern/replay.lock +++ b/.fern/replay.lock @@ -30,5 +30,11 @@ generations: cli_version: unknown generator_versions: fernapi/fern-ruby-sdk: 1.23.2 -current_generation: 26d4c8693d8b5ed3b7712a8b2995c0d4652f96be + - commit_sha: 155b9df0c66a199e12853bacb530d79d7802dfd2 + tree_hash: 17589c267dbbff09a7be05bb3bb71af7ea221643 + timestamp: 2026-08-26T03:57:35.841Z + cli_version: unknown + generator_versions: + fernapi/fern-ruby-sdk: 1.23.2 +current_generation: 155b9df0c66a199e12853bacb530d79d7802dfd2 patches: [] diff --git a/lib/whop_sdk.rb b/lib/whop_sdk.rb index 137c0829..1bb8303f 100644 --- a/lib/whop_sdk.rb +++ b/lib/whop_sdk.rb @@ -162,6 +162,7 @@ require_relative "whop_sdk/ad_campaigns/types/delete_ad_campaigns_response" require_relative "whop_sdk/ad_campaigns/types/update_ad_campaigns_request_bid_type" require_relative "whop_sdk/ad_campaigns/types/update_ad_campaigns_request_budget_optimization" +require_relative "whop_sdk/ad_campaigns/types/update_ad_campaigns_request_budget_type" require_relative "whop_sdk/ad_campaigns/types/update_ad_campaigns_request_special_ad_categories_item" require_relative "whop_sdk/ad_campaigns/types/update_ad_campaigns_request_status" require_relative "whop_sdk/ad_campaigns/types/duplicate_ad_campaigns_response" @@ -420,6 +421,7 @@ require_relative "whop_sdk/types/bounty_list_item_business_goal_type" require_relative "whop_sdk/types/bounty_list_item_scheduled_frequency" require_relative "whop_sdk/types/bounty_list_item_status" +require_relative "whop_sdk/types/storefront_account" require_relative "whop_sdk/types/bounty_list_item" require_relative "whop_sdk/bounties/types/list_bounties_response" require_relative "whop_sdk/bounties/types/create_bounties_request_business_goal_type" @@ -623,8 +625,6 @@ require_relative "whop_sdk/checkout_configurations/types/retrieve_checkout_configurations_response_three_ds_level" require_relative "whop_sdk/checkout_configurations/types/retrieve_checkout_configurations_response" require_relative "whop_sdk/checkout_configurations/types/delete_checkout_configurations_response" -require_relative "whop_sdk/checkout_sessions/types/create_checkout_sessions_request_items_item" -require_relative "whop_sdk/checkout_sessions/types/create_checkout_sessions_request_mode" require_relative "whop_sdk/types/company_list_item_logo" require_relative "whop_sdk/types/company_list_item_owner_user" require_relative "whop_sdk/types/company_list_item" @@ -718,6 +718,9 @@ require_relative "whop_sdk/types/ledger_activity_line_type" require_relative "whop_sdk/types/ledger_activity_object" require_relative "whop_sdk/types/ledger_activity_payment_object" +require_relative "whop_sdk/types/ledger_activity_payment_plan" +require_relative "whop_sdk/types/ledger_activity_payment_product" +require_relative "whop_sdk/types/ledger_activity_payment_user" require_relative "whop_sdk/types/money" require_relative "whop_sdk/types/ledger_activity_payment" require_relative "whop_sdk/types/ledger_activity_resource_logo_url_object" @@ -893,6 +896,10 @@ require_relative "whop_sdk/types/fee_markup_types" require_relative "whop_sdk/types/fee_markup_list_item" require_relative "whop_sdk/fee_markups/types/list_fee_markups_response" +require_relative "whop_sdk/files/types/list_files_request_order" +require_relative "whop_sdk/files/types/list_files_request_direction" +require_relative "whop_sdk/files/types/list_files_response_page_info" +require_relative "whop_sdk/files/types/list_files_response" require_relative "whop_sdk/files/types/create_files_request_visibility" require_relative "whop_sdk/files/types/complete_files_request_multipart_parts_item" require_relative "whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item" @@ -1169,18 +1176,6 @@ require_relative "whop_sdk/types/payment_method_list_item_sepa_debit_payment_method_icons" require_relative "whop_sdk/types/payment_method_list_item_sepa_debit_payment_method_sepa_debit" require_relative "whop_sdk/types/payment_method_list_item_sepa_debit_payment_method" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_dark" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_light" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_dark" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_light" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account_logo" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_balances_item" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance" -require_relative "whop_sdk/types/payment_method_list_item_platform_balance_payment_method" require_relative "whop_sdk/types/payment_method_list_item" require_relative "whop_sdk/payment_methods/types/list_payment_methods_response" require_relative "whop_sdk/types/billing_reasons" @@ -1326,6 +1321,55 @@ require_relative "whop_sdk/payouts/types/retrieve_payouts_response_speed" require_relative "whop_sdk/payouts/types/retrieve_payouts_response_status" require_relative "whop_sdk/payouts/types/retrieve_payouts_response" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_failure" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_fee_paid_by" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_object" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method_delivery_type" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_payout_method" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_source" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_speed" +require_relative "whop_sdk/payouts/types/cancel_payouts_response_status" +require_relative "whop_sdk/payouts/types/cancel_payouts_response" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_api_version" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_failure" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_fee_paid_by" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_object" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method_delivery_type" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_source" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_speed" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data_status" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_data" +require_relative "whop_sdk/payouts/types/post_payout_created_payload_type" +require_relative "whop_sdk/payouts/types/post_payout_created_payload" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_api_version" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_failure" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_fee_paid_by" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_object" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method_delivery_type" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_source" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_speed" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data_status" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_data" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload_type" +require_relative "whop_sdk/payouts/types/post_payout_reversed_payload" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_api_version" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_failure" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_fee_paid_by" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_object" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method_delivery_type" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_source" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_speed" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data_status" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_data" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload_type" +require_relative "whop_sdk/payouts/types/post_payout_updated_payload" require_relative "whop_sdk/payouts/types/post_payout_method_created_payload_api_version" require_relative "whop_sdk/payouts/types/post_payout_method_created_payload_data_bank_verification_state" require_relative "whop_sdk/payouts/types/post_payout_method_created_payload_data_estimated_arrival" @@ -1341,45 +1385,6 @@ require_relative "whop_sdk/payouts/types/post_payout_method_created_payload_data" require_relative "whop_sdk/payouts/types/post_payout_method_created_payload_type" require_relative "whop_sdk/payouts/types/post_payout_method_created_payload" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_api_version" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_failure" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_fee_paid_by" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_object" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method_delivery_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_source" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_speed" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data_status" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_data" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_created_payload" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_api_version" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_failure" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_fee_paid_by" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_object" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method_delivery_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_source" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_speed" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_status" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_data" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_reversed_payload" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_api_version" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_failure" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_fee_paid_by" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_object" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method_delivery_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_source" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_speed" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data_status" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_data" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload_type" -require_relative "whop_sdk/payouts/types/post_withdrawal_updated_payload" require_relative "whop_sdk/people/types/list_people_request_attribution_model" require_relative "whop_sdk/people/types/list_people_request_order" require_relative "whop_sdk/people/types/list_people_request_direction" @@ -1948,12 +1953,6 @@ require_relative "whop_sdk/webhooks/types/deliveries_webhook_response_data_item" require_relative "whop_sdk/webhooks/types/deliveries_webhook_response_page_info" require_relative "whop_sdk/webhooks/types/deliveries_webhook_response" -require_relative "whop_sdk/types/withdrawal_fee_types" -require_relative "whop_sdk/types/withdrawal_speeds" -require_relative "whop_sdk/types/withdrawal_status" -require_relative "whop_sdk/types/withdrawal_list_item" -require_relative "whop_sdk/withdrawals/types/list_withdrawals_response" -require_relative "whop_sdk/withdrawals/types/generate_pdf_withdrawals_response" require_relative "whop_sdk/accounts/preferences/types/retrieve_preferences_response_ads_agreement_status" require_relative "whop_sdk/accounts/preferences/types/retrieve_preferences_response_ads_agreement" require_relative "whop_sdk/accounts/preferences/types/retrieve_preferences_response_ads_payment_methods_backup_type" @@ -2256,7 +2255,6 @@ require_relative "whop_sdk/types/capture_spec_video_stabilization_mode" require_relative "whop_sdk/types/capture_spec_video" require_relative "whop_sdk/types/capture_spec" -require_relative "whop_sdk/types/storefront_account" require_relative "whop_sdk/types/bounty" require_relative "whop_sdk/types/bounty_types" require_relative "whop_sdk/types/business_goal_types" @@ -2281,72 +2279,6 @@ require_relative "whop_sdk/types/checkout_modes" require_relative "whop_sdk/types/checkout_configuration_list_item" require_relative "whop_sdk/types/checkout_fonts" -require_relative "whop_sdk/types/checkout_session_buyer_identity" -require_relative "whop_sdk/types/checkout_session_buyer_identity_method" -require_relative "whop_sdk/types/checkout_session_cta_label" -require_relative "whop_sdk/types/checkout_session_mode" -require_relative "whop_sdk/types/checkout_session_status" -require_relative "whop_sdk/types/checkout_session_tax_behavior" -require_relative "whop_sdk/types/checkout_session_three_ds_level" -require_relative "whop_sdk/types/checkout_session_authenticate_action" -require_relative "whop_sdk/types/checkout_session_await_claim_action_state" -require_relative "whop_sdk/types/checkout_session_await_claim_action" -require_relative "whop_sdk/types/checkout_session_branding_border_style" -require_relative "whop_sdk/types/checkout_session_branding_font_family" -require_relative "whop_sdk/types/checkout_session_branding" -require_relative "whop_sdk/types/checkout_session_breakdown_currency" -require_relative "whop_sdk/types/checkout_session_breakdown_adjustment_applied" -require_relative "whop_sdk/types/checkout_session_breakdown_adjustment_kind" -require_relative "whop_sdk/types/checkout_session_breakdown_adjustment_status" -require_relative "whop_sdk/types/checkout_session_breakdown_adjustment" -require_relative "whop_sdk/types/checkout_session_breakdown_display_headline_kind" -require_relative "whop_sdk/types/checkout_session_breakdown_display_row_kind" -require_relative "whop_sdk/types/checkout_session_breakdown_display_row_status" -require_relative "whop_sdk/types/checkout_session_breakdown_display_row_detail_applied" -require_relative "whop_sdk/types/checkout_session_breakdown_display_row_detail" -require_relative "whop_sdk/types/checkout_session_breakdown_display_row" -require_relative "whop_sdk/types/checkout_session_breakdown_display_headline" -require_relative "whop_sdk/types/checkout_session_breakdown_display_sections" -require_relative "whop_sdk/types/checkout_session_breakdown_display" -require_relative "whop_sdk/types/checkout_session_breakdown_line_kind" -require_relative "whop_sdk/types/checkout_session_breakdown_line" -require_relative "whop_sdk/types/checkout_session_breakdown_upcoming_installments" -require_relative "whop_sdk/types/checkout_session_breakdown_upcoming_one_time" -require_relative "whop_sdk/types/checkout_session_breakdown_upcoming_recurring" -require_relative "whop_sdk/types/checkout_session_breakdown_upcoming" -require_relative "whop_sdk/types/checkout_session_breakdown" -require_relative "whop_sdk/types/checkout_session_complete_action_kind" -require_relative "whop_sdk/types/checkout_session_complete_action" -require_relative "whop_sdk/types/checkout_session_confirm_error_code" -require_relative "whop_sdk/types/checkout_session_confirm_error" -require_relative "whop_sdk/types/checkout_session_custom_field_field_type" -require_relative "whop_sdk/types/checkout_session_custom_field" -require_relative "whop_sdk/types/checkout_session_custom_field_response" -require_relative "whop_sdk/types/checkout_session_entry_status" -require_relative "whop_sdk/types/checkout_session_entry" -require_relative "whop_sdk/types/checkout_session_item" -require_relative "whop_sdk/types/checkout_session_redirect_action" -require_relative "whop_sdk/types/checkout_session_upgrade_authentication_action_sign_in_intent" -require_relative "whop_sdk/types/checkout_session_upgrade_authentication_action" -require_relative "whop_sdk/types/checkout_session_verify_phone_action" -require_relative "whop_sdk/types/checkout_session_wait_for_payment_action" -require_relative "whop_sdk/types/checkout_session_next_action" -require_relative "whop_sdk/types/checkout_session_payment_status" -require_relative "whop_sdk/types/checkout_session_payment" -require_relative "whop_sdk/types/checkout_session_promo_currency" -require_relative "whop_sdk/types/checkout_session_promo_duration" -require_relative "whop_sdk/types/checkout_session_promo_promo_type" -require_relative "whop_sdk/types/checkout_session_promo" -require_relative "whop_sdk/types/checkout_session_quote" -require_relative "whop_sdk/types/checkout_session_requirement_type" -require_relative "whop_sdk/types/checkout_session_requirement" -require_relative "whop_sdk/types/checkout_session_seller_terms" -require_relative "whop_sdk/types/checkout_session_seller" -require_relative "whop_sdk/types/checkout_session_shipping_address" -require_relative "whop_sdk/types/checkout_session_tax_id_type" -require_relative "whop_sdk/types/checkout_session_tax_id" -require_relative "whop_sdk/types/checkout_session_transfer" -require_relative "whop_sdk/types/checkout_session" require_relative "whop_sdk/types/checkout_shapes" require_relative "whop_sdk/types/company_featured_affiliate_product" require_relative "whop_sdk/types/company_logo" @@ -2513,18 +2445,6 @@ require_relative "whop_sdk/types/payment_method_sepa_debit_payment_method_icons" require_relative "whop_sdk/types/payment_method_sepa_debit_payment_method_sepa_debit" require_relative "whop_sdk/types/payment_method_sepa_debit_payment_method" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_dark" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_light" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_card" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_dark" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_light" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons_square" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_icons" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account_logo" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_balances_item" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance" -require_relative "whop_sdk/types/payment_method_platform_balance_payment_method" require_relative "whop_sdk/types/payment_method" require_relative "whop_sdk/types/payment_next_action_await_confirmation_render_item" require_relative "whop_sdk/types/payment_next_action_await_confirmation_data" @@ -2538,7 +2458,6 @@ require_relative "whop_sdk/types/payment_processing_details" require_relative "whop_sdk/types/payment_status_status" require_relative "whop_sdk/types/payment_status" -require_relative "whop_sdk/types/payout_error_codes" require_relative "whop_sdk/types/payout_method_company" require_relative "whop_sdk/types/payout_method_destination" require_relative "whop_sdk/types/payout_method" @@ -2590,9 +2509,6 @@ require_relative "whop_sdk/types/webhook_testable_events_item" require_relative "whop_sdk/types/webhook" require_relative "whop_sdk/types/webhook_event" -require_relative "whop_sdk/types/withdrawal_ledger_account" -require_relative "whop_sdk/types/withdrawal_payout_token" -require_relative "whop_sdk/types/withdrawal" require_relative "whop_sdk/types/workforce_bounty" require_relative "whop_sdk/types/workforce_bounty_list_item" require_relative "whop_sdk/client" @@ -2713,8 +2629,6 @@ require_relative "whop_sdk/checkout_configurations/types/create_checkout_configurations_request" require_relative "whop_sdk/checkout_configurations/types/retrieve_checkout_configurations_request" require_relative "whop_sdk/checkout_configurations/types/delete_checkout_configurations_request" -require_relative "whop_sdk/checkout_sessions/client" -require_relative "whop_sdk/checkout_sessions/types/create_checkout_sessions_request" require_relative "whop_sdk/companies/client" require_relative "whop_sdk/companies/types/list_companies_request" require_relative "whop_sdk/companies/types/create_companies_request" @@ -2805,6 +2719,7 @@ require_relative "whop_sdk/fee_markups/types/create_fee_markups_request" require_relative "whop_sdk/fee_markups/types/delete_fee_markups_request" require_relative "whop_sdk/files/client" +require_relative "whop_sdk/files/types/list_files_request" require_relative "whop_sdk/files/types/create_files_request" require_relative "whop_sdk/files/types/retrieve_files_request" require_relative "whop_sdk/files/types/complete_files_request" @@ -2902,6 +2817,7 @@ require_relative "whop_sdk/payouts/client" require_relative "whop_sdk/payouts/types/list_payouts_request" require_relative "whop_sdk/payouts/types/retrieve_payouts_request" +require_relative "whop_sdk/payouts/types/cancel_payouts_request" require_relative "whop_sdk/people/client" require_relative "whop_sdk/people/types/list_people_request" require_relative "whop_sdk/people/types/retrieve_people_request" @@ -3025,11 +2941,6 @@ require_relative "whop_sdk/webhooks/types/replay_webhooks_request" require_relative "whop_sdk/webhooks/types/test_webhooks_request" require_relative "whop_sdk/webhooks/types/deliveries_webhook_request" -require_relative "whop_sdk/withdrawals/client" -require_relative "whop_sdk/withdrawals/types/list_withdrawals_request" -require_relative "whop_sdk/withdrawals/types/create_withdrawals_request" -require_relative "whop_sdk/withdrawals/types/retrieve_withdrawals_request" -require_relative "whop_sdk/withdrawals/types/generate_pdf_withdrawals_request" require_relative "whop_sdk/accounts/preferences/client" require_relative "whop_sdk/accounts/preferences/types/retrieve_preferences_request" require_relative "whop_sdk/accounts/preferences/types/update_preferences_request" diff --git a/lib/whop_sdk/ad_campaigns/client.rb b/lib/whop_sdk/ad_campaigns/client.rb index 6bd987ef..931372dc 100644 --- a/lib/whop_sdk/ad_campaigns/client.rb +++ b/lib/whop_sdk/ad_campaigns/client.rb @@ -214,8 +214,8 @@ def delete(request_options: {}, **params) end # Updates an ad campaign's editable fields (title, budget, schedule, bid strategy, special ad categories, and, - # before launch, budget optimization), and launches a draft campaign by setting status to active. Objective, - # budget type and desired cost per result are fixed at creation and cannot be changed. + # before launch, budget type and budget optimization), and launches a draft campaign by setting status to active. + # Objective and desired cost per result are fixed at creation and cannot be changed. # # @param request_options [Hash] # @param params [Whop_sdk::AdCampaigns::Types::UpdateAdCampaignsRequest] diff --git a/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb b/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb index ddd84794..c1f0612e 100644 --- a/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb +++ b/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb @@ -12,6 +12,8 @@ class UpdateAdCampaignsRequest < Internal::Types::Model field :budget_optimization, -> { Whop_sdk::AdCampaigns::Types::UpdateAdCampaignsRequestBudgetOptimization }, optional: true, nullable: false + field :budget_type, -> { Whop_sdk::AdCampaigns::Types::UpdateAdCampaignsRequestBudgetType }, optional: true, nullable: false + field :ends_at, -> { String }, optional: true, nullable: false field :special_ad_categories, -> { Internal::Types::Array[Whop_sdk::AdCampaigns::Types::UpdateAdCampaignsRequestSpecialAdCategoriesItem] }, optional: true, nullable: false diff --git a/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request_budget_type.rb b/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request_budget_type.rb new file mode 100644 index 00000000..3e638fd3 --- /dev/null +++ b/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request_budget_type.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module AdCampaigns + module Types + module UpdateAdCampaignsRequestBudgetType + extend Whop_sdk::Internal::Types::Enum + + DAILY = "daily" + LIFETIME = "lifetime" + end + end + end +end diff --git a/lib/whop_sdk/ads/types/create_ads_request.rb b/lib/whop_sdk/ads/types/create_ads_request.rb index 5ef52131..45129c60 100644 --- a/lib/whop_sdk/ads/types/create_ads_request.rb +++ b/lib/whop_sdk/ads/types/create_ads_request.rb @@ -14,6 +14,8 @@ class CreateAdsRequest < Internal::Types::Model field :descriptions, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :existing_post_id, -> { String }, optional: true, nullable: false + field :headlines, -> { Internal::Types::Array[String] }, optional: true, nullable: false field :lead_form, -> { Whop_sdk::Ads::Types::CreateAdsRequestLeadForm }, optional: true, nullable: false @@ -24,8 +26,6 @@ class CreateAdsRequest < Internal::Types::Model field :multi_advertiser_ads, -> { Internal::Types::Boolean }, optional: true, nullable: false - field :post_id, -> { String }, optional: true, nullable: false - field :post_source, -> { Whop_sdk::Ads::Types::CreateAdsRequestPostSource }, optional: true, nullable: false field :primary_texts, -> { Internal::Types::Array[String] }, optional: true, nullable: false diff --git a/lib/whop_sdk/ads/types/update_ads_request.rb b/lib/whop_sdk/ads/types/update_ads_request.rb index 14cfebd0..42f58f4c 100644 --- a/lib/whop_sdk/ads/types/update_ads_request.rb +++ b/lib/whop_sdk/ads/types/update_ads_request.rb @@ -12,6 +12,8 @@ class UpdateAdsRequest < Internal::Types::Model field :descriptions, -> { Internal::Types::Array[String] }, optional: true, nullable: false + field :existing_post_id, -> { String }, optional: true, nullable: false + field :headlines, -> { Internal::Types::Array[String] }, optional: true, nullable: false field :lead_form, -> { Whop_sdk::Ads::Types::UpdateAdsRequestLeadForm }, optional: true, nullable: false @@ -22,8 +24,6 @@ class UpdateAdsRequest < Internal::Types::Model field :multi_advertiser_ads, -> { Internal::Types::Boolean }, optional: true, nullable: false - field :post_id, -> { String }, optional: true, nullable: false - field :post_source, -> { Whop_sdk::Ads::Types::UpdateAdsRequestPostSource }, optional: true, nullable: false field :primary_texts, -> { Internal::Types::Array[String] }, optional: true, nullable: false diff --git a/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb b/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb index 9a354755..d85b2ded 100644 --- a/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +++ b/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb @@ -32,6 +32,8 @@ module CreateAPIKeysRequestAPIVersionDate TWO_THOUSAND_TWENTY_SIX0814 = "2026-08-14" TWO_THOUSAND_TWENTY_SIX0821 = "2026-08-21" TWO_THOUSAND_TWENTY_SIX08211 = "2026-08-21-1" + TWO_THOUSAND_TWENTY_SIX0825 = "2026-08-25" + TWO_THOUSAND_TWENTY_SIX08251 = "2026-08-25-1" end end end diff --git a/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb b/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb index aba20195..99955189 100644 --- a/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +++ b/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb @@ -32,6 +32,8 @@ module UpdateAPIKeysRequestAPIVersionDate TWO_THOUSAND_TWENTY_SIX0814 = "2026-08-14" TWO_THOUSAND_TWENTY_SIX0821 = "2026-08-21" TWO_THOUSAND_TWENTY_SIX08211 = "2026-08-21-1" + TWO_THOUSAND_TWENTY_SIX0825 = "2026-08-25" + TWO_THOUSAND_TWENTY_SIX08251 = "2026-08-25-1" end end end diff --git a/lib/whop_sdk/checkout_sessions/client.rb b/lib/whop_sdk/checkout_sessions/client.rb deleted file mode 100644 index 9d907a24..00000000 --- a/lib/whop_sdk/checkout_sessions/client.rb +++ /dev/null @@ -1,52 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module CheckoutSessions - class Client - # @param client [Whop_sdk::Internal::Http::RawClient] - # - # @return [void] - def initialize(client:) - @client = client - end - - # Opens a checkout session. No credentials required. Pass exactly one of `items`, `checkout_configuration`, or - # `link`. The response includes `client_secret` once; later calls authenticate with it. - # - # @param request_options [Hash] - # @param params [Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequest] - # @option request_options [String] :base_url - # @option request_options [Hash{String => Object}] :additional_headers - # @option request_options [Hash{String => Object}] :additional_query_parameters - # @option request_options [Hash{String => Object}] :additional_body_parameters - # @option request_options [Integer] :timeout_in_seconds - # - # @example - # client.checkout_sessions.create - # - # @return [Whop_sdk::Types::CheckoutSession] - def create(request_options: {}, **params) - params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) - request = Whop_sdk::Internal::JSON::Request.new( - base_url: request_options[:base_url], - method: "POST", - path: "checkout_sessions", - body: Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequest.new(params).to_h, - request_options: request_options - ) - begin - response = @client.send(request) - rescue Net::HTTPRequestTimeout - raise Whop_sdk::Errors::TimeoutError - end - code = response.code.to_i - if code.between?(200, 299) - Whop_sdk::Types::CheckoutSession.load(response.body) - else - error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) - raise error_class.new(response.body, code: code) - end - end - end - end -end diff --git a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request.rb b/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request.rb deleted file mode 100644 index 327ab0d1..00000000 --- a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request.rb +++ /dev/null @@ -1,37 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module CheckoutSessions - module Types - class CreateCheckoutSessionsRequest < Internal::Types::Model - field :affiliate_code, -> { String }, optional: true, nullable: false - - field :attribution, -> { Internal::Types::Hash[String, Object] }, optional: true, nullable: false - - field :checkout_configuration, -> { String }, optional: true, nullable: false - - field :items, -> { Internal::Types::Array[Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestItemsItem] }, optional: true, nullable: false - - field :link, -> { String }, optional: true, nullable: false - - field :metadata, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false - - field :mode, -> { Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestMode }, optional: true, nullable: false - - field :origin, -> { String }, optional: true, nullable: false - - field :page_route, -> { String }, optional: true, nullable: false - - field :password, -> { String }, optional: true, nullable: false - - field :promo_code, -> { String }, optional: true, nullable: false - - field :return_url, -> { String }, optional: true, nullable: false - - field :top_up_membership, -> { String }, optional: true, nullable: false - - field :tracking_link_ids_by_account, -> { Internal::Types::Hash[String, String] }, optional: true, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_items_item.rb b/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_items_item.rb deleted file mode 100644 index 64a58b76..00000000 --- a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_items_item.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module CheckoutSessions - module Types - class CreateCheckoutSessionsRequestItemsItem < Internal::Types::Model - field :plan, -> { String }, optional: false, nullable: false - - field :quantity, -> { Integer }, optional: true, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_mode.rb b/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_mode.rb deleted file mode 100644 index dffe1125..00000000 --- a/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_mode.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module CheckoutSessions - module Types - module CreateCheckoutSessionsRequestMode - extend Whop_sdk::Internal::Types::Enum - - PAYMENT = "payment" - SETUP = "setup" - end - end - end -end diff --git a/lib/whop_sdk/client.rb b/lib/whop_sdk/client.rb index 797c9d55..ff5c51c2 100644 --- a/lib/whop_sdk/client.rb +++ b/lib/whop_sdk/client.rb @@ -9,7 +9,7 @@ class Client # @param max_retries [Integer] # # @return [void] - def initialize(token:, base_url: nil, api_version_date: "2026-08-21-1", idempotency_key: nil, max_retries: 2) + def initialize(token:, base_url: nil, api_version_date: "2026-08-25-1", idempotency_key: nil, max_retries: 2) headers = { "X-Fern-Language" => "Ruby", Authorization: "Bearer #{token}", @@ -124,11 +124,6 @@ def checkout_configurations @checkout_configurations ||= Whop_sdk::CheckoutConfigurations::Client.new(client: @raw_client) end - # @return [Whop_sdk::CheckoutSessions::Client] - def checkout_sessions - @checkout_sessions ||= Whop_sdk::CheckoutSessions::Client.new(client: @raw_client) - end - # @return [Whop_sdk::Companies::Client] def companies @companies ||= Whop_sdk::Companies::Client.new(client: @raw_client) @@ -428,10 +423,5 @@ def verifications def webhooks @webhooks ||= Whop_sdk::Webhooks::Client.new(client: @raw_client) end - - # @return [Whop_sdk::Withdrawals::Client] - def withdrawals - @withdrawals ||= Whop_sdk::Withdrawals::Client.new(client: @raw_client) - end end end diff --git a/lib/whop_sdk/files/client.rb b/lib/whop_sdk/files/client.rb index 9801d261..0b0f0c60 100644 --- a/lib/whop_sdk/files/client.rb +++ b/lib/whop_sdk/files/client.rb @@ -10,6 +10,70 @@ def initialize(client:) @client = client end + # Returns the files with the given IDs, newest first — fetch a batch in one request instead of retrieving each + # file individually. Only files you created are returned; IDs that do not exist, or that another credential + # created, are omitted. A request for up to 100 IDs answers in a single page by default; a larger batch pages at + # up to 100 files per response — follow `page_info` with the same `file_ids` to walk the rest. + # + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String, nil] :file_ids + # @option params [Whop_sdk::Files::Types::ListFilesRequestOrder, nil] :order + # @option params [Whop_sdk::Files::Types::ListFilesRequestDirection, nil] :direction + # @option params [Integer, nil] :first + # @option params [String, nil] :after + # @option params [Integer, nil] :last + # @option params [String, nil] :before + # + # @example + # client.files.list(file_ids: ["file_xxxxxxxxxxxxx"]) + # + # @return [Whop_sdk::Files::Types::ListFilesResponse] + def list(request_options: {}, **params) + params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) + query_params = {} + query_params["file_ids"] = params[:file_ids] if params.key?(:file_ids) + query_params["order"] = params[:order] if params.key?(:order) + query_params["direction"] = params[:direction] if params.key?(:direction) + query_params["first"] = params[:first] if params.key?(:first) + query_params["after"] = params[:after] if params.key?(:after) + query_params["last"] = params[:last] if params.key?(:last) + query_params["before"] = params[:before] if params.key?(:before) + + Whop_sdk::Internal::CursorItemIterator.new( + cursor_field: :end_cursor, + item_field: :data, + initial_cursor: query_params["after"] + ) do |next_cursor| + query_params["after"] = next_cursor + request = Whop_sdk::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "GET", + path: "files", + query: query_params, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise Whop_sdk::Errors::TimeoutError + end + code = response.code.to_i + if code.between?(200, 299) + parsed_response = Whop_sdk::Files::Types::ListFilesResponse.load(response.body) + [parsed_response, response] + else + error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + end + # Creates a file and returns a presigned destination to upload its bytes to. PUT the bytes to `upload_url` # (single-part), or to each of `multipart_upload_urls` and then call Complete File Multipart Upload. Once the # bytes land the file becomes `ready`, and its ID can be attached wherever a file is accepted — account legal diff --git a/lib/whop_sdk/files/types/list_files_request.rb b/lib/whop_sdk/files/types/list_files_request.rb new file mode 100644 index 00000000..a4afb604 --- /dev/null +++ b/lib/whop_sdk/files/types/list_files_request.rb @@ -0,0 +1,23 @@ +# frozen_string_literal: true + +module Whop_sdk + module Files + module Types + class ListFilesRequest < Internal::Types::Model + field :file_ids, -> { String }, optional: true, nullable: false + + field :order, -> { Whop_sdk::Files::Types::ListFilesRequestOrder }, optional: true, nullable: false + + field :direction, -> { Whop_sdk::Files::Types::ListFilesRequestDirection }, optional: true, nullable: false + + field :first, -> { Integer }, optional: true, nullable: false + + field :after, -> { String }, optional: true, nullable: false + + field :last, -> { Integer }, optional: true, nullable: false + + field :before, -> { String }, optional: true, nullable: false + end + end + end +end diff --git a/lib/whop_sdk/files/types/list_files_request_direction.rb b/lib/whop_sdk/files/types/list_files_request_direction.rb new file mode 100644 index 00000000..3331583a --- /dev/null +++ b/lib/whop_sdk/files/types/list_files_request_direction.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module Files + module Types + module ListFilesRequestDirection + extend Whop_sdk::Internal::Types::Enum + + ASC = "asc" + DESC = "desc" + end + end + end +end diff --git a/lib/whop_sdk/files/types/list_files_request_order.rb b/lib/whop_sdk/files/types/list_files_request_order.rb new file mode 100644 index 00000000..2977b373 --- /dev/null +++ b/lib/whop_sdk/files/types/list_files_request_order.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Files + module Types + module ListFilesRequestOrder + extend Whop_sdk::Internal::Types::Enum + + CREATED_AT = "created_at" + end + end + end +end diff --git a/lib/whop_sdk/files/types/list_files_response.rb b/lib/whop_sdk/files/types/list_files_response.rb new file mode 100644 index 00000000..51085ac3 --- /dev/null +++ b/lib/whop_sdk/files/types/list_files_response.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Files + module Types + class ListFilesResponse < Internal::Types::Model + field :data, -> { Internal::Types::Array[Whop_sdk::Types::File] }, optional: false, nullable: false + + field :page_info, -> { Whop_sdk::Files::Types::ListFilesResponsePageInfo }, optional: false, nullable: false + end + end + end +end diff --git a/lib/whop_sdk/files/types/list_files_response_page_info.rb b/lib/whop_sdk/files/types/list_files_response_page_info.rb new file mode 100644 index 00000000..4fa668ee --- /dev/null +++ b/lib/whop_sdk/files/types/list_files_response_page_info.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Whop_sdk + module Files + module Types + class ListFilesResponsePageInfo < Internal::Types::Model + field :end_cursor, -> { String }, optional: false, nullable: true + + field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false + + field :start_cursor, -> { String }, optional: false, nullable: true + end + end + end +end diff --git a/lib/whop_sdk/payouts/client.rb b/lib/whop_sdk/payouts/client.rb index 5ea3409f..bb6de2cf 100644 --- a/lib/whop_sdk/payouts/client.rb +++ b/lib/whop_sdk/payouts/client.rb @@ -165,6 +165,54 @@ def retrieve(request_options: {}, **params) end end + # Cancels a payout that is still in review and returns the funds, fees included, to the balance. A payout can be + # canceled while its status is `in_review`. A `requested` payout is still being prepared (its funds may be + # converting) and answers 409 until it reaches review; from `processing` on, the money is on its way and the + # answer is 409 with error type `not_cancelable`. Canceling a payout that is already canceled succeeds and returns + # it unchanged. + # + # @param request_options [Hash] + # @param params [Hash] + # @option request_options [String] :base_url + # @option request_options [Hash{String => Object}] :additional_headers + # @option request_options [Hash{String => Object}] :additional_query_parameters + # @option request_options [Hash{String => Object}] :additional_body_parameters + # @option request_options [Integer] :timeout_in_seconds + # @option params [String] :id + # @option params [String, nil] :account_id + # @option params [String, nil] :user_id + # + # @example + # client.payouts.cancel(id: "id") + # + # @return [Whop_sdk::Payouts::Types::CancelPayoutsResponse] + def cancel(request_options: {}, **params) + params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) + query_params = {} + query_params["account_id"] = params[:account_id] if params.key?(:account_id) + query_params["user_id"] = params[:user_id] if params.key?(:user_id) + + request = Whop_sdk::Internal::JSON::Request.new( + base_url: request_options[:base_url], + method: "POST", + path: "payouts/#{URI.encode_uri_component(params[:id].to_s)}/cancel", + query: query_params, + request_options: request_options + ) + begin + response = @client.send(request) + rescue Net::HTTPRequestTimeout + raise Whop_sdk::Errors::TimeoutError + end + code = response.code.to_i + if code.between?(200, 299) + Whop_sdk::Payouts::Types::CancelPayoutsResponse.load(response.body) + else + error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) + raise error_class.new(response.body, code: code) + end + end + # @return [Whop_sdk::Methods::Client] def methods @methods ||= Whop_sdk::Payouts::Methods::Client.new(client: @client) diff --git a/lib/whop_sdk/payouts/methods/client.rb b/lib/whop_sdk/payouts/methods/client.rb index 100e0842..289e2c73 100644 --- a/lib/whop_sdk/payouts/methods/client.rb +++ b/lib/whop_sdk/payouts/methods/client.rb @@ -11,7 +11,7 @@ def initialize(client:) @client = client end - # Lists the bank accounts, wallets, and crypto addresses an account or user can withdraw to, newest first. + # Lists the bank accounts, wallets, and crypto addresses an account or user can pay out to, newest first. # # @param request_options [Hash] # @param params [Hash] @@ -78,8 +78,8 @@ def list(request_options: {}, **params) end end - # Saves a new place an account or user can withdraw to. Sensitive details are vaulted in transit and never - # stored raw. + # Saves a new place an account or user can pay out to. Sensitive details are vaulted in transit and never stored + # raw. # # @param request_options [Hash] # @param params [Whop_sdk::Payouts::Methods::Types::CreateMethodsRequest] diff --git a/lib/whop_sdk/payouts/methods/types/list_methods_response_data_item_quote.rb b/lib/whop_sdk/payouts/methods/types/list_methods_response_data_item_quote.rb index a2b3b05f..988c65bf 100644 --- a/lib/whop_sdk/payouts/methods/types/list_methods_response_data_item_quote.rb +++ b/lib/whop_sdk/payouts/methods/types/list_methods_response_data_item_quote.rb @@ -4,7 +4,7 @@ module Whop_sdk module Payouts module Methods module Types - # Fee and delivery estimate for withdrawing the requested amount through this method. Null unless an amount was + # Fee and delivery estimate for paying out the requested amount through this method. Null unless an amount was # provided, or when the estimate is unavailable. class ListMethodsResponseDataItemQuote < Internal::Types::Model field :amount, -> { Integer }, optional: false, nullable: false diff --git a/lib/whop_sdk/payouts/types/cancel_payouts_request.rb b/lib/whop_sdk/payouts/types/cancel_payouts_request.rb new file mode 100644 index 00000000..2a087c41 --- /dev/null +++ b/lib/whop_sdk/payouts/types/cancel_payouts_request.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + class CancelPayoutsRequest < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + + field :account_id, -> { String }, optional: true, nullable: false + + field :user_id, -> { String }, optional: true, nullable: false + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/cancel_payouts_response.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response.rb new file mode 100644 index 00000000..55a7164f --- /dev/null +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response.rb @@ -0,0 +1,57 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + class CancelPayoutsResponse < Internal::Types::Model + field :amount, -> { String }, optional: false, nullable: false + + field :created_at, -> { String }, optional: false, nullable: false + + field :currency, -> { String }, optional: false, nullable: false + + field :destination_amount, -> { String }, optional: false, nullable: true + + field :destination_currency, -> { String }, optional: false, nullable: true + + field :estimated_arrival, -> { String }, optional: false, nullable: true + + field :exchange_rate, -> { Integer }, optional: false, nullable: true + + field :failure, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseFailure }, optional: false, nullable: true + + field :fee_amount, -> { String }, optional: false, nullable: false + + field :fee_paid_by, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseFeePaidBy }, optional: false, nullable: false + + field :id, -> { String }, optional: false, nullable: false + + field :markup_fee, -> { String }, optional: false, nullable: false + + field :metadata, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: false + + field :net_amount, -> { String }, optional: false, nullable: false + + field :notes, -> { String }, optional: false, nullable: true + + field :object, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseObject }, optional: false, nullable: false + + field :payer_name, -> { String }, optional: false, nullable: true + + field :payout_method, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponsePayoutMethod }, optional: false, nullable: true + + field :payout_request_id, -> { String }, optional: false, nullable: true + + field :source, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseSource }, optional: false, nullable: true + + field :speed, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseSpeed }, optional: false, nullable: false + + field :status, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponseStatus }, optional: false, nullable: false + + field :status_detail, -> { String }, optional: false, nullable: false + + field :trace_code, -> { String }, optional: false, nullable: true + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_failure.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_failure.rb similarity index 86% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_failure.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_failure.rb index 8bf10f5e..52aa0d33 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_failure.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_failure.rb @@ -5,7 +5,7 @@ module Payouts module Types # Why the payout ended without paying, or why it reversed after settlement. Present on failed, canceled, denied, # and reversed payouts; `null` otherwise. - class PostWithdrawalCreatedPayloadDataFailure < Internal::Types::Model + class CancelPayoutsResponseFailure < Internal::Types::Model field :code, -> { String }, optional: false, nullable: true field :funds_returned_at, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_fee_paid_by.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_fee_paid_by.rb similarity index 79% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_fee_paid_by.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_fee_paid_by.rb index 5e7fa843..10474287 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_fee_paid_by.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_fee_paid_by.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataFeePaidBy + module CancelPayoutsResponseFeePaidBy extend Whop_sdk::Internal::Types::Enum SELF = "self" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_object.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_object.rb similarity index 77% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_object.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_object.rb index f7d29a10..3d67acdb 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_object.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_object.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataObject + module CancelPayoutsResponseObject extend Whop_sdk::Internal::Types::Enum PAYOUT = "payout" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method.rb index a4754fe0..b20494b4 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method.rb @@ -4,10 +4,10 @@ module Whop_sdk module Payouts module Types # The saved payout method used. Requires payout:destination:read; null without it. - class PostWithdrawalUpdatedPayloadDataPayoutMethod < Internal::Types::Model + class CancelPayoutsResponsePayoutMethod < Internal::Types::Model field :nickname, -> { String }, optional: false, nullable: true - field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true + field :supported_payout_method, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponsePayoutMethodSupportedPayoutMethod }, optional: false, nullable: true end end end diff --git a/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method.rb new file mode 100644 index 00000000..d0bed9a5 --- /dev/null +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method.rb @@ -0,0 +1,16 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + # Supported payout method display details. + class CancelPayoutsResponsePayoutMethodSupportedPayoutMethod < Internal::Types::Model + field :delivery_type, -> { Whop_sdk::Payouts::Types::CancelPayoutsResponsePayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false + + field :icon_url, -> { String }, optional: false, nullable: true + + field :payer_name, -> { String }, optional: false, nullable: true + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method_delivery_type.rb similarity index 83% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method_delivery_type.rb index 40b34a92..2d94231c 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_payout_method_supported_payout_method_delivery_type.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType + module CancelPayoutsResponsePayoutMethodSupportedPayoutMethodDeliveryType extend Whop_sdk::Internal::Types::Enum CASH_PICKUP = "cash_pickup" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_source.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_source.rb similarity index 82% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_source.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_source.rb index 10a00797..6aefbf80 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_source.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_source.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataSource + module CancelPayoutsResponseSource extend Whop_sdk::Internal::Types::Enum API = "api" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_speed.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_speed.rb similarity index 80% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_speed.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_speed.rb index 89193fc5..7cc3222e 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_speed.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_speed.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataSpeed + module CancelPayoutsResponseSpeed extend Whop_sdk::Internal::Types::Enum STANDARD = "standard" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_status.rb b/lib/whop_sdk/payouts/types/cancel_payouts_response_status.rb similarity index 88% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_status.rb rename to lib/whop_sdk/payouts/types/cancel_payouts_response_status.rb index 70f5bcbd..e6f25ff5 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_status.rb +++ b/lib/whop_sdk/payouts/types/cancel_payouts_response_status.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataStatus + module CancelPayoutsResponseStatus extend Whop_sdk::Internal::Types::Enum REQUESTED = "requested" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload.rb similarity index 54% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload.rb index d45a7182..fd497520 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload.rb @@ -3,14 +3,14 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalCreatedPayload < Internal::Types::Model + class PostPayoutCreatedPayload < Internal::Types::Model field :account_id, -> { String }, optional: true, nullable: false - field :api_version, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadAPIVersion }, optional: false, nullable: false + field :api_version, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadAPIVersion }, optional: false, nullable: false field :api_version_date, -> { String }, optional: false, nullable: true - field :data, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadData }, optional: false, nullable: false + field :data, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadData }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -18,7 +18,7 @@ class PostWithdrawalCreatedPayload < Internal::Types::Model field :timestamp, -> { String }, optional: false, nullable: false - field :type, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadType }, optional: false, nullable: false + field :type, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadType }, optional: false, nullable: false end end end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_api_version.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_api_version.rb similarity index 77% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_api_version.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_api_version.rb index 04b5601a..a3e1095e 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_api_version.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_api_version.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadAPIVersion + module PostPayoutCreatedPayloadAPIVersion extend Whop_sdk::Internal::Types::Enum V1 = "v1" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb similarity index 61% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb index 03cfcf5b..f901c3db 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalUpdatedPayloadData < Internal::Types::Model + class PostPayoutCreatedPayloadData < Internal::Types::Model field :amount, -> { String }, optional: false, nullable: false field :created_at, -> { String }, optional: false, nullable: false @@ -18,11 +18,11 @@ class PostWithdrawalUpdatedPayloadData < Internal::Types::Model field :exchange_rate, -> { Integer }, optional: false, nullable: true - field :failure, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataFailure }, optional: false, nullable: true + field :failure, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataFailure }, optional: false, nullable: true field :fee_amount, -> { String }, optional: false, nullable: false - field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataFeePaidBy }, optional: false, nullable: false + field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataFeePaidBy }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -34,19 +34,19 @@ class PostWithdrawalUpdatedPayloadData < Internal::Types::Model field :notes, -> { String }, optional: false, nullable: true - field :object, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataObject }, optional: false, nullable: false + field :object, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataObject }, optional: false, nullable: false field :payer_name, -> { String }, optional: false, nullable: true - field :payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataPayoutMethod }, optional: false, nullable: true + field :payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataPayoutMethod }, optional: false, nullable: true field :payout_request_id, -> { String }, optional: false, nullable: true - field :source, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataSource }, optional: false, nullable: true + field :source, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataSource }, optional: false, nullable: true - field :speed, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataSpeed }, optional: false, nullable: false + field :speed, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataSpeed }, optional: false, nullable: false - field :status, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataStatus }, optional: false, nullable: false + field :status, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataStatus }, optional: false, nullable: false field :status_detail, -> { String }, optional: false, nullable: false diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_failure.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_failure.rb similarity index 86% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_failure.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_failure.rb index ceed226d..4affa151 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_failure.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_failure.rb @@ -5,7 +5,7 @@ module Payouts module Types # Why the payout ended without paying, or why it reversed after settlement. Present on failed, canceled, denied, # and reversed payouts; `null` otherwise. - class PostWithdrawalUpdatedPayloadDataFailure < Internal::Types::Model + class PostPayoutCreatedPayloadDataFailure < Internal::Types::Model field :code, -> { String }, optional: false, nullable: true field :funds_returned_at, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_fee_paid_by.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_fee_paid_by.rb similarity index 79% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_fee_paid_by.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_fee_paid_by.rb index 8a69988a..de92f898 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_fee_paid_by.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_fee_paid_by.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataFeePaidBy + module PostPayoutCreatedPayloadDataFeePaidBy extend Whop_sdk::Internal::Types::Enum SELF = "self" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_object.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_object.rb similarity index 77% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_object.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_object.rb index 3be9a537..bb898d1a 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_object.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_object.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataObject + module PostPayoutCreatedPayloadDataObject extend Whop_sdk::Internal::Types::Enum PAYOUT = "payout" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method.rb index e187c6c1..ce8e08ab 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method.rb @@ -4,10 +4,10 @@ module Whop_sdk module Payouts module Types # The saved payout method used. Requires payout:destination:read; null without it. - class PostWithdrawalCreatedPayloadDataPayoutMethod < Internal::Types::Model + class PostPayoutCreatedPayloadDataPayoutMethod < Internal::Types::Model field :nickname, -> { String }, optional: false, nullable: true - field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true + field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true end end end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method.rb index 58b45f8f..09a39c66 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method.rb @@ -4,8 +4,8 @@ module Whop_sdk module Payouts module Types # Supported payout method display details. - class PostWithdrawalCreatedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model - field :delivery_type, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false + class PostPayoutCreatedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model + field :delivery_type, -> { Whop_sdk::Payouts::Types::PostPayoutCreatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false field :icon_url, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method_delivery_type.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method_delivery_type.rb similarity index 83% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method_delivery_type.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method_delivery_type.rb index 0bb11159..b40fa56a 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method_delivery_type.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_payout_method_supported_payout_method_delivery_type.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType + module PostPayoutCreatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType extend Whop_sdk::Internal::Types::Enum CASH_PICKUP = "cash_pickup" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_source.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_source.rb similarity index 82% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_source.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_source.rb index d6047971..37fd84b7 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_source.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_source.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataSource + module PostPayoutCreatedPayloadDataSource extend Whop_sdk::Internal::Types::Enum API = "api" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_speed.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_speed.rb similarity index 80% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_speed.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_speed.rb index d860fda9..d758f91e 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_speed.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_speed.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadDataSpeed + module PostPayoutCreatedPayloadDataSpeed extend Whop_sdk::Internal::Types::Enum STANDARD = "standard" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_status.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_status.rb similarity index 88% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_status.rb rename to lib/whop_sdk/payouts/types/post_payout_created_payload_data_status.rb index f4ee8996..2983b7ee 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_status.rb +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_data_status.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadDataStatus + module PostPayoutCreatedPayloadDataStatus extend Whop_sdk::Internal::Types::Enum REQUESTED = "requested" diff --git a/lib/whop_sdk/payouts/types/post_payout_created_payload_type.rb b/lib/whop_sdk/payouts/types/post_payout_created_payload_type.rb new file mode 100644 index 00000000..553a04f9 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_created_payload_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutCreatedPayloadType + extend Whop_sdk::Internal::Types::Enum + + PAYOUT_CREATED = "payout.created" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_method_created_payload_data_quote.rb b/lib/whop_sdk/payouts/types/post_payout_method_created_payload_data_quote.rb index cff45b97..4640fe0f 100644 --- a/lib/whop_sdk/payouts/types/post_payout_method_created_payload_data_quote.rb +++ b/lib/whop_sdk/payouts/types/post_payout_method_created_payload_data_quote.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - # Fee and delivery estimate for withdrawing the requested amount through this method. Null unless an amount was + # Fee and delivery estimate for paying out the requested amount through this method. Null unless an amount was # provided, or when the estimate is unavailable. class PostPayoutMethodCreatedPayloadDataQuote < Internal::Types::Model field :amount, -> { Integer }, optional: false, nullable: false diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload.rb similarity index 54% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload.rb index 93bbf789..b53a9d05 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload.rb @@ -3,14 +3,14 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalUpdatedPayload < Internal::Types::Model + class PostPayoutReversedPayload < Internal::Types::Model field :account_id, -> { String }, optional: true, nullable: false - field :api_version, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadAPIVersion }, optional: false, nullable: false + field :api_version, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadAPIVersion }, optional: false, nullable: false field :api_version_date, -> { String }, optional: false, nullable: true - field :data, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadData }, optional: false, nullable: false + field :data, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadData }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -18,7 +18,7 @@ class PostWithdrawalUpdatedPayload < Internal::Types::Model field :timestamp, -> { String }, optional: false, nullable: false - field :type, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadType }, optional: false, nullable: false + field :type, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadType }, optional: false, nullable: false end end end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_api_version.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_api_version.rb similarity index 77% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_api_version.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_api_version.rb index b6a29e98..82030a96 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_api_version.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_api_version.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalUpdatedPayloadAPIVersion + module PostPayoutReversedPayloadAPIVersion extend Whop_sdk::Internal::Types::Enum V1 = "v1" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb similarity index 61% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb index 90d624d4..547b23f4 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalCreatedPayloadData < Internal::Types::Model + class PostPayoutReversedPayloadData < Internal::Types::Model field :amount, -> { String }, optional: false, nullable: false field :created_at, -> { String }, optional: false, nullable: false @@ -18,11 +18,11 @@ class PostWithdrawalCreatedPayloadData < Internal::Types::Model field :exchange_rate, -> { Integer }, optional: false, nullable: true - field :failure, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataFailure }, optional: false, nullable: true + field :failure, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataFailure }, optional: false, nullable: true field :fee_amount, -> { String }, optional: false, nullable: false - field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataFeePaidBy }, optional: false, nullable: false + field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataFeePaidBy }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -34,19 +34,19 @@ class PostWithdrawalCreatedPayloadData < Internal::Types::Model field :notes, -> { String }, optional: false, nullable: true - field :object, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataObject }, optional: false, nullable: false + field :object, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataObject }, optional: false, nullable: false field :payer_name, -> { String }, optional: false, nullable: true - field :payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataPayoutMethod }, optional: false, nullable: true + field :payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataPayoutMethod }, optional: false, nullable: true field :payout_request_id, -> { String }, optional: false, nullable: true - field :source, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataSource }, optional: false, nullable: true + field :source, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataSource }, optional: false, nullable: true - field :speed, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataSpeed }, optional: false, nullable: false + field :speed, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataSpeed }, optional: false, nullable: false - field :status, -> { Whop_sdk::Payouts::Types::PostWithdrawalCreatedPayloadDataStatus }, optional: false, nullable: false + field :status, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataStatus }, optional: false, nullable: false field :status_detail, -> { String }, optional: false, nullable: false diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_failure.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_failure.rb similarity index 86% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_failure.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_failure.rb index 71554fcd..eed98b8e 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_failure.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_failure.rb @@ -5,7 +5,7 @@ module Payouts module Types # Why the payout ended without paying, or why it reversed after settlement. Present on failed, canceled, denied, # and reversed payouts; `null` otherwise. - class PostWithdrawalReversedPayloadDataFailure < Internal::Types::Model + class PostPayoutReversedPayloadDataFailure < Internal::Types::Model field :code, -> { String }, optional: false, nullable: true field :funds_returned_at, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_fee_paid_by.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_fee_paid_by.rb similarity index 78% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_fee_paid_by.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_fee_paid_by.rb index f111c81f..f1ee45f2 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_fee_paid_by.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_fee_paid_by.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataFeePaidBy + module PostPayoutReversedPayloadDataFeePaidBy extend Whop_sdk::Internal::Types::Enum SELF = "self" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_object.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_object.rb similarity index 77% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_object.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_object.rb index b32342af..994cf816 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_object.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_object.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataObject + module PostPayoutReversedPayloadDataObject extend Whop_sdk::Internal::Types::Enum PAYOUT = "payout" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method.rb index 94980da2..d32e5922 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method.rb @@ -4,10 +4,10 @@ module Whop_sdk module Payouts module Types # The saved payout method used. Requires payout:destination:read; null without it. - class PostWithdrawalReversedPayloadDataPayoutMethod < Internal::Types::Model + class PostPayoutReversedPayloadDataPayoutMethod < Internal::Types::Model field :nickname, -> { String }, optional: false, nullable: true - field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true + field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true end end end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method.rb index e7d45fa3..438fd904 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method.rb @@ -4,8 +4,8 @@ module Whop_sdk module Payouts module Types # Supported payout method display details. - class PostWithdrawalUpdatedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model - field :delivery_type, -> { Whop_sdk::Payouts::Types::PostWithdrawalUpdatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false + class PostPayoutReversedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model + field :delivery_type, -> { Whop_sdk::Payouts::Types::PostPayoutReversedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false field :icon_url, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb similarity index 82% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb index adec4b29..d0632880 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType + module PostPayoutReversedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType extend Whop_sdk::Internal::Types::Enum CASH_PICKUP = "cash_pickup" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_source.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_source.rb similarity index 81% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_source.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_source.rb index cb38924f..31be135f 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_source.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_source.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataSource + module PostPayoutReversedPayloadDataSource extend Whop_sdk::Internal::Types::Enum API = "api" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_speed.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_speed.rb similarity index 80% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_speed.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_speed.rb index 89557245..9ecc420f 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_speed.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_speed.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataSpeed + module PostPayoutReversedPayloadDataSpeed extend Whop_sdk::Internal::Types::Enum STANDARD = "standard" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_status.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_status.rb similarity index 88% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_status.rb rename to lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_status.rb index 649952d2..a174241d 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_status.rb +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data_status.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadDataStatus + module PostPayoutReversedPayloadDataStatus extend Whop_sdk::Internal::Types::Enum REQUESTED = "requested" diff --git a/lib/whop_sdk/payouts/types/post_payout_reversed_payload_type.rb b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_type.rb new file mode 100644 index 00000000..113d3124 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_reversed_payload_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutReversedPayloadType + extend Whop_sdk::Internal::Types::Enum + + PAYOUT_REVERSED = "payout.reversed" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload.rb similarity index 54% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload.rb rename to lib/whop_sdk/payouts/types/post_payout_updated_payload.rb index b94481ab..6654e488 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload.rb +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload.rb @@ -3,14 +3,14 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalReversedPayload < Internal::Types::Model + class PostPayoutUpdatedPayload < Internal::Types::Model field :account_id, -> { String }, optional: true, nullable: false - field :api_version, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadAPIVersion }, optional: false, nullable: false + field :api_version, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadAPIVersion }, optional: false, nullable: false field :api_version_date, -> { String }, optional: false, nullable: true - field :data, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadData }, optional: false, nullable: false + field :data, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadData }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -18,7 +18,7 @@ class PostWithdrawalReversedPayload < Internal::Types::Model field :timestamp, -> { String }, optional: false, nullable: false - field :type, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadType }, optional: false, nullable: false + field :type, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadType }, optional: false, nullable: false end end end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_api_version.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_api_version.rb similarity index 76% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_api_version.rb rename to lib/whop_sdk/payouts/types/post_payout_updated_payload_api_version.rb index efaad09c..721cb2d3 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_api_version.rb +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_api_version.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalReversedPayloadAPIVersion + module PostPayoutUpdatedPayloadAPIVersion extend Whop_sdk::Internal::Types::Enum V1 = "v1" diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb similarity index 61% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data.rb rename to lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb index f41c26a9..b39faee3 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data.rb +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb @@ -3,7 +3,7 @@ module Whop_sdk module Payouts module Types - class PostWithdrawalReversedPayloadData < Internal::Types::Model + class PostPayoutUpdatedPayloadData < Internal::Types::Model field :amount, -> { String }, optional: false, nullable: false field :created_at, -> { String }, optional: false, nullable: false @@ -18,11 +18,11 @@ class PostWithdrawalReversedPayloadData < Internal::Types::Model field :exchange_rate, -> { Integer }, optional: false, nullable: true - field :failure, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataFailure }, optional: false, nullable: true + field :failure, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataFailure }, optional: false, nullable: true field :fee_amount, -> { String }, optional: false, nullable: false - field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataFeePaidBy }, optional: false, nullable: false + field :fee_paid_by, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataFeePaidBy }, optional: false, nullable: false field :id, -> { String }, optional: false, nullable: false @@ -34,19 +34,19 @@ class PostWithdrawalReversedPayloadData < Internal::Types::Model field :notes, -> { String }, optional: false, nullable: true - field :object, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataObject }, optional: false, nullable: false + field :object, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataObject }, optional: false, nullable: false field :payer_name, -> { String }, optional: false, nullable: true - field :payout_method, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataPayoutMethod }, optional: false, nullable: true + field :payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataPayoutMethod }, optional: false, nullable: true field :payout_request_id, -> { String }, optional: false, nullable: true - field :source, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataSource }, optional: false, nullable: true + field :source, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataSource }, optional: false, nullable: true - field :speed, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataSpeed }, optional: false, nullable: false + field :speed, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataSpeed }, optional: false, nullable: false - field :status, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataStatus }, optional: false, nullable: false + field :status, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataStatus }, optional: false, nullable: false field :status_detail, -> { String }, optional: false, nullable: false diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_failure.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_failure.rb new file mode 100644 index 00000000..70cc2780 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_failure.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + # Why the payout ended without paying, or why it reversed after settlement. Present on failed, canceled, denied, + # and reversed payouts; `null` otherwise. + class PostPayoutUpdatedPayloadDataFailure < Internal::Types::Model + field :code, -> { String }, optional: false, nullable: true + + field :funds_returned_at, -> { String }, optional: false, nullable: true + + field :message, -> { String }, optional: false, nullable: true + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_type.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_fee_paid_by.rb similarity index 60% rename from lib/whop_sdk/payouts/types/post_withdrawal_created_payload_type.rb rename to lib/whop_sdk/payouts/types/post_payout_updated_payload_data_fee_paid_by.rb index 50620eea..30933e1c 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_type.rb +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_fee_paid_by.rb @@ -3,10 +3,11 @@ module Whop_sdk module Payouts module Types - module PostWithdrawalCreatedPayloadType + module PostPayoutUpdatedPayloadDataFeePaidBy extend Whop_sdk::Internal::Types::Enum - WITHDRAWAL_CREATED = "withdrawal.created" + SELF = "self" + PLATFORM = "platform" end end end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_object.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_object.rb new file mode 100644 index 00000000..8c93f72d --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_object.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadDataObject + extend Whop_sdk::Internal::Types::Enum + + PAYOUT = "payout" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method.rb new file mode 100644 index 00000000..9d8bf8d2 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + # The saved payout method used. Requires payout:destination:read; null without it. + class PostPayoutUpdatedPayloadDataPayoutMethod < Internal::Types::Model + field :nickname, -> { String }, optional: false, nullable: true + + field :supported_payout_method, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataPayoutMethodSupportedPayoutMethod }, optional: false, nullable: true + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method.rb similarity index 63% rename from lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method.rb rename to lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method.rb index 0ce6215d..9d47b94c 100644 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method.rb +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method.rb @@ -4,8 +4,8 @@ module Whop_sdk module Payouts module Types # Supported payout method display details. - class PostWithdrawalReversedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model - field :delivery_type, -> { Whop_sdk::Payouts::Types::PostWithdrawalReversedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false + class PostPayoutUpdatedPayloadDataPayoutMethodSupportedPayoutMethod < Internal::Types::Model + field :delivery_type, -> { Whop_sdk::Payouts::Types::PostPayoutUpdatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType }, optional: false, nullable: false field :icon_url, -> { String }, optional: false, nullable: true diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb new file mode 100644 index 00000000..fdd3b2ad --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadDataPayoutMethodSupportedPayoutMethodDeliveryType + extend Whop_sdk::Internal::Types::Enum + + CASH_PICKUP = "cash_pickup" + BANK_DEPOSIT = "bank_deposit" + HOME_DELIVERY = "home_delivery" + MOBILE_WALLET = "mobile_wallet" + CARD = "card" + CHECK = "check" + BILL = "bill" + CRYPTOCURRENCY = "cryptocurrency" + UNKNOWN = "unknown" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_source.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_source.rb new file mode 100644 index 00000000..c3252b91 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_source.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadDataSource + extend Whop_sdk::Internal::Types::Enum + + API = "api" + DASHBOARD = "dashboard" + AUTOMATIC = "automatic" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_speed.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_speed.rb new file mode 100644 index 00000000..75a88eb5 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_speed.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadDataSpeed + extend Whop_sdk::Internal::Types::Enum + + STANDARD = "standard" + INSTANT = "instant" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_status.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_status.rb new file mode 100644 index 00000000..f43255f4 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_data_status.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadDataStatus + extend Whop_sdk::Internal::Types::Enum + + REQUESTED = "requested" + IN_REVIEW = "in_review" + PROCESSING = "processing" + COMPLETED = "completed" + REVERSED = "reversed" + CANCELED = "canceled" + FAILED = "failed" + DENIED = "denied" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_payout_updated_payload_type.rb b/lib/whop_sdk/payouts/types/post_payout_updated_payload_type.rb new file mode 100644 index 00000000..f6105944 --- /dev/null +++ b/lib/whop_sdk/payouts/types/post_payout_updated_payload_type.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module Whop_sdk + module Payouts + module Types + module PostPayoutUpdatedPayloadType + extend Whop_sdk::Internal::Types::Enum + + PAYOUT_UPDATED = "payout.updated" + end + end + end +end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_type.rb b/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_type.rb deleted file mode 100644 index 7349096c..00000000 --- a/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_type.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Payouts - module Types - module PostWithdrawalReversedPayloadType - extend Whop_sdk::Internal::Types::Enum - - WITHDRAWAL_REVERSED = "withdrawal.reversed" - end - end - end -end diff --git a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_type.rb b/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_type.rb deleted file mode 100644 index b9bc6c93..00000000 --- a/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_type.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Payouts - module Types - module PostWithdrawalUpdatedPayloadType - extend Whop_sdk::Internal::Types::Enum - - WITHDRAWAL_UPDATED = "withdrawal.updated" - end - end - end -end diff --git a/lib/whop_sdk/types/ad.rb b/lib/whop_sdk/types/ad.rb index 7fd02edf..58896ddf 100644 --- a/lib/whop_sdk/types/ad.rb +++ b/lib/whop_sdk/types/ad.rb @@ -63,6 +63,8 @@ class Ad < Internal::Types::Model field :descriptions, -> { Internal::Types::Array[String] }, optional: false, nullable: false + field :existing_post_id, -> { String }, optional: false, nullable: true + field :frequency, -> { Integer }, optional: false, nullable: true field :headlines, -> { Internal::Types::Array[String] }, optional: false, nullable: false diff --git a/lib/whop_sdk/types/api_key_api_version_date.rb b/lib/whop_sdk/types/api_key_api_version_date.rb index 9883daf0..7f70deef 100644 --- a/lib/whop_sdk/types/api_key_api_version_date.rb +++ b/lib/whop_sdk/types/api_key_api_version_date.rb @@ -31,6 +31,8 @@ module APIKeyAPIVersionDate TWO_THOUSAND_TWENTY_SIX0814 = "2026-08-14" TWO_THOUSAND_TWENTY_SIX0821 = "2026-08-21" TWO_THOUSAND_TWENTY_SIX08211 = "2026-08-21-1" + TWO_THOUSAND_TWENTY_SIX0825 = "2026-08-25" + TWO_THOUSAND_TWENTY_SIX08251 = "2026-08-25-1" end end end diff --git a/lib/whop_sdk/types/bounty_list_item.rb b/lib/whop_sdk/types/bounty_list_item.rb index eb4bd353..35456ff6 100644 --- a/lib/whop_sdk/types/bounty_list_item.rb +++ b/lib/whop_sdk/types/bounty_list_item.rb @@ -41,6 +41,8 @@ class BountyListItem < Internal::Types::Model field :gross_reward_amount, -> { Integer }, optional: false, nullable: false + field :hosting_account, -> { Whop_sdk::Types::StorefrontAccount }, optional: false, nullable: true + field :id, -> { String }, optional: false, nullable: false field :net_reward_amount, -> { Integer }, optional: false, nullable: false diff --git a/lib/whop_sdk/types/checkout_session.rb b/lib/whop_sdk/types/checkout_session.rb deleted file mode 100644 index 33694d3f..00000000 --- a/lib/whop_sdk/types/checkout_session.rb +++ /dev/null @@ -1,95 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSession < Internal::Types::Model - field :affiliate_code, -> { String }, optional: false, nullable: true - - field :available_currencies, -> { Internal::Types::Array[String] }, optional: false, nullable: false - - field :branding, -> { Whop_sdk::Types::CheckoutSessionBranding }, optional: false, nullable: true - - field :buyer_email, -> { String }, optional: false, nullable: true - - field :buyer_id, -> { String }, optional: false, nullable: true - - field :buyer_identity, -> { Whop_sdk::Types::CheckoutSessionBuyerIdentity }, optional: false, nullable: true - - field :buyer_identity_at, -> { String }, optional: false, nullable: true - - field :buyer_identity_method, -> { Whop_sdk::Types::CheckoutSessionBuyerIdentityMethod }, optional: false, nullable: true - - field :checkout_configuration, -> { String }, optional: false, nullable: true - - field :client_secret, -> { String }, optional: true, nullable: false - - field :collect_tax_id, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :created_at, -> { String }, optional: false, nullable: false - - field :cta_label, -> { Whop_sdk::Types::CheckoutSessionCtaLabel }, optional: false, nullable: false - - field :custom_field_responses, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionCustomFieldResponse] }, optional: false, nullable: false - - field :display_currency, -> { String }, optional: false, nullable: false - - field :entry, -> { Whop_sdk::Types::CheckoutSessionEntry }, optional: false, nullable: true - - field :expires_at, -> { String }, optional: false, nullable: false - - field :id, -> { String }, optional: false, nullable: false - - field :invoice_due_at, -> { String }, optional: false, nullable: true - - field :items, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionItem] }, optional: false, nullable: false - - field :last_confirm_error, -> { Whop_sdk::Types::CheckoutSessionConfirmError }, optional: false, nullable: true - - field :metadata, -> { Internal::Types::Hash[String, String] }, optional: false, nullable: true - - field :mode, -> { Whop_sdk::Types::CheckoutSessionMode }, optional: false, nullable: false - - field :next_action, -> { Whop_sdk::Types::CheckoutSessionNextAction }, optional: false, nullable: true - - field :object, -> { String }, optional: false, nullable: false - - field :payment, -> { Whop_sdk::Types::CheckoutSessionPayment }, optional: false, nullable: true - - field :payment_method_configuration, -> { Whop_sdk::Types::CheckoutSessionPaymentMethodConfiguration }, optional: false, nullable: true - - field :payment_method_required, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :phone_number, -> { String }, optional: false, nullable: true - - field :promo, -> { Whop_sdk::Types::CheckoutSessionPromo }, optional: false, nullable: true - - field :promo_code, -> { String }, optional: false, nullable: true - - field :quote, -> { Whop_sdk::Types::CheckoutSessionQuote }, optional: false, nullable: false - - field :redirect_url, -> { String }, optional: false, nullable: true - - field :requirements, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionRequirement] }, optional: false, nullable: false - - field :return_url, -> { String }, optional: false, nullable: true - - field :seller, -> { Whop_sdk::Types::CheckoutSessionSeller }, optional: false, nullable: false - - field :shipping_address, -> { Whop_sdk::Types::CheckoutSessionShippingAddress }, optional: false, nullable: true - - field :show_promo_code_input, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :status, -> { Whop_sdk::Types::CheckoutSessionStatus }, optional: false, nullable: false - - field :tax_behavior, -> { Whop_sdk::Types::CheckoutSessionTaxBehavior }, optional: false, nullable: true - - field :tax_id, -> { Whop_sdk::Types::CheckoutSessionTaxID }, optional: false, nullable: true - - field :three_ds_level, -> { Whop_sdk::Types::CheckoutSessionThreeDsLevel }, optional: false, nullable: true - - field :top_up_membership, -> { String }, optional: false, nullable: true - - field :transfer, -> { Whop_sdk::Types::CheckoutSessionTransfer }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_authenticate_action.rb b/lib/whop_sdk/types/checkout_session_authenticate_action.rb deleted file mode 100644 index 9bebfe52..00000000 --- a/lib/whop_sdk/types/checkout_session_authenticate_action.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionAuthenticateAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_await_claim_action.rb b/lib/whop_sdk/types/checkout_session_await_claim_action.rb deleted file mode 100644 index dedd135d..00000000 --- a/lib/whop_sdk/types/checkout_session_await_claim_action.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionAwaitClaimAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :state, -> { Whop_sdk::Types::CheckoutSessionAwaitClaimActionState }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_await_claim_action_state.rb b/lib/whop_sdk/types/checkout_session_await_claim_action_state.rb deleted file mode 100644 index 3c881d1c..00000000 --- a/lib/whop_sdk/types/checkout_session_await_claim_action_state.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionAwaitClaimActionState - extend Whop_sdk::Internal::Types::Enum - - CHECK_EMAIL = "check_email" - HANDED_OFF = "handed_off" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_branding.rb b/lib/whop_sdk/types/checkout_session_branding.rb deleted file mode 100644 index d48569f4..00000000 --- a/lib/whop_sdk/types/checkout_session_branding.rb +++ /dev/null @@ -1,29 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBranding < Internal::Types::Model - field :background_color, -> { String }, optional: false, nullable: true - - field :background_text_color, -> { String }, optional: false, nullable: true - - field :border_style, -> { Whop_sdk::Types::CheckoutSessionBrandingBorderStyle }, optional: false, nullable: true - - field :button_color, -> { String }, optional: false, nullable: true - - field :button_radius, -> { String }, optional: false, nullable: true - - field :button_text_color, -> { String }, optional: false, nullable: true - - field :container_radius, -> { String }, optional: false, nullable: true - - field :font_family, -> { Whop_sdk::Types::CheckoutSessionBrandingFontFamily }, optional: false, nullable: true - - field :font_url, -> { String }, optional: false, nullable: true - - field :input_radius, -> { String }, optional: false, nullable: true - - field :resolved_font_family, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_branding_border_style.rb b/lib/whop_sdk/types/checkout_session_branding_border_style.rb deleted file mode 100644 index 16500940..00000000 --- a/lib/whop_sdk/types/checkout_session_branding_border_style.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBrandingBorderStyle - extend Whop_sdk::Internal::Types::Enum - - ROUNDED = "rounded" - PILL = "pill" - RECTANGULAR = "rectangular" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_branding_font_family.rb b/lib/whop_sdk/types/checkout_session_branding_font_family.rb deleted file mode 100644 index 7a47bcc0..00000000 --- a/lib/whop_sdk/types/checkout_session_branding_font_family.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBrandingFontFamily - extend Whop_sdk::Internal::Types::Enum - - SYSTEM = "system" - ROBOTO = "roboto" - OPEN_SANS = "open_sans" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown.rb b/lib/whop_sdk/types/checkout_session_breakdown.rb deleted file mode 100644 index 5ca32d16..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdown < Internal::Types::Model - field :adjustments, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownAdjustment] }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::CheckoutSessionBreakdownCurrency }, optional: false, nullable: false - - field :display, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplay }, optional: false, nullable: false - - field :lines, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownLine] }, optional: false, nullable: false - - field :subtotal, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :total, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :upcoming, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownUpcoming] }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_adjustment.rb b/lib/whop_sdk/types/checkout_session_breakdown_adjustment.rb deleted file mode 100644 index a63b386a..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_adjustment.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownAdjustment < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: true - - field :applied, -> { Whop_sdk::Types::CheckoutSessionBreakdownAdjustmentApplied }, optional: false, nullable: false - - field :kind, -> { Whop_sdk::Types::CheckoutSessionBreakdownAdjustmentKind }, optional: false, nullable: false - - field :label, -> { String }, optional: false, nullable: false - - field :rate, -> { String }, optional: true, nullable: false - - field :status, -> { Whop_sdk::Types::CheckoutSessionBreakdownAdjustmentStatus }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_applied.rb b/lib/whop_sdk/types/checkout_session_breakdown_adjustment_applied.rb deleted file mode 100644 index 3dff2d15..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_applied.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownAdjustmentApplied - extend Whop_sdk::Internal::Types::Enum - - ADDED = "added" - INCLUDED = "included" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_kind.rb b/lib/whop_sdk/types/checkout_session_breakdown_adjustment_kind.rb deleted file mode 100644 index 3e330870..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_kind.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownAdjustmentKind - extend Whop_sdk::Internal::Types::Enum - - DISCOUNT = "discount" - BUYER_FEE = "buyer_fee" - TAX = "tax" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_status.rb b/lib/whop_sdk/types/checkout_session_breakdown_adjustment_status.rb deleted file mode 100644 index f252ebc8..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_adjustment_status.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownAdjustmentStatus - extend Whop_sdk::Internal::Types::Enum - - PENDING = "pending" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_currency.rb b/lib/whop_sdk/types/checkout_session_breakdown_currency.rb deleted file mode 100644 index dc8561f2..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_currency.rb +++ /dev/null @@ -1,100 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownCurrency - extend Whop_sdk::Internal::Types::Enum - - USD = "usd" - SGD = "sgd" - INR = "inr" - AUD = "aud" - BRL = "brl" - CAD = "cad" - DKK = "dkk" - EUR = "eur" - NOK = "nok" - GBP = "gbp" - SEK = "sek" - CHF = "chf" - HKD = "hkd" - HUF = "huf" - JPY = "jpy" - MXN = "mxn" - MYR = "myr" - PLN = "pln" - CZK = "czk" - NZD = "nzd" - AED = "aed" - ETH = "eth" - APE = "ape" - COP = "cop" - RON = "ron" - THB = "thb" - BGN = "bgn" - IDR = "idr" - DOP = "dop" - PHP = "php" - TRY = "try" - KRW = "krw" - TWD = "twd" - VND = "vnd" - PKR = "pkr" - CLP = "clp" - UYU = "uyu" - ARS = "ars" - ZAR = "zar" - DZD = "dzd" - TND = "tnd" - MAD = "mad" - KES = "kes" - KWD = "kwd" - JOD = "jod" - ALL = "all" - XCD = "xcd" - AMD = "amd" - BSD = "bsd" - BHD = "bhd" - BOB = "bob" - BAM = "bam" - KHR = "khr" - CRC = "crc" - XOF = "xof" - EGP = "egp" - ETB = "etb" - GMD = "gmd" - GHS = "ghs" - GTQ = "gtq" - GYD = "gyd" - ILS = "ils" - JMD = "jmd" - MOP = "mop" - MGA = "mga" - MUR = "mur" - MDL = "mdl" - MNT = "mnt" - NAD = "nad" - NGN = "ngn" - MKD = "mkd" - OMR = "omr" - PYG = "pyg" - PEN = "pen" - QAR = "qar" - RWF = "rwf" - SAR = "sar" - RSD = "rsd" - LKR = "lkr" - TZS = "tzs" - TTD = "ttd" - UZS = "uzs" - RUB = "rub" - BTC = "btc" - CNY = "cny" - USDT = "usdt" - KZT = "kzt" - AWG = "awg" - WHOP_USD = "whop_usd" - XAU = "xau" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display.rb b/lib/whop_sdk/types/checkout_session_breakdown_display.rb deleted file mode 100644 index abcf67d1..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownDisplay < Internal::Types::Model - field :headline, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayHeadline }, optional: false, nullable: false - - field :sections, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplaySections }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_headline.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_headline.rb deleted file mode 100644 index 8f718b56..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_headline.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownDisplayHeadline < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: true - - field :context, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownDisplayRow] }, optional: false, nullable: false - - field :free_until, -> { String }, optional: false, nullable: true - - field :kind, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayHeadlineKind }, optional: false, nullable: false - - field :original_amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: true - - field :text, -> { String }, optional: false, nullable: false - - field :trial_days, -> { Integer }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_headline_kind.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_headline_kind.rb deleted file mode 100644 index 0376d03a..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_headline_kind.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownDisplayHeadlineKind - extend Whop_sdk::Internal::Types::Enum - - AMOUNT = "amount" - TRIAL = "trial" - FREE = "free" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_row.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_row.rb deleted file mode 100644 index 3a3aa318..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_row.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownDisplayRow < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: true, nullable: false - - field :detail, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayRowDetail }, optional: true, nullable: false - - field :kind, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayRowKind }, optional: false, nullable: false - - field :label, -> { String }, optional: true, nullable: false - - field :status, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayRowStatus }, optional: true, nullable: false - - field :text, -> { String }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail.rb deleted file mode 100644 index 3c73fe5c..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownDisplayRowDetail < Internal::Types::Model - field :access_days, -> { Integer }, optional: true, nullable: false - - field :access_until, -> { String }, optional: true, nullable: false - - field :applied, -> { Whop_sdk::Types::CheckoutSessionBreakdownDisplayRowDetailApplied }, optional: true, nullable: false - - field :charge_at, -> { String }, optional: true, nullable: false - - field :code, -> { String }, optional: true, nullable: false - - field :initial_fee, -> { Whop_sdk::Types::Money }, optional: true, nullable: false - - field :interval_days, -> { Integer }, optional: true, nullable: false - - field :invoice, -> { Internal::Types::Boolean }, optional: true, nullable: false - - field :paid_trial, -> { Internal::Types::Boolean }, optional: true, nullable: false - - field :rate, -> { String }, optional: true, nullable: false - - field :remaining_payments, -> { Integer }, optional: true, nullable: false - - field :total_payments, -> { Integer }, optional: true, nullable: false - - field :trial_days, -> { Integer }, optional: true, nullable: false - - field :without_tax, -> { Internal::Types::Boolean }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail_applied.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail_applied.rb deleted file mode 100644 index 263dc9e3..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail_applied.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownDisplayRowDetailApplied - extend Whop_sdk::Internal::Types::Enum - - ADDED = "added" - INCLUDED = "included" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_row_kind.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_row_kind.rb deleted file mode 100644 index c1d4d1a9..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_row_kind.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownDisplayRowKind - extend Whop_sdk::Internal::Types::Enum - - THEN_STARTING = "then_starting" - THEN_AFTER_TRIAL = "then_after_trial" - DUE_TODAY = "due_today" - PERIOD = "period" - ONE_TIME_PAYMENT = "one_time_payment" - ACCESS_WINDOW = "access_window" - ACCESS_UNTIL = "access_until" - TRIAL_WINDOW = "trial_window" - WAITLIST_NOTICE = "waitlist_notice" - WAITLIST_TRIAL_NOTICE = "waitlist_trial_notice" - FREE_FOREVER = "free_forever" - TAX_INCLUDED = "tax_included" - PROMO_FREE_PERIOD = "promo_free_period" - INITIAL_FEE = "initial_fee" - RENEWAL_FEE = "renewal_fee" - TAX_TODAY = "tax_today" - TOTAL_DUE_TODAY = "total_due_today" - TOTAL_IF_ACCEPTED = "total_if_accepted" - TOTAL_DUE_STARTING = "total_due_starting" - TOTAL_AFTER_TRIAL = "total_after_trial" - POST_PROMO = "post_promo" - ITEM_SUBTOTAL = "item_subtotal" - SERVICE_FEE = "service_fee" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_row_status.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_row_status.rb deleted file mode 100644 index 98c85438..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_row_status.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownDisplayRowStatus - extend Whop_sdk::Internal::Types::Enum - - PENDING = "pending" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_display_sections.rb b/lib/whop_sdk/types/checkout_session_breakdown_display_sections.rb deleted file mode 100644 index b2d1f540..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_display_sections.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownDisplaySections < Internal::Types::Model - field :charges, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownDisplayRow] }, optional: false, nullable: false - - field :fee_breakdown, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownDisplayRow] }, optional: false, nullable: false - - field :line_items, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownDisplayRow] }, optional: false, nullable: false - - field :totals, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionBreakdownDisplayRow] }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_line.rb b/lib/whop_sdk/types/checkout_session_breakdown_line.rb deleted file mode 100644 index 936d5e87..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_line.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownLine < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :description, -> { String }, optional: false, nullable: false - - field :kind, -> { Whop_sdk::Types::CheckoutSessionBreakdownLineKind }, optional: false, nullable: false - - field :quantity, -> { Integer }, optional: false, nullable: false - - field :unit_amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_line_kind.rb b/lib/whop_sdk/types/checkout_session_breakdown_line_kind.rb deleted file mode 100644 index 007ebbde..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_line_kind.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBreakdownLineKind - extend Whop_sdk::Internal::Types::Enum - - PLAN = "plan" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_upcoming.rb b/lib/whop_sdk/types/checkout_session_breakdown_upcoming.rb deleted file mode 100644 index f16181b8..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_upcoming.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # One amount owed after today. `type` picks the shape — `one_time` is a single later charge, `recurring` an - # open-ended subscription, `installments` a fixed count of payments — and each variant carries only its own fields, - # so switching on `type` gives you exactly that entry's payload. - class CheckoutSessionBreakdownUpcoming < Internal::Types::Model - extend Whop_sdk::Internal::Types::Union - - discriminant :type - - member -> { Whop_sdk::Types::CheckoutSessionBreakdownUpcomingInstallments }, key: "INSTALLMENTS" - - member -> { Whop_sdk::Types::CheckoutSessionBreakdownUpcomingOneTime }, key: "ONE_TIME" - - member -> { Whop_sdk::Types::CheckoutSessionBreakdownUpcomingRecurring }, key: "RECURRING" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_installments.rb b/lib/whop_sdk/types/checkout_session_breakdown_upcoming_installments.rb deleted file mode 100644 index 12f3af04..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_installments.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownUpcomingInstallments < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :charge_at, -> { String }, optional: false, nullable: false - - field :description, -> { String }, optional: false, nullable: false - - field :interval_days, -> { Integer }, optional: false, nullable: false - - field :post_promo_amount, -> { Whop_sdk::Types::Money }, optional: true, nullable: false - - field :remaining, -> { Integer }, optional: false, nullable: false - - field :trial_days, -> { Integer }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_one_time.rb b/lib/whop_sdk/types/checkout_session_breakdown_upcoming_one_time.rb deleted file mode 100644 index e04b79d4..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_one_time.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownUpcomingOneTime < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :charge_at, -> { String }, optional: false, nullable: false - - field :description, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_recurring.rb b/lib/whop_sdk/types/checkout_session_breakdown_upcoming_recurring.rb deleted file mode 100644 index a1ba6f03..00000000 --- a/lib/whop_sdk/types/checkout_session_breakdown_upcoming_recurring.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionBreakdownUpcomingRecurring < Internal::Types::Model - field :amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false - - field :charge_at, -> { String }, optional: false, nullable: false - - field :description, -> { String }, optional: false, nullable: false - - field :interval_days, -> { Integer }, optional: false, nullable: false - - field :post_promo_amount, -> { Whop_sdk::Types::Money }, optional: true, nullable: false - - field :trial_days, -> { Integer }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_buyer_identity.rb b/lib/whop_sdk/types/checkout_session_buyer_identity.rb deleted file mode 100644 index d1885ab5..00000000 --- a/lib/whop_sdk/types/checkout_session_buyer_identity.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBuyerIdentity - extend Whop_sdk::Internal::Types::Enum - - ATTRIBUTED = "attributed" - AUTHENTICATED = "authenticated" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_buyer_identity_method.rb b/lib/whop_sdk/types/checkout_session_buyer_identity_method.rb deleted file mode 100644 index a4779bb6..00000000 --- a/lib/whop_sdk/types/checkout_session_buyer_identity_method.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionBuyerIdentityMethod - extend Whop_sdk::Internal::Types::Enum - - CONFIRMATION_TOKEN_EMAIL = "confirmation_token_email" - BUYER_EMAIL = "buyer_email" - SAVED_PAYMENT_METHOD = "saved_payment_method" - SESSION_INTENT = "session_intent" - POST_PURCHASE_CLAIM = "post_purchase_claim" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_complete_action.rb b/lib/whop_sdk/types/checkout_session_complete_action.rb deleted file mode 100644 index 4bed5886..00000000 --- a/lib/whop_sdk/types/checkout_session_complete_action.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionCompleteAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :client_secret, -> { String }, optional: false, nullable: false - - field :kind, -> { Whop_sdk::Types::CheckoutSessionCompleteActionKind }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_complete_action_kind.rb b/lib/whop_sdk/types/checkout_session_complete_action_kind.rb deleted file mode 100644 index 2d5251d8..00000000 --- a/lib/whop_sdk/types/checkout_session_complete_action_kind.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionCompleteActionKind - extend Whop_sdk::Internal::Types::Enum - - PAYMENT = "payment" - SETUP = "setup" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_confirm_error.rb b/lib/whop_sdk/types/checkout_session_confirm_error.rb deleted file mode 100644 index ed8b0a90..00000000 --- a/lib/whop_sdk/types/checkout_session_confirm_error.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionConfirmError < Internal::Types::Model - field :code, -> { Whop_sdk::Types::CheckoutSessionConfirmErrorCode }, optional: false, nullable: false - - field :message, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_confirm_error_code.rb b/lib/whop_sdk/types/checkout_session_confirm_error_code.rb deleted file mode 100644 index 6deb391c..00000000 --- a/lib/whop_sdk/types/checkout_session_confirm_error_code.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionConfirmErrorCode - extend Whop_sdk::Internal::Types::Enum - - SESSION_EXPIRED = "session_expired" - SESSION_COMPLETED = "session_completed" - ATTESTATION_REQUIRED = "attestation_required" - QUOTE_EXPIRED = "quote_expired" - QUOTE_CHANGED = "quote_changed" - RATE_EXPIRED = "rate_expired" - TOKEN_INVALID = "token_invalid" - CONFIRM_IN_PROGRESS = "confirm_in_progress" - ENGINE_UNAVAILABLE = "engine_unavailable" - SELLER_UNAVAILABLE = "seller_unavailable" - PROMO_INVALID = "promo_invalid" - PAYMENT_METHOD_UNSUPPORTED = "payment_method_unsupported" - PAYMENT_METHOD_UNAVAILABLE = "payment_method_unavailable" - SHIPPING_ADDRESS_REQUIRED = "shipping_address_required" - CUSTOM_FIELD_INVALID = "custom_field_invalid" - PAYMENT_FAILED = "payment_failed" - WAITLIST_UNAVAILABLE = "waitlist_unavailable" - PURCHASES_DISABLED = "purchases_disabled" - PLAN_ARCHIVED = "plan_archived" - PRODUCT_ARCHIVED = "product_archived" - OUT_OF_STOCK = "out_of_stock" - CUSTOM_PASSWORD = "custom_password" - BLOCKED_COUNTRY = "blocked_country" - USER_SUSPENDED = "user_suspended" - USER_BANNED_FROM_WHOP = "user_banned_from_whop" - EMAIL_REQUIRED = "email_required" - FREE_PLAN_ALREADY_OWNED = "free_plan_already_owned" - WAITLIST_ENTRY_PENDING = "waitlist_entry_pending" - WAITLIST_ALREADY_MEMBER = "waitlist_already_member" - BUYER_INELIGIBLE = "buyer_ineligible" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_cta_label.rb b/lib/whop_sdk/types/checkout_session_cta_label.rb deleted file mode 100644 index 2c73f1db..00000000 --- a/lib/whop_sdk/types/checkout_session_cta_label.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionCtaLabel - extend Whop_sdk::Internal::Types::Enum - - ACCEPT_TRANSFER = "accept_transfer" - PAY = "pay" - CONTINUE = "continue" - START_TRIAL = "start_trial" - SUBSCRIBE = "subscribe" - JOIN_WAITLIST = "join_waitlist" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_custom_field.rb b/lib/whop_sdk/types/checkout_session_custom_field.rb deleted file mode 100644 index 4e6fc899..00000000 --- a/lib/whop_sdk/types/checkout_session_custom_field.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionCustomField < Internal::Types::Model - field :description, -> { String }, optional: false, nullable: true - - field :field_type, -> { Whop_sdk::Types::CheckoutSessionCustomFieldFieldType }, optional: false, nullable: false - - field :id, -> { String }, optional: false, nullable: false - - field :name, -> { String }, optional: false, nullable: false - - field :placeholder, -> { String }, optional: false, nullable: true - - field :required, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_custom_field_field_type.rb b/lib/whop_sdk/types/checkout_session_custom_field_field_type.rb deleted file mode 100644 index 81c5ad99..00000000 --- a/lib/whop_sdk/types/checkout_session_custom_field_field_type.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionCustomFieldFieldType - extend Whop_sdk::Internal::Types::Enum - - TEXT = "text" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_custom_field_response.rb b/lib/whop_sdk/types/checkout_session_custom_field_response.rb deleted file mode 100644 index d3e78ba9..00000000 --- a/lib/whop_sdk/types/checkout_session_custom_field_response.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionCustomFieldResponse < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :value, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_entry.rb b/lib/whop_sdk/types/checkout_session_entry.rb deleted file mode 100644 index 8895f824..00000000 --- a/lib/whop_sdk/types/checkout_session_entry.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionEntry < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :status, -> { Whop_sdk::Types::CheckoutSessionEntryStatus }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_entry_status.rb b/lib/whop_sdk/types/checkout_session_entry_status.rb deleted file mode 100644 index f3efa79c..00000000 --- a/lib/whop_sdk/types/checkout_session_entry_status.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionEntryStatus - extend Whop_sdk::Internal::Types::Enum - - REQUIRES_ACTION = "requires_action" - PROCESSING = "processing" - SUCCEEDED = "succeeded" - FAILED = "failed" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_item.rb b/lib/whop_sdk/types/checkout_session_item.rb deleted file mode 100644 index bf570229..00000000 --- a/lib/whop_sdk/types/checkout_session_item.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionItem < Internal::Types::Model - field :description, -> { String }, optional: false, nullable: true - - field :expiration_days, -> { Integer }, optional: false, nullable: true - - field :headline, -> { String }, optional: false, nullable: true - - field :image_url, -> { String }, optional: false, nullable: true - - field :name, -> { String }, optional: false, nullable: false - - field :plan, -> { String }, optional: false, nullable: false - - field :quantity, -> { Integer }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_mode.rb b/lib/whop_sdk/types/checkout_session_mode.rb deleted file mode 100644 index 186cee23..00000000 --- a/lib/whop_sdk/types/checkout_session_mode.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionMode - extend Whop_sdk::Internal::Types::Enum - - PAYMENT = "payment" - SETUP = "setup" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_next_action.rb b/lib/whop_sdk/types/checkout_session_next_action.rb deleted file mode 100644 index 7480a75d..00000000 --- a/lib/whop_sdk/types/checkout_session_next_action.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The ceremony to run. `type` picks the shape, and each type carries only the fields it needs, so switching on - # `type` gives you exactly that action's payload. Every type carries `blocking`, which says whether the sale depends - # on this one. - class CheckoutSessionNextAction < Internal::Types::Model - extend Whop_sdk::Internal::Types::Union - - discriminant :type - - member -> { Whop_sdk::Types::CheckoutSessionAuthenticateAction }, key: "AUTHENTICATE" - - member -> { Whop_sdk::Types::CheckoutSessionAwaitClaimAction }, key: "AWAIT_CLAIM" - - member -> { Whop_sdk::Types::CheckoutSessionCompleteAction }, key: "COMPLETE" - - member -> { Whop_sdk::Types::CheckoutSessionRedirectAction }, key: "REDIRECT" - - member -> { Whop_sdk::Types::CheckoutSessionUpgradeAuthenticationAction }, key: "UPGRADE_AUTHENTICATION" - - member -> { Whop_sdk::Types::CheckoutSessionVerifyPhoneAction }, key: "VERIFY_PHONE" - - member -> { Whop_sdk::Types::CheckoutSessionWaitForPaymentAction }, key: "WAIT_FOR_PAYMENT" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_payment.rb b/lib/whop_sdk/types/checkout_session_payment.rb deleted file mode 100644 index 07ddf512..00000000 --- a/lib/whop_sdk/types/checkout_session_payment.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionPayment < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :status, -> { Whop_sdk::Types::CheckoutSessionPaymentStatus }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_payment_status.rb b/lib/whop_sdk/types/checkout_session_payment_status.rb deleted file mode 100644 index 65a5fd15..00000000 --- a/lib/whop_sdk/types/checkout_session_payment_status.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionPaymentStatus - extend Whop_sdk::Internal::Types::Enum - - REQUIRES_ACTION = "requires_action" - PROCESSING = "processing" - SUCCEEDED = "succeeded" - FAILED = "failed" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_promo.rb b/lib/whop_sdk/types/checkout_session_promo.rb deleted file mode 100644 index 963ced11..00000000 --- a/lib/whop_sdk/types/checkout_session_promo.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionPromo < Internal::Types::Model - field :amount_off, -> { Integer }, optional: false, nullable: false - - field :code, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::CheckoutSessionPromoCurrency }, optional: false, nullable: true - - field :duration, -> { Whop_sdk::Types::CheckoutSessionPromoDuration }, optional: false, nullable: false - - field :number_of_intervals, -> { Integer }, optional: false, nullable: true - - field :promo_type, -> { Whop_sdk::Types::CheckoutSessionPromoPromoType }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_promo_currency.rb b/lib/whop_sdk/types/checkout_session_promo_currency.rb deleted file mode 100644 index adde8ad2..00000000 --- a/lib/whop_sdk/types/checkout_session_promo_currency.rb +++ /dev/null @@ -1,100 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionPromoCurrency - extend Whop_sdk::Internal::Types::Enum - - USD = "usd" - SGD = "sgd" - INR = "inr" - AUD = "aud" - BRL = "brl" - CAD = "cad" - DKK = "dkk" - EUR = "eur" - NOK = "nok" - GBP = "gbp" - SEK = "sek" - CHF = "chf" - HKD = "hkd" - HUF = "huf" - JPY = "jpy" - MXN = "mxn" - MYR = "myr" - PLN = "pln" - CZK = "czk" - NZD = "nzd" - AED = "aed" - ETH = "eth" - APE = "ape" - COP = "cop" - RON = "ron" - THB = "thb" - BGN = "bgn" - IDR = "idr" - DOP = "dop" - PHP = "php" - TRY = "try" - KRW = "krw" - TWD = "twd" - VND = "vnd" - PKR = "pkr" - CLP = "clp" - UYU = "uyu" - ARS = "ars" - ZAR = "zar" - DZD = "dzd" - TND = "tnd" - MAD = "mad" - KES = "kes" - KWD = "kwd" - JOD = "jod" - ALL = "all" - XCD = "xcd" - AMD = "amd" - BSD = "bsd" - BHD = "bhd" - BOB = "bob" - BAM = "bam" - KHR = "khr" - CRC = "crc" - XOF = "xof" - EGP = "egp" - ETB = "etb" - GMD = "gmd" - GHS = "ghs" - GTQ = "gtq" - GYD = "gyd" - ILS = "ils" - JMD = "jmd" - MOP = "mop" - MGA = "mga" - MUR = "mur" - MDL = "mdl" - MNT = "mnt" - NAD = "nad" - NGN = "ngn" - MKD = "mkd" - OMR = "omr" - PYG = "pyg" - PEN = "pen" - QAR = "qar" - RWF = "rwf" - SAR = "sar" - RSD = "rsd" - LKR = "lkr" - TZS = "tzs" - TTD = "ttd" - UZS = "uzs" - RUB = "rub" - BTC = "btc" - CNY = "cny" - USDT = "usdt" - KZT = "kzt" - AWG = "awg" - WHOP_USD = "whop_usd" - XAU = "xau" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_promo_duration.rb b/lib/whop_sdk/types/checkout_session_promo_duration.rb deleted file mode 100644 index 43ddf7a2..00000000 --- a/lib/whop_sdk/types/checkout_session_promo_duration.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionPromoDuration - extend Whop_sdk::Internal::Types::Enum - - FOREVER = "forever" - ONCE = "once" - REPEATING = "repeating" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_promo_promo_type.rb b/lib/whop_sdk/types/checkout_session_promo_promo_type.rb deleted file mode 100644 index 50f8a5a1..00000000 --- a/lib/whop_sdk/types/checkout_session_promo_promo_type.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionPromoPromoType - extend Whop_sdk::Internal::Types::Enum - - PERCENTAGE = "percentage" - FLAT_AMOUNT = "flat_amount" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_quote.rb b/lib/whop_sdk/types/checkout_session_quote.rb deleted file mode 100644 index 2c330f9e..00000000 --- a/lib/whop_sdk/types/checkout_session_quote.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionQuote < Internal::Types::Model - field :base_amount, -> { Integer }, optional: false, nullable: false - - field :base_currency, -> { String }, optional: false, nullable: false - - field :breakdown, -> { Whop_sdk::Types::CheckoutSessionBreakdown }, optional: false, nullable: false - - field :currency, -> { String }, optional: false, nullable: false - - field :exchange_rate, -> { Integer }, optional: false, nullable: true - - field :expires_at, -> { String }, optional: false, nullable: false - - field :quoted_at, -> { String }, optional: false, nullable: false - - field :trial_skipped, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_redirect_action.rb b/lib/whop_sdk/types/checkout_session_redirect_action.rb deleted file mode 100644 index 61c14639..00000000 --- a/lib/whop_sdk/types/checkout_session_redirect_action.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionRedirectAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :destination_url, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_requirement.rb b/lib/whop_sdk/types/checkout_session_requirement.rb deleted file mode 100644 index 4581ebb3..00000000 --- a/lib/whop_sdk/types/checkout_session_requirement.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionRequirement < Internal::Types::Model - field :fields, -> { Internal::Types::Array[Whop_sdk::Types::CheckoutSessionCustomField] }, optional: false, nullable: true - - field :type, -> { Whop_sdk::Types::CheckoutSessionRequirementType }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_requirement_type.rb b/lib/whop_sdk/types/checkout_session_requirement_type.rb deleted file mode 100644 index 824cde37..00000000 --- a/lib/whop_sdk/types/checkout_session_requirement_type.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionRequirementType - extend Whop_sdk::Internal::Types::Enum - - CUSTOM_PASSWORD = "custom_password" - EMAIL = "email" - TERMS = "terms" - CUSTOM_FIELDS = "custom_fields" - SHIPPING_ADDRESS = "shipping_address" - PHONE_NUMBER = "phone_number" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_seller.rb b/lib/whop_sdk/types/checkout_session_seller.rb deleted file mode 100644 index f128d621..00000000 --- a/lib/whop_sdk/types/checkout_session_seller.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionSeller < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :logo_url, -> { String }, optional: false, nullable: true - - field :redirect_purchase_url, -> { String }, optional: false, nullable: true - - field :route, -> { String }, optional: false, nullable: false - - field :terms, -> { Whop_sdk::Types::CheckoutSessionSellerTerms }, optional: false, nullable: false - - field :title, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_seller_terms.rb b/lib/whop_sdk/types/checkout_session_seller_terms.rb deleted file mode 100644 index 6d383e03..00000000 --- a/lib/whop_sdk/types/checkout_session_seller_terms.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionSellerTerms < Internal::Types::Model - field :eula_url, -> { String }, optional: false, nullable: true - - field :privacy_policy_url, -> { String }, optional: false, nullable: true - - field :required, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :return_policy_url, -> { String }, optional: false, nullable: true - - field :terms_url, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_shipping_address.rb b/lib/whop_sdk/types/checkout_session_shipping_address.rb deleted file mode 100644 index 07a27430..00000000 --- a/lib/whop_sdk/types/checkout_session_shipping_address.rb +++ /dev/null @@ -1,21 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionShippingAddress < Internal::Types::Model - field :city, -> { String }, optional: true, nullable: false - - field :country, -> { String }, optional: true, nullable: false - - field :line1, -> { String }, optional: true, nullable: false - - field :line2, -> { String }, optional: true, nullable: false - - field :name, -> { String }, optional: true, nullable: false - - field :postal_code, -> { String }, optional: true, nullable: false - - field :state, -> { String }, optional: true, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_status.rb b/lib/whop_sdk/types/checkout_session_status.rb deleted file mode 100644 index 5cc85e73..00000000 --- a/lib/whop_sdk/types/checkout_session_status.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionStatus - extend Whop_sdk::Internal::Types::Enum - - OPEN = "open" - COMPLETED = "completed" - EXPIRED = "expired" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_tax_behavior.rb b/lib/whop_sdk/types/checkout_session_tax_behavior.rb deleted file mode 100644 index dc5a118c..00000000 --- a/lib/whop_sdk/types/checkout_session_tax_behavior.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionTaxBehavior - extend Whop_sdk::Internal::Types::Enum - - INCLUSIVE = "inclusive" - EXCLUSIVE = "exclusive" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_tax_id.rb b/lib/whop_sdk/types/checkout_session_tax_id.rb deleted file mode 100644 index 8f23bb72..00000000 --- a/lib/whop_sdk/types/checkout_session_tax_id.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionTaxID < Internal::Types::Model - field :type, -> { Whop_sdk::Types::CheckoutSessionTaxIDType }, optional: false, nullable: false - - field :value, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_tax_id_type.rb b/lib/whop_sdk/types/checkout_session_tax_id_type.rb deleted file mode 100644 index cef281e8..00000000 --- a/lib/whop_sdk/types/checkout_session_tax_id_type.rb +++ /dev/null @@ -1,123 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionTaxIDType - extend Whop_sdk::Internal::Types::Enum - - AD_NRT = "ad_nrt" - AO_TIN = "ao_tin" - AR_CUIT = "ar_cuit" - AL_TIN = "al_tin" - AM_TIN = "am_tin" - AW_TIN = "aw_tin" - AU_ABN = "au_abn" - AU_ARN = "au_arn" - EU_VAT = "eu_vat" - AZ_TIN = "az_tin" - BS_TIN = "bs_tin" - BH_VAT = "bh_vat" - BD_BIN = "bd_bin" - BB_TIN = "bb_tin" - BY_TIN = "by_tin" - BJ_IFU = "bj_ifu" - BO_TIN = "bo_tin" - BA_TIN = "ba_tin" - BR_CNPJ = "br_cnpj" - BR_CPF = "br_cpf" - BG_UIC = "bg_uic" - BF_IFU = "bf_ifu" - KH_TIN = "kh_tin" - CM_NIU = "cm_niu" - CA_BN = "ca_bn" - CA_GST_HST = "ca_gst_hst" - CA_PST_BC = "ca_pst_bc" - CA_PST_MB = "ca_pst_mb" - CA_PST_SK = "ca_pst_sk" - CA_QST = "ca_qst" - CV_NIF = "cv_nif" - CL_TIN = "cl_tin" - CN_TIN = "cn_tin" - CO_NIT = "co_nit" - CD_NIF = "cd_nif" - CR_TIN = "cr_tin" - HR_OIB = "hr_oib" - DO_RCN = "do_rcn" - EC_RUC = "ec_ruc" - EG_TIN = "eg_tin" - SV_NIT = "sv_nit" - ET_TIN = "et_tin" - EU_OSS_VAT = "eu_oss_vat" - GE_VAT = "ge_vat" - GH_TIN = "gh_tin" - DE_STN = "de_stn" - GB_VAT = "gb_vat" - GN_NIF = "gn_nif" - HK_BR = "hk_br" - HU_TIN = "hu_tin" - IS_VAT = "is_vat" - IN_GST = "in_gst" - ID_NPWP = "id_npwp" - IL_VAT = "il_vat" - JP_CN = "jp_cn" - JP_RN = "jp_rn" - JP_TRN = "jp_trn" - KZ_BIN = "kz_bin" - KE_PIN = "ke_pin" - KG_TIN = "kg_tin" - LA_TIN = "la_tin" - LI_UID = "li_uid" - LI_VAT = "li_vat" - MY_FRP = "my_frp" - MY_ITN = "my_itn" - MY_SST = "my_sst" - MR_NIF = "mr_nif" - MX_RFC = "mx_rfc" - MD_VAT = "md_vat" - ME_PIB = "me_pib" - MA_VAT = "ma_vat" - NP_PAN = "np_pan" - NZ_GST = "nz_gst" - NG_TIN = "ng_tin" - MK_VAT = "mk_vat" - NO_VAT = "no_vat" - NO_VOEC = "no_voec" - OM_VAT = "om_vat" - PE_RUC = "pe_ruc" - PH_TIN = "ph_tin" - PL_NIP = "pl_nip" - RO_TIN = "ro_tin" - RU_INN = "ru_inn" - RU_KPP = "ru_kpp" - SA_VAT = "sa_vat" - SN_NINEA = "sn_ninea" - RS_PIB = "rs_pib" - SG_GST = "sg_gst" - SG_UEN = "sg_uen" - SI_TIN = "si_tin" - ZA_VAT = "za_vat" - KR_BRN = "kr_brn" - ES_CIF = "es_cif" - CH_UID = "ch_uid" - CH_VAT = "ch_vat" - TW_VAT = "tw_vat" - TJ_TIN = "tj_tin" - TZ_VAT = "tz_vat" - TH_VAT = "th_vat" - TR_TIN = "tr_tin" - UG_TIN = "ug_tin" - UA_VAT = "ua_vat" - AE_TRN = "ae_trn" - US_EIN = "us_ein" - UY_RUC = "uy_ruc" - UZ_TIN = "uz_tin" - UZ_VAT = "uz_vat" - VE_RIF = "ve_rif" - VN_TIN = "vn_tin" - ZM_TIN = "zm_tin" - ZW_TIN = "zw_tin" - SR_FIN = "sr_fin" - XI_VAT = "xi_vat" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_three_ds_level.rb b/lib/whop_sdk/types/checkout_session_three_ds_level.rb deleted file mode 100644 index a44cdabc..00000000 --- a/lib/whop_sdk/types/checkout_session_three_ds_level.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionThreeDsLevel - extend Whop_sdk::Internal::Types::Enum - - MANDATE_CHALLENGE = "mandate_challenge" - FRICTIONLESS = "frictionless" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_transfer.rb b/lib/whop_sdk/types/checkout_session_transfer.rb deleted file mode 100644 index f229d028..00000000 --- a/lib/whop_sdk/types/checkout_session_transfer.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionTransfer < Internal::Types::Model - field :code, -> { String }, optional: false, nullable: false - - field :origin_expires_at, -> { String }, optional: false, nullable: true - - field :origin_renewal_period_end, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_upgrade_authentication_action.rb b/lib/whop_sdk/types/checkout_session_upgrade_authentication_action.rb deleted file mode 100644 index a0215d9f..00000000 --- a/lib/whop_sdk/types/checkout_session_upgrade_authentication_action.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionUpgradeAuthenticationAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :email, -> { String }, optional: false, nullable: false - - field :session_intent_id, -> { String }, optional: false, nullable: true - - field :sign_in_intent, -> { Whop_sdk::Types::CheckoutSessionUpgradeAuthenticationActionSignInIntent }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_upgrade_authentication_action_sign_in_intent.rb b/lib/whop_sdk/types/checkout_session_upgrade_authentication_action_sign_in_intent.rb deleted file mode 100644 index 5831e31b..00000000 --- a/lib/whop_sdk/types/checkout_session_upgrade_authentication_action_sign_in_intent.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module CheckoutSessionUpgradeAuthenticationActionSignInIntent - extend Whop_sdk::Internal::Types::Enum - - PAYMENT = "payment" - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_verify_phone_action.rb b/lib/whop_sdk/types/checkout_session_verify_phone_action.rb deleted file mode 100644 index 19214f79..00000000 --- a/lib/whop_sdk/types/checkout_session_verify_phone_action.rb +++ /dev/null @@ -1,9 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionVerifyPhoneAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/checkout_session_wait_for_payment_action.rb b/lib/whop_sdk/types/checkout_session_wait_for_payment_action.rb deleted file mode 100644 index 7e29002d..00000000 --- a/lib/whop_sdk/types/checkout_session_wait_for_payment_action.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - class CheckoutSessionWaitForPaymentAction < Internal::Types::Model - field :blocking, -> { Internal::Types::Boolean }, optional: false, nullable: false - - field :poll_after_seconds, -> { Integer }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/ledger_activity.rb b/lib/whop_sdk/types/ledger_activity.rb index dc7aeb3a..f46bcd1e 100644 --- a/lib/whop_sdk/types/ledger_activity.rb +++ b/lib/whop_sdk/types/ledger_activity.rb @@ -23,11 +23,27 @@ class LedgerActivity < Internal::Types::Model field :payment, -> { Whop_sdk::Types::LedgerActivityPayment }, optional: true, nullable: false + field :payment_id, -> { String }, optional: true, nullable: false + + field :plan_id, -> { String }, optional: true, nullable: false + + field :plan_name, -> { String }, optional: true, nullable: false + field :posted_at, -> { String }, optional: false, nullable: false + field :product_id, -> { String }, optional: true, nullable: false + + field :product_name, -> { String }, optional: true, nullable: false + field :resource, -> { Whop_sdk::Types::LedgerActivityResource }, optional: false, nullable: true field :source, -> { Whop_sdk::Types::LedgerActivitySource }, optional: false, nullable: true + + field :user_email, -> { String }, optional: true, nullable: false + + field :user_id, -> { String }, optional: true, nullable: false + + field :user_name, -> { String }, optional: true, nullable: false end end end diff --git a/lib/whop_sdk/types/ledger_activity_payment.rb b/lib/whop_sdk/types/ledger_activity_payment.rb index 842444e0..50aab01a 100644 --- a/lib/whop_sdk/types/ledger_activity_payment.rb +++ b/lib/whop_sdk/types/ledger_activity_payment.rb @@ -18,6 +18,12 @@ class LedgerActivityPayment < Internal::Types::Model field :payment_method_type, -> { String }, optional: false, nullable: true field :payment_processor, -> { String }, optional: false, nullable: true + + field :plan, -> { Whop_sdk::Types::LedgerActivityPaymentPlan }, optional: false, nullable: true + + field :product, -> { Whop_sdk::Types::LedgerActivityPaymentProduct }, optional: false, nullable: true + + field :user, -> { Whop_sdk::Types::LedgerActivityPaymentUser }, optional: false, nullable: true end end end diff --git a/lib/whop_sdk/types/ledger_activity_payment_plan.rb b/lib/whop_sdk/types/ledger_activity_payment_plan.rb new file mode 100644 index 00000000..25b52cee --- /dev/null +++ b/lib/whop_sdk/types/ledger_activity_payment_plan.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Whop_sdk + module Types + # Plan associated with the payment, when applicable. + class LedgerActivityPaymentPlan < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + + field :name, -> { String }, optional: false, nullable: true + end + end +end diff --git a/lib/whop_sdk/types/ledger_activity_payment_product.rb b/lib/whop_sdk/types/ledger_activity_payment_product.rb new file mode 100644 index 00000000..cd6a94e8 --- /dev/null +++ b/lib/whop_sdk/types/ledger_activity_payment_product.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +module Whop_sdk + module Types + # Product associated with the payment, when applicable. + class LedgerActivityPaymentProduct < Internal::Types::Model + field :id, -> { String }, optional: false, nullable: false + + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/whop_sdk/types/ledger_activity_payment_user.rb b/lib/whop_sdk/types/ledger_activity_payment_user.rb new file mode 100644 index 00000000..deba3f62 --- /dev/null +++ b/lib/whop_sdk/types/ledger_activity_payment_user.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +module Whop_sdk + module Types + # Customer associated with the payment. Email requires member:email:read. + class LedgerActivityPaymentUser < Internal::Types::Model + field :email, -> { String }, optional: false, nullable: true + + field :id, -> { String }, optional: false, nullable: false + + field :name, -> { String }, optional: false, nullable: false + end + end +end diff --git a/lib/whop_sdk/types/ledger_activity_source.rb b/lib/whop_sdk/types/ledger_activity_source.rb index 5917ec6c..70e40cf9 100644 --- a/lib/whop_sdk/types/ledger_activity_source.rb +++ b/lib/whop_sdk/types/ledger_activity_source.rb @@ -38,6 +38,8 @@ class LedgerActivitySource < Internal::Types::Model field :reason, -> { String }, optional: true, nullable: false + field :risk_review_hold, -> { Internal::Types::Boolean }, optional: true, nullable: false + field :sender_address, -> { String }, optional: true, nullable: false field :status, -> { String }, optional: true, nullable: false diff --git a/lib/whop_sdk/types/ledger_activity_source_payout_destination.rb b/lib/whop_sdk/types/ledger_activity_source_payout_destination.rb index 79a001b0..58a4c2ba 100644 --- a/lib/whop_sdk/types/ledger_activity_source_payout_destination.rb +++ b/lib/whop_sdk/types/ledger_activity_source_payout_destination.rb @@ -2,7 +2,7 @@ module Whop_sdk module Types - # Payout destination display info (withdrawal sources only). + # Payout destination display info (payout sources only). class LedgerActivitySourcePayoutDestination < Internal::Types::Model field :icon_url, -> { String }, optional: true, nullable: false diff --git a/lib/whop_sdk/types/payment_bank_transfer.rb b/lib/whop_sdk/types/payment_bank_transfer.rb index 0395c744..5d2451b3 100644 --- a/lib/whop_sdk/types/payment_bank_transfer.rb +++ b/lib/whop_sdk/types/payment_bank_transfer.rb @@ -11,6 +11,8 @@ class PaymentBankTransfer < Internal::Types::Model field :bank_account_type, -> { String }, optional: true, nullable: false + field :bank_address, -> { String }, optional: true, nullable: false + field :bank_branch, -> { String }, optional: true, nullable: false field :bank_code, -> { String }, optional: true, nullable: false @@ -31,6 +33,8 @@ class PaymentBankTransfer < Internal::Types::Model field :reference, -> { String }, optional: true, nullable: false + field :routing_number, -> { String }, optional: true, nullable: false + field :secondary_account_number, -> { String }, optional: true, nullable: false field :secondary_account_number_label, -> { String }, optional: true, nullable: false diff --git a/lib/whop_sdk/types/payment_method.rb b/lib/whop_sdk/types/payment_method.rb index 922488e4..2d9e5ada 100644 --- a/lib/whop_sdk/types/payment_method.rb +++ b/lib/whop_sdk/types/payment_method.rb @@ -18,8 +18,6 @@ class PaymentMethod < Internal::Types::Model member -> { Whop_sdk::Types::PaymentMethodIdealPaymentMethod }, key: "IDEAL_PAYMENT_METHOD" member -> { Whop_sdk::Types::PaymentMethodSepaDebitPaymentMethod }, key: "SEPA_DEBIT_PAYMENT_METHOD" - - member -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethod }, key: "PLATFORM_BALANCE_PAYMENT_METHOD" end end end diff --git a/lib/whop_sdk/types/payment_method_list_item.rb b/lib/whop_sdk/types/payment_method_list_item.rb index 221597a7..0af25180 100644 --- a/lib/whop_sdk/types/payment_method_list_item.rb +++ b/lib/whop_sdk/types/payment_method_list_item.rb @@ -18,8 +18,6 @@ class PaymentMethodListItem < Internal::Types::Model member -> { Whop_sdk::Types::PaymentMethodListItemIdealPaymentMethod }, key: "IDEAL_PAYMENT_METHOD" member -> { Whop_sdk::Types::PaymentMethodListItemSepaDebitPaymentMethod }, key: "SEPA_DEBIT_PAYMENT_METHOD" - - member -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethod }, key: "PLATFORM_BALANCE_PAYMENT_METHOD" end end end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method.rb deleted file mode 100644 index 1f2bc33f..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # A Whop balance the buyer can pay with — their own, or an account's they hold permission to spend. Charged by - # naming its ledger id on a `saved` confirmation token — it is a live wallet, not a stored credential, so it cannot - # be vaulted or charged off-session. - class PaymentMethodListItemPlatformBalancePaymentMethod < Internal::Types::Model - field :created_at, -> { String }, optional: false, nullable: false - - field :icons, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIcons }, optional: false, nullable: false - - field :id, -> { String }, optional: false, nullable: false - - field :payment_method_type, -> { Whop_sdk::Types::PaymentMethodTypes }, optional: false, nullable: false - - field :platform_balance, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalance }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons.rb deleted file mode 100644 index 90f3c881..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # Every rendition of the icon to display this payment method with. A saved card carries its brand's icon (Visa, - # Mastercard, ...) rather than the generic card art. - class PaymentMethodListItemPlatformBalancePaymentMethodIcons < Internal::Types::Model - field :card, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsCard }, optional: false, nullable: false - - field :square, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsSquare }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card.rb deleted file mode 100644 index 66dc401a..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The credit-card-proportioned tile (48x30). - class PaymentMethodListItemPlatformBalancePaymentMethodIconsCard < Internal::Types::Model - field :dark, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsCardDark }, optional: false, nullable: false - - field :light, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsCardLight }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_dark.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_dark.rb deleted file mode 100644 index 8584c99f..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_dark.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for dark surfaces. - class PaymentMethodListItemPlatformBalancePaymentMethodIconsCardDark < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_light.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_light.rb deleted file mode 100644 index 3deb1d08..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_card_light.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for light surfaces. - class PaymentMethodListItemPlatformBalancePaymentMethodIconsCardLight < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square.rb deleted file mode 100644 index 594319ae..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The square tile (32x32). - class PaymentMethodListItemPlatformBalancePaymentMethodIconsSquare < Internal::Types::Model - field :dark, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsSquareDark }, optional: false, nullable: false - - field :light, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodIconsSquareLight }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_dark.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_dark.rb deleted file mode 100644 index ea3a6b48..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_dark.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for dark surfaces. - class PaymentMethodListItemPlatformBalancePaymentMethodIconsSquareDark < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_light.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_light.rb deleted file mode 100644 index 47a83829..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_icons_square_light.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for light surfaces. - class PaymentMethodListItemPlatformBalancePaymentMethodIconsSquareLight < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance.rb deleted file mode 100644 index 33f4ae87..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # What is available to spend, and whether the account may spend it. - class PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalance < Internal::Types::Model - field :account, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceAccount }, optional: false, nullable: true - - field :balances, -> { Internal::Types::Array[Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceBalancesItem] }, optional: false, nullable: false - - field :spendable, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account.rb deleted file mode 100644 index d3adfa46..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The account whose wallet this is. Null for the buyer's own personal wallet. A buyer sees an account's balance here - # when they hold permission to spend it, so a list can hold several — their own and one per account they are on. - class PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceAccount < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :logo, -> { Whop_sdk::Types::PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceAccountLogo }, optional: false, nullable: true - - field :title, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account_logo.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account_logo.rb deleted file mode 100644 index 2f5ab62d..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_account_logo.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The company's logo. - class PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceAccountLogo < Internal::Types::Model - field :url, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_balances_item.rb b/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_balances_item.rb deleted file mode 100644 index 5ab571cd..00000000 --- a/lib/whop_sdk/types/payment_method_list_item_platform_balance_payment_method_platform_balance_balances_item.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # An amount of money. Never a bare number, because a bare number cannot answer the two questions a client has to - # answer to render it: what currency is this, and how many digits do I write? The second is stated twice rather than - # derived, because the digits the amount CARRIES and the digits to SHOW differ in COP — charged in centavos, written - # in whole pesos. Formatting is deliberately left to the caller: the number belongs in the buyer's locale, and this - # API does not know it. - class PaymentMethodListItemPlatformBalancePaymentMethodPlatformBalanceBalancesItem < Internal::Types::Model - field :amount, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::Currencies }, optional: false, nullable: false - - field :decimals, -> { Integer }, optional: false, nullable: false - - field :display_decimals, -> { Integer }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method.rb deleted file mode 100644 index 5e4c5a18..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # A Whop balance the buyer can pay with — their own, or an account's they hold permission to spend. Charged by - # naming its ledger id on a `saved` confirmation token — it is a live wallet, not a stored credential, so it cannot - # be vaulted or charged off-session. - class PaymentMethodPlatformBalancePaymentMethod < Internal::Types::Model - field :created_at, -> { String }, optional: false, nullable: false - - field :icons, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIcons }, optional: false, nullable: false - - field :id, -> { String }, optional: false, nullable: false - - field :payment_method_type, -> { Whop_sdk::Types::PaymentMethodTypes }, optional: false, nullable: false - - field :platform_balance, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodPlatformBalance }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons.rb deleted file mode 100644 index bda92721..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons.rb +++ /dev/null @@ -1,13 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # Every rendition of the icon to display this payment method with. A saved card carries its brand's icon (Visa, - # Mastercard, ...) rather than the generic card art. - class PaymentMethodPlatformBalancePaymentMethodIcons < Internal::Types::Model - field :card, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsCard }, optional: false, nullable: false - - field :square, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsSquare }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card.rb deleted file mode 100644 index 66589852..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The credit-card-proportioned tile (48x30). - class PaymentMethodPlatformBalancePaymentMethodIconsCard < Internal::Types::Model - field :dark, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsCardDark }, optional: false, nullable: false - - field :light, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsCardLight }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_dark.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_dark.rb deleted file mode 100644 index 5cb28c41..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_dark.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for dark surfaces. - class PaymentMethodPlatformBalancePaymentMethodIconsCardDark < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_light.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_light.rb deleted file mode 100644 index 72bd3872..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_card_light.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for light surfaces. - class PaymentMethodPlatformBalancePaymentMethodIconsCardLight < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square.rb deleted file mode 100644 index daca327c..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The square tile (32x32). - class PaymentMethodPlatformBalancePaymentMethodIconsSquare < Internal::Types::Model - field :dark, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsSquareDark }, optional: false, nullable: false - - field :light, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodIconsSquareLight }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_dark.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_dark.rb deleted file mode 100644 index ef5af839..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_dark.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for dark surfaces. - class PaymentMethodPlatformBalancePaymentMethodIconsSquareDark < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_light.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_light.rb deleted file mode 100644 index 4ecc59fb..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_icons_square_light.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The colorway for light surfaces. - class PaymentMethodPlatformBalancePaymentMethodIconsSquareLight < Internal::Types::Model - field :png1x, -> { String }, optional: false, nullable: false, api_name: "png_1x" - - field :png2x, -> { String }, optional: false, nullable: false, api_name: "png_2x" - - field :png4x, -> { String }, optional: false, nullable: false, api_name: "png_4x" - - field :svg, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance.rb deleted file mode 100644 index a26df1c1..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # What is available to spend, and whether the account may spend it. - class PaymentMethodPlatformBalancePaymentMethodPlatformBalance < Internal::Types::Model - field :account, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodPlatformBalanceAccount }, optional: false, nullable: true - - field :balances, -> { Internal::Types::Array[Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodPlatformBalanceBalancesItem] }, optional: false, nullable: false - - field :spendable, -> { Internal::Types::Boolean }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account.rb deleted file mode 100644 index 8af09ebe..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account.rb +++ /dev/null @@ -1,15 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The account whose wallet this is. Null for the buyer's own personal wallet. A buyer sees an account's balance here - # when they hold permission to spend it, so a list can hold several — their own and one per account they are on. - class PaymentMethodPlatformBalancePaymentMethodPlatformBalanceAccount < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - - field :logo, -> { Whop_sdk::Types::PaymentMethodPlatformBalancePaymentMethodPlatformBalanceAccountLogo }, optional: false, nullable: true - - field :title, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account_logo.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account_logo.rb deleted file mode 100644 index ee6c2b6a..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_account_logo.rb +++ /dev/null @@ -1,10 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The company's logo. - class PaymentMethodPlatformBalancePaymentMethodPlatformBalanceAccountLogo < Internal::Types::Model - field :url, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_balances_item.rb b/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_balances_item.rb deleted file mode 100644 index 7596b936..00000000 --- a/lib/whop_sdk/types/payment_method_platform_balance_payment_method_platform_balance_balances_item.rb +++ /dev/null @@ -1,20 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # An amount of money. Never a bare number, because a bare number cannot answer the two questions a client has to - # answer to render it: what currency is this, and how many digits do I write? The second is stated twice rather than - # derived, because the digits the amount CARRIES and the digits to SHOW differ in COP — charged in centavos, written - # in whole pesos. Formatting is deliberately left to the caller: the number belongs in the buyer's locale, and this - # API does not know it. - class PaymentMethodPlatformBalancePaymentMethodPlatformBalanceBalancesItem < Internal::Types::Model - field :amount, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::Currencies }, optional: false, nullable: false - - field :decimals, -> { Integer }, optional: false, nullable: false - - field :display_decimals, -> { Integer }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/payout_error_codes.rb b/lib/whop_sdk/types/payout_error_codes.rb deleted file mode 100644 index 57d51d9d..00000000 --- a/lib/whop_sdk/types/payout_error_codes.rb +++ /dev/null @@ -1,61 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module PayoutErrorCodes - extend Whop_sdk::Internal::Types::Enum - - ACCOUNT_CLOSED = "account_closed" - ACCOUNT_DOES_NOT_EXIST = "account_does_not_exist" - ACCOUNT_INFORMATION_INVALID = "account_information_invalid" - ACCOUNT_NUMBER_INVALID_REGION = "account_number_invalid_region" - ACCOUNT_FROZEN = "account_frozen" - ACCOUNT_LOOKUP_FAILED = "account_lookup_failed" - ACCOUNT_NOT_FOUND = "account_not_found" - AMOUNT_OUT_OF_BOUNDS = "amount_out_of_bounds" - ATTRIBUTES_NOT_VALIDATED = "attributes_not_validated" - B2B_PAYMENTS_PROHIBITED = "b2b_payments_prohibited" - BANK_STATEMENT_REQUIRED = "bank_statement_required" - COMPLIANCE_REVIEW = "compliance_review" - CURRENCY_NOT_SUPPORTED = "currency_not_supported" - DEPOSIT_CANCELED = "deposit_canceled" - DEPOSIT_FAILED = "deposit_failed" - DEPOSIT_REJECTED = "deposit_rejected" - DESTINATION_UNAVAILABLE = "destination_unavailable" - EXCEEDED_ACCOUNT_LIMIT = "exceeded_account_limit" - EXPIRED_QUOTE = "expired_quote" - GENERIC_PAYOUT_ERROR = "generic_payout_error" - JUNK_FAILURE_REASON = "junk_failure_reason" - TECHNICAL_PROBLEM = "technical_problem" - PROVIDER_TEMPORARILY_UNAVAILABLE = "provider_temporarily_unavailable" - PROVIDER_VALIDATION_FAILED = "provider_validation_failed" - IDENTIFICATION_NUMBER_INVALID = "identification_number_invalid" - INVALID_ACCOUNT_NUMBER = "invalid_account_number" - INVALID_BANK_CODE = "invalid_bank_code" - INVALID_BENEFICIARY = "invalid_beneficiary" - INVALID_MAILING_ADDRESS = "invalid_mailing_address" - INVALID_BRANCH_NUMBER = "invalid_branch_number" - INVALID_BRANCH_CODE = "invalid_branch_code" - INVALID_PHONE_NUMBER = "invalid_phone_number" - INVALID_ROUTING_NUMBER = "invalid_routing_number" - INVALID_SWIFT_CODE = "invalid_swift_code" - INVALID_COMPANY_DETAILS = "invalid_company_details" - MANUAL_CANCELATION = "manual_cancelation" - MISC_ERROR = "misc_error" - MISSING_CITY_AND_COUNTRY = "missing_city_and_country" - MISSING_PHONE_NUMBER = "missing_phone_number" - MISSING_REMITTANCE_INFO = "missing_remittance_info" - PAYEE_NAME_INVALID = "payee_name_invalid" - BENEFICIARY_NAME_MISMATCH = "beneficiary_name_mismatch" - RECEIVING_ACCOUNT_LOCKED = "receiving_account_locked" - REJECTED_BY_COMPLIANCE = "rejected_by_compliance" - RTP_NOT_SUPPORTED = "rtp_not_supported" - NON_TRANSACTION_ACCOUNT = "non_transaction_account" - SOURCE_TOKEN_INSUFFICIENT_FUNDS = "source_token_insufficient_funds" - SSN_INVALID = "ssn_invalid" - WALLET_SCREENSHOT_REQUIRED = "wallet_screenshot_required" - UNSUPPORTED_REGION = "unsupported_region" - PAYOUT_PROVIDER_TIMEOUT = "payout_provider_timeout" - end - end -end diff --git a/lib/whop_sdk/types/webhook_event.rb b/lib/whop_sdk/types/webhook_event.rb index e71db62c..1d91e3eb 100644 --- a/lib/whop_sdk/types/webhook_event.rb +++ b/lib/whop_sdk/types/webhook_event.rb @@ -32,6 +32,9 @@ module WebhookEvent WITHDRAWAL_CREATED = "withdrawal.created" WITHDRAWAL_UPDATED = "withdrawal.updated" WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/types/webhook_events_item.rb b/lib/whop_sdk/types/webhook_events_item.rb index cacb88c4..c2cf23f4 100644 --- a/lib/whop_sdk/types/webhook_events_item.rb +++ b/lib/whop_sdk/types/webhook_events_item.rb @@ -32,6 +32,9 @@ module WebhookEventsItem WITHDRAWAL_CREATED = "withdrawal.created" WITHDRAWAL_UPDATED = "withdrawal.updated" WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/types/webhook_list_item_events_item.rb b/lib/whop_sdk/types/webhook_list_item_events_item.rb index 807b2964..1a404e96 100644 --- a/lib/whop_sdk/types/webhook_list_item_events_item.rb +++ b/lib/whop_sdk/types/webhook_list_item_events_item.rb @@ -32,6 +32,9 @@ module WebhookListItemEventsItem WITHDRAWAL_CREATED = "withdrawal.created" WITHDRAWAL_UPDATED = "withdrawal.updated" WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/types/webhook_testable_events_item.rb b/lib/whop_sdk/types/webhook_testable_events_item.rb index c4cc4fcb..8e0f59b5 100644 --- a/lib/whop_sdk/types/webhook_testable_events_item.rb +++ b/lib/whop_sdk/types/webhook_testable_events_item.rb @@ -32,6 +32,9 @@ module WebhookTestableEventsItem WITHDRAWAL_CREATED = "withdrawal.created" WITHDRAWAL_UPDATED = "withdrawal.updated" WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/types/withdrawal.rb b/lib/whop_sdk/types/withdrawal.rb deleted file mode 100644 index 81fac4b0..00000000 --- a/lib/whop_sdk/types/withdrawal.rb +++ /dev/null @@ -1,40 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # A withdrawal represents a request to transfer funds from a ledger account to an external payout method. - class Withdrawal < Internal::Types::Model - field :amount, -> { Integer }, optional: false, nullable: false - - field :created_at, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::Currencies }, optional: false, nullable: false - - field :error_code, -> { Whop_sdk::Types::PayoutErrorCodes }, optional: false, nullable: true - - field :error_message, -> { String }, optional: false, nullable: true - - field :estimated_availability, -> { String }, optional: false, nullable: true - - field :fee_amount, -> { Integer }, optional: false, nullable: false - - field :fee_type, -> { Whop_sdk::Types::WithdrawalFeeTypes }, optional: false, nullable: true - - field :id, -> { String }, optional: false, nullable: false - - field :ledger_account, -> { Whop_sdk::Types::WithdrawalLedgerAccount }, optional: false, nullable: false - - field :markup_fee, -> { Integer }, optional: false, nullable: false - - field :payout_request_id, -> { String }, optional: false, nullable: true - - field :payout_token, -> { Whop_sdk::Types::WithdrawalPayoutToken }, optional: false, nullable: true - - field :speed, -> { Whop_sdk::Types::WithdrawalSpeeds }, optional: false, nullable: false - - field :status, -> { Whop_sdk::Types::WithdrawalStatus }, optional: false, nullable: false - - field :trace_code, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_fee_types.rb b/lib/whop_sdk/types/withdrawal_fee_types.rb deleted file mode 100644 index 108be4a9..00000000 --- a/lib/whop_sdk/types/withdrawal_fee_types.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module WithdrawalFeeTypes - extend Whop_sdk::Internal::Types::Enum - - EXCLUSIVE = "exclusive" - INCLUSIVE = "inclusive" - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_ledger_account.rb b/lib/whop_sdk/types/withdrawal_ledger_account.rb deleted file mode 100644 index bfd06c1a..00000000 --- a/lib/whop_sdk/types/withdrawal_ledger_account.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The ledger account from which the withdrawal funds are sourced. - class WithdrawalLedgerAccount < Internal::Types::Model - field :company_id, -> { String }, optional: false, nullable: true - - field :id, -> { String }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_list_item.rb b/lib/whop_sdk/types/withdrawal_list_item.rb deleted file mode 100644 index af22624c..00000000 --- a/lib/whop_sdk/types/withdrawal_list_item.rb +++ /dev/null @@ -1,28 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # A withdrawal represents a request to transfer funds from a ledger account to an external payout method. - class WithdrawalListItem < Internal::Types::Model - field :amount, -> { Integer }, optional: false, nullable: false - - field :created_at, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::Currencies }, optional: false, nullable: false - - field :fee_amount, -> { Integer }, optional: false, nullable: false - - field :fee_type, -> { Whop_sdk::Types::WithdrawalFeeTypes }, optional: false, nullable: true - - field :id, -> { String }, optional: false, nullable: false - - field :markup_fee, -> { Integer }, optional: false, nullable: false - - field :payout_request_id, -> { String }, optional: false, nullable: true - - field :speed, -> { Whop_sdk::Types::WithdrawalSpeeds }, optional: false, nullable: false - - field :status, -> { Whop_sdk::Types::WithdrawalStatus }, optional: false, nullable: false - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_payout_token.rb b/lib/whop_sdk/types/withdrawal_payout_token.rb deleted file mode 100644 index 7a9cef52..00000000 --- a/lib/whop_sdk/types/withdrawal_payout_token.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - # The saved payout destination used for this withdrawal (e.g., a bank account or PayPal address). Null if no payout - # token was used. - class WithdrawalPayoutToken < Internal::Types::Model - field :created_at, -> { String }, optional: false, nullable: false - - field :destination_currency_code, -> { String }, optional: false, nullable: false - - field :id, -> { String }, optional: false, nullable: false - - field :nickname, -> { String }, optional: false, nullable: true - - field :payer_name, -> { String }, optional: false, nullable: true - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_speeds.rb b/lib/whop_sdk/types/withdrawal_speeds.rb deleted file mode 100644 index 37961a91..00000000 --- a/lib/whop_sdk/types/withdrawal_speeds.rb +++ /dev/null @@ -1,12 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module WithdrawalSpeeds - extend Whop_sdk::Internal::Types::Enum - - STANDARD = "standard" - INSTANT = "instant" - end - end -end diff --git a/lib/whop_sdk/types/withdrawal_status.rb b/lib/whop_sdk/types/withdrawal_status.rb deleted file mode 100644 index 74dab85a..00000000 --- a/lib/whop_sdk/types/withdrawal_status.rb +++ /dev/null @@ -1,17 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Types - module WithdrawalStatus - extend Whop_sdk::Internal::Types::Enum - - REQUESTED = "requested" - AWAITING_PAYMENT = "awaiting_payment" - IN_TRANSIT = "in_transit" - COMPLETED = "completed" - FAILED = "failed" - CANCELED = "canceled" - DENIED = "denied" - end - end -end diff --git a/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb b/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb index c021ddcd..613d9ea7 100644 --- a/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +++ b/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb @@ -30,9 +30,9 @@ module CreateWebhooksRequestEventsItem TRANSFER_CREATED = "transfer.created" TRANSFER_COMPLETED = "transfer.completed" TRANSFER_FAILED = "transfer.failed" - WITHDRAWAL_CREATED = "withdrawal.created" - WITHDRAWAL_UPDATED = "withdrawal.updated" - WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb b/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb index b875740f..a713b98a 100644 --- a/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +++ b/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb @@ -30,9 +30,9 @@ module UpdateWebhooksRequestEventsItem TRANSFER_CREATED = "transfer.created" TRANSFER_COMPLETED = "transfer.completed" TRANSFER_FAILED = "transfer.failed" - WITHDRAWAL_CREATED = "withdrawal.created" - WITHDRAWAL_UPDATED = "withdrawal.updated" - WITHDRAWAL_REVERSED = "withdrawal.reversed" + PAYOUT_CREATED = "payout.created" + PAYOUT_UPDATED = "payout.updated" + PAYOUT_REVERSED = "payout.reversed" CARD_TRANSACTION_CREATED = "card_transaction.created" CARD_TRANSACTION_UPDATED = "card_transaction.updated" CARD_TRANSACTION_COMPLETED = "card_transaction.completed" diff --git a/lib/whop_sdk/withdrawals/client.rb b/lib/whop_sdk/withdrawals/client.rb deleted file mode 100644 index 4165a957..00000000 --- a/lib/whop_sdk/withdrawals/client.rb +++ /dev/null @@ -1,212 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - class Client - # @param client [Whop_sdk::Internal::Http::RawClient] - # - # @return [void] - def initialize(client:) - @client = client - end - - # Returns a paginated list of withdrawals for a company, with optional sorting and date filtering. - # - # Required permissions: - # - `payout:withdrawal:read` - # - # @param request_options [Hash] - # @param params [Hash] - # @option request_options [String] :base_url - # @option request_options [Hash{String => Object}] :additional_headers - # @option request_options [Hash{String => Object}] :additional_query_parameters - # @option request_options [Hash{String => Object}] :additional_body_parameters - # @option request_options [Integer] :timeout_in_seconds - # @option params [String, nil] :after - # @option params [String, nil] :before - # @option params [Integer, nil] :first - # @option params [Integer, nil] :last - # @option params [String] :company_id - # @option params [Whop_sdk::Types::Direction, nil] :direction - # @option params [String, nil] :created_before - # @option params [String, nil] :created_after - # - # @example - # client.withdrawals.list( - # first: 42, - # last: 42, - # company_id: "biz_xxxxxxxxxxxxxx", - # created_before: "2023-12-01T05:00:00Z", - # created_after: "2023-12-01T05:00:00Z" - # ) - # - # @return [Whop_sdk::Withdrawals::Types::ListWithdrawalsResponse] - def list(request_options: {}, **params) - params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) - query_params = {} - query_params["after"] = params[:after] if params.key?(:after) - query_params["before"] = params[:before] if params.key?(:before) - query_params["first"] = params[:first] if params.key?(:first) - query_params["last"] = params[:last] if params.key?(:last) - query_params["company_id"] = params[:company_id] if params.key?(:company_id) - query_params["direction"] = params[:direction] if params.key?(:direction) - query_params["created_before"] = params[:created_before] if params.key?(:created_before) - query_params["created_after"] = params[:created_after] if params.key?(:created_after) - - Whop_sdk::Internal::CursorItemIterator.new( - cursor_field: :end_cursor, - item_field: :data, - initial_cursor: query_params["after"] - ) do |next_cursor| - query_params["after"] = next_cursor - request = Whop_sdk::Internal::JSON::Request.new( - base_url: request_options[:base_url], - method: "GET", - path: "withdrawals", - query: query_params, - request_options: request_options - ) - begin - response = @client.send(request) - rescue Net::HTTPRequestTimeout - raise Whop_sdk::Errors::TimeoutError - end - code = response.code.to_i - if code.between?(200, 299) - parsed_response = Whop_sdk::Withdrawals::Types::ListWithdrawalsResponse.load(response.body) - [parsed_response, response] - else - error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) - raise error_class.new(response.body, code: code) - end - end - end - - # Creates a withdrawal request for a ledger account - # - # Required permissions: - # - `payout:withdraw_funds` - # - `payout:destination:read` - # - # @param request_options [Hash] - # @param params [Whop_sdk::Withdrawals::Types::CreateWithdrawalsRequest] - # @option request_options [String] :base_url - # @option request_options [Hash{String => Object}] :additional_headers - # @option request_options [Hash{String => Object}] :additional_query_parameters - # @option request_options [Hash{String => Object}] :additional_body_parameters - # @option request_options [Integer] :timeout_in_seconds - # - # @example - # client.withdrawals.create( - # amount: 6.9, - # company_id: "biz_xxxxxxxxxxxxxx", - # currency: "usd" - # ) - # - # @return [Whop_sdk::Types::Withdrawal] - def create(request_options: {}, **params) - params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) - request = Whop_sdk::Internal::JSON::Request.new( - base_url: request_options[:base_url], - method: "POST", - path: "withdrawals", - body: Whop_sdk::Withdrawals::Types::CreateWithdrawalsRequest.new(params).to_h, - request_options: request_options - ) - begin - response = @client.send(request) - rescue Net::HTTPRequestTimeout - raise Whop_sdk::Errors::TimeoutError - end - code = response.code.to_i - if code.between?(200, 299) - Whop_sdk::Types::Withdrawal.load(response.body) - else - error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) - raise error_class.new(response.body, code: code) - end - end - - # Retrieves the details of an existing withdrawal. - # - # Required permissions: - # - `payout:withdrawal:read` - # - `payout:destination:read` - # - # @param request_options [Hash] - # @param params [Hash] - # @option request_options [String] :base_url - # @option request_options [Hash{String => Object}] :additional_headers - # @option request_options [Hash{String => Object}] :additional_query_parameters - # @option request_options [Hash{String => Object}] :additional_body_parameters - # @option request_options [Integer] :timeout_in_seconds - # @option params [String] :id - # - # @example - # client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx") - # - # @return [Whop_sdk::Types::Withdrawal] - def retrieve(request_options: {}, **params) - params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) - request = Whop_sdk::Internal::JSON::Request.new( - base_url: request_options[:base_url], - method: "GET", - path: "withdrawals/#{URI.encode_uri_component(params[:id].to_s)}", - request_options: request_options - ) - begin - response = @client.send(request) - rescue Net::HTTPRequestTimeout - raise Whop_sdk::Errors::TimeoutError - end - code = response.code.to_i - if code.between?(200, 299) - Whop_sdk::Types::Withdrawal.load(response.body) - else - error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) - raise error_class.new(response.body, code: code) - end - end - - # Generates a withdrawal PDF invoice and returns a temporary download URL. - # - # Required permissions: - # - `payout:withdrawal:read` - # - # @param request_options [Hash] - # @param params [Hash] - # @option request_options [String] :base_url - # @option request_options [Hash{String => Object}] :additional_headers - # @option request_options [Hash{String => Object}] :additional_query_parameters - # @option request_options [Hash{String => Object}] :additional_body_parameters - # @option request_options [Integer] :timeout_in_seconds - # @option params [String] :id - # - # @example - # client.withdrawals.generate_pdf(id: "wdrl_xxxxxxxxxxxxx") - # - # @return [Whop_sdk::Withdrawals::Types::GeneratePdfWithdrawalsResponse] - def generate_pdf(request_options: {}, **params) - params = Whop_sdk::Internal::Types::Utils.normalize_keys(params) - request = Whop_sdk::Internal::JSON::Request.new( - base_url: request_options[:base_url], - method: "POST", - path: "withdrawals/#{URI.encode_uri_component(params[:id].to_s)}/generate_pdf", - request_options: request_options - ) - begin - response = @client.send(request) - rescue Net::HTTPRequestTimeout - raise Whop_sdk::Errors::TimeoutError - end - code = response.code.to_i - if code.between?(200, 299) - Whop_sdk::Withdrawals::Types::GeneratePdfWithdrawalsResponse.load(response.body) - else - error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code) - raise error_class.new(response.body, code: code) - end - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/create_withdrawals_request.rb b/lib/whop_sdk/withdrawals/types/create_withdrawals_request.rb deleted file mode 100644 index 77d0d234..00000000 --- a/lib/whop_sdk/withdrawals/types/create_withdrawals_request.rb +++ /dev/null @@ -1,27 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - class CreateWithdrawalsRequest < Internal::Types::Model - field :acknowledge_bank_warning, -> { Internal::Types::Boolean }, optional: true, nullable: false - - field :amount, -> { Integer }, optional: false, nullable: false - - field :company_id, -> { String }, optional: false, nullable: false - - field :currency, -> { Whop_sdk::Types::Currencies }, optional: false, nullable: false - - field :idempotency_key, -> { String }, optional: true, nullable: false - - field :payout_method_id, -> { String }, optional: true, nullable: false - - field :platform_covers_fees, -> { Internal::Types::Boolean }, optional: true, nullable: false - - field :speed, -> { Whop_sdk::Types::WithdrawalSpeeds }, optional: true, nullable: false - - field :statement_descriptor, -> { String }, optional: true, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_request.rb b/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_request.rb deleted file mode 100644 index 731b7e49..00000000 --- a/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_request.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - class GeneratePdfWithdrawalsRequest < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_response.rb b/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_response.rb deleted file mode 100644 index 6f73e843..00000000 --- a/lib/whop_sdk/withdrawals/types/generate_pdf_withdrawals_response.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - # A temporary link to a generated withdrawal PDF invoice. - class GeneratePdfWithdrawalsResponse < Internal::Types::Model - field :expires_at, -> { String }, optional: false, nullable: false - - field :url, -> { String }, optional: false, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/list_withdrawals_request.rb b/lib/whop_sdk/withdrawals/types/list_withdrawals_request.rb deleted file mode 100644 index 13e3ff29..00000000 --- a/lib/whop_sdk/withdrawals/types/list_withdrawals_request.rb +++ /dev/null @@ -1,25 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - class ListWithdrawalsRequest < Internal::Types::Model - field :after, -> { String }, optional: true, nullable: false - - field :before, -> { String }, optional: true, nullable: false - - field :first, -> { Integer }, optional: true, nullable: false - - field :last, -> { Integer }, optional: true, nullable: false - - field :company_id, -> { String }, optional: false, nullable: false - - field :direction, -> { Whop_sdk::Types::Direction }, optional: true, nullable: false - - field :created_before, -> { String }, optional: true, nullable: false - - field :created_after, -> { String }, optional: true, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/list_withdrawals_response.rb b/lib/whop_sdk/withdrawals/types/list_withdrawals_response.rb deleted file mode 100644 index 83546f06..00000000 --- a/lib/whop_sdk/withdrawals/types/list_withdrawals_response.rb +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - # The connection type for PublicWithdrawal. - class ListWithdrawalsResponse < Internal::Types::Model - field :data, -> { Internal::Types::Array[Whop_sdk::Types::WithdrawalListItem] }, optional: false, nullable: false - - field :page_info, -> { Whop_sdk::Types::PageInfo }, optional: false, nullable: false - end - end - end -end diff --git a/lib/whop_sdk/withdrawals/types/retrieve_withdrawals_request.rb b/lib/whop_sdk/withdrawals/types/retrieve_withdrawals_request.rb deleted file mode 100644 index b5a72312..00000000 --- a/lib/whop_sdk/withdrawals/types/retrieve_withdrawals_request.rb +++ /dev/null @@ -1,11 +0,0 @@ -# frozen_string_literal: true - -module Whop_sdk - module Withdrawals - module Types - class RetrieveWithdrawalsRequest < Internal::Types::Model - field :id, -> { String }, optional: false, nullable: false - end - end - end -end diff --git a/reference.md b/reference.md index 645b8c2d..43a0bf29 100644 --- a/reference.md +++ b/reference.md @@ -1709,7 +1709,7 @@ client.ad_campaigns.delete(id: "id")
-Updates an ad campaign's editable fields (title, budget, schedule, bid strategy, special ad categories, and, before launch, budget optimization), and launches a draft campaign by setting status to active. Objective, budget type and desired cost per result are fixed at creation and cannot be changed. +Updates an ad campaign's editable fields (title, budget, schedule, bid strategy, special ad categories, and, before launch, budget type and budget optimization), and launches a draft campaign by setting status to active. Objective and desired cost per result are fixed at creation and cannot be changed.
@@ -1755,7 +1755,7 @@ client.ad_campaigns.update(id: "id")
-**budget_amount:** `Integer` — The campaign budget, in the account's currency. Interpreted as daily or lifetime per the campaign's existing budget type. +**budget_amount:** `Integer` — The campaign budget, in the account's currency. Interpreted as daily or lifetime per the campaign's budget type, including a budget_type sent in the same request.
@@ -1771,6 +1771,14 @@ client.ad_campaigns.update(id: "id")
+**budget_type:** `Whop_sdk::AdCampaigns::Types::UpdateAdCampaignsRequestBudgetType` — Whether `budget_amount` is spent per day (`daily`) or over the campaign's full run (`lifetime`). Only changeable while the campaign is a draft; send budget_amount in the same request so the amount lands on the new type. + +
+
+ +
+
+ **ends_at:** `String` — When the campaign stops delivering, as an ISO 8601 timestamp. Only for campaigns that own the budget.
@@ -3796,7 +3804,7 @@ client.ads.create
-**headlines:** `Internal::Types::Array[String]` — The headline variants shown on the ad. +**existing_post_id:** `String` — Promote a post you already published instead of uploading creatives — a Facebook post or Instagram media id. Mutually exclusive with creatives. Pair with post_source.
@@ -3804,7 +3812,7 @@ client.ads.create
-**lead_form:** `Whop_sdk::Ads::Types::CreateAdsRequestLeadForm` — Instant lead form for the ad. Only allowed when the ad group's conversion_location is an instant-form destination (instant_forms, instant_forms_and_messenger, website_and_instant_forms). Mutually exclusive with lead_form_id. +**headlines:** `Internal::Types::Array[String]` — The headline variants shown on the ad.
@@ -3812,7 +3820,7 @@ client.ads.create
-**lead_form_id:** `String` — Use an existing instant form instead of creating one — the form's platform ID, from a form already on the ad's Facebook page. Only allowed when the ad group's conversion_location is an instant-form destination. Mutually exclusive with lead_form. +**lead_form:** `Whop_sdk::Ads::Types::CreateAdsRequestLeadForm` — Instant lead form for the ad. Only allowed when the ad group's conversion_location is an instant-form destination (instant_forms, instant_forms_and_messenger, website_and_instant_forms). Mutually exclusive with lead_form_id.
@@ -3820,7 +3828,7 @@ client.ads.create
-**messaging_config:** `Whop_sdk::Ads::Types::CreateAdsRequestMessagingConfig` — Click-to-message welcome copy: the greeting (message) and the ice-breaker prompt (keyword). +**lead_form_id:** `String` — Use an existing instant form instead of creating one — the form's platform ID, from a form already on the ad's Facebook page. Only allowed when the ad group's conversion_location is an instant-form destination. Mutually exclusive with lead_form.
@@ -3828,7 +3836,7 @@ client.ads.create
-**multi_advertiser_ads:** `Internal::Types::Boolean` — Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true. +**messaging_config:** `Whop_sdk::Ads::Types::CreateAdsRequestMessagingConfig` — Click-to-message welcome copy: the greeting (message) and the ice-breaker prompt (keyword).
@@ -3836,7 +3844,7 @@ client.ads.create
-**post_id:** `String` — Promote an existing post instead of uploading creatives — a Facebook post or Instagram media id. Mutually exclusive with creatives. Pair with post_source. +**multi_advertiser_ads:** `Internal::Types::Boolean` — Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true.
@@ -3844,7 +3852,7 @@ client.ads.create
-**post_source:** `Whop_sdk::Ads::Types::CreateAdsRequestPostSource` — Identifies the network that owns `post_id`. The source is inferred from the ID shape when omitted. +**post_source:** `Whop_sdk::Ads::Types::CreateAdsRequestPostSource` — Identifies the network that owns `existing_post_id`. The source is inferred from the ID shape when omitted.
@@ -4134,7 +4142,7 @@ client.ads.update(id: "id")
-**headlines:** `Internal::Types::Array[String]` — The headline variants shown on the ad. +**existing_post_id:** `String` — Promote a post you already published instead of uploading creatives — a Facebook post or Instagram media id. Mutually exclusive with creatives. Pair with post_source.
@@ -4142,7 +4150,7 @@ client.ads.update(id: "id")
-**lead_form:** `Whop_sdk::Ads::Types::UpdateAdsRequestLeadForm` — Instant lead form for the ad. Only allowed when the ad group's conversion_location is an instant-form destination (instant_forms, instant_forms_and_messenger, website_and_instant_forms). Mutually exclusive with lead_form_id. +**headlines:** `Internal::Types::Array[String]` — The headline variants shown on the ad.
@@ -4150,7 +4158,7 @@ client.ads.update(id: "id")
-**lead_form_id:** `String` — Use an existing instant form instead of creating one — the form's platform ID, from a form already on the ad's Facebook page. Only allowed when the ad group's conversion_location is an instant-form destination. Mutually exclusive with lead_form. Replaces a stored lead_form. +**lead_form:** `Whop_sdk::Ads::Types::UpdateAdsRequestLeadForm` — Instant lead form for the ad. Only allowed when the ad group's conversion_location is an instant-form destination (instant_forms, instant_forms_and_messenger, website_and_instant_forms). Mutually exclusive with lead_form_id.
@@ -4158,7 +4166,7 @@ client.ads.update(id: "id")
-**messaging_config:** `Whop_sdk::Ads::Types::UpdateAdsRequestMessagingConfig` — Click-to-message welcome copy: the greeting (message) and the ice-breaker prompt (keyword). +**lead_form_id:** `String` — Use an existing instant form instead of creating one — the form's platform ID, from a form already on the ad's Facebook page. Only allowed when the ad group's conversion_location is an instant-form destination. Mutually exclusive with lead_form. Replaces a stored lead_form.
@@ -4166,7 +4174,7 @@ client.ads.update(id: "id")
-**multi_advertiser_ads:** `Internal::Types::Boolean` — Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true. +**messaging_config:** `Whop_sdk::Ads::Types::UpdateAdsRequestMessagingConfig` — Click-to-message welcome copy: the greeting (message) and the ice-breaker prompt (keyword).
@@ -4174,7 +4182,7 @@ client.ads.update(id: "id")
-**post_id:** `String` — Promote an existing post instead of uploading creatives — a Facebook post or Instagram media id. Mutually exclusive with creatives. Pair with post_source. +**multi_advertiser_ads:** `Internal::Types::Boolean` — Whether the ad can appear alongside other advertisers' ads in the same unit. Defaults to true.
@@ -4182,7 +4190,7 @@ client.ads.update(id: "id")
-**post_source:** `Whop_sdk::Ads::Types::UpdateAdsRequestPostSource` — Identifies the network that owns `post_id`. The source is inferred from the ID shape when omitted. +**post_source:** `Whop_sdk::Ads::Types::UpdateAdsRequestPostSource` — Identifies the network that owns `existing_post_id`. The source is inferred from the ID shape when omitted.
@@ -10369,173 +10377,6 @@ client.checkout_configurations.delete(id: "id")
- - - - -## Checkout Sessions -
client.checkout_sessions.create(request) -> Whop_sdk::Types::CheckoutSession -
-
- -#### 📝 Description - -
-
- -
-
- -Opens a checkout session. No credentials required. Pass exactly one of `items`, `checkout_configuration`, or `link`. The response includes `client_secret` once; later calls authenticate with it. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```ruby -client.checkout_sessions.create -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**affiliate_code:** `String` — The affiliate this checkout is attributed to. Write-once — set it here or never. - -
-
- -
-
- -**attribution:** `Internal::Types::Hash[String, Object]` — String-to-string acquisition context. Recognized keys: `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `tracking_link_id`, `funnel_id`, `source`, `country`; anything else is dropped. - -
-
- -
-
- -**checkout_configuration:** `String` — A seller's checkout configuration (`ch_…`) to open this checkout from. Its plan, mode, affiliate code, metadata, redirect URL, 3DS level and payment method configuration seed the session; anything you also send explicitly wins. - -
-
- -
-
- -**items:** `Internal::Types::Array[Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestItemsItem]` — What the buyer is purchasing. Exactly one entry today — more are refused until multi-item checkout ships; the array shape is the forward contract. Alongside a `checkout_configuration` or `link` it may only name that mount's own plan, where it sets quantity. - -
-
- -
-
- -**link:** `String` — Any checkout link the seller has shared, resolved for you: a plan ID, a checkout configuration ID, a vanity short link (send `page_route` with it), a membership transfer code, or a checkout link the seller handed out earlier. A link that is not a checkout link is refused with a coded message rather than a bare not-found. - -
-
- -
-
- -**metadata:** `Internal::Types::Hash[String, String]` — Free-form string-to-string map, at most 40 keys. Whop never interprets it. - -
-
- -
-
- -**mode:** `Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestMode` — Defaults to the checkout configuration's mode, then `payment`. `setup` sessions are not yet available and are refused. - -
-
- -
-
- -**origin:** `String` — Where this checkout is being opened from — the scheme and host of your page, with no path (`https://shop.example.com`). Ignored when the request carries a browser `Origin` header, which is used instead. Recorded against the session as acquisition context. - -
-
- -
-
- -**page_route:** `String` — The product route a vanity `link` belongs to — the `pageRoute` in the seller's shared URL. - -
-
- -
-
- -**password:** `String` — The password for a password-protected plan. Right, and the gate is cleared for the session's whole life; wrong or omitted, and the session still opens — it publishes a `custom_password` requirement, the answer arrives through update, and confirm refuses until it is right. - -
-
- -
-
- -**promo_code:** `String` — A promo code to apply to the quote. - -
-
- -
-
- -**return_url:** `String` — Where the buyer lands after an off-site payment step. Absolute https URL without credentials. - -
-
- -
-
- -**top_up_membership:** `String` — An existing membership (`mem_…`) this checkout pays against instead of creating a new one — the buyer pays the plan's price again onto something they already own. Ownership is checked at confirm, against the buyer who confirms: a membership they do not own is refused as not found. Cannot accompany a membership transfer link. - -
-
- -
-
- -**tracking_link_ids_by_account:** `Internal::Types::Hash[String, String]` — First-party tracking-link candidates keyed by account ID. Ignored outside Whop's hosted checkout; an explicit `attribution.tracking_link_id` wins. - -
-
- -
-
- -**request_options:** `Whop_sdk::CheckoutSessions::RequestOptions` - -
-
-
-
- -
@@ -17408,6 +17249,116 @@ client.fee_markups.delete(id: "id") ## Files +
client.files.list() -> Whop_sdk::Files::Types::ListFilesResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Returns the files with the given IDs, newest first — fetch a batch in one request instead of retrieving each file individually. Only files you created are returned; IDs that do not exist, or that another credential created, are omitted. A request for up to 100 IDs answers in a single page by default; a larger batch pages at up to 100 files per response — follow `page_info` with the same `file_ids` to walk the rest. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.files.list(file_ids: ["file_xxxxxxxxxxxxx"]) +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**file_ids:** `String` — The files to return, each prefixed `file_`. Repeat the parameter to pass several, up to 250 per request. Batches of up to 100 answer in one page by default; larger batches page at up to 100 per response. + +
+
+ +
+
+ +**order:** `Whop_sdk::Files::Types::ListFilesRequestOrder` — The field to sort by. + +
+
+ +
+
+ +**direction:** `Whop_sdk::Files::Types::ListFilesRequestDirection` — The sort direction. + +
+
+ +
+
+ +**first:** `Integer` — The number of files to return. + +
+
+ +
+
+ +**after:** `String` — A cursor; returns files after this position. + +
+
+ +
+
+ +**last:** `Integer` — The number of files to return from the end of the range. + +
+
+ +
+
+ +**before:** `String` — A cursor; returns files before this position. + +
+
+ +
+
+ +**request_options:** `Whop_sdk::Files::RequestOptions` + +
+
+
+
+ + +
+
+
+
client.files.create(request) -> Whop_sdk::Types::File
@@ -24826,6 +24777,84 @@ client.payouts.retrieve(id: "id")
+ + +
+ +
client.payouts.cancel(id:) -> Whop_sdk::Payouts::Types::CancelPayoutsResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Cancels a payout that is still in review and returns the funds, fees included, to the balance. A payout can be canceled while its status is `in_review`. A `requested` payout is still being prepared (its funds may be converting) and answers 409 until it reaches review; from `processing` on, the money is on its way and the answer is 409 with error type `not_cancelable`. Canceling a payout that is already canceled succeeds and returns it unchanged. +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```ruby +client.payouts.cancel(id: "id") +``` +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**id:** `String` — Payout ID, prefixed `wdrl_`, or the `cofr_` payout request ID returned by `POST /payouts` — both cancel the same payout. + +
+
+ +
+
+ +**account_id:** `String` — Owning account ID, prefixed `biz_`. Provide exactly one of `account_id` or `user_id`. + +
+
+ +
+
+ +**user_id:** `String` — Owning user ID, prefixed `user_`. Provide exactly one of `account_id` or `user_id`. + +
+
+ +
+
+ +**request_options:** `Whop_sdk::Payouts::RequestOptions` + +
+
+
+
+ +
@@ -34473,389 +34502,37 @@ client.webhooks.delete(id: "id")
-**request_options:** `Whop_sdk::Webhooks::RequestOptions` - -
-
- - - - - - - - -
client.webhooks.update(id:, request) -> Whop_sdk::Types::Webhook -
-
- -#### 📝 Description - -
-
- -
-
- -Updates a webhook endpoint's URL, subscribed events, pinned payload version, or enabled state. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```ruby -client.webhooks.update(id: "id") -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Webhook ID, prefixed `hook_`. - -
-
- -
-
- -**api_version_date:** `String` — The dated API version (Api-Version-Date) to pin this webhook's payloads to. Only valid for `v1` webhooks. Omit to leave the current pin unchanged, or pass `null` to unpin and track the current payload shape. - -
-
- -
-
- -**child_resource_events:** `Internal::Types::Boolean` — Whether or not to send events for child resources. - -
-
- -
-
- -**enabled:** `Internal::Types::Boolean` — Whether or not the webhook is enabled. - -
-
- -
-
- -**events:** `Internal::Types::Array[Whop_sdk::Webhooks::Types::UpdateWebhooksRequestEventsItem]` — The events to send the webhook for, in dot form (for example `payment.succeeded`). - -
-
- -
-
- -**url:** `String` — The URL to send the webhook to. - -
-
- -
-
- -**request_options:** `Whop_sdk::Webhooks::RequestOptions` - -
-
-
-
- - -
-
-
- -
client.webhooks.list_deliveries(id:) -> Whop_sdk::Webhooks::Types::ListDeliveriesWebhooksResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Returns a paginated list of delivery attempts for a webhook, ordered by most recent first. Includes the request payload, response body, response code, and timing for each attempt. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```ruby -client.webhooks.list_deliveries(id: "id") -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Webhook ID, prefixed `hook_`. - -
-
- -
-
- -**first:** `Integer` — The number of deliveries to return (default 50, max 100). - -
-
- -
-
- -**after:** `String` — A cursor; returns deliveries after this position. - -
-
- -
-
- -**request_options:** `Whop_sdk::Webhooks::RequestOptions` - -
-
-
-
- - -
-
-
- -
client.webhooks.replay_delivery(id:, delivery_id:, request) -> Whop_sdk::Webhooks::Types::ReplayDeliveryWebhooksResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result. By default the replay keeps the original `webhook-id`, so consumers that deduplicate on it can drop events they already processed. Pass `regenerate_id` to re-send under a freshly generated `webhook-id` instead, so a deduplicating consumer processes the replay as a new message. Only available for enabled webhooks on API version v1; deliveries are retained for 30 days. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```ruby -client.webhooks.replay_delivery( - id: "id", - delivery_id: "delivery_id" -) -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Webhook ID, prefixed `hook_`. - -
-
- -
-
- -**delivery_id:** `String` — Delivery ID, prefixed `whdel_`, from the List Deliveries endpoint. - -
-
- -
-
- -**regenerate_id:** `Internal::Types::Boolean` — Re-send the delivery under a freshly generated `webhook-id` (in both the envelope and the signed headers) instead of the original one. Defaults to false. Use this when your endpoint deduplicates on `webhook-id` and you want it to process the replay as a new message. - -
-
- -
-
- -**request_options:** `Whop_sdk::Webhooks::RequestOptions` - -
-
-
-
- - -
-
-
- -
client.webhooks.replay(id:, request) -> Whop_sdk::Webhooks::Types::ReplayWebhooksResponse -
-
- -#### 📝 Description - -
-
- -
-
- -Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to messages whose most recent delivery attempt failed. Fire and forget: nothing about the replay is stored, and each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent once, by default with its original `webhook-id`, so consumers that deduplicate are unaffected; pass `regenerate_ids` to re-send under freshly generated ids instead. Only available for enabled webhooks on API version v1; deliveries are retained for 30 days. -
-
-
-
- -#### 🔌 Usage - -
-
- -
-
- -```ruby -client.webhooks.replay( - id: "id", - sent_after: "2026-01-01T12:00:00.000Z" -) -``` -
-
-
-
- -#### ⚙️ Parameters - -
-
- -
-
- -**id:** `String` — Webhook ID, prefixed `hook_`. - -
-
- -
-
- -**events:** `Internal::Types::Array[String]` — Only replay these event types, in dot form (for example `payment.succeeded`). Omit to include every event. +**request_options:** `Whop_sdk::Webhooks::RequestOptions`
- -
-
- -**failed_only:** `Internal::Types::Boolean` — Only replay messages whose most recent delivery attempt in the window failed. Defaults to false. Best-effort: a message whose attempts span processing batches can still be re-sent — replays keep the original `webhook-id` by default, so consumers that deduplicate are unaffected. -
-
-
-**regenerate_ids:** `Internal::Types::Boolean` — Re-send each replayed message under a freshly generated `webhook-id` (in both the envelope and the signed headers) instead of its original one. Defaults to false. Use this when your endpoint deduplicates on `webhook-id` and you want it to process the replays as new messages. -
+
+
client.webhooks.update(id:, request) -> Whop_sdk::Types::Webhook
-**sent_after:** `String` — Start of the delivery window to replay, as an ISO 8601 timestamp. Clamped to the 30-day delivery retention. - -
-
+#### 📝 Description
-**sent_before:** `String` — End of the delivery window to replay, as an ISO 8601 timestamp. Defaults to now. - -
-
-
-**request_options:** `Whop_sdk::Webhooks::RequestOptions` - -
-
+Updates a webhook endpoint's URL, subscribed events, pinned payload version, or enabled state. - - -
- -
client.webhooks.test(id:, request) -> Whop_sdk::Webhooks::Types::TestWebhooksResponse -
-
-#### 📝 Description +#### 🔌 Usage
@@ -34863,13 +34540,15 @@ client.webhooks.replay(
-Sends a sample payload for the given event to the webhook's URL and returns the delivery result. +```ruby +client.webhooks.update(id: "id") +```
-#### 🔌 Usage +#### ⚙️ Parameters
@@ -34877,26 +34556,39 @@ Sends a sample payload for the given event to the webhook's URL and returns the
-```ruby -client.webhooks.test( - id: "id", - event: "payment.succeeded" -) -``` +**id:** `String` — Webhook ID, prefixed `hook_`. +
+ +
+
+ +**api_version_date:** `String` — The dated API version (Api-Version-Date) to pin this webhook's payloads to. Only valid for `v1` webhooks. Omit to leave the current pin unchanged, or pass `null` to unpin and track the current payload shape. +
-#### ⚙️ Parameters +
+
+ +**child_resource_events:** `Internal::Types::Boolean` — Whether or not to send events for child resources. + +
+
+**enabled:** `Internal::Types::Boolean` — Whether or not the webhook is enabled. + +
+
+
-**id:** `String` — Webhook ID, prefixed `hook_`. +**events:** `Internal::Types::Array[Whop_sdk::Webhooks::Types::UpdateWebhooksRequestEventsItem]` — The events to send the webhook for, in dot form (for example `payment.succeeded`).
@@ -34904,7 +34596,7 @@ client.webhooks.test(
-**event:** `String` — The event to test the webhook for, in dot form (for example `payment.succeeded`). +**url:** `String` — The URL to send the webhook to.
@@ -34924,7 +34616,7 @@ client.webhooks.test(
-
client.webhooks.deliveries_webhook(webhook_id:) -> Whop_sdk::Webhooks::Types::DeliveriesWebhookResponse +
client.webhooks.list_deliveries(id:) -> Whop_sdk::Webhooks::Types::ListDeliveriesWebhooksResponse
@@ -34937,9 +34629,6 @@ client.webhooks.test(
Returns a paginated list of delivery attempts for a webhook, ordered by most recent first. Includes the request payload, response body, response code, and timing for each attempt. - -Required permissions: - - `developer:manage_webhook`
@@ -34954,11 +34643,7 @@ Required permissions:
```ruby -client.webhooks.deliveries_webhook( - webhook_id: "webhook_id", - first: 42, - last: 42 -) +client.webhooks.list_deliveries(id: "id") ```
@@ -34973,23 +34658,7 @@ client.webhooks.deliveries_webhook(
-**webhook_id:** `String` — The unique identifier of the webhook to list deliveries for. - -
-
- -
-
- -**after:** `String` — Returns the elements in the list that come after the specified cursor. - -
-
- -
-
- -**before:** `String` — Returns the elements in the list that come before the specified cursor. +**id:** `String` — Webhook ID, prefixed `hook_`.
@@ -34997,7 +34666,7 @@ client.webhooks.deliveries_webhook(
-**first:** `Integer` — Returns the first _n_ elements from the list. +**first:** `Integer` — The number of deliveries to return (default 50, max 100).
@@ -35005,7 +34674,7 @@ client.webhooks.deliveries_webhook(
-**last:** `Integer` — Returns the last _n_ elements from the list. +**after:** `String` — A cursor; returns deliveries after this position.
@@ -35025,8 +34694,7 @@ client.webhooks.deliveries_webhook(
-## Withdrawals -
client.withdrawals.list() -> Whop_sdk::Withdrawals::Types::ListWithdrawalsResponse +
client.webhooks.replay_delivery(id:, delivery_id:, request) -> Whop_sdk::Webhooks::Types::ReplayDeliveryWebhooksResponse
@@ -35038,10 +34706,7 @@ client.webhooks.deliveries_webhook(
-Returns a paginated list of withdrawals for a company, with optional sorting and date filtering. - -Required permissions: - - `payout:withdrawal:read` +Re-sends the exact payload of a past delivery to the webhook's current URL and returns the delivery result. By default the replay keeps the original `webhook-id`, so consumers that deduplicate on it can drop events they already processed. Pass `regenerate_id` to re-send under a freshly generated `webhook-id` instead, so a deduplicating consumer processes the replay as a new message. Only available for enabled webhooks on API version v1; deliveries are retained for 30 days.
@@ -35056,12 +34721,9 @@ Required permissions:
```ruby -client.withdrawals.list( - first: 42, - last: 42, - company_id: "biz_xxxxxxxxxxxxxx", - created_before: "2023-12-01T05:00:00Z", - created_after: "2023-12-01T05:00:00Z" +client.webhooks.replay_delivery( + id: "id", + delivery_id: "delivery_id" ) ```
@@ -35077,47 +34739,7 @@ client.withdrawals.list(
-**after:** `String` — Returns the elements in the list that come after the specified cursor. - -
-
- -
-
- -**before:** `String` — Returns the elements in the list that come before the specified cursor. - -
-
- -
-
- -**first:** `Integer` — Returns the first _n_ elements from the list. - -
-
- -
-
- -**last:** `Integer` — Returns the last _n_ elements from the list. - -
-
- -
-
- -**company_id:** `String` — The unique identifier of the company to list withdrawals for. - -
-
- -
-
- -**direction:** `Whop_sdk::Types::Direction` +**id:** `String` — Webhook ID, prefixed `hook_`.
@@ -35125,7 +34747,7 @@ client.withdrawals.list(
-**created_before:** `String` — Only return withdrawals created before this timestamp. +**delivery_id:** `String` — Delivery ID, prefixed `whdel_`, from the List Deliveries endpoint.
@@ -35133,7 +34755,7 @@ client.withdrawals.list(
-**created_after:** `String` — Only return withdrawals created after this timestamp. +**regenerate_id:** `Internal::Types::Boolean` — Re-send the delivery under a freshly generated `webhook-id` (in both the envelope and the signed headers) instead of the original one. Defaults to false. Use this when your endpoint deduplicates on `webhook-id` and you want it to process the replay as a new message.
@@ -35141,7 +34763,7 @@ client.withdrawals.list(
-**request_options:** `Whop_sdk::Withdrawals::RequestOptions` +**request_options:** `Whop_sdk::Webhooks::RequestOptions`
@@ -35153,7 +34775,7 @@ client.withdrawals.list(
-
client.withdrawals.create(request) -> Whop_sdk::Types::Withdrawal +
client.webhooks.replay(id:, request) -> Whop_sdk::Webhooks::Types::ReplayWebhooksResponse
@@ -35165,11 +34787,7 @@ client.withdrawals.list(
-Creates a withdrawal request for a ledger account - -Required permissions: - - `payout:withdraw_funds` - - `payout:destination:read` +Re-sends the webhook's past deliveries within a time window, optionally limited to specific events or to messages whose most recent delivery attempt failed. Fire and forget: nothing about the replay is stored, and each re-send appears as a new entry in the webhook's delivery log. Each matching message is re-sent once, by default with its original `webhook-id`, so consumers that deduplicate are unaffected; pass `regenerate_ids` to re-send under freshly generated ids instead. Only available for enabled webhooks on API version v1; deliveries are retained for 30 days.
@@ -35184,10 +34802,9 @@ Required permissions:
```ruby -client.withdrawals.create( - amount: 6.9, - company_id: "biz_xxxxxxxxxxxxxx", - currency: "usd" +client.webhooks.replay( + id: "id", + sent_after: "2026-01-01T12:00:00.000Z" ) ```
@@ -35203,31 +34820,7 @@ client.withdrawals.create(
-**acknowledge_bank_warning:** `Internal::Types::Boolean` — Set to true to continue when the bank could not confirm the account holder's name, or false to be refused in that case so the creator can fix the account or link their bank first. Omitting the argument skips the warning gate — a client that cannot show the warning keeps its pre-gate behavior. - -
-
- -
-
- -**amount:** `Integer` — The amount to withdraw in the specified currency - -
-
- -
-
- -**company_id:** `String` — The ID of the company to withdraw from. - -
-
- -
-
- -**currency:** `Whop_sdk::Types::Currencies` — The currency that is being withdrawn. +**id:** `String` — Webhook ID, prefixed `hook_`.
@@ -35235,7 +34828,7 @@ client.withdrawals.create(
-**idempotency_key:** `String` — A client-generated key that makes retries safe. Retrying with the same key returns the original withdrawal instead of creating a second one. +**events:** `Internal::Types::Array[String]` — Only replay these event types, in dot form (for example `payment.succeeded`). Omit to include every event.
@@ -35243,7 +34836,7 @@ client.withdrawals.create(
-**payout_method_id:** `String` — The ID of the payout method to use for the withdrawal. +**failed_only:** `Internal::Types::Boolean` — Only replay messages whose most recent delivery attempt in the window failed. Defaults to false. Best-effort: a message whose attempts span processing batches can still be re-sent — replays keep the original `webhook-id` by default, so consumers that deduplicate are unaffected.
@@ -35251,7 +34844,7 @@ client.withdrawals.create(
-**platform_covers_fees:** `Internal::Types::Boolean` — Whether the platform covers the payout fees. +**regenerate_ids:** `Internal::Types::Boolean` — Re-send each replayed message under a freshly generated `webhook-id` (in both the envelope and the signed headers) instead of its original one. Defaults to false. Use this when your endpoint deduplicates on `webhook-id` and you want it to process the replays as new messages.
@@ -35259,7 +34852,7 @@ client.withdrawals.create(
-**speed:** `Whop_sdk::Types::WithdrawalSpeeds` — The processing speed for the withdrawal. Either standard or instant. +**sent_after:** `String` — Start of the delivery window to replay, as an ISO 8601 timestamp. Clamped to the 30-day delivery retention.
@@ -35267,7 +34860,7 @@ client.withdrawals.create(
-**statement_descriptor:** `String` — Custom statement descriptor for the withdrawal. Must be between 5 and 22 characters and contain only alphanumeric characters. +**sent_before:** `String` — End of the delivery window to replay, as an ISO 8601 timestamp. Defaults to now.
@@ -35275,7 +34868,7 @@ client.withdrawals.create(
-**request_options:** `Whop_sdk::Withdrawals::RequestOptions` +**request_options:** `Whop_sdk::Webhooks::RequestOptions`
@@ -35287,7 +34880,7 @@ client.withdrawals.create(
-
client.withdrawals.retrieve(id:) -> Whop_sdk::Types::Withdrawal +
client.webhooks.test(id:, request) -> Whop_sdk::Webhooks::Types::TestWebhooksResponse
@@ -35299,11 +34892,7 @@ client.withdrawals.create(
-Retrieves the details of an existing withdrawal. - -Required permissions: - - `payout:withdrawal:read` - - `payout:destination:read` +Sends a sample payload for the given event to the webhook's URL and returns the delivery result.
@@ -35318,7 +34907,10 @@ Required permissions:
```ruby -client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx") +client.webhooks.test( + id: "id", + event: "payment.succeeded" +) ```
@@ -35333,7 +34925,7 @@ client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx")
-**id:** `String` — The unique identifier of the withdrawal to retrieve. +**id:** `String` — Webhook ID, prefixed `hook_`.
@@ -35341,7 +34933,15 @@ client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx")
-**request_options:** `Whop_sdk::Withdrawals::RequestOptions` +**event:** `String` — The event to test the webhook for, in dot form (for example `payment.succeeded`). + +
+
+ +
+
+ +**request_options:** `Whop_sdk::Webhooks::RequestOptions`
@@ -35353,7 +34953,7 @@ client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx")
-
client.withdrawals.generate_pdf(id:) -> Whop_sdk::Withdrawals::Types::GeneratePdfWithdrawalsResponse +
client.webhooks.deliveries_webhook(webhook_id:) -> Whop_sdk::Webhooks::Types::DeliveriesWebhookResponse
@@ -35365,10 +34965,10 @@ client.withdrawals.retrieve(id: "wdrl_xxxxxxxxxxxxx")
-Generates a withdrawal PDF invoice and returns a temporary download URL. +Returns a paginated list of delivery attempts for a webhook, ordered by most recent first. Includes the request payload, response body, response code, and timing for each attempt. Required permissions: - - `payout:withdrawal:read` + - `developer:manage_webhook`
@@ -35383,7 +34983,11 @@ Required permissions:
```ruby -client.withdrawals.generate_pdf(id: "wdrl_xxxxxxxxxxxxx") +client.webhooks.deliveries_webhook( + webhook_id: "webhook_id", + first: 42, + last: 42 +) ```
@@ -35398,7 +35002,7 @@ client.withdrawals.generate_pdf(id: "wdrl_xxxxxxxxxxxxx")
-**id:** `String` — The unique identifier of the withdrawal to generate a PDF for. +**webhook_id:** `String` — The unique identifier of the webhook to list deliveries for.
@@ -35406,7 +35010,39 @@ client.withdrawals.generate_pdf(id: "wdrl_xxxxxxxxxxxxx")
-**request_options:** `Whop_sdk::Withdrawals::RequestOptions` +**after:** `String` — Returns the elements in the list that come after the specified cursor. + +
+
+ +
+
+ +**before:** `String` — Returns the elements in the list that come before the specified cursor. + +
+
+ +
+
+ +**first:** `Integer` — Returns the first _n_ elements from the list. + +
+
+ +
+
+ +**last:** `Integer` — Returns the last _n_ elements from the list. + +
+
+ +
+
+ +**request_options:** `Whop_sdk::Webhooks::RequestOptions`
@@ -36856,7 +36492,7 @@ client.partners.businesses.earnings.list(id: "id")
-Lists the bank accounts, wallets, and crypto addresses an account or user can withdraw to, newest first. +Lists the bank accounts, wallets, and crypto addresses an account or user can pay out to, newest first.
@@ -36910,7 +36546,7 @@ client.payouts.methods.list
-**amount:** `Integer` — Optional withdrawal amount in whole currency units, for example `250.00`. When provided, each method includes a quote with the estimated fee, amount received, and delivery date for that amount. +**amount:** `Integer` — Optional payout amount in whole currency units, for example `250.00`. When provided, each method includes a quote with the estimated fee, amount received, and delivery date for that amount.
@@ -36990,7 +36626,7 @@ client.payouts.methods.list
-Saves a new place an account or user can withdraw to. Sensitive details are vaulted in transit and never stored raw. +Saves a new place an account or user can pay out to. Sensitive details are vaulted in transit and never stored raw.
@@ -37290,7 +36926,7 @@ client.payouts.supported_methods.list
-**amount:** `Integer` — Optional withdrawal amount in whole currency units, for example `250.00`. When provided, each destination includes per-currency fee and delivery quotes. +**amount:** `Integer` — Optional payout amount in whole currency units, for example `250.00`. When provided, each destination includes per-currency fee and delivery quotes.