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
|
@@ -9,38 +9,65 @@ module WhopSDK
|
|
|
9
9
|
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::PaymentMethodTypes) }
|
|
10
10
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
11
|
|
|
12
|
+
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
13
|
+
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
12
14
|
AFTERPAY_CLEARPAY =
|
|
13
15
|
T.let(:afterpay_clearpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
14
16
|
ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
|
+
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
15
18
|
AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
|
+
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
16
20
|
APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
21
|
+
AU_BECS_DEBIT =
|
|
22
|
+
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
|
+
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
24
|
BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
+
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
|
+
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
|
+
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
|
+
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
29
|
+
CAPCHASE_PAY =
|
|
30
|
+
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
18
31
|
CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
32
|
CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
+
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
20
34
|
CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
+
CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
+
CUSTOMER_BALANCE =
|
|
37
|
+
T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
+
DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
+
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
+
EU_BANK_TRANSFER =
|
|
41
|
+
T.let(:eu_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
|
+
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
|
+
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
21
44
|
GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
45
|
+
GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
46
|
+
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
47
|
+
ID_BANK_TRANSFER =
|
|
48
|
+
T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
22
49
|
IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
50
|
+
INTERAC = T.let(:interac, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
51
|
+
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
52
|
KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
53
|
+
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
|
+
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
55
|
+
KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
56
|
+
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
57
|
+
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
58
|
+
MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
24
59
|
MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
-
|
|
26
|
-
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
|
-
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
|
-
US_BANK_ACCOUNT =
|
|
29
|
-
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
30
|
-
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
31
|
-
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
32
|
-
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
-
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
34
|
-
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
-
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
-
PLATFORM_BALANCE =
|
|
37
|
-
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
-
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
-
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
-
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
60
|
+
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
41
61
|
MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
|
-
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
62
|
NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
+
NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
+
NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
65
|
+
NG_BANK_TRANSFER =
|
|
66
|
+
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
+
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
+
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
+
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
70
|
+
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
44
71
|
NZ_BANK_ACCOUNT =
|
|
45
72
|
T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
46
73
|
OXXO = T.let(:oxxo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -49,64 +76,40 @@ module WhopSDK
|
|
|
49
76
|
T.let(:pay_by_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
50
77
|
PAYCO = T.let(:payco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
51
78
|
PAYNOW = T.let(:paynow, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
79
|
+
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
+
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
81
|
+
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
52
82
|
PIX = T.let(:pix, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
83
|
+
PLATFORM_BALANCE =
|
|
84
|
+
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
53
85
|
PROMPTPAY = T.let(:promptpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
86
|
+
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
87
|
+
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
88
|
REVOLUT_PAY =
|
|
55
89
|
T.let(:revolut_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
56
90
|
SAMSUNG_PAY =
|
|
57
91
|
T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
58
92
|
SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
|
-
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
60
|
-
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
61
|
-
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
|
-
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
-
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
-
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
65
|
-
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
|
-
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
-
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
-
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
-
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
70
|
-
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
71
|
-
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
72
|
-
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
73
|
-
AU_BECS_DEBIT =
|
|
74
|
-
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
75
|
-
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
76
|
-
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
77
|
-
CAPCHASE_PAY =
|
|
78
|
-
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
79
|
-
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
-
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
81
|
-
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
82
|
-
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
83
|
-
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
84
93
|
SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
NG_BANK_TRANSFER =
|
|
92
|
-
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
93
|
-
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
-
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
-
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
-
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
-
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
98
|
-
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
+
SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
+
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
+
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
+
SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
98
|
+
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
99
|
+
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
99
100
|
SOUTH_KOREA_MARKET =
|
|
100
101
|
T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
|
-
|
|
102
|
-
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
103
|
-
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
102
|
+
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
104
103
|
SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
+
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
106
|
+
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
107
|
+
US_BANK_ACCOUNT =
|
|
108
|
+
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
+
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
|
+
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
|
+
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
112
|
+
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
113
|
UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
114
|
|
|
112
115
|
sig do
|
|
@@ -18,6 +18,7 @@ module WhopSDK
|
|
|
18
18
|
PLATFORM_BALANCE =
|
|
19
19
|
T.let(:platform_balance, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
20
20
|
MULTI_PSP = T.let(:multi_psp, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
|
+
ADYEN = T.let(:adyen, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
22
|
|
|
22
23
|
sig { override.returns(T::Array[WhopSDK::PaymentProvider::TaggedSymbol]) }
|
|
23
24
|
def self.values
|
|
@@ -96,6 +96,11 @@ module WhopSDK
|
|
|
96
96
|
sig { returns(String) }
|
|
97
97
|
attr_accessor :id
|
|
98
98
|
|
|
99
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
100
|
+
# account number or an email address.
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_accessor :account_reference
|
|
103
|
+
|
|
99
104
|
# The company associated with the payout token
|
|
100
105
|
sig do
|
|
101
106
|
returns(
|
|
@@ -114,6 +119,10 @@ module WhopSDK
|
|
|
114
119
|
end
|
|
115
120
|
attr_writer :company
|
|
116
121
|
|
|
122
|
+
# The date and time the payout token was created
|
|
123
|
+
sig { returns(Time) }
|
|
124
|
+
attr_accessor :created_at
|
|
125
|
+
|
|
117
126
|
# The currency code of the payout destination. This is the currency that payouts
|
|
118
127
|
# will be made in for this token.
|
|
119
128
|
sig { returns(String) }
|
|
@@ -139,6 +148,10 @@ module WhopSDK
|
|
|
139
148
|
end
|
|
140
149
|
attr_writer :destination
|
|
141
150
|
|
|
151
|
+
# The name of the bank or financial institution.
|
|
152
|
+
sig { returns(T.nilable(String)) }
|
|
153
|
+
attr_accessor :institution_name
|
|
154
|
+
|
|
142
155
|
# Whether this payout token is the default for the payout account
|
|
143
156
|
sig { returns(T::Boolean) }
|
|
144
157
|
attr_accessor :is_default
|
|
@@ -152,15 +165,18 @@ module WhopSDK
|
|
|
152
165
|
sig do
|
|
153
166
|
params(
|
|
154
167
|
id: String,
|
|
168
|
+
account_reference: T.nilable(String),
|
|
155
169
|
company:
|
|
156
170
|
T.nilable(
|
|
157
171
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
158
172
|
),
|
|
173
|
+
created_at: Time,
|
|
159
174
|
currency: String,
|
|
160
175
|
destination:
|
|
161
176
|
T.nilable(
|
|
162
177
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
163
178
|
),
|
|
179
|
+
institution_name: T.nilable(String),
|
|
164
180
|
is_default: T::Boolean,
|
|
165
181
|
nickname: T.nilable(String)
|
|
166
182
|
).returns(T.attached_class)
|
|
@@ -168,13 +184,20 @@ module WhopSDK
|
|
|
168
184
|
def self.new(
|
|
169
185
|
# The ID of the payout token
|
|
170
186
|
id:,
|
|
187
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
188
|
+
# account number or an email address.
|
|
189
|
+
account_reference:,
|
|
171
190
|
# The company associated with the payout token
|
|
172
191
|
company:,
|
|
192
|
+
# The date and time the payout token was created
|
|
193
|
+
created_at:,
|
|
173
194
|
# The currency code of the payout destination. This is the currency that payouts
|
|
174
195
|
# will be made in for this token.
|
|
175
196
|
currency:,
|
|
176
197
|
# The payout destination associated with the payout token
|
|
177
198
|
destination:,
|
|
199
|
+
# The name of the bank or financial institution.
|
|
200
|
+
institution_name:,
|
|
178
201
|
# Whether this payout token is the default for the payout account
|
|
179
202
|
is_default:,
|
|
180
203
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -187,15 +210,18 @@ module WhopSDK
|
|
|
187
210
|
override.returns(
|
|
188
211
|
{
|
|
189
212
|
id: String,
|
|
213
|
+
account_reference: T.nilable(String),
|
|
190
214
|
company:
|
|
191
215
|
T.nilable(
|
|
192
216
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
|
|
193
217
|
),
|
|
218
|
+
created_at: Time,
|
|
194
219
|
currency: String,
|
|
195
220
|
destination:
|
|
196
221
|
T.nilable(
|
|
197
222
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
198
223
|
),
|
|
224
|
+
institution_name: T.nilable(String),
|
|
199
225
|
is_default: T::Boolean,
|
|
200
226
|
nickname: T.nilable(String)
|
|
201
227
|
}
|
|
@@ -15,6 +15,11 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
19
|
+
# account number or an email address.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :account_reference
|
|
22
|
+
|
|
18
23
|
# The company associated with the payout token
|
|
19
24
|
sig do
|
|
20
25
|
returns(T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company))
|
|
@@ -31,6 +36,10 @@ module WhopSDK
|
|
|
31
36
|
end
|
|
32
37
|
attr_writer :company
|
|
33
38
|
|
|
39
|
+
# The date and time the payout token was created
|
|
40
|
+
sig { returns(Time) }
|
|
41
|
+
attr_accessor :created_at
|
|
42
|
+
|
|
34
43
|
# The currency code of the payout destination. This is the currency that payouts
|
|
35
44
|
# will be made in for this token.
|
|
36
45
|
sig { returns(String) }
|
|
@@ -54,6 +63,10 @@ module WhopSDK
|
|
|
54
63
|
end
|
|
55
64
|
attr_writer :destination
|
|
56
65
|
|
|
66
|
+
# The name of the bank or financial institution.
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_accessor :institution_name
|
|
69
|
+
|
|
57
70
|
# Whether this payout token is the default for the payout account
|
|
58
71
|
sig { returns(T::Boolean) }
|
|
59
72
|
attr_accessor :is_default
|
|
@@ -67,15 +80,18 @@ module WhopSDK
|
|
|
67
80
|
sig do
|
|
68
81
|
params(
|
|
69
82
|
id: String,
|
|
83
|
+
account_reference: T.nilable(String),
|
|
70
84
|
company:
|
|
71
85
|
T.nilable(
|
|
72
86
|
WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
|
|
73
87
|
),
|
|
88
|
+
created_at: Time,
|
|
74
89
|
currency: String,
|
|
75
90
|
destination:
|
|
76
91
|
T.nilable(
|
|
77
92
|
WhopSDK::Models::PayoutMethodListResponse::Destination::OrHash
|
|
78
93
|
),
|
|
94
|
+
institution_name: T.nilable(String),
|
|
79
95
|
is_default: T::Boolean,
|
|
80
96
|
nickname: T.nilable(String)
|
|
81
97
|
).returns(T.attached_class)
|
|
@@ -83,13 +99,20 @@ module WhopSDK
|
|
|
83
99
|
def self.new(
|
|
84
100
|
# The ID of the payout token
|
|
85
101
|
id:,
|
|
102
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
103
|
+
# account number or an email address.
|
|
104
|
+
account_reference:,
|
|
86
105
|
# The company associated with the payout token
|
|
87
106
|
company:,
|
|
107
|
+
# The date and time the payout token was created
|
|
108
|
+
created_at:,
|
|
88
109
|
# The currency code of the payout destination. This is the currency that payouts
|
|
89
110
|
# will be made in for this token.
|
|
90
111
|
currency:,
|
|
91
112
|
# The payout destination associated with the payout token
|
|
92
113
|
destination:,
|
|
114
|
+
# The name of the bank or financial institution.
|
|
115
|
+
institution_name:,
|
|
93
116
|
# Whether this payout token is the default for the payout account
|
|
94
117
|
is_default:,
|
|
95
118
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -102,11 +125,14 @@ module WhopSDK
|
|
|
102
125
|
override.returns(
|
|
103
126
|
{
|
|
104
127
|
id: String,
|
|
128
|
+
account_reference: T.nilable(String),
|
|
105
129
|
company:
|
|
106
130
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company),
|
|
131
|
+
created_at: Time,
|
|
107
132
|
currency: String,
|
|
108
133
|
destination:
|
|
109
134
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Destination),
|
|
135
|
+
institution_name: T.nilable(String),
|
|
110
136
|
is_default: T::Boolean,
|
|
111
137
|
nickname: T.nilable(String)
|
|
112
138
|
}
|
|
@@ -15,6 +15,11 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
19
|
+
# account number or an email address.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :account_reference
|
|
22
|
+
|
|
18
23
|
# The company associated with the payout token
|
|
19
24
|
sig do
|
|
20
25
|
returns(
|
|
@@ -33,6 +38,10 @@ module WhopSDK
|
|
|
33
38
|
end
|
|
34
39
|
attr_writer :company
|
|
35
40
|
|
|
41
|
+
# The date and time the payout token was created
|
|
42
|
+
sig { returns(Time) }
|
|
43
|
+
attr_accessor :created_at
|
|
44
|
+
|
|
36
45
|
# The currency code of the payout destination. This is the currency that payouts
|
|
37
46
|
# will be made in for this token.
|
|
38
47
|
sig { returns(String) }
|
|
@@ -56,6 +65,10 @@ module WhopSDK
|
|
|
56
65
|
end
|
|
57
66
|
attr_writer :destination
|
|
58
67
|
|
|
68
|
+
# The name of the bank or financial institution.
|
|
69
|
+
sig { returns(T.nilable(String)) }
|
|
70
|
+
attr_accessor :institution_name
|
|
71
|
+
|
|
59
72
|
# Whether this payout token is the default for the payout account
|
|
60
73
|
sig { returns(T::Boolean) }
|
|
61
74
|
attr_accessor :is_default
|
|
@@ -69,15 +82,18 @@ module WhopSDK
|
|
|
69
82
|
sig do
|
|
70
83
|
params(
|
|
71
84
|
id: String,
|
|
85
|
+
account_reference: T.nilable(String),
|
|
72
86
|
company:
|
|
73
87
|
T.nilable(
|
|
74
88
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Company::OrHash
|
|
75
89
|
),
|
|
90
|
+
created_at: Time,
|
|
76
91
|
currency: String,
|
|
77
92
|
destination:
|
|
78
93
|
T.nilable(
|
|
79
94
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::OrHash
|
|
80
95
|
),
|
|
96
|
+
institution_name: T.nilable(String),
|
|
81
97
|
is_default: T::Boolean,
|
|
82
98
|
nickname: T.nilable(String)
|
|
83
99
|
).returns(T.attached_class)
|
|
@@ -85,13 +101,20 @@ module WhopSDK
|
|
|
85
101
|
def self.new(
|
|
86
102
|
# The ID of the payout token
|
|
87
103
|
id:,
|
|
104
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
105
|
+
# account number or an email address.
|
|
106
|
+
account_reference:,
|
|
88
107
|
# The company associated with the payout token
|
|
89
108
|
company:,
|
|
109
|
+
# The date and time the payout token was created
|
|
110
|
+
created_at:,
|
|
90
111
|
# The currency code of the payout destination. This is the currency that payouts
|
|
91
112
|
# will be made in for this token.
|
|
92
113
|
currency:,
|
|
93
114
|
# The payout destination associated with the payout token
|
|
94
115
|
destination:,
|
|
116
|
+
# The name of the bank or financial institution.
|
|
117
|
+
institution_name:,
|
|
95
118
|
# Whether this payout token is the default for the payout account
|
|
96
119
|
is_default:,
|
|
97
120
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -104,13 +127,16 @@ module WhopSDK
|
|
|
104
127
|
override.returns(
|
|
105
128
|
{
|
|
106
129
|
id: String,
|
|
130
|
+
account_reference: T.nilable(String),
|
|
107
131
|
company:
|
|
108
132
|
T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Company),
|
|
133
|
+
created_at: Time,
|
|
109
134
|
currency: String,
|
|
110
135
|
destination:
|
|
111
136
|
T.nilable(
|
|
112
137
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Destination
|
|
113
138
|
),
|
|
139
|
+
institution_name: T.nilable(String),
|
|
114
140
|
is_default: T::Boolean,
|
|
115
141
|
nickname: T.nilable(String)
|
|
116
142
|
}
|
|
@@ -42,17 +42,13 @@ module WhopSDK
|
|
|
42
42
|
attr_accessor :expiration_days
|
|
43
43
|
|
|
44
44
|
# An image for the plan. This will be visible on the product page to customers.
|
|
45
|
+
sig { returns(T.nilable(WhopSDK::PlanCreateParams::Image)) }
|
|
46
|
+
attr_reader :image
|
|
47
|
+
|
|
45
48
|
sig do
|
|
46
|
-
|
|
47
|
-
T.nilable(
|
|
48
|
-
T.any(
|
|
49
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
50
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
51
|
-
)
|
|
52
|
-
)
|
|
53
|
-
)
|
|
49
|
+
params(image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash)).void
|
|
54
50
|
end
|
|
55
|
-
|
|
51
|
+
attr_writer :image
|
|
56
52
|
|
|
57
53
|
# An additional amount charged upon first purchase. Use only if a one time payment
|
|
58
54
|
# OR you want to charge an additional amount on top of the renewal price. Provided
|
|
@@ -139,13 +135,7 @@ module WhopSDK
|
|
|
139
135
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
|
|
140
136
|
description: T.nilable(String),
|
|
141
137
|
expiration_days: T.nilable(Integer),
|
|
142
|
-
image:
|
|
143
|
-
T.nilable(
|
|
144
|
-
T.any(
|
|
145
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
146
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
|
|
147
|
-
)
|
|
148
|
-
),
|
|
138
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
|
|
149
139
|
initial_price: T.nilable(Float),
|
|
150
140
|
internal_notes: T.nilable(String),
|
|
151
141
|
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
@@ -231,13 +221,7 @@ module WhopSDK
|
|
|
231
221
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField]),
|
|
232
222
|
description: T.nilable(String),
|
|
233
223
|
expiration_days: T.nilable(Integer),
|
|
234
|
-
image:
|
|
235
|
-
T.nilable(
|
|
236
|
-
T.any(
|
|
237
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
238
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
239
|
-
)
|
|
240
|
-
),
|
|
224
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image),
|
|
241
225
|
initial_price: T.nilable(Float),
|
|
242
226
|
internal_notes: T.nilable(String),
|
|
243
227
|
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
@@ -335,82 +319,26 @@ module WhopSDK
|
|
|
335
319
|
end
|
|
336
320
|
end
|
|
337
321
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
extend WhopSDK::Internal::Type::Union
|
|
341
|
-
|
|
342
|
-
Variants =
|
|
322
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
323
|
+
OrHash =
|
|
343
324
|
T.type_alias do
|
|
344
|
-
T.any(
|
|
345
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
346
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
347
|
-
)
|
|
348
|
-
end
|
|
349
|
-
|
|
350
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
351
|
-
OrHash =
|
|
352
|
-
T.type_alias do
|
|
353
|
-
T.any(
|
|
354
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
355
|
-
WhopSDK::Internal::AnyHash
|
|
356
|
-
)
|
|
357
|
-
end
|
|
358
|
-
|
|
359
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
360
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
361
|
-
# mediaDirectUpload mutation.
|
|
362
|
-
sig { returns(String) }
|
|
363
|
-
attr_accessor :direct_upload_id
|
|
364
|
-
|
|
365
|
-
# Input for an attachment
|
|
366
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
367
|
-
def self.new(
|
|
368
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
369
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
370
|
-
# mediaDirectUpload mutation.
|
|
371
|
-
direct_upload_id:
|
|
372
|
-
)
|
|
373
|
-
end
|
|
374
|
-
|
|
375
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
376
|
-
def to_hash
|
|
325
|
+
T.any(WhopSDK::PlanCreateParams::Image, WhopSDK::Internal::AnyHash)
|
|
377
326
|
end
|
|
378
|
-
end
|
|
379
327
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
T.any(
|
|
384
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID,
|
|
385
|
-
WhopSDK::Internal::AnyHash
|
|
386
|
-
)
|
|
387
|
-
end
|
|
388
|
-
|
|
389
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
390
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
391
|
-
# doing.
|
|
392
|
-
sig { returns(String) }
|
|
393
|
-
attr_accessor :id
|
|
394
|
-
|
|
395
|
-
# Input for an attachment
|
|
396
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
397
|
-
def self.new(
|
|
398
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
399
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
400
|
-
# doing.
|
|
401
|
-
id:
|
|
402
|
-
)
|
|
403
|
-
end
|
|
328
|
+
# The ID of an existing file object.
|
|
329
|
+
sig { returns(String) }
|
|
330
|
+
attr_accessor :id
|
|
404
331
|
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
332
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
333
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
334
|
+
def self.new(
|
|
335
|
+
# The ID of an existing file object.
|
|
336
|
+
id:
|
|
337
|
+
)
|
|
408
338
|
end
|
|
409
339
|
|
|
410
|
-
sig
|
|
411
|
-
|
|
412
|
-
end
|
|
413
|
-
def self.variants
|
|
340
|
+
sig { override.returns({ id: String }) }
|
|
341
|
+
def to_hash
|
|
414
342
|
end
|
|
415
343
|
end
|
|
416
344
|
|