whop_sdk 0.0.14 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/models/checkout_configuration.rb +9 -1
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +9 -1
- data/lib/whop_sdk/models/experience.rb +9 -1
- data/lib/whop_sdk/models/experience_create_params.rb +9 -1
- data/lib/whop_sdk/models/experience_list_response.rb +9 -1
- data/lib/whop_sdk/models/experience_update_params.rb +9 -1
- data/lib/whop_sdk/models/fee_markup_create_params.rb +62 -0
- data/lib/whop_sdk/models/fee_markup_create_response.rb +67 -0
- data/lib/whop_sdk/models/fee_markup_delete_params.rb +14 -0
- data/lib/whop_sdk/models/fee_markup_delete_response.rb +8 -0
- data/lib/whop_sdk/models/fee_markup_list_params.rb +58 -0
- data/lib/whop_sdk/models/fee_markup_list_response.rb +67 -0
- data/lib/whop_sdk/models/fee_markup_type.rb +19 -0
- data/lib/whop_sdk/models.rb +8 -0
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/experiences.rb +6 -2
- data/lib/whop_sdk/resources/fee_markups.rb +112 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +8 -0
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +8 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/experience.rbi +8 -0
- data/rbi/whop_sdk/models/experience_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/experience_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +8 -0
- data/rbi/whop_sdk/models/fee_markup_create_params.rbi +83 -0
- data/rbi/whop_sdk/models/fee_markup_create_response.rbi +89 -0
- data/rbi/whop_sdk/models/fee_markup_delete_params.rbi +27 -0
- data/rbi/whop_sdk/models/fee_markup_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/fee_markup_list_params.rbi +77 -0
- data/rbi/whop_sdk/models/fee_markup_list_response.rbi +89 -0
- data/rbi/whop_sdk/models/fee_markup_type.rbi +37 -0
- data/rbi/whop_sdk/models.rbi +8 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/fee_markups.rbi +96 -0
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +5 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +5 -0
- data/sig/whop_sdk/models/experience.rbs +5 -0
- data/sig/whop_sdk/models/experience_create_params.rbs +11 -1
- data/sig/whop_sdk/models/experience_list_response.rbs +5 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +5 -0
- data/sig/whop_sdk/models/fee_markup_create_params.rbs +51 -0
- data/sig/whop_sdk/models/fee_markup_create_response.rbs +50 -0
- data/sig/whop_sdk/models/fee_markup_delete_params.rbs +15 -0
- data/sig/whop_sdk/models/fee_markup_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/fee_markup_list_params.rbs +46 -0
- data/sig/whop_sdk/models/fee_markup_list_response.rbs +50 -0
- data/sig/whop_sdk/models/fee_markup_type.rbs +22 -0
- data/sig/whop_sdk/models.rbs +8 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/fee_markups.rbs +28 -0
- metadata +26 -2
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
class FeeMarkupListResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
OrHash =
|
|
7
|
+
T.type_alias do
|
|
8
|
+
T.any(
|
|
9
|
+
WhopSDK::Models::FeeMarkupListResponse,
|
|
10
|
+
WhopSDK::Internal::AnyHash
|
|
11
|
+
)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The unique identifier of the fee markup.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :id
|
|
17
|
+
|
|
18
|
+
# When this fee markup was created.
|
|
19
|
+
sig { returns(Time) }
|
|
20
|
+
attr_accessor :created_at
|
|
21
|
+
|
|
22
|
+
# The type of fee this markup applies to.
|
|
23
|
+
sig { returns(WhopSDK::FeeMarkupType::TaggedSymbol) }
|
|
24
|
+
attr_accessor :fee_type
|
|
25
|
+
|
|
26
|
+
# The fixed fee in USD to charge (0-50).
|
|
27
|
+
sig { returns(T.nilable(Float)) }
|
|
28
|
+
attr_accessor :fixed_fee_usd
|
|
29
|
+
|
|
30
|
+
# Internal notes about this fee markup.
|
|
31
|
+
sig { returns(T.nilable(String)) }
|
|
32
|
+
attr_accessor :notes
|
|
33
|
+
|
|
34
|
+
# The percentage fee to charge (0-25).
|
|
35
|
+
sig { returns(T.nilable(Float)) }
|
|
36
|
+
attr_accessor :percentage_fee
|
|
37
|
+
|
|
38
|
+
# When this fee markup was last updated.
|
|
39
|
+
sig { returns(Time) }
|
|
40
|
+
attr_accessor :updated_at
|
|
41
|
+
|
|
42
|
+
# Represents a fee markup configuration for a company
|
|
43
|
+
sig do
|
|
44
|
+
params(
|
|
45
|
+
id: String,
|
|
46
|
+
created_at: Time,
|
|
47
|
+
fee_type: WhopSDK::FeeMarkupType::OrSymbol,
|
|
48
|
+
fixed_fee_usd: T.nilable(Float),
|
|
49
|
+
notes: T.nilable(String),
|
|
50
|
+
percentage_fee: T.nilable(Float),
|
|
51
|
+
updated_at: Time
|
|
52
|
+
).returns(T.attached_class)
|
|
53
|
+
end
|
|
54
|
+
def self.new(
|
|
55
|
+
# The unique identifier of the fee markup.
|
|
56
|
+
id:,
|
|
57
|
+
# When this fee markup was created.
|
|
58
|
+
created_at:,
|
|
59
|
+
# The type of fee this markup applies to.
|
|
60
|
+
fee_type:,
|
|
61
|
+
# The fixed fee in USD to charge (0-50).
|
|
62
|
+
fixed_fee_usd:,
|
|
63
|
+
# Internal notes about this fee markup.
|
|
64
|
+
notes:,
|
|
65
|
+
# The percentage fee to charge (0-25).
|
|
66
|
+
percentage_fee:,
|
|
67
|
+
# When this fee markup was last updated.
|
|
68
|
+
updated_at:
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
sig do
|
|
73
|
+
override.returns(
|
|
74
|
+
{
|
|
75
|
+
id: String,
|
|
76
|
+
created_at: Time,
|
|
77
|
+
fee_type: WhopSDK::FeeMarkupType::TaggedSymbol,
|
|
78
|
+
fixed_fee_usd: T.nilable(Float),
|
|
79
|
+
notes: T.nilable(String),
|
|
80
|
+
percentage_fee: T.nilable(Float),
|
|
81
|
+
updated_at: Time
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
end
|
|
85
|
+
def to_hash
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The types of fee markups that can be configured
|
|
6
|
+
module FeeMarkupType
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::FeeMarkupType) }
|
|
10
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
|
+
|
|
12
|
+
CRYPTO_WITHDRAWAL_MARKUP =
|
|
13
|
+
T.let(:crypto_withdrawal_markup, WhopSDK::FeeMarkupType::TaggedSymbol)
|
|
14
|
+
RTP_WITHDRAWAL_MARKUP =
|
|
15
|
+
T.let(:rtp_withdrawal_markup, WhopSDK::FeeMarkupType::TaggedSymbol)
|
|
16
|
+
NEXT_DAY_BANK_WITHDRAWAL_MARKUP =
|
|
17
|
+
T.let(
|
|
18
|
+
:next_day_bank_withdrawal_markup,
|
|
19
|
+
WhopSDK::FeeMarkupType::TaggedSymbol
|
|
20
|
+
)
|
|
21
|
+
BANK_WIRE_WITHDRAWAL_MARKUP =
|
|
22
|
+
T.let(
|
|
23
|
+
:bank_wire_withdrawal_markup,
|
|
24
|
+
WhopSDK::FeeMarkupType::TaggedSymbol
|
|
25
|
+
)
|
|
26
|
+
DIGITAL_WALLET_WITHDRAWAL_MARKUP =
|
|
27
|
+
T.let(
|
|
28
|
+
:digital_wallet_withdrawal_markup,
|
|
29
|
+
WhopSDK::FeeMarkupType::TaggedSymbol
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
sig { override.returns(T::Array[WhopSDK::FeeMarkupType::TaggedSymbol]) }
|
|
33
|
+
def self.values
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -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
|
|
@@ -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
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -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?,
|
|
@@ -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
|
-
{
|
|
4
|
+
{
|
|
5
|
+
app_id: String,
|
|
6
|
+
company_id: String,
|
|
7
|
+
is_public: bool?,
|
|
8
|
+
name: String?,
|
|
9
|
+
section_id: String?
|
|
10
|
+
}
|
|
5
11
|
& WhopSDK::Internal::Type::request_parameters
|
|
6
12
|
|
|
7
13
|
class ExperienceCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
@@ -12,6 +18,8 @@ module WhopSDK
|
|
|
12
18
|
|
|
13
19
|
attr_accessor company_id: String
|
|
14
20
|
|
|
21
|
+
attr_accessor is_public: bool?
|
|
22
|
+
|
|
15
23
|
attr_accessor name: String?
|
|
16
24
|
|
|
17
25
|
attr_accessor section_id: String?
|
|
@@ -19,6 +27,7 @@ module WhopSDK
|
|
|
19
27
|
def initialize: (
|
|
20
28
|
app_id: String,
|
|
21
29
|
company_id: String,
|
|
30
|
+
?is_public: bool?,
|
|
22
31
|
?name: String?,
|
|
23
32
|
?section_id: String?,
|
|
24
33
|
?request_options: WhopSDK::request_opts
|
|
@@ -27,6 +36,7 @@ module WhopSDK
|
|
|
27
36
|
def to_hash: -> {
|
|
28
37
|
app_id: String,
|
|
29
38
|
company_id: String,
|
|
39
|
+
is_public: bool?,
|
|
30
40
|
name: String?,
|
|
31
41
|
section_id: String?,
|
|
32
42
|
request_options: WhopSDK::RequestOptions
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
company: WhopSDK::Models::ExperienceListResponse::Company,
|
|
8
8
|
created_at: Time,
|
|
9
9
|
image: WhopSDK::Models::ExperienceListResponse::Image?,
|
|
10
|
+
is_public: bool,
|
|
10
11
|
name: String,
|
|
11
12
|
order: String?
|
|
12
13
|
}
|
|
@@ -22,6 +23,8 @@ module WhopSDK
|
|
|
22
23
|
|
|
23
24
|
attr_accessor image: WhopSDK::Models::ExperienceListResponse::Image?
|
|
24
25
|
|
|
26
|
+
attr_accessor is_public: bool
|
|
27
|
+
|
|
25
28
|
attr_accessor name: String
|
|
26
29
|
|
|
27
30
|
attr_accessor order: String?
|
|
@@ -32,6 +35,7 @@ module WhopSDK
|
|
|
32
35
|
company: WhopSDK::Models::ExperienceListResponse::Company,
|
|
33
36
|
created_at: Time,
|
|
34
37
|
image: WhopSDK::Models::ExperienceListResponse::Image?,
|
|
38
|
+
is_public: bool,
|
|
35
39
|
name: String,
|
|
36
40
|
order: String?
|
|
37
41
|
) -> void
|
|
@@ -42,6 +46,7 @@ module WhopSDK
|
|
|
42
46
|
company: WhopSDK::Models::ExperienceListResponse::Company,
|
|
43
47
|
created_at: Time,
|
|
44
48
|
image: WhopSDK::Models::ExperienceListResponse::Image?,
|
|
49
|
+
is_public: bool,
|
|
45
50
|
name: String,
|
|
46
51
|
order: String?
|
|
47
52
|
}
|
|
@@ -3,6 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type experience_update_params =
|
|
4
4
|
{
|
|
5
5
|
access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
6
|
+
is_public: bool?,
|
|
6
7
|
logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
|
|
7
8
|
name: String?,
|
|
8
9
|
order: String?,
|
|
@@ -16,6 +17,8 @@ module WhopSDK
|
|
|
16
17
|
|
|
17
18
|
attr_accessor access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?
|
|
18
19
|
|
|
20
|
+
attr_accessor is_public: bool?
|
|
21
|
+
|
|
19
22
|
attr_accessor logo: WhopSDK::Models::ExperienceUpdateParams::logo?
|
|
20
23
|
|
|
21
24
|
attr_accessor name: String?
|
|
@@ -26,6 +29,7 @@ module WhopSDK
|
|
|
26
29
|
|
|
27
30
|
def initialize: (
|
|
28
31
|
?access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
32
|
+
?is_public: bool?,
|
|
29
33
|
?logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
|
|
30
34
|
?name: String?,
|
|
31
35
|
?order: String?,
|
|
@@ -35,6 +39,7 @@ module WhopSDK
|
|
|
35
39
|
|
|
36
40
|
def to_hash: -> {
|
|
37
41
|
access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
42
|
+
is_public: bool?,
|
|
38
43
|
logo: WhopSDK::Models::ExperienceUpdateParams::logo?,
|
|
39
44
|
name: String?,
|
|
40
45
|
order: String?,
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type fee_markup_create_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
7
|
+
fixed_fee_usd: Float?,
|
|
8
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
notes: String?,
|
|
10
|
+
percentage_fee: Float?
|
|
11
|
+
}
|
|
12
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class FeeMarkupCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
15
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor company_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor fee_type: WhopSDK::Models::fee_markup_type
|
|
21
|
+
|
|
22
|
+
attr_accessor fixed_fee_usd: Float?
|
|
23
|
+
|
|
24
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
25
|
+
|
|
26
|
+
attr_accessor notes: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor percentage_fee: Float?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
company_id: String,
|
|
32
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
33
|
+
?fixed_fee_usd: Float?,
|
|
34
|
+
?metadata: ::Hash[Symbol, top]?,
|
|
35
|
+
?notes: String?,
|
|
36
|
+
?percentage_fee: Float?,
|
|
37
|
+
?request_options: WhopSDK::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
company_id: String,
|
|
42
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
43
|
+
fixed_fee_usd: Float?,
|
|
44
|
+
metadata: ::Hash[Symbol, top]?,
|
|
45
|
+
notes: String?,
|
|
46
|
+
percentage_fee: Float?,
|
|
47
|
+
request_options: WhopSDK::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type fee_markup_create_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
created_at: Time,
|
|
7
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
8
|
+
fixed_fee_usd: Float?,
|
|
9
|
+
notes: String?,
|
|
10
|
+
percentage_fee: Float?,
|
|
11
|
+
updated_at: Time
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class FeeMarkupCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
15
|
+
attr_accessor id: String
|
|
16
|
+
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor fee_type: WhopSDK::Models::fee_markup_type
|
|
20
|
+
|
|
21
|
+
attr_accessor fixed_fee_usd: Float?
|
|
22
|
+
|
|
23
|
+
attr_accessor notes: String?
|
|
24
|
+
|
|
25
|
+
attr_accessor percentage_fee: Float?
|
|
26
|
+
|
|
27
|
+
attr_accessor updated_at: Time
|
|
28
|
+
|
|
29
|
+
def initialize: (
|
|
30
|
+
id: String,
|
|
31
|
+
created_at: Time,
|
|
32
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
33
|
+
fixed_fee_usd: Float?,
|
|
34
|
+
notes: String?,
|
|
35
|
+
percentage_fee: Float?,
|
|
36
|
+
updated_at: Time
|
|
37
|
+
) -> void
|
|
38
|
+
|
|
39
|
+
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
41
|
+
created_at: Time,
|
|
42
|
+
fee_type: WhopSDK::Models::fee_markup_type,
|
|
43
|
+
fixed_fee_usd: Float?,
|
|
44
|
+
notes: String?,
|
|
45
|
+
percentage_fee: Float?,
|
|
46
|
+
updated_at: Time
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type fee_markup_delete_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class FeeMarkupDeleteParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|