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
|
@@ -2,7 +2,7 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type app_build_create_params =
|
|
4
4
|
{
|
|
5
|
-
attachment: WhopSDK::
|
|
5
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
6
6
|
checksum: String,
|
|
7
7
|
platform: WhopSDK::Models::app_build_platforms,
|
|
8
8
|
ai_prompt_id: String?,
|
|
@@ -15,7 +15,7 @@ module WhopSDK
|
|
|
15
15
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
16
|
include WhopSDK::Internal::Type::RequestParameters
|
|
17
17
|
|
|
18
|
-
attr_accessor attachment: WhopSDK::
|
|
18
|
+
attr_accessor attachment: WhopSDK::AppBuildCreateParams::Attachment
|
|
19
19
|
|
|
20
20
|
attr_accessor checksum: String
|
|
21
21
|
|
|
@@ -28,7 +28,7 @@ module WhopSDK
|
|
|
28
28
|
attr_accessor supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?
|
|
29
29
|
|
|
30
30
|
def initialize: (
|
|
31
|
-
attachment: WhopSDK::
|
|
31
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
32
32
|
checksum: String,
|
|
33
33
|
platform: WhopSDK::Models::app_build_platforms,
|
|
34
34
|
?ai_prompt_id: String?,
|
|
@@ -38,7 +38,7 @@ module WhopSDK
|
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
|
-
attachment: WhopSDK::
|
|
41
|
+
attachment: WhopSDK::AppBuildCreateParams::Attachment,
|
|
42
42
|
checksum: String,
|
|
43
43
|
platform: WhopSDK::Models::app_build_platforms,
|
|
44
44
|
ai_prompt_id: String?,
|
|
@@ -47,35 +47,14 @@ module WhopSDK
|
|
|
47
47
|
request_options: WhopSDK::RequestOptions
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
type attachment =
|
|
51
|
-
WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID
|
|
52
|
-
| WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithID
|
|
50
|
+
type attachment = { id: String }
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
{ direct_upload_id: String }
|
|
55
|
+
def initialize: (id: String) -> void
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
attr_accessor direct_upload_id: String
|
|
62
|
-
|
|
63
|
-
def initialize: (direct_upload_id: String) -> void
|
|
64
|
-
|
|
65
|
-
def to_hash: -> { direct_upload_id: String }
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
type attachment_input_with_id = { id: String }
|
|
69
|
-
|
|
70
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def self?.variants: -> ::Array[WhopSDK::Models::AppBuildCreateParams::attachment]
|
|
57
|
+
def to_hash: -> { id: String }
|
|
79
58
|
end
|
|
80
59
|
end
|
|
81
60
|
end
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type app_create_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
name: String,
|
|
7
|
+
base_url: String?,
|
|
8
|
+
icon: WhopSDK::AppCreateParams::Icon?
|
|
9
|
+
}
|
|
5
10
|
& WhopSDK::Internal::Type::request_parameters
|
|
6
11
|
|
|
7
12
|
class AppCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
@@ -14,10 +19,13 @@ module WhopSDK
|
|
|
14
19
|
|
|
15
20
|
attr_accessor base_url: String?
|
|
16
21
|
|
|
22
|
+
attr_accessor icon: WhopSDK::AppCreateParams::Icon?
|
|
23
|
+
|
|
17
24
|
def initialize: (
|
|
18
25
|
company_id: String,
|
|
19
26
|
name: String,
|
|
20
27
|
?base_url: String?,
|
|
28
|
+
?icon: WhopSDK::AppCreateParams::Icon?,
|
|
21
29
|
?request_options: WhopSDK::request_opts
|
|
22
30
|
) -> void
|
|
23
31
|
|
|
@@ -25,8 +33,19 @@ module WhopSDK
|
|
|
25
33
|
company_id: String,
|
|
26
34
|
name: String,
|
|
27
35
|
base_url: String?,
|
|
36
|
+
icon: WhopSDK::AppCreateParams::Icon?,
|
|
28
37
|
request_options: WhopSDK::RequestOptions
|
|
29
38
|
}
|
|
39
|
+
|
|
40
|
+
type icon = { id: String }
|
|
41
|
+
|
|
42
|
+
class Icon < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor id: String
|
|
44
|
+
|
|
45
|
+
def initialize: (id: String) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { id: String }
|
|
48
|
+
end
|
|
30
49
|
end
|
|
31
50
|
end
|
|
32
51
|
end
|
|
@@ -73,22 +73,34 @@ module WhopSDK
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
type order =
|
|
76
|
-
:
|
|
76
|
+
:created_at
|
|
77
|
+
| :discoverable_at
|
|
77
78
|
| :total_installs_last_30_days
|
|
78
79
|
| :total_installs_last_7_days
|
|
79
80
|
| :time_spent
|
|
80
81
|
| :time_spent_last_24_hours
|
|
81
82
|
| :daily_active_users
|
|
83
|
+
| :ai_prompt_count
|
|
84
|
+
| :total_ai_cost_usd
|
|
85
|
+
| :total_ai_tokens
|
|
86
|
+
| :last_ai_prompt_at
|
|
87
|
+
| :ai_average_rating
|
|
82
88
|
|
|
83
89
|
module Order
|
|
84
90
|
extend WhopSDK::Internal::Type::Enum
|
|
85
91
|
|
|
92
|
+
CREATED_AT: :created_at
|
|
86
93
|
DISCOVERABLE_AT: :discoverable_at
|
|
87
94
|
TOTAL_INSTALLS_LAST_30_DAYS: :total_installs_last_30_days
|
|
88
95
|
TOTAL_INSTALLS_LAST_7_DAYS: :total_installs_last_7_days
|
|
89
96
|
TIME_SPENT: :time_spent
|
|
90
97
|
TIME_SPENT_LAST_24_HOURS: :time_spent_last_24_hours
|
|
91
98
|
DAILY_ACTIVE_USERS: :daily_active_users
|
|
99
|
+
AI_PROMPT_COUNT: :ai_prompt_count
|
|
100
|
+
TOTAL_AI_COST_USD: :total_ai_cost_usd
|
|
101
|
+
TOTAL_AI_TOKENS: :total_ai_tokens
|
|
102
|
+
LAST_AI_PROMPT_AT: :last_ai_prompt_at
|
|
103
|
+
AI_AVERAGE_RATING: :ai_average_rating
|
|
92
104
|
|
|
93
105
|
def self?.values: -> ::Array[WhopSDK::Models::AppListParams::order]
|
|
94
106
|
end
|
|
@@ -9,7 +9,7 @@ module WhopSDK
|
|
|
9
9
|
description: String?,
|
|
10
10
|
discover_path: String?,
|
|
11
11
|
experience_path: String?,
|
|
12
|
-
icon: WhopSDK::
|
|
12
|
+
icon: WhopSDK::AppUpdateParams::Icon?,
|
|
13
13
|
name: String?,
|
|
14
14
|
required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
15
15
|
status: WhopSDK::Models::app_statuses?
|
|
@@ -34,7 +34,7 @@ module WhopSDK
|
|
|
34
34
|
|
|
35
35
|
attr_accessor experience_path: String?
|
|
36
36
|
|
|
37
|
-
attr_accessor icon: WhopSDK::
|
|
37
|
+
attr_accessor icon: WhopSDK::AppUpdateParams::Icon?
|
|
38
38
|
|
|
39
39
|
attr_accessor name: String?
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ module WhopSDK
|
|
|
50
50
|
?description: String?,
|
|
51
51
|
?discover_path: String?,
|
|
52
52
|
?experience_path: String?,
|
|
53
|
-
?icon: WhopSDK::
|
|
53
|
+
?icon: WhopSDK::AppUpdateParams::Icon?,
|
|
54
54
|
?name: String?,
|
|
55
55
|
?required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
56
56
|
?status: WhopSDK::Models::app_statuses?,
|
|
@@ -65,42 +65,21 @@ module WhopSDK
|
|
|
65
65
|
description: String?,
|
|
66
66
|
discover_path: String?,
|
|
67
67
|
experience_path: String?,
|
|
68
|
-
icon: WhopSDK::
|
|
68
|
+
icon: WhopSDK::AppUpdateParams::Icon?,
|
|
69
69
|
name: String?,
|
|
70
70
|
required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
71
71
|
status: WhopSDK::Models::app_statuses?,
|
|
72
72
|
request_options: WhopSDK::RequestOptions
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
type icon =
|
|
76
|
-
WhopSDK::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID
|
|
77
|
-
| WhopSDK::AppUpdateParams::Icon::AttachmentInputWithID
|
|
75
|
+
type icon = { id: String }
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
class Icon < WhopSDK::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor id: String
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
{ direct_upload_id: String }
|
|
80
|
+
def initialize: (id: String) -> void
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
attr_accessor direct_upload_id: String
|
|
87
|
-
|
|
88
|
-
def initialize: (direct_upload_id: String) -> void
|
|
89
|
-
|
|
90
|
-
def to_hash: -> { direct_upload_id: String }
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
type attachment_input_with_id = { id: String }
|
|
94
|
-
|
|
95
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
96
|
-
attr_accessor id: String
|
|
97
|
-
|
|
98
|
-
def initialize: (id: String) -> void
|
|
99
|
-
|
|
100
|
-
def to_hash: -> { id: String }
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
def self?.variants: -> ::Array[WhopSDK::Models::AppUpdateParams::icon]
|
|
82
|
+
def to_hash: -> { id: String }
|
|
104
83
|
end
|
|
105
84
|
|
|
106
85
|
type required_scope = :read_user
|
|
@@ -17,6 +17,22 @@ module WhopSDK
|
|
|
17
17
|
| :jcbrupay
|
|
18
18
|
| :elo
|
|
19
19
|
| :maestro
|
|
20
|
+
| :tarjeta_naranja
|
|
21
|
+
| :cirrus
|
|
22
|
+
| :nspk_mir
|
|
23
|
+
| :verve
|
|
24
|
+
| :ebt
|
|
25
|
+
| :private_label
|
|
26
|
+
| :local_brand
|
|
27
|
+
| :uatp
|
|
28
|
+
| :wexcard
|
|
29
|
+
| :uzcard
|
|
30
|
+
| :meeza
|
|
31
|
+
| :hrg_store_card
|
|
32
|
+
| :girocard
|
|
33
|
+
| :fuel_card
|
|
34
|
+
| :dankort
|
|
35
|
+
| :carnet
|
|
20
36
|
| :unknown
|
|
21
37
|
|
|
22
38
|
module CardBrands
|
|
@@ -38,6 +54,22 @@ module WhopSDK
|
|
|
38
54
|
JCBRUPAY: :jcbrupay
|
|
39
55
|
ELO: :elo
|
|
40
56
|
MAESTRO: :maestro
|
|
57
|
+
TARJETA_NARANJA: :tarjeta_naranja
|
|
58
|
+
CIRRUS: :cirrus
|
|
59
|
+
NSPK_MIR: :nspk_mir
|
|
60
|
+
VERVE: :verve
|
|
61
|
+
EBT: :ebt
|
|
62
|
+
PRIVATE_LABEL: :private_label
|
|
63
|
+
LOCAL_BRAND: :local_brand
|
|
64
|
+
UATP: :uatp
|
|
65
|
+
WEXCARD: :wexcard
|
|
66
|
+
UZCARD: :uzcard
|
|
67
|
+
MEEZA: :meeza
|
|
68
|
+
HRG_STORE_CARD: :hrg_store_card
|
|
69
|
+
GIROCARD: :girocard
|
|
70
|
+
FUEL_CARD: :fuel_card
|
|
71
|
+
DANKORT: :dankort
|
|
72
|
+
CARNET: :carnet
|
|
41
73
|
UNKNOWN: :unknown
|
|
42
74
|
|
|
43
75
|
def self?.values: -> ::Array[WhopSDK::Models::card_brands]
|
|
@@ -9,6 +9,7 @@ module WhopSDK
|
|
|
9
9
|
mode: :setup,
|
|
10
10
|
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
11
11
|
redirect_url: String?,
|
|
12
|
+
source_url: String?,
|
|
12
13
|
plan_id: String,
|
|
13
14
|
company_id: String
|
|
14
15
|
}
|
|
@@ -32,6 +33,8 @@ module WhopSDK
|
|
|
32
33
|
|
|
33
34
|
attr_accessor redirect_url: String?
|
|
34
35
|
|
|
36
|
+
attr_accessor source_url: String?
|
|
37
|
+
|
|
35
38
|
attr_accessor plan_id: String
|
|
36
39
|
|
|
37
40
|
attr_accessor company_id: String
|
|
@@ -45,6 +48,7 @@ module WhopSDK
|
|
|
45
48
|
?metadata: ::Hash[Symbol, top]?,
|
|
46
49
|
?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
47
50
|
?redirect_url: String?,
|
|
51
|
+
?source_url: String?,
|
|
48
52
|
?mode: :setup,
|
|
49
53
|
?request_options: WhopSDK::request_opts
|
|
50
54
|
) -> void
|
|
@@ -57,6 +61,7 @@ module WhopSDK
|
|
|
57
61
|
mode: :setup,
|
|
58
62
|
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
59
63
|
redirect_url: String?,
|
|
64
|
+
source_url: String?,
|
|
60
65
|
plan_id: String,
|
|
61
66
|
company_id: String,
|
|
62
67
|
request_options: WhopSDK::RequestOptions
|
|
@@ -72,7 +77,7 @@ module WhopSDK
|
|
|
72
77
|
description: String?,
|
|
73
78
|
expiration_days: Integer?,
|
|
74
79
|
force_create_new_plan: bool?,
|
|
75
|
-
image: WhopSDK::
|
|
80
|
+
image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
76
81
|
initial_price: Float?,
|
|
77
82
|
internal_notes: String?,
|
|
78
83
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -83,6 +88,7 @@ module WhopSDK
|
|
|
83
88
|
release_method: WhopSDK::Models::release_method?,
|
|
84
89
|
renewal_price: Float?,
|
|
85
90
|
split_pay_required_payments: Integer?,
|
|
91
|
+
stock: Integer?,
|
|
86
92
|
title: String?,
|
|
87
93
|
trial_period_days: Integer?,
|
|
88
94
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -105,7 +111,7 @@ module WhopSDK
|
|
|
105
111
|
|
|
106
112
|
attr_accessor force_create_new_plan: bool?
|
|
107
113
|
|
|
108
|
-
attr_accessor image: WhopSDK::
|
|
114
|
+
attr_accessor image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?
|
|
109
115
|
|
|
110
116
|
attr_accessor initial_price: Float?
|
|
111
117
|
|
|
@@ -127,6 +133,8 @@ module WhopSDK
|
|
|
127
133
|
|
|
128
134
|
attr_accessor split_pay_required_payments: Integer?
|
|
129
135
|
|
|
136
|
+
attr_accessor stock: Integer?
|
|
137
|
+
|
|
130
138
|
attr_accessor title: String?
|
|
131
139
|
|
|
132
140
|
attr_accessor trial_period_days: Integer?
|
|
@@ -142,7 +150,7 @@ module WhopSDK
|
|
|
142
150
|
?description: String?,
|
|
143
151
|
?expiration_days: Integer?,
|
|
144
152
|
?force_create_new_plan: bool?,
|
|
145
|
-
?image: WhopSDK::
|
|
153
|
+
?image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
146
154
|
?initial_price: Float?,
|
|
147
155
|
?internal_notes: String?,
|
|
148
156
|
?override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -153,6 +161,7 @@ module WhopSDK
|
|
|
153
161
|
?release_method: WhopSDK::Models::release_method?,
|
|
154
162
|
?renewal_price: Float?,
|
|
155
163
|
?split_pay_required_payments: Integer?,
|
|
164
|
+
?stock: Integer?,
|
|
156
165
|
?title: String?,
|
|
157
166
|
?trial_period_days: Integer?,
|
|
158
167
|
?visibility: WhopSDK::Models::visibility?
|
|
@@ -167,7 +176,7 @@ module WhopSDK
|
|
|
167
176
|
description: String?,
|
|
168
177
|
expiration_days: Integer?,
|
|
169
178
|
force_create_new_plan: bool?,
|
|
170
|
-
image: WhopSDK::
|
|
179
|
+
image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
171
180
|
initial_price: Float?,
|
|
172
181
|
internal_notes: String?,
|
|
173
182
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -178,6 +187,7 @@ module WhopSDK
|
|
|
178
187
|
release_method: WhopSDK::Models::release_method?,
|
|
179
188
|
renewal_price: Float?,
|
|
180
189
|
split_pay_required_payments: Integer?,
|
|
190
|
+
stock: Integer?,
|
|
181
191
|
title: String?,
|
|
182
192
|
trial_period_days: Integer?,
|
|
183
193
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -225,35 +235,14 @@ module WhopSDK
|
|
|
225
235
|
}
|
|
226
236
|
end
|
|
227
237
|
|
|
228
|
-
type image =
|
|
229
|
-
WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID
|
|
230
|
-
| WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
|
|
231
|
-
|
|
232
|
-
module Image
|
|
233
|
-
extend WhopSDK::Internal::Type::Union
|
|
234
|
-
|
|
235
|
-
type attachment_input_with_direct_upload_id =
|
|
236
|
-
{ direct_upload_id: String }
|
|
237
|
-
|
|
238
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
239
|
-
attr_accessor direct_upload_id: String
|
|
240
|
-
|
|
241
|
-
def initialize: (direct_upload_id: String) -> void
|
|
242
|
-
|
|
243
|
-
def to_hash: -> { direct_upload_id: String }
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
type attachment_input_with_id = { id: String }
|
|
247
|
-
|
|
248
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
249
|
-
attr_accessor id: String
|
|
238
|
+
type image = { id: String }
|
|
250
239
|
|
|
251
|
-
|
|
240
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
241
|
+
attr_accessor id: String
|
|
252
242
|
|
|
253
|
-
|
|
254
|
-
end
|
|
243
|
+
def initialize: (id: String) -> void
|
|
255
244
|
|
|
256
|
-
def
|
|
245
|
+
def to_hash: -> { id: String }
|
|
257
246
|
end
|
|
258
247
|
|
|
259
248
|
type payment_method_configuration =
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
title: String,
|
|
8
8
|
business_type: WhopSDK::Models::business_types?,
|
|
9
9
|
industry_type: WhopSDK::Models::industry_types?,
|
|
10
|
+
logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
10
11
|
metadata: ::Hash[Symbol, top]?,
|
|
11
12
|
send_customer_emails: bool?
|
|
12
13
|
}
|
|
@@ -26,6 +27,8 @@ module WhopSDK
|
|
|
26
27
|
|
|
27
28
|
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
28
29
|
|
|
30
|
+
attr_accessor logo: WhopSDK::CompanyCreateParams::Logo?
|
|
31
|
+
|
|
29
32
|
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
30
33
|
|
|
31
34
|
attr_accessor send_customer_emails: bool?
|
|
@@ -36,6 +39,7 @@ module WhopSDK
|
|
|
36
39
|
title: String,
|
|
37
40
|
?business_type: WhopSDK::Models::business_types?,
|
|
38
41
|
?industry_type: WhopSDK::Models::industry_types?,
|
|
42
|
+
?logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
39
43
|
?metadata: ::Hash[Symbol, top]?,
|
|
40
44
|
?send_customer_emails: bool?,
|
|
41
45
|
?request_options: WhopSDK::request_opts
|
|
@@ -47,10 +51,21 @@ module WhopSDK
|
|
|
47
51
|
title: String,
|
|
48
52
|
business_type: WhopSDK::Models::business_types?,
|
|
49
53
|
industry_type: WhopSDK::Models::industry_types?,
|
|
54
|
+
logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
50
55
|
metadata: ::Hash[Symbol, top]?,
|
|
51
56
|
send_customer_emails: bool?,
|
|
52
57
|
request_options: WhopSDK::RequestOptions
|
|
53
58
|
}
|
|
59
|
+
|
|
60
|
+
type logo = { id: String }
|
|
61
|
+
|
|
62
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
64
|
+
|
|
65
|
+
def initialize: (id: String) -> void
|
|
66
|
+
|
|
67
|
+
def to_hash: -> { id: String }
|
|
68
|
+
end
|
|
54
69
|
end
|
|
55
70
|
end
|
|
56
71
|
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type company_token_transaction_create_params =
|
|
4
|
+
{
|
|
5
|
+
amount: Float,
|
|
6
|
+
company_id: String,
|
|
7
|
+
destination_user_id: String,
|
|
8
|
+
transaction_type: :subtract,
|
|
9
|
+
user_id: String,
|
|
10
|
+
description: String?,
|
|
11
|
+
idempotency_key: String?
|
|
12
|
+
}
|
|
13
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class CompanyTokenTransactionCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
16
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor amount: Float
|
|
20
|
+
|
|
21
|
+
attr_accessor company_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor destination_user_id: String
|
|
24
|
+
|
|
25
|
+
attr_accessor transaction_type: :subtract
|
|
26
|
+
|
|
27
|
+
attr_accessor user_id: String
|
|
28
|
+
|
|
29
|
+
attr_accessor description: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor idempotency_key: String?
|
|
32
|
+
|
|
33
|
+
def initialize: (
|
|
34
|
+
amount: Float,
|
|
35
|
+
company_id: String,
|
|
36
|
+
destination_user_id: String,
|
|
37
|
+
user_id: String,
|
|
38
|
+
?description: String?,
|
|
39
|
+
?idempotency_key: String?,
|
|
40
|
+
?transaction_type: :subtract,
|
|
41
|
+
?request_options: WhopSDK::request_opts
|
|
42
|
+
) -> void
|
|
43
|
+
|
|
44
|
+
def to_hash: -> {
|
|
45
|
+
amount: Float,
|
|
46
|
+
company_id: String,
|
|
47
|
+
destination_user_id: String,
|
|
48
|
+
transaction_type: :subtract,
|
|
49
|
+
user_id: String,
|
|
50
|
+
description: String?,
|
|
51
|
+
idempotency_key: String?,
|
|
52
|
+
request_options: WhopSDK::RequestOptions
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type company_token_transaction_create_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
description: String?,
|
|
10
|
+
idempotency_key: String?,
|
|
11
|
+
linked_transaction_id: String?,
|
|
12
|
+
member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
|
|
13
|
+
transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
|
|
14
|
+
user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
class CompanyTokenTransactionCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor amount: Float
|
|
21
|
+
|
|
22
|
+
attr_accessor company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company
|
|
23
|
+
|
|
24
|
+
attr_accessor created_at: Time
|
|
25
|
+
|
|
26
|
+
attr_accessor description: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor idempotency_key: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor linked_transaction_id: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member
|
|
33
|
+
|
|
34
|
+
attr_accessor transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type
|
|
35
|
+
|
|
36
|
+
attr_accessor user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
|
|
37
|
+
|
|
38
|
+
def initialize: (
|
|
39
|
+
id: String,
|
|
40
|
+
amount: Float,
|
|
41
|
+
company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
|
|
42
|
+
created_at: Time,
|
|
43
|
+
description: String?,
|
|
44
|
+
idempotency_key: String?,
|
|
45
|
+
linked_transaction_id: String?,
|
|
46
|
+
member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
|
|
47
|
+
transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
|
|
48
|
+
user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
|
|
49
|
+
) -> void
|
|
50
|
+
|
|
51
|
+
def to_hash: -> {
|
|
52
|
+
id: String,
|
|
53
|
+
amount: Float,
|
|
54
|
+
company: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Company,
|
|
55
|
+
created_at: Time,
|
|
56
|
+
description: String?,
|
|
57
|
+
idempotency_key: String?,
|
|
58
|
+
linked_transaction_id: String?,
|
|
59
|
+
member: WhopSDK::Models::CompanyTokenTransactionCreateResponse::Member,
|
|
60
|
+
transaction_type: WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type,
|
|
61
|
+
user: WhopSDK::Models::CompanyTokenTransactionCreateResponse::User
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
type company = { id: String, route: String, title: String }
|
|
65
|
+
|
|
66
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor id: String
|
|
68
|
+
|
|
69
|
+
attr_accessor route: String
|
|
70
|
+
|
|
71
|
+
attr_accessor title: String
|
|
72
|
+
|
|
73
|
+
def initialize: (id: String, route: String, title: String) -> void
|
|
74
|
+
|
|
75
|
+
def to_hash: -> { id: String, route: String, title: String }
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
type member = { id: String }
|
|
79
|
+
|
|
80
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
81
|
+
attr_accessor id: String
|
|
82
|
+
|
|
83
|
+
def initialize: (id: String) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> { id: String }
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type transaction_type = :add | :subtract | :transfer
|
|
89
|
+
|
|
90
|
+
module TransactionType
|
|
91
|
+
extend WhopSDK::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
ADD: :add
|
|
94
|
+
SUBTRACT: :subtract
|
|
95
|
+
TRANSFER: :transfer
|
|
96
|
+
|
|
97
|
+
def self?.values: -> ::Array[WhopSDK::Models::CompanyTokenTransactionCreateResponse::transaction_type]
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
type user = { id: String, name: String?, username: String }
|
|
101
|
+
|
|
102
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
103
|
+
attr_accessor id: String
|
|
104
|
+
|
|
105
|
+
attr_accessor name: String?
|
|
106
|
+
|
|
107
|
+
attr_accessor username: String
|
|
108
|
+
|
|
109
|
+
def initialize: (id: String, name: String?, username: String) -> void
|
|
110
|
+
|
|
111
|
+
def to_hash: -> { id: String, name: String?, username: String }
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|