whop_sdk 0.0.19 → 0.0.20
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 +10 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +11 -1
- data/lib/whop_sdk/models/company_create_params.rb +17 -1
- data/lib/whop_sdk/models/company_update_params.rb +17 -1
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +23 -2
- data/lib/whop_sdk/resources/companies.rb +10 -2
- data/lib/whop_sdk/version.rb +1 -1
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +12 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +16 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +16 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +18 -0
- data/rbi/whop_sdk/resources/companies.rbi +12 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +10 -0
- data/sig/whop_sdk/models/company_update_params.rbs +10 -0
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +15 -1
- data/sig/whop_sdk/resources/companies.rbs +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d32dcd76f73b594a7fb102d804def660554a926905cf81c5ad81a2835721a71
|
|
4
|
+
data.tar.gz: 0b65615f3d8e3eaf643936cae943966f0351d2728d0882fbafa16ea33cd0c9f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f2a29382fe7f2ab33548b34e2ce073daf549a99081e436b5e985fdd5b10357918f81f995f58c468ea22897ecb8672384f112d53922a06b1a3930915d7b57eac4
|
|
7
|
+
data.tar.gz: 74cb5af4f78fc63f224055e5059b6470f94aff83886ff98307312d10a0efc3be3ac3c1b29a609c25e159dae0a6de5ba2db25bbfac3ac4367c5cc653f05222cb8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.20 (2025-12-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.19...v0.0.20](https://github.com/whopio/whopsdk-ruby/compare/v0.0.19...v0.0.20)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([907710a](https://github.com/whopio/whopsdk-ruby/commit/907710abe24bd19573fc51acbe7ebde1afa223c8))
|
|
10
|
+
* **api:** api update ([5f45e44](https://github.com/whopio/whopsdk-ruby/commit/5f45e44697df33e7ece56d767569e4d2b7a32c91))
|
|
11
|
+
* **api:** api update ([40ea3a3](https://github.com/whopio/whopsdk-ruby/commit/40ea3a3baaf83a71c700b700cd3b2bc701616233))
|
|
12
|
+
|
|
3
13
|
## 0.0.19 (2025-12-12)
|
|
4
14
|
|
|
5
15
|
Full Changelog: [v0.0.18...v0.0.19](https://github.com/whopio/whopsdk-ruby/compare/v0.0.18...v0.0.19)
|
data/README.md
CHANGED
|
@@ -102,6 +102,14 @@ module WhopSDK
|
|
|
102
102
|
# @return [Symbol, WhopSDK::Models::Currency]
|
|
103
103
|
required :currency, enum: -> { WhopSDK::Currency }
|
|
104
104
|
|
|
105
|
+
# @!attribute application_fee_amount
|
|
106
|
+
# The application fee amount collected by the platform from this connected
|
|
107
|
+
# account. Must be less than the total payment amount. Only valid for connected
|
|
108
|
+
# accounts with a parent company.
|
|
109
|
+
#
|
|
110
|
+
# @return [Float, nil]
|
|
111
|
+
optional :application_fee_amount, Float, nil?: true
|
|
112
|
+
|
|
105
113
|
# @!attribute billing_period
|
|
106
114
|
# The interval at which the plan charges (renewal plans).
|
|
107
115
|
#
|
|
@@ -226,7 +234,7 @@ module WhopSDK
|
|
|
226
234
|
# @return [Symbol, WhopSDK::Models::Visibility, nil]
|
|
227
235
|
optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
|
|
228
236
|
|
|
229
|
-
# @!method initialize(company_id:, currency:, billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, title: nil, trial_period_days: nil, visibility: nil)
|
|
237
|
+
# @!method initialize(company_id:, currency:, application_fee_amount: nil, billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, title: nil, trial_period_days: nil, visibility: nil)
|
|
230
238
|
# Some parameter documentations has been truncated, see
|
|
231
239
|
# {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan} for more details.
|
|
232
240
|
#
|
|
@@ -236,6 +244,8 @@ module WhopSDK
|
|
|
236
244
|
#
|
|
237
245
|
# @param currency [Symbol, WhopSDK::Models::Currency] The respective currency identifier for the plan.
|
|
238
246
|
#
|
|
247
|
+
# @param application_fee_amount [Float, nil] The application fee amount collected by the platform from this connected account
|
|
248
|
+
#
|
|
239
249
|
# @param billing_period [Integer, nil] The interval at which the plan charges (renewal plans).
|
|
240
250
|
#
|
|
241
251
|
# @param custom_fields [Array<WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::CustomField>, nil] An array of custom field objects.
|
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String]
|
|
26
26
|
required :title, String
|
|
27
27
|
|
|
28
|
+
# @!attribute business_type
|
|
29
|
+
# The different business types a company can be.
|
|
30
|
+
#
|
|
31
|
+
# @return [Symbol, WhopSDK::Models::BusinessTypes, nil]
|
|
32
|
+
optional :business_type, enum: -> { WhopSDK::BusinessTypes }, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute industry_type
|
|
35
|
+
# The different industry types a company can be in.
|
|
36
|
+
#
|
|
37
|
+
# @return [Symbol, WhopSDK::Models::IndustryTypes, nil]
|
|
38
|
+
optional :industry_type, enum: -> { WhopSDK::IndustryTypes }, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute metadata
|
|
29
41
|
# Additional metadata for the account
|
|
30
42
|
#
|
|
@@ -40,7 +52,7 @@ module WhopSDK
|
|
|
40
52
|
# @return [Boolean, nil]
|
|
41
53
|
optional :send_customer_emails, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
42
54
|
|
|
43
|
-
# @!method initialize(email:, parent_company_id:, title:, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
55
|
+
# @!method initialize(email:, parent_company_id:, title:, business_type: nil, industry_type: nil, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
44
56
|
# Some parameter documentations has been truncated, see
|
|
45
57
|
# {WhopSDK::Models::CompanyCreateParams} for more details.
|
|
46
58
|
#
|
|
@@ -50,6 +62,10 @@ module WhopSDK
|
|
|
50
62
|
#
|
|
51
63
|
# @param title [String] The name of the company being created.
|
|
52
64
|
#
|
|
65
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
66
|
+
#
|
|
67
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
68
|
+
#
|
|
53
69
|
# @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
|
|
54
70
|
#
|
|
55
71
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -13,6 +13,18 @@ module WhopSDK
|
|
|
13
13
|
# @return [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil]
|
|
14
14
|
optional :banner_image, union: -> { WhopSDK::CompanyUpdateParams::BannerImage }, nil?: true
|
|
15
15
|
|
|
16
|
+
# @!attribute business_type
|
|
17
|
+
# The different business types a company can be.
|
|
18
|
+
#
|
|
19
|
+
# @return [Symbol, WhopSDK::Models::BusinessTypes, nil]
|
|
20
|
+
optional :business_type, enum: -> { WhopSDK::BusinessTypes }, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute industry_type
|
|
23
|
+
# The different industry types a company can be in.
|
|
24
|
+
#
|
|
25
|
+
# @return [Symbol, WhopSDK::Models::IndustryTypes, nil]
|
|
26
|
+
optional :industry_type, enum: -> { WhopSDK::IndustryTypes }, nil?: true
|
|
27
|
+
|
|
16
28
|
# @!attribute logo
|
|
17
29
|
# The logo for the company in png, jpeg, or gif format
|
|
18
30
|
#
|
|
@@ -34,12 +46,16 @@ module WhopSDK
|
|
|
34
46
|
# @return [String, nil]
|
|
35
47
|
optional :title, String, nil?: true
|
|
36
48
|
|
|
37
|
-
# @!method initialize(banner_image: nil, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
49
|
+
# @!method initialize(banner_image: nil, business_type: nil, industry_type: nil, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
38
50
|
# Some parameter documentations has been truncated, see
|
|
39
51
|
# {WhopSDK::Models::CompanyUpdateParams} for more details.
|
|
40
52
|
#
|
|
41
53
|
# @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil] The banner image for the company in png or jpeg format
|
|
42
54
|
#
|
|
55
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
56
|
+
#
|
|
57
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
58
|
+
#
|
|
43
59
|
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
44
60
|
#
|
|
45
61
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -288,13 +288,19 @@ module WhopSDK
|
|
|
288
288
|
-> { WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative },
|
|
289
289
|
nil?: true
|
|
290
290
|
|
|
291
|
+
# @!attribute email
|
|
292
|
+
# The email address of the representative
|
|
293
|
+
#
|
|
294
|
+
# @return [String, nil]
|
|
295
|
+
required :email, String, nil?: true
|
|
296
|
+
|
|
291
297
|
# @!attribute phone
|
|
292
298
|
# The business representative's phone
|
|
293
299
|
#
|
|
294
300
|
# @return [String, nil]
|
|
295
301
|
required :phone, String, nil?: true
|
|
296
302
|
|
|
297
|
-
# @!method initialize(id:, address:, business_name:, business_representative:, phone:)
|
|
303
|
+
# @!method initialize(id:, address:, business_name:, business_representative:, email:, phone:)
|
|
298
304
|
# The payout account associated with the LedgerAccount, if any.
|
|
299
305
|
#
|
|
300
306
|
# @param id [String] Unique identifier for the object
|
|
@@ -305,6 +311,8 @@ module WhopSDK
|
|
|
305
311
|
#
|
|
306
312
|
# @param business_representative [WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative, nil] The business representative for this payout account
|
|
307
313
|
#
|
|
314
|
+
# @param email [String, nil] The email address of the representative
|
|
315
|
+
#
|
|
308
316
|
# @param phone [String, nil] The business representative's phone
|
|
309
317
|
|
|
310
318
|
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails#address
|
|
@@ -363,6 +371,13 @@ module WhopSDK
|
|
|
363
371
|
|
|
364
372
|
# @see WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails#business_representative
|
|
365
373
|
class BusinessRepresentative < WhopSDK::Internal::Type::BaseModel
|
|
374
|
+
# @!attribute date_of_birth
|
|
375
|
+
# The date of birth of the business representative in ISO 8601 format
|
|
376
|
+
# (YYYY-MM-DD).
|
|
377
|
+
#
|
|
378
|
+
# @return [String, nil]
|
|
379
|
+
required :date_of_birth, String, nil?: true
|
|
380
|
+
|
|
366
381
|
# @!attribute first_name
|
|
367
382
|
# The first name of the business representative.
|
|
368
383
|
#
|
|
@@ -381,9 +396,15 @@ module WhopSDK
|
|
|
381
396
|
# @return [String, nil]
|
|
382
397
|
required :middle_name, String, nil?: true
|
|
383
398
|
|
|
384
|
-
# @!method initialize(first_name:, last_name:, middle_name:)
|
|
399
|
+
# @!method initialize(date_of_birth:, first_name:, last_name:, middle_name:)
|
|
400
|
+
# Some parameter documentations has been truncated, see
|
|
401
|
+
# {WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative}
|
|
402
|
+
# for more details.
|
|
403
|
+
#
|
|
385
404
|
# The business representative for this payout account
|
|
386
405
|
#
|
|
406
|
+
# @param date_of_birth [String, nil] The date of birth of the business representative in ISO 8601 format (YYYY-MM-DD)
|
|
407
|
+
#
|
|
387
408
|
# @param first_name [String, nil] The first name of the business representative.
|
|
388
409
|
#
|
|
389
410
|
# @param last_name [String, nil] The last name of the business representative.
|
|
@@ -13,7 +13,7 @@ module WhopSDK
|
|
|
13
13
|
# - `company:create_child`
|
|
14
14
|
# - `company:basic:read`
|
|
15
15
|
#
|
|
16
|
-
# @overload create(email:, parent_company_id:, title:, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
16
|
+
# @overload create(email:, parent_company_id:, title:, business_type: nil, industry_type: nil, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
17
17
|
#
|
|
18
18
|
# @param email [String] The email of the user who the company will belong to.
|
|
19
19
|
#
|
|
@@ -21,6 +21,10 @@ module WhopSDK
|
|
|
21
21
|
#
|
|
22
22
|
# @param title [String] The name of the company being created.
|
|
23
23
|
#
|
|
24
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
25
|
+
#
|
|
26
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
27
|
+
#
|
|
24
28
|
# @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
|
|
25
29
|
#
|
|
26
30
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -76,12 +80,16 @@ module WhopSDK
|
|
|
76
80
|
# - `company:update`
|
|
77
81
|
# - `company:basic:read`
|
|
78
82
|
#
|
|
79
|
-
# @overload update(id, banner_image: nil, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
83
|
+
# @overload update(id, banner_image: nil, business_type: nil, industry_type: nil, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
80
84
|
#
|
|
81
85
|
# @param id [String] The ID of the company to update
|
|
82
86
|
#
|
|
83
87
|
# @param banner_image [WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::BannerImage::AttachmentInputWithID, nil] The banner image for the company in png or jpeg format
|
|
84
88
|
#
|
|
89
|
+
# @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
|
|
90
|
+
#
|
|
91
|
+
# @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
|
|
92
|
+
#
|
|
85
93
|
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
86
94
|
#
|
|
87
95
|
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
data/lib/whop_sdk/version.rb
CHANGED
|
@@ -156,6 +156,12 @@ module WhopSDK
|
|
|
156
156
|
sig { returns(WhopSDK::Currency::OrSymbol) }
|
|
157
157
|
attr_accessor :currency
|
|
158
158
|
|
|
159
|
+
# The application fee amount collected by the platform from this connected
|
|
160
|
+
# account. Must be less than the total payment amount. Only valid for connected
|
|
161
|
+
# accounts with a parent company.
|
|
162
|
+
sig { returns(T.nilable(Float)) }
|
|
163
|
+
attr_accessor :application_fee_amount
|
|
164
|
+
|
|
159
165
|
# The interval at which the plan charges (renewal plans).
|
|
160
166
|
sig { returns(T.nilable(Integer)) }
|
|
161
167
|
attr_accessor :billing_period
|
|
@@ -288,6 +294,7 @@ module WhopSDK
|
|
|
288
294
|
params(
|
|
289
295
|
company_id: String,
|
|
290
296
|
currency: WhopSDK::Currency::OrSymbol,
|
|
297
|
+
application_fee_amount: T.nilable(Float),
|
|
291
298
|
billing_period: T.nilable(Integer),
|
|
292
299
|
custom_fields:
|
|
293
300
|
T.nilable(
|
|
@@ -331,6 +338,10 @@ module WhopSDK
|
|
|
331
338
|
company_id:,
|
|
332
339
|
# The respective currency identifier for the plan.
|
|
333
340
|
currency:,
|
|
341
|
+
# The application fee amount collected by the platform from this connected
|
|
342
|
+
# account. Must be less than the total payment amount. Only valid for connected
|
|
343
|
+
# accounts with a parent company.
|
|
344
|
+
application_fee_amount: nil,
|
|
334
345
|
# The interval at which the plan charges (renewal plans).
|
|
335
346
|
billing_period: nil,
|
|
336
347
|
# An array of custom field objects.
|
|
@@ -381,6 +392,7 @@ module WhopSDK
|
|
|
381
392
|
{
|
|
382
393
|
company_id: String,
|
|
383
394
|
currency: WhopSDK::Currency::OrSymbol,
|
|
395
|
+
application_fee_amount: T.nilable(Float),
|
|
384
396
|
billing_period: T.nilable(Integer),
|
|
385
397
|
custom_fields:
|
|
386
398
|
T.nilable(
|
|
@@ -23,6 +23,14 @@ module WhopSDK
|
|
|
23
23
|
sig { returns(String) }
|
|
24
24
|
attr_accessor :title
|
|
25
25
|
|
|
26
|
+
# The different business types a company can be.
|
|
27
|
+
sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
|
|
28
|
+
attr_accessor :business_type
|
|
29
|
+
|
|
30
|
+
# The different industry types a company can be in.
|
|
31
|
+
sig { returns(T.nilable(WhopSDK::IndustryTypes::OrSymbol)) }
|
|
32
|
+
attr_accessor :industry_type
|
|
33
|
+
|
|
26
34
|
# Additional metadata for the account
|
|
27
35
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
28
36
|
attr_accessor :metadata
|
|
@@ -39,6 +47,8 @@ module WhopSDK
|
|
|
39
47
|
email: String,
|
|
40
48
|
parent_company_id: String,
|
|
41
49
|
title: String,
|
|
50
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
51
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
42
52
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
43
53
|
send_customer_emails: T.nilable(T::Boolean),
|
|
44
54
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -51,6 +61,10 @@ module WhopSDK
|
|
|
51
61
|
parent_company_id:,
|
|
52
62
|
# The name of the company being created.
|
|
53
63
|
title:,
|
|
64
|
+
# The different business types a company can be.
|
|
65
|
+
business_type: nil,
|
|
66
|
+
# The different industry types a company can be in.
|
|
67
|
+
industry_type: nil,
|
|
54
68
|
# Additional metadata for the account
|
|
55
69
|
metadata: nil,
|
|
56
70
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -68,6 +82,8 @@ module WhopSDK
|
|
|
68
82
|
email: String,
|
|
69
83
|
parent_company_id: String,
|
|
70
84
|
title: String,
|
|
85
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
86
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
71
87
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
72
88
|
send_customer_emails: T.nilable(T::Boolean),
|
|
73
89
|
request_options: WhopSDK::RequestOptions
|
|
@@ -24,6 +24,14 @@ module WhopSDK
|
|
|
24
24
|
end
|
|
25
25
|
attr_accessor :banner_image
|
|
26
26
|
|
|
27
|
+
# The different business types a company can be.
|
|
28
|
+
sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
|
|
29
|
+
attr_accessor :business_type
|
|
30
|
+
|
|
31
|
+
# The different industry types a company can be in.
|
|
32
|
+
sig { returns(T.nilable(WhopSDK::IndustryTypes::OrSymbol)) }
|
|
33
|
+
attr_accessor :industry_type
|
|
34
|
+
|
|
27
35
|
# The logo for the company in png, jpeg, or gif format
|
|
28
36
|
sig do
|
|
29
37
|
returns(
|
|
@@ -57,6 +65,8 @@ module WhopSDK
|
|
|
57
65
|
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
58
66
|
)
|
|
59
67
|
),
|
|
68
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
69
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
60
70
|
logo:
|
|
61
71
|
T.nilable(
|
|
62
72
|
T.any(
|
|
@@ -72,6 +82,10 @@ module WhopSDK
|
|
|
72
82
|
def self.new(
|
|
73
83
|
# The banner image for the company in png or jpeg format
|
|
74
84
|
banner_image: nil,
|
|
85
|
+
# The different business types a company can be.
|
|
86
|
+
business_type: nil,
|
|
87
|
+
# The different industry types a company can be in.
|
|
88
|
+
industry_type: nil,
|
|
75
89
|
# The logo for the company in png, jpeg, or gif format
|
|
76
90
|
logo: nil,
|
|
77
91
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -95,6 +109,8 @@ module WhopSDK
|
|
|
95
109
|
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
|
|
96
110
|
)
|
|
97
111
|
),
|
|
112
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
113
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
98
114
|
logo:
|
|
99
115
|
T.nilable(
|
|
100
116
|
T.any(
|
|
@@ -590,6 +590,10 @@ module WhopSDK
|
|
|
590
590
|
end
|
|
591
591
|
attr_writer :business_representative
|
|
592
592
|
|
|
593
|
+
# The email address of the representative
|
|
594
|
+
sig { returns(T.nilable(String)) }
|
|
595
|
+
attr_accessor :email
|
|
596
|
+
|
|
593
597
|
# The business representative's phone
|
|
594
598
|
sig { returns(T.nilable(String)) }
|
|
595
599
|
attr_accessor :phone
|
|
@@ -607,6 +611,7 @@ module WhopSDK
|
|
|
607
611
|
T.nilable(
|
|
608
612
|
WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative::OrHash
|
|
609
613
|
),
|
|
614
|
+
email: T.nilable(String),
|
|
610
615
|
phone: T.nilable(String)
|
|
611
616
|
).returns(T.attached_class)
|
|
612
617
|
end
|
|
@@ -619,6 +624,8 @@ module WhopSDK
|
|
|
619
624
|
business_name:,
|
|
620
625
|
# The business representative for this payout account
|
|
621
626
|
business_representative:,
|
|
627
|
+
# The email address of the representative
|
|
628
|
+
email:,
|
|
622
629
|
# The business representative's phone
|
|
623
630
|
phone:
|
|
624
631
|
)
|
|
@@ -637,6 +644,7 @@ module WhopSDK
|
|
|
637
644
|
T.nilable(
|
|
638
645
|
WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative
|
|
639
646
|
),
|
|
647
|
+
email: T.nilable(String),
|
|
640
648
|
phone: T.nilable(String)
|
|
641
649
|
}
|
|
642
650
|
)
|
|
@@ -729,6 +737,11 @@ module WhopSDK
|
|
|
729
737
|
)
|
|
730
738
|
end
|
|
731
739
|
|
|
740
|
+
# The date of birth of the business representative in ISO 8601 format
|
|
741
|
+
# (YYYY-MM-DD).
|
|
742
|
+
sig { returns(T.nilable(String)) }
|
|
743
|
+
attr_accessor :date_of_birth
|
|
744
|
+
|
|
732
745
|
# The first name of the business representative.
|
|
733
746
|
sig { returns(T.nilable(String)) }
|
|
734
747
|
attr_accessor :first_name
|
|
@@ -744,12 +757,16 @@ module WhopSDK
|
|
|
744
757
|
# The business representative for this payout account
|
|
745
758
|
sig do
|
|
746
759
|
params(
|
|
760
|
+
date_of_birth: T.nilable(String),
|
|
747
761
|
first_name: T.nilable(String),
|
|
748
762
|
last_name: T.nilable(String),
|
|
749
763
|
middle_name: T.nilable(String)
|
|
750
764
|
).returns(T.attached_class)
|
|
751
765
|
end
|
|
752
766
|
def self.new(
|
|
767
|
+
# The date of birth of the business representative in ISO 8601 format
|
|
768
|
+
# (YYYY-MM-DD).
|
|
769
|
+
date_of_birth:,
|
|
753
770
|
# The first name of the business representative.
|
|
754
771
|
first_name:,
|
|
755
772
|
# The last name of the business representative.
|
|
@@ -762,6 +779,7 @@ module WhopSDK
|
|
|
762
779
|
sig do
|
|
763
780
|
override.returns(
|
|
764
781
|
{
|
|
782
|
+
date_of_birth: T.nilable(String),
|
|
765
783
|
first_name: T.nilable(String),
|
|
766
784
|
last_name: T.nilable(String),
|
|
767
785
|
middle_name: T.nilable(String)
|
|
@@ -14,6 +14,8 @@ module WhopSDK
|
|
|
14
14
|
email: String,
|
|
15
15
|
parent_company_id: String,
|
|
16
16
|
title: String,
|
|
17
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
18
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
17
19
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
18
20
|
send_customer_emails: T.nilable(T::Boolean),
|
|
19
21
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -26,6 +28,10 @@ module WhopSDK
|
|
|
26
28
|
parent_company_id:,
|
|
27
29
|
# The name of the company being created.
|
|
28
30
|
title:,
|
|
31
|
+
# The different business types a company can be.
|
|
32
|
+
business_type: nil,
|
|
33
|
+
# The different industry types a company can be in.
|
|
34
|
+
industry_type: nil,
|
|
29
35
|
# Additional metadata for the account
|
|
30
36
|
metadata: nil,
|
|
31
37
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -72,6 +78,8 @@ module WhopSDK
|
|
|
72
78
|
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
73
79
|
)
|
|
74
80
|
),
|
|
81
|
+
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
82
|
+
industry_type: T.nilable(WhopSDK::IndustryTypes::OrSymbol),
|
|
75
83
|
logo:
|
|
76
84
|
T.nilable(
|
|
77
85
|
T.any(
|
|
@@ -89,6 +97,10 @@ module WhopSDK
|
|
|
89
97
|
id,
|
|
90
98
|
# The banner image for the company in png or jpeg format
|
|
91
99
|
banner_image: nil,
|
|
100
|
+
# The different business types a company can be.
|
|
101
|
+
business_type: nil,
|
|
102
|
+
# The different industry types a company can be in.
|
|
103
|
+
industry_type: nil,
|
|
92
104
|
# The logo for the company in png, jpeg, or gif format
|
|
93
105
|
logo: nil,
|
|
94
106
|
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
@@ -66,6 +66,7 @@ module WhopSDK
|
|
|
66
66
|
{
|
|
67
67
|
company_id: String,
|
|
68
68
|
currency: WhopSDK::Models::currency,
|
|
69
|
+
application_fee_amount: Float?,
|
|
69
70
|
billing_period: Integer?,
|
|
70
71
|
custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
|
|
71
72
|
description: String?,
|
|
@@ -92,6 +93,8 @@ module WhopSDK
|
|
|
92
93
|
|
|
93
94
|
attr_accessor currency: WhopSDK::Models::currency
|
|
94
95
|
|
|
96
|
+
attr_accessor application_fee_amount: Float?
|
|
97
|
+
|
|
95
98
|
attr_accessor billing_period: Integer?
|
|
96
99
|
|
|
97
100
|
attr_accessor custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?
|
|
@@ -133,6 +136,7 @@ module WhopSDK
|
|
|
133
136
|
def initialize: (
|
|
134
137
|
company_id: String,
|
|
135
138
|
currency: WhopSDK::Models::currency,
|
|
139
|
+
?application_fee_amount: Float?,
|
|
136
140
|
?billing_period: Integer?,
|
|
137
141
|
?custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
|
|
138
142
|
?description: String?,
|
|
@@ -157,6 +161,7 @@ module WhopSDK
|
|
|
157
161
|
def to_hash: -> {
|
|
158
162
|
company_id: String,
|
|
159
163
|
currency: WhopSDK::Models::currency,
|
|
164
|
+
application_fee_amount: Float?,
|
|
160
165
|
billing_period: Integer?,
|
|
161
166
|
custom_fields: ::Array[WhopSDK::CheckoutConfigurationCreateParams::Plan::CustomField]?,
|
|
162
167
|
description: String?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
email: String,
|
|
6
6
|
parent_company_id: String,
|
|
7
7
|
title: String,
|
|
8
|
+
business_type: WhopSDK::Models::business_types?,
|
|
9
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
8
10
|
metadata: ::Hash[Symbol, top]?,
|
|
9
11
|
send_customer_emails: bool?
|
|
10
12
|
}
|
|
@@ -20,6 +22,10 @@ module WhopSDK
|
|
|
20
22
|
|
|
21
23
|
attr_accessor title: String
|
|
22
24
|
|
|
25
|
+
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
26
|
+
|
|
27
|
+
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
28
|
+
|
|
23
29
|
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
24
30
|
|
|
25
31
|
attr_accessor send_customer_emails: bool?
|
|
@@ -28,6 +34,8 @@ module WhopSDK
|
|
|
28
34
|
email: String,
|
|
29
35
|
parent_company_id: String,
|
|
30
36
|
title: String,
|
|
37
|
+
?business_type: WhopSDK::Models::business_types?,
|
|
38
|
+
?industry_type: WhopSDK::Models::industry_types?,
|
|
31
39
|
?metadata: ::Hash[Symbol, top]?,
|
|
32
40
|
?send_customer_emails: bool?,
|
|
33
41
|
?request_options: WhopSDK::request_opts
|
|
@@ -37,6 +45,8 @@ module WhopSDK
|
|
|
37
45
|
email: String,
|
|
38
46
|
parent_company_id: String,
|
|
39
47
|
title: String,
|
|
48
|
+
business_type: WhopSDK::Models::business_types?,
|
|
49
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
40
50
|
metadata: ::Hash[Symbol, top]?,
|
|
41
51
|
send_customer_emails: bool?,
|
|
42
52
|
request_options: WhopSDK::RequestOptions
|
|
@@ -3,6 +3,8 @@ module WhopSDK
|
|
|
3
3
|
type company_update_params =
|
|
4
4
|
{
|
|
5
5
|
banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
|
|
6
|
+
business_type: WhopSDK::Models::business_types?,
|
|
7
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
6
8
|
logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
7
9
|
send_customer_emails: bool?,
|
|
8
10
|
title: String?
|
|
@@ -15,6 +17,10 @@ module WhopSDK
|
|
|
15
17
|
|
|
16
18
|
attr_accessor banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?
|
|
17
19
|
|
|
20
|
+
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
21
|
+
|
|
22
|
+
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
23
|
+
|
|
18
24
|
attr_accessor logo: WhopSDK::Models::CompanyUpdateParams::logo?
|
|
19
25
|
|
|
20
26
|
attr_accessor send_customer_emails: bool?
|
|
@@ -23,6 +29,8 @@ module WhopSDK
|
|
|
23
29
|
|
|
24
30
|
def initialize: (
|
|
25
31
|
?banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
|
|
32
|
+
?business_type: WhopSDK::Models::business_types?,
|
|
33
|
+
?industry_type: WhopSDK::Models::industry_types?,
|
|
26
34
|
?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
27
35
|
?send_customer_emails: bool?,
|
|
28
36
|
?title: String?,
|
|
@@ -31,6 +39,8 @@ module WhopSDK
|
|
|
31
39
|
|
|
32
40
|
def to_hash: -> {
|
|
33
41
|
banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
|
|
42
|
+
business_type: WhopSDK::Models::business_types?,
|
|
43
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
34
44
|
logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
35
45
|
send_customer_emails: bool?,
|
|
36
46
|
title: String?,
|
|
@@ -211,6 +211,7 @@ module WhopSDK
|
|
|
211
211
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
212
212
|
business_name: String?,
|
|
213
213
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
214
|
+
email: String?,
|
|
214
215
|
phone: String?
|
|
215
216
|
}
|
|
216
217
|
|
|
@@ -223,6 +224,8 @@ module WhopSDK
|
|
|
223
224
|
|
|
224
225
|
attr_accessor business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?
|
|
225
226
|
|
|
227
|
+
attr_accessor email: String?
|
|
228
|
+
|
|
226
229
|
attr_accessor phone: String?
|
|
227
230
|
|
|
228
231
|
def initialize: (
|
|
@@ -230,6 +233,7 @@ module WhopSDK
|
|
|
230
233
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
231
234
|
business_name: String?,
|
|
232
235
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
236
|
+
email: String?,
|
|
233
237
|
phone: String?
|
|
234
238
|
) -> void
|
|
235
239
|
|
|
@@ -238,6 +242,7 @@ module WhopSDK
|
|
|
238
242
|
address: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::Address?,
|
|
239
243
|
business_name: String?,
|
|
240
244
|
business_representative: WhopSDK::Models::LedgerAccountRetrieveResponse::PayoutAccountDetails::BusinessRepresentative?,
|
|
245
|
+
email: String?,
|
|
241
246
|
phone: String?
|
|
242
247
|
}
|
|
243
248
|
|
|
@@ -284,9 +289,16 @@ module WhopSDK
|
|
|
284
289
|
end
|
|
285
290
|
|
|
286
291
|
type business_representative =
|
|
287
|
-
{
|
|
292
|
+
{
|
|
293
|
+
date_of_birth: String?,
|
|
294
|
+
first_name: String?,
|
|
295
|
+
last_name: String?,
|
|
296
|
+
middle_name: String?
|
|
297
|
+
}
|
|
288
298
|
|
|
289
299
|
class BusinessRepresentative < WhopSDK::Internal::Type::BaseModel
|
|
300
|
+
attr_accessor date_of_birth: String?
|
|
301
|
+
|
|
290
302
|
attr_accessor first_name: String?
|
|
291
303
|
|
|
292
304
|
attr_accessor last_name: String?
|
|
@@ -294,12 +306,14 @@ module WhopSDK
|
|
|
294
306
|
attr_accessor middle_name: String?
|
|
295
307
|
|
|
296
308
|
def initialize: (
|
|
309
|
+
date_of_birth: String?,
|
|
297
310
|
first_name: String?,
|
|
298
311
|
last_name: String?,
|
|
299
312
|
middle_name: String?
|
|
300
313
|
) -> void
|
|
301
314
|
|
|
302
315
|
def to_hash: -> {
|
|
316
|
+
date_of_birth: String?,
|
|
303
317
|
first_name: String?,
|
|
304
318
|
last_name: String?,
|
|
305
319
|
middle_name: String?
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
email: String,
|
|
6
6
|
parent_company_id: String,
|
|
7
7
|
title: String,
|
|
8
|
+
?business_type: WhopSDK::Models::business_types?,
|
|
9
|
+
?industry_type: WhopSDK::Models::industry_types?,
|
|
8
10
|
?metadata: ::Hash[Symbol, top]?,
|
|
9
11
|
?send_customer_emails: bool?,
|
|
10
12
|
?request_options: WhopSDK::request_opts
|
|
@@ -18,6 +20,8 @@ module WhopSDK
|
|
|
18
20
|
def update: (
|
|
19
21
|
String id,
|
|
20
22
|
?banner_image: WhopSDK::Models::CompanyUpdateParams::banner_image?,
|
|
23
|
+
?business_type: WhopSDK::Models::business_types?,
|
|
24
|
+
?industry_type: WhopSDK::Models::industry_types?,
|
|
21
25
|
?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
22
26
|
?send_customer_emails: bool?,
|
|
23
27
|
?title: String?,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|