whop_sdk 0.0.23 → 0.0.24
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 +35 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +5 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +13 -52
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +58 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
- data/lib/whop_sdk/models.rb +2 -2
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +1 -1
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models.rbi +2 -2
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +9 -30
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models.rbs +2 -2
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +19 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
|
@@ -9,7 +9,7 @@ module WhopSDK
|
|
|
9
9
|
description: String?,
|
|
10
10
|
discover_path: String?,
|
|
11
11
|
experience_path: String?,
|
|
12
|
-
icon: WhopSDK::
|
|
12
|
+
icon: WhopSDK::AppUpdateParams::Icon?,
|
|
13
13
|
name: String?,
|
|
14
14
|
required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
15
15
|
status: WhopSDK::Models::app_statuses?
|
|
@@ -34,7 +34,7 @@ module WhopSDK
|
|
|
34
34
|
|
|
35
35
|
attr_accessor experience_path: String?
|
|
36
36
|
|
|
37
|
-
attr_accessor icon: WhopSDK::
|
|
37
|
+
attr_accessor icon: WhopSDK::AppUpdateParams::Icon?
|
|
38
38
|
|
|
39
39
|
attr_accessor name: String?
|
|
40
40
|
|
|
@@ -50,7 +50,7 @@ module WhopSDK
|
|
|
50
50
|
?description: String?,
|
|
51
51
|
?discover_path: String?,
|
|
52
52
|
?experience_path: String?,
|
|
53
|
-
?icon: WhopSDK::
|
|
53
|
+
?icon: WhopSDK::AppUpdateParams::Icon?,
|
|
54
54
|
?name: String?,
|
|
55
55
|
?required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
56
56
|
?status: WhopSDK::Models::app_statuses?,
|
|
@@ -65,42 +65,21 @@ module WhopSDK
|
|
|
65
65
|
description: String?,
|
|
66
66
|
discover_path: String?,
|
|
67
67
|
experience_path: String?,
|
|
68
|
-
icon: WhopSDK::
|
|
68
|
+
icon: WhopSDK::AppUpdateParams::Icon?,
|
|
69
69
|
name: String?,
|
|
70
70
|
required_scopes: ::Array[WhopSDK::Models::AppUpdateParams::required_scope]?,
|
|
71
71
|
status: WhopSDK::Models::app_statuses?,
|
|
72
72
|
request_options: WhopSDK::RequestOptions
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
type icon =
|
|
76
|
-
WhopSDK::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID
|
|
77
|
-
| WhopSDK::AppUpdateParams::Icon::AttachmentInputWithID
|
|
75
|
+
type icon = { id: String }
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
class Icon < WhopSDK::Internal::Type::BaseModel
|
|
78
|
+
attr_accessor id: String
|
|
81
79
|
|
|
82
|
-
|
|
83
|
-
{ direct_upload_id: String }
|
|
80
|
+
def initialize: (id: String) -> void
|
|
84
81
|
|
|
85
|
-
|
|
86
|
-
attr_accessor direct_upload_id: String
|
|
87
|
-
|
|
88
|
-
def initialize: (direct_upload_id: String) -> void
|
|
89
|
-
|
|
90
|
-
def to_hash: -> { direct_upload_id: String }
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
type attachment_input_with_id = { id: String }
|
|
94
|
-
|
|
95
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
96
|
-
attr_accessor id: String
|
|
97
|
-
|
|
98
|
-
def initialize: (id: String) -> void
|
|
99
|
-
|
|
100
|
-
def to_hash: -> { id: String }
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
def self?.variants: -> ::Array[WhopSDK::Models::AppUpdateParams::icon]
|
|
82
|
+
def to_hash: -> { id: String }
|
|
104
83
|
end
|
|
105
84
|
|
|
106
85
|
type required_scope = :read_user
|
|
@@ -17,6 +17,22 @@ module WhopSDK
|
|
|
17
17
|
| :jcbrupay
|
|
18
18
|
| :elo
|
|
19
19
|
| :maestro
|
|
20
|
+
| :tarjeta_naranja
|
|
21
|
+
| :cirrus
|
|
22
|
+
| :nspk_mir
|
|
23
|
+
| :verve
|
|
24
|
+
| :ebt
|
|
25
|
+
| :private_label
|
|
26
|
+
| :local_brand
|
|
27
|
+
| :uatp
|
|
28
|
+
| :wexcard
|
|
29
|
+
| :uzcard
|
|
30
|
+
| :meeza
|
|
31
|
+
| :hrg_store_card
|
|
32
|
+
| :girocard
|
|
33
|
+
| :fuel_card
|
|
34
|
+
| :dankort
|
|
35
|
+
| :carnet
|
|
20
36
|
| :unknown
|
|
21
37
|
|
|
22
38
|
module CardBrands
|
|
@@ -38,6 +54,22 @@ module WhopSDK
|
|
|
38
54
|
JCBRUPAY: :jcbrupay
|
|
39
55
|
ELO: :elo
|
|
40
56
|
MAESTRO: :maestro
|
|
57
|
+
TARJETA_NARANJA: :tarjeta_naranja
|
|
58
|
+
CIRRUS: :cirrus
|
|
59
|
+
NSPK_MIR: :nspk_mir
|
|
60
|
+
VERVE: :verve
|
|
61
|
+
EBT: :ebt
|
|
62
|
+
PRIVATE_LABEL: :private_label
|
|
63
|
+
LOCAL_BRAND: :local_brand
|
|
64
|
+
UATP: :uatp
|
|
65
|
+
WEXCARD: :wexcard
|
|
66
|
+
UZCARD: :uzcard
|
|
67
|
+
MEEZA: :meeza
|
|
68
|
+
HRG_STORE_CARD: :hrg_store_card
|
|
69
|
+
GIROCARD: :girocard
|
|
70
|
+
FUEL_CARD: :fuel_card
|
|
71
|
+
DANKORT: :dankort
|
|
72
|
+
CARNET: :carnet
|
|
41
73
|
UNKNOWN: :unknown
|
|
42
74
|
|
|
43
75
|
def self?.values: -> ::Array[WhopSDK::Models::card_brands]
|
|
@@ -9,6 +9,7 @@ module WhopSDK
|
|
|
9
9
|
mode: :setup,
|
|
10
10
|
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
11
11
|
redirect_url: String?,
|
|
12
|
+
source_url: String?,
|
|
12
13
|
plan_id: String,
|
|
13
14
|
company_id: String
|
|
14
15
|
}
|
|
@@ -32,6 +33,8 @@ module WhopSDK
|
|
|
32
33
|
|
|
33
34
|
attr_accessor redirect_url: String?
|
|
34
35
|
|
|
36
|
+
attr_accessor source_url: String?
|
|
37
|
+
|
|
35
38
|
attr_accessor plan_id: String
|
|
36
39
|
|
|
37
40
|
attr_accessor company_id: String
|
|
@@ -45,6 +48,7 @@ module WhopSDK
|
|
|
45
48
|
?metadata: ::Hash[Symbol, top]?,
|
|
46
49
|
?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
47
50
|
?redirect_url: String?,
|
|
51
|
+
?source_url: String?,
|
|
48
52
|
?mode: :setup,
|
|
49
53
|
?request_options: WhopSDK::request_opts
|
|
50
54
|
) -> void
|
|
@@ -57,6 +61,7 @@ module WhopSDK
|
|
|
57
61
|
mode: :setup,
|
|
58
62
|
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
59
63
|
redirect_url: String?,
|
|
64
|
+
source_url: String?,
|
|
60
65
|
plan_id: String,
|
|
61
66
|
company_id: String,
|
|
62
67
|
request_options: WhopSDK::RequestOptions
|
|
@@ -72,7 +77,7 @@ module WhopSDK
|
|
|
72
77
|
description: String?,
|
|
73
78
|
expiration_days: Integer?,
|
|
74
79
|
force_create_new_plan: bool?,
|
|
75
|
-
image: WhopSDK::
|
|
80
|
+
image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
76
81
|
initial_price: Float?,
|
|
77
82
|
internal_notes: String?,
|
|
78
83
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -83,6 +88,7 @@ module WhopSDK
|
|
|
83
88
|
release_method: WhopSDK::Models::release_method?,
|
|
84
89
|
renewal_price: Float?,
|
|
85
90
|
split_pay_required_payments: Integer?,
|
|
91
|
+
stock: Integer?,
|
|
86
92
|
title: String?,
|
|
87
93
|
trial_period_days: Integer?,
|
|
88
94
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -105,7 +111,7 @@ module WhopSDK
|
|
|
105
111
|
|
|
106
112
|
attr_accessor force_create_new_plan: bool?
|
|
107
113
|
|
|
108
|
-
attr_accessor image: WhopSDK::
|
|
114
|
+
attr_accessor image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?
|
|
109
115
|
|
|
110
116
|
attr_accessor initial_price: Float?
|
|
111
117
|
|
|
@@ -127,6 +133,8 @@ module WhopSDK
|
|
|
127
133
|
|
|
128
134
|
attr_accessor split_pay_required_payments: Integer?
|
|
129
135
|
|
|
136
|
+
attr_accessor stock: Integer?
|
|
137
|
+
|
|
130
138
|
attr_accessor title: String?
|
|
131
139
|
|
|
132
140
|
attr_accessor trial_period_days: Integer?
|
|
@@ -142,7 +150,7 @@ module WhopSDK
|
|
|
142
150
|
?description: String?,
|
|
143
151
|
?expiration_days: Integer?,
|
|
144
152
|
?force_create_new_plan: bool?,
|
|
145
|
-
?image: WhopSDK::
|
|
153
|
+
?image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
146
154
|
?initial_price: Float?,
|
|
147
155
|
?internal_notes: String?,
|
|
148
156
|
?override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -153,6 +161,7 @@ module WhopSDK
|
|
|
153
161
|
?release_method: WhopSDK::Models::release_method?,
|
|
154
162
|
?renewal_price: Float?,
|
|
155
163
|
?split_pay_required_payments: Integer?,
|
|
164
|
+
?stock: Integer?,
|
|
156
165
|
?title: String?,
|
|
157
166
|
?trial_period_days: Integer?,
|
|
158
167
|
?visibility: WhopSDK::Models::visibility?
|
|
@@ -167,7 +176,7 @@ module WhopSDK
|
|
|
167
176
|
description: String?,
|
|
168
177
|
expiration_days: Integer?,
|
|
169
178
|
force_create_new_plan: bool?,
|
|
170
|
-
image: WhopSDK::
|
|
179
|
+
image: WhopSDK::CheckoutConfigurationCreateParams::Plan::Image?,
|
|
171
180
|
initial_price: Float?,
|
|
172
181
|
internal_notes: String?,
|
|
173
182
|
override_tax_type: WhopSDK::Models::tax_type?,
|
|
@@ -178,6 +187,7 @@ module WhopSDK
|
|
|
178
187
|
release_method: WhopSDK::Models::release_method?,
|
|
179
188
|
renewal_price: Float?,
|
|
180
189
|
split_pay_required_payments: Integer?,
|
|
190
|
+
stock: Integer?,
|
|
181
191
|
title: String?,
|
|
182
192
|
trial_period_days: Integer?,
|
|
183
193
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -225,35 +235,14 @@ module WhopSDK
|
|
|
225
235
|
}
|
|
226
236
|
end
|
|
227
237
|
|
|
228
|
-
type image =
|
|
229
|
-
WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID
|
|
230
|
-
| WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID
|
|
231
|
-
|
|
232
|
-
module Image
|
|
233
|
-
extend WhopSDK::Internal::Type::Union
|
|
234
|
-
|
|
235
|
-
type attachment_input_with_direct_upload_id =
|
|
236
|
-
{ direct_upload_id: String }
|
|
237
|
-
|
|
238
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
239
|
-
attr_accessor direct_upload_id: String
|
|
240
|
-
|
|
241
|
-
def initialize: (direct_upload_id: String) -> void
|
|
242
|
-
|
|
243
|
-
def to_hash: -> { direct_upload_id: String }
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
type attachment_input_with_id = { id: String }
|
|
247
|
-
|
|
248
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
249
|
-
attr_accessor id: String
|
|
238
|
+
type image = { id: String }
|
|
250
239
|
|
|
251
|
-
|
|
240
|
+
class Image < WhopSDK::Internal::Type::BaseModel
|
|
241
|
+
attr_accessor id: String
|
|
252
242
|
|
|
253
|
-
|
|
254
|
-
end
|
|
243
|
+
def initialize: (id: String) -> void
|
|
255
244
|
|
|
256
|
-
def
|
|
245
|
+
def to_hash: -> { id: String }
|
|
257
246
|
end
|
|
258
247
|
|
|
259
248
|
type payment_method_configuration =
|
|
@@ -7,6 +7,7 @@ module WhopSDK
|
|
|
7
7
|
title: String,
|
|
8
8
|
business_type: WhopSDK::Models::business_types?,
|
|
9
9
|
industry_type: WhopSDK::Models::industry_types?,
|
|
10
|
+
logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
10
11
|
metadata: ::Hash[Symbol, top]?,
|
|
11
12
|
send_customer_emails: bool?
|
|
12
13
|
}
|
|
@@ -26,6 +27,8 @@ module WhopSDK
|
|
|
26
27
|
|
|
27
28
|
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
28
29
|
|
|
30
|
+
attr_accessor logo: WhopSDK::CompanyCreateParams::Logo?
|
|
31
|
+
|
|
29
32
|
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
30
33
|
|
|
31
34
|
attr_accessor send_customer_emails: bool?
|
|
@@ -36,6 +39,7 @@ module WhopSDK
|
|
|
36
39
|
title: String,
|
|
37
40
|
?business_type: WhopSDK::Models::business_types?,
|
|
38
41
|
?industry_type: WhopSDK::Models::industry_types?,
|
|
42
|
+
?logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
39
43
|
?metadata: ::Hash[Symbol, top]?,
|
|
40
44
|
?send_customer_emails: bool?,
|
|
41
45
|
?request_options: WhopSDK::request_opts
|
|
@@ -47,10 +51,21 @@ module WhopSDK
|
|
|
47
51
|
title: String,
|
|
48
52
|
business_type: WhopSDK::Models::business_types?,
|
|
49
53
|
industry_type: WhopSDK::Models::industry_types?,
|
|
54
|
+
logo: WhopSDK::CompanyCreateParams::Logo?,
|
|
50
55
|
metadata: ::Hash[Symbol, top]?,
|
|
51
56
|
send_customer_emails: bool?,
|
|
52
57
|
request_options: WhopSDK::RequestOptions
|
|
53
58
|
}
|
|
59
|
+
|
|
60
|
+
type logo = { id: String }
|
|
61
|
+
|
|
62
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
64
|
+
|
|
65
|
+
def initialize: (id: String) -> void
|
|
66
|
+
|
|
67
|
+
def to_hash: -> { id: String }
|
|
68
|
+
end
|
|
54
69
|
end
|
|
55
70
|
end
|
|
56
71
|
end
|
|
@@ -2,10 +2,10 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type company_update_params =
|
|
4
4
|
{
|
|
5
|
-
banner_image: WhopSDK::
|
|
5
|
+
banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
6
6
|
business_type: WhopSDK::Models::business_types?,
|
|
7
7
|
industry_type: WhopSDK::Models::industry_types?,
|
|
8
|
-
logo: WhopSDK::
|
|
8
|
+
logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
9
9
|
send_customer_emails: bool?,
|
|
10
10
|
title: String?
|
|
11
11
|
}
|
|
@@ -15,98 +15,56 @@ module WhopSDK
|
|
|
15
15
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
16
|
include WhopSDK::Internal::Type::RequestParameters
|
|
17
17
|
|
|
18
|
-
attr_accessor banner_image: WhopSDK::
|
|
18
|
+
attr_accessor banner_image: WhopSDK::CompanyUpdateParams::BannerImage?
|
|
19
19
|
|
|
20
20
|
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
21
21
|
|
|
22
22
|
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
23
23
|
|
|
24
|
-
attr_accessor logo: WhopSDK::
|
|
24
|
+
attr_accessor logo: WhopSDK::CompanyUpdateParams::Logo?
|
|
25
25
|
|
|
26
26
|
attr_accessor send_customer_emails: bool?
|
|
27
27
|
|
|
28
28
|
attr_accessor title: String?
|
|
29
29
|
|
|
30
30
|
def initialize: (
|
|
31
|
-
?banner_image: WhopSDK::
|
|
31
|
+
?banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
32
32
|
?business_type: WhopSDK::Models::business_types?,
|
|
33
33
|
?industry_type: WhopSDK::Models::industry_types?,
|
|
34
|
-
?logo: WhopSDK::
|
|
34
|
+
?logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
35
35
|
?send_customer_emails: bool?,
|
|
36
36
|
?title: String?,
|
|
37
37
|
?request_options: WhopSDK::request_opts
|
|
38
38
|
) -> void
|
|
39
39
|
|
|
40
40
|
def to_hash: -> {
|
|
41
|
-
banner_image: WhopSDK::
|
|
41
|
+
banner_image: WhopSDK::CompanyUpdateParams::BannerImage?,
|
|
42
42
|
business_type: WhopSDK::Models::business_types?,
|
|
43
43
|
industry_type: WhopSDK::Models::industry_types?,
|
|
44
|
-
logo: WhopSDK::
|
|
44
|
+
logo: WhopSDK::CompanyUpdateParams::Logo?,
|
|
45
45
|
send_customer_emails: bool?,
|
|
46
46
|
title: String?,
|
|
47
47
|
request_options: WhopSDK::RequestOptions
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
type banner_image =
|
|
51
|
-
WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithDirectUploadID
|
|
52
|
-
| WhopSDK::CompanyUpdateParams::BannerImage::AttachmentInputWithID
|
|
50
|
+
type banner_image = { id: String }
|
|
53
51
|
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
class BannerImage < WhopSDK::Internal::Type::BaseModel
|
|
53
|
+
attr_accessor id: String
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
{ direct_upload_id: String }
|
|
55
|
+
def initialize: (id: String) -> void
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
attr_accessor direct_upload_id: String
|
|
62
|
-
|
|
63
|
-
def initialize: (direct_upload_id: String) -> void
|
|
64
|
-
|
|
65
|
-
def to_hash: -> { direct_upload_id: String }
|
|
66
|
-
end
|
|
67
|
-
|
|
68
|
-
type attachment_input_with_id = { id: String }
|
|
69
|
-
|
|
70
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
71
|
-
attr_accessor id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CompanyUpdateParams::banner_image]
|
|
57
|
+
def to_hash: -> { id: String }
|
|
79
58
|
end
|
|
80
59
|
|
|
81
|
-
type logo =
|
|
82
|
-
WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithDirectUploadID
|
|
83
|
-
| WhopSDK::CompanyUpdateParams::Logo::AttachmentInputWithID
|
|
84
|
-
|
|
85
|
-
module Logo
|
|
86
|
-
extend WhopSDK::Internal::Type::Union
|
|
87
|
-
|
|
88
|
-
type attachment_input_with_direct_upload_id =
|
|
89
|
-
{ direct_upload_id: String }
|
|
90
|
-
|
|
91
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
92
|
-
attr_accessor direct_upload_id: String
|
|
93
|
-
|
|
94
|
-
def initialize: (direct_upload_id: String) -> void
|
|
95
|
-
|
|
96
|
-
def to_hash: -> { direct_upload_id: String }
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
type attachment_input_with_id = { id: String }
|
|
100
|
-
|
|
101
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
102
|
-
attr_accessor id: String
|
|
60
|
+
type logo = { id: String }
|
|
103
61
|
|
|
104
|
-
|
|
62
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
105
64
|
|
|
106
|
-
|
|
107
|
-
end
|
|
65
|
+
def initialize: (id: String) -> void
|
|
108
66
|
|
|
109
|
-
def
|
|
67
|
+
def to_hash: -> { id: String }
|
|
110
68
|
end
|
|
111
69
|
end
|
|
112
70
|
end
|
|
@@ -5,11 +5,10 @@ module WhopSDK
|
|
|
5
5
|
experience_id: String,
|
|
6
6
|
title: String,
|
|
7
7
|
certificate_after_completion_enabled: bool?,
|
|
8
|
-
cover_image: String?,
|
|
9
8
|
order: String?,
|
|
10
9
|
require_completing_lessons_in_order: bool?,
|
|
11
10
|
tagline: String?,
|
|
12
|
-
thumbnail: WhopSDK::
|
|
11
|
+
thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
13
12
|
visibility: WhopSDK::Models::course_visibilities?
|
|
14
13
|
}
|
|
15
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
@@ -24,15 +23,13 @@ module WhopSDK
|
|
|
24
23
|
|
|
25
24
|
attr_accessor certificate_after_completion_enabled: bool?
|
|
26
25
|
|
|
27
|
-
attr_accessor cover_image: String?
|
|
28
|
-
|
|
29
26
|
attr_accessor order: String?
|
|
30
27
|
|
|
31
28
|
attr_accessor require_completing_lessons_in_order: bool?
|
|
32
29
|
|
|
33
30
|
attr_accessor tagline: String?
|
|
34
31
|
|
|
35
|
-
attr_accessor thumbnail: WhopSDK::
|
|
32
|
+
attr_accessor thumbnail: WhopSDK::CourseCreateParams::Thumbnail?
|
|
36
33
|
|
|
37
34
|
attr_accessor visibility: WhopSDK::Models::course_visibilities?
|
|
38
35
|
|
|
@@ -40,11 +37,10 @@ module WhopSDK
|
|
|
40
37
|
experience_id: String,
|
|
41
38
|
title: String,
|
|
42
39
|
?certificate_after_completion_enabled: bool?,
|
|
43
|
-
?cover_image: String?,
|
|
44
40
|
?order: String?,
|
|
45
41
|
?require_completing_lessons_in_order: bool?,
|
|
46
42
|
?tagline: String?,
|
|
47
|
-
?thumbnail: WhopSDK::
|
|
43
|
+
?thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
48
44
|
?visibility: WhopSDK::Models::course_visibilities?,
|
|
49
45
|
?request_options: WhopSDK::request_opts
|
|
50
46
|
) -> void
|
|
@@ -53,44 +49,22 @@ module WhopSDK
|
|
|
53
49
|
experience_id: String,
|
|
54
50
|
title: String,
|
|
55
51
|
certificate_after_completion_enabled: bool?,
|
|
56
|
-
cover_image: String?,
|
|
57
52
|
order: String?,
|
|
58
53
|
require_completing_lessons_in_order: bool?,
|
|
59
54
|
tagline: String?,
|
|
60
|
-
thumbnail: WhopSDK::
|
|
55
|
+
thumbnail: WhopSDK::CourseCreateParams::Thumbnail?,
|
|
61
56
|
visibility: WhopSDK::Models::course_visibilities?,
|
|
62
57
|
request_options: WhopSDK::RequestOptions
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
type thumbnail =
|
|
66
|
-
WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
|
|
67
|
-
| WhopSDK::CourseCreateParams::Thumbnail::AttachmentInputWithID
|
|
68
|
-
|
|
69
|
-
module Thumbnail
|
|
70
|
-
extend WhopSDK::Internal::Type::Union
|
|
71
|
-
|
|
72
|
-
type attachment_input_with_direct_upload_id =
|
|
73
|
-
{ direct_upload_id: String }
|
|
74
|
-
|
|
75
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
76
|
-
attr_accessor direct_upload_id: String
|
|
77
|
-
|
|
78
|
-
def initialize: (direct_upload_id: String) -> void
|
|
79
|
-
|
|
80
|
-
def to_hash: -> { direct_upload_id: String }
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
type attachment_input_with_id = { id: String }
|
|
84
|
-
|
|
85
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
86
|
-
attr_accessor id: String
|
|
60
|
+
type thumbnail = { id: String }
|
|
87
61
|
|
|
88
|
-
|
|
62
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
89
64
|
|
|
90
|
-
|
|
91
|
-
end
|
|
65
|
+
def initialize: (id: String) -> void
|
|
92
66
|
|
|
93
|
-
def
|
|
67
|
+
def to_hash: -> { id: String }
|
|
94
68
|
end
|
|
95
69
|
end
|
|
96
70
|
end
|
|
@@ -8,7 +8,7 @@ module WhopSDK
|
|
|
8
8
|
days_from_course_start_until_unlock: Integer?,
|
|
9
9
|
embed_id: String?,
|
|
10
10
|
embed_type: WhopSDK::Models::embed_type?,
|
|
11
|
-
thumbnail: WhopSDK::
|
|
11
|
+
thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
12
12
|
title: String?
|
|
13
13
|
}
|
|
14
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
@@ -29,7 +29,7 @@ module WhopSDK
|
|
|
29
29
|
|
|
30
30
|
attr_accessor embed_type: WhopSDK::Models::embed_type?
|
|
31
31
|
|
|
32
|
-
attr_accessor thumbnail: WhopSDK::
|
|
32
|
+
attr_accessor thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?
|
|
33
33
|
|
|
34
34
|
attr_accessor title: String?
|
|
35
35
|
|
|
@@ -40,7 +40,7 @@ module WhopSDK
|
|
|
40
40
|
?days_from_course_start_until_unlock: Integer?,
|
|
41
41
|
?embed_id: String?,
|
|
42
42
|
?embed_type: WhopSDK::Models::embed_type?,
|
|
43
|
-
?thumbnail: WhopSDK::
|
|
43
|
+
?thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
44
44
|
?title: String?,
|
|
45
45
|
?request_options: WhopSDK::request_opts
|
|
46
46
|
) -> void
|
|
@@ -52,40 +52,19 @@ module WhopSDK
|
|
|
52
52
|
days_from_course_start_until_unlock: Integer?,
|
|
53
53
|
embed_id: String?,
|
|
54
54
|
embed_type: WhopSDK::Models::embed_type?,
|
|
55
|
-
thumbnail: WhopSDK::
|
|
55
|
+
thumbnail: WhopSDK::CourseLessonCreateParams::Thumbnail?,
|
|
56
56
|
title: String?,
|
|
57
57
|
request_options: WhopSDK::RequestOptions
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
type thumbnail =
|
|
61
|
-
WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithDirectUploadID
|
|
62
|
-
| WhopSDK::CourseLessonCreateParams::Thumbnail::AttachmentInputWithID
|
|
60
|
+
type thumbnail = { id: String }
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
class Thumbnail < WhopSDK::Internal::Type::BaseModel
|
|
63
|
+
attr_accessor id: String
|
|
66
64
|
|
|
67
|
-
|
|
68
|
-
{ direct_upload_id: String }
|
|
65
|
+
def initialize: (id: String) -> void
|
|
69
66
|
|
|
70
|
-
|
|
71
|
-
attr_accessor direct_upload_id: String
|
|
72
|
-
|
|
73
|
-
def initialize: (direct_upload_id: String) -> void
|
|
74
|
-
|
|
75
|
-
def to_hash: -> { direct_upload_id: String }
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
type attachment_input_with_id = { id: String }
|
|
79
|
-
|
|
80
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
81
|
-
attr_accessor id: String
|
|
82
|
-
|
|
83
|
-
def initialize: (id: String) -> void
|
|
84
|
-
|
|
85
|
-
def to_hash: -> { id: String }
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
def self?.variants: -> ::Array[WhopSDK::Models::CourseLessonCreateParams::thumbnail]
|
|
67
|
+
def to_hash: -> { id: String }
|
|
89
68
|
end
|
|
90
69
|
end
|
|
91
70
|
end
|