whop_sdk 0.0.23 → 0.0.25
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 +52 -0
- data/README.md +3 -3
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/models/ai_chat_create_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_create_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_delete_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_delete_response.rb +8 -0
- data/lib/whop_sdk/models/ai_chat_list_params.rb +46 -0
- data/lib/whop_sdk/models/ai_chat_list_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +89 -0
- data/lib/whop_sdk/models/ai_chat_update_params.rb +22 -0
- data/lib/whop_sdk/models/ai_chat_update_response.rb +89 -0
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +6 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_token_transaction_create_params.rb +69 -0
- data/lib/whop_sdk/models/company_token_transaction_create_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_list_params.rb +84 -0
- data/lib/whop_sdk/models/company_token_transaction_list_response.rb +180 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +180 -0
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/dm_member_create_params.rb +30 -0
- data/lib/whop_sdk/models/dm_member_create_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_delete_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_delete_response.rb +8 -0
- data/lib/whop_sdk/models/dm_member_list_params.rb +54 -0
- data/lib/whop_sdk/models/dm_member_list_response.rb +71 -0
- data/lib/whop_sdk/models/dm_member_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dm_member_retrieve_response.rb +94 -0
- data/lib/whop_sdk/models/dm_member_update_params.rb +58 -0
- data/lib/whop_sdk/models/dm_member_update_response.rb +94 -0
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +22 -53
- data/lib/whop_sdk/models/message_delete_params.rb +14 -0
- data/lib/whop_sdk/models/message_delete_response.rb +8 -0
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +59 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/reaction_create_params.rb +10 -1
- data/lib/whop_sdk/models/reaction_delete_params.rb +22 -0
- data/lib/whop_sdk/models/reaction_delete_response.rb +8 -0
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
- data/lib/whop_sdk/models.rb +32 -2
- data/lib/whop_sdk/resources/ai_chats.rb +141 -0
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/company_token_transactions.rb +121 -0
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/dm_members.rb +155 -0
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +29 -3
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/reactions.rb +34 -1
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +34 -1
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/ai_chat_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_create_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_delete_response.rbi +7 -0
- data/rbi/whop_sdk/models/ai_chat_list_params.rbi +67 -0
- data/rbi/whop_sdk/models/ai_chat_list_response.rbi +125 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +128 -0
- data/rbi/whop_sdk/models/ai_chat_update_params.rbi +40 -0
- data/rbi/whop_sdk/models/ai_chat_update_response.rbi +128 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +12 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_params.rbi +92 -0
- data/rbi/whop_sdk/models/company_token_transaction_create_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +146 -0
- data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +308 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +312 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/dm_member_create_params.rbi +51 -0
- data/rbi/whop_sdk/models/dm_member_create_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/dm_member_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/dm_member_list_response.rbi +124 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +179 -0
- data/rbi/whop_sdk/models/dm_member_update_params.rbi +130 -0
- data/rbi/whop_sdk/models/dm_member_update_response.rbi +179 -0
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +26 -94
- data/rbi/whop_sdk/models/message_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +67 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/reaction_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/reaction_delete_params.rbi +40 -0
- data/rbi/whop_sdk/models/reaction_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models.rbi +35 -2
- data/rbi/whop_sdk/resources/ai_chats.rbi +108 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/company_token_transactions.rbi +114 -0
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/dm_members.rbi +128 -0
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +23 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/reactions.rbi +26 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/ai_chat_create_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_create_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/ai_chat_list_params.rbs +36 -0
- data/sig/whop_sdk/models/ai_chat_list_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +65 -0
- data/sig/whop_sdk/models/ai_chat_update_params.rbs +23 -0
- data/sig/whop_sdk/models/ai_chat_update_response.rbs +65 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +13 -1
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_token_transaction_create_params.rbs +56 -0
- data/sig/whop_sdk/models/company_token_transaction_create_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +68 -0
- data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +115 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +115 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/dm_member_create_params.rbs +28 -0
- data/sig/whop_sdk/models/dm_member_create_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/dm_member_list_params.rbs +46 -0
- data/sig/whop_sdk/models/dm_member_list_response.rbs +54 -0
- data/sig/whop_sdk/models/dm_member_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +71 -0
- data/sig/whop_sdk/models/dm_member_update_params.rbs +57 -0
- data/sig/whop_sdk/models/dm_member_update_response.rbs +71 -0
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +15 -31
- data/sig/whop_sdk/models/message_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/message_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +119 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/reaction_create_params.rbs +5 -1
- data/sig/whop_sdk/models/reaction_delete_params.rbs +23 -0
- data/sig/whop_sdk/models/reaction_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models.rbs +32 -2
- data/sig/whop_sdk/resources/ai_chats.rbs +33 -0
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/company_token_transactions.rbs +34 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/dm_members.rbs +36 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +5 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/reactions.rbs +7 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +118 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
|
@@ -6,91 +6,93 @@ module WhopSDK
|
|
|
6
6
|
module PaymentMethodTypes
|
|
7
7
|
extend WhopSDK::Internal::Type::Enum
|
|
8
8
|
|
|
9
|
+
ACSS_DEBIT = :acss_debit
|
|
10
|
+
AFFIRM = :affirm
|
|
9
11
|
AFTERPAY_CLEARPAY = :afterpay_clearpay
|
|
10
12
|
ALIPAY = :alipay
|
|
13
|
+
ALMA = :alma
|
|
11
14
|
AMAZON_PAY = :amazon_pay
|
|
15
|
+
APPLE = :apple
|
|
12
16
|
APPLE_PAY = :apple_pay
|
|
17
|
+
AU_BECS_DEBIT = :au_becs_debit
|
|
18
|
+
BACS_DEBIT = :bacs_debit
|
|
13
19
|
BANCONTACT = :bancontact
|
|
20
|
+
BILLIE = :billie
|
|
21
|
+
BIZUM = :bizum
|
|
22
|
+
BLIK = :blik
|
|
23
|
+
BOLETO = :boleto
|
|
24
|
+
CAPCHASE_PAY = :capchase_pay
|
|
14
25
|
CARD = :card
|
|
15
26
|
CASHAPP = :cashapp
|
|
27
|
+
COINBASE = :coinbase
|
|
16
28
|
CRYPTO = :crypto
|
|
29
|
+
CUSTOM = :custom
|
|
30
|
+
CUSTOMER_BALANCE = :customer_balance
|
|
31
|
+
DEMO_PAY = :demo_pay
|
|
32
|
+
EPS = :eps
|
|
33
|
+
EU_BANK_TRANSFER = :eu_bank_transfer
|
|
34
|
+
FPX = :fpx
|
|
35
|
+
GIROPAY = :giropay
|
|
17
36
|
GOOGLE_PAY = :google_pay
|
|
37
|
+
GOPAY = :gopay
|
|
38
|
+
GRABPAY = :grabpay
|
|
39
|
+
ID_BANK_TRANSFER = :id_bank_transfer
|
|
18
40
|
IDEAL = :ideal
|
|
41
|
+
INTERAC = :interac
|
|
42
|
+
KAKAO_PAY = :kakao_pay
|
|
19
43
|
KLARNA = :klarna
|
|
44
|
+
KONBINI = :konbini
|
|
45
|
+
KR_CARD = :kr_card
|
|
46
|
+
KR_MARKET = :kr_market
|
|
47
|
+
KRIYA = :kriya
|
|
48
|
+
LINK = :link
|
|
49
|
+
MB_WAY = :mb_way
|
|
20
50
|
MOBILEPAY = :mobilepay
|
|
21
|
-
|
|
22
|
-
SWISH = :swish
|
|
23
|
-
TWINT = :twint
|
|
24
|
-
US_BANK_ACCOUNT = :us_bank_account
|
|
25
|
-
ZIP = :zip
|
|
26
|
-
VIPPS = :vipps
|
|
27
|
-
PAYPAL = :paypal
|
|
28
|
-
SEZZLE = :sezzle
|
|
29
|
-
COINBASE = :coinbase
|
|
30
|
-
SPLITIT = :splitit
|
|
31
|
-
PLATFORM_BALANCE = :platform_balance
|
|
32
|
-
APPLE = :apple
|
|
33
|
-
VENMO = :venmo
|
|
34
|
-
AFFIRM = :affirm
|
|
51
|
+
MONDU = :mondu
|
|
35
52
|
MULTIBANCO = :multibanco
|
|
36
|
-
WECHAT_PAY = :wechat_pay
|
|
37
53
|
NAVER_PAY = :naver_pay
|
|
54
|
+
NETBANKING = :netbanking
|
|
55
|
+
NG_BANK = :ng_bank
|
|
56
|
+
NG_BANK_TRANSFER = :ng_bank_transfer
|
|
57
|
+
NG_CARD = :ng_card
|
|
58
|
+
NG_MARKET = :ng_market
|
|
59
|
+
NG_USSD = :ng_ussd
|
|
60
|
+
NG_WALLET = :ng_wallet
|
|
38
61
|
NZ_BANK_ACCOUNT = :nz_bank_account
|
|
39
62
|
OXXO = :oxxo
|
|
40
63
|
P24 = :p24
|
|
41
64
|
PAY_BY_BANK = :pay_by_bank
|
|
42
65
|
PAYCO = :payco
|
|
43
66
|
PAYNOW = :paynow
|
|
67
|
+
PAYPAL = :paypal
|
|
68
|
+
PAYPAY = :paypay
|
|
69
|
+
PAYTO = :payto
|
|
44
70
|
PIX = :pix
|
|
71
|
+
PLATFORM_BALANCE = :platform_balance
|
|
45
72
|
PROMPTPAY = :promptpay
|
|
73
|
+
QRIS = :qris
|
|
74
|
+
RECHNUNG = :rechnung
|
|
46
75
|
REVOLUT_PAY = :revolut_pay
|
|
47
76
|
SAMSUNG_PAY = :samsung_pay
|
|
48
77
|
SATISPAY = :satispay
|
|
49
|
-
SOFORT = :sofort
|
|
50
|
-
KONBINI = :konbini
|
|
51
|
-
KR_CARD = :kr_card
|
|
52
|
-
LINK = :link
|
|
53
|
-
GRABPAY = :grabpay
|
|
54
|
-
KAKAO_PAY = :kakao_pay
|
|
55
|
-
BILLIE = :billie
|
|
56
|
-
BLIK = :blik
|
|
57
|
-
BOLETO = :boleto
|
|
58
|
-
EPS = :eps
|
|
59
|
-
FPX = :fpx
|
|
60
|
-
GIROPAY = :giropay
|
|
61
|
-
ACSS_DEBIT = :acss_debit
|
|
62
|
-
ALMA = :alma
|
|
63
|
-
AU_BECS_DEBIT = :au_becs_debit
|
|
64
|
-
BACS_DEBIT = :bacs_debit
|
|
65
|
-
BIZUM = :bizum
|
|
66
|
-
CAPCHASE_PAY = :capchase_pay
|
|
67
|
-
KRIYA = :kriya
|
|
68
|
-
MONDU = :mondu
|
|
69
|
-
NG_WALLET = :ng_wallet
|
|
70
|
-
PAYPAY = :paypay
|
|
71
|
-
SEQURA = :sequra
|
|
72
78
|
SCALAPAY = :scalapay
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
NG_BANK = :ng_bank
|
|
78
|
-
NG_BANK_TRANSFER = :ng_bank_transfer
|
|
79
|
-
NG_CARD = :ng_card
|
|
80
|
-
NG_MARKET = :ng_market
|
|
81
|
-
NG_USSD = :ng_ussd
|
|
82
|
-
PAYTO = :payto
|
|
83
|
-
QRIS = :qris
|
|
84
|
-
RECHNUNG = :rechnung
|
|
85
|
-
SOUTH_KOREA_MARKET = :south_korea_market
|
|
86
|
-
KR_MARKET = :kr_market
|
|
79
|
+
SEPA_DEBIT = :sepa_debit
|
|
80
|
+
SEQURA = :sequra
|
|
81
|
+
SEZZLE = :sezzle
|
|
82
|
+
SHOP_PAY = :shop_pay
|
|
87
83
|
SHOPEEPAY = :shopeepay
|
|
88
|
-
|
|
84
|
+
SOFORT = :sofort
|
|
85
|
+
SOUTH_KOREA_MARKET = :south_korea_market
|
|
86
|
+
SPLITIT = :splitit
|
|
89
87
|
SUNBIT = :sunbit
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
SWISH = :swish
|
|
89
|
+
TWINT = :twint
|
|
90
|
+
UPI = :upi
|
|
91
|
+
US_BANK_ACCOUNT = :us_bank_account
|
|
92
|
+
VENMO = :venmo
|
|
93
|
+
VIPPS = :vipps
|
|
94
|
+
WECHAT_PAY = :wechat_pay
|
|
95
|
+
ZIP = :zip
|
|
94
96
|
UNKNOWN = :unknown
|
|
95
97
|
|
|
96
98
|
# @!method self.values
|
|
@@ -60,12 +60,25 @@ module WhopSDK
|
|
|
60
60
|
# @return [String]
|
|
61
61
|
required :id, String
|
|
62
62
|
|
|
63
|
+
# @!attribute account_reference
|
|
64
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
65
|
+
# account number or an email address.
|
|
66
|
+
#
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
required :account_reference, String, nil?: true
|
|
69
|
+
|
|
63
70
|
# @!attribute company
|
|
64
71
|
# The company associated with the payout token
|
|
65
72
|
#
|
|
66
73
|
# @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil]
|
|
67
74
|
required :company, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company }, nil?: true
|
|
68
75
|
|
|
76
|
+
# @!attribute created_at
|
|
77
|
+
# The date and time the payout token was created
|
|
78
|
+
#
|
|
79
|
+
# @return [Time]
|
|
80
|
+
required :created_at, Time
|
|
81
|
+
|
|
69
82
|
# @!attribute currency
|
|
70
83
|
# The currency code of the payout destination. This is the currency that payouts
|
|
71
84
|
# will be made in for this token.
|
|
@@ -79,6 +92,12 @@ module WhopSDK
|
|
|
79
92
|
# @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil]
|
|
80
93
|
required :destination, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination }, nil?: true
|
|
81
94
|
|
|
95
|
+
# @!attribute institution_name
|
|
96
|
+
# The name of the bank or financial institution.
|
|
97
|
+
#
|
|
98
|
+
# @return [String, nil]
|
|
99
|
+
required :institution_name, String, nil?: true
|
|
100
|
+
|
|
82
101
|
# @!attribute is_default
|
|
83
102
|
# Whether this payout token is the default for the payout account
|
|
84
103
|
#
|
|
@@ -92,7 +111,7 @@ module WhopSDK
|
|
|
92
111
|
# @return [String, nil]
|
|
93
112
|
required :nickname, String, nil?: true
|
|
94
113
|
|
|
95
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
114
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
96
115
|
# Some parameter documentations has been truncated, see
|
|
97
116
|
# {WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data} for more details.
|
|
98
117
|
#
|
|
@@ -100,12 +119,18 @@ module WhopSDK
|
|
|
100
119
|
#
|
|
101
120
|
# @param id [String] The ID of the payout token
|
|
102
121
|
#
|
|
122
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
123
|
+
#
|
|
103
124
|
# @param company [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil] The company associated with the payout token
|
|
104
125
|
#
|
|
126
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
127
|
+
#
|
|
105
128
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
106
129
|
#
|
|
107
130
|
# @param destination [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil] The payout destination associated with the payout token
|
|
108
131
|
#
|
|
132
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
133
|
+
#
|
|
109
134
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
110
135
|
#
|
|
111
136
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -10,12 +10,25 @@ module WhopSDK
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
+
# @!attribute account_reference
|
|
14
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
15
|
+
# account number or an email address.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
required :account_reference, String, nil?: true
|
|
19
|
+
|
|
13
20
|
# @!attribute company
|
|
14
21
|
# The company associated with the payout token
|
|
15
22
|
#
|
|
16
23
|
# @return [WhopSDK::Models::PayoutMethodListResponse::Company, nil]
|
|
17
24
|
required :company, -> { WhopSDK::Models::PayoutMethodListResponse::Company }, nil?: true
|
|
18
25
|
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The date and time the payout token was created
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
19
32
|
# @!attribute currency
|
|
20
33
|
# The currency code of the payout destination. This is the currency that payouts
|
|
21
34
|
# will be made in for this token.
|
|
@@ -29,6 +42,12 @@ module WhopSDK
|
|
|
29
42
|
# @return [WhopSDK::Models::PayoutMethodListResponse::Destination, nil]
|
|
30
43
|
required :destination, -> { WhopSDK::Models::PayoutMethodListResponse::Destination }, nil?: true
|
|
31
44
|
|
|
45
|
+
# @!attribute institution_name
|
|
46
|
+
# The name of the bank or financial institution.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
required :institution_name, String, nil?: true
|
|
50
|
+
|
|
32
51
|
# @!attribute is_default
|
|
33
52
|
# Whether this payout token is the default for the payout account
|
|
34
53
|
#
|
|
@@ -42,7 +61,7 @@ module WhopSDK
|
|
|
42
61
|
# @return [String, nil]
|
|
43
62
|
required :nickname, String, nil?: true
|
|
44
63
|
|
|
45
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
64
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
46
65
|
# Some parameter documentations has been truncated, see
|
|
47
66
|
# {WhopSDK::Models::PayoutMethodListResponse} for more details.
|
|
48
67
|
#
|
|
@@ -50,12 +69,18 @@ module WhopSDK
|
|
|
50
69
|
#
|
|
51
70
|
# @param id [String] The ID of the payout token
|
|
52
71
|
#
|
|
72
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
73
|
+
#
|
|
53
74
|
# @param company [WhopSDK::Models::PayoutMethodListResponse::Company, nil] The company associated with the payout token
|
|
54
75
|
#
|
|
76
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
77
|
+
#
|
|
55
78
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
56
79
|
#
|
|
57
80
|
# @param destination [WhopSDK::Models::PayoutMethodListResponse::Destination, nil] The payout destination associated with the payout token
|
|
58
81
|
#
|
|
82
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
83
|
+
#
|
|
59
84
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
60
85
|
#
|
|
61
86
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -10,12 +10,25 @@ module WhopSDK
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
+
# @!attribute account_reference
|
|
14
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
15
|
+
# account number or an email address.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
required :account_reference, String, nil?: true
|
|
19
|
+
|
|
13
20
|
# @!attribute company
|
|
14
21
|
# The company associated with the payout token
|
|
15
22
|
#
|
|
16
23
|
# @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil]
|
|
17
24
|
required :company, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Company }, nil?: true
|
|
18
25
|
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The date and time the payout token was created
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
19
32
|
# @!attribute currency
|
|
20
33
|
# The currency code of the payout destination. This is the currency that payouts
|
|
21
34
|
# will be made in for this token.
|
|
@@ -29,6 +42,12 @@ module WhopSDK
|
|
|
29
42
|
# @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil]
|
|
30
43
|
required :destination, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Destination }, nil?: true
|
|
31
44
|
|
|
45
|
+
# @!attribute institution_name
|
|
46
|
+
# The name of the bank or financial institution.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
required :institution_name, String, nil?: true
|
|
50
|
+
|
|
32
51
|
# @!attribute is_default
|
|
33
52
|
# Whether this payout token is the default for the payout account
|
|
34
53
|
#
|
|
@@ -42,7 +61,7 @@ module WhopSDK
|
|
|
42
61
|
# @return [String, nil]
|
|
43
62
|
required :nickname, String, nil?: true
|
|
44
63
|
|
|
45
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
64
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
46
65
|
# Some parameter documentations has been truncated, see
|
|
47
66
|
# {WhopSDK::Models::PayoutMethodRetrieveResponse} for more details.
|
|
48
67
|
#
|
|
@@ -50,12 +69,18 @@ module WhopSDK
|
|
|
50
69
|
#
|
|
51
70
|
# @param id [String] The ID of the payout token
|
|
52
71
|
#
|
|
72
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
73
|
+
#
|
|
53
74
|
# @param company [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil] The company associated with the payout token
|
|
54
75
|
#
|
|
76
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
77
|
+
#
|
|
55
78
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
56
79
|
#
|
|
57
80
|
# @param destination [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil] The payout destination associated with the payout token
|
|
58
81
|
#
|
|
82
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
83
|
+
#
|
|
59
84
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
60
85
|
#
|
|
61
86
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -54,8 +54,8 @@ module WhopSDK
|
|
|
54
54
|
# @!attribute image
|
|
55
55
|
# An image for the plan. This will be visible on the product page to customers.
|
|
56
56
|
#
|
|
57
|
-
# @return [WhopSDK::Models::PlanCreateParams::Image
|
|
58
|
-
optional :image,
|
|
57
|
+
# @return [WhopSDK::Models::PlanCreateParams::Image, nil]
|
|
58
|
+
optional :image, -> { WhopSDK::PlanCreateParams::Image }, nil?: true
|
|
59
59
|
|
|
60
60
|
# @!attribute initial_price
|
|
61
61
|
# An additional amount charged upon first purchase. Use only if a one time payment
|
|
@@ -166,7 +166,7 @@ module WhopSDK
|
|
|
166
166
|
#
|
|
167
167
|
# @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
|
|
168
168
|
#
|
|
169
|
-
# @param image [WhopSDK::Models::PlanCreateParams::Image
|
|
169
|
+
# @param image [WhopSDK::Models::PlanCreateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
170
170
|
#
|
|
171
171
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase. Use only if a one time payment
|
|
172
172
|
#
|
|
@@ -249,56 +249,17 @@ module WhopSDK
|
|
|
249
249
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
250
250
|
end
|
|
251
251
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
#
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
#
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
# @!attribute direct_upload_id
|
|
264
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
265
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
266
|
-
# mediaDirectUpload mutation.
|
|
267
|
-
#
|
|
268
|
-
# @return [String]
|
|
269
|
-
required :direct_upload_id, String
|
|
270
|
-
|
|
271
|
-
# @!method initialize(direct_upload_id:)
|
|
272
|
-
# Some parameter documentations has been truncated, see
|
|
273
|
-
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID}
|
|
274
|
-
# for more details.
|
|
275
|
-
#
|
|
276
|
-
# Input for an attachment
|
|
277
|
-
#
|
|
278
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
282
|
-
# @!attribute id
|
|
283
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
284
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
285
|
-
# doing.
|
|
286
|
-
#
|
|
287
|
-
# @return [String]
|
|
288
|
-
required :id, String
|
|
289
|
-
|
|
290
|
-
# @!method initialize(id:)
|
|
291
|
-
# Some parameter documentations has been truncated, see
|
|
292
|
-
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID} for more
|
|
293
|
-
# details.
|
|
294
|
-
#
|
|
295
|
-
# Input for an attachment
|
|
296
|
-
#
|
|
297
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
# @!method self.variants
|
|
301
|
-
# @return [Array(WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID)]
|
|
252
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
253
|
+
# @!attribute id
|
|
254
|
+
# The ID of an existing file object.
|
|
255
|
+
#
|
|
256
|
+
# @return [String]
|
|
257
|
+
required :id, String
|
|
258
|
+
|
|
259
|
+
# @!method initialize(id:)
|
|
260
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
261
|
+
#
|
|
262
|
+
# @param id [String] The ID of an existing file object.
|
|
302
263
|
end
|
|
303
264
|
|
|
304
265
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -42,8 +42,8 @@ module WhopSDK
|
|
|
42
42
|
# @!attribute image
|
|
43
43
|
# An image for the plan. This will be visible on the product page to customers.
|
|
44
44
|
#
|
|
45
|
-
# @return [WhopSDK::Models::PlanUpdateParams::Image
|
|
46
|
-
optional :image,
|
|
45
|
+
# @return [WhopSDK::Models::PlanUpdateParams::Image, nil]
|
|
46
|
+
optional :image, -> { WhopSDK::PlanUpdateParams::Image }, nil?: true
|
|
47
47
|
|
|
48
48
|
# @!attribute initial_price
|
|
49
49
|
# An additional amount charged upon first purchase.
|
|
@@ -149,7 +149,7 @@ module WhopSDK
|
|
|
149
149
|
#
|
|
150
150
|
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
151
151
|
#
|
|
152
|
-
# @param image [WhopSDK::Models::PlanUpdateParams::Image
|
|
152
|
+
# @param image [WhopSDK::Models::PlanUpdateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
153
153
|
#
|
|
154
154
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase.
|
|
155
155
|
#
|
|
@@ -232,56 +232,17 @@ module WhopSDK
|
|
|
232
232
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
233
233
|
end
|
|
234
234
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
#
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
#
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
# @!attribute direct_upload_id
|
|
247
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
248
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
249
|
-
# mediaDirectUpload mutation.
|
|
250
|
-
#
|
|
251
|
-
# @return [String]
|
|
252
|
-
required :direct_upload_id, String
|
|
253
|
-
|
|
254
|
-
# @!method initialize(direct_upload_id:)
|
|
255
|
-
# Some parameter documentations has been truncated, see
|
|
256
|
-
# {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID}
|
|
257
|
-
# for more details.
|
|
258
|
-
#
|
|
259
|
-
# Input for an attachment
|
|
260
|
-
#
|
|
261
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
262
|
-
end
|
|
263
|
-
|
|
264
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
265
|
-
# @!attribute id
|
|
266
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
267
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
268
|
-
# doing.
|
|
269
|
-
#
|
|
270
|
-
# @return [String]
|
|
271
|
-
required :id, String
|
|
272
|
-
|
|
273
|
-
# @!method initialize(id:)
|
|
274
|
-
# Some parameter documentations has been truncated, see
|
|
275
|
-
# {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID} for more
|
|
276
|
-
# details.
|
|
277
|
-
#
|
|
278
|
-
# Input for an attachment
|
|
279
|
-
#
|
|
280
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
# @!method self.variants
|
|
284
|
-
# @return [Array(WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID)]
|
|
235
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
236
|
+
# @!attribute id
|
|
237
|
+
# The ID of an existing file object.
|
|
238
|
+
#
|
|
239
|
+
# @return [String]
|
|
240
|
+
required :id, String
|
|
241
|
+
|
|
242
|
+
# @!method initialize(id:)
|
|
243
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
244
|
+
#
|
|
245
|
+
# @param id [String] The ID of an existing file object.
|
|
285
246
|
end
|
|
286
247
|
|
|
287
248
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -20,7 +20,14 @@ module WhopSDK
|
|
|
20
20
|
# @return [String, nil]
|
|
21
21
|
optional :emoji, String, nil?: true
|
|
22
22
|
|
|
23
|
-
# @!
|
|
23
|
+
# @!attribute poll_option_id
|
|
24
|
+
# The ID of the poll option to vote for. Only valid for messages or posts with
|
|
25
|
+
# polls.
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :poll_option_id, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(resource_id:, emoji: nil, poll_option_id: nil, request_options: {})
|
|
24
31
|
# Some parameter documentations has been truncated, see
|
|
25
32
|
# {WhopSDK::Models::ReactionCreateParams} for more details.
|
|
26
33
|
#
|
|
@@ -28,6 +35,8 @@ module WhopSDK
|
|
|
28
35
|
#
|
|
29
36
|
# @param emoji [String, nil] The emoji to react with (e.g., :heart: or '😀'). It will be ignored in forums, a
|
|
30
37
|
#
|
|
38
|
+
# @param poll_option_id [String, nil] The ID of the poll option to vote for. Only valid for messages or posts with pol
|
|
39
|
+
#
|
|
31
40
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
32
41
|
end
|
|
33
42
|
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Reactions#delete
|
|
6
|
+
class ReactionDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute emoji
|
|
11
|
+
# The emoji to remove (e.g., :heart: or '😀').
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :emoji, String, nil?: true
|
|
15
|
+
|
|
16
|
+
# @!method initialize(emoji: nil, request_options: {})
|
|
17
|
+
# @param emoji [String, nil] The emoji to remove (e.g., :heart: or '😀').
|
|
18
|
+
#
|
|
19
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -31,7 +31,23 @@ module WhopSDK
|
|
|
31
31
|
# @return [String, nil]
|
|
32
32
|
optional :payout_method_id, String, nil?: true
|
|
33
33
|
|
|
34
|
-
# @!
|
|
34
|
+
# @!attribute platform_covers_fees
|
|
35
|
+
# Whether the platform covers the payout fees instead of the connected account.
|
|
36
|
+
#
|
|
37
|
+
# @return [Boolean, nil]
|
|
38
|
+
optional :platform_covers_fees, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute statement_descriptor
|
|
41
|
+
# Custom statement descriptor for the withdrawal. Must be between 5 and 22
|
|
42
|
+
# characters and contain only alphanumeric characters.
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
optional :statement_descriptor, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!method initialize(amount:, company_id:, currency:, payout_method_id: nil, platform_covers_fees: nil, statement_descriptor: nil, request_options: {})
|
|
48
|
+
# Some parameter documentations has been truncated, see
|
|
49
|
+
# {WhopSDK::Models::WithdrawalCreateParams} for more details.
|
|
50
|
+
#
|
|
35
51
|
# @param amount [Float] The amount to withdraw in the specified currency
|
|
36
52
|
#
|
|
37
53
|
# @param company_id [String] The ID of the company to withdraw from.
|
|
@@ -40,6 +56,10 @@ module WhopSDK
|
|
|
40
56
|
#
|
|
41
57
|
# @param payout_method_id [String, nil] The ID of the payout method to use for the withdrawal.
|
|
42
58
|
#
|
|
59
|
+
# @param platform_covers_fees [Boolean, nil] Whether the platform covers the payout fees instead of the connected account.
|
|
60
|
+
#
|
|
61
|
+
# @param statement_descriptor [String, nil] Custom statement descriptor for the withdrawal. Must be between 5 and 22 charact
|
|
62
|
+
#
|
|
43
63
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
44
64
|
end
|
|
45
65
|
end
|
|
@@ -98,13 +98,7 @@ module WhopSDK
|
|
|
98
98
|
# @return [String, nil]
|
|
99
99
|
required :trace_code, String, nil?: true
|
|
100
100
|
|
|
101
|
-
# @!
|
|
102
|
-
# The type of withdrawal.
|
|
103
|
-
#
|
|
104
|
-
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
105
|
-
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
106
|
-
|
|
107
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
101
|
+
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:)
|
|
108
102
|
# Some parameter documentations has been truncated, see
|
|
109
103
|
# {WhopSDK::Models::WithdrawalCreateResponse} for more details.
|
|
110
104
|
#
|
|
@@ -139,8 +133,6 @@ module WhopSDK
|
|
|
139
133
|
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
140
134
|
#
|
|
141
135
|
# @param trace_code [String, nil] The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
142
|
-
#
|
|
143
|
-
# @param withdrawal_type [Symbol, WhopSDK::Models::WithdrawalTypes] The type of withdrawal.
|
|
144
136
|
|
|
145
137
|
# The different error codes a payout can be in.
|
|
146
138
|
#
|
|
@@ -173,6 +165,7 @@ module WhopSDK
|
|
|
173
165
|
INVALID_ACCOUNT_NUMBER = :invalid_account_number
|
|
174
166
|
INVALID_BANK_CODE = :invalid_bank_code
|
|
175
167
|
INVALID_BENEFICIARY = :invalid_beneficiary
|
|
168
|
+
INVALID_MAILING_ADDRESS = :invalid_mailing_address
|
|
176
169
|
INVALID_BRANCH_NUMBER = :invalid_branch_number
|
|
177
170
|
INVALID_BRANCH_CODE = :invalid_branch_code
|
|
178
171
|
INVALID_PHONE_NUMBER = :invalid_phone_number
|