whop_sdk 0.0.13 → 0.0.15

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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -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/company.rb +9 -1
  9. data/lib/whop_sdk/models/company_create_params.rb +15 -1
  10. data/lib/whop_sdk/models/company_list_response.rb +9 -1
  11. data/lib/whop_sdk/models/company_update_params.rb +15 -1
  12. data/lib/whop_sdk/models/experience.rb +9 -1
  13. data/lib/whop_sdk/models/experience_create_params.rb +9 -1
  14. data/lib/whop_sdk/models/experience_list_response.rb +9 -1
  15. data/lib/whop_sdk/models/experience_update_params.rb +9 -1
  16. data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
  17. data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
  18. data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
  19. data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
  20. data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
  21. data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
  22. data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
  23. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +11 -1
  24. data/lib/whop_sdk/models/withdrawal_list_response.rb +11 -1
  25. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +11 -1
  26. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +11 -1
  27. data/lib/whop_sdk/models.rb +8 -0
  28. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  29. data/lib/whop_sdk/resources/companies.rb +12 -2
  30. data/lib/whop_sdk/resources/experiences.rb +6 -2
  31. data/lib/whop_sdk/resources/fee_markups.rb +112 -0
  32. data/lib/whop_sdk/version.rb +1 -1
  33. data/lib/whop_sdk.rb +8 -0
  34. data/rbi/whop_sdk/client.rbi +3 -0
  35. data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
  36. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
  37. data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
  38. data/rbi/whop_sdk/models/company.rbi +8 -0
  39. data/rbi/whop_sdk/models/company_create_params.rbi +14 -0
  40. data/rbi/whop_sdk/models/company_list_response.rbi +8 -0
  41. data/rbi/whop_sdk/models/company_update_params.rbi +14 -0
  42. data/rbi/whop_sdk/models/experience.rbi +8 -0
  43. data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
  44. data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
  45. data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
  46. data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
  47. data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
  48. data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
  49. data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
  50. data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
  51. data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
  52. data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
  53. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +12 -0
  54. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +12 -0
  55. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +12 -0
  56. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +12 -0
  57. data/rbi/whop_sdk/models.rbi +8 -0
  58. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  59. data/rbi/whop_sdk/resources/companies.rbi +12 -0
  60. data/rbi/whop_sdk/resources/experiences.rbi +6 -0
  61. data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
  62. data/sig/whop_sdk/client.rbs +2 -0
  63. data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
  64. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
  65. data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
  66. data/sig/whop_sdk/models/company.rbs +5 -0
  67. data/sig/whop_sdk/models/company_create_params.rbs +6 -1
  68. data/sig/whop_sdk/models/company_list_response.rbs +5 -0
  69. data/sig/whop_sdk/models/company_update_params.rbs +9 -1
  70. data/sig/whop_sdk/models/experience.rbs +5 -0
  71. data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
  72. data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
  73. data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
  74. data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
  75. data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
  76. data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
  77. data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
  78. data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
  79. data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
  80. data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
  81. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -0
  82. data/sig/whop_sdk/models/withdrawal_list_response.rbs +5 -0
  83. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -0
  84. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -0
  85. data/sig/whop_sdk/models.rbs +8 -0
  86. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  87. data/sig/whop_sdk/resources/companies.rbs +2 -0
  88. data/sig/whop_sdk/resources/experiences.rbs +2 -0
  89. data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
  90. metadata +26 -2
@@ -139,6 +139,12 @@ module WhopSDK
139
139
  end
140
140
  attr_writer :ledger_account
141
141
 
142
+ # The markup fee that was charged for the withdrawal. This is in the same currency
143
+ # as the withdrawal amount. This only applies to platform accounts using Whop
144
+ # Rails.
145
+ sig { returns(Float) }
146
+ attr_accessor :markup_fee
147
+
142
148
  # The payout token used for the withdrawal, if applicable.
143
149
  sig do
144
150
  returns(
@@ -191,6 +197,7 @@ module WhopSDK
191
197
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
192
198
  ledger_account:
193
199
  WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount::OrHash,
200
+ markup_fee: Float,
194
201
  payout_token:
195
202
  T.nilable(
196
203
  WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken::OrHash
@@ -223,6 +230,10 @@ module WhopSDK
223
230
  fee_type:,
224
231
  # The ledger account associated with the withdrawal.
225
232
  ledger_account:,
233
+ # The markup fee that was charged for the withdrawal. This is in the same currency
234
+ # as the withdrawal amount. This only applies to platform accounts using Whop
235
+ # Rails.
236
+ markup_fee:,
226
237
  # The payout token used for the withdrawal, if applicable.
227
238
  payout_token:,
228
239
  # The speed of the withdrawal.
@@ -254,6 +265,7 @@ module WhopSDK
254
265
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
255
266
  ledger_account:
256
267
  WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
268
+ markup_fee: Float,
257
269
  payout_token:
258
270
  T.nilable(
259
271
  WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken
@@ -36,6 +36,12 @@ module WhopSDK
36
36
  sig { returns(T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol)) }
37
37
  attr_accessor :fee_type
38
38
 
39
+ # The markup fee that was charged for the withdrawal. This is in the same currency
40
+ # as the withdrawal amount. This only applies to platform accounts using Whop
41
+ # Rails.
42
+ sig { returns(Float) }
43
+ attr_accessor :markup_fee
44
+
39
45
  # The speed of the withdrawal.
40
46
  sig { returns(WhopSDK::WithdrawalSpeeds::TaggedSymbol) }
41
47
  attr_accessor :speed
@@ -57,6 +63,7 @@ module WhopSDK
57
63
  currency: WhopSDK::Currency::OrSymbol,
58
64
  fee_amount: Float,
59
65
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
66
+ markup_fee: Float,
60
67
  speed: WhopSDK::WithdrawalSpeeds::OrSymbol,
61
68
  status: WhopSDK::WithdrawalStatus::OrSymbol,
62
69
  withdrawal_type: WhopSDK::WithdrawalTypes::OrSymbol
@@ -76,6 +83,10 @@ module WhopSDK
76
83
  fee_amount:,
77
84
  # The different fee types for a withdrawal.
78
85
  fee_type:,
86
+ # The markup fee that was charged for the withdrawal. This is in the same currency
87
+ # as the withdrawal amount. This only applies to platform accounts using Whop
88
+ # Rails.
89
+ markup_fee:,
79
90
  # The speed of the withdrawal.
80
91
  speed:,
81
92
  # Status of the withdrawal.
@@ -94,6 +105,7 @@ module WhopSDK
94
105
  currency: WhopSDK::Currency::TaggedSymbol,
95
106
  fee_amount: Float,
96
107
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
108
+ markup_fee: Float,
97
109
  speed: WhopSDK::WithdrawalSpeeds::TaggedSymbol,
98
110
  status: WhopSDK::WithdrawalStatus::TaggedSymbol,
99
111
  withdrawal_type: WhopSDK::WithdrawalTypes::TaggedSymbol
@@ -68,6 +68,12 @@ module WhopSDK
68
68
  end
69
69
  attr_writer :ledger_account
70
70
 
71
+ # The markup fee that was charged for the withdrawal. This is in the same currency
72
+ # as the withdrawal amount. This only applies to platform accounts using Whop
73
+ # Rails.
74
+ sig { returns(Float) }
75
+ attr_accessor :markup_fee
76
+
71
77
  # The payout token used for the withdrawal, if applicable.
72
78
  sig do
73
79
  returns(
@@ -120,6 +126,7 @@ module WhopSDK
120
126
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
121
127
  ledger_account:
122
128
  WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount::OrHash,
129
+ markup_fee: Float,
123
130
  payout_token:
124
131
  T.nilable(
125
132
  WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::OrHash
@@ -152,6 +159,10 @@ module WhopSDK
152
159
  fee_type:,
153
160
  # The ledger account associated with the withdrawal.
154
161
  ledger_account:,
162
+ # The markup fee that was charged for the withdrawal. This is in the same currency
163
+ # as the withdrawal amount. This only applies to platform accounts using Whop
164
+ # Rails.
165
+ markup_fee:,
155
166
  # The payout token used for the withdrawal, if applicable.
156
167
  payout_token:,
157
168
  # The speed of the withdrawal.
@@ -183,6 +194,7 @@ module WhopSDK
183
194
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
184
195
  ledger_account:
185
196
  WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
197
+ markup_fee: Float,
186
198
  payout_token:
187
199
  T.nilable(
188
200
  WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken
@@ -139,6 +139,12 @@ module WhopSDK
139
139
  end
140
140
  attr_writer :ledger_account
141
141
 
142
+ # The markup fee that was charged for the withdrawal. This is in the same currency
143
+ # as the withdrawal amount. This only applies to platform accounts using Whop
144
+ # Rails.
145
+ sig { returns(Float) }
146
+ attr_accessor :markup_fee
147
+
142
148
  # The payout token used for the withdrawal, if applicable.
143
149
  sig do
144
150
  returns(
@@ -191,6 +197,7 @@ module WhopSDK
191
197
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::OrSymbol),
192
198
  ledger_account:
193
199
  WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount::OrHash,
200
+ markup_fee: Float,
194
201
  payout_token:
195
202
  T.nilable(
196
203
  WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken::OrHash
@@ -223,6 +230,10 @@ module WhopSDK
223
230
  fee_type:,
224
231
  # The ledger account associated with the withdrawal.
225
232
  ledger_account:,
233
+ # The markup fee that was charged for the withdrawal. This is in the same currency
234
+ # as the withdrawal amount. This only applies to platform accounts using Whop
235
+ # Rails.
236
+ markup_fee:,
226
237
  # The payout token used for the withdrawal, if applicable.
227
238
  payout_token:,
228
239
  # The speed of the withdrawal.
@@ -254,6 +265,7 @@ module WhopSDK
254
265
  fee_type: T.nilable(WhopSDK::WithdrawalFeeTypes::TaggedSymbol),
255
266
  ledger_account:
256
267
  WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
268
+ markup_fee: Float,
257
269
  payout_token:
258
270
  T.nilable(
259
271
  WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken
@@ -214,6 +214,14 @@ module WhopSDK
214
214
 
215
215
  ExperienceUpdateParams = WhopSDK::Models::ExperienceUpdateParams
216
216
 
217
+ FeeMarkupCreateParams = WhopSDK::Models::FeeMarkupCreateParams
218
+
219
+ FeeMarkupDeleteParams = WhopSDK::Models::FeeMarkupDeleteParams
220
+
221
+ FeeMarkupListParams = WhopSDK::Models::FeeMarkupListParams
222
+
223
+ FeeMarkupType = WhopSDK::Models::FeeMarkupType
224
+
217
225
  Forum = WhopSDK::Models::Forum
218
226
 
219
227
  ForumListParams = WhopSDK::Models::ForumListParams
@@ -18,6 +18,7 @@ module WhopSDK
18
18
  plan_id: String,
19
19
  company_id: String,
20
20
  affiliate_code: T.nilable(String),
21
+ currency: T.nilable(WhopSDK::Currency::OrSymbol),
21
22
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
22
23
  payment_method_configuration:
23
24
  T.nilable(
@@ -38,6 +39,8 @@ module WhopSDK
38
39
  company_id:,
39
40
  # The affiliate code to use for the checkout configuration
40
41
  affiliate_code: nil,
42
+ # The available currencies on the platform
43
+ currency: nil,
41
44
  # The metadata to use for the checkout configuration
42
45
  metadata: nil,
43
46
  # This currently only works for configurations made in 'setup' mode. The explicit
@@ -15,6 +15,7 @@ module WhopSDK
15
15
  parent_company_id: String,
16
16
  title: String,
17
17
  metadata: T.nilable(T::Hash[Symbol, T.anything]),
18
+ send_customer_emails: T.nilable(T::Boolean),
18
19
  request_options: WhopSDK::RequestOptions::OrHash
19
20
  ).returns(WhopSDK::Company)
20
21
  end
@@ -27,6 +28,11 @@ module WhopSDK
27
28
  title:,
28
29
  # Additional metadata for the account
29
30
  metadata: nil,
31
+ # Whether Whop sends transactional emails to customers on behalf of this company.
32
+ # Includes: order confirmations, payment failures, refund notifications, upcoming
33
+ # renewals, and membership cancelations/expirations. When disabled, the platform
34
+ # is responsible for handling these communications. This is defaulted to true.
35
+ send_customer_emails: nil,
30
36
  request_options: {}
31
37
  )
32
38
  end
@@ -66,6 +72,7 @@ module WhopSDK
66
72
  WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
67
73
  )
68
74
  ),
75
+ send_customer_emails: T.nilable(T::Boolean),
69
76
  title: T.nilable(String),
70
77
  request_options: WhopSDK::RequestOptions::OrHash
71
78
  ).returns(WhopSDK::Company)
@@ -75,6 +82,11 @@ module WhopSDK
75
82
  id,
76
83
  # The logo for the company in png, jpeg, or gif format
77
84
  logo: nil,
85
+ # Whether Whop sends transactional emails to customers on behalf of this company.
86
+ # Includes: order confirmations, payment failures, refund notifications, upcoming
87
+ # renewals, and membership cancelations/expirations. When disabled, the platform
88
+ # is responsible for handling these communications.
89
+ send_customer_emails: nil,
78
90
  # The title of the company
79
91
  title: nil,
80
92
  request_options: {}
@@ -10,6 +10,7 @@ module WhopSDK
10
10
  params(
11
11
  app_id: String,
12
12
  company_id: String,
13
+ is_public: T.nilable(T::Boolean),
13
14
  name: T.nilable(String),
14
15
  section_id: T.nilable(String),
15
16
  request_options: WhopSDK::RequestOptions::OrHash
@@ -20,6 +21,8 @@ module WhopSDK
20
21
  app_id:,
21
22
  # The ID of the company to create the experience for
22
23
  company_id:,
24
+ # Whether the experience is publicly accessible
25
+ is_public: nil,
23
26
  # The name of the experience
24
27
  name: nil,
25
28
  # The ID of the section to create the experience in
@@ -50,6 +53,7 @@ module WhopSDK
50
53
  id: String,
51
54
  access_level:
52
55
  T.nilable(WhopSDK::ExperienceUpdateParams::AccessLevel::OrSymbol),
56
+ is_public: T.nilable(T::Boolean),
53
57
  logo:
54
58
  T.nilable(
55
59
  T.any(
@@ -68,6 +72,8 @@ module WhopSDK
68
72
  id,
69
73
  # The different access levels for experiences (PUBLIC IS NEVER USED ANYMORE).
70
74
  access_level: nil,
75
+ # Whether the experience is publicly accessible.
76
+ is_public: nil,
71
77
  # The logo for the experience
72
78
  logo: nil,
73
79
  # The name of the experience.
@@ -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
@@ -90,6 +90,8 @@ module WhopSDK
90
90
 
91
91
  attr_reader payment_methods: WhopSDK::Resources::PaymentMethods
92
92
 
93
+ attr_reader fee_markups: WhopSDK::Resources::FeeMarkups
94
+
93
95
  private def auth_headers: -> ::Hash[String, String]
94
96
 
95
97
  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?,
@@ -13,6 +13,7 @@ module WhopSDK
13
13
  owner_user: WhopSDK::Company::OwnerUser,
14
14
  published_reviews_count: Integer,
15
15
  route: String,
16
+ send_customer_emails: bool,
16
17
  social_links: ::Array[WhopSDK::Company::SocialLink],
17
18
  title: String,
18
19
  updated_at: Time,
@@ -42,6 +43,8 @@ module WhopSDK
42
43
 
43
44
  attr_accessor route: String
44
45
 
46
+ attr_accessor send_customer_emails: bool
47
+
45
48
  attr_accessor social_links: ::Array[WhopSDK::Company::SocialLink]
46
49
 
47
50
  attr_accessor title: String
@@ -62,6 +65,7 @@ module WhopSDK
62
65
  owner_user: WhopSDK::Company::OwnerUser,
63
66
  published_reviews_count: Integer,
64
67
  route: String,
68
+ send_customer_emails: bool,
65
69
  social_links: ::Array[WhopSDK::Company::SocialLink],
66
70
  title: String,
67
71
  updated_at: Time,
@@ -80,6 +84,7 @@ module WhopSDK
80
84
  owner_user: WhopSDK::Company::OwnerUser,
81
85
  published_reviews_count: Integer,
82
86
  route: String,
87
+ send_customer_emails: bool,
83
88
  social_links: ::Array[WhopSDK::Company::SocialLink],
84
89
  title: String,
85
90
  updated_at: Time,
@@ -5,7 +5,8 @@ module WhopSDK
5
5
  email: String,
6
6
  parent_company_id: String,
7
7
  title: String,
8
- metadata: ::Hash[Symbol, top]?
8
+ metadata: ::Hash[Symbol, top]?,
9
+ send_customer_emails: bool?
9
10
  }
10
11
  & WhopSDK::Internal::Type::request_parameters
11
12
 
@@ -21,11 +22,14 @@ module WhopSDK
21
22
 
22
23
  attr_accessor metadata: ::Hash[Symbol, top]?
23
24
 
25
+ attr_accessor send_customer_emails: bool?
26
+
24
27
  def initialize: (
25
28
  email: String,
26
29
  parent_company_id: String,
27
30
  title: String,
28
31
  ?metadata: ::Hash[Symbol, top]?,
32
+ ?send_customer_emails: bool?,
29
33
  ?request_options: WhopSDK::request_opts
30
34
  ) -> void
31
35
 
@@ -34,6 +38,7 @@ module WhopSDK
34
38
  parent_company_id: String,
35
39
  title: String,
36
40
  metadata: ::Hash[Symbol, top]?,
41
+ send_customer_emails: bool?,
37
42
  request_options: WhopSDK::RequestOptions
38
43
  }
39
44
  end
@@ -13,6 +13,7 @@ module WhopSDK
13
13
  owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
14
14
  published_reviews_count: Integer,
15
15
  route: String,
16
+ send_customer_emails: bool,
16
17
  title: String,
17
18
  updated_at: Time,
18
19
  verified: bool
@@ -41,6 +42,8 @@ module WhopSDK
41
42
 
42
43
  attr_accessor route: String
43
44
 
45
+ attr_accessor send_customer_emails: bool
46
+
44
47
  attr_accessor title: String
45
48
 
46
49
  attr_accessor updated_at: Time
@@ -59,6 +62,7 @@ module WhopSDK
59
62
  owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
60
63
  published_reviews_count: Integer,
61
64
  route: String,
65
+ send_customer_emails: bool,
62
66
  title: String,
63
67
  updated_at: Time,
64
68
  verified: bool
@@ -76,6 +80,7 @@ module WhopSDK
76
80
  owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
77
81
  published_reviews_count: Integer,
78
82
  route: String,
83
+ send_customer_emails: bool,
79
84
  title: String,
80
85
  updated_at: Time,
81
86
  verified: bool
@@ -1,7 +1,11 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type company_update_params =
4
- { logo: WhopSDK::Models::CompanyUpdateParams::logo?, title: String? }
4
+ {
5
+ logo: WhopSDK::Models::CompanyUpdateParams::logo?,
6
+ send_customer_emails: bool?,
7
+ title: String?
8
+ }
5
9
  & WhopSDK::Internal::Type::request_parameters
6
10
 
7
11
  class CompanyUpdateParams < WhopSDK::Internal::Type::BaseModel
@@ -10,16 +14,20 @@ module WhopSDK
10
14
 
11
15
  attr_accessor logo: WhopSDK::Models::CompanyUpdateParams::logo?
12
16
 
17
+ attr_accessor send_customer_emails: bool?
18
+
13
19
  attr_accessor title: String?
14
20
 
15
21
  def initialize: (
16
22
  ?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
23
+ ?send_customer_emails: bool?,
17
24
  ?title: String?,
18
25
  ?request_options: WhopSDK::request_opts
19
26
  ) -> void
20
27
 
21
28
  def to_hash: -> {
22
29
  logo: WhopSDK::Models::CompanyUpdateParams::logo?,
30
+ send_customer_emails: bool?,
23
31
  title: String?,
24
32
  request_options: WhopSDK::RequestOptions
25
33
  }
@@ -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