whop_sdk 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.fern/metadata.json +3 -3
- data/.fern/replay.lock +253 -1
- data/lib/whop_sdk/accounts/client.rb +66 -1
- data/lib/whop_sdk/accounts/types/list_accounts_request.rb +2 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request.rb +23 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_direction.rb +14 -0
- data/lib/whop_sdk/accounts/types/search_accounts_request_order.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response.rb +13 -0
- data/lib/whop_sdk/accounts/types/search_accounts_response_page_info.rb +17 -0
- data/lib/whop_sdk/accounts/types/update_accounts_request.rb +2 -0
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +4 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +4 -0
- data/lib/whop_sdk/client.rb +1 -6
- data/lib/whop_sdk/deposits/client.rb +3 -1
- data/lib/whop_sdk/deposits/types/create_deposits_request.rb +2 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods.rb +2 -0
- data/lib/whop_sdk/deposits/types/create_deposits_response_methods_card.rb +14 -0
- data/lib/whop_sdk/disputes/client.rb +39 -0
- data/lib/whop_sdk/disputes/types/accept_disputes_request.rb +11 -0
- data/lib/whop_sdk/external_accounts/types/connect_external_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +2 -0
- data/lib/whop_sdk/identity_profiles/client.rb +3 -0
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/partners/businesses/client.rb +57 -10
- data/lib/whop_sdk/partners/businesses/earnings/client.rb +2 -1
- data/lib/whop_sdk/partners/businesses/types/list_businesses_request_advance_status.rb +1 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_request.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response.rb +45 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_account.rb +26 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner.rb +20 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_blueprint_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_earnings_usd.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_first_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_my_partner_tier.rb +17 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_object.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_owner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_payout_percentages.rb +22 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner.rb +21 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_second_tier_partner_profile_picture.rb +14 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_status.rb +16 -0
- data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_volume_usd.rb +19 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +2 -0
- data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_pending_owner_invites_item.rb +15 -0
- data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +2 -2
- data/lib/whop_sdk/partners/client.rb +38 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_object.rb +13 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item.rb +19 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee.rb +18 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_fee_regions_item.rb +15 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_income_stream.rb +20 -0
- data/lib/whop_sdk/partners/types/fee_options_partners_response_streams_item_unadjustable_reason.rb +16 -0
- data/lib/whop_sdk/payment_method_domains/client.rb +11 -5
- data/lib/whop_sdk/payments/types/refund_payments_request.rb +2 -0
- data/lib/whop_sdk/payouts/client.rb +7 -5
- data/lib/whop_sdk/payouts/types/cancel_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/create_payouts_response.rb +2 -0
- data/lib/whop_sdk/payouts/types/list_payouts_response_data_item.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_created_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_reversed_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/post_payout_updated_payload_data.rb +2 -0
- data/lib/whop_sdk/payouts/types/retrieve_payouts_response.rb +2 -0
- data/lib/whop_sdk/setup_intents/types/create_setup_intents_request.rb +2 -0
- data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +1 -0
- data/lib/whop_sdk/stats/client.rb +2 -0
- data/lib/whop_sdk/stats/reports/client.rb +4 -2
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request.rb +2 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_breakdown_by.rb +1 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item.rb +2 -0
- data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item_product_category.rb +15 -0
- data/lib/whop_sdk/stats/time_series/client.rb +2 -0
- data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request.rb +2 -0
- data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +2 -0
- data/lib/whop_sdk/support_channels/client.rb +2 -0
- data/lib/whop_sdk/support_channels/types/list_support_channels_request.rb +2 -0
- data/lib/whop_sdk/team_members/client.rb +10 -1
- data/lib/whop_sdk/team_members/types/list_team_members_request.rb +8 -0
- data/lib/whop_sdk/transfers/client.rb +2 -2
- data/lib/whop_sdk/transfers/types/create_transfers_request_body_balance.rb +2 -2
- data/lib/whop_sdk/types/account.rb +6 -2
- data/lib/whop_sdk/types/account_required_action_action.rb +1 -0
- data/lib/whop_sdk/types/account_search_result.rb +15 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +4 -0
- data/lib/whop_sdk/types/dispute.rb +2 -0
- data/lib/whop_sdk/types/ledger_activity_line_type.rb +2 -0
- data/lib/whop_sdk/types/partner_advance.rb +4 -4
- data/lib/whop_sdk/types/partner_advance_status.rb +1 -0
- data/lib/whop_sdk/types/payment_method_list_item_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/payment_method_us_bank_account_payment_method_us_bank_account.rb +3 -3
- data/lib/whop_sdk/types/permission_action.rb +2 -0
- data/lib/whop_sdk/types/refund.rb +2 -0
- data/lib/whop_sdk/types/refund_legacy.rb +2 -0
- data/lib/whop_sdk/types/refund_list_item.rb +2 -0
- data/lib/whop_sdk/types/team_member.rb +4 -0
- data/lib/whop_sdk/types/user_fees.rb +17 -0
- data/lib/whop_sdk/types/webhook_event.rb +3 -0
- data/lib/whop_sdk/types/webhook_events_item.rb +3 -0
- data/lib/whop_sdk/types/webhook_list_item_events_item.rb +3 -0
- data/lib/whop_sdk/types/webhook_testable_events_item.rb +3 -0
- data/lib/whop_sdk/users/client.rb +5 -0
- data/lib/whop_sdk/users/fees/client.rb +59 -0
- data/lib/whop_sdk/users/fees/types/retrieve_fees_request.rb +13 -0
- data/lib/whop_sdk/verifications/client.rb +12 -5
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business.rb +2 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb +38 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb +4 -4
- data/lib/whop_sdk/verifications/types/create_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +2 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address.rb +10 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_documents.rb +18 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item.rb +43 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_address.rb +22 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_document_type.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_documents.rb +30 -0
- data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response.rb +2 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item.rb +23 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item.rb +15 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_required_documents_item_status.rb +14 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_roles_item.rb +16 -0
- data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_status.rb +19 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +3 -0
- data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +3 -0
- data/lib/whop_sdk.rb +69 -3
- data/reference.md +500 -130
- metadata +71 -5
- data/lib/whop_sdk/topups/client.rb +0 -64
- data/lib/whop_sdk/topups/types/create_topups_request.rb +0 -17
- data/lib/whop_sdk/types/topup.rb +0 -23
data/lib/whop_sdk/types/payment_method_list_item_us_bank_account_payment_method_us_bank_account.rb
CHANGED
|
@@ -4,11 +4,11 @@ module Whop_sdk
|
|
|
4
4
|
module Types
|
|
5
5
|
# The bank account-specific details for this payment method, including bank name and last four digits.
|
|
6
6
|
class PaymentMethodListItemUsBankAccountPaymentMethodUsBankAccount < Internal::Types::Model
|
|
7
|
-
field :account_type, -> { String }, optional: false, nullable:
|
|
7
|
+
field :account_type, -> { String }, optional: false, nullable: true
|
|
8
8
|
|
|
9
|
-
field :bank_name, -> { String }, optional: false, nullable:
|
|
9
|
+
field :bank_name, -> { String }, optional: false, nullable: true
|
|
10
10
|
|
|
11
|
-
field :last4, -> { String }, optional: false, nullable:
|
|
11
|
+
field :last4, -> { String }, optional: false, nullable: true
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -4,11 +4,11 @@ module Whop_sdk
|
|
|
4
4
|
module Types
|
|
5
5
|
# The bank account-specific details for this payment method, including bank name and last four digits.
|
|
6
6
|
class PaymentMethodUsBankAccountPaymentMethodUsBankAccount < Internal::Types::Model
|
|
7
|
-
field :account_type, -> { String }, optional: false, nullable:
|
|
7
|
+
field :account_type, -> { String }, optional: false, nullable: true
|
|
8
8
|
|
|
9
|
-
field :bank_name, -> { String }, optional: false, nullable:
|
|
9
|
+
field :bank_name, -> { String }, optional: false, nullable: true
|
|
10
10
|
|
|
11
|
-
field :last4, -> { String }, optional: false, nullable:
|
|
11
|
+
field :last4, -> { String }, optional: false, nullable: true
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -199,6 +199,7 @@ module Whop_sdk
|
|
|
199
199
|
PARTNER_REFERRAL_REQUEST_ACCEPT = "partner:referral_request:accept"
|
|
200
200
|
PARTNER_REFERRAL_REQUEST_DECLINE = "partner:referral_request:decline"
|
|
201
201
|
PARTNER_REFERRAL_REQUEST_CANCEL = "partner:referral_request:cancel"
|
|
202
|
+
PARTNER_HANDOFF = "partner:handoff"
|
|
202
203
|
PARTNER_CREATE = "partner:create"
|
|
203
204
|
STATS_READ = "stats:read"
|
|
204
205
|
SUPPORT_CHAT_READ = "support_chat:read"
|
|
@@ -283,6 +284,7 @@ module Whop_sdk
|
|
|
283
284
|
AI_CHAT_DELETE = "ai_chat:delete"
|
|
284
285
|
AI_CHAT_UPDATE = "ai_chat:update"
|
|
285
286
|
USER_NOTIFICATIONS_READ = "user:notifications:read"
|
|
287
|
+
USER_ABUSE_REPORT_CREATE = "user:abuse_report:create"
|
|
286
288
|
USER_NOTIFICATIONS_UPDATE = "user:notifications:update"
|
|
287
289
|
USER_PROFILE_UPDATE = "user:profile:update"
|
|
288
290
|
end
|
|
@@ -15,6 +15,8 @@ module Whop_sdk
|
|
|
15
15
|
|
|
16
16
|
field :id, -> { String }, optional: false, nullable: false
|
|
17
17
|
|
|
18
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
19
|
+
|
|
18
20
|
field :original_amount, -> { Whop_sdk::Types::Money }, optional: false, nullable: false
|
|
19
21
|
|
|
20
22
|
field :payment_id, -> { String }, optional: false, nullable: false
|
|
@@ -12,6 +12,8 @@ module Whop_sdk
|
|
|
12
12
|
|
|
13
13
|
field :id, -> { String }, optional: false, nullable: false
|
|
14
14
|
|
|
15
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
16
|
+
|
|
15
17
|
field :payment, -> { Whop_sdk::Types::RefundLegacyPayment }, optional: false, nullable: true
|
|
16
18
|
|
|
17
19
|
field :provider, -> { Whop_sdk::Types::PaymentProviders }, optional: false, nullable: false
|
|
@@ -12,6 +12,8 @@ module Whop_sdk
|
|
|
12
12
|
|
|
13
13
|
field :id, -> { String }, optional: false, nullable: false
|
|
14
14
|
|
|
15
|
+
field :metadata, -> { Internal::Types::Hash[String, Object] }, optional: false, nullable: true
|
|
16
|
+
|
|
15
17
|
field :payment, -> { Whop_sdk::Types::RefundListItemPayment }, optional: false, nullable: true
|
|
16
18
|
|
|
17
19
|
field :provider, -> { Whop_sdk::Types::PaymentProviders }, optional: false, nullable: false
|
|
@@ -9,12 +9,16 @@ module Whop_sdk
|
|
|
9
9
|
|
|
10
10
|
field :created_at, -> { String }, optional: false, nullable: false
|
|
11
11
|
|
|
12
|
+
field :direct_reports_count, -> { Integer }, optional: false, nullable: true
|
|
13
|
+
|
|
12
14
|
field :email, -> { String }, optional: false, nullable: true
|
|
13
15
|
|
|
14
16
|
field :id, -> { String }, optional: false, nullable: false
|
|
15
17
|
|
|
16
18
|
field :is_agent, -> { Internal::Types::Boolean }, optional: false, nullable: false
|
|
17
19
|
|
|
20
|
+
field :reports_to_id, -> { String }, optional: false, nullable: true
|
|
21
|
+
|
|
18
22
|
field :role, -> { Whop_sdk::Types::TeamMemberRole }, optional: false, nullable: false
|
|
19
23
|
|
|
20
24
|
field :status, -> { Whop_sdk::Types::TeamMemberStatus }, optional: false, nullable: false
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Types
|
|
5
|
+
class UserFees < Internal::Types::Model
|
|
6
|
+
field :bank_deposit, -> { Whop_sdk::Types::AccountFee }, optional: false, nullable: false
|
|
7
|
+
|
|
8
|
+
field :payouts, -> { Internal::Types::Hash[String, Whop_sdk::Types::AccountFee] }, optional: false, nullable: false
|
|
9
|
+
|
|
10
|
+
field :pending_auto_topup, -> { Whop_sdk::Types::AccountFee }, optional: false, nullable: false
|
|
11
|
+
|
|
12
|
+
field :transfers, -> { Whop_sdk::Types::AccountFee }, optional: false, nullable: false
|
|
13
|
+
|
|
14
|
+
field :user_id, -> { String }, optional: false, nullable: false
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -78,10 +78,13 @@ module Whop_sdk
|
|
|
78
78
|
SHIPMENT_UPDATED = "shipment.updated"
|
|
79
79
|
MEMBER_CREATED = "member.created"
|
|
80
80
|
MEMBER_UPDATED = "member.updated"
|
|
81
|
+
AD_CAMPAIGN_CREATED = "ad_campaign.created"
|
|
81
82
|
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
|
|
82
83
|
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
|
|
83
84
|
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
|
|
85
|
+
AD_GROUP_CREATED = "ad_group.created"
|
|
84
86
|
AD_GROUP_UPDATED = "ad_group.updated"
|
|
87
|
+
AD_CREATED = "ad.created"
|
|
85
88
|
AD_UPDATED = "ad.updated"
|
|
86
89
|
CHAT_MESSAGE_CREATED = "chat.message.created"
|
|
87
90
|
CHAT_REACTION_CREATED = "chat.reaction.created"
|
|
@@ -78,10 +78,13 @@ module Whop_sdk
|
|
|
78
78
|
SHIPMENT_UPDATED = "shipment.updated"
|
|
79
79
|
MEMBER_CREATED = "member.created"
|
|
80
80
|
MEMBER_UPDATED = "member.updated"
|
|
81
|
+
AD_CAMPAIGN_CREATED = "ad_campaign.created"
|
|
81
82
|
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
|
|
82
83
|
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
|
|
83
84
|
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
|
|
85
|
+
AD_GROUP_CREATED = "ad_group.created"
|
|
84
86
|
AD_GROUP_UPDATED = "ad_group.updated"
|
|
87
|
+
AD_CREATED = "ad.created"
|
|
85
88
|
AD_UPDATED = "ad.updated"
|
|
86
89
|
CHAT_MESSAGE_CREATED = "chat.message.created"
|
|
87
90
|
CHAT_REACTION_CREATED = "chat.reaction.created"
|
|
@@ -78,10 +78,13 @@ module Whop_sdk
|
|
|
78
78
|
SHIPMENT_UPDATED = "shipment.updated"
|
|
79
79
|
MEMBER_CREATED = "member.created"
|
|
80
80
|
MEMBER_UPDATED = "member.updated"
|
|
81
|
+
AD_CAMPAIGN_CREATED = "ad_campaign.created"
|
|
81
82
|
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
|
|
82
83
|
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
|
|
83
84
|
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
|
|
85
|
+
AD_GROUP_CREATED = "ad_group.created"
|
|
84
86
|
AD_GROUP_UPDATED = "ad_group.updated"
|
|
87
|
+
AD_CREATED = "ad.created"
|
|
85
88
|
AD_UPDATED = "ad.updated"
|
|
86
89
|
CHAT_MESSAGE_CREATED = "chat.message.created"
|
|
87
90
|
CHAT_REACTION_CREATED = "chat.reaction.created"
|
|
@@ -78,10 +78,13 @@ module Whop_sdk
|
|
|
78
78
|
SHIPMENT_UPDATED = "shipment.updated"
|
|
79
79
|
MEMBER_CREATED = "member.created"
|
|
80
80
|
MEMBER_UPDATED = "member.updated"
|
|
81
|
+
AD_CAMPAIGN_CREATED = "ad_campaign.created"
|
|
81
82
|
AD_CAMPAIGN_PAYMENT_FAILED = "ad_campaign.payment_failed"
|
|
82
83
|
AD_CAMPAIGN_UPDATED = "ad_campaign.updated"
|
|
83
84
|
AD_CAMPAIGN_EVENTS = "ad_campaign.events"
|
|
85
|
+
AD_GROUP_CREATED = "ad_group.created"
|
|
84
86
|
AD_GROUP_UPDATED = "ad_group.updated"
|
|
87
|
+
AD_CREATED = "ad.created"
|
|
85
88
|
AD_UPDATED = "ad.updated"
|
|
86
89
|
CHAT_MESSAGE_CREATED = "chat.message.created"
|
|
87
90
|
CHAT_REACTION_CREATED = "chat.reaction.created"
|
|
@@ -376,6 +376,11 @@ module Whop_sdk
|
|
|
376
376
|
def preferences
|
|
377
377
|
@preferences ||= Whop_sdk::Users::Preferences::Client.new(client: @client, base_url: @base_url, environment: @environment)
|
|
378
378
|
end
|
|
379
|
+
|
|
380
|
+
# @return [Whop_sdk::Fees::Client]
|
|
381
|
+
def fees
|
|
382
|
+
@fees ||= Whop_sdk::Users::Fees::Client.new(client: @client, base_url: @base_url, environment: @environment)
|
|
383
|
+
end
|
|
379
384
|
end
|
|
380
385
|
end
|
|
381
386
|
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Users
|
|
5
|
+
module Fees
|
|
6
|
+
class Client
|
|
7
|
+
# @param client [Whop_sdk::Internal::Http::RawClient]
|
|
8
|
+
# @param base_url [String, nil]
|
|
9
|
+
# @param environment [Hash[Symbol, String], nil]
|
|
10
|
+
#
|
|
11
|
+
# @return [void]
|
|
12
|
+
def initialize(client:, base_url: nil, environment: nil)
|
|
13
|
+
@client = client
|
|
14
|
+
@base_url = base_url
|
|
15
|
+
@environment = environment
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Retrieves the fees charged when the user moves money with their personal balance: withdrawals, transfers, bank
|
|
19
|
+
# deposits, and funding cards from pending balance. Each fee has the same shape as in Retrieve Account Fees. You
|
|
20
|
+
# can only retrieve your own fees, and they are read-only.
|
|
21
|
+
#
|
|
22
|
+
# @param request_options [Hash]
|
|
23
|
+
# @param params [Hash]
|
|
24
|
+
# @option request_options [String] :base_url
|
|
25
|
+
# @option request_options [Hash{String => Object}] :additional_headers
|
|
26
|
+
# @option request_options [Hash{String => Object}] :additional_query_parameters
|
|
27
|
+
# @option request_options [Hash{String => Object}] :additional_body_parameters
|
|
28
|
+
# @option request_options [Integer] :timeout_in_seconds
|
|
29
|
+
# @option params [String] :user_id
|
|
30
|
+
#
|
|
31
|
+
# @example
|
|
32
|
+
# client.users.fees.retrieve(user_id: "user_id")
|
|
33
|
+
#
|
|
34
|
+
# @return [Whop_sdk::Types::UserFees]
|
|
35
|
+
def retrieve(request_options: {}, **params)
|
|
36
|
+
params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
|
|
37
|
+
request = Whop_sdk::Internal::JSON::Request.new(
|
|
38
|
+
base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
|
|
39
|
+
method: "GET",
|
|
40
|
+
path: "users/#{URI.encode_uri_component(params[:user_id].to_s)}/fees",
|
|
41
|
+
request_options: request_options
|
|
42
|
+
)
|
|
43
|
+
begin
|
|
44
|
+
response = @client.send(request)
|
|
45
|
+
rescue Net::HTTPRequestTimeout
|
|
46
|
+
raise Whop_sdk::Errors::TimeoutError
|
|
47
|
+
end
|
|
48
|
+
code = response.code.to_i
|
|
49
|
+
if code.between?(200, 299)
|
|
50
|
+
(response.body.to_s.empty? ? nil : Whop_sdk::Types::UserFees.load(response.body))
|
|
51
|
+
else
|
|
52
|
+
error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
|
|
53
|
+
raise error_class.new(response.body, code: code)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -64,9 +64,11 @@ module Whop_sdk
|
|
|
64
64
|
# Starts a hosted verification session for an account or user, or returns the active session when one already
|
|
65
65
|
# exists; any fields you send prefill it. To skip the hosted session, send `documents` to verify the person from
|
|
66
66
|
# files in this request, `share_token` to reuse a verification another Sumsub account completed, or
|
|
67
|
-
# `verification_id` to reuse one the signed-in user completed on Whop. For a business, `documents`
|
|
68
|
-
# formation documents to the verification and
|
|
69
|
-
#
|
|
67
|
+
# `verification_id` to reuse one the signed-in user completed on Whop. For a business, `documents` and `owners`
|
|
68
|
+
# add company formation documents and owners to the verification, and once everything is in this call sends the
|
|
69
|
+
# business for review — call it again after Update Verification to send it. Until then it stays `pending` and the
|
|
70
|
+
# hosted session collects anything left out. Once the account has an `approved` verification, every mode except
|
|
71
|
+
# `verification_id` is rejected — unlink it first to start a new one.
|
|
70
72
|
#
|
|
71
73
|
# @param request_options [Hash]
|
|
72
74
|
# @param params [Whop_sdk::Verifications::Types::CreateVerificationsRequestBody]
|
|
@@ -149,8 +151,13 @@ module Whop_sdk
|
|
|
149
151
|
end
|
|
150
152
|
end
|
|
151
153
|
|
|
152
|
-
# Updates editable profile details or submits answers for items returned in `requested_information`.
|
|
153
|
-
# verification
|
|
154
|
+
# Updates editable profile details or submits answers for items returned in `requested_information`. On a business
|
|
155
|
+
# verification still collecting details, company details, `documents`, and `owners` also go to the verification
|
|
156
|
+
# provider; call Create Verification again to send the business for review once everything is in. Under review,
|
|
157
|
+
# `registration_number`, `incorporation_date`, `place_of_incorporation`, and `documents` are refused. While the
|
|
158
|
+
# review waits on owners, owners can still be added, changed, or removed with `remove`; otherwise only an owner's
|
|
159
|
+
# missing documents can still be sent. Once a verification is `approved` its profile details are locked and can no
|
|
160
|
+
# longer be edited.
|
|
154
161
|
#
|
|
155
162
|
# @param request_options [Hash]
|
|
156
163
|
# @param params [Whop_sdk::Verifications::Types::UpdateVerificationsRequestBody]
|
|
@@ -28,6 +28,8 @@ module Whop_sdk
|
|
|
28
28
|
|
|
29
29
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
30
30
|
|
|
31
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItem] }, optional: true, nullable: false
|
|
32
|
+
|
|
31
33
|
field :place_of_incorporation, -> { String }, optional: true, nullable: false
|
|
32
34
|
|
|
33
35
|
field :registration_number, -> { String }, optional: true, nullable: false
|
data/lib/whop_sdk/verifications/types/create_verifications_request_body_business_owners_item.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# An owner of the business. Send `verification_id` to add someone with an approved verification on this account or
|
|
7
|
+
# on a member of its team, or a new owner's details and documents to verify them from this request. An owner
|
|
8
|
+
# already on the verification is not added twice, so a retried request is safe.
|
|
9
|
+
class CreateVerificationsRequestBodyBusinessOwnersItem < Internal::Types::Model
|
|
10
|
+
field :address, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemAddress }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :date_of_birth, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :document_type, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocumentType }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :documents, -> { Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemDocuments }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :email, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :first_name, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :last_name, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :ownership_percentage, -> { Integer }, optional: true, nullable: false
|
|
27
|
+
|
|
28
|
+
field :phone, -> { String }, optional: true, nullable: false
|
|
29
|
+
|
|
30
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsRequestBodyBusinessOwnersItemRolesItem] }, optional: true, nullable: false
|
|
31
|
+
|
|
32
|
+
field :tax_identification_number, -> { String }, optional: true, nullable: false
|
|
33
|
+
|
|
34
|
+
field :verification_id, -> { String }, optional: true, nullable: false
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# The new owner's home address, with `line1`, `city`, `state`, and `postal_code`.
|
|
7
|
+
class CreateVerificationsRequestBodyBusinessOwnersItemAddress < Internal::Types::Model
|
|
8
|
+
field :city, -> { String }, optional: true, nullable: false
|
|
9
|
+
|
|
10
|
+
field :country, -> { String }, optional: true, nullable: false
|
|
11
|
+
|
|
12
|
+
field :line1, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :line2, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :postal_code, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :state, -> { String }, optional: true, nullable: false
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsRequestBodyBusinessOwnersItemDocumentType
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
ID_CARD = "id_card"
|
|
10
|
+
DRIVERS = "drivers"
|
|
11
|
+
RESIDENCE_PERMIT = "residence_permit"
|
|
12
|
+
PASSPORT = "passport"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
# The owner's identity document and selfie, each the ID of a ready file uploaded with Create File and not yet
|
|
7
|
+
# attached to anything else, prefixed `file_`. Send every slot for `document_type` plus `selfie`. Document files
|
|
8
|
+
# can be a PDF, JPEG, or PNG and the selfie a JPEG or PNG, each up to 10MB. They're sent to the verification
|
|
9
|
+
# provider in the background: the owner reads `processing` until then, and `action_required`, with a
|
|
10
|
+
# `rejection_reason` on each document, if a file couldn't be used.
|
|
11
|
+
class CreateVerificationsRequestBodyBusinessOwnersItemDocuments < Internal::Types::Model
|
|
12
|
+
field :drivers_back, -> { String }, optional: true, nullable: false
|
|
13
|
+
|
|
14
|
+
field :drivers_front, -> { String }, optional: true, nullable: false
|
|
15
|
+
|
|
16
|
+
field :id_card_back, -> { String }, optional: true, nullable: false
|
|
17
|
+
|
|
18
|
+
field :id_card_front, -> { String }, optional: true, nullable: false
|
|
19
|
+
|
|
20
|
+
field :passport_front, -> { String }, optional: true, nullable: false
|
|
21
|
+
|
|
22
|
+
field :residence_permit_back, -> { String }, optional: true, nullable: false
|
|
23
|
+
|
|
24
|
+
field :residence_permit_front, -> { String }, optional: true, nullable: false
|
|
25
|
+
|
|
26
|
+
field :selfie, -> { String }, optional: true, nullable: false
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsRequestBodyBusinessOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
data/lib/whop_sdk/verifications/types/create_verifications_request_body_individual_document_type.rb
CHANGED
|
@@ -6,10 +6,10 @@ module Whop_sdk
|
|
|
6
6
|
module CreateVerificationsRequestBodyIndividualDocumentType
|
|
7
7
|
extend Whop_sdk::Internal::Types::Enum
|
|
8
8
|
|
|
9
|
-
ID_CARD = "
|
|
10
|
-
DRIVERS = "
|
|
11
|
-
RESIDENCE_PERMIT = "
|
|
12
|
-
PASSPORT = "
|
|
9
|
+
ID_CARD = "id_card"
|
|
10
|
+
DRIVERS = "drivers"
|
|
11
|
+
RESIDENCE_PERMIT = "residence_permit"
|
|
12
|
+
PASSPORT = "passport"
|
|
13
13
|
end
|
|
14
14
|
end
|
|
15
15
|
end
|
|
@@ -26,6 +26,8 @@ module Whop_sdk
|
|
|
26
26
|
|
|
27
27
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
28
28
|
|
|
29
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItem] }, optional: false, nullable: false
|
|
30
|
+
|
|
29
31
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
32
|
|
|
31
33
|
field :registration_number, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class CreateVerificationsResponseOwnersItem < Internal::Types::Model
|
|
7
|
+
field :first_name, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last_name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :ownership_percentage, -> { Integer }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRolesItem] }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemStatus }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class CreateVerificationsResponseOwnersItemRequiredDocumentsItem < Internal::Types::Model
|
|
7
|
+
field :document, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :rejection_reason, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :status, -> { Whop_sdk::Verifications::Types::CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemRequiredDocumentsItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING_UPLOAD = "pending_upload"
|
|
10
|
+
SUBMITTED = "submitted"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module CreateVerificationsResponseOwnersItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
NOT_STARTED = "not_started"
|
|
10
|
+
PENDING = "pending"
|
|
11
|
+
PROCESSING = "processing"
|
|
12
|
+
MANUAL_REVIEW = "manual_review"
|
|
13
|
+
APPROVED = "approved"
|
|
14
|
+
REJECTED = "rejected"
|
|
15
|
+
ACTION_REQUIRED = "action_required"
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -26,6 +26,8 @@ module Whop_sdk
|
|
|
26
26
|
|
|
27
27
|
field :last_name, -> { String }, optional: true, nullable: false
|
|
28
28
|
|
|
29
|
+
field :owners, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItem] }, optional: false, nullable: false
|
|
30
|
+
|
|
29
31
|
field :phone, -> { String }, optional: true, nullable: false
|
|
30
32
|
|
|
31
33
|
field :registration_number, -> { String }, optional: true, nullable: false
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class ListVerificationsResponseDataItemOwnersItem < Internal::Types::Model
|
|
7
|
+
field :first_name, -> { String }, optional: false, nullable: true
|
|
8
|
+
|
|
9
|
+
field :id, -> { String }, optional: false, nullable: false
|
|
10
|
+
|
|
11
|
+
field :last_name, -> { String }, optional: false, nullable: true
|
|
12
|
+
|
|
13
|
+
field :ownership_percentage, -> { Integer }, optional: false, nullable: true
|
|
14
|
+
|
|
15
|
+
field :required_documents, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem] }, optional: false, nullable: false
|
|
16
|
+
|
|
17
|
+
field :roles, -> { Internal::Types::Array[Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRolesItem] }, optional: false, nullable: false
|
|
18
|
+
|
|
19
|
+
field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemStatus }, optional: false, nullable: false
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
class ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItem < Internal::Types::Model
|
|
7
|
+
field :document, -> { String }, optional: true, nullable: false
|
|
8
|
+
|
|
9
|
+
field :rejection_reason, -> { String }, optional: true, nullable: false
|
|
10
|
+
|
|
11
|
+
field :status, -> { Whop_sdk::Verifications::Types::ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus }, optional: true, nullable: false
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module ListVerificationsResponseDataItemOwnersItemRequiredDocumentsItemStatus
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
PENDING_UPLOAD = "pending_upload"
|
|
10
|
+
SUBMITTED = "submitted"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Whop_sdk
|
|
4
|
+
module Verifications
|
|
5
|
+
module Types
|
|
6
|
+
module ListVerificationsResponseDataItemOwnersItemRolesItem
|
|
7
|
+
extend Whop_sdk::Internal::Types::Enum
|
|
8
|
+
|
|
9
|
+
UBO = "ubo"
|
|
10
|
+
DIRECTOR = "director"
|
|
11
|
+
REPRESENTATIVE = "representative"
|
|
12
|
+
SHAREHOLDER = "shareholder"
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|