whop_sdk 0.0.22 → 0.0.24
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 +45 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -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 +5 -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_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_interaction_completed_webhook_event.rb +9 -1
- 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_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_approved_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_deleted_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/entry_denied_webhook_event.rb +9 -1
- 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/file_create_params.rb +22 -0
- data/lib/whop_sdk/models/file_create_response.rb +90 -0
- data/lib/whop_sdk/models/file_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/file_retrieve_response.rb +74 -0
- 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/invoice_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_paid_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_past_due_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/invoice_voided_webhook_event.rb +9 -1
- 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_activated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/membership_deactivated_webhook_event.rb +9 -1
- 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 +13 -52
- 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_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_failed_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +38 -37
- data/lib/whop_sdk/models/payment_pending_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payment_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +35 -2
- 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 +23 -54
- data/lib/whop_sdk/models/plan_update_params.rb +23 -54
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/webhook_create_params.rb +117 -0
- data/lib/whop_sdk/models/webhook_create_response.rb +184 -0
- data/lib/whop_sdk/models/webhook_delete_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_delete_response.rb +8 -0
- data/lib/whop_sdk/models/webhook_list_params.rb +54 -0
- data/lib/whop_sdk/models/webhook_list_response.rb +123 -0
- data/lib/whop_sdk/models/webhook_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/webhook_retrieve_response.rb +176 -0
- data/lib/whop_sdk/models/webhook_update_params.rb +104 -0
- data/lib/whop_sdk/models/webhook_update_response.rb +176 -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 +11 -10
- 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 +11 -10
- data/lib/whop_sdk/models.rb +16 -2
- 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/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/experiences.rb +4 -2
- data/lib/whop_sdk/resources/files.rb +56 -0
- 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 +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +8 -4
- data/lib/whop_sdk/resources/webhooks.rb +158 -0
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +16 -1
- data/rbi/whop_sdk/client.rbi +3 -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 +10 -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_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_interaction_completed_webhook_event.rbi +9 -1
- 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_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_approved_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_deleted_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/entry_denied_webhook_event.rbi +9 -1
- 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/file_create_params.rbi +40 -0
- data/rbi/whop_sdk/models/file_create_response.rbi +140 -0
- data/rbi/whop_sdk/models/file_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/file_retrieve_response.rbi +129 -0
- 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/invoice_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_paid_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_past_due_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/invoice_voided_webhook_event.rbi +9 -1
- 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_activated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/membership_deactivated_webhook_event.rbi +9 -1
- 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 +18 -94
- 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_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_failed_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +45 -43
- data/rbi/whop_sdk/models/payment_pending_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +35 -1
- 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 +29 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +29 -93
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +9 -1
- data/rbi/whop_sdk/models/webhook_create_params.rbi +275 -0
- data/rbi/whop_sdk/models/webhook_create_response.rbi +494 -0
- data/rbi/whop_sdk/models/webhook_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/webhook_list_params.rbi +75 -0
- data/rbi/whop_sdk/models/webhook_list_response.rbi +297 -0
- data/rbi/whop_sdk/models/webhook_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +491 -0
- data/rbi/whop_sdk/models/webhook_update_params.rbi +263 -0
- data/rbi/whop_sdk/models/webhook_update_response.rbi +486 -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 +17 -12
- 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 +17 -12
- data/rbi/whop_sdk/models.rbi +16 -2
- 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/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/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/files.rbi +40 -0
- 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 +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +8 -14
- data/rbi/whop_sdk/resources/webhooks.rbi +140 -0
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/client.rbs +2 -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 +10 -0
- 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_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_interaction_completed_webhook_event.rbs +7 -2
- 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_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_approved_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_deleted_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/entry_denied_webhook_event.rbs +7 -2
- 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/file_create_params.rbs +23 -0
- data/sig/whop_sdk/models/file_create_response.rbs +68 -0
- data/sig/whop_sdk/models/file_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/file_retrieve_response.rbs +58 -0
- 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/invoice_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_paid_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_past_due_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/invoice_voided_webhook_event.rbs +7 -2
- 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_activated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_cancel_at_period_end_changed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/membership_deactivated_webhook_event.rbs +7 -2
- 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 +9 -30
- 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_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_failed_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +76 -74
- data/sig/whop_sdk/models/payment_pending_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payment_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +22 -2
- 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 +14 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +14 -30
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +7 -2
- data/sig/whop_sdk/models/webhook_create_params.rbs +126 -0
- data/sig/whop_sdk/models/webhook_create_response.rbs +203 -0
- data/sig/whop_sdk/models/webhook_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/webhook_list_params.rbs +46 -0
- data/sig/whop_sdk/models/webhook_list_response.rbs +125 -0
- data/sig/whop_sdk/models/webhook_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/webhook_retrieve_response.rbs +198 -0
- data/sig/whop_sdk/models/webhook_update_params.rbs +121 -0
- data/sig/whop_sdk/models/webhook_update_response.rbs +198 -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 +12 -10
- 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 +12 -10
- data/sig/whop_sdk/models.rbs +16 -2
- 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/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/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/files.rbs +17 -0
- 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 +2 -2
- data/sig/whop_sdk/resources/plans.rbs +4 -2
- data/sig/whop_sdk/resources/webhooks.rbs +36 -0
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +64 -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
|
@@ -20,15 +20,10 @@ module WhopSDK
|
|
|
20
20
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
|
|
21
21
|
description: T.nilable(String),
|
|
22
22
|
expiration_days: T.nilable(Integer),
|
|
23
|
-
image:
|
|
24
|
-
T.nilable(
|
|
25
|
-
T.any(
|
|
26
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
27
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
|
|
28
|
-
)
|
|
29
|
-
),
|
|
23
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
|
|
30
24
|
initial_price: T.nilable(Float),
|
|
31
25
|
internal_notes: T.nilable(String),
|
|
26
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
32
27
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
33
28
|
payment_method_configuration:
|
|
34
29
|
T.nilable(
|
|
@@ -69,6 +64,8 @@ module WhopSDK
|
|
|
69
64
|
initial_price: nil,
|
|
70
65
|
# A personal description or notes section for the business.
|
|
71
66
|
internal_notes: nil,
|
|
67
|
+
# Whether this plan uses legacy payment method controls
|
|
68
|
+
legacy_payment_method_controls: nil,
|
|
72
69
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
73
70
|
# up)
|
|
74
71
|
override_tax_type: nil,
|
|
@@ -132,15 +129,10 @@ module WhopSDK
|
|
|
132
129
|
T.nilable(T::Array[WhopSDK::PlanUpdateParams::CustomField::OrHash]),
|
|
133
130
|
description: T.nilable(String),
|
|
134
131
|
expiration_days: T.nilable(Integer),
|
|
135
|
-
image:
|
|
136
|
-
T.nilable(
|
|
137
|
-
T.any(
|
|
138
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
139
|
-
WhopSDK::PlanUpdateParams::Image::AttachmentInputWithID::OrHash
|
|
140
|
-
)
|
|
141
|
-
),
|
|
132
|
+
image: T.nilable(WhopSDK::PlanUpdateParams::Image::OrHash),
|
|
142
133
|
initial_price: T.nilable(Float),
|
|
143
134
|
internal_notes: T.nilable(String),
|
|
135
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
144
136
|
offer_cancel_discount: T.nilable(T::Boolean),
|
|
145
137
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
146
138
|
payment_method_configuration:
|
|
@@ -177,6 +169,8 @@ module WhopSDK
|
|
|
177
169
|
initial_price: nil,
|
|
178
170
|
# A personal description or notes section for the business.
|
|
179
171
|
internal_notes: nil,
|
|
172
|
+
# Whether this plan uses legacy payment method controls
|
|
173
|
+
legacy_payment_method_controls: nil,
|
|
180
174
|
# Whether or not to offer a discount to cancel a subscription.
|
|
181
175
|
offer_cancel_discount: nil,
|
|
182
176
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
@@ -3,6 +3,146 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Webhooks
|
|
6
|
+
# Creates a new webhook
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `developer:manage_webhook`
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
url: String,
|
|
14
|
+
api_version:
|
|
15
|
+
T.nilable(WhopSDK::WebhookCreateParams::APIVersion::OrSymbol),
|
|
16
|
+
child_resource_events: T.nilable(T::Boolean),
|
|
17
|
+
enabled: T.nilable(T::Boolean),
|
|
18
|
+
events:
|
|
19
|
+
T.nilable(T::Array[WhopSDK::WebhookCreateParams::Event::OrSymbol]),
|
|
20
|
+
resource_id: T.nilable(String),
|
|
21
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
22
|
+
).returns(WhopSDK::Models::WebhookCreateResponse)
|
|
23
|
+
end
|
|
24
|
+
def create(
|
|
25
|
+
# The URL to send the webhook to.
|
|
26
|
+
url:,
|
|
27
|
+
# The different API versions
|
|
28
|
+
api_version: nil,
|
|
29
|
+
# Whether or not to send events for child resources. For example, if the webhook
|
|
30
|
+
# is created for a Company, enabling this will only send events from the Company's
|
|
31
|
+
# sub-merchants (child companies).
|
|
32
|
+
child_resource_events: nil,
|
|
33
|
+
# Whether or not the webhook is enabled.
|
|
34
|
+
enabled: nil,
|
|
35
|
+
# The events to send the webhook for.
|
|
36
|
+
events: nil,
|
|
37
|
+
# The resource to create the webhook for. By default this will use current company
|
|
38
|
+
resource_id: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Retrieves a webhook by ID
|
|
44
|
+
#
|
|
45
|
+
# Required permissions:
|
|
46
|
+
#
|
|
47
|
+
# - `developer:manage_webhook`
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
id: String,
|
|
51
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
52
|
+
).returns(WhopSDK::Models::WebhookRetrieveResponse)
|
|
53
|
+
end
|
|
54
|
+
def retrieve(
|
|
55
|
+
# The ID of the webhook
|
|
56
|
+
id,
|
|
57
|
+
request_options: {}
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Updates a webhook
|
|
62
|
+
#
|
|
63
|
+
# Required permissions:
|
|
64
|
+
#
|
|
65
|
+
# - `developer:manage_webhook`
|
|
66
|
+
sig do
|
|
67
|
+
params(
|
|
68
|
+
id: String,
|
|
69
|
+
api_version:
|
|
70
|
+
T.nilable(WhopSDK::WebhookUpdateParams::APIVersion::OrSymbol),
|
|
71
|
+
child_resource_events: T.nilable(T::Boolean),
|
|
72
|
+
enabled: T.nilable(T::Boolean),
|
|
73
|
+
events:
|
|
74
|
+
T.nilable(T::Array[WhopSDK::WebhookUpdateParams::Event::OrSymbol]),
|
|
75
|
+
url: T.nilable(String),
|
|
76
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
77
|
+
).returns(WhopSDK::Models::WebhookUpdateResponse)
|
|
78
|
+
end
|
|
79
|
+
def update(
|
|
80
|
+
# The ID of the Webhook to update
|
|
81
|
+
id,
|
|
82
|
+
# The different API versions
|
|
83
|
+
api_version: nil,
|
|
84
|
+
# Whether or not to send events for child resources.
|
|
85
|
+
child_resource_events: nil,
|
|
86
|
+
# Whether or not the webhook is enabled.
|
|
87
|
+
enabled: nil,
|
|
88
|
+
# The events to send the webhook for.
|
|
89
|
+
events: nil,
|
|
90
|
+
# The URL to send the webhook to.
|
|
91
|
+
url: nil,
|
|
92
|
+
request_options: {}
|
|
93
|
+
)
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Lists webhooks for a company
|
|
97
|
+
#
|
|
98
|
+
# Required permissions:
|
|
99
|
+
#
|
|
100
|
+
# - `developer:manage_webhook`
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
company_id: String,
|
|
104
|
+
after: T.nilable(String),
|
|
105
|
+
before: T.nilable(String),
|
|
106
|
+
first: T.nilable(Integer),
|
|
107
|
+
last: T.nilable(Integer),
|
|
108
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
109
|
+
).returns(
|
|
110
|
+
WhopSDK::Internal::CursorPage[WhopSDK::Models::WebhookListResponse]
|
|
111
|
+
)
|
|
112
|
+
end
|
|
113
|
+
def list(
|
|
114
|
+
# The ID of the company to list webhooks for
|
|
115
|
+
company_id:,
|
|
116
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
117
|
+
after: nil,
|
|
118
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
119
|
+
before: nil,
|
|
120
|
+
# Returns the first _n_ elements from the list.
|
|
121
|
+
first: nil,
|
|
122
|
+
# Returns the last _n_ elements from the list.
|
|
123
|
+
last: nil,
|
|
124
|
+
request_options: {}
|
|
125
|
+
)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Deletes a webhook
|
|
129
|
+
#
|
|
130
|
+
# Required permissions:
|
|
131
|
+
#
|
|
132
|
+
# - `developer:manage_webhook`
|
|
133
|
+
sig do
|
|
134
|
+
params(
|
|
135
|
+
id: String,
|
|
136
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
137
|
+
).returns(T::Boolean)
|
|
138
|
+
end
|
|
139
|
+
def delete(
|
|
140
|
+
# The ID of the webhook to delete.
|
|
141
|
+
id,
|
|
142
|
+
request_options: {}
|
|
143
|
+
)
|
|
144
|
+
end
|
|
145
|
+
|
|
6
146
|
sig do
|
|
7
147
|
params(payload: String).returns(
|
|
8
148
|
T.any(
|
|
@@ -15,6 +15,8 @@ module WhopSDK
|
|
|
15
15
|
company_id: String,
|
|
16
16
|
currency: WhopSDK::Currency::OrSymbol,
|
|
17
17
|
payout_method_id: T.nilable(String),
|
|
18
|
+
platform_covers_fees: T.nilable(T::Boolean),
|
|
19
|
+
statement_descriptor: T.nilable(String),
|
|
18
20
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
19
21
|
).returns(WhopSDK::Models::WithdrawalCreateResponse)
|
|
20
22
|
end
|
|
@@ -27,6 +29,11 @@ module WhopSDK
|
|
|
27
29
|
currency:,
|
|
28
30
|
# The ID of the payout method to use for the withdrawal.
|
|
29
31
|
payout_method_id: nil,
|
|
32
|
+
# Whether the platform covers the payout fees instead of the connected account.
|
|
33
|
+
platform_covers_fees: nil,
|
|
34
|
+
# Custom statement descriptor for the withdrawal. Must be between 5 and 22
|
|
35
|
+
# characters and contain only alphanumeric characters.
|
|
36
|
+
statement_descriptor: nil,
|
|
30
37
|
request_options: {}
|
|
31
38
|
)
|
|
32
39
|
end
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -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
|
|
@@ -79,6 +79,11 @@ module WhopSDK
|
|
|
79
79
|
| :time_spent
|
|
80
80
|
| :time_spent_last_24_hours
|
|
81
81
|
| :daily_active_users
|
|
82
|
+
| :ai_prompt_count
|
|
83
|
+
| :total_ai_cost_usd
|
|
84
|
+
| :total_ai_tokens
|
|
85
|
+
| :last_ai_prompt_at
|
|
86
|
+
| :ai_average_rating
|
|
82
87
|
|
|
83
88
|
module Order
|
|
84
89
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -89,6 +94,11 @@ module WhopSDK
|
|
|
89
94
|
TIME_SPENT: :time_spent
|
|
90
95
|
TIME_SPENT_LAST_24_HOURS: :time_spent_last_24_hours
|
|
91
96
|
DAILY_ACTIVE_USERS: :daily_active_users
|
|
97
|
+
AI_PROMPT_COUNT: :ai_prompt_count
|
|
98
|
+
TOTAL_AI_COST_USD: :total_ai_cost_usd
|
|
99
|
+
TOTAL_AI_TOKENS: :total_ai_tokens
|
|
100
|
+
LAST_AI_PROMPT_AT: :last_ai_prompt_at
|
|
101
|
+
AI_AVERAGE_RATING: :ai_average_rating
|
|
92
102
|
|
|
93
103
|
def self?.values: -> ::Array[WhopSDK::Models::AppListParams::order]
|
|
94
104
|
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
|