whop_sdk 0.0.14 → 0.0.16

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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +8 -0
  5. data/lib/whop_sdk/models/checkout_configuration.rb +9 -1
  6. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
  7. data/lib/whop_sdk/models/checkout_configuration_list_response.rb +9 -1
  8. data/lib/whop_sdk/models/course.rb +57 -1
  9. data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
  10. data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
  11. data/lib/whop_sdk/models/experience.rb +9 -1
  12. data/lib/whop_sdk/models/experience_create_params.rb +9 -1
  13. data/lib/whop_sdk/models/experience_list_response.rb +9 -1
  14. data/lib/whop_sdk/models/experience_update_params.rb +9 -1
  15. data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
  16. data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
  17. data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
  18. data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
  19. data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
  20. data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
  21. data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
  22. data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
  23. data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
  24. data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
  25. data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
  26. data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
  27. data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
  28. data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
  29. data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
  30. data/lib/whop_sdk/models.rb +14 -0
  31. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  32. data/lib/whop_sdk/resources/experiences.rb +6 -2
  33. data/lib/whop_sdk/resources/fee_markups.rb +112 -0
  34. data/lib/whop_sdk/resources/payment_methods.rb +2 -2
  35. data/lib/whop_sdk/resources/payments.rb +35 -0
  36. data/lib/whop_sdk/resources/payout_methods.rb +49 -0
  37. data/lib/whop_sdk/resources/withdrawals.rb +34 -0
  38. data/lib/whop_sdk/version.rb +1 -1
  39. data/lib/whop_sdk.rb +15 -0
  40. data/rbi/whop_sdk/client.rbi +6 -0
  41. data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
  42. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
  43. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
  44. data/rbi/whop_sdk/models/course.rbi +115 -3
  45. data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
  46. data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
  47. data/rbi/whop_sdk/models/experience.rbi +8 -0
  48. data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
  49. data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
  50. data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
  51. data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
  52. data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
  53. data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
  54. data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
  55. data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
  56. data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
  57. data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
  58. data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
  59. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
  60. data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
  61. data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
  62. data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
  63. data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
  64. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
  65. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
  66. data/rbi/whop_sdk/models.rbi +14 -0
  67. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  68. data/rbi/whop_sdk/resources/experiences.rbi +6 -0
  69. data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
  70. data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
  71. data/rbi/whop_sdk/resources/payments.rbi +34 -0
  72. data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
  73. data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
  74. data/sig/whop_sdk/client.rbs +4 -0
  75. data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
  76. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  77. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
  78. data/sig/whop_sdk/models/course.rbs +45 -3
  79. data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
  80. data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
  81. data/sig/whop_sdk/models/experience.rbs +5 -0
  82. data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
  83. data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
  84. data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
  85. data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
  86. data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
  87. data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
  88. data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
  89. data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
  90. data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
  91. data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
  92. data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
  93. data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
  94. data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
  95. data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
  96. data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
  97. data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
  98. data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
  99. data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
  100. data/sig/whop_sdk/models.rbs +14 -0
  101. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  102. data/sig/whop_sdk/resources/experiences.rbs +2 -0
  103. data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
  104. data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
  105. data/sig/whop_sdk/resources/payments.rbs +9 -0
  106. data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
  107. data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
  108. metadata +47 -2
@@ -0,0 +1,96 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Resources
5
+ class FeeMarkups
6
+ # Creates or updates a fee markup for a company.
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `company:update_child_fees`
11
+ sig do
12
+ params(
13
+ company_id: String,
14
+ fee_type: WhopSDK::FeeMarkupType::OrSymbol,
15
+ fixed_fee_usd: T.nilable(Float),
16
+ metadata: T.nilable(T::Hash[Symbol, T.anything]),
17
+ notes: T.nilable(String),
18
+ percentage_fee: T.nilable(Float),
19
+ request_options: WhopSDK::RequestOptions::OrHash
20
+ ).returns(WhopSDK::Models::FeeMarkupCreateResponse)
21
+ end
22
+ def create(
23
+ # The ID (tag) of the company you want to update the fee markup for.
24
+ company_id:,
25
+ # The type of fee this markup applies to.
26
+ fee_type:,
27
+ # The fixed fee in USD to charge (0-50).
28
+ fixed_fee_usd: nil,
29
+ # Custom metadata to attach to this fee markup.
30
+ metadata: nil,
31
+ # Internal notes about this fee markup.
32
+ notes: nil,
33
+ # The percentage fee to charge (0-25).
34
+ percentage_fee: nil,
35
+ request_options: {}
36
+ )
37
+ end
38
+
39
+ # Lists fee markups for a company.
40
+ #
41
+ # Required permissions:
42
+ #
43
+ # - `company:update_child_fees`
44
+ sig do
45
+ params(
46
+ company_id: String,
47
+ after: T.nilable(String),
48
+ before: T.nilable(String),
49
+ first: T.nilable(Integer),
50
+ last: T.nilable(Integer),
51
+ request_options: WhopSDK::RequestOptions::OrHash
52
+ ).returns(
53
+ WhopSDK::Internal::CursorPage[WhopSDK::Models::FeeMarkupListResponse]
54
+ )
55
+ end
56
+ def list(
57
+ # The ID (tag) of the company you want to list the fee markups for. If you pass
58
+ # your platform account, you will get the platform default markups.
59
+ company_id:,
60
+ # Returns the elements in the list that come after the specified cursor.
61
+ after: nil,
62
+ # Returns the elements in the list that come before the specified cursor.
63
+ before: nil,
64
+ # Returns the first _n_ elements from the list.
65
+ first: nil,
66
+ # Returns the last _n_ elements from the list.
67
+ last: nil,
68
+ request_options: {}
69
+ )
70
+ end
71
+
72
+ # Deletes a fee markup for a company.
73
+ #
74
+ # Required permissions:
75
+ #
76
+ # - `company:update_child_fees`
77
+ sig do
78
+ params(
79
+ id: String,
80
+ request_options: WhopSDK::RequestOptions::OrHash
81
+ ).returns(T::Boolean)
82
+ end
83
+ def delete(
84
+ # The ID of the fee markup to delete.
85
+ id,
86
+ request_options: {}
87
+ )
88
+ end
89
+
90
+ # @api private
91
+ sig { params(client: WhopSDK::Client).returns(T.attached_class) }
92
+ def self.new(client:)
93
+ end
94
+ end
95
+ end
96
+ end
@@ -17,7 +17,7 @@ module WhopSDK
17
17
  id: String,
18
18
  member_id: String,
19
19
  request_options: WhopSDK::RequestOptions::OrHash
20
- ).returns(WhopSDK::Models::PaymentMethodRetrieveResponse)
20
+ ).returns(WhopSDK::Models::PaymentMethodRetrieveResponse::Variants)
21
21
  end
22
22
  def retrieve(
23
23
  # The ID of the PaymentMethod
@@ -50,7 +50,7 @@ module WhopSDK
50
50
  request_options: WhopSDK::RequestOptions::OrHash
51
51
  ).returns(
52
52
  WhopSDK::Internal::CursorPage[
53
- WhopSDK::Models::PaymentMethodListResponse
53
+ WhopSDK::Models::PaymentMethodListResponse::Variants
54
54
  ]
55
55
  )
56
56
  end
@@ -144,6 +144,40 @@ module WhopSDK
144
144
  )
145
145
  end
146
146
 
147
+ # Lists fees for a payment
148
+ #
149
+ # Required permissions:
150
+ #
151
+ # - `payment:basic:read`
152
+ sig do
153
+ params(
154
+ id: String,
155
+ after: T.nilable(String),
156
+ before: T.nilable(String),
157
+ first: T.nilable(Integer),
158
+ last: T.nilable(Integer),
159
+ request_options: WhopSDK::RequestOptions::OrHash
160
+ ).returns(
161
+ WhopSDK::Internal::CursorPage[
162
+ WhopSDK::Models::PaymentListFeesResponse
163
+ ]
164
+ )
165
+ end
166
+ def list_fees(
167
+ # The ID of the payment to list fees for
168
+ id,
169
+ # Returns the elements in the list that come after the specified cursor.
170
+ after: nil,
171
+ # Returns the elements in the list that come before the specified cursor.
172
+ before: nil,
173
+ # Returns the first _n_ elements from the list.
174
+ first: nil,
175
+ # Returns the last _n_ elements from the list.
176
+ last: nil,
177
+ request_options: {}
178
+ )
179
+ end
180
+
147
181
  # Refunds a payment
148
182
  #
149
183
  # Required permissions:
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Resources
5
+ class PayoutMethods
6
+ # Lists payout destinations for a company
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `payout:destination:read`
11
+ sig do
12
+ params(
13
+ company_id: String,
14
+ after: T.nilable(String),
15
+ before: T.nilable(String),
16
+ first: T.nilable(Integer),
17
+ last: T.nilable(Integer),
18
+ request_options: WhopSDK::RequestOptions::OrHash
19
+ ).returns(
20
+ WhopSDK::Internal::CursorPage[
21
+ WhopSDK::Models::PayoutMethodListResponse
22
+ ]
23
+ )
24
+ end
25
+ def list(
26
+ # The company ID to list payout methods for.
27
+ company_id:,
28
+ # Returns the elements in the list that come after the specified cursor.
29
+ after: nil,
30
+ # Returns the elements in the list that come before the specified cursor.
31
+ before: nil,
32
+ # Returns the first _n_ elements from the list.
33
+ first: nil,
34
+ # Returns the last _n_ elements from the list.
35
+ last: nil,
36
+ request_options: {}
37
+ )
38
+ end
39
+
40
+ # @api private
41
+ sig { params(client: WhopSDK::Client).returns(T.attached_class) }
42
+ def self.new(client:)
43
+ end
44
+ end
45
+ end
46
+ end
@@ -3,11 +3,40 @@
3
3
  module WhopSDK
4
4
  module Resources
5
5
  class Withdrawals
6
+ # Creates a withdrawal request for a ledger account
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `payout:withdraw_funds`
11
+ # - `payout:destination:read`
12
+ sig do
13
+ params(
14
+ amount: Float,
15
+ company_id: String,
16
+ currency: WhopSDK::Currency::OrSymbol,
17
+ payout_method_id: T.nilable(String),
18
+ request_options: WhopSDK::RequestOptions::OrHash
19
+ ).returns(WhopSDK::Models::WithdrawalCreateResponse)
20
+ end
21
+ def create(
22
+ # The amount to withdraw in the specified currency
23
+ amount:,
24
+ # The ID of the company to withdraw from.
25
+ company_id:,
26
+ # The currency that is being withdrawn.
27
+ currency:,
28
+ # The ID of the payout method to use for the withdrawal.
29
+ payout_method_id: nil,
30
+ request_options: {}
31
+ )
32
+ end
33
+
6
34
  # Retrieves a withdrawal by ID
7
35
  #
8
36
  # Required permissions:
9
37
  #
10
38
  # - `payout:withdrawal:read`
39
+ # - `payout:destination:read`
11
40
  sig do
12
41
  params(
13
42
  id: String,
@@ -90,6 +90,10 @@ module WhopSDK
90
90
 
91
91
  attr_reader payment_methods: WhopSDK::Resources::PaymentMethods
92
92
 
93
+ attr_reader fee_markups: WhopSDK::Resources::FeeMarkups
94
+
95
+ attr_reader payout_methods: WhopSDK::Resources::PayoutMethods
96
+
93
97
  private def auth_headers: -> ::Hash[String, String]
94
98
 
95
99
  def initialize: (
@@ -5,6 +5,7 @@ module WhopSDK
5
5
  id: String,
6
6
  affiliate_code: String?,
7
7
  company_id: String,
8
+ currency: WhopSDK::Models::currency?,
8
9
  metadata: ::Hash[Symbol, top]?,
9
10
  mode: WhopSDK::Models::checkout_modes,
10
11
  payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
@@ -20,6 +21,8 @@ module WhopSDK
20
21
 
21
22
  attr_accessor company_id: String
22
23
 
24
+ attr_accessor currency: WhopSDK::Models::currency?
25
+
23
26
  attr_accessor metadata: ::Hash[Symbol, top]?
24
27
 
25
28
  attr_accessor mode: WhopSDK::Models::checkout_modes
@@ -36,6 +39,7 @@ module WhopSDK
36
39
  id: String,
37
40
  affiliate_code: String?,
38
41
  company_id: String,
42
+ currency: WhopSDK::Models::currency?,
39
43
  metadata: ::Hash[Symbol, top]?,
40
44
  mode: WhopSDK::Models::checkout_modes,
41
45
  payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
@@ -48,6 +52,7 @@ module WhopSDK
48
52
  id: String,
49
53
  affiliate_code: String?,
50
54
  company_id: String,
55
+ currency: WhopSDK::Models::currency?,
51
56
  metadata: ::Hash[Symbol, top]?,
52
57
  mode: WhopSDK::Models::checkout_modes,
53
58
  payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
@@ -4,6 +4,7 @@ module WhopSDK
4
4
  {
5
5
  plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
6
6
  affiliate_code: String?,
7
+ currency: WhopSDK::Models::currency?,
7
8
  metadata: ::Hash[Symbol, top]?,
8
9
  mode: :setup,
9
10
  payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
@@ -21,6 +22,8 @@ module WhopSDK
21
22
 
22
23
  attr_accessor affiliate_code: String?
23
24
 
25
+ attr_accessor currency: WhopSDK::Models::currency?
26
+
24
27
  attr_accessor metadata: ::Hash[Symbol, top]?
25
28
 
26
29
  attr_accessor mode: :setup
@@ -38,6 +41,7 @@ module WhopSDK
38
41
  plan_id: String,
39
42
  company_id: String,
40
43
  ?affiliate_code: String?,
44
+ ?currency: WhopSDK::Models::currency?,
41
45
  ?metadata: ::Hash[Symbol, top]?,
42
46
  ?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
43
47
  ?redirect_url: String?,
@@ -48,6 +52,7 @@ module WhopSDK
48
52
  def to_hash: -> {
49
53
  plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
50
54
  affiliate_code: String?,
55
+ currency: WhopSDK::Models::currency?,
51
56
  metadata: ::Hash[Symbol, top]?,
52
57
  mode: :setup,
53
58
  payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
@@ -5,6 +5,7 @@ module WhopSDK
5
5
  id: String,
6
6
  affiliate_code: String?,
7
7
  company_id: String,
8
+ currency: WhopSDK::Models::currency?,
8
9
  metadata: ::Hash[Symbol, top]?,
9
10
  mode: WhopSDK::Models::checkout_modes,
10
11
  payment_method_configuration: WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration?,
@@ -20,6 +21,8 @@ module WhopSDK
20
21
 
21
22
  attr_accessor company_id: String
22
23
 
24
+ attr_accessor currency: WhopSDK::Models::currency?
25
+
23
26
  attr_accessor metadata: ::Hash[Symbol, top]?
24
27
 
25
28
  attr_accessor mode: WhopSDK::Models::checkout_modes
@@ -36,6 +39,7 @@ module WhopSDK
36
39
  id: String,
37
40
  affiliate_code: String?,
38
41
  company_id: String,
42
+ currency: WhopSDK::Models::currency?,
39
43
  metadata: ::Hash[Symbol, top]?,
40
44
  mode: WhopSDK::Models::checkout_modes,
41
45
  payment_method_configuration: WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration?,
@@ -48,6 +52,7 @@ module WhopSDK
48
52
  id: String,
49
53
  affiliate_code: String?,
50
54
  company_id: String,
55
+ currency: WhopSDK::Models::currency?,
51
56
  metadata: ::Hash[Symbol, top]?,
52
57
  mode: WhopSDK::Models::checkout_modes,
53
58
  payment_method_configuration: WhopSDK::Models::CheckoutConfigurationListResponse::PaymentMethodConfiguration?,
@@ -117,7 +117,9 @@ module WhopSDK
117
117
  id: String,
118
118
  lesson_type: WhopSDK::Models::lesson_types,
119
119
  order: Integer,
120
- title: String
120
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
121
+ title: String,
122
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
121
123
  }
122
124
 
123
125
  class Lesson < WhopSDK::Internal::Type::BaseModel
@@ -127,21 +129,61 @@ module WhopSDK
127
129
 
128
130
  attr_accessor order: Integer
129
131
 
132
+ attr_accessor thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?
133
+
130
134
  attr_accessor title: String
131
135
 
136
+ attr_accessor video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
137
+
132
138
  def initialize: (
133
139
  id: String,
134
140
  lesson_type: WhopSDK::Models::lesson_types,
135
141
  order: Integer,
136
- title: String
142
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
143
+ title: String,
144
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
137
145
  ) -> void
138
146
 
139
147
  def to_hash: -> {
140
148
  id: String,
141
149
  lesson_type: WhopSDK::Models::lesson_types,
142
150
  order: Integer,
143
- title: String
151
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
152
+ title: String,
153
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
144
154
  }
155
+
156
+ type thumbnail = { url: String? }
157
+
158
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
159
+ attr_accessor url: String?
160
+
161
+ def initialize: (url: String?) -> void
162
+
163
+ def to_hash: -> { url: String? }
164
+ end
165
+
166
+ type video_asset =
167
+ {
168
+ duration_seconds: Integer?,
169
+ signed_thumbnail_playback_token: String?
170
+ }
171
+
172
+ class VideoAsset < WhopSDK::Internal::Type::BaseModel
173
+ attr_accessor duration_seconds: Integer?
174
+
175
+ attr_accessor signed_thumbnail_playback_token: String?
176
+
177
+ def initialize: (
178
+ duration_seconds: Integer?,
179
+ signed_thumbnail_playback_token: String?
180
+ ) -> void
181
+
182
+ def to_hash: -> {
183
+ duration_seconds: Integer?,
184
+ signed_thumbnail_playback_token: String?
185
+ }
186
+ end
145
187
  end
146
188
  end
147
189
 
@@ -78,16 +78,41 @@ module WhopSDK
78
78
  end
79
79
  end
80
80
 
81
- type lesson = { id: String, title: String }
81
+ type lesson =
82
+ {
83
+ id: String,
84
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
85
+ title: String
86
+ }
82
87
 
83
88
  class Lesson < WhopSDK::Internal::Type::BaseModel
84
89
  attr_accessor id: String
85
90
 
91
+ attr_accessor chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter
92
+
86
93
  attr_accessor title: String
87
94
 
88
- def initialize: (id: String, title: String) -> void
95
+ def initialize: (
96
+ id: String,
97
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
98
+ title: String
99
+ ) -> void
100
+
101
+ def to_hash: -> {
102
+ id: String,
103
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
104
+ title: String
105
+ }
106
+
107
+ type chapter = { id: String }
108
+
109
+ class Chapter < WhopSDK::Internal::Type::BaseModel
110
+ attr_accessor id: String
89
111
 
90
- def to_hash: -> { id: String, title: String }
112
+ def initialize: (id: String) -> void
113
+
114
+ def to_hash: -> { id: String }
115
+ end
91
116
  end
92
117
 
93
118
  type user = { id: String, name: String?, username: String }
@@ -36,16 +36,41 @@ module WhopSDK
36
36
  user: WhopSDK::CourseLessonInteractionListItem::User
37
37
  }
38
38
 
39
- type lesson = { id: String, title: String }
39
+ type lesson =
40
+ {
41
+ id: String,
42
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
43
+ title: String
44
+ }
40
45
 
41
46
  class Lesson < WhopSDK::Internal::Type::BaseModel
42
47
  attr_accessor id: String
43
48
 
49
+ attr_accessor chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter
50
+
44
51
  attr_accessor title: String
45
52
 
46
- def initialize: (id: String, title: String) -> void
53
+ def initialize: (
54
+ id: String,
55
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
56
+ title: String
57
+ ) -> void
58
+
59
+ def to_hash: -> {
60
+ id: String,
61
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
62
+ title: String
63
+ }
64
+
65
+ type chapter = { id: String }
66
+
67
+ class Chapter < WhopSDK::Internal::Type::BaseModel
68
+ attr_accessor id: String
69
+
70
+ def initialize: (id: String) -> void
47
71
 
48
- def to_hash: -> { id: String, title: String }
72
+ def to_hash: -> { id: String }
73
+ end
49
74
  end
50
75
 
51
76
  type user = { id: String, name: String?, username: String }
@@ -7,6 +7,7 @@ module WhopSDK
7
7
  company: WhopSDK::Experience::Company,
8
8
  created_at: Time,
9
9
  image: WhopSDK::Experience::Image?,
10
+ is_public: bool,
10
11
  name: String,
11
12
  order: String?,
12
13
  products: ::Array[WhopSDK::Experience::Product]
@@ -23,6 +24,8 @@ module WhopSDK
23
24
 
24
25
  attr_accessor image: WhopSDK::Experience::Image?
25
26
 
27
+ attr_accessor is_public: bool
28
+
26
29
  attr_accessor name: String
27
30
 
28
31
  attr_accessor order: String?
@@ -35,6 +38,7 @@ module WhopSDK
35
38
  company: WhopSDK::Experience::Company,
36
39
  created_at: Time,
37
40
  image: WhopSDK::Experience::Image?,
41
+ is_public: bool,
38
42
  name: String,
39
43
  order: String?,
40
44
  products: ::Array[WhopSDK::Experience::Product]
@@ -46,6 +50,7 @@ module WhopSDK
46
50
  company: WhopSDK::Experience::Company,
47
51
  created_at: Time,
48
52
  image: WhopSDK::Experience::Image?,
53
+ is_public: bool,
49
54
  name: String,
50
55
  order: String?,
51
56
  products: ::Array[WhopSDK::Experience::Product]
@@ -1,7 +1,13 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type experience_create_params =
4
- { app_id: String, company_id: String, name: String?, section_id: String? }
4
+ {
5
+ app_id: String,
6
+ company_id: String,
7
+ is_public: bool?,
8
+ name: String?,
9
+ section_id: String?
10
+ }
5
11
  & WhopSDK::Internal::Type::request_parameters
6
12
 
7
13
  class ExperienceCreateParams < WhopSDK::Internal::Type::BaseModel
@@ -12,6 +18,8 @@ module WhopSDK
12
18
 
13
19
  attr_accessor company_id: String
14
20
 
21
+ attr_accessor is_public: bool?
22
+
15
23
  attr_accessor name: String?
16
24
 
17
25
  attr_accessor section_id: String?
@@ -19,6 +27,7 @@ module WhopSDK
19
27
  def initialize: (
20
28
  app_id: String,
21
29
  company_id: String,
30
+ ?is_public: bool?,
22
31
  ?name: String?,
23
32
  ?section_id: String?,
24
33
  ?request_options: WhopSDK::request_opts
@@ -27,6 +36,7 @@ module WhopSDK
27
36
  def to_hash: -> {
28
37
  app_id: String,
29
38
  company_id: String,
39
+ is_public: bool?,
30
40
  name: String?,
31
41
  section_id: String?,
32
42
  request_options: WhopSDK::RequestOptions
@@ -7,6 +7,7 @@ module WhopSDK
7
7
  company: WhopSDK::Models::ExperienceListResponse::Company,
8
8
  created_at: Time,
9
9
  image: WhopSDK::Models::ExperienceListResponse::Image?,
10
+ is_public: bool,
10
11
  name: String,
11
12
  order: String?
12
13
  }
@@ -22,6 +23,8 @@ module WhopSDK
22
23
 
23
24
  attr_accessor image: WhopSDK::Models::ExperienceListResponse::Image?
24
25
 
26
+ attr_accessor is_public: bool
27
+
25
28
  attr_accessor name: String
26
29
 
27
30
  attr_accessor order: String?
@@ -32,6 +35,7 @@ module WhopSDK
32
35
  company: WhopSDK::Models::ExperienceListResponse::Company,
33
36
  created_at: Time,
34
37
  image: WhopSDK::Models::ExperienceListResponse::Image?,
38
+ is_public: bool,
35
39
  name: String,
36
40
  order: String?
37
41
  ) -> void
@@ -42,6 +46,7 @@ module WhopSDK
42
46
  company: WhopSDK::Models::ExperienceListResponse::Company,
43
47
  created_at: Time,
44
48
  image: WhopSDK::Models::ExperienceListResponse::Image?,
49
+ is_public: bool,
45
50
  name: String,
46
51
  order: String?
47
52
  }
@@ -3,6 +3,7 @@ module WhopSDK
3
3
  type experience_update_params =
4
4
  {
5
5
  access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
6
+ is_public: bool?,
6
7
  logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
7
8
  name: String?,
8
9
  order: String?,
@@ -16,6 +17,8 @@ module WhopSDK
16
17
 
17
18
  attr_accessor access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?
18
19
 
20
+ attr_accessor is_public: bool?
21
+
19
22
  attr_accessor logo: WhopSDK::Models::ExperienceUpdateParams::logo?
20
23
 
21
24
  attr_accessor name: String?
@@ -26,6 +29,7 @@ module WhopSDK
26
29
 
27
30
  def initialize: (
28
31
  ?access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
32
+ ?is_public: bool?,
29
33
  ?logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
30
34
  ?name: String?,
31
35
  ?order: String?,
@@ -35,6 +39,7 @@ module WhopSDK
35
39
 
36
40
  def to_hash: -> {
37
41
  access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
42
+ is_public: bool?,
38
43
  logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
39
44
  name: String?,
40
45
  order: String?,