whop_sdk 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +18 -2
- data/lib/whop_sdk/internal/transport/base_client.rb +2 -0
- data/lib/whop_sdk/internal/type/union.rb +6 -6
- data/lib/whop_sdk/models/account.rb +144 -0
- data/lib/whop_sdk/models/account_create_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_params.rb +34 -0
- data/lib/whop_sdk/models/account_list_response.rb +66 -0
- data/lib/whop_sdk/models/account_me_params.rb +14 -0
- data/lib/whop_sdk/models/account_retrieve_params.rb +20 -0
- data/lib/whop_sdk/models/account_social_link.rb +60 -0
- data/lib/whop_sdk/models/account_update_params.rb +146 -0
- data/lib/whop_sdk/models/account_wallet.rb +46 -0
- data/lib/whop_sdk/models/{ad_retrieve_response.rb → ad.rb} +15 -45
- data/lib/whop_sdk/models/ad_budget_type.rb +16 -0
- data/lib/whop_sdk/models/{ad_campaign_pause_response.rb → ad_campaign.rb} +37 -86
- data/lib/whop_sdk/models/ad_campaign_list_params.rb +12 -27
- data/lib/whop_sdk/models/ad_campaign_list_response.rb +9 -52
- data/lib/whop_sdk/models/ad_campaign_platform.rb +16 -0
- data/lib/whop_sdk/models/ad_campaign_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group.rb +97 -0
- data/lib/whop_sdk/models/ad_group_list_params.rb +16 -19
- data/lib/whop_sdk/models/ad_group_list_response.rb +30 -51
- data/lib/whop_sdk/models/ad_group_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_status.rb +20 -0
- data/lib/whop_sdk/models/ad_group_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_group_update_params.rb +8 -32
- data/lib/whop_sdk/models/ad_list_params.rb +57 -12
- data/lib/whop_sdk/models/ad_list_response.rb +45 -31
- data/lib/whop_sdk/models/ad_pause_params.rb +20 -0
- data/lib/whop_sdk/models/ad_report_retrieve_params.rb +45 -15
- data/lib/whop_sdk/models/ad_report_retrieve_response.rb +378 -105
- data/lib/whop_sdk/models/ad_unpause_params.rb +20 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +22 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +26 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +24 -1
- data/lib/whop_sdk/models/currency.rb +3 -0
- data/lib/whop_sdk/models/deposit_create_params.rb +85 -0
- data/lib/whop_sdk/models/deposit_create_response.rb +102 -0
- data/lib/whop_sdk/models/dispute.rb +6 -7
- data/lib/whop_sdk/models/dispute_alert_created_webhook_event.rb +4 -4
- data/lib/whop_sdk/models/dispute_alert_retrieve_response.rb +4 -4
- data/lib/whop_sdk/models/dispute_list_response.rb +2 -3
- data/lib/whop_sdk/models/external_ad_status.rb +20 -0
- data/lib/whop_sdk/models/file_create_params.rb +3 -15
- data/lib/whop_sdk/models/file_create_response.rb +3 -16
- data/lib/whop_sdk/models/file_retrieve_response.rb +3 -16
- data/lib/whop_sdk/models/file_visibility.rb +17 -0
- data/lib/whop_sdk/models/granularities.rb +16 -0
- data/lib/whop_sdk/models/identity_profile_approved_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_needs_action_webhook_event.rb +432 -0
- data/lib/whop_sdk/models/identity_profile_rejected_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/identity_profile_updated_webhook_event.rb +431 -0
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +65 -1
- data/lib/whop_sdk/models/member_list_response.rb +3 -2
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -2
- data/lib/whop_sdk/models/membership.rb +23 -2
- data/lib/whop_sdk/models/membership_list_response.rb +23 -2
- data/lib/whop_sdk/models/payment.rb +47 -22
- data/lib/whop_sdk/models/payment_list_params.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +40 -13
- data/lib/whop_sdk/models/plan.rb +31 -1
- data/lib/whop_sdk/models/plan_create_params.rb +30 -1
- data/lib/whop_sdk/models/plan_list_response.rb +31 -1
- data/lib/whop_sdk/models/plan_update_params.rb +30 -1
- data/lib/whop_sdk/models/product.rb +10 -1
- data/lib/whop_sdk/models/product_create_params.rb +11 -1
- data/lib/whop_sdk/models/product_list_item.rb +10 -1
- data/lib/whop_sdk/models/product_update_params.rb +11 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/refund_retrieve_response.rb +82 -5
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +84 -5
- data/lib/whop_sdk/models/resolution_center_case_platform_response.rb +0 -1
- data/lib/whop_sdk/models/result_label_keys.rb +38 -0
- data/lib/whop_sdk/models/swap_create_quote_params.rb +102 -0
- data/lib/whop_sdk/models/swap_create_quote_response.rb +104 -0
- data/lib/whop_sdk/models/transfer_create_params.rb +3 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +41 -33
- data/lib/whop_sdk/models/wallet_balance_params.rb +20 -0
- data/lib/whop_sdk/models/wallet_balance_response.rb +84 -0
- data/lib/whop_sdk/models/wallet_list_params.rb +14 -0
- data/lib/whop_sdk/models/wallet_list_response.rb +38 -0
- data/lib/whop_sdk/models/wallet_send_params.rb +37 -0
- data/lib/whop_sdk/models/wallet_send_response.rb +90 -0
- data/lib/whop_sdk/models/webhook_event.rb +4 -0
- data/lib/whop_sdk/models.rb +64 -0
- data/lib/whop_sdk/resources/accounts.rb +168 -0
- data/lib/whop_sdk/resources/ad_campaigns.rb +13 -13
- data/lib/whop_sdk/resources/ad_groups.rb +63 -8
- data/lib/whop_sdk/resources/ad_reports.rb +14 -8
- data/lib/whop_sdk/resources/ads.rb +66 -4
- data/lib/whop_sdk/resources/deposits.rb +46 -0
- data/lib/whop_sdk/resources/files.rb +1 -1
- data/lib/whop_sdk/resources/payments.rb +3 -1
- data/lib/whop_sdk/resources/plans.rb +10 -2
- data/lib/whop_sdk/resources/products.rb +6 -2
- data/lib/whop_sdk/resources/refunds.rb +2 -0
- data/lib/whop_sdk/resources/swaps.rb +52 -0
- data/lib/whop_sdk/resources/wallets.rb +78 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +42 -7
- data/rbi/whop_sdk/client.rbi +14 -2
- data/rbi/whop_sdk/models/account.rbi +164 -0
- data/rbi/whop_sdk/models/account_create_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_params.rbi +59 -0
- data/rbi/whop_sdk/models/account_list_response.rbi +115 -0
- data/rbi/whop_sdk/models/account_me_params.rbi +27 -0
- data/rbi/whop_sdk/models/account_retrieve_params.rbi +35 -0
- data/rbi/whop_sdk/models/account_social_link.rbi +96 -0
- data/rbi/whop_sdk/models/account_update_params.rbi +175 -0
- data/rbi/whop_sdk/models/account_wallet.rbi +75 -0
- data/rbi/whop_sdk/models/ad.rbi +143 -0
- data/rbi/whop_sdk/models/ad_budget_type.rbi +20 -0
- data/rbi/whop_sdk/models/{ad_campaign_pause_response.rbi → ad_campaign.rbi} +57 -245
- data/rbi/whop_sdk/models/ad_campaign_list_params.rbi +11 -46
- data/rbi/whop_sdk/models/ad_campaign_list_response.rbi +9 -143
- data/rbi/whop_sdk/models/ad_campaign_platform.rbi +22 -0
- data/rbi/whop_sdk/models/ad_campaign_status.rbi +27 -0
- data/rbi/whop_sdk/models/ad_group.rbi +126 -0
- data/rbi/whop_sdk/models/ad_group_list_params.rbi +13 -33
- data/rbi/whop_sdk/models/ad_group_list_response.rbi +41 -131
- data/rbi/whop_sdk/models/ad_group_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_status.rbi +24 -0
- data/rbi/whop_sdk/models/ad_group_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_group_update_params.rbi +16 -67
- data/rbi/whop_sdk/models/ad_list_params.rbi +59 -14
- data/rbi/whop_sdk/models/ad_list_response.rbi +74 -62
- data/rbi/whop_sdk/models/ad_pause_params.rbi +35 -0
- data/rbi/whop_sdk/models/ad_report_retrieve_params.rbi +75 -19
- data/rbi/whop_sdk/models/ad_report_retrieve_response.rbi +537 -349
- data/rbi/whop_sdk/models/ad_unpause_params.rbi +35 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +52 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +56 -1
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +55 -0
- data/rbi/whop_sdk/models/currency.rbi +3 -0
- data/rbi/whop_sdk/models/deposit_create_params.rbi +152 -0
- data/rbi/whop_sdk/models/deposit_create_response.rbi +185 -0
- data/rbi/whop_sdk/models/dispute.rbi +7 -9
- data/rbi/whop_sdk/models/dispute_alert_created_webhook_event.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_alert_retrieve_response.rbi +5 -5
- data/rbi/whop_sdk/models/dispute_list_response.rbi +2 -4
- data/rbi/whop_sdk/models/external_ad_status.rbi +26 -0
- data/rbi/whop_sdk/models/file_create_params.rbi +3 -30
- data/rbi/whop_sdk/models/file_create_response.rbi +3 -38
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -39
- data/rbi/whop_sdk/models/file_visibility.rbi +21 -0
- data/rbi/whop_sdk/models/granularities.rbi +20 -0
- data/rbi/whop_sdk/models/identity_profile_approved_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_needs_action_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_rejected_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/identity_profile_updated_webhook_event.rbi +669 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +109 -3
- data/rbi/whop_sdk/models/member_list_response.rbi +4 -2
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +4 -2
- data/rbi/whop_sdk/models/membership.rbi +44 -5
- data/rbi/whop_sdk/models/membership_list_response.rbi +44 -5
- data/rbi/whop_sdk/models/payment.rbi +75 -36
- data/rbi/whop_sdk/models/payment_list_params.rbi +8 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +67 -24
- data/rbi/whop_sdk/models/plan.rbi +39 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +54 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +62 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +54 -0
- data/rbi/whop_sdk/models/product.rbi +10 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +12 -0
- data/rbi/whop_sdk/models/product_list_item.rbi +10 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +12 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +157 -5
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +159 -5
- data/rbi/whop_sdk/models/resolution_center_case_platform_response.rbi +0 -5
- data/rbi/whop_sdk/models/result_label_keys.rbi +64 -0
- data/rbi/whop_sdk/models/swap_create_quote_params.rbi +134 -0
- data/rbi/whop_sdk/models/swap_create_quote_response.rbi +148 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +6 -2
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +25 -21
- data/rbi/whop_sdk/models/wallet_balance_params.rbi +35 -0
- data/rbi/whop_sdk/models/wallet_balance_response.rbi +145 -0
- data/rbi/whop_sdk/models/wallet_list_params.rbi +27 -0
- data/rbi/whop_sdk/models/wallet_list_response.rbi +66 -0
- data/rbi/whop_sdk/models/wallet_send_params.rbi +57 -0
- data/rbi/whop_sdk/models/wallet_send_response.rbi +146 -0
- data/rbi/whop_sdk/models/webhook_event.rbi +11 -0
- data/rbi/whop_sdk/models.rbi +68 -0
- data/rbi/whop_sdk/resources/accounts.rbi +137 -0
- data/rbi/whop_sdk/resources/ad_campaigns.rbi +8 -8
- data/rbi/whop_sdk/resources/ad_groups.rbi +47 -6
- data/rbi/whop_sdk/resources/ad_reports.rbi +23 -12
- data/rbi/whop_sdk/resources/ads.rbi +59 -2
- data/rbi/whop_sdk/resources/deposits.rbi +41 -0
- data/rbi/whop_sdk/resources/files.rbi +1 -2
- data/rbi/whop_sdk/resources/payments.rbi +3 -0
- data/rbi/whop_sdk/resources/plans.rbi +18 -0
- data/rbi/whop_sdk/resources/products.rbi +10 -0
- data/rbi/whop_sdk/resources/refunds.rbi +2 -0
- data/rbi/whop_sdk/resources/swaps.rbi +46 -0
- data/rbi/whop_sdk/resources/transfers.rbi +3 -1
- data/rbi/whop_sdk/resources/wallets.rbi +55 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +25 -21
- data/sig/whop_sdk/client.rbs +8 -0
- data/sig/whop_sdk/models/account.rbs +100 -0
- data/sig/whop_sdk/models/account_create_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_params.rbs +32 -0
- data/sig/whop_sdk/models/account_list_response.rbs +62 -0
- data/sig/whop_sdk/models/account_me_params.rbs +14 -0
- data/sig/whop_sdk/models/account_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/account_social_link.rbs +62 -0
- data/sig/whop_sdk/models/account_update_params.rbs +111 -0
- data/sig/whop_sdk/models/account_wallet.rbs +42 -0
- data/sig/whop_sdk/models/ad.rbs +75 -0
- data/sig/whop_sdk/models/ad_budget_type.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign.rbs +194 -0
- data/sig/whop_sdk/models/ad_campaign_list_params.rbs +9 -25
- data/sig/whop_sdk/models/ad_campaign_list_response.rbs +12 -50
- data/sig/whop_sdk/models/ad_campaign_platform.rbs +14 -0
- data/sig/whop_sdk/models/ad_campaign_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group.rbs +70 -0
- data/sig/whop_sdk/models/ad_group_list_params.rbs +9 -20
- data/sig/whop_sdk/models/ad_group_list_response.rbs +22 -45
- data/sig/whop_sdk/models/ad_group_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_status.rbs +19 -0
- data/sig/whop_sdk/models/ad_group_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_group_update_params.rbs +18 -36
- data/sig/whop_sdk/models/ad_list_params.rbs +39 -14
- data/sig/whop_sdk/models/ad_list_response.rbs +28 -25
- data/sig/whop_sdk/models/ad_pause_params.rbs +20 -0
- data/sig/whop_sdk/models/ad_report_retrieve_params.rbs +26 -4
- data/sig/whop_sdk/models/ad_report_retrieve_response.rbs +240 -131
- data/sig/whop_sdk/models/ad_unpause_params.rbs +20 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +16 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +18 -2
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +16 -0
- data/sig/whop_sdk/models/currency.rbs +6 -0
- data/sig/whop_sdk/models/deposit_create_params.rbs +81 -0
- data/sig/whop_sdk/models/deposit_create_response.rbs +99 -0
- data/sig/whop_sdk/models/dispute.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_created_webhook_event.rbs +4 -4
- data/sig/whop_sdk/models/dispute_alert_retrieve_response.rbs +4 -4
- data/sig/whop_sdk/models/external_ad_status.rbs +19 -0
- data/sig/whop_sdk/models/file_create_params.rbs +4 -18
- data/sig/whop_sdk/models/file_create_response.rbs +4 -15
- data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -15
- data/sig/whop_sdk/models/file_visibility.rbs +14 -0
- data/sig/whop_sdk/models/granularities.rbs +14 -0
- data/sig/whop_sdk/models/identity_profile_approved_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_needs_action_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_rejected_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/identity_profile_updated_webhook_event.rbs +293 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +50 -3
- data/sig/whop_sdk/models/membership.rbs +19 -6
- data/sig/whop_sdk/models/membership_list_response.rbs +19 -6
- data/sig/whop_sdk/models/payment.rbs +52 -15
- data/sig/whop_sdk/models/payment_list_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +52 -15
- data/sig/whop_sdk/models/plan.rbs +21 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +21 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +21 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +21 -0
- data/sig/whop_sdk/models/product.rbs +5 -0
- data/sig/whop_sdk/models/product_create_params.rbs +5 -0
- data/sig/whop_sdk/models/product_list_item.rbs +5 -0
- data/sig/whop_sdk/models/product_update_params.rbs +5 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +43 -4
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +43 -4
- data/sig/whop_sdk/models/resolution_center_case_platform_response.rbs +0 -2
- data/sig/whop_sdk/models/result_label_keys.rbs +60 -0
- data/sig/whop_sdk/models/swap_create_quote_params.rbs +84 -0
- data/sig/whop_sdk/models/swap_create_quote_response.rbs +97 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +26 -22
- data/sig/whop_sdk/models/wallet_balance_params.rbs +23 -0
- data/sig/whop_sdk/models/wallet_balance_response.rbs +87 -0
- data/sig/whop_sdk/models/wallet_list_params.rbs +14 -0
- data/sig/whop_sdk/models/wallet_list_response.rbs +40 -0
- data/sig/whop_sdk/models/wallet_send_params.rbs +32 -0
- data/sig/whop_sdk/models/wallet_send_response.rbs +79 -0
- data/sig/whop_sdk/models/webhook_event.rbs +8 -0
- data/sig/whop_sdk/models.rbs +64 -0
- data/sig/whop_sdk/resources/accounts.rbs +46 -0
- data/sig/whop_sdk/resources/ad_campaigns.rbs +6 -6
- data/sig/whop_sdk/resources/ad_groups.rbs +16 -5
- data/sig/whop_sdk/resources/ad_reports.rbs +3 -1
- data/sig/whop_sdk/resources/ads.rbs +18 -2
- data/sig/whop_sdk/resources/deposits.rbs +15 -0
- data/sig/whop_sdk/resources/files.rbs +1 -1
- data/sig/whop_sdk/resources/payments.rbs +1 -0
- data/sig/whop_sdk/resources/plans.rbs +4 -0
- data/sig/whop_sdk/resources/products.rbs +2 -0
- data/sig/whop_sdk/resources/swaps.rbs +20 -0
- data/sig/whop_sdk/resources/wallets.rbs +23 -0
- data/sig/whop_sdk/resources/webhooks.rbs +26 -22
- metadata +128 -23
- data/lib/whop_sdk/models/ad_campaign_retrieve_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_unpause_response.rb +0 -328
- data/lib/whop_sdk/models/ad_campaign_update_response.rb +0 -328
- data/lib/whop_sdk/models/ad_group_retrieve_response.rb +0 -140
- data/lib/whop_sdk/models/ad_group_update_response.rb +0 -140
- data/rbi/whop_sdk/models/ad_campaign_retrieve_response.rbi +0 -679
- data/rbi/whop_sdk/models/ad_campaign_unpause_response.rbi +0 -675
- data/rbi/whop_sdk/models/ad_campaign_update_response.rbi +0 -670
- data/rbi/whop_sdk/models/ad_group_retrieve_response.rbi +0 -277
- data/rbi/whop_sdk/models/ad_group_update_response.rbi +0 -274
- data/rbi/whop_sdk/models/ad_retrieve_response.rbi +0 -245
- data/sig/whop_sdk/models/ad_campaign_pause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_retrieve_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_unpause_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_campaign_update_response.rbs +0 -232
- data/sig/whop_sdk/models/ad_group_retrieve_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_group_update_response.rbs +0 -108
- data/sig/whop_sdk/models/ad_retrieve_response.rbs +0 -102
|
@@ -938,7 +938,17 @@ module WhopSDK
|
|
|
938
938
|
# @return [String, nil]
|
|
939
939
|
optional :source_url, String, nil?: true
|
|
940
940
|
|
|
941
|
-
# @!
|
|
941
|
+
# @!attribute three_ds_level
|
|
942
|
+
# The 3D Secure behavior for a plan.
|
|
943
|
+
#
|
|
944
|
+
# @return [Symbol, WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel, nil]
|
|
945
|
+
optional :three_ds_level,
|
|
946
|
+
enum: -> {
|
|
947
|
+
WhopSDK::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel
|
|
948
|
+
},
|
|
949
|
+
nil?: true
|
|
950
|
+
|
|
951
|
+
# @!method initialize(company_id:, allow_promo_codes: nil, checkout_styling: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, source_url: nil, three_ds_level: nil, mode: :setup)
|
|
942
952
|
# Some parameter documentations has been truncated, see
|
|
943
953
|
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup}
|
|
944
954
|
# for more details.
|
|
@@ -961,6 +971,8 @@ module WhopSDK
|
|
|
961
971
|
#
|
|
962
972
|
# @param source_url [String, nil] The URL of the page where the checkout is being initiated from.
|
|
963
973
|
#
|
|
974
|
+
# @param three_ds_level [Symbol, WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup::ThreeDSLevel, nil] The 3D Secure behavior for a plan.
|
|
975
|
+
#
|
|
964
976
|
# @param mode [Symbol, :setup]
|
|
965
977
|
|
|
966
978
|
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup#checkout_styling
|
|
@@ -1047,6 +1059,19 @@ module WhopSDK
|
|
|
1047
1059
|
#
|
|
1048
1060
|
# @param include_platform_defaults [Boolean, nil] Whether Whop's platform default payment method enablement settings are included
|
|
1049
1061
|
end
|
|
1062
|
+
|
|
1063
|
+
# The 3D Secure behavior for a plan.
|
|
1064
|
+
#
|
|
1065
|
+
# @see WhopSDK::Models::CheckoutConfigurationCreateParams::Body::CreateCheckoutSessionInputModeSetup#three_ds_level
|
|
1066
|
+
module ThreeDSLevel
|
|
1067
|
+
extend WhopSDK::Internal::Type::Enum
|
|
1068
|
+
|
|
1069
|
+
MANDATE_CHALLENGE = :mandate_challenge
|
|
1070
|
+
FRICTIONLESS = :frictionless
|
|
1071
|
+
|
|
1072
|
+
# @!method self.values
|
|
1073
|
+
# @return [Array<Symbol>]
|
|
1074
|
+
end
|
|
1050
1075
|
end
|
|
1051
1076
|
|
|
1052
1077
|
# @!method self.variants
|
|
@@ -213,6 +213,14 @@ module WhopSDK
|
|
|
213
213
|
# @return [Float]
|
|
214
214
|
required :renewal_price, Float
|
|
215
215
|
|
|
216
|
+
# @!attribute three_ds_level
|
|
217
|
+
# The 3D Secure behavior for a plan.
|
|
218
|
+
#
|
|
219
|
+
# @return [Symbol, WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel, nil]
|
|
220
|
+
required :three_ds_level,
|
|
221
|
+
enum: -> { WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel },
|
|
222
|
+
nil?: true
|
|
223
|
+
|
|
216
224
|
# @!attribute trial_period_days
|
|
217
225
|
# The number of free trial days before the first charge on a renewal plan. Null if
|
|
218
226
|
# no trial is configured or the current user has already used a trial for this
|
|
@@ -228,7 +236,7 @@ module WhopSDK
|
|
|
228
236
|
# @return [Symbol, WhopSDK::Models::Visibility]
|
|
229
237
|
required :visibility, enum: -> { WhopSDK::Visibility }
|
|
230
238
|
|
|
231
|
-
# @!method initialize(id:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, trial_period_days:, visibility:)
|
|
239
|
+
# @!method initialize(id:, adaptive_pricing_enabled:, billing_period:, currency:, expiration_days:, initial_price:, plan_type:, release_method:, renewal_price:, three_ds_level:, trial_period_days:, visibility:)
|
|
232
240
|
# Some parameter documentations has been truncated, see
|
|
233
241
|
# {WhopSDK::Models::CheckoutConfigurationListResponse::Plan} for more details.
|
|
234
242
|
#
|
|
@@ -252,9 +260,24 @@ module WhopSDK
|
|
|
252
260
|
#
|
|
253
261
|
# @param renewal_price [Float] The recurring price charged every billing_period in the plan's base_currency (e.
|
|
254
262
|
#
|
|
263
|
+
# @param three_ds_level [Symbol, WhopSDK::Models::CheckoutConfigurationListResponse::Plan::ThreeDSLevel, nil] The 3D Secure behavior for a plan.
|
|
264
|
+
#
|
|
255
265
|
# @param trial_period_days [Integer, nil] The number of free trial days before the first charge on a renewal plan. Null if
|
|
256
266
|
#
|
|
257
267
|
# @param visibility [Symbol, WhopSDK::Models::Visibility] Controls whether the plan is visible to customers. When set to 'hidden', the pla
|
|
268
|
+
|
|
269
|
+
# The 3D Secure behavior for a plan.
|
|
270
|
+
#
|
|
271
|
+
# @see WhopSDK::Models::CheckoutConfigurationListResponse::Plan#three_ds_level
|
|
272
|
+
module ThreeDSLevel
|
|
273
|
+
extend WhopSDK::Internal::Type::Enum
|
|
274
|
+
|
|
275
|
+
MANDATE_CHALLENGE = :mandate_challenge
|
|
276
|
+
FRICTIONLESS = :frictionless
|
|
277
|
+
|
|
278
|
+
# @!method self.values
|
|
279
|
+
# @return [Array<Symbol>]
|
|
280
|
+
end
|
|
258
281
|
end
|
|
259
282
|
end
|
|
260
283
|
end
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Deposits#create
|
|
6
|
+
class DepositCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute amount
|
|
11
|
+
# Amount to deposit.
|
|
12
|
+
#
|
|
13
|
+
# @return [Float]
|
|
14
|
+
required :amount, Float
|
|
15
|
+
|
|
16
|
+
# @!attribute destination
|
|
17
|
+
# Destination account ID or wallet address. Object form is supported for
|
|
18
|
+
# compatibility.
|
|
19
|
+
#
|
|
20
|
+
# @return [String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1]
|
|
21
|
+
required :destination, union: -> { WhopSDK::DepositCreateParams::Destination }
|
|
22
|
+
|
|
23
|
+
# @!attribute metadata
|
|
24
|
+
# Arbitrary metadata echoed in the response.
|
|
25
|
+
#
|
|
26
|
+
# @return [Hash{Symbol=>Object}, nil]
|
|
27
|
+
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
28
|
+
|
|
29
|
+
# @!attribute network
|
|
30
|
+
# Optional destination network override.
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :network, String, nil?: true
|
|
34
|
+
|
|
35
|
+
# @!method initialize(amount:, destination:, metadata: nil, network: nil, request_options: {})
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {WhopSDK::Models::DepositCreateParams} for more details.
|
|
38
|
+
#
|
|
39
|
+
# @param amount [Float] Amount to deposit.
|
|
40
|
+
#
|
|
41
|
+
# @param destination [String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1] Destination account ID or wallet address. Object form is supported for compatibi
|
|
42
|
+
#
|
|
43
|
+
# @param metadata [Hash{Symbol=>Object}] Arbitrary metadata echoed in the response.
|
|
44
|
+
#
|
|
45
|
+
# @param network [String, nil] Optional destination network override.
|
|
46
|
+
#
|
|
47
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
48
|
+
|
|
49
|
+
# Destination account ID or wallet address. Object form is supported for
|
|
50
|
+
# compatibility.
|
|
51
|
+
module Destination
|
|
52
|
+
extend WhopSDK::Internal::Type::Union
|
|
53
|
+
|
|
54
|
+
variant String
|
|
55
|
+
|
|
56
|
+
variant -> { WhopSDK::DepositCreateParams::Destination::UnionMember1 }
|
|
57
|
+
|
|
58
|
+
class UnionMember1 < WhopSDK::Internal::Type::BaseModel
|
|
59
|
+
# @!attribute account_id
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
optional :account_id, String
|
|
63
|
+
|
|
64
|
+
# @!attribute address
|
|
65
|
+
#
|
|
66
|
+
# @return [String, nil]
|
|
67
|
+
optional :address, String
|
|
68
|
+
|
|
69
|
+
# @!attribute network
|
|
70
|
+
#
|
|
71
|
+
# @return [String, nil]
|
|
72
|
+
optional :network, String
|
|
73
|
+
|
|
74
|
+
# @!method initialize(account_id: nil, address: nil, network: nil)
|
|
75
|
+
# @param account_id [String]
|
|
76
|
+
# @param address [String]
|
|
77
|
+
# @param network [String]
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# @!method self.variants
|
|
81
|
+
# @return [Array(String, WhopSDK::Models::DepositCreateParams::Destination::UnionMember1)]
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Deposits#create
|
|
6
|
+
class DepositCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute amount
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :amount, String
|
|
11
|
+
|
|
12
|
+
# @!attribute deposit_address
|
|
13
|
+
#
|
|
14
|
+
# @return [WhopSDK::Models::DepositCreateResponse::DepositAddress]
|
|
15
|
+
required :deposit_address, -> { WhopSDK::Models::DepositCreateResponse::DepositAddress }
|
|
16
|
+
|
|
17
|
+
# @!attribute destination
|
|
18
|
+
#
|
|
19
|
+
# @return [WhopSDK::Models::DepositCreateResponse::Destination]
|
|
20
|
+
required :destination, -> { WhopSDK::Models::DepositCreateResponse::Destination }
|
|
21
|
+
|
|
22
|
+
# @!attribute hosted_url
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
required :hosted_url, String, nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute metadata
|
|
28
|
+
#
|
|
29
|
+
# @return [Hash{Symbol=>Object}]
|
|
30
|
+
required :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown]
|
|
31
|
+
|
|
32
|
+
# @!attribute object
|
|
33
|
+
#
|
|
34
|
+
# @return [Symbol, WhopSDK::Models::DepositCreateResponse::Object]
|
|
35
|
+
required :object, enum: -> { WhopSDK::Models::DepositCreateResponse::Object }
|
|
36
|
+
|
|
37
|
+
# @!method initialize(amount:, deposit_address:, destination:, hosted_url:, metadata:, object:)
|
|
38
|
+
# @param amount [String]
|
|
39
|
+
# @param deposit_address [WhopSDK::Models::DepositCreateResponse::DepositAddress]
|
|
40
|
+
# @param destination [WhopSDK::Models::DepositCreateResponse::Destination]
|
|
41
|
+
# @param hosted_url [String, nil]
|
|
42
|
+
# @param metadata [Hash{Symbol=>Object}]
|
|
43
|
+
# @param object [Symbol, WhopSDK::Models::DepositCreateResponse::Object]
|
|
44
|
+
|
|
45
|
+
# @see WhopSDK::Models::DepositCreateResponse#deposit_address
|
|
46
|
+
class DepositAddress < WhopSDK::Internal::Type::BaseModel
|
|
47
|
+
# @!attribute evm
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
required :evm, String
|
|
51
|
+
|
|
52
|
+
# @!attribute solana
|
|
53
|
+
#
|
|
54
|
+
# @return [String]
|
|
55
|
+
required :solana, String
|
|
56
|
+
|
|
57
|
+
# @!method initialize(evm:, solana:)
|
|
58
|
+
# @param evm [String]
|
|
59
|
+
# @param solana [String]
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# @see WhopSDK::Models::DepositCreateResponse#destination
|
|
63
|
+
class Destination < WhopSDK::Internal::Type::BaseModel
|
|
64
|
+
# @!attribute address
|
|
65
|
+
#
|
|
66
|
+
# @return [String]
|
|
67
|
+
required :address, String
|
|
68
|
+
|
|
69
|
+
# @!attribute currency
|
|
70
|
+
#
|
|
71
|
+
# @return [String]
|
|
72
|
+
required :currency, String
|
|
73
|
+
|
|
74
|
+
# @!attribute network
|
|
75
|
+
#
|
|
76
|
+
# @return [String]
|
|
77
|
+
required :network, String
|
|
78
|
+
|
|
79
|
+
# @!attribute account_id
|
|
80
|
+
#
|
|
81
|
+
# @return [String, nil]
|
|
82
|
+
optional :account_id, String, nil?: true
|
|
83
|
+
|
|
84
|
+
# @!method initialize(address:, currency:, network:, account_id: nil)
|
|
85
|
+
# @param address [String]
|
|
86
|
+
# @param currency [String]
|
|
87
|
+
# @param network [String]
|
|
88
|
+
# @param account_id [String, nil]
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# @see WhopSDK::Models::DepositCreateResponse#object
|
|
92
|
+
module Object
|
|
93
|
+
extend WhopSDK::Internal::Type::Enum
|
|
94
|
+
|
|
95
|
+
DEPOSIT = :deposit
|
|
96
|
+
|
|
97
|
+
# @!method self.values
|
|
98
|
+
# @return [Array<Symbol>]
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -88,8 +88,7 @@ module WhopSDK
|
|
|
88
88
|
required :customer_name, String, nil?: true
|
|
89
89
|
|
|
90
90
|
# @!attribute editable
|
|
91
|
-
# Whether the dispute evidence can still be edited and submitted.
|
|
92
|
-
# only when the dispute status requires a response.
|
|
91
|
+
# Whether the dispute evidence can still be edited and submitted.
|
|
93
92
|
#
|
|
94
93
|
# @return [Boolean, nil]
|
|
95
94
|
required :editable, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
@@ -220,7 +219,7 @@ module WhopSDK
|
|
|
220
219
|
#
|
|
221
220
|
# @param customer_name [String, nil] The customer's full name from their payment details, included in the evidence pa
|
|
222
221
|
#
|
|
223
|
-
# @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
|
|
222
|
+
# @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
|
|
224
223
|
#
|
|
225
224
|
# @param needs_response_by [Time, nil] The deadline by which dispute evidence must be submitted. Null if no response de
|
|
226
225
|
#
|
|
@@ -400,10 +399,10 @@ module WhopSDK
|
|
|
400
399
|
required :created_at, Time
|
|
401
400
|
|
|
402
401
|
# @!attribute currency
|
|
403
|
-
# The
|
|
402
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
404
403
|
#
|
|
405
|
-
# @return [Symbol, WhopSDK::Models::Currency
|
|
406
|
-
required :currency, enum: -> { WhopSDK::Currency }
|
|
404
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
405
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
407
406
|
|
|
408
407
|
# @!attribute dispute_alerted_at
|
|
409
408
|
# When an alert came in that this transaction will be disputed
|
|
@@ -476,7 +475,7 @@ module WhopSDK
|
|
|
476
475
|
#
|
|
477
476
|
# @param created_at [Time] The datetime the payment was created.
|
|
478
477
|
#
|
|
479
|
-
# @param currency [Symbol, WhopSDK::Models::Currency
|
|
478
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
480
479
|
#
|
|
481
480
|
# @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
|
|
482
481
|
#
|
|
@@ -227,10 +227,10 @@ module WhopSDK
|
|
|
227
227
|
required :created_at, Time
|
|
228
228
|
|
|
229
229
|
# @!attribute currency
|
|
230
|
-
# The
|
|
230
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
231
231
|
#
|
|
232
|
-
# @return [Symbol, WhopSDK::Models::Currency
|
|
233
|
-
required :currency, enum: -> { WhopSDK::Currency }
|
|
232
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
233
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
234
234
|
|
|
235
235
|
# @!attribute dispute_alerted_at
|
|
236
236
|
# When an alert came in that this transaction will be disputed
|
|
@@ -306,7 +306,7 @@ module WhopSDK
|
|
|
306
306
|
#
|
|
307
307
|
# @param created_at [Time] The datetime the payment was created.
|
|
308
308
|
#
|
|
309
|
-
# @param currency [Symbol, WhopSDK::Models::Currency
|
|
309
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
310
310
|
#
|
|
311
311
|
# @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
|
|
312
312
|
#
|
|
@@ -172,10 +172,10 @@ module WhopSDK
|
|
|
172
172
|
required :created_at, Time
|
|
173
173
|
|
|
174
174
|
# @!attribute currency
|
|
175
|
-
# The
|
|
175
|
+
# The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
176
176
|
#
|
|
177
|
-
# @return [Symbol, WhopSDK::Models::Currency
|
|
178
|
-
required :currency, enum: -> { WhopSDK::Currency }
|
|
177
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
178
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
179
179
|
|
|
180
180
|
# @!attribute dispute_alerted_at
|
|
181
181
|
# When an alert came in that this transaction will be disputed
|
|
@@ -250,7 +250,7 @@ module WhopSDK
|
|
|
250
250
|
#
|
|
251
251
|
# @param created_at [Time] The datetime the payment was created.
|
|
252
252
|
#
|
|
253
|
-
# @param currency [Symbol, WhopSDK::Models::Currency
|
|
253
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for this payment (e.g., 'usd', 'eur').
|
|
254
254
|
#
|
|
255
255
|
# @param dispute_alerted_at [Time, nil] When an alert came in that this transaction will be disputed
|
|
256
256
|
#
|
|
@@ -35,8 +35,7 @@ module WhopSDK
|
|
|
35
35
|
required :currency, enum: -> { WhopSDK::Currency }
|
|
36
36
|
|
|
37
37
|
# @!attribute editable
|
|
38
|
-
# Whether the dispute evidence can still be edited and submitted.
|
|
39
|
-
# only when the dispute status requires a response.
|
|
38
|
+
# Whether the dispute evidence can still be edited and submitted.
|
|
40
39
|
#
|
|
41
40
|
# @return [Boolean, nil]
|
|
42
41
|
required :editable, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
@@ -105,7 +104,7 @@ module WhopSDK
|
|
|
105
104
|
#
|
|
106
105
|
# @param currency [Symbol, WhopSDK::Models::Currency] The three-letter ISO currency code for the disputed amount.
|
|
107
106
|
#
|
|
108
|
-
# @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
|
|
107
|
+
# @param editable [Boolean, nil] Whether the dispute evidence can still be edited and submitted.
|
|
109
108
|
#
|
|
110
109
|
# @param needs_response_by [Time, nil] The deadline by which dispute evidence must be submitted. Null if no response de
|
|
111
110
|
#
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The status of an external ad.
|
|
6
|
+
module ExternalAdStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
ACTIVE = :active
|
|
10
|
+
PAUSED = :paused
|
|
11
|
+
INACTIVE = :inactive
|
|
12
|
+
IN_REVIEW = :in_review
|
|
13
|
+
REJECTED = :rejected
|
|
14
|
+
FLAGGED = :flagged
|
|
15
|
+
|
|
16
|
+
# @!method self.values
|
|
17
|
+
# @return [Array<Symbol>]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -18,8 +18,8 @@ module WhopSDK
|
|
|
18
18
|
# Controls whether an uploaded file is publicly accessible or requires
|
|
19
19
|
# authentication to access.
|
|
20
20
|
#
|
|
21
|
-
# @return [Symbol, WhopSDK::Models::
|
|
22
|
-
optional :visibility, enum: -> { WhopSDK::
|
|
21
|
+
# @return [Symbol, WhopSDK::Models::FileVisibility, nil]
|
|
22
|
+
optional :visibility, enum: -> { WhopSDK::FileVisibility }, nil?: true
|
|
23
23
|
|
|
24
24
|
# @!method initialize(filename:, visibility: nil, request_options: {})
|
|
25
25
|
# Some parameter documentations has been truncated, see
|
|
@@ -27,21 +27,9 @@ module WhopSDK
|
|
|
27
27
|
#
|
|
28
28
|
# @param filename [String] The name of the file including its extension (e.g., "photo.png" or "document.pdf
|
|
29
29
|
#
|
|
30
|
-
# @param visibility [Symbol, WhopSDK::Models::
|
|
30
|
+
# @param visibility [Symbol, WhopSDK::Models::FileVisibility, nil] Controls whether an uploaded file is publicly accessible or requires authenticat
|
|
31
31
|
#
|
|
32
32
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
33
|
-
|
|
34
|
-
# Controls whether an uploaded file is publicly accessible or requires
|
|
35
|
-
# authentication to access.
|
|
36
|
-
module Visibility
|
|
37
|
-
extend WhopSDK::Internal::Type::Enum
|
|
38
|
-
|
|
39
|
-
PUBLIC = :public
|
|
40
|
-
PRIVATE = :private
|
|
41
|
-
|
|
42
|
-
# @!method self.values
|
|
43
|
-
# @return [Array<Symbol>]
|
|
44
|
-
end
|
|
45
33
|
end
|
|
46
34
|
end
|
|
47
35
|
end
|
|
@@ -59,8 +59,8 @@ module WhopSDK
|
|
|
59
59
|
# @!attribute visibility
|
|
60
60
|
# Whether the file is publicly accessible or requires authentication.
|
|
61
61
|
#
|
|
62
|
-
# @return [Symbol, WhopSDK::Models::
|
|
63
|
-
required :visibility, enum: -> { WhopSDK::
|
|
62
|
+
# @return [Symbol, WhopSDK::Models::FileVisibility]
|
|
63
|
+
required :visibility, enum: -> { WhopSDK::FileVisibility }
|
|
64
64
|
|
|
65
65
|
# @!method initialize(id:, content_type:, filename:, size:, upload_headers:, upload_status:, upload_url:, url:, visibility:)
|
|
66
66
|
# Some parameter documentations has been truncated, see
|
|
@@ -84,20 +84,7 @@ module WhopSDK
|
|
|
84
84
|
#
|
|
85
85
|
# @param url [String, nil] The URL for accessing the file. For public files, this is a permanent CDN URL. F
|
|
86
86
|
#
|
|
87
|
-
# @param visibility [Symbol, WhopSDK::Models::
|
|
88
|
-
|
|
89
|
-
# Whether the file is publicly accessible or requires authentication.
|
|
90
|
-
#
|
|
91
|
-
# @see WhopSDK::Models::FileCreateResponse#visibility
|
|
92
|
-
module Visibility
|
|
93
|
-
extend WhopSDK::Internal::Type::Enum
|
|
94
|
-
|
|
95
|
-
PUBLIC = :public
|
|
96
|
-
PRIVATE = :private
|
|
97
|
-
|
|
98
|
-
# @!method self.values
|
|
99
|
-
# @return [Array<Symbol>]
|
|
100
|
-
end
|
|
87
|
+
# @param visibility [Symbol, WhopSDK::Models::FileVisibility] Whether the file is publicly accessible or requires authentication.
|
|
101
88
|
end
|
|
102
89
|
end
|
|
103
90
|
end
|
|
@@ -45,8 +45,8 @@ module WhopSDK
|
|
|
45
45
|
# @!attribute visibility
|
|
46
46
|
# Whether the file is publicly accessible or requires authentication.
|
|
47
47
|
#
|
|
48
|
-
# @return [Symbol, WhopSDK::Models::
|
|
49
|
-
required :visibility, enum: -> { WhopSDK::
|
|
48
|
+
# @return [Symbol, WhopSDK::Models::FileVisibility]
|
|
49
|
+
required :visibility, enum: -> { WhopSDK::FileVisibility }
|
|
50
50
|
|
|
51
51
|
# @!method initialize(id:, content_type:, filename:, size:, upload_status:, url:, visibility:)
|
|
52
52
|
# Some parameter documentations has been truncated, see
|
|
@@ -66,20 +66,7 @@ module WhopSDK
|
|
|
66
66
|
#
|
|
67
67
|
# @param url [String, nil] The URL for accessing the file. For public files, this is a permanent CDN URL. F
|
|
68
68
|
#
|
|
69
|
-
# @param visibility [Symbol, WhopSDK::Models::
|
|
70
|
-
|
|
71
|
-
# Whether the file is publicly accessible or requires authentication.
|
|
72
|
-
#
|
|
73
|
-
# @see WhopSDK::Models::FileRetrieveResponse#visibility
|
|
74
|
-
module Visibility
|
|
75
|
-
extend WhopSDK::Internal::Type::Enum
|
|
76
|
-
|
|
77
|
-
PUBLIC = :public
|
|
78
|
-
PRIVATE = :private
|
|
79
|
-
|
|
80
|
-
# @!method self.values
|
|
81
|
-
# @return [Array<Symbol>]
|
|
82
|
-
end
|
|
69
|
+
# @param visibility [Symbol, WhopSDK::Models::FileVisibility] Whether the file is publicly accessible or requires authentication.
|
|
83
70
|
end
|
|
84
71
|
end
|
|
85
72
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Controls whether an uploaded file is publicly accessible or requires
|
|
6
|
+
# authentication to access.
|
|
7
|
+
module FileVisibility
|
|
8
|
+
extend WhopSDK::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
PUBLIC = :public
|
|
11
|
+
PRIVATE = :private
|
|
12
|
+
|
|
13
|
+
# @!method self.values
|
|
14
|
+
# @return [Array<Symbol>]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# Bucket size for external ad stat rows.
|
|
6
|
+
module Granularities
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
DAILY = :daily
|
|
10
|
+
HOURLY = :hourly
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|