whop_sdk 0.0.3 → 0.0.5
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 +47 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +8 -0
- data/lib/whop_sdk/internal/transport/base_client.rb +7 -1
- data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +6 -2
- data/lib/whop_sdk/models/access_level.rb +1 -1
- data/lib/whop_sdk/models/access_pass_type.rb +2 -1
- data/lib/whop_sdk/models/access_token_create_params.rb +67 -0
- data/lib/whop_sdk/models/access_token_create_response.rb +27 -0
- data/lib/whop_sdk/models/app_build_create_params.rb +53 -29
- data/lib/whop_sdk/models/app_update_params.rb +53 -29
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +119 -43
- data/lib/whop_sdk/models/company.rb +13 -1
- data/lib/whop_sdk/models/company_create_params.rb +46 -0
- data/lib/whop_sdk/models/company_list_params.rb +62 -0
- data/lib/whop_sdk/models/company_list_response.rb +175 -0
- data/lib/whop_sdk/models/course.rb +18 -1
- data/lib/whop_sdk/models/course_create_params.rb +94 -30
- data/lib/whop_sdk/models/course_lesson_create_params.rb +77 -1
- data/lib/whop_sdk/models/course_lesson_list_response.rb +43 -1
- data/lib/whop_sdk/models/course_lesson_update_params.rb +280 -83
- data/lib/whop_sdk/models/course_list_response.rb +18 -1
- data/lib/whop_sdk/models/course_student_list_params.rb +62 -0
- data/lib/whop_sdk/models/course_student_list_response.rb +97 -0
- data/lib/whop_sdk/models/course_student_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/course_student_retrieve_response.rb +149 -0
- data/lib/whop_sdk/models/course_update_params.rb +70 -28
- data/lib/whop_sdk/models/course_visibilities.rb +17 -0
- data/lib/whop_sdk/models/embed_type.rb +16 -0
- data/lib/whop_sdk/models/entry.rb +3 -3
- data/lib/whop_sdk/models/entry_list_response.rb +3 -3
- data/lib/whop_sdk/models/experience.rb +5 -6
- data/lib/whop_sdk/models/experience_update_params.rb +53 -29
- data/lib/whop_sdk/models/forum_post.rb +2 -2
- data/lib/whop_sdk/models/forum_post_create_params.rb +51 -27
- data/lib/whop_sdk/models/forum_post_list_response.rb +2 -2
- data/lib/whop_sdk/models/forum_post_update_params.rb +51 -27
- data/lib/whop_sdk/models/global_affiliate_status.rb +1 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +50 -34
- data/lib/whop_sdk/models/invoice_list_params.rb +27 -40
- data/lib/whop_sdk/models/lesson.rb +59 -9
- data/lib/whop_sdk/models/member_list_params.rb +11 -11
- data/lib/whop_sdk/models/member_list_response.rb +3 -3
- data/lib/whop_sdk/models/member_retrieve_response.rb +3 -3
- data/lib/whop_sdk/models/membership_list_params.rb +9 -9
- data/lib/whop_sdk/models/message.rb +2 -2
- data/lib/whop_sdk/models/message_create_params.rb +51 -27
- data/lib/whop_sdk/models/message_list_response.rb +2 -2
- data/lib/whop_sdk/models/message_update_params.rb +51 -27
- data/lib/whop_sdk/models/payment.rb +13 -4
- data/lib/whop_sdk/models/payment_list_response.rb +13 -4
- data/lib/whop_sdk/models/payment_method_types.rb +2 -1
- data/lib/whop_sdk/models/plan.rb +54 -5
- data/lib/whop_sdk/models/plan_create_params.rb +99 -24
- data/lib/whop_sdk/models/plan_list_response.rb +57 -5
- data/lib/whop_sdk/models/plan_type.rb +1 -1
- data/lib/whop_sdk/models/plan_update_params.rb +97 -22
- data/lib/whop_sdk/models/product.rb +1 -1
- data/lib/whop_sdk/models/product_create_params.rb +6 -6
- data/lib/whop_sdk/models/product_list_item.rb +1 -1
- data/lib/whop_sdk/models/product_update_params.rb +57 -33
- data/lib/whop_sdk/models/promo_code.rb +3 -3
- data/lib/whop_sdk/models/promo_code_list_response.rb +3 -3
- data/lib/whop_sdk/models/transfer.rb +9 -1
- data/lib/whop_sdk/models/transfer_create_params.rb +9 -1
- data/lib/whop_sdk/models/transfer_list_response.rb +9 -1
- data/lib/whop_sdk/models.rb +14 -0
- data/lib/whop_sdk/resources/access_tokens.rb +46 -0
- data/lib/whop_sdk/resources/app_builds.rb +5 -3
- data/lib/whop_sdk/resources/apps.rb +4 -3
- data/lib/whop_sdk/resources/authorized_users.rb +2 -1
- data/lib/whop_sdk/resources/chat_channels.rb +9 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +8 -7
- data/lib/whop_sdk/resources/companies.rb +72 -1
- data/lib/whop_sdk/resources/course_chapters.rb +5 -3
- data/lib/whop_sdk/resources/course_lesson_interactions.rb +4 -3
- data/lib/whop_sdk/resources/course_lessons.rb +25 -7
- data/lib/whop_sdk/resources/course_students.rb +77 -0
- data/lib/whop_sdk/resources/courses.rb +24 -7
- data/lib/whop_sdk/resources/entries.rb +6 -3
- data/lib/whop_sdk/resources/experiences.rb +9 -7
- data/lib/whop_sdk/resources/forum_posts.rb +5 -4
- data/lib/whop_sdk/resources/forums.rb +3 -2
- data/lib/whop_sdk/resources/invoices.rb +22 -16
- data/lib/whop_sdk/resources/ledger_accounts.rb +6 -2
- data/lib/whop_sdk/resources/members.rb +6 -5
- data/lib/whop_sdk/resources/memberships.rb +10 -8
- data/lib/whop_sdk/resources/messages.rb +5 -4
- data/lib/whop_sdk/resources/payments.rb +7 -4
- data/lib/whop_sdk/resources/plans.rb +14 -8
- data/lib/whop_sdk/resources/products.rb +10 -8
- data/lib/whop_sdk/resources/promo_codes.rb +4 -2
- data/lib/whop_sdk/resources/reactions.rb +2 -1
- data/lib/whop_sdk/resources/reviews.rb +2 -1
- data/lib/whop_sdk/resources/shipments.rb +2 -1
- data/lib/whop_sdk/resources/support_channels.rb +2 -1
- data/lib/whop_sdk/resources/transfers.rb +5 -2
- data/lib/whop_sdk/resources/users.rb +9 -3
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +14 -1
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +6 -0
- data/rbi/whop_sdk/internal/transport/base_client.rbi +5 -0
- data/rbi/whop_sdk/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/whop_sdk/internal/type/base_model.rbi +8 -4
- data/rbi/whop_sdk/models/access_level.rbi +1 -1
- data/rbi/whop_sdk/models/access_pass_type.rbi +2 -1
- data/rbi/whop_sdk/models/access_token_create_params.rbi +126 -0
- data/rbi/whop_sdk/models/access_token_create_response.rbi +37 -0
- data/rbi/whop_sdk/models/app_build_create_params.rbi +80 -40
- data/rbi/whop_sdk/models/app_update_params.rbi +86 -37
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +196 -68
- data/rbi/whop_sdk/models/company.rbi +10 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +67 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +235 -0
- data/rbi/whop_sdk/models/course.rbi +21 -3
- data/rbi/whop_sdk/models/course_create_params.rbi +126 -38
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +126 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +68 -0
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +449 -111
- data/rbi/whop_sdk/models/course_list_response.rbi +21 -3
- data/rbi/whop_sdk/models/course_student_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/course_student_list_response.rbi +142 -0
- data/rbi/whop_sdk/models/course_student_retrieve_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_student_retrieve_response.rbi +250 -0
- data/rbi/whop_sdk/models/course_update_params.rbi +104 -38
- data/rbi/whop_sdk/models/course_visibilities.rbi +23 -0
- data/rbi/whop_sdk/models/embed_type.rbi +20 -0
- data/rbi/whop_sdk/models/entry.rbi +3 -3
- data/rbi/whop_sdk/models/entry_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/experience.rbi +7 -9
- data/rbi/whop_sdk/models/experience_update_params.rbi +84 -38
- data/rbi/whop_sdk/models/forum_post.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/forum_post_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +85 -32
- data/rbi/whop_sdk/models/global_affiliate_status.rbi +1 -1
- data/rbi/whop_sdk/models/invoice_create_params.rbi +60 -46
- data/rbi/whop_sdk/models/invoice_list_params.rbi +26 -71
- data/rbi/whop_sdk/models/lesson.rbi +68 -10
- data/rbi/whop_sdk/models/member_list_params.rbi +10 -10
- data/rbi/whop_sdk/models/member_list_response.rbi +6 -6
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +6 -6
- data/rbi/whop_sdk/models/membership_list_params.rbi +8 -8
- data/rbi/whop_sdk/models/message.rbi +2 -2
- data/rbi/whop_sdk/models/message_create_params.rbi +85 -32
- data/rbi/whop_sdk/models/message_list_response.rbi +2 -2
- data/rbi/whop_sdk/models/message_update_params.rbi +85 -32
- data/rbi/whop_sdk/models/payment.rbi +13 -3
- data/rbi/whop_sdk/models/payment_list_response.rbi +13 -3
- data/rbi/whop_sdk/models/payment_method_types.rbi +3 -1
- data/rbi/whop_sdk/models/plan.rbi +88 -4
- data/rbi/whop_sdk/models/plan_create_params.rbi +176 -34
- data/rbi/whop_sdk/models/plan_list_response.rbi +100 -4
- data/rbi/whop_sdk/models/plan_type.rbi +1 -1
- data/rbi/whop_sdk/models/plan_update_params.rbi +174 -32
- data/rbi/whop_sdk/models/product.rbi +1 -1
- data/rbi/whop_sdk/models/product_create_params.rbi +6 -6
- data/rbi/whop_sdk/models/product_list_item.rbi +1 -1
- data/rbi/whop_sdk/models/product_update_params.rbi +87 -43
- data/rbi/whop_sdk/models/promo_code.rbi +3 -3
- data/rbi/whop_sdk/models/promo_code_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/transfer.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/transfer_list_response.rbi +8 -0
- data/rbi/whop_sdk/models.rbi +14 -0
- data/rbi/whop_sdk/resources/access_tokens.rbi +41 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +15 -3
- data/rbi/whop_sdk/resources/apps.rbi +13 -2
- data/rbi/whop_sdk/resources/authorized_users.rbi +5 -1
- data/rbi/whop_sdk/resources/chat_channels.rbi +8 -1
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +11 -8
- data/rbi/whop_sdk/resources/companies.rbi +68 -1
- data/rbi/whop_sdk/resources/course_chapters.rbi +11 -2
- data/rbi/whop_sdk/resources/course_lesson_interactions.rbi +7 -3
- data/rbi/whop_sdk/resources/course_lessons.rbi +62 -4
- data/rbi/whop_sdk/resources/course_students.rbi +69 -0
- data/rbi/whop_sdk/resources/courses.rbi +50 -4
- data/rbi/whop_sdk/resources/entries.rbi +15 -3
- data/rbi/whop_sdk/resources/experiences.rbi +21 -3
- data/rbi/whop_sdk/resources/forum_posts.rbi +18 -3
- data/rbi/whop_sdk/resources/forums.rbi +6 -1
- data/rbi/whop_sdk/resources/invoices.rbi +38 -23
- data/rbi/whop_sdk/resources/ledger_accounts.rbi +7 -2
- data/rbi/whop_sdk/resources/members.rbi +9 -5
- data/rbi/whop_sdk/resources/memberships.rbi +16 -5
- data/rbi/whop_sdk/resources/messages.rbi +18 -3
- data/rbi/whop_sdk/resources/payments.rbi +16 -3
- data/rbi/whop_sdk/resources/plans.rbi +40 -5
- data/rbi/whop_sdk/resources/products.rbi +21 -7
- data/rbi/whop_sdk/resources/promo_codes.rbi +10 -2
- data/rbi/whop_sdk/resources/reactions.rbi +5 -1
- data/rbi/whop_sdk/resources/reviews.rbi +5 -1
- data/rbi/whop_sdk/resources/shipments.rbi +5 -1
- data/rbi/whop_sdk/resources/support_channels.rbi +5 -1
- data/rbi/whop_sdk/resources/transfers.rbi +8 -1
- data/rbi/whop_sdk/resources/users.rbi +13 -2
- data/sig/whop_sdk/client.rbs +4 -0
- data/sig/whop_sdk/internal/transport/base_client.rbs +2 -0
- data/sig/whop_sdk/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/whop_sdk/models/access_token_create_params.rbs +56 -0
- data/sig/whop_sdk/models/access_token_create_response.rbs +15 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +29 -10
- data/sig/whop_sdk/models/app_update_params.rbs +29 -10
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +72 -21
- data/sig/whop_sdk/models/company.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +41 -0
- data/sig/whop_sdk/models/company_list_params.rbs +51 -0
- data/sig/whop_sdk/models/company_list_response.rbs +109 -0
- data/sig/whop_sdk/models/course.rbs +13 -3
- data/sig/whop_sdk/models/course_create_params.rbs +49 -10
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +46 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +25 -0
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +162 -30
- data/sig/whop_sdk/models/course_list_response.rbs +13 -3
- data/sig/whop_sdk/models/course_student_list_params.rbs +51 -0
- data/sig/whop_sdk/models/course_student_list_response.rbs +64 -0
- data/sig/whop_sdk/models/course_student_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/course_student_retrieve_response.rbs +106 -0
- data/sig/whop_sdk/models/course_update_params.rbs +40 -11
- data/sig/whop_sdk/models/course_visibilities.rbs +14 -0
- data/sig/whop_sdk/models/embed_type.rbs +14 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_create_params.rbs +29 -10
- data/sig/whop_sdk/models/forum_post_update_params.rbs +29 -10
- data/sig/whop_sdk/models/invoice_create_params.rbs +28 -18
- data/sig/whop_sdk/models/invoice_list_params.rbs +16 -33
- data/sig/whop_sdk/models/lesson.rbs +33 -8
- data/sig/whop_sdk/models/member_list_params.rbs +5 -5
- data/sig/whop_sdk/models/membership_list_params.rbs +5 -5
- data/sig/whop_sdk/models/message_create_params.rbs +29 -10
- data/sig/whop_sdk/models/message_update_params.rbs +29 -10
- data/sig/whop_sdk/models/payment.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +5 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +4 -2
- data/sig/whop_sdk/models/plan.rbs +32 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +61 -10
- data/sig/whop_sdk/models/plan_list_response.rbs +32 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +61 -10
- data/sig/whop_sdk/models/product_update_params.rbs +29 -10
- data/sig/whop_sdk/models/transfer.rbs +5 -0
- data/sig/whop_sdk/models/transfer_create_params.rbs +5 -0
- data/sig/whop_sdk/models/transfer_list_response.rbs +5 -0
- data/sig/whop_sdk/models.rbs +14 -0
- data/sig/whop_sdk/resources/access_tokens.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +1 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -2
- data/sig/whop_sdk/resources/companies.rbs +18 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +10 -2
- data/sig/whop_sdk/resources/course_students.rbs +22 -0
- data/sig/whop_sdk/resources/courses.rbs +8 -2
- data/sig/whop_sdk/resources/experiences.rbs +1 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/invoices.rbs +8 -6
- data/sig/whop_sdk/resources/members.rbs +1 -1
- data/sig/whop_sdk/resources/memberships.rbs +1 -1
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +4 -2
- data/sig/whop_sdk/resources/products.rbs +1 -1
- data/sig/whop_sdk/resources/transfers.rbs +1 -0
- metadata +41 -5
- data/lib/whop_sdk/models/invoice_create_response.rb +0 -27
- data/rbi/whop_sdk/models/invoice_create_response.rbi +0 -49
- data/sig/whop_sdk/models/invoice_create_response.rbs +0 -19
|
@@ -23,21 +23,14 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(T.nilable(String)) }
|
|
24
24
|
attr_accessor :before
|
|
25
25
|
|
|
26
|
+
# Filter invoices by their collection method
|
|
27
|
+
sig { returns(T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol])) }
|
|
28
|
+
attr_accessor :collection_methods
|
|
29
|
+
|
|
26
30
|
# The direction of the sort.
|
|
27
31
|
sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
|
|
28
32
|
attr_accessor :direction
|
|
29
33
|
|
|
30
|
-
# The filters to apply to the invoices
|
|
31
|
-
sig { returns(T.nilable(WhopSDK::InvoiceListParams::Filters)) }
|
|
32
|
-
attr_reader :filters
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
params(
|
|
36
|
-
filters: T.nilable(WhopSDK::InvoiceListParams::Filters::OrHash)
|
|
37
|
-
).void
|
|
38
|
-
end
|
|
39
|
-
attr_writer :filters
|
|
40
|
-
|
|
41
34
|
# Returns the first _n_ elements from the list.
|
|
42
35
|
sig { returns(T.nilable(Integer)) }
|
|
43
36
|
attr_accessor :first
|
|
@@ -50,16 +43,27 @@ module WhopSDK
|
|
|
50
43
|
sig { returns(T.nilable(WhopSDK::InvoiceListParams::Order::OrSymbol)) }
|
|
51
44
|
attr_accessor :order
|
|
52
45
|
|
|
46
|
+
# Return only invoices created for these specific product ids
|
|
47
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
48
|
+
attr_accessor :product_ids
|
|
49
|
+
|
|
50
|
+
# The statuses to filter the invoices by
|
|
51
|
+
sig { returns(T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol])) }
|
|
52
|
+
attr_accessor :statuses
|
|
53
|
+
|
|
53
54
|
sig do
|
|
54
55
|
params(
|
|
55
56
|
company_id: String,
|
|
56
57
|
after: T.nilable(String),
|
|
57
58
|
before: T.nilable(String),
|
|
59
|
+
collection_methods:
|
|
60
|
+
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
58
61
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
59
|
-
filters: T.nilable(WhopSDK::InvoiceListParams::Filters::OrHash),
|
|
60
62
|
first: T.nilable(Integer),
|
|
61
63
|
last: T.nilable(Integer),
|
|
62
64
|
order: T.nilable(WhopSDK::InvoiceListParams::Order::OrSymbol),
|
|
65
|
+
product_ids: T.nilable(T::Array[String]),
|
|
66
|
+
statuses: T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol]),
|
|
63
67
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
64
68
|
).returns(T.attached_class)
|
|
65
69
|
end
|
|
@@ -70,16 +74,20 @@ module WhopSDK
|
|
|
70
74
|
after: nil,
|
|
71
75
|
# Returns the elements in the list that come before the specified cursor.
|
|
72
76
|
before: nil,
|
|
77
|
+
# Filter invoices by their collection method
|
|
78
|
+
collection_methods: nil,
|
|
73
79
|
# The direction of the sort.
|
|
74
80
|
direction: nil,
|
|
75
|
-
# The filters to apply to the invoices
|
|
76
|
-
filters: nil,
|
|
77
81
|
# Returns the first _n_ elements from the list.
|
|
78
82
|
first: nil,
|
|
79
83
|
# Returns the last _n_ elements from the list.
|
|
80
84
|
last: nil,
|
|
81
85
|
# Which columns can be used to sort.
|
|
82
86
|
order: nil,
|
|
87
|
+
# Return only invoices created for these specific product ids
|
|
88
|
+
product_ids: nil,
|
|
89
|
+
# The statuses to filter the invoices by
|
|
90
|
+
statuses: nil,
|
|
83
91
|
request_options: {}
|
|
84
92
|
)
|
|
85
93
|
end
|
|
@@ -90,11 +98,14 @@ module WhopSDK
|
|
|
90
98
|
company_id: String,
|
|
91
99
|
after: T.nilable(String),
|
|
92
100
|
before: T.nilable(String),
|
|
101
|
+
collection_methods:
|
|
102
|
+
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
93
103
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
94
|
-
filters: T.nilable(WhopSDK::InvoiceListParams::Filters),
|
|
95
104
|
first: T.nilable(Integer),
|
|
96
105
|
last: T.nilable(Integer),
|
|
97
106
|
order: T.nilable(WhopSDK::InvoiceListParams::Order::OrSymbol),
|
|
107
|
+
product_ids: T.nilable(T::Array[String]),
|
|
108
|
+
statuses: T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol]),
|
|
98
109
|
request_options: WhopSDK::RequestOptions
|
|
99
110
|
}
|
|
100
111
|
)
|
|
@@ -102,62 +113,6 @@ module WhopSDK
|
|
|
102
113
|
def to_hash
|
|
103
114
|
end
|
|
104
115
|
|
|
105
|
-
class Filters < WhopSDK::Internal::Type::BaseModel
|
|
106
|
-
OrHash =
|
|
107
|
-
T.type_alias do
|
|
108
|
-
T.any(
|
|
109
|
-
WhopSDK::InvoiceListParams::Filters,
|
|
110
|
-
WhopSDK::Internal::AnyHash
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# The access pass IDs to filter the invoices by
|
|
115
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
116
|
-
attr_accessor :access_pass_ids
|
|
117
|
-
|
|
118
|
-
# The collection methods to filter the invoices by
|
|
119
|
-
sig do
|
|
120
|
-
returns(T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]))
|
|
121
|
-
end
|
|
122
|
-
attr_accessor :collection_methods
|
|
123
|
-
|
|
124
|
-
# The statuses to filter the invoices by
|
|
125
|
-
sig { returns(T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol])) }
|
|
126
|
-
attr_accessor :statuses
|
|
127
|
-
|
|
128
|
-
# The filters to apply to the invoices
|
|
129
|
-
sig do
|
|
130
|
-
params(
|
|
131
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
132
|
-
collection_methods:
|
|
133
|
-
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
134
|
-
statuses: T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol])
|
|
135
|
-
).returns(T.attached_class)
|
|
136
|
-
end
|
|
137
|
-
def self.new(
|
|
138
|
-
# The access pass IDs to filter the invoices by
|
|
139
|
-
access_pass_ids: nil,
|
|
140
|
-
# The collection methods to filter the invoices by
|
|
141
|
-
collection_methods: nil,
|
|
142
|
-
# The statuses to filter the invoices by
|
|
143
|
-
statuses: nil
|
|
144
|
-
)
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
sig do
|
|
148
|
-
override.returns(
|
|
149
|
-
{
|
|
150
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
151
|
-
collection_methods:
|
|
152
|
-
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
153
|
-
statuses: T.nilable(T::Array[WhopSDK::InvoiceStatus::OrSymbol])
|
|
154
|
-
}
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
def to_hash
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
|
|
161
116
|
# Which columns can be used to sort.
|
|
162
117
|
module Order
|
|
163
118
|
extend WhopSDK::Internal::Type::Enum
|
|
@@ -26,6 +26,14 @@ module WhopSDK
|
|
|
26
26
|
sig { returns(T.nilable(Integer)) }
|
|
27
27
|
attr_accessor :days_from_course_start_until_unlock
|
|
28
28
|
|
|
29
|
+
# ID for the embed (YouTube video ID or Loom share ID)
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_accessor :embed_id
|
|
32
|
+
|
|
33
|
+
# The type of embed for a lesson
|
|
34
|
+
sig { returns(T.nilable(WhopSDK::EmbedType::TaggedSymbol)) }
|
|
35
|
+
attr_accessor :embed_type
|
|
36
|
+
|
|
29
37
|
# The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
30
38
|
sig { returns(WhopSDK::LessonTypes::TaggedSymbol) }
|
|
31
39
|
attr_accessor :lesson_type
|
|
@@ -41,6 +49,15 @@ module WhopSDK
|
|
|
41
49
|
sig { returns(Integer) }
|
|
42
50
|
attr_accessor :order
|
|
43
51
|
|
|
52
|
+
# The thumbnail for the lesson
|
|
53
|
+
sig { returns(T.nilable(WhopSDK::Lesson::Thumbnail)) }
|
|
54
|
+
attr_reader :thumbnail
|
|
55
|
+
|
|
56
|
+
sig do
|
|
57
|
+
params(thumbnail: T.nilable(WhopSDK::Lesson::Thumbnail::OrHash)).void
|
|
58
|
+
end
|
|
59
|
+
attr_writer :thumbnail
|
|
60
|
+
|
|
44
61
|
# The title of the lesson
|
|
45
62
|
sig { returns(String) }
|
|
46
63
|
attr_accessor :title
|
|
@@ -68,9 +85,12 @@ module WhopSDK
|
|
|
68
85
|
attachments: T::Array[WhopSDK::Lesson::Attachment::OrHash],
|
|
69
86
|
content: T.nilable(String),
|
|
70
87
|
days_from_course_start_until_unlock: T.nilable(Integer),
|
|
88
|
+
embed_id: T.nilable(String),
|
|
89
|
+
embed_type: T.nilable(WhopSDK::EmbedType::OrSymbol),
|
|
71
90
|
lesson_type: WhopSDK::LessonTypes::OrSymbol,
|
|
72
91
|
main_pdf: T.nilable(WhopSDK::Lesson::MainPdf::OrHash),
|
|
73
92
|
order: Integer,
|
|
93
|
+
thumbnail: T.nilable(WhopSDK::Lesson::Thumbnail::OrHash),
|
|
74
94
|
title: String,
|
|
75
95
|
video_asset: T.nilable(WhopSDK::Lesson::VideoAsset::OrHash),
|
|
76
96
|
visibility: WhopSDK::LessonVisibilities::OrSymbol
|
|
@@ -87,12 +107,18 @@ module WhopSDK
|
|
|
87
107
|
content:,
|
|
88
108
|
# Number of days from course start until the lesson is unlocked
|
|
89
109
|
days_from_course_start_until_unlock:,
|
|
110
|
+
# ID for the embed (YouTube video ID or Loom share ID)
|
|
111
|
+
embed_id:,
|
|
112
|
+
# The type of embed for a lesson
|
|
113
|
+
embed_type:,
|
|
90
114
|
# The type of the lesson (text, video, pdf, multi, quiz, knowledge_check)
|
|
91
115
|
lesson_type:,
|
|
92
116
|
# The main PDF file for this lesson
|
|
93
117
|
main_pdf:,
|
|
94
118
|
# The order of the lesson within its chapter
|
|
95
119
|
order:,
|
|
120
|
+
# The thumbnail for the lesson
|
|
121
|
+
thumbnail:,
|
|
96
122
|
# The title of the lesson
|
|
97
123
|
title:,
|
|
98
124
|
# The associated Mux asset for video lessons
|
|
@@ -111,9 +137,12 @@ module WhopSDK
|
|
|
111
137
|
attachments: T::Array[WhopSDK::Lesson::Attachment],
|
|
112
138
|
content: T.nilable(String),
|
|
113
139
|
days_from_course_start_until_unlock: T.nilable(Integer),
|
|
140
|
+
embed_id: T.nilable(String),
|
|
141
|
+
embed_type: T.nilable(WhopSDK::EmbedType::TaggedSymbol),
|
|
114
142
|
lesson_type: WhopSDK::LessonTypes::TaggedSymbol,
|
|
115
143
|
main_pdf: T.nilable(WhopSDK::Lesson::MainPdf),
|
|
116
144
|
order: Integer,
|
|
145
|
+
thumbnail: T.nilable(WhopSDK::Lesson::Thumbnail),
|
|
117
146
|
title: String,
|
|
118
147
|
video_asset: T.nilable(WhopSDK::Lesson::VideoAsset),
|
|
119
148
|
visibility: WhopSDK::LessonVisibilities::TaggedSymbol
|
|
@@ -136,8 +165,9 @@ module WhopSDK
|
|
|
136
165
|
sig { returns(String) }
|
|
137
166
|
attr_accessor :id
|
|
138
167
|
|
|
139
|
-
# The correct answer for the question. Used for short answer questions
|
|
140
|
-
|
|
168
|
+
# The correct answer for the question. Used for short answer questions. Only
|
|
169
|
+
# visible to admins (users with courses:update permission)
|
|
170
|
+
sig { returns(T.nilable(String)) }
|
|
141
171
|
attr_accessor :correct_answer
|
|
142
172
|
|
|
143
173
|
# When the question was created
|
|
@@ -175,7 +205,7 @@ module WhopSDK
|
|
|
175
205
|
sig do
|
|
176
206
|
params(
|
|
177
207
|
id: String,
|
|
178
|
-
correct_answer: String,
|
|
208
|
+
correct_answer: T.nilable(String),
|
|
179
209
|
created_at: Time,
|
|
180
210
|
image:
|
|
181
211
|
T.nilable(WhopSDK::Lesson::AssessmentQuestion::Image::OrHash),
|
|
@@ -189,7 +219,8 @@ module WhopSDK
|
|
|
189
219
|
def self.new(
|
|
190
220
|
# The ID of the assessment question
|
|
191
221
|
id:,
|
|
192
|
-
# The correct answer for the question. Used for short answer questions
|
|
222
|
+
# The correct answer for the question. Used for short answer questions. Only
|
|
223
|
+
# visible to admins (users with courses:update permission)
|
|
193
224
|
correct_answer:,
|
|
194
225
|
# When the question was created
|
|
195
226
|
created_at:,
|
|
@@ -210,7 +241,7 @@ module WhopSDK
|
|
|
210
241
|
override.returns(
|
|
211
242
|
{
|
|
212
243
|
id: String,
|
|
213
|
-
correct_answer: String,
|
|
244
|
+
correct_answer: T.nilable(String),
|
|
214
245
|
created_at: Time,
|
|
215
246
|
image: T.nilable(WhopSDK::Lesson::AssessmentQuestion::Image),
|
|
216
247
|
options: T::Array[WhopSDK::Lesson::AssessmentQuestion::Option],
|
|
@@ -298,8 +329,9 @@ module WhopSDK
|
|
|
298
329
|
sig { returns(String) }
|
|
299
330
|
attr_accessor :id
|
|
300
331
|
|
|
301
|
-
# Whether this option is a correct answer
|
|
302
|
-
|
|
332
|
+
# Whether this option is a correct answer. Only visible to admins (users with
|
|
333
|
+
# courses:update permission)
|
|
334
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
303
335
|
attr_accessor :is_correct
|
|
304
336
|
|
|
305
337
|
# The text of the answer option
|
|
@@ -314,7 +346,7 @@ module WhopSDK
|
|
|
314
346
|
sig do
|
|
315
347
|
params(
|
|
316
348
|
id: String,
|
|
317
|
-
is_correct: T::Boolean,
|
|
349
|
+
is_correct: T.nilable(T::Boolean),
|
|
318
350
|
option_text: String,
|
|
319
351
|
order: Integer
|
|
320
352
|
).returns(T.attached_class)
|
|
@@ -322,7 +354,8 @@ module WhopSDK
|
|
|
322
354
|
def self.new(
|
|
323
355
|
# The ID of the assessment question option
|
|
324
356
|
id:,
|
|
325
|
-
# Whether this option is a correct answer
|
|
357
|
+
# Whether this option is a correct answer. Only visible to admins (users with
|
|
358
|
+
# courses:update permission)
|
|
326
359
|
is_correct:,
|
|
327
360
|
# The text of the answer option
|
|
328
361
|
option_text:,
|
|
@@ -335,7 +368,7 @@ module WhopSDK
|
|
|
335
368
|
override.returns(
|
|
336
369
|
{
|
|
337
370
|
id: String,
|
|
338
|
-
is_correct: T::Boolean,
|
|
371
|
+
is_correct: T.nilable(T::Boolean),
|
|
339
372
|
option_text: String,
|
|
340
373
|
order: Integer
|
|
341
374
|
}
|
|
@@ -464,6 +497,31 @@ module WhopSDK
|
|
|
464
497
|
end
|
|
465
498
|
end
|
|
466
499
|
|
|
500
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
501
|
+
OrHash =
|
|
502
|
+
T.type_alias do
|
|
503
|
+
T.any(WhopSDK::Lesson::Thumbnail, WhopSDK::Internal::AnyHash)
|
|
504
|
+
end
|
|
505
|
+
|
|
506
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
507
|
+
# should be used for apps.
|
|
508
|
+
sig { returns(T.nilable(String)) }
|
|
509
|
+
attr_accessor :url
|
|
510
|
+
|
|
511
|
+
# The thumbnail for the lesson
|
|
512
|
+
sig { params(url: T.nilable(String)).returns(T.attached_class) }
|
|
513
|
+
def self.new(
|
|
514
|
+
# This is the URL you use to render optimized attachments on the client. This
|
|
515
|
+
# should be used for apps.
|
|
516
|
+
url:
|
|
517
|
+
)
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
sig { override.returns({ url: T.nilable(String) }) }
|
|
521
|
+
def to_hash
|
|
522
|
+
end
|
|
523
|
+
end
|
|
524
|
+
|
|
467
525
|
class VideoAsset < WhopSDK::Internal::Type::BaseModel
|
|
468
526
|
OrHash =
|
|
469
527
|
T.type_alias do
|
|
@@ -15,14 +15,10 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :company_id
|
|
17
17
|
|
|
18
|
-
# The access level a given user (or company) has to
|
|
18
|
+
# The access level a given user (or company) has to a product or company.
|
|
19
19
|
sig { returns(T.nilable(WhopSDK::AccessLevel::OrSymbol)) }
|
|
20
20
|
attr_accessor :access_level
|
|
21
21
|
|
|
22
|
-
# The access pass IDs to filter the members by
|
|
23
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
24
|
-
attr_accessor :access_pass_ids
|
|
25
|
-
|
|
26
22
|
# Returns the elements in the list that come after the specified cursor.
|
|
27
23
|
sig { returns(T.nilable(String)) }
|
|
28
24
|
attr_accessor :after
|
|
@@ -65,6 +61,10 @@ module WhopSDK
|
|
|
65
61
|
sig { returns(T.nilable(T::Array[String])) }
|
|
66
62
|
attr_accessor :plan_ids
|
|
67
63
|
|
|
64
|
+
# The product IDs to filter the members by
|
|
65
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
66
|
+
attr_accessor :product_ids
|
|
67
|
+
|
|
68
68
|
# The promo code IDs to filter the members by
|
|
69
69
|
sig { returns(T.nilable(T::Array[String])) }
|
|
70
70
|
attr_accessor :promo_code_ids
|
|
@@ -86,7 +86,6 @@ module WhopSDK
|
|
|
86
86
|
params(
|
|
87
87
|
company_id: String,
|
|
88
88
|
access_level: T.nilable(WhopSDK::AccessLevel::OrSymbol),
|
|
89
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
90
89
|
after: T.nilable(String),
|
|
91
90
|
before: T.nilable(String),
|
|
92
91
|
created_after: T.nilable(Time),
|
|
@@ -98,6 +97,7 @@ module WhopSDK
|
|
|
98
97
|
T.nilable(T::Array[WhopSDK::MemberMostRecentActions::OrSymbol]),
|
|
99
98
|
order: T.nilable(WhopSDK::MemberListParams::Order::OrSymbol),
|
|
100
99
|
plan_ids: T.nilable(T::Array[String]),
|
|
100
|
+
product_ids: T.nilable(T::Array[String]),
|
|
101
101
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
102
102
|
query: T.nilable(String),
|
|
103
103
|
statuses: T.nilable(T::Array[WhopSDK::MemberStatuses::OrSymbol]),
|
|
@@ -108,10 +108,8 @@ module WhopSDK
|
|
|
108
108
|
def self.new(
|
|
109
109
|
# The ID of the company to list members for
|
|
110
110
|
company_id:,
|
|
111
|
-
# The access level a given user (or company) has to
|
|
111
|
+
# The access level a given user (or company) has to a product or company.
|
|
112
112
|
access_level: nil,
|
|
113
|
-
# The access pass IDs to filter the members by
|
|
114
|
-
access_pass_ids: nil,
|
|
115
113
|
# Returns the elements in the list that come after the specified cursor.
|
|
116
114
|
after: nil,
|
|
117
115
|
# Returns the elements in the list that come before the specified cursor.
|
|
@@ -132,6 +130,8 @@ module WhopSDK
|
|
|
132
130
|
order: nil,
|
|
133
131
|
# The plan IDs to filter the members by
|
|
134
132
|
plan_ids: nil,
|
|
133
|
+
# The product IDs to filter the members by
|
|
134
|
+
product_ids: nil,
|
|
135
135
|
# The promo code IDs to filter the members by
|
|
136
136
|
promo_code_ids: nil,
|
|
137
137
|
# The name, username, or email to filter the members by. The email filter will
|
|
@@ -150,7 +150,6 @@ module WhopSDK
|
|
|
150
150
|
{
|
|
151
151
|
company_id: String,
|
|
152
152
|
access_level: T.nilable(WhopSDK::AccessLevel::OrSymbol),
|
|
153
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
154
153
|
after: T.nilable(String),
|
|
155
154
|
before: T.nilable(String),
|
|
156
155
|
created_after: T.nilable(Time),
|
|
@@ -162,6 +161,7 @@ module WhopSDK
|
|
|
162
161
|
T.nilable(T::Array[WhopSDK::MemberMostRecentActions::OrSymbol]),
|
|
163
162
|
order: T.nilable(WhopSDK::MemberListParams::Order::OrSymbol),
|
|
164
163
|
plan_ids: T.nilable(T::Array[String]),
|
|
164
|
+
product_ids: T.nilable(T::Array[String]),
|
|
165
165
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
166
166
|
query: T.nilable(String),
|
|
167
167
|
statuses: T.nilable(T::Array[WhopSDK::MemberStatuses::OrSymbol]),
|
|
@@ -13,9 +13,9 @@ module WhopSDK
|
|
|
13
13
|
attr_accessor :id
|
|
14
14
|
|
|
15
15
|
# The access level of the product member. If its admin, the member is an
|
|
16
|
-
# authorized user of the
|
|
17
|
-
# membership to the
|
|
18
|
-
# to the
|
|
16
|
+
# authorized user of the company. If its customer, the member has a valid
|
|
17
|
+
# membership to any product on the company. If its no_access, the member does not
|
|
18
|
+
# have access to the product.
|
|
19
19
|
sig { returns(WhopSDK::AccessLevel::TaggedSymbol) }
|
|
20
20
|
attr_accessor :access_level
|
|
21
21
|
|
|
@@ -85,9 +85,9 @@ module WhopSDK
|
|
|
85
85
|
# The ID of the member
|
|
86
86
|
id:,
|
|
87
87
|
# The access level of the product member. If its admin, the member is an
|
|
88
|
-
# authorized user of the
|
|
89
|
-
# membership to the
|
|
90
|
-
# to the
|
|
88
|
+
# authorized user of the company. If its customer, the member has a valid
|
|
89
|
+
# membership to any product on the company. If its no_access, the member does not
|
|
90
|
+
# have access to the product.
|
|
91
91
|
access_level:,
|
|
92
92
|
# When the member was created
|
|
93
93
|
created_at:,
|
|
@@ -16,9 +16,9 @@ module WhopSDK
|
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
18
|
# The access level of the product member. If its admin, the member is an
|
|
19
|
-
# authorized user of the
|
|
20
|
-
# membership to the
|
|
21
|
-
# to the
|
|
19
|
+
# authorized user of the company. If its customer, the member has a valid
|
|
20
|
+
# membership to any product on the company. If its no_access, the member does not
|
|
21
|
+
# have access to the product.
|
|
22
22
|
sig { returns(WhopSDK::AccessLevel::TaggedSymbol) }
|
|
23
23
|
attr_accessor :access_level
|
|
24
24
|
|
|
@@ -100,9 +100,9 @@ module WhopSDK
|
|
|
100
100
|
# The ID of the member
|
|
101
101
|
id:,
|
|
102
102
|
# The access level of the product member. If its admin, the member is an
|
|
103
|
-
# authorized user of the
|
|
104
|
-
# membership to the
|
|
105
|
-
# to the
|
|
103
|
+
# authorized user of the company. If its customer, the member has a valid
|
|
104
|
+
# membership to any product on the company. If its no_access, the member does not
|
|
105
|
+
# have access to the product.
|
|
106
106
|
access_level:,
|
|
107
107
|
# The company for the member.
|
|
108
108
|
company:,
|
|
@@ -11,10 +11,6 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::MembershipListParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# The access pass IDs to filter the memberships by
|
|
15
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
16
|
-
attr_accessor :access_pass_ids
|
|
17
|
-
|
|
18
14
|
# Returns the elements in the list that come after the specified cursor.
|
|
19
15
|
sig { returns(T.nilable(String)) }
|
|
20
16
|
attr_accessor :after
|
|
@@ -65,6 +61,10 @@ module WhopSDK
|
|
|
65
61
|
sig { returns(T.nilable(T::Array[String])) }
|
|
66
62
|
attr_accessor :plan_ids
|
|
67
63
|
|
|
64
|
+
# The product IDs to filter the memberships by
|
|
65
|
+
sig { returns(T.nilable(T::Array[String])) }
|
|
66
|
+
attr_accessor :product_ids
|
|
67
|
+
|
|
68
68
|
# The promo code IDs to filter the memberships by
|
|
69
69
|
sig { returns(T.nilable(T::Array[String])) }
|
|
70
70
|
attr_accessor :promo_code_ids
|
|
@@ -79,7 +79,6 @@ module WhopSDK
|
|
|
79
79
|
|
|
80
80
|
sig do
|
|
81
81
|
params(
|
|
82
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
83
82
|
after: T.nilable(String),
|
|
84
83
|
before: T.nilable(String),
|
|
85
84
|
cancel_options:
|
|
@@ -94,6 +93,7 @@ module WhopSDK
|
|
|
94
93
|
last: T.nilable(Integer),
|
|
95
94
|
order: T.nilable(WhopSDK::MembershipListParams::Order::OrSymbol),
|
|
96
95
|
plan_ids: T.nilable(T::Array[String]),
|
|
96
|
+
product_ids: T.nilable(T::Array[String]),
|
|
97
97
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
98
98
|
statuses: T.nilable(T::Array[WhopSDK::MembershipStatus::OrSymbol]),
|
|
99
99
|
user_ids: T.nilable(T::Array[String]),
|
|
@@ -101,8 +101,6 @@ module WhopSDK
|
|
|
101
101
|
).returns(T.attached_class)
|
|
102
102
|
end
|
|
103
103
|
def self.new(
|
|
104
|
-
# The access pass IDs to filter the memberships by
|
|
105
|
-
access_pass_ids: nil,
|
|
106
104
|
# Returns the elements in the list that come after the specified cursor.
|
|
107
105
|
after: nil,
|
|
108
106
|
# Returns the elements in the list that come before the specified cursor.
|
|
@@ -125,6 +123,8 @@ module WhopSDK
|
|
|
125
123
|
order: nil,
|
|
126
124
|
# The plan IDs to filter the memberships by
|
|
127
125
|
plan_ids: nil,
|
|
126
|
+
# The product IDs to filter the memberships by
|
|
127
|
+
product_ids: nil,
|
|
128
128
|
# The promo code IDs to filter the memberships by
|
|
129
129
|
promo_code_ids: nil,
|
|
130
130
|
# The membership status to filter the memberships by
|
|
@@ -138,7 +138,6 @@ module WhopSDK
|
|
|
138
138
|
sig do
|
|
139
139
|
override.returns(
|
|
140
140
|
{
|
|
141
|
-
access_pass_ids: T.nilable(T::Array[String]),
|
|
142
141
|
after: T.nilable(String),
|
|
143
142
|
before: T.nilable(String),
|
|
144
143
|
cancel_options:
|
|
@@ -153,6 +152,7 @@ module WhopSDK
|
|
|
153
152
|
last: T.nilable(Integer),
|
|
154
153
|
order: T.nilable(WhopSDK::MembershipListParams::Order::OrSymbol),
|
|
155
154
|
plan_ids: T.nilable(T::Array[String]),
|
|
155
|
+
product_ids: T.nilable(T::Array[String]),
|
|
156
156
|
promo_code_ids: T.nilable(T::Array[String]),
|
|
157
157
|
statuses: T.nilable(T::Array[WhopSDK::MembershipStatus::OrSymbol]),
|
|
158
158
|
user_ids: T.nilable(T::Array[String]),
|
|
@@ -6,7 +6,7 @@ module WhopSDK
|
|
|
6
6
|
OrHash =
|
|
7
7
|
T.type_alias { T.any(WhopSDK::Message, WhopSDK::Internal::AnyHash) }
|
|
8
8
|
|
|
9
|
-
# The unique identifier
|
|
9
|
+
# The unique identifier of the resource.
|
|
10
10
|
sig { returns(String) }
|
|
11
11
|
attr_accessor :id
|
|
12
12
|
|
|
@@ -83,7 +83,7 @@ module WhopSDK
|
|
|
83
83
|
).returns(T.attached_class)
|
|
84
84
|
end
|
|
85
85
|
def self.new(
|
|
86
|
-
# The unique identifier
|
|
86
|
+
# The unique identifier of the resource.
|
|
87
87
|
id:,
|
|
88
88
|
# The content of the message in Markdown format
|
|
89
89
|
content:,
|