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
|
@@ -12,85 +12,86 @@ module WhopSDK
|
|
|
12
12
|
ALIPAY = :alipay
|
|
13
13
|
ALMA = :alma
|
|
14
14
|
AMAZON_PAY = :amazon_pay
|
|
15
|
+
APPLE = :apple
|
|
15
16
|
APPLE_PAY = :apple_pay
|
|
16
17
|
AU_BECS_DEBIT = :au_becs_debit
|
|
17
18
|
BACS_DEBIT = :bacs_debit
|
|
18
19
|
BANCONTACT = :bancontact
|
|
19
20
|
BILLIE = :billie
|
|
21
|
+
BIZUM = :bizum
|
|
20
22
|
BLIK = :blik
|
|
21
23
|
BOLETO = :boleto
|
|
24
|
+
CAPCHASE_PAY = :capchase_pay
|
|
22
25
|
CARD = :card
|
|
23
26
|
CASHAPP = :cashapp
|
|
27
|
+
COINBASE = :coinbase
|
|
24
28
|
CRYPTO = :crypto
|
|
29
|
+
CUSTOM = :custom
|
|
30
|
+
CUSTOMER_BALANCE = :customer_balance
|
|
31
|
+
DEMO_PAY = :demo_pay
|
|
25
32
|
EPS = :eps
|
|
33
|
+
EU_BANK_TRANSFER = :eu_bank_transfer
|
|
26
34
|
FPX = :fpx
|
|
27
35
|
GIROPAY = :giropay
|
|
28
36
|
GOOGLE_PAY = :google_pay
|
|
37
|
+
GOPAY = :gopay
|
|
29
38
|
GRABPAY = :grabpay
|
|
39
|
+
ID_BANK_TRANSFER = :id_bank_transfer
|
|
30
40
|
IDEAL = :ideal
|
|
31
41
|
KAKAO_PAY = :kakao_pay
|
|
32
42
|
KLARNA = :klarna
|
|
33
43
|
KONBINI = :konbini
|
|
34
44
|
KR_CARD = :kr_card
|
|
45
|
+
KR_MARKET = :kr_market
|
|
46
|
+
KRIYA = :kriya
|
|
35
47
|
LINK = :link
|
|
48
|
+
MB_WAY = :mb_way
|
|
36
49
|
MOBILEPAY = :mobilepay
|
|
50
|
+
MONDU = :mondu
|
|
37
51
|
MULTIBANCO = :multibanco
|
|
38
52
|
NAVER_PAY = :naver_pay
|
|
53
|
+
NETBANKING = :netbanking
|
|
54
|
+
NG_BANK = :ng_bank
|
|
55
|
+
NG_BANK_TRANSFER = :ng_bank_transfer
|
|
56
|
+
NG_CARD = :ng_card
|
|
57
|
+
NG_MARKET = :ng_market
|
|
58
|
+
NG_USSD = :ng_ussd
|
|
59
|
+
NG_WALLET = :ng_wallet
|
|
39
60
|
NZ_BANK_ACCOUNT = :nz_bank_account
|
|
40
61
|
OXXO = :oxxo
|
|
41
62
|
P24 = :p24
|
|
42
63
|
PAY_BY_BANK = :pay_by_bank
|
|
43
64
|
PAYCO = :payco
|
|
44
65
|
PAYNOW = :paynow
|
|
66
|
+
PAYPAL = :paypal
|
|
67
|
+
PAYPAY = :paypay
|
|
68
|
+
PAYTO = :payto
|
|
45
69
|
PIX = :pix
|
|
70
|
+
PLATFORM_BALANCE = :platform_balance
|
|
46
71
|
PROMPTPAY = :promptpay
|
|
72
|
+
QRIS = :qris
|
|
73
|
+
RECHNUNG = :rechnung
|
|
47
74
|
REVOLUT_PAY = :revolut_pay
|
|
48
75
|
SAMSUNG_PAY = :samsung_pay
|
|
49
76
|
SATISPAY = :satispay
|
|
77
|
+
SCALAPAY = :scalapay
|
|
50
78
|
SEPA_DEBIT = :sepa_debit
|
|
79
|
+
SEQURA = :sequra
|
|
80
|
+
SEZZLE = :sezzle
|
|
81
|
+
SHOP_PAY = :shop_pay
|
|
82
|
+
SHOPEEPAY = :shopeepay
|
|
51
83
|
SOFORT = :sofort
|
|
84
|
+
SOUTH_KOREA_MARKET = :south_korea_market
|
|
85
|
+
SPLITIT = :splitit
|
|
86
|
+
SUNBIT = :sunbit
|
|
52
87
|
SWISH = :swish
|
|
53
88
|
TWINT = :twint
|
|
89
|
+
UPI = :upi
|
|
54
90
|
US_BANK_ACCOUNT = :us_bank_account
|
|
91
|
+
VENMO = :venmo
|
|
92
|
+
VIPPS = :vipps
|
|
55
93
|
WECHAT_PAY = :wechat_pay
|
|
56
94
|
ZIP = :zip
|
|
57
|
-
BIZUM = :bizum
|
|
58
|
-
CAPCHASE_PAY = :capchase_pay
|
|
59
|
-
KRIYA = :kriya
|
|
60
|
-
MONDU = :mondu
|
|
61
|
-
NG_WALLET = :ng_wallet
|
|
62
|
-
PAYPAY = :paypay
|
|
63
|
-
SEQURA = :sequra
|
|
64
|
-
SCALAPAY = :scalapay
|
|
65
|
-
VIPPS = :vipps
|
|
66
|
-
CUSTOM = :custom
|
|
67
|
-
CUSTOMER_BALANCE = :customer_balance
|
|
68
|
-
GOPAY = :gopay
|
|
69
|
-
MB_WAY = :mb_way
|
|
70
|
-
NG_BANK = :ng_bank
|
|
71
|
-
NG_BANK_TRANSFER = :ng_bank_transfer
|
|
72
|
-
NG_CARD = :ng_card
|
|
73
|
-
NG_MARKET = :ng_market
|
|
74
|
-
NG_USSD = :ng_ussd
|
|
75
|
-
PAYPAL = :paypal
|
|
76
|
-
PAYTO = :payto
|
|
77
|
-
QRIS = :qris
|
|
78
|
-
RECHNUNG = :rechnung
|
|
79
|
-
SOUTH_KOREA_MARKET = :south_korea_market
|
|
80
|
-
KR_MARKET = :kr_market
|
|
81
|
-
SHOPEEPAY = :shopeepay
|
|
82
|
-
UPI = :upi
|
|
83
|
-
SUNBIT = :sunbit
|
|
84
|
-
NETBANKING = :netbanking
|
|
85
|
-
ID_BANK_TRANSFER = :id_bank_transfer
|
|
86
|
-
DEMO_PAY = :demo_pay
|
|
87
|
-
SHOP_PAY = :shop_pay
|
|
88
|
-
SEZZLE = :sezzle
|
|
89
|
-
COINBASE = :coinbase
|
|
90
|
-
SPLITIT = :splitit
|
|
91
|
-
PLATFORM_BALANCE = :platform_balance
|
|
92
|
-
APPLE = :apple
|
|
93
|
-
VENMO = :venmo
|
|
94
95
|
UNKNOWN = :unknown
|
|
95
96
|
|
|
96
97
|
# @!method self.values
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"payment.pending"]
|
|
34
34
|
required :type, const: :"payment.pending"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payment.pending")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"payment.pending"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"payment.succeeded"]
|
|
34
34
|
required :type, const: :"payment.succeeded"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payment.succeeded")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::Payment] An object representing a receipt for a membership.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"payment.succeeded"] The webhook event type
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"payout_method.created"]
|
|
34
34
|
required :type, const: :"payout_method.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"payout_method.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data] An object representing an user's setup payout destination.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"payout_method.created"] The webhook event type
|
|
@@ -52,12 +60,25 @@ module WhopSDK
|
|
|
52
60
|
# @return [String]
|
|
53
61
|
required :id, String
|
|
54
62
|
|
|
63
|
+
# @!attribute account_reference
|
|
64
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
65
|
+
# account number or an email address.
|
|
66
|
+
#
|
|
67
|
+
# @return [String, nil]
|
|
68
|
+
required :account_reference, String, nil?: true
|
|
69
|
+
|
|
55
70
|
# @!attribute company
|
|
56
71
|
# The company associated with the payout token
|
|
57
72
|
#
|
|
58
73
|
# @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil]
|
|
59
74
|
required :company, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company }, nil?: true
|
|
60
75
|
|
|
76
|
+
# @!attribute created_at
|
|
77
|
+
# The date and time the payout token was created
|
|
78
|
+
#
|
|
79
|
+
# @return [Time]
|
|
80
|
+
required :created_at, Time
|
|
81
|
+
|
|
61
82
|
# @!attribute currency
|
|
62
83
|
# The currency code of the payout destination. This is the currency that payouts
|
|
63
84
|
# will be made in for this token.
|
|
@@ -71,6 +92,12 @@ module WhopSDK
|
|
|
71
92
|
# @return [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil]
|
|
72
93
|
required :destination, -> { WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination }, nil?: true
|
|
73
94
|
|
|
95
|
+
# @!attribute institution_name
|
|
96
|
+
# The name of the bank or financial institution.
|
|
97
|
+
#
|
|
98
|
+
# @return [String, nil]
|
|
99
|
+
required :institution_name, String, nil?: true
|
|
100
|
+
|
|
74
101
|
# @!attribute is_default
|
|
75
102
|
# Whether this payout token is the default for the payout account
|
|
76
103
|
#
|
|
@@ -84,7 +111,7 @@ module WhopSDK
|
|
|
84
111
|
# @return [String, nil]
|
|
85
112
|
required :nickname, String, nil?: true
|
|
86
113
|
|
|
87
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
114
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
88
115
|
# Some parameter documentations has been truncated, see
|
|
89
116
|
# {WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data} for more details.
|
|
90
117
|
#
|
|
@@ -92,12 +119,18 @@ module WhopSDK
|
|
|
92
119
|
#
|
|
93
120
|
# @param id [String] The ID of the payout token
|
|
94
121
|
#
|
|
122
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
123
|
+
#
|
|
95
124
|
# @param company [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Company, nil] The company associated with the payout token
|
|
96
125
|
#
|
|
126
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
127
|
+
#
|
|
97
128
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
98
129
|
#
|
|
99
130
|
# @param destination [WhopSDK::Models::PayoutMethodCreatedWebhookEvent::Data::Destination, nil] The payout destination associated with the payout token
|
|
100
131
|
#
|
|
132
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
133
|
+
#
|
|
101
134
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
102
135
|
#
|
|
103
136
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -10,12 +10,25 @@ module WhopSDK
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
+
# @!attribute account_reference
|
|
14
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
15
|
+
# account number or an email address.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
required :account_reference, String, nil?: true
|
|
19
|
+
|
|
13
20
|
# @!attribute company
|
|
14
21
|
# The company associated with the payout token
|
|
15
22
|
#
|
|
16
23
|
# @return [WhopSDK::Models::PayoutMethodListResponse::Company, nil]
|
|
17
24
|
required :company, -> { WhopSDK::Models::PayoutMethodListResponse::Company }, nil?: true
|
|
18
25
|
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The date and time the payout token was created
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
19
32
|
# @!attribute currency
|
|
20
33
|
# The currency code of the payout destination. This is the currency that payouts
|
|
21
34
|
# will be made in for this token.
|
|
@@ -29,6 +42,12 @@ module WhopSDK
|
|
|
29
42
|
# @return [WhopSDK::Models::PayoutMethodListResponse::Destination, nil]
|
|
30
43
|
required :destination, -> { WhopSDK::Models::PayoutMethodListResponse::Destination }, nil?: true
|
|
31
44
|
|
|
45
|
+
# @!attribute institution_name
|
|
46
|
+
# The name of the bank or financial institution.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
required :institution_name, String, nil?: true
|
|
50
|
+
|
|
32
51
|
# @!attribute is_default
|
|
33
52
|
# Whether this payout token is the default for the payout account
|
|
34
53
|
#
|
|
@@ -42,7 +61,7 @@ module WhopSDK
|
|
|
42
61
|
# @return [String, nil]
|
|
43
62
|
required :nickname, String, nil?: true
|
|
44
63
|
|
|
45
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
64
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
46
65
|
# Some parameter documentations has been truncated, see
|
|
47
66
|
# {WhopSDK::Models::PayoutMethodListResponse} for more details.
|
|
48
67
|
#
|
|
@@ -50,12 +69,18 @@ module WhopSDK
|
|
|
50
69
|
#
|
|
51
70
|
# @param id [String] The ID of the payout token
|
|
52
71
|
#
|
|
72
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
73
|
+
#
|
|
53
74
|
# @param company [WhopSDK::Models::PayoutMethodListResponse::Company, nil] The company associated with the payout token
|
|
54
75
|
#
|
|
76
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
77
|
+
#
|
|
55
78
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
56
79
|
#
|
|
57
80
|
# @param destination [WhopSDK::Models::PayoutMethodListResponse::Destination, nil] The payout destination associated with the payout token
|
|
58
81
|
#
|
|
82
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
83
|
+
#
|
|
59
84
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
60
85
|
#
|
|
61
86
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -10,12 +10,25 @@ module WhopSDK
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
12
12
|
|
|
13
|
+
# @!attribute account_reference
|
|
14
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
15
|
+
# account number or an email address.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
required :account_reference, String, nil?: true
|
|
19
|
+
|
|
13
20
|
# @!attribute company
|
|
14
21
|
# The company associated with the payout token
|
|
15
22
|
#
|
|
16
23
|
# @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil]
|
|
17
24
|
required :company, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Company }, nil?: true
|
|
18
25
|
|
|
26
|
+
# @!attribute created_at
|
|
27
|
+
# The date and time the payout token was created
|
|
28
|
+
#
|
|
29
|
+
# @return [Time]
|
|
30
|
+
required :created_at, Time
|
|
31
|
+
|
|
19
32
|
# @!attribute currency
|
|
20
33
|
# The currency code of the payout destination. This is the currency that payouts
|
|
21
34
|
# will be made in for this token.
|
|
@@ -29,6 +42,12 @@ module WhopSDK
|
|
|
29
42
|
# @return [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil]
|
|
30
43
|
required :destination, -> { WhopSDK::Models::PayoutMethodRetrieveResponse::Destination }, nil?: true
|
|
31
44
|
|
|
45
|
+
# @!attribute institution_name
|
|
46
|
+
# The name of the bank or financial institution.
|
|
47
|
+
#
|
|
48
|
+
# @return [String, nil]
|
|
49
|
+
required :institution_name, String, nil?: true
|
|
50
|
+
|
|
32
51
|
# @!attribute is_default
|
|
33
52
|
# Whether this payout token is the default for the payout account
|
|
34
53
|
#
|
|
@@ -42,7 +61,7 @@ module WhopSDK
|
|
|
42
61
|
# @return [String, nil]
|
|
43
62
|
required :nickname, String, nil?: true
|
|
44
63
|
|
|
45
|
-
# @!method initialize(id:, company:, currency:, destination:, is_default:, nickname:)
|
|
64
|
+
# @!method initialize(id:, account_reference:, company:, created_at:, currency:, destination:, institution_name:, is_default:, nickname:)
|
|
46
65
|
# Some parameter documentations has been truncated, see
|
|
47
66
|
# {WhopSDK::Models::PayoutMethodRetrieveResponse} for more details.
|
|
48
67
|
#
|
|
@@ -50,12 +69,18 @@ module WhopSDK
|
|
|
50
69
|
#
|
|
51
70
|
# @param id [String] The ID of the payout token
|
|
52
71
|
#
|
|
72
|
+
# @param account_reference [String, nil] A reference to identify the payout destination, such as the last 4 digits of an
|
|
73
|
+
#
|
|
53
74
|
# @param company [WhopSDK::Models::PayoutMethodRetrieveResponse::Company, nil] The company associated with the payout token
|
|
54
75
|
#
|
|
76
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
77
|
+
#
|
|
55
78
|
# @param currency [String] The currency code of the payout destination. This is the currency that payouts w
|
|
56
79
|
#
|
|
57
80
|
# @param destination [WhopSDK::Models::PayoutMethodRetrieveResponse::Destination, nil] The payout destination associated with the payout token
|
|
58
81
|
#
|
|
82
|
+
# @param institution_name [String, nil] The name of the bank or financial institution.
|
|
83
|
+
#
|
|
59
84
|
# @param is_default [Boolean] Whether this payout token is the default for the payout account
|
|
60
85
|
#
|
|
61
86
|
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -54,8 +54,8 @@ module WhopSDK
|
|
|
54
54
|
# @!attribute image
|
|
55
55
|
# An image for the plan. This will be visible on the product page to customers.
|
|
56
56
|
#
|
|
57
|
-
# @return [WhopSDK::Models::PlanCreateParams::Image
|
|
58
|
-
optional :image,
|
|
57
|
+
# @return [WhopSDK::Models::PlanCreateParams::Image, nil]
|
|
58
|
+
optional :image, -> { WhopSDK::PlanCreateParams::Image }, nil?: true
|
|
59
59
|
|
|
60
60
|
# @!attribute initial_price
|
|
61
61
|
# An additional amount charged upon first purchase. Use only if a one time payment
|
|
@@ -71,6 +71,12 @@ module WhopSDK
|
|
|
71
71
|
# @return [String, nil]
|
|
72
72
|
optional :internal_notes, String, nil?: true
|
|
73
73
|
|
|
74
|
+
# @!attribute legacy_payment_method_controls
|
|
75
|
+
# Whether this plan uses legacy payment method controls
|
|
76
|
+
#
|
|
77
|
+
# @return [Boolean, nil]
|
|
78
|
+
optional :legacy_payment_method_controls, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
79
|
+
|
|
74
80
|
# @!attribute override_tax_type
|
|
75
81
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
76
82
|
# up)
|
|
@@ -142,7 +148,7 @@ module WhopSDK
|
|
|
142
148
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
143
149
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
144
150
|
|
|
145
|
-
# @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
151
|
+
# @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, legacy_payment_method_controls: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
146
152
|
# Some parameter documentations has been truncated, see
|
|
147
153
|
# {WhopSDK::Models::PlanCreateParams} for more details.
|
|
148
154
|
#
|
|
@@ -160,12 +166,14 @@ module WhopSDK
|
|
|
160
166
|
#
|
|
161
167
|
# @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
|
|
162
168
|
#
|
|
163
|
-
# @param image [WhopSDK::Models::PlanCreateParams::Image
|
|
169
|
+
# @param image [WhopSDK::Models::PlanCreateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
164
170
|
#
|
|
165
171
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase. Use only if a one time payment
|
|
166
172
|
#
|
|
167
173
|
# @param internal_notes [String, nil] A personal description or notes section for the business.
|
|
168
174
|
#
|
|
175
|
+
# @param legacy_payment_method_controls [Boolean, nil] Whether this plan uses legacy payment method controls
|
|
176
|
+
#
|
|
169
177
|
# @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
|
|
170
178
|
#
|
|
171
179
|
# @param payment_method_configuration [WhopSDK::Models::PlanCreateParams::PaymentMethodConfiguration, nil] The explicit payment method configuration for the plan. If not provided, the pla
|
|
@@ -241,56 +249,17 @@ module WhopSDK
|
|
|
241
249
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
242
250
|
end
|
|
243
251
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
#
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
#
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
# @!attribute direct_upload_id
|
|
256
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
257
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
258
|
-
# mediaDirectUpload mutation.
|
|
259
|
-
#
|
|
260
|
-
# @return [String]
|
|
261
|
-
required :direct_upload_id, String
|
|
262
|
-
|
|
263
|
-
# @!method initialize(direct_upload_id:)
|
|
264
|
-
# Some parameter documentations has been truncated, see
|
|
265
|
-
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID}
|
|
266
|
-
# for more details.
|
|
267
|
-
#
|
|
268
|
-
# Input for an attachment
|
|
269
|
-
#
|
|
270
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
274
|
-
# @!attribute id
|
|
275
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
276
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
277
|
-
# doing.
|
|
278
|
-
#
|
|
279
|
-
# @return [String]
|
|
280
|
-
required :id, String
|
|
281
|
-
|
|
282
|
-
# @!method initialize(id:)
|
|
283
|
-
# Some parameter documentations has been truncated, see
|
|
284
|
-
# {WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID} for more
|
|
285
|
-
# details.
|
|
286
|
-
#
|
|
287
|
-
# Input for an attachment
|
|
288
|
-
#
|
|
289
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
# @!method self.variants
|
|
293
|
-
# @return [Array(WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID)]
|
|
252
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
253
|
+
# @!attribute id
|
|
254
|
+
# The ID of an existing file object.
|
|
255
|
+
#
|
|
256
|
+
# @return [String]
|
|
257
|
+
required :id, String
|
|
258
|
+
|
|
259
|
+
# @!method initialize(id:)
|
|
260
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
261
|
+
#
|
|
262
|
+
# @param id [String] The ID of an existing file object.
|
|
294
263
|
end
|
|
295
264
|
|
|
296
265
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -42,8 +42,8 @@ module WhopSDK
|
|
|
42
42
|
# @!attribute image
|
|
43
43
|
# An image for the plan. This will be visible on the product page to customers.
|
|
44
44
|
#
|
|
45
|
-
# @return [WhopSDK::Models::PlanUpdateParams::Image
|
|
46
|
-
optional :image,
|
|
45
|
+
# @return [WhopSDK::Models::PlanUpdateParams::Image, nil]
|
|
46
|
+
optional :image, -> { WhopSDK::PlanUpdateParams::Image }, nil?: true
|
|
47
47
|
|
|
48
48
|
# @!attribute initial_price
|
|
49
49
|
# An additional amount charged upon first purchase.
|
|
@@ -57,6 +57,12 @@ module WhopSDK
|
|
|
57
57
|
# @return [String, nil]
|
|
58
58
|
optional :internal_notes, String, nil?: true
|
|
59
59
|
|
|
60
|
+
# @!attribute legacy_payment_method_controls
|
|
61
|
+
# Whether this plan uses legacy payment method controls
|
|
62
|
+
#
|
|
63
|
+
# @return [Boolean, nil]
|
|
64
|
+
optional :legacy_payment_method_controls, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
65
|
+
|
|
60
66
|
# @!attribute offer_cancel_discount
|
|
61
67
|
# Whether or not to offer a discount to cancel a subscription.
|
|
62
68
|
#
|
|
@@ -129,7 +135,7 @@ module WhopSDK
|
|
|
129
135
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
130
136
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
131
137
|
|
|
132
|
-
# @!method initialize(billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
138
|
+
# @!method initialize(billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, legacy_payment_method_controls: nil, offer_cancel_discount: nil, override_tax_type: nil, payment_method_configuration: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
|
|
133
139
|
# Some parameter documentations has been truncated, see
|
|
134
140
|
# {WhopSDK::Models::PlanUpdateParams} for more details.
|
|
135
141
|
#
|
|
@@ -143,12 +149,14 @@ module WhopSDK
|
|
|
143
149
|
#
|
|
144
150
|
# @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
|
|
145
151
|
#
|
|
146
|
-
# @param image [WhopSDK::Models::PlanUpdateParams::Image
|
|
152
|
+
# @param image [WhopSDK::Models::PlanUpdateParams::Image, nil] An image for the plan. This will be visible on the product page to customers.
|
|
147
153
|
#
|
|
148
154
|
# @param initial_price [Float, nil] An additional amount charged upon first purchase.
|
|
149
155
|
#
|
|
150
156
|
# @param internal_notes [String, nil] A personal description or notes section for the business.
|
|
151
157
|
#
|
|
158
|
+
# @param legacy_payment_method_controls [Boolean, nil] Whether this plan uses legacy payment method controls
|
|
159
|
+
#
|
|
152
160
|
# @param offer_cancel_discount [Boolean, nil] Whether or not to offer a discount to cancel a subscription.
|
|
153
161
|
#
|
|
154
162
|
# @param override_tax_type [Symbol, WhopSDK::Models::TaxType, nil] Whether or not the tax is included in a plan's price (or if it hasn't been set u
|
|
@@ -224,56 +232,17 @@ module WhopSDK
|
|
|
224
232
|
# @param field_type [Symbol, :text] The type of the custom field.
|
|
225
233
|
end
|
|
226
234
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
#
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
#
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
# @!attribute direct_upload_id
|
|
239
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
240
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
241
|
-
# mediaDirectUpload mutation.
|
|
242
|
-
#
|
|
243
|
-
# @return [String]
|
|
244
|
-
required :direct_upload_id, String
|
|
245
|
-
|
|
246
|
-
# @!method initialize(direct_upload_id:)
|
|
247
|
-
# Some parameter documentations has been truncated, see
|
|
248
|
-
# {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID}
|
|
249
|
-
# for more details.
|
|
250
|
-
#
|
|
251
|
-
# Input for an attachment
|
|
252
|
-
#
|
|
253
|
-
# @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
257
|
-
# @!attribute id
|
|
258
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
259
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
260
|
-
# doing.
|
|
261
|
-
#
|
|
262
|
-
# @return [String]
|
|
263
|
-
required :id, String
|
|
264
|
-
|
|
265
|
-
# @!method initialize(id:)
|
|
266
|
-
# Some parameter documentations has been truncated, see
|
|
267
|
-
# {WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID} for more
|
|
268
|
-
# details.
|
|
269
|
-
#
|
|
270
|
-
# Input for an attachment
|
|
271
|
-
#
|
|
272
|
-
# @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# @!method self.variants
|
|
276
|
-
# @return [Array(WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanUpdateParams::Image::AttachmentInputWithID)]
|
|
235
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
236
|
+
# @!attribute id
|
|
237
|
+
# The ID of an existing file object.
|
|
238
|
+
#
|
|
239
|
+
# @return [String]
|
|
240
|
+
required :id, String
|
|
241
|
+
|
|
242
|
+
# @!method initialize(id:)
|
|
243
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
244
|
+
#
|
|
245
|
+
# @param id [String] The ID of an existing file object.
|
|
277
246
|
end
|
|
278
247
|
|
|
279
248
|
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
@@ -33,13 +33,21 @@ module WhopSDK
|
|
|
33
33
|
# @return [Symbol, :"refund.created"]
|
|
34
34
|
required :type, const: :"refund.created"
|
|
35
35
|
|
|
36
|
-
# @!
|
|
36
|
+
# @!attribute company_id
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
#
|
|
39
|
+
# @return [String, nil]
|
|
40
|
+
optional :company_id, String, nil?: true
|
|
41
|
+
|
|
42
|
+
# @!method initialize(id:, data:, timestamp:, company_id: nil, api_version: :v1, type: :"refund.created")
|
|
37
43
|
# @param id [String] A unique ID for every single webhook request
|
|
38
44
|
#
|
|
39
45
|
# @param data [WhopSDK::Models::RefundCreatedWebhookEvent::Data] An object representing a refund made on a payment.
|
|
40
46
|
#
|
|
41
47
|
# @param timestamp [Time] The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
42
48
|
#
|
|
49
|
+
# @param company_id [String, nil] The company ID that this webhook event is associated with
|
|
50
|
+
#
|
|
43
51
|
# @param api_version [Symbol, :v1] The API version for this webhook
|
|
44
52
|
#
|
|
45
53
|
# @param type [Symbol, :"refund.created"] The webhook event type
|