whop_sdk 0.0.13 → 0.0.14
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/company.rb +9 -1
- data/lib/whop_sdk/models/company_create_params.rb +15 -1
- data/lib/whop_sdk/models/company_list_response.rb +9 -1
- data/lib/whop_sdk/models/company_update_params.rb +15 -1
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +11 -1
- data/lib/whop_sdk/models/withdrawal_list_response.rb +11 -1
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +11 -1
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +11 -1
- data/lib/whop_sdk/resources/companies.rb +12 -2
- data/lib/whop_sdk/version.rb +1 -1
- data/rbi/whop_sdk/models/company.rbi +8 -0
- data/rbi/whop_sdk/models/company_create_params.rbi +14 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +14 -0
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +12 -0
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +12 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +12 -0
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +12 -0
- data/rbi/whop_sdk/resources/companies.rbi +12 -0
- data/sig/whop_sdk/models/company.rbs +5 -0
- data/sig/whop_sdk/models/company_create_params.rbs +6 -1
- data/sig/whop_sdk/models/company_list_response.rbs +5 -0
- data/sig/whop_sdk/models/company_update_params.rbs +9 -1
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -0
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +5 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -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: dde88bf09d2270f31069e1d16f87df27fbf56f613122fd773342c597fed553a3
|
|
4
|
+
data.tar.gz: f4cb89608641823c87dbd156da5d91f1aa1ecd2ef091a9a647d1cfad98c0cc39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e8d8d18893c43a9ec7ffffaa7f4efe23357c0eba64d6ebb4a6db00ed4bfb18333c595ac0b9bdc0e5474d4d31d8d8afad2808567211eea1780308bafd9e630d4
|
|
7
|
+
data.tar.gz: 37c37a923a6580d024985ae04f00aae915b433c9cf8a9c36b2d1fc2648d65fa433a1db30fff1d3270c9fdc7293548a1504f1d94b997b0575f39f4bd3a42a92ef
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.14 (2025-12-07)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.13...v0.0.14](https://github.com/whopio/whopsdk-ruby/compare/v0.0.13...v0.0.14)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([8515327](https://github.com/whopio/whopsdk-ruby/commit/8515327ce19264fd2b3d0774ef501941c29e8673))
|
|
10
|
+
* **api:** api update ([1dae032](https://github.com/whopio/whopsdk-ruby/commit/1dae03238e8624959bffcd188140d2976601809d))
|
|
11
|
+
* **api:** api update ([925f7eb](https://github.com/whopio/whopsdk-ruby/commit/925f7eb7a9c2f9eb5103ccd84274de6f636ea427))
|
|
12
|
+
|
|
3
13
|
## 0.0.13 (2025-12-05)
|
|
4
14
|
|
|
5
15
|
Full Changelog: [v0.0.12...v0.0.13](https://github.com/whopio/whopsdk-ruby/compare/v0.0.12...v0.0.13)
|
data/README.md
CHANGED
|
@@ -70,6 +70,12 @@ module WhopSDK
|
|
|
70
70
|
# @return [String]
|
|
71
71
|
required :route, String
|
|
72
72
|
|
|
73
|
+
# @!attribute send_customer_emails
|
|
74
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
75
|
+
#
|
|
76
|
+
# @return [Boolean]
|
|
77
|
+
required :send_customer_emails, WhopSDK::Internal::Type::Boolean
|
|
78
|
+
|
|
73
79
|
# @!attribute social_links
|
|
74
80
|
# The social media accounts of the company
|
|
75
81
|
#
|
|
@@ -94,7 +100,7 @@ module WhopSDK
|
|
|
94
100
|
# @return [Boolean]
|
|
95
101
|
required :verified, WhopSDK::Internal::Type::Boolean
|
|
96
102
|
|
|
97
|
-
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, social_links:, title:, updated_at:, verified:)
|
|
103
|
+
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, send_customer_emails:, social_links:, title:, updated_at:, verified:)
|
|
98
104
|
# Some parameter documentations has been truncated, see {WhopSDK::Models::Company}
|
|
99
105
|
# for more details.
|
|
100
106
|
#
|
|
@@ -122,6 +128,8 @@ module WhopSDK
|
|
|
122
128
|
#
|
|
123
129
|
# @param route [String] The slug/route of the company on the Whop site.
|
|
124
130
|
#
|
|
131
|
+
# @param send_customer_emails [Boolean] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
132
|
+
#
|
|
125
133
|
# @param social_links [Array<WhopSDK::Models::Company::SocialLink>] The social media accounts of the company
|
|
126
134
|
#
|
|
127
135
|
# @param title [String] The title of the company.
|
|
@@ -31,7 +31,19 @@ module WhopSDK
|
|
|
31
31
|
# @return [Hash{Symbol=>Object}, nil]
|
|
32
32
|
optional :metadata, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true
|
|
33
33
|
|
|
34
|
-
# @!
|
|
34
|
+
# @!attribute send_customer_emails
|
|
35
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
36
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
37
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
38
|
+
# is responsible for handling these communications. This is defaulted to true.
|
|
39
|
+
#
|
|
40
|
+
# @return [Boolean, nil]
|
|
41
|
+
optional :send_customer_emails, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(email:, parent_company_id:, title:, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
44
|
+
# Some parameter documentations has been truncated, see
|
|
45
|
+
# {WhopSDK::Models::CompanyCreateParams} for more details.
|
|
46
|
+
#
|
|
35
47
|
# @param email [String] The email of the user who the company will belong to.
|
|
36
48
|
#
|
|
37
49
|
# @param parent_company_id [String] The company ID of the platform creating this company.
|
|
@@ -40,6 +52,8 @@ module WhopSDK
|
|
|
40
52
|
#
|
|
41
53
|
# @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
|
|
42
54
|
#
|
|
55
|
+
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
56
|
+
#
|
|
43
57
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
44
58
|
end
|
|
45
59
|
end
|
|
@@ -71,6 +71,12 @@ module WhopSDK
|
|
|
71
71
|
# @return [String]
|
|
72
72
|
required :route, String
|
|
73
73
|
|
|
74
|
+
# @!attribute send_customer_emails
|
|
75
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
76
|
+
#
|
|
77
|
+
# @return [Boolean]
|
|
78
|
+
required :send_customer_emails, WhopSDK::Internal::Type::Boolean
|
|
79
|
+
|
|
74
80
|
# @!attribute title
|
|
75
81
|
# The title of the company.
|
|
76
82
|
#
|
|
@@ -89,7 +95,7 @@ module WhopSDK
|
|
|
89
95
|
# @return [Boolean]
|
|
90
96
|
required :verified, WhopSDK::Internal::Type::Boolean
|
|
91
97
|
|
|
92
|
-
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, title:, updated_at:, verified:)
|
|
98
|
+
# @!method initialize(id:, business_type:, created_at:, description:, industry_type:, logo:, member_count:, metadata:, owner_user:, published_reviews_count:, route:, send_customer_emails:, title:, updated_at:, verified:)
|
|
93
99
|
# Some parameter documentations has been truncated, see
|
|
94
100
|
# {WhopSDK::Models::CompanyListResponse} for more details.
|
|
95
101
|
#
|
|
@@ -117,6 +123,8 @@ module WhopSDK
|
|
|
117
123
|
#
|
|
118
124
|
# @param route [String] The slug/route of the company on the Whop site.
|
|
119
125
|
#
|
|
126
|
+
# @param send_customer_emails [Boolean] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
127
|
+
#
|
|
120
128
|
# @param title [String] The title of the company.
|
|
121
129
|
#
|
|
122
130
|
# @param updated_at [Time] The time the company was last updated.
|
|
@@ -13,15 +13,29 @@ module WhopSDK
|
|
|
13
13
|
# @return [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil]
|
|
14
14
|
optional :logo, union: -> { WhopSDK::CompanyUpdateParams::Logo }, nil?: true
|
|
15
15
|
|
|
16
|
+
# @!attribute send_customer_emails
|
|
17
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
18
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
19
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
20
|
+
# is responsible for handling these communications.
|
|
21
|
+
#
|
|
22
|
+
# @return [Boolean, nil]
|
|
23
|
+
optional :send_customer_emails, WhopSDK::Internal::Type::Boolean, nil?: true
|
|
24
|
+
|
|
16
25
|
# @!attribute title
|
|
17
26
|
# The title of the company
|
|
18
27
|
#
|
|
19
28
|
# @return [String, nil]
|
|
20
29
|
optional :title, String, nil?: true
|
|
21
30
|
|
|
22
|
-
# @!method initialize(logo: nil, title: nil, request_options: {})
|
|
31
|
+
# @!method initialize(logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {WhopSDK::Models::CompanyUpdateParams} for more details.
|
|
34
|
+
#
|
|
23
35
|
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
24
36
|
#
|
|
37
|
+
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
38
|
+
#
|
|
25
39
|
# @param title [String, nil] The title of the company
|
|
26
40
|
#
|
|
27
41
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -107,6 +107,14 @@ module WhopSDK
|
|
|
107
107
|
# @return [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::LedgerAccount]
|
|
108
108
|
required :ledger_account, -> { WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount }
|
|
109
109
|
|
|
110
|
+
# @!attribute markup_fee
|
|
111
|
+
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
112
|
+
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
113
|
+
# Rails.
|
|
114
|
+
#
|
|
115
|
+
# @return [Float]
|
|
116
|
+
required :markup_fee, Float
|
|
117
|
+
|
|
110
118
|
# @!attribute payout_token
|
|
111
119
|
# The payout token used for the withdrawal, if applicable.
|
|
112
120
|
#
|
|
@@ -138,7 +146,7 @@ module WhopSDK
|
|
|
138
146
|
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
139
147
|
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
140
148
|
|
|
141
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
149
|
+
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
142
150
|
# Some parameter documentations has been truncated, see
|
|
143
151
|
# {WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data} for more details.
|
|
144
152
|
#
|
|
@@ -164,6 +172,8 @@ module WhopSDK
|
|
|
164
172
|
#
|
|
165
173
|
# @param ledger_account [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::LedgerAccount] The ledger account associated with the withdrawal.
|
|
166
174
|
#
|
|
175
|
+
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
176
|
+
#
|
|
167
177
|
# @param payout_token [WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
168
178
|
#
|
|
169
179
|
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
@@ -41,6 +41,14 @@ module WhopSDK
|
|
|
41
41
|
# @return [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil]
|
|
42
42
|
required :fee_type, enum: -> { WhopSDK::WithdrawalFeeTypes }, nil?: true
|
|
43
43
|
|
|
44
|
+
# @!attribute markup_fee
|
|
45
|
+
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
46
|
+
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
47
|
+
# Rails.
|
|
48
|
+
#
|
|
49
|
+
# @return [Float]
|
|
50
|
+
required :markup_fee, Float
|
|
51
|
+
|
|
44
52
|
# @!attribute speed
|
|
45
53
|
# The speed of the withdrawal.
|
|
46
54
|
#
|
|
@@ -59,7 +67,7 @@ module WhopSDK
|
|
|
59
67
|
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
60
68
|
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
61
69
|
|
|
62
|
-
# @!method initialize(id:, amount:, created_at:, currency:, fee_amount:, fee_type:, speed:, status:, withdrawal_type:)
|
|
70
|
+
# @!method initialize(id:, amount:, created_at:, currency:, fee_amount:, fee_type:, markup_fee:, speed:, status:, withdrawal_type:)
|
|
63
71
|
# Some parameter documentations has been truncated, see
|
|
64
72
|
# {WhopSDK::Models::WithdrawalListResponse} for more details.
|
|
65
73
|
#
|
|
@@ -77,6 +85,8 @@ module WhopSDK
|
|
|
77
85
|
#
|
|
78
86
|
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
79
87
|
#
|
|
88
|
+
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
89
|
+
#
|
|
80
90
|
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
81
91
|
#
|
|
82
92
|
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
@@ -65,6 +65,14 @@ module WhopSDK
|
|
|
65
65
|
# @return [WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount]
|
|
66
66
|
required :ledger_account, -> { WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount }
|
|
67
67
|
|
|
68
|
+
# @!attribute markup_fee
|
|
69
|
+
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
70
|
+
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
71
|
+
# Rails.
|
|
72
|
+
#
|
|
73
|
+
# @return [Float]
|
|
74
|
+
required :markup_fee, Float
|
|
75
|
+
|
|
68
76
|
# @!attribute payout_token
|
|
69
77
|
# The payout token used for the withdrawal, if applicable.
|
|
70
78
|
#
|
|
@@ -96,7 +104,7 @@ module WhopSDK
|
|
|
96
104
|
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
97
105
|
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
98
106
|
|
|
99
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
107
|
+
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
100
108
|
# Some parameter documentations has been truncated, see
|
|
101
109
|
# {WhopSDK::Models::WithdrawalRetrieveResponse} for more details.
|
|
102
110
|
#
|
|
@@ -122,6 +130,8 @@ module WhopSDK
|
|
|
122
130
|
#
|
|
123
131
|
# @param ledger_account [WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount] The ledger account associated with the withdrawal.
|
|
124
132
|
#
|
|
133
|
+
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
134
|
+
#
|
|
125
135
|
# @param payout_token [WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
126
136
|
#
|
|
127
137
|
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
@@ -107,6 +107,14 @@ module WhopSDK
|
|
|
107
107
|
# @return [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount]
|
|
108
108
|
required :ledger_account, -> { WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount }
|
|
109
109
|
|
|
110
|
+
# @!attribute markup_fee
|
|
111
|
+
# The markup fee that was charged for the withdrawal. This is in the same currency
|
|
112
|
+
# as the withdrawal amount. This only applies to platform accounts using Whop
|
|
113
|
+
# Rails.
|
|
114
|
+
#
|
|
115
|
+
# @return [Float]
|
|
116
|
+
required :markup_fee, Float
|
|
117
|
+
|
|
110
118
|
# @!attribute payout_token
|
|
111
119
|
# The payout token used for the withdrawal, if applicable.
|
|
112
120
|
#
|
|
@@ -138,7 +146,7 @@ module WhopSDK
|
|
|
138
146
|
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
139
147
|
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
140
148
|
|
|
141
|
-
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
149
|
+
# @!method initialize(id:, amount:, created_at:, currency:, error_code:, error_message:, estimated_availability:, fee_amount:, fee_type:, ledger_account:, markup_fee:, payout_token:, speed:, status:, trace_code:, withdrawal_type:)
|
|
142
150
|
# Some parameter documentations has been truncated, see
|
|
143
151
|
# {WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data} for more details.
|
|
144
152
|
#
|
|
@@ -164,6 +172,8 @@ module WhopSDK
|
|
|
164
172
|
#
|
|
165
173
|
# @param ledger_account [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount] The ledger account associated with the withdrawal.
|
|
166
174
|
#
|
|
175
|
+
# @param markup_fee [Float] The markup fee that was charged for the withdrawal. This is in the same currency
|
|
176
|
+
#
|
|
167
177
|
# @param payout_token [WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
168
178
|
#
|
|
169
179
|
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Companies
|
|
6
|
+
# Some parameter documentations has been truncated, see
|
|
7
|
+
# {WhopSDK::Models::CompanyCreateParams} for more details.
|
|
8
|
+
#
|
|
6
9
|
# Create a new connected account for your platform
|
|
7
10
|
#
|
|
8
11
|
# Required permissions:
|
|
@@ -10,7 +13,7 @@ module WhopSDK
|
|
|
10
13
|
# - `company:create_child`
|
|
11
14
|
# - `company:basic:read`
|
|
12
15
|
#
|
|
13
|
-
# @overload create(email:, parent_company_id:, title:, metadata: nil, request_options: {})
|
|
16
|
+
# @overload create(email:, parent_company_id:, title:, metadata: nil, send_customer_emails: nil, request_options: {})
|
|
14
17
|
#
|
|
15
18
|
# @param email [String] The email of the user who the company will belong to.
|
|
16
19
|
#
|
|
@@ -20,6 +23,8 @@ module WhopSDK
|
|
|
20
23
|
#
|
|
21
24
|
# @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
|
|
22
25
|
#
|
|
26
|
+
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
27
|
+
#
|
|
23
28
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
24
29
|
#
|
|
25
30
|
# @return [WhopSDK::Models::Company]
|
|
@@ -60,6 +65,9 @@ module WhopSDK
|
|
|
60
65
|
)
|
|
61
66
|
end
|
|
62
67
|
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {WhopSDK::Models::CompanyUpdateParams} for more details.
|
|
70
|
+
#
|
|
63
71
|
# Update an existing company. Either a regular company, platform company, or one
|
|
64
72
|
# of a platform's connected accounts
|
|
65
73
|
#
|
|
@@ -68,12 +76,14 @@ module WhopSDK
|
|
|
68
76
|
# - `company:update`
|
|
69
77
|
# - `company:basic:read`
|
|
70
78
|
#
|
|
71
|
-
# @overload update(id, logo: nil, title: nil, request_options: {})
|
|
79
|
+
# @overload update(id, logo: nil, send_customer_emails: nil, title: nil, request_options: {})
|
|
72
80
|
#
|
|
73
81
|
# @param id [String] The ID of the company to update
|
|
74
82
|
#
|
|
75
83
|
# @param logo [WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID, WhopSDK::Models::CompanyUpdateParams::Logo::AttachmentInputWithID, nil] The logo for the company in png, jpeg, or gif format
|
|
76
84
|
#
|
|
85
|
+
# @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
|
|
86
|
+
#
|
|
77
87
|
# @param title [String, nil] The title of the company
|
|
78
88
|
#
|
|
79
89
|
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
|
data/lib/whop_sdk/version.rb
CHANGED
|
@@ -57,6 +57,10 @@ module WhopSDK
|
|
|
57
57
|
sig { returns(String) }
|
|
58
58
|
attr_accessor :route
|
|
59
59
|
|
|
60
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
61
|
+
sig { returns(T::Boolean) }
|
|
62
|
+
attr_accessor :send_customer_emails
|
|
63
|
+
|
|
60
64
|
# The social media accounts of the company
|
|
61
65
|
sig { returns(T::Array[WhopSDK::Company::SocialLink]) }
|
|
62
66
|
attr_accessor :social_links
|
|
@@ -87,6 +91,7 @@ module WhopSDK
|
|
|
87
91
|
owner_user: WhopSDK::Company::OwnerUser::OrHash,
|
|
88
92
|
published_reviews_count: Integer,
|
|
89
93
|
route: String,
|
|
94
|
+
send_customer_emails: T::Boolean,
|
|
90
95
|
social_links: T::Array[WhopSDK::Company::SocialLink::OrHash],
|
|
91
96
|
title: String,
|
|
92
97
|
updated_at: Time,
|
|
@@ -117,6 +122,8 @@ module WhopSDK
|
|
|
117
122
|
published_reviews_count:,
|
|
118
123
|
# The slug/route of the company on the Whop site.
|
|
119
124
|
route:,
|
|
125
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
126
|
+
send_customer_emails:,
|
|
120
127
|
# The social media accounts of the company
|
|
121
128
|
social_links:,
|
|
122
129
|
# The title of the company.
|
|
@@ -142,6 +149,7 @@ module WhopSDK
|
|
|
142
149
|
owner_user: WhopSDK::Company::OwnerUser,
|
|
143
150
|
published_reviews_count: Integer,
|
|
144
151
|
route: String,
|
|
152
|
+
send_customer_emails: T::Boolean,
|
|
145
153
|
social_links: T::Array[WhopSDK::Company::SocialLink],
|
|
146
154
|
title: String,
|
|
147
155
|
updated_at: Time,
|
|
@@ -27,12 +27,20 @@ module WhopSDK
|
|
|
27
27
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
28
28
|
attr_accessor :metadata
|
|
29
29
|
|
|
30
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
31
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
32
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
33
|
+
# is responsible for handling these communications. This is defaulted to true.
|
|
34
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
35
|
+
attr_accessor :send_customer_emails
|
|
36
|
+
|
|
30
37
|
sig do
|
|
31
38
|
params(
|
|
32
39
|
email: String,
|
|
33
40
|
parent_company_id: String,
|
|
34
41
|
title: String,
|
|
35
42
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
43
|
+
send_customer_emails: T.nilable(T::Boolean),
|
|
36
44
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
37
45
|
).returns(T.attached_class)
|
|
38
46
|
end
|
|
@@ -45,6 +53,11 @@ module WhopSDK
|
|
|
45
53
|
title:,
|
|
46
54
|
# Additional metadata for the account
|
|
47
55
|
metadata: nil,
|
|
56
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
57
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
58
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
59
|
+
# is responsible for handling these communications. This is defaulted to true.
|
|
60
|
+
send_customer_emails: nil,
|
|
48
61
|
request_options: {}
|
|
49
62
|
)
|
|
50
63
|
end
|
|
@@ -56,6 +69,7 @@ module WhopSDK
|
|
|
56
69
|
parent_company_id: String,
|
|
57
70
|
title: String,
|
|
58
71
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
72
|
+
send_customer_emails: T.nilable(T::Boolean),
|
|
59
73
|
request_options: WhopSDK::RequestOptions
|
|
60
74
|
}
|
|
61
75
|
)
|
|
@@ -70,6 +70,10 @@ module WhopSDK
|
|
|
70
70
|
sig { returns(String) }
|
|
71
71
|
attr_accessor :route
|
|
72
72
|
|
|
73
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
74
|
+
sig { returns(T::Boolean) }
|
|
75
|
+
attr_accessor :send_customer_emails
|
|
76
|
+
|
|
73
77
|
# The title of the company.
|
|
74
78
|
sig { returns(String) }
|
|
75
79
|
attr_accessor :title
|
|
@@ -96,6 +100,7 @@ module WhopSDK
|
|
|
96
100
|
owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser::OrHash,
|
|
97
101
|
published_reviews_count: Integer,
|
|
98
102
|
route: String,
|
|
103
|
+
send_customer_emails: T::Boolean,
|
|
99
104
|
title: String,
|
|
100
105
|
updated_at: Time,
|
|
101
106
|
verified: T::Boolean
|
|
@@ -125,6 +130,8 @@ module WhopSDK
|
|
|
125
130
|
published_reviews_count:,
|
|
126
131
|
# The slug/route of the company on the Whop site.
|
|
127
132
|
route:,
|
|
133
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
134
|
+
send_customer_emails:,
|
|
128
135
|
# The title of the company.
|
|
129
136
|
title:,
|
|
130
137
|
# The time the company was last updated.
|
|
@@ -148,6 +155,7 @@ module WhopSDK
|
|
|
148
155
|
owner_user: WhopSDK::Models::CompanyListResponse::OwnerUser,
|
|
149
156
|
published_reviews_count: Integer,
|
|
150
157
|
route: String,
|
|
158
|
+
send_customer_emails: T::Boolean,
|
|
151
159
|
title: String,
|
|
152
160
|
updated_at: Time,
|
|
153
161
|
verified: T::Boolean
|
|
@@ -24,6 +24,13 @@ module WhopSDK
|
|
|
24
24
|
end
|
|
25
25
|
attr_accessor :logo
|
|
26
26
|
|
|
27
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
28
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
29
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
30
|
+
# is responsible for handling these communications.
|
|
31
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
32
|
+
attr_accessor :send_customer_emails
|
|
33
|
+
|
|
27
34
|
# The title of the company
|
|
28
35
|
sig { returns(T.nilable(String)) }
|
|
29
36
|
attr_accessor :title
|
|
@@ -37,6 +44,7 @@ module WhopSDK
|
|
|
37
44
|
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID::OrHash
|
|
38
45
|
)
|
|
39
46
|
),
|
|
47
|
+
send_customer_emails: T.nilable(T::Boolean),
|
|
40
48
|
title: T.nilable(String),
|
|
41
49
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
42
50
|
).returns(T.attached_class)
|
|
@@ -44,6 +52,11 @@ module WhopSDK
|
|
|
44
52
|
def self.new(
|
|
45
53
|
# The logo for the company in png, jpeg, or gif format
|
|
46
54
|
logo: nil,
|
|
55
|
+
# Whether Whop sends transactional emails to customers on behalf of this company.
|
|
56
|
+
# Includes: order confirmations, payment failures, refund notifications, upcoming
|
|
57
|
+
# renewals, and membership cancelations/expirations. When disabled, the platform
|
|
58
|
+
# is responsible for handling these communications.
|
|
59
|
+
send_customer_emails: nil,
|
|
47
60
|
# The title of the company
|
|
48
61
|
title: nil,
|
|
49
62
|
request_options: {}
|
|
@@ -60,6 +73,7 @@ module WhopSDK
|
|
|
60
73
|
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
61
74
|
)
|
|
62
75
|
),
|
|
76
|
+
send_customer_emails: T.nilable(T::Boolean),
|
|
63
77
|
title: T.nilable(String),
|
|
64
78
|
request_options: WhopSDK::RequestOptions
|
|
65
79
|
}
|
|
@@ -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
|
|
@@ -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: {}
|
|
@@ -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
|
-
{
|
|
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
|
}
|
|
@@ -48,6 +48,7 @@ module WhopSDK
|
|
|
48
48
|
fee_amount: Float,
|
|
49
49
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
50
50
|
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
51
|
+
markup_fee: Float,
|
|
51
52
|
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
52
53
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
53
54
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -76,6 +77,8 @@ module WhopSDK
|
|
|
76
77
|
|
|
77
78
|
attr_accessor ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount
|
|
78
79
|
|
|
80
|
+
attr_accessor markup_fee: Float
|
|
81
|
+
|
|
79
82
|
attr_accessor payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?
|
|
80
83
|
|
|
81
84
|
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
@@ -97,6 +100,7 @@ module WhopSDK
|
|
|
97
100
|
fee_amount: Float,
|
|
98
101
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
99
102
|
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
103
|
+
markup_fee: Float,
|
|
100
104
|
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
101
105
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
102
106
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -115,6 +119,7 @@ module WhopSDK
|
|
|
115
119
|
fee_amount: Float,
|
|
116
120
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
117
121
|
ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
|
|
122
|
+
markup_fee: Float,
|
|
118
123
|
payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
|
|
119
124
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
120
125
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -8,6 +8,7 @@ module WhopSDK
|
|
|
8
8
|
currency: WhopSDK::Models::currency,
|
|
9
9
|
fee_amount: Float,
|
|
10
10
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
11
|
+
markup_fee: Float,
|
|
11
12
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
12
13
|
status: WhopSDK::Models::withdrawal_status,
|
|
13
14
|
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
@@ -26,6 +27,8 @@ module WhopSDK
|
|
|
26
27
|
|
|
27
28
|
attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
|
|
28
29
|
|
|
30
|
+
attr_accessor markup_fee: Float
|
|
31
|
+
|
|
29
32
|
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
30
33
|
|
|
31
34
|
attr_accessor status: WhopSDK::Models::withdrawal_status
|
|
@@ -39,6 +42,7 @@ module WhopSDK
|
|
|
39
42
|
currency: WhopSDK::Models::currency,
|
|
40
43
|
fee_amount: Float,
|
|
41
44
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
45
|
+
markup_fee: Float,
|
|
42
46
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
43
47
|
status: WhopSDK::Models::withdrawal_status,
|
|
44
48
|
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
@@ -51,6 +55,7 @@ module WhopSDK
|
|
|
51
55
|
currency: WhopSDK::Models::currency,
|
|
52
56
|
fee_amount: Float,
|
|
53
57
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
58
|
+
markup_fee: Float,
|
|
54
59
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
55
60
|
status: WhopSDK::Models::withdrawal_status,
|
|
56
61
|
withdrawal_type: WhopSDK::Models::withdrawal_types
|
|
@@ -12,6 +12,7 @@ module WhopSDK
|
|
|
12
12
|
fee_amount: Float,
|
|
13
13
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
14
14
|
ledger_account: WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
|
|
15
|
+
markup_fee: Float,
|
|
15
16
|
payout_token: WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken?,
|
|
16
17
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
17
18
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -40,6 +41,8 @@ module WhopSDK
|
|
|
40
41
|
|
|
41
42
|
attr_accessor ledger_account: WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount
|
|
42
43
|
|
|
44
|
+
attr_accessor markup_fee: Float
|
|
45
|
+
|
|
43
46
|
attr_accessor payout_token: WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken?
|
|
44
47
|
|
|
45
48
|
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
@@ -61,6 +64,7 @@ module WhopSDK
|
|
|
61
64
|
fee_amount: Float,
|
|
62
65
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
63
66
|
ledger_account: WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
|
|
67
|
+
markup_fee: Float,
|
|
64
68
|
payout_token: WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken?,
|
|
65
69
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
66
70
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -79,6 +83,7 @@ module WhopSDK
|
|
|
79
83
|
fee_amount: Float,
|
|
80
84
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
81
85
|
ledger_account: WhopSDK::Models::WithdrawalRetrieveResponse::LedgerAccount,
|
|
86
|
+
markup_fee: Float,
|
|
82
87
|
payout_token: WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken?,
|
|
83
88
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
84
89
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -48,6 +48,7 @@ module WhopSDK
|
|
|
48
48
|
fee_amount: Float,
|
|
49
49
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
50
50
|
ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
|
|
51
|
+
markup_fee: Float,
|
|
51
52
|
payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
|
|
52
53
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
53
54
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -76,6 +77,8 @@ module WhopSDK
|
|
|
76
77
|
|
|
77
78
|
attr_accessor ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount
|
|
78
79
|
|
|
80
|
+
attr_accessor markup_fee: Float
|
|
81
|
+
|
|
79
82
|
attr_accessor payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?
|
|
80
83
|
|
|
81
84
|
attr_accessor speed: WhopSDK::Models::withdrawal_speeds
|
|
@@ -97,6 +100,7 @@ module WhopSDK
|
|
|
97
100
|
fee_amount: Float,
|
|
98
101
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
99
102
|
ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
|
|
103
|
+
markup_fee: Float,
|
|
100
104
|
payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
|
|
101
105
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
102
106
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -115,6 +119,7 @@ module WhopSDK
|
|
|
115
119
|
fee_amount: Float,
|
|
116
120
|
fee_type: WhopSDK::Models::withdrawal_fee_types?,
|
|
117
121
|
ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
|
|
122
|
+
markup_fee: Float,
|
|
118
123
|
payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
|
|
119
124
|
speed: WhopSDK::Models::withdrawal_speeds,
|
|
120
125
|
status: WhopSDK::Models::withdrawal_status,
|
|
@@ -6,6 +6,7 @@ module WhopSDK
|
|
|
6
6
|
parent_company_id: String,
|
|
7
7
|
title: String,
|
|
8
8
|
?metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
?send_customer_emails: bool?,
|
|
9
10
|
?request_options: WhopSDK::request_opts
|
|
10
11
|
) -> WhopSDK::Company
|
|
11
12
|
|
|
@@ -17,6 +18,7 @@ module WhopSDK
|
|
|
17
18
|
def update: (
|
|
18
19
|
String id,
|
|
19
20
|
?logo: WhopSDK::Models::CompanyUpdateParams::logo?,
|
|
21
|
+
?send_customer_emails: bool?,
|
|
20
22
|
?title: String?,
|
|
21
23
|
?request_options: WhopSDK::request_opts
|
|
22
24
|
) -> WhopSDK::Company
|
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.14
|
|
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-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|