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
|
@@ -18,6 +18,7 @@ module WhopSDK
|
|
|
18
18
|
PLATFORM_BALANCE =
|
|
19
19
|
T.let(:platform_balance, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
20
20
|
MULTI_PSP = T.let(:multi_psp, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
|
+
ADYEN = T.let(:adyen, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
22
|
|
|
22
23
|
sig { override.returns(T::Array[WhopSDK::PaymentProvider::TaggedSymbol]) }
|
|
23
24
|
def self.values
|
|
@@ -34,11 +34,16 @@ module WhopSDK
|
|
|
34
34
|
sig { returns(Symbol) }
|
|
35
35
|
attr_accessor :type
|
|
36
36
|
|
|
37
|
+
# The company ID that this webhook event is associated with
|
|
38
|
+
sig { returns(T.nilable(String)) }
|
|
39
|
+
attr_accessor :company_id
|
|
40
|
+
|
|
37
41
|
sig do
|
|
38
42
|
params(
|
|
39
43
|
id: String,
|
|
40
44
|
data: WhopSDK::Payment::OrHash,
|
|
41
45
|
timestamp: Time,
|
|
46
|
+
company_id: T.nilable(String),
|
|
42
47
|
api_version: Symbol,
|
|
43
48
|
type: Symbol
|
|
44
49
|
).returns(T.attached_class)
|
|
@@ -50,6 +55,8 @@ module WhopSDK
|
|
|
50
55
|
data:,
|
|
51
56
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
52
57
|
timestamp:,
|
|
58
|
+
# The company ID that this webhook event is associated with
|
|
59
|
+
company_id: nil,
|
|
53
60
|
# The API version for this webhook
|
|
54
61
|
api_version: :v1,
|
|
55
62
|
# The webhook event type
|
|
@@ -64,7 +71,8 @@ module WhopSDK
|
|
|
64
71
|
api_version: Symbol,
|
|
65
72
|
data: WhopSDK::Payment,
|
|
66
73
|
timestamp: Time,
|
|
67
|
-
type: Symbol
|
|
74
|
+
type: Symbol,
|
|
75
|
+
company_id: T.nilable(String)
|
|
68
76
|
}
|
|
69
77
|
)
|
|
70
78
|
end
|
|
@@ -38,11 +38,16 @@ module WhopSDK
|
|
|
38
38
|
sig { returns(Symbol) }
|
|
39
39
|
attr_accessor :type
|
|
40
40
|
|
|
41
|
+
# The company ID that this webhook event is associated with
|
|
42
|
+
sig { returns(T.nilable(String)) }
|
|
43
|
+
attr_accessor :company_id
|
|
44
|
+
|
|
41
45
|
sig do
|
|
42
46
|
params(
|
|
43
47
|
id: String,
|
|
44
48
|
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data::OrHash,
|
|
45
49
|
timestamp: Time,
|
|
50
|
+
company_id: T.nilable(String),
|
|
46
51
|
api_version: Symbol,
|
|
47
52
|
type: Symbol
|
|
48
53
|
).returns(T.attached_class)
|
|
@@ -54,6 +59,8 @@ module WhopSDK
|
|
|
54
59
|
data:,
|
|
55
60
|
# The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
56
61
|
timestamp:,
|
|
62
|
+
# The company ID that this webhook event is associated with
|
|
63
|
+
company_id: nil,
|
|
57
64
|
# The API version for this webhook
|
|
58
65
|
api_version: :v1,
|
|
59
66
|
# The webhook event type
|
|
@@ -68,7 +75,8 @@ module WhopSDK
|
|
|
68
75
|
api_version: Symbol,
|
|
69
76
|
data: WhopSDK::PayoutMethodCreatedWebhookEvent::Data,
|
|
70
77
|
timestamp: Time,
|
|
71
|
-
type: Symbol
|
|
78
|
+
type: Symbol,
|
|
79
|
+
company_id: T.nilable(String)
|
|
72
80
|
}
|
|
73
81
|
)
|
|
74
82
|
end
|
|
@@ -88,6 +96,11 @@ module WhopSDK
|
|
|
88
96
|
sig { returns(String) }
|
|
89
97
|
attr_accessor :id
|
|
90
98
|
|
|
99
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
100
|
+
# account number or an email address.
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_accessor :account_reference
|
|
103
|
+
|
|
91
104
|
# The company associated with the payout token
|
|
92
105
|
sig do
|
|
93
106
|
returns(
|
|
@@ -106,6 +119,10 @@ module WhopSDK
|
|
|
106
119
|
end
|
|
107
120
|
attr_writer :company
|
|
108
121
|
|
|
122
|
+
# The date and time the payout token was created
|
|
123
|
+
sig { returns(Time) }
|
|
124
|
+
attr_accessor :created_at
|
|
125
|
+
|
|
109
126
|
# The currency code of the payout destination. This is the currency that payouts
|
|
110
127
|
# will be made in for this token.
|
|
111
128
|
sig { returns(String) }
|
|
@@ -131,6 +148,10 @@ module WhopSDK
|
|
|
131
148
|
end
|
|
132
149
|
attr_writer :destination
|
|
133
150
|
|
|
151
|
+
# The name of the bank or financial institution.
|
|
152
|
+
sig { returns(T.nilable(String)) }
|
|
153
|
+
attr_accessor :institution_name
|
|
154
|
+
|
|
134
155
|
# Whether this payout token is the default for the payout account
|
|
135
156
|
sig { returns(T::Boolean) }
|
|
136
157
|
attr_accessor :is_default
|
|
@@ -144,15 +165,18 @@ module WhopSDK
|
|
|
144
165
|
sig do
|
|
145
166
|
params(
|
|
146
167
|
id: String,
|
|
168
|
+
account_reference: T.nilable(String),
|
|
147
169
|
company:
|
|
148
170
|
T.nilable(
|
|
149
171
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
150
172
|
),
|
|
173
|
+
created_at: Time,
|
|
151
174
|
currency: String,
|
|
152
175
|
destination:
|
|
153
176
|
T.nilable(
|
|
154
177
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
155
178
|
),
|
|
179
|
+
institution_name: T.nilable(String),
|
|
156
180
|
is_default: T::Boolean,
|
|
157
181
|
nickname: T.nilable(String)
|
|
158
182
|
).returns(T.attached_class)
|
|
@@ -160,13 +184,20 @@ module WhopSDK
|
|
|
160
184
|
def self.new(
|
|
161
185
|
# The ID of the payout token
|
|
162
186
|
id:,
|
|
187
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
188
|
+
# account number or an email address.
|
|
189
|
+
account_reference:,
|
|
163
190
|
# The company associated with the payout token
|
|
164
191
|
company:,
|
|
192
|
+
# The date and time the payout token was created
|
|
193
|
+
created_at:,
|
|
165
194
|
# The currency code of the payout destination. This is the currency that payouts
|
|
166
195
|
# will be made in for this token.
|
|
167
196
|
currency:,
|
|
168
197
|
# The payout destination associated with the payout token
|
|
169
198
|
destination:,
|
|
199
|
+
# The name of the bank or financial institution.
|
|
200
|
+
institution_name:,
|
|
170
201
|
# Whether this payout token is the default for the payout account
|
|
171
202
|
is_default:,
|
|
172
203
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -179,15 +210,18 @@ module WhopSDK
|
|
|
179
210
|
override.returns(
|
|
180
211
|
{
|
|
181
212
|
id: String,
|
|
213
|
+
account_reference: T.nilable(String),
|
|
182
214
|
company:
|
|
183
215
|
T.nilable(
|
|
184
216
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
|
|
185
217
|
),
|
|
218
|
+
created_at: Time,
|
|
186
219
|
currency: String,
|
|
187
220
|
destination:
|
|
188
221
|
T.nilable(
|
|
189
222
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
190
223
|
),
|
|
224
|
+
institution_name: T.nilable(String),
|
|
191
225
|
is_default: T::Boolean,
|
|
192
226
|
nickname: T.nilable(String)
|
|
193
227
|
}
|
|
@@ -15,6 +15,11 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
19
|
+
# account number or an email address.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :account_reference
|
|
22
|
+
|
|
18
23
|
# The company associated with the payout token
|
|
19
24
|
sig do
|
|
20
25
|
returns(T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company))
|
|
@@ -31,6 +36,10 @@ module WhopSDK
|
|
|
31
36
|
end
|
|
32
37
|
attr_writer :company
|
|
33
38
|
|
|
39
|
+
# The date and time the payout token was created
|
|
40
|
+
sig { returns(Time) }
|
|
41
|
+
attr_accessor :created_at
|
|
42
|
+
|
|
34
43
|
# The currency code of the payout destination. This is the currency that payouts
|
|
35
44
|
# will be made in for this token.
|
|
36
45
|
sig { returns(String) }
|
|
@@ -54,6 +63,10 @@ module WhopSDK
|
|
|
54
63
|
end
|
|
55
64
|
attr_writer :destination
|
|
56
65
|
|
|
66
|
+
# The name of the bank or financial institution.
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_accessor :institution_name
|
|
69
|
+
|
|
57
70
|
# Whether this payout token is the default for the payout account
|
|
58
71
|
sig { returns(T::Boolean) }
|
|
59
72
|
attr_accessor :is_default
|
|
@@ -67,15 +80,18 @@ module WhopSDK
|
|
|
67
80
|
sig do
|
|
68
81
|
params(
|
|
69
82
|
id: String,
|
|
83
|
+
account_reference: T.nilable(String),
|
|
70
84
|
company:
|
|
71
85
|
T.nilable(
|
|
72
86
|
WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
|
|
73
87
|
),
|
|
88
|
+
created_at: Time,
|
|
74
89
|
currency: String,
|
|
75
90
|
destination:
|
|
76
91
|
T.nilable(
|
|
77
92
|
WhopSDK::Models::PayoutMethodListResponse::Destination::OrHash
|
|
78
93
|
),
|
|
94
|
+
institution_name: T.nilable(String),
|
|
79
95
|
is_default: T::Boolean,
|
|
80
96
|
nickname: T.nilable(String)
|
|
81
97
|
).returns(T.attached_class)
|
|
@@ -83,13 +99,20 @@ module WhopSDK
|
|
|
83
99
|
def self.new(
|
|
84
100
|
# The ID of the payout token
|
|
85
101
|
id:,
|
|
102
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
103
|
+
# account number or an email address.
|
|
104
|
+
account_reference:,
|
|
86
105
|
# The company associated with the payout token
|
|
87
106
|
company:,
|
|
107
|
+
# The date and time the payout token was created
|
|
108
|
+
created_at:,
|
|
88
109
|
# The currency code of the payout destination. This is the currency that payouts
|
|
89
110
|
# will be made in for this token.
|
|
90
111
|
currency:,
|
|
91
112
|
# The payout destination associated with the payout token
|
|
92
113
|
destination:,
|
|
114
|
+
# The name of the bank or financial institution.
|
|
115
|
+
institution_name:,
|
|
93
116
|
# Whether this payout token is the default for the payout account
|
|
94
117
|
is_default:,
|
|
95
118
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -102,11 +125,14 @@ module WhopSDK
|
|
|
102
125
|
override.returns(
|
|
103
126
|
{
|
|
104
127
|
id: String,
|
|
128
|
+
account_reference: T.nilable(String),
|
|
105
129
|
company:
|
|
106
130
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company),
|
|
131
|
+
created_at: Time,
|
|
107
132
|
currency: String,
|
|
108
133
|
destination:
|
|
109
134
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Destination),
|
|
135
|
+
institution_name: T.nilable(String),
|
|
110
136
|
is_default: T::Boolean,
|
|
111
137
|
nickname: T.nilable(String)
|
|
112
138
|
}
|
|
@@ -15,6 +15,11 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
19
|
+
# account number or an email address.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :account_reference
|
|
22
|
+
|
|
18
23
|
# The company associated with the payout token
|
|
19
24
|
sig do
|
|
20
25
|
returns(
|
|
@@ -33,6 +38,10 @@ module WhopSDK
|
|
|
33
38
|
end
|
|
34
39
|
attr_writer :company
|
|
35
40
|
|
|
41
|
+
# The date and time the payout token was created
|
|
42
|
+
sig { returns(Time) }
|
|
43
|
+
attr_accessor :created_at
|
|
44
|
+
|
|
36
45
|
# The currency code of the payout destination. This is the currency that payouts
|
|
37
46
|
# will be made in for this token.
|
|
38
47
|
sig { returns(String) }
|
|
@@ -56,6 +65,10 @@ module WhopSDK
|
|
|
56
65
|
end
|
|
57
66
|
attr_writer :destination
|
|
58
67
|
|
|
68
|
+
# The name of the bank or financial institution.
|
|
69
|
+
sig { returns(T.nilable(String)) }
|
|
70
|
+
attr_accessor :institution_name
|
|
71
|
+
|
|
59
72
|
# Whether this payout token is the default for the payout account
|
|
60
73
|
sig { returns(T::Boolean) }
|
|
61
74
|
attr_accessor :is_default
|
|
@@ -69,15 +82,18 @@ module WhopSDK
|
|
|
69
82
|
sig do
|
|
70
83
|
params(
|
|
71
84
|
id: String,
|
|
85
|
+
account_reference: T.nilable(String),
|
|
72
86
|
company:
|
|
73
87
|
T.nilable(
|
|
74
88
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Company::OrHash
|
|
75
89
|
),
|
|
90
|
+
created_at: Time,
|
|
76
91
|
currency: String,
|
|
77
92
|
destination:
|
|
78
93
|
T.nilable(
|
|
79
94
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Destination::OrHash
|
|
80
95
|
),
|
|
96
|
+
institution_name: T.nilable(String),
|
|
81
97
|
is_default: T::Boolean,
|
|
82
98
|
nickname: T.nilable(String)
|
|
83
99
|
).returns(T.attached_class)
|
|
@@ -85,13 +101,20 @@ module WhopSDK
|
|
|
85
101
|
def self.new(
|
|
86
102
|
# The ID of the payout token
|
|
87
103
|
id:,
|
|
104
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
105
|
+
# account number or an email address.
|
|
106
|
+
account_reference:,
|
|
88
107
|
# The company associated with the payout token
|
|
89
108
|
company:,
|
|
109
|
+
# The date and time the payout token was created
|
|
110
|
+
created_at:,
|
|
90
111
|
# The currency code of the payout destination. This is the currency that payouts
|
|
91
112
|
# will be made in for this token.
|
|
92
113
|
currency:,
|
|
93
114
|
# The payout destination associated with the payout token
|
|
94
115
|
destination:,
|
|
116
|
+
# The name of the bank or financial institution.
|
|
117
|
+
institution_name:,
|
|
95
118
|
# Whether this payout token is the default for the payout account
|
|
96
119
|
is_default:,
|
|
97
120
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -104,13 +127,16 @@ module WhopSDK
|
|
|
104
127
|
override.returns(
|
|
105
128
|
{
|
|
106
129
|
id: String,
|
|
130
|
+
account_reference: T.nilable(String),
|
|
107
131
|
company:
|
|
108
132
|
T.nilable(WhopSDK::Models::PayoutMethodRetrieveResponse::Company),
|
|
133
|
+
created_at: Time,
|
|
109
134
|
currency: String,
|
|
110
135
|
destination:
|
|
111
136
|
T.nilable(
|
|
112
137
|
WhopSDK::Models::PayoutMethodRetrieveResponse::Destination
|
|
113
138
|
),
|
|
139
|
+
institution_name: T.nilable(String),
|
|
114
140
|
is_default: T::Boolean,
|
|
115
141
|
nickname: T.nilable(String)
|
|
116
142
|
}
|
|
@@ -42,17 +42,13 @@ module WhopSDK
|
|
|
42
42
|
attr_accessor :expiration_days
|
|
43
43
|
|
|
44
44
|
# An image for the plan. This will be visible on the product page to customers.
|
|
45
|
+
sig { returns(T.nilable(WhopSDK::PlanCreateParams::Image)) }
|
|
46
|
+
attr_reader :image
|
|
47
|
+
|
|
45
48
|
sig do
|
|
46
|
-
|
|
47
|
-
T.nilable(
|
|
48
|
-
T.any(
|
|
49
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
50
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
51
|
-
)
|
|
52
|
-
)
|
|
53
|
-
)
|
|
49
|
+
params(image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash)).void
|
|
54
50
|
end
|
|
55
|
-
|
|
51
|
+
attr_writer :image
|
|
56
52
|
|
|
57
53
|
# An additional amount charged upon first purchase. Use only if a one time payment
|
|
58
54
|
# OR you want to charge an additional amount on top of the renewal price. Provided
|
|
@@ -64,6 +60,10 @@ module WhopSDK
|
|
|
64
60
|
sig { returns(T.nilable(String)) }
|
|
65
61
|
attr_accessor :internal_notes
|
|
66
62
|
|
|
63
|
+
# Whether this plan uses legacy payment method controls
|
|
64
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
65
|
+
attr_accessor :legacy_payment_method_controls
|
|
66
|
+
|
|
67
67
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
68
68
|
# up)
|
|
69
69
|
sig { returns(T.nilable(WhopSDK::TaxType::OrSymbol)) }
|
|
@@ -135,15 +135,10 @@ module WhopSDK
|
|
|
135
135
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField::OrHash]),
|
|
136
136
|
description: T.nilable(String),
|
|
137
137
|
expiration_days: T.nilable(Integer),
|
|
138
|
-
image:
|
|
139
|
-
T.nilable(
|
|
140
|
-
T.any(
|
|
141
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID::OrHash,
|
|
142
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID::OrHash
|
|
143
|
-
)
|
|
144
|
-
),
|
|
138
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image::OrHash),
|
|
145
139
|
initial_price: T.nilable(Float),
|
|
146
140
|
internal_notes: T.nilable(String),
|
|
141
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
147
142
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
148
143
|
payment_method_configuration:
|
|
149
144
|
T.nilable(
|
|
@@ -184,6 +179,8 @@ module WhopSDK
|
|
|
184
179
|
initial_price: nil,
|
|
185
180
|
# A personal description or notes section for the business.
|
|
186
181
|
internal_notes: nil,
|
|
182
|
+
# Whether this plan uses legacy payment method controls
|
|
183
|
+
legacy_payment_method_controls: nil,
|
|
187
184
|
# Whether or not the tax is included in a plan's price (or if it hasn't been set
|
|
188
185
|
# up)
|
|
189
186
|
override_tax_type: nil,
|
|
@@ -224,15 +221,10 @@ module WhopSDK
|
|
|
224
221
|
T.nilable(T::Array[WhopSDK::PlanCreateParams::CustomField]),
|
|
225
222
|
description: T.nilable(String),
|
|
226
223
|
expiration_days: T.nilable(Integer),
|
|
227
|
-
image:
|
|
228
|
-
T.nilable(
|
|
229
|
-
T.any(
|
|
230
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
231
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
232
|
-
)
|
|
233
|
-
),
|
|
224
|
+
image: T.nilable(WhopSDK::PlanCreateParams::Image),
|
|
234
225
|
initial_price: T.nilable(Float),
|
|
235
226
|
internal_notes: T.nilable(String),
|
|
227
|
+
legacy_payment_method_controls: T.nilable(T::Boolean),
|
|
236
228
|
override_tax_type: T.nilable(WhopSDK::TaxType::OrSymbol),
|
|
237
229
|
payment_method_configuration:
|
|
238
230
|
T.nilable(WhopSDK::PlanCreateParams::PaymentMethodConfiguration),
|
|
@@ -327,82 +319,26 @@ module WhopSDK
|
|
|
327
319
|
end
|
|
328
320
|
end
|
|
329
321
|
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
extend WhopSDK::Internal::Type::Union
|
|
333
|
-
|
|
334
|
-
Variants =
|
|
322
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
323
|
+
OrHash =
|
|
335
324
|
T.type_alias do
|
|
336
|
-
T.any(
|
|
337
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
338
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID
|
|
339
|
-
)
|
|
340
|
-
end
|
|
341
|
-
|
|
342
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
343
|
-
OrHash =
|
|
344
|
-
T.type_alias do
|
|
345
|
-
T.any(
|
|
346
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithDirectUploadID,
|
|
347
|
-
WhopSDK::Internal::AnyHash
|
|
348
|
-
)
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
352
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
353
|
-
# mediaDirectUpload mutation.
|
|
354
|
-
sig { returns(String) }
|
|
355
|
-
attr_accessor :direct_upload_id
|
|
356
|
-
|
|
357
|
-
# Input for an attachment
|
|
358
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
359
|
-
def self.new(
|
|
360
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
361
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
362
|
-
# mediaDirectUpload mutation.
|
|
363
|
-
direct_upload_id:
|
|
364
|
-
)
|
|
365
|
-
end
|
|
366
|
-
|
|
367
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
368
|
-
def to_hash
|
|
325
|
+
T.any(WhopSDK::PlanCreateParams::Image, WhopSDK::Internal::AnyHash)
|
|
369
326
|
end
|
|
370
|
-
end
|
|
371
327
|
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
T.any(
|
|
376
|
-
WhopSDK::PlanCreateParams::Image::AttachmentInputWithID,
|
|
377
|
-
WhopSDK::Internal::AnyHash
|
|
378
|
-
)
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
382
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
383
|
-
# doing.
|
|
384
|
-
sig { returns(String) }
|
|
385
|
-
attr_accessor :id
|
|
386
|
-
|
|
387
|
-
# Input for an attachment
|
|
388
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
389
|
-
def self.new(
|
|
390
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
391
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
392
|
-
# doing.
|
|
393
|
-
id:
|
|
394
|
-
)
|
|
395
|
-
end
|
|
328
|
+
# The ID of an existing file object.
|
|
329
|
+
sig { returns(String) }
|
|
330
|
+
attr_accessor :id
|
|
396
331
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
332
|
+
# An image for the plan. This will be visible on the product page to customers.
|
|
333
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
334
|
+
def self.new(
|
|
335
|
+
# The ID of an existing file object.
|
|
336
|
+
id:
|
|
337
|
+
)
|
|
400
338
|
end
|
|
401
339
|
|
|
402
|
-
sig
|
|
403
|
-
|
|
404
|
-
end
|
|
405
|
-
def self.variants
|
|
340
|
+
sig { override.returns({ id: String }) }
|
|
341
|
+
def to_hash
|
|
406
342
|
end
|
|
407
343
|
end
|
|
408
344
|
|