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
|
@@ -4,7 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
6
6
|
is_public: bool?,
|
|
7
|
-
logo: WhopSDK::
|
|
7
|
+
logo: WhopSDK::ExperienceUpdateParams::Logo?,
|
|
8
8
|
name: String?,
|
|
9
9
|
order: String?,
|
|
10
10
|
section_id: String?
|
|
@@ -19,7 +19,7 @@ module WhopSDK
|
|
|
19
19
|
|
|
20
20
|
attr_accessor is_public: bool?
|
|
21
21
|
|
|
22
|
-
attr_accessor logo: WhopSDK::
|
|
22
|
+
attr_accessor logo: WhopSDK::ExperienceUpdateParams::Logo?
|
|
23
23
|
|
|
24
24
|
attr_accessor name: String?
|
|
25
25
|
|
|
@@ -30,7 +30,7 @@ module WhopSDK
|
|
|
30
30
|
def initialize: (
|
|
31
31
|
?access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
32
32
|
?is_public: bool?,
|
|
33
|
-
?logo: WhopSDK::
|
|
33
|
+
?logo: WhopSDK::ExperienceUpdateParams::Logo?,
|
|
34
34
|
?name: String?,
|
|
35
35
|
?order: String?,
|
|
36
36
|
?section_id: String?,
|
|
@@ -40,7 +40,7 @@ module WhopSDK
|
|
|
40
40
|
def to_hash: -> {
|
|
41
41
|
access_level: WhopSDK::Models::ExperienceUpdateParams::access_level?,
|
|
42
42
|
is_public: bool?,
|
|
43
|
-
logo: WhopSDK::
|
|
43
|
+
logo: WhopSDK::ExperienceUpdateParams::Logo?,
|
|
44
44
|
name: String?,
|
|
45
45
|
order: String?,
|
|
46
46
|
section_id: String?,
|
|
@@ -58,35 +58,14 @@ module WhopSDK
|
|
|
58
58
|
def self?.values: -> ::Array[WhopSDK::Models::ExperienceUpdateParams::access_level]
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
-
type logo =
|
|
62
|
-
WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithDirectUploadID
|
|
63
|
-
| WhopSDK::ExperienceUpdateParams::Logo::AttachmentInputWithID
|
|
61
|
+
type logo = { id: String }
|
|
64
62
|
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
class Logo < WhopSDK::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor id: String
|
|
67
65
|
|
|
68
|
-
|
|
69
|
-
{ direct_upload_id: String }
|
|
66
|
+
def initialize: (id: String) -> void
|
|
70
67
|
|
|
71
|
-
|
|
72
|
-
attr_accessor direct_upload_id: String
|
|
73
|
-
|
|
74
|
-
def initialize: (direct_upload_id: String) -> void
|
|
75
|
-
|
|
76
|
-
def to_hash: -> { direct_upload_id: String }
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
type attachment_input_with_id = { id: String }
|
|
80
|
-
|
|
81
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
82
|
-
attr_accessor id: String
|
|
83
|
-
|
|
84
|
-
def initialize: (id: String) -> void
|
|
85
|
-
|
|
86
|
-
def to_hash: -> { id: String }
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
def self?.variants: -> ::Array[WhopSDK::Models::ExperienceUpdateParams::logo]
|
|
68
|
+
def to_hash: -> { id: String }
|
|
90
69
|
end
|
|
91
70
|
end
|
|
92
71
|
end
|
|
@@ -3,7 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type forum_post_create_params =
|
|
4
4
|
{
|
|
5
5
|
experience_id: String,
|
|
6
|
-
attachments: ::Array[WhopSDK::
|
|
6
|
+
attachments: ::Array[WhopSDK::ForumPostCreateParams::Attachment]?,
|
|
7
7
|
content: String?,
|
|
8
8
|
is_mention: bool?,
|
|
9
9
|
parent_id: String?,
|
|
@@ -22,7 +22,7 @@ module WhopSDK
|
|
|
22
22
|
|
|
23
23
|
attr_accessor experience_id: String
|
|
24
24
|
|
|
25
|
-
attr_accessor attachments: ::Array[WhopSDK::
|
|
25
|
+
attr_accessor attachments: ::Array[WhopSDK::ForumPostCreateParams::Attachment]?
|
|
26
26
|
|
|
27
27
|
attr_accessor content: String?
|
|
28
28
|
|
|
@@ -44,7 +44,7 @@ module WhopSDK
|
|
|
44
44
|
|
|
45
45
|
def initialize: (
|
|
46
46
|
experience_id: String,
|
|
47
|
-
?attachments: ::Array[WhopSDK::
|
|
47
|
+
?attachments: ::Array[WhopSDK::ForumPostCreateParams::Attachment]?,
|
|
48
48
|
?content: String?,
|
|
49
49
|
?is_mention: bool?,
|
|
50
50
|
?parent_id: String?,
|
|
@@ -59,7 +59,7 @@ module WhopSDK
|
|
|
59
59
|
|
|
60
60
|
def to_hash: -> {
|
|
61
61
|
experience_id: String,
|
|
62
|
-
attachments: ::Array[WhopSDK::
|
|
62
|
+
attachments: ::Array[WhopSDK::ForumPostCreateParams::Attachment]?,
|
|
63
63
|
content: String?,
|
|
64
64
|
is_mention: bool?,
|
|
65
65
|
parent_id: String?,
|
|
@@ -72,35 +72,14 @@ module WhopSDK
|
|
|
72
72
|
request_options: WhopSDK::RequestOptions
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
type attachment =
|
|
76
|
-
WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithDirectUploadID
|
|
77
|
-
| WhopSDK::ForumPostCreateParams::Attachment::AttachmentInputWithID
|
|
75
|
+
type attachment = { id: String }
|
|
78
76
|
|
|
79
|
-
|
|
80
|
-
|
|
77
|
+
class Attachment < 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::ForumPostCreateParams::attachment]
|
|
82
|
+
def to_hash: -> { id: String }
|
|
104
83
|
end
|
|
105
84
|
|
|
106
85
|
type poll =
|
|
@@ -2,7 +2,7 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type forum_post_update_params =
|
|
4
4
|
{
|
|
5
|
-
attachments: ::Array[WhopSDK::
|
|
5
|
+
attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
6
6
|
content: String?,
|
|
7
7
|
is_pinned: bool?,
|
|
8
8
|
title: String?,
|
|
@@ -14,7 +14,7 @@ module WhopSDK
|
|
|
14
14
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
15
15
|
include WhopSDK::Internal::Type::RequestParameters
|
|
16
16
|
|
|
17
|
-
attr_accessor attachments: ::Array[WhopSDK::
|
|
17
|
+
attr_accessor attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?
|
|
18
18
|
|
|
19
19
|
attr_accessor content: String?
|
|
20
20
|
|
|
@@ -25,7 +25,7 @@ module WhopSDK
|
|
|
25
25
|
attr_accessor visibility: WhopSDK::Models::forum_post_visibility_type?
|
|
26
26
|
|
|
27
27
|
def initialize: (
|
|
28
|
-
?attachments: ::Array[WhopSDK::
|
|
28
|
+
?attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
29
29
|
?content: String?,
|
|
30
30
|
?is_pinned: bool?,
|
|
31
31
|
?title: String?,
|
|
@@ -34,7 +34,7 @@ module WhopSDK
|
|
|
34
34
|
) -> void
|
|
35
35
|
|
|
36
36
|
def to_hash: -> {
|
|
37
|
-
attachments: ::Array[WhopSDK::
|
|
37
|
+
attachments: ::Array[WhopSDK::ForumPostUpdateParams::Attachment]?,
|
|
38
38
|
content: String?,
|
|
39
39
|
is_pinned: bool?,
|
|
40
40
|
title: String?,
|
|
@@ -42,35 +42,14 @@ module WhopSDK
|
|
|
42
42
|
request_options: WhopSDK::RequestOptions
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
type attachment =
|
|
46
|
-
WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithDirectUploadID
|
|
47
|
-
| WhopSDK::ForumPostUpdateParams::Attachment::AttachmentInputWithID
|
|
45
|
+
type attachment = { id: String }
|
|
48
46
|
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
48
|
+
attr_accessor id: String
|
|
51
49
|
|
|
52
|
-
|
|
53
|
-
{ direct_upload_id: String }
|
|
50
|
+
def initialize: (id: String) -> void
|
|
54
51
|
|
|
55
|
-
|
|
56
|
-
attr_accessor direct_upload_id: String
|
|
57
|
-
|
|
58
|
-
def initialize: (direct_upload_id: String) -> void
|
|
59
|
-
|
|
60
|
-
def to_hash: -> { direct_upload_id: String }
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
type attachment_input_with_id = { id: String }
|
|
64
|
-
|
|
65
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
66
|
-
attr_accessor id: String
|
|
67
|
-
|
|
68
|
-
def initialize: (id: String) -> void
|
|
69
|
-
|
|
70
|
-
def to_hash: -> { id: String }
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
def self?.variants: -> ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]
|
|
52
|
+
def to_hash: -> { id: String }
|
|
74
53
|
end
|
|
75
54
|
end
|
|
76
55
|
end
|
|
@@ -1,42 +1,66 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
3
|
type friendly_receipt_status =
|
|
4
|
-
:
|
|
4
|
+
:succeeded
|
|
5
|
+
| :pending
|
|
6
|
+
| :failed
|
|
7
|
+
| :past_due
|
|
8
|
+
| :canceled
|
|
9
|
+
| :price_too_low
|
|
10
|
+
| :uncollectible
|
|
5
11
|
| :refunded
|
|
12
|
+
| :auto_refunded
|
|
6
13
|
| :partially_refunded
|
|
7
14
|
| :dispute_warning
|
|
8
|
-
| :
|
|
9
|
-
| :
|
|
10
|
-
| :
|
|
11
|
-
| :
|
|
12
|
-
| :
|
|
15
|
+
| :dispute_needs_response
|
|
16
|
+
| :dispute_warning_needs_response
|
|
17
|
+
| :resolution_needs_response
|
|
18
|
+
| :dispute_under_review
|
|
19
|
+
| :dispute_warning_under_review
|
|
20
|
+
| :resolution_under_review
|
|
21
|
+
| :dispute_won
|
|
22
|
+
| :dispute_warning_closed
|
|
23
|
+
| :resolution_won
|
|
24
|
+
| :dispute_lost
|
|
25
|
+
| :dispute_closed
|
|
26
|
+
| :resolution_lost
|
|
13
27
|
| :drafted
|
|
14
|
-
| :uncollectible
|
|
15
|
-
| :unresolved
|
|
16
|
-
| :past_due
|
|
17
|
-
| :pending
|
|
18
28
|
| :incomplete
|
|
19
|
-
| :
|
|
29
|
+
| :unresolved
|
|
30
|
+
| :open_dispute
|
|
31
|
+
| :open_resolution
|
|
20
32
|
|
|
21
33
|
module FriendlyReceiptStatus
|
|
22
34
|
extend WhopSDK::Internal::Type::Enum
|
|
23
35
|
|
|
24
|
-
|
|
36
|
+
SUCCEEDED: :succeeded
|
|
37
|
+
PENDING: :pending
|
|
38
|
+
FAILED: :failed
|
|
39
|
+
PAST_DUE: :past_due
|
|
40
|
+
CANCELED: :canceled
|
|
41
|
+
PRICE_TOO_LOW: :price_too_low
|
|
42
|
+
UNCOLLECTIBLE: :uncollectible
|
|
25
43
|
REFUNDED: :refunded
|
|
44
|
+
AUTO_REFUNDED: :auto_refunded
|
|
26
45
|
PARTIALLY_REFUNDED: :partially_refunded
|
|
27
46
|
DISPUTE_WARNING: :dispute_warning
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
DISPUTE_NEEDS_RESPONSE: :dispute_needs_response
|
|
48
|
+
DISPUTE_WARNING_NEEDS_RESPONSE: :dispute_warning_needs_response
|
|
49
|
+
RESOLUTION_NEEDS_RESPONSE: :resolution_needs_response
|
|
50
|
+
DISPUTE_UNDER_REVIEW: :dispute_under_review
|
|
51
|
+
DISPUTE_WARNING_UNDER_REVIEW: :dispute_warning_under_review
|
|
52
|
+
RESOLUTION_UNDER_REVIEW: :resolution_under_review
|
|
53
|
+
DISPUTE_WON: :dispute_won
|
|
54
|
+
DISPUTE_WARNING_CLOSED: :dispute_warning_closed
|
|
55
|
+
RESOLUTION_WON: :resolution_won
|
|
56
|
+
DISPUTE_LOST: :dispute_lost
|
|
57
|
+
DISPUTE_CLOSED: :dispute_closed
|
|
58
|
+
RESOLUTION_LOST: :resolution_lost
|
|
33
59
|
DRAFTED: :drafted
|
|
34
|
-
UNCOLLECTIBLE: :uncollectible
|
|
35
|
-
UNRESOLVED: :unresolved
|
|
36
|
-
PAST_DUE: :past_due
|
|
37
|
-
PENDING: :pending
|
|
38
60
|
INCOMPLETE: :incomplete
|
|
39
|
-
|
|
61
|
+
UNRESOLVED: :unresolved
|
|
62
|
+
OPEN_DISPUTE: :open_dispute
|
|
63
|
+
OPEN_RESOLUTION: :open_resolution
|
|
40
64
|
|
|
41
65
|
def self?.values: -> ::Array[WhopSDK::Models::friendly_receipt_status]
|
|
42
66
|
end
|
|
@@ -4,7 +4,6 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
balances: ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
|
|
7
|
-
ledger_account_audit_status: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_account_audit_status?,
|
|
8
7
|
ledger_type: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_type,
|
|
9
8
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
10
9
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
@@ -17,8 +16,6 @@ module WhopSDK
|
|
|
17
16
|
|
|
18
17
|
attr_accessor balances: ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance]
|
|
19
18
|
|
|
20
|
-
attr_accessor ledger_account_audit_status: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_account_audit_status?
|
|
21
|
-
|
|
22
19
|
attr_accessor ledger_type: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_type
|
|
23
20
|
|
|
24
21
|
attr_accessor owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?
|
|
@@ -32,7 +29,6 @@ module WhopSDK
|
|
|
32
29
|
def initialize: (
|
|
33
30
|
id: String,
|
|
34
31
|
balances: ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
|
|
35
|
-
ledger_account_audit_status: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_account_audit_status?,
|
|
36
32
|
ledger_type: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_type,
|
|
37
33
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
38
34
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
@@ -43,7 +39,6 @@ module WhopSDK
|
|
|
43
39
|
def to_hash: -> {
|
|
44
40
|
id: String,
|
|
45
41
|
balances: ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::Balance],
|
|
46
|
-
ledger_account_audit_status: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_account_audit_status?,
|
|
47
42
|
ledger_type: WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_type,
|
|
48
43
|
owner: WhopSDK::Models::LedgerAccountRetrieveResponse::owner?,
|
|
49
44
|
payments_approval_status: WhopSDK::Models::LedgerAccountRetrieveResponse::payments_approval_status?,
|
|
@@ -83,39 +78,6 @@ module WhopSDK
|
|
|
83
78
|
}
|
|
84
79
|
end
|
|
85
80
|
|
|
86
|
-
type ledger_account_audit_status =
|
|
87
|
-
:pending
|
|
88
|
-
| :pending_ai_review
|
|
89
|
-
| :approved
|
|
90
|
-
| :reserves_imposed
|
|
91
|
-
| :suspended
|
|
92
|
-
| :ignored
|
|
93
|
-
| :rejected
|
|
94
|
-
| :requested_more_information
|
|
95
|
-
| :information_submitted
|
|
96
|
-
| :requested_tos_violation_correction
|
|
97
|
-
| :clawback_attempted
|
|
98
|
-
| :awaiting_sales_review
|
|
99
|
-
|
|
100
|
-
module LedgerAccountAuditStatus
|
|
101
|
-
extend WhopSDK::Internal::Type::Enum
|
|
102
|
-
|
|
103
|
-
PENDING: :pending
|
|
104
|
-
PENDING_AI_REVIEW: :pending_ai_review
|
|
105
|
-
APPROVED: :approved
|
|
106
|
-
RESERVES_IMPOSED: :reserves_imposed
|
|
107
|
-
SUSPENDED: :suspended
|
|
108
|
-
IGNORED: :ignored
|
|
109
|
-
REJECTED: :rejected
|
|
110
|
-
REQUESTED_MORE_INFORMATION: :requested_more_information
|
|
111
|
-
INFORMATION_SUBMITTED: :information_submitted
|
|
112
|
-
REQUESTED_TOS_VIOLATION_CORRECTION: :requested_tos_violation_correction
|
|
113
|
-
CLAWBACK_ATTEMPTED: :clawback_attempted
|
|
114
|
-
AWAITING_SALES_REVIEW: :awaiting_sales_review
|
|
115
|
-
|
|
116
|
-
def self?.values: -> ::Array[WhopSDK::Models::LedgerAccountRetrieveResponse::ledger_account_audit_status]
|
|
117
|
-
end
|
|
118
|
-
|
|
119
81
|
type ledger_type = :primary | :pool
|
|
120
82
|
|
|
121
83
|
module LedgerType
|
|
@@ -4,6 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
access_level: WhopSDK::Models::access_level,
|
|
7
|
+
company_token_balance: Float,
|
|
7
8
|
created_at: Time,
|
|
8
9
|
joined_at: Time,
|
|
9
10
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -20,6 +21,8 @@ module WhopSDK
|
|
|
20
21
|
|
|
21
22
|
attr_accessor access_level: WhopSDK::Models::access_level
|
|
22
23
|
|
|
24
|
+
attr_accessor company_token_balance: Float
|
|
25
|
+
|
|
23
26
|
attr_accessor created_at: Time
|
|
24
27
|
|
|
25
28
|
attr_accessor joined_at: Time
|
|
@@ -41,6 +44,7 @@ module WhopSDK
|
|
|
41
44
|
def initialize: (
|
|
42
45
|
id: String,
|
|
43
46
|
access_level: WhopSDK::Models::access_level,
|
|
47
|
+
company_token_balance: Float,
|
|
44
48
|
created_at: Time,
|
|
45
49
|
joined_at: Time,
|
|
46
50
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -55,6 +59,7 @@ module WhopSDK
|
|
|
55
59
|
def to_hash: -> {
|
|
56
60
|
id: String,
|
|
57
61
|
access_level: WhopSDK::Models::access_level,
|
|
62
|
+
company_token_balance: Float,
|
|
58
63
|
created_at: Time,
|
|
59
64
|
joined_at: Time,
|
|
60
65
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -5,6 +5,7 @@ module WhopSDK
|
|
|
5
5
|
id: String,
|
|
6
6
|
access_level: WhopSDK::Models::access_level,
|
|
7
7
|
company: WhopSDK::Models::MemberRetrieveResponse::Company,
|
|
8
|
+
company_token_balance: Float,
|
|
8
9
|
created_at: Time,
|
|
9
10
|
joined_at: Time,
|
|
10
11
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -23,6 +24,8 @@ module WhopSDK
|
|
|
23
24
|
|
|
24
25
|
attr_accessor company: WhopSDK::Models::MemberRetrieveResponse::Company
|
|
25
26
|
|
|
27
|
+
attr_accessor company_token_balance: Float
|
|
28
|
+
|
|
26
29
|
attr_accessor created_at: Time
|
|
27
30
|
|
|
28
31
|
attr_accessor joined_at: Time
|
|
@@ -45,6 +48,7 @@ module WhopSDK
|
|
|
45
48
|
id: String,
|
|
46
49
|
access_level: WhopSDK::Models::access_level,
|
|
47
50
|
company: WhopSDK::Models::MemberRetrieveResponse::Company,
|
|
51
|
+
company_token_balance: Float,
|
|
48
52
|
created_at: Time,
|
|
49
53
|
joined_at: Time,
|
|
50
54
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -60,6 +64,7 @@ module WhopSDK
|
|
|
60
64
|
id: String,
|
|
61
65
|
access_level: WhopSDK::Models::access_level,
|
|
62
66
|
company: WhopSDK::Models::MemberRetrieveResponse::Company,
|
|
67
|
+
company_token_balance: Float,
|
|
63
68
|
created_at: Time,
|
|
64
69
|
joined_at: Time,
|
|
65
70
|
most_recent_action: WhopSDK::Models::member_most_recent_actions?,
|
|
@@ -4,11 +4,13 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
cancel_at_period_end: bool,
|
|
7
|
+
cancel_option: WhopSDK::Models::Membership::cancel_option?,
|
|
7
8
|
canceled_at: Time?,
|
|
8
9
|
cancellation_reason: String?,
|
|
9
10
|
company: WhopSDK::Membership::Company,
|
|
10
11
|
created_at: Time,
|
|
11
12
|
currency: WhopSDK::Models::currency?,
|
|
13
|
+
custom_field_responses: ::Array[WhopSDK::Membership::CustomFieldResponse],
|
|
12
14
|
license_key: String?,
|
|
13
15
|
manage_url: String?,
|
|
14
16
|
member: WhopSDK::Membership::Member?,
|
|
@@ -29,6 +31,8 @@ module WhopSDK
|
|
|
29
31
|
|
|
30
32
|
attr_accessor cancel_at_period_end: bool
|
|
31
33
|
|
|
34
|
+
attr_accessor cancel_option: WhopSDK::Models::Membership::cancel_option?
|
|
35
|
+
|
|
32
36
|
attr_accessor canceled_at: Time?
|
|
33
37
|
|
|
34
38
|
attr_accessor cancellation_reason: String?
|
|
@@ -39,6 +43,8 @@ module WhopSDK
|
|
|
39
43
|
|
|
40
44
|
attr_accessor currency: WhopSDK::Models::currency?
|
|
41
45
|
|
|
46
|
+
attr_accessor custom_field_responses: ::Array[WhopSDK::Membership::CustomFieldResponse]
|
|
47
|
+
|
|
42
48
|
attr_accessor license_key: String?
|
|
43
49
|
|
|
44
50
|
attr_accessor manage_url: String?
|
|
@@ -68,11 +74,13 @@ module WhopSDK
|
|
|
68
74
|
def initialize: (
|
|
69
75
|
id: String,
|
|
70
76
|
cancel_at_period_end: bool,
|
|
77
|
+
cancel_option: WhopSDK::Models::Membership::cancel_option?,
|
|
71
78
|
canceled_at: Time?,
|
|
72
79
|
cancellation_reason: String?,
|
|
73
80
|
company: WhopSDK::Membership::Company,
|
|
74
81
|
created_at: Time,
|
|
75
82
|
currency: WhopSDK::Models::currency?,
|
|
83
|
+
custom_field_responses: ::Array[WhopSDK::Membership::CustomFieldResponse],
|
|
76
84
|
license_key: String?,
|
|
77
85
|
manage_url: String?,
|
|
78
86
|
member: WhopSDK::Membership::Member?,
|
|
@@ -91,11 +99,13 @@ module WhopSDK
|
|
|
91
99
|
def to_hash: -> {
|
|
92
100
|
id: String,
|
|
93
101
|
cancel_at_period_end: bool,
|
|
102
|
+
cancel_option: WhopSDK::Models::Membership::cancel_option?,
|
|
94
103
|
canceled_at: Time?,
|
|
95
104
|
cancellation_reason: String?,
|
|
96
105
|
company: WhopSDK::Membership::Company,
|
|
97
106
|
created_at: Time,
|
|
98
107
|
currency: WhopSDK::Models::currency?,
|
|
108
|
+
custom_field_responses: ::Array[WhopSDK::Membership::CustomFieldResponse],
|
|
99
109
|
license_key: String?,
|
|
100
110
|
manage_url: String?,
|
|
101
111
|
member: WhopSDK::Membership::Member?,
|
|
@@ -111,6 +121,29 @@ module WhopSDK
|
|
|
111
121
|
user: WhopSDK::Membership::User?
|
|
112
122
|
}
|
|
113
123
|
|
|
124
|
+
type cancel_option =
|
|
125
|
+
:too_expensive
|
|
126
|
+
| :switching
|
|
127
|
+
| :missing_features
|
|
128
|
+
| :technical_issues
|
|
129
|
+
| :bad_experience
|
|
130
|
+
| :other
|
|
131
|
+
| :testing
|
|
132
|
+
|
|
133
|
+
module CancelOption
|
|
134
|
+
extend WhopSDK::Internal::Type::Enum
|
|
135
|
+
|
|
136
|
+
TOO_EXPENSIVE: :too_expensive
|
|
137
|
+
SWITCHING: :switching
|
|
138
|
+
MISSING_FEATURES: :missing_features
|
|
139
|
+
TECHNICAL_ISSUES: :technical_issues
|
|
140
|
+
BAD_EXPERIENCE: :bad_experience
|
|
141
|
+
OTHER: :other
|
|
142
|
+
TESTING: :testing
|
|
143
|
+
|
|
144
|
+
def self?.values: -> ::Array[WhopSDK::Models::Membership::cancel_option]
|
|
145
|
+
end
|
|
146
|
+
|
|
114
147
|
type company = { id: String, title: String }
|
|
115
148
|
|
|
116
149
|
class Company < WhopSDK::Internal::Type::BaseModel
|
|
@@ -123,6 +156,21 @@ module WhopSDK
|
|
|
123
156
|
def to_hash: -> { id: String, title: String }
|
|
124
157
|
end
|
|
125
158
|
|
|
159
|
+
type custom_field_response =
|
|
160
|
+
{ id: String, answer: String, question: String }
|
|
161
|
+
|
|
162
|
+
class CustomFieldResponse < WhopSDK::Internal::Type::BaseModel
|
|
163
|
+
attr_accessor id: String
|
|
164
|
+
|
|
165
|
+
attr_accessor answer: String
|
|
166
|
+
|
|
167
|
+
attr_accessor question: String
|
|
168
|
+
|
|
169
|
+
def initialize: (id: String, answer: String, question: String) -> void
|
|
170
|
+
|
|
171
|
+
def to_hash: -> { id: String, answer: String, question: String }
|
|
172
|
+
end
|
|
173
|
+
|
|
126
174
|
type member = { id: String }
|
|
127
175
|
|
|
128
176
|
class Member < WhopSDK::Internal::Type::BaseModel
|
|
@@ -165,18 +213,31 @@ module WhopSDK
|
|
|
165
213
|
def to_hash: -> { id: String }
|
|
166
214
|
end
|
|
167
215
|
|
|
168
|
-
type user =
|
|
216
|
+
type user =
|
|
217
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
169
218
|
|
|
170
219
|
class User < WhopSDK::Internal::Type::BaseModel
|
|
171
220
|
attr_accessor id: String
|
|
172
221
|
|
|
222
|
+
attr_accessor email: String?
|
|
223
|
+
|
|
173
224
|
attr_accessor name: String?
|
|
174
225
|
|
|
175
226
|
attr_accessor username: String
|
|
176
227
|
|
|
177
|
-
def initialize: (
|
|
178
|
-
|
|
179
|
-
|
|
228
|
+
def initialize: (
|
|
229
|
+
id: String,
|
|
230
|
+
email: String?,
|
|
231
|
+
name: String?,
|
|
232
|
+
username: String
|
|
233
|
+
) -> void
|
|
234
|
+
|
|
235
|
+
def to_hash: -> {
|
|
236
|
+
id: String,
|
|
237
|
+
email: String?,
|
|
238
|
+
name: String?,
|
|
239
|
+
username: String
|
|
240
|
+
}
|
|
180
241
|
end
|
|
181
242
|
end
|
|
182
243
|
end
|