whop_sdk 0.0.5 → 0.0.6
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 +15 -0
- data/README.md +4 -7
- data/lib/whop_sdk/client.rb +17 -6
- data/lib/whop_sdk/models/company.rb +1 -0
- data/lib/whop_sdk/models/dispute.rb +672 -0
- data/lib/whop_sdk/models/dispute_created_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/dispute_list_params.rb +62 -0
- data/lib/whop_sdk/models/dispute_list_response.rb +187 -0
- data/lib/whop_sdk/models/dispute_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/dispute_statuses.rb +23 -0
- data/lib/whop_sdk/models/dispute_submit_evidence_params.rb +14 -0
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +342 -0
- data/lib/whop_sdk/models/dispute_updated_webhook_event.rb +48 -0
- data/lib/whop_sdk/models/notification_create_params.rb +88 -0
- data/lib/whop_sdk/models/notification_create_response.rb +19 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models.rb +18 -0
- data/lib/whop_sdk/resources/disputes.rb +182 -0
- data/lib/whop_sdk/resources/notifications.rb +53 -0
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +13 -0
- data/rbi/whop_sdk/client.rbi +11 -2
- data/rbi/whop_sdk/models/company.rbi +2 -0
- data/rbi/whop_sdk/models/dispute.rbi +938 -0
- data/rbi/whop_sdk/models/dispute_created_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +83 -0
- data/rbi/whop_sdk/models/dispute_list_response.rbi +287 -0
- data/rbi/whop_sdk/models/dispute_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/dispute_statuses.rbi +32 -0
- data/rbi/whop_sdk/models/dispute_submit_evidence_params.rbi +30 -0
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +566 -0
- data/rbi/whop_sdk/models/dispute_updated_webhook_event.rbi +72 -0
- data/rbi/whop_sdk/models/notification_create_params.rbi +113 -0
- data/rbi/whop_sdk/models/notification_create_response.rbi +31 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/whop_sdk/models.rbi +18 -0
- data/rbi/whop_sdk/resources/disputes.rbi +194 -0
- data/rbi/whop_sdk/resources/notifications.rbi +54 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
- data/sig/whop_sdk/client.rbs +5 -1
- data/sig/whop_sdk/models/company.rbs +2 -0
- data/sig/whop_sdk/models/dispute.rbs +437 -0
- data/sig/whop_sdk/models/dispute_created_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +51 -0
- data/sig/whop_sdk/models/dispute_list_response.rbs +124 -0
- data/sig/whop_sdk/models/dispute_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/dispute_statuses.rbs +30 -0
- data/sig/whop_sdk/models/dispute_submit_evidence_params.rbs +15 -0
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +215 -0
- data/sig/whop_sdk/models/dispute_updated_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/notification_create_params.rbs +61 -0
- data/sig/whop_sdk/models/notification_create_response.rbs +13 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models.rbs +18 -0
- data/sig/whop_sdk/resources/disputes.rbs +46 -0
- data/sig/whop_sdk/resources/notifications.rbs +19 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -1
- metadata +41 -2
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_update_evidence_params =
|
|
4
|
+
{
|
|
5
|
+
access_activity_log: String?,
|
|
6
|
+
billing_address: String?,
|
|
7
|
+
cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
|
|
8
|
+
cancellation_policy_disclosure: String?,
|
|
9
|
+
customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
|
|
10
|
+
customer_email_address: String?,
|
|
11
|
+
customer_name: String?,
|
|
12
|
+
notes: String?,
|
|
13
|
+
product_description: String?,
|
|
14
|
+
refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
|
|
15
|
+
refund_policy_disclosure: String?,
|
|
16
|
+
refund_refusal_explanation: String?,
|
|
17
|
+
service_date: String?,
|
|
18
|
+
uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
|
|
19
|
+
}
|
|
20
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
21
|
+
|
|
22
|
+
class DisputeUpdateEvidenceParams < WhopSDK::Internal::Type::BaseModel
|
|
23
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
24
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
25
|
+
|
|
26
|
+
attr_accessor access_activity_log: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor billing_address: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?
|
|
31
|
+
|
|
32
|
+
attr_accessor cancellation_policy_disclosure: String?
|
|
33
|
+
|
|
34
|
+
attr_accessor customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?
|
|
35
|
+
|
|
36
|
+
attr_accessor customer_email_address: String?
|
|
37
|
+
|
|
38
|
+
attr_accessor customer_name: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor notes: String?
|
|
41
|
+
|
|
42
|
+
attr_accessor product_description: String?
|
|
43
|
+
|
|
44
|
+
attr_accessor refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?
|
|
45
|
+
|
|
46
|
+
attr_accessor refund_policy_disclosure: String?
|
|
47
|
+
|
|
48
|
+
attr_accessor refund_refusal_explanation: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor service_date: String?
|
|
51
|
+
|
|
52
|
+
attr_accessor uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?
|
|
53
|
+
|
|
54
|
+
def initialize: (
|
|
55
|
+
?access_activity_log: String?,
|
|
56
|
+
?billing_address: String?,
|
|
57
|
+
?cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
|
|
58
|
+
?cancellation_policy_disclosure: String?,
|
|
59
|
+
?customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
|
|
60
|
+
?customer_email_address: String?,
|
|
61
|
+
?customer_name: String?,
|
|
62
|
+
?notes: String?,
|
|
63
|
+
?product_description: String?,
|
|
64
|
+
?refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
|
|
65
|
+
?refund_policy_disclosure: String?,
|
|
66
|
+
?refund_refusal_explanation: String?,
|
|
67
|
+
?service_date: String?,
|
|
68
|
+
?uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
|
|
69
|
+
?request_options: WhopSDK::request_opts
|
|
70
|
+
) -> void
|
|
71
|
+
|
|
72
|
+
def to_hash: -> {
|
|
73
|
+
access_activity_log: String?,
|
|
74
|
+
billing_address: String?,
|
|
75
|
+
cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
|
|
76
|
+
cancellation_policy_disclosure: String?,
|
|
77
|
+
customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
|
|
78
|
+
customer_email_address: String?,
|
|
79
|
+
customer_name: String?,
|
|
80
|
+
notes: String?,
|
|
81
|
+
product_description: String?,
|
|
82
|
+
refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
|
|
83
|
+
refund_policy_disclosure: String?,
|
|
84
|
+
refund_refusal_explanation: String?,
|
|
85
|
+
service_date: String?,
|
|
86
|
+
uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
|
|
87
|
+
request_options: WhopSDK::RequestOptions
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
type cancellation_policy_attachment =
|
|
91
|
+
WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithDirectUploadID
|
|
92
|
+
| WhopSDK::DisputeUpdateEvidenceParams::CancellationPolicyAttachment::AttachmentInputWithID
|
|
93
|
+
|
|
94
|
+
module CancellationPolicyAttachment
|
|
95
|
+
extend WhopSDK::Internal::Type::Union
|
|
96
|
+
|
|
97
|
+
type attachment_input_with_direct_upload_id =
|
|
98
|
+
{ direct_upload_id: String }
|
|
99
|
+
|
|
100
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
101
|
+
attr_accessor direct_upload_id: String
|
|
102
|
+
|
|
103
|
+
def initialize: (direct_upload_id: String) -> void
|
|
104
|
+
|
|
105
|
+
def to_hash: -> { direct_upload_id: String }
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
type attachment_input_with_id = { id: String }
|
|
109
|
+
|
|
110
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
111
|
+
attr_accessor id: String
|
|
112
|
+
|
|
113
|
+
def initialize: (id: String) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> { id: String }
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment]
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
type customer_communication_attachment =
|
|
122
|
+
WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithDirectUploadID
|
|
123
|
+
| WhopSDK::DisputeUpdateEvidenceParams::CustomerCommunicationAttachment::AttachmentInputWithID
|
|
124
|
+
|
|
125
|
+
module CustomerCommunicationAttachment
|
|
126
|
+
extend WhopSDK::Internal::Type::Union
|
|
127
|
+
|
|
128
|
+
type attachment_input_with_direct_upload_id =
|
|
129
|
+
{ direct_upload_id: String }
|
|
130
|
+
|
|
131
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
132
|
+
attr_accessor direct_upload_id: String
|
|
133
|
+
|
|
134
|
+
def initialize: (direct_upload_id: String) -> void
|
|
135
|
+
|
|
136
|
+
def to_hash: -> { direct_upload_id: String }
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
type attachment_input_with_id = { id: String }
|
|
140
|
+
|
|
141
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
142
|
+
attr_accessor id: String
|
|
143
|
+
|
|
144
|
+
def initialize: (id: String) -> void
|
|
145
|
+
|
|
146
|
+
def to_hash: -> { id: String }
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
type refund_policy_attachment =
|
|
153
|
+
WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithDirectUploadID
|
|
154
|
+
| WhopSDK::DisputeUpdateEvidenceParams::RefundPolicyAttachment::AttachmentInputWithID
|
|
155
|
+
|
|
156
|
+
module RefundPolicyAttachment
|
|
157
|
+
extend WhopSDK::Internal::Type::Union
|
|
158
|
+
|
|
159
|
+
type attachment_input_with_direct_upload_id =
|
|
160
|
+
{ direct_upload_id: String }
|
|
161
|
+
|
|
162
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
163
|
+
attr_accessor direct_upload_id: String
|
|
164
|
+
|
|
165
|
+
def initialize: (direct_upload_id: String) -> void
|
|
166
|
+
|
|
167
|
+
def to_hash: -> { direct_upload_id: String }
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
type attachment_input_with_id = { id: String }
|
|
171
|
+
|
|
172
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
173
|
+
attr_accessor id: String
|
|
174
|
+
|
|
175
|
+
def initialize: (id: String) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> { id: String }
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment]
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
type uncategorized_attachment =
|
|
184
|
+
WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithDirectUploadID
|
|
185
|
+
| WhopSDK::DisputeUpdateEvidenceParams::UncategorizedAttachment::AttachmentInputWithID
|
|
186
|
+
|
|
187
|
+
module UncategorizedAttachment
|
|
188
|
+
extend WhopSDK::Internal::Type::Union
|
|
189
|
+
|
|
190
|
+
type attachment_input_with_direct_upload_id =
|
|
191
|
+
{ direct_upload_id: String }
|
|
192
|
+
|
|
193
|
+
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
194
|
+
attr_accessor direct_upload_id: String
|
|
195
|
+
|
|
196
|
+
def initialize: (direct_upload_id: String) -> void
|
|
197
|
+
|
|
198
|
+
def to_hash: -> { direct_upload_id: String }
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
type attachment_input_with_id = { id: String }
|
|
202
|
+
|
|
203
|
+
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
204
|
+
attr_accessor id: String
|
|
205
|
+
|
|
206
|
+
def initialize: (id: String) -> void
|
|
207
|
+
|
|
208
|
+
def to_hash: -> { id: String }
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
def self?.variants: -> ::Array[WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment]
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
end
|
|
215
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_updated_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::Dispute,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"dispute.updated"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class DisputeUpdatedWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::Dispute
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"dispute.updated"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::Dispute,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"dispute.updated"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::Dispute,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"dispute.updated"
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type notification_create_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
content: String,
|
|
7
|
+
title: String,
|
|
8
|
+
icon_user_id: String?,
|
|
9
|
+
rest_path: String?,
|
|
10
|
+
subtitle: String?,
|
|
11
|
+
user_ids: ::Array[String]?,
|
|
12
|
+
experience_id: String
|
|
13
|
+
}
|
|
14
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class NotificationCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor company_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor content: String
|
|
23
|
+
|
|
24
|
+
attr_accessor title: String
|
|
25
|
+
|
|
26
|
+
attr_accessor icon_user_id: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor rest_path: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor subtitle: String?
|
|
31
|
+
|
|
32
|
+
attr_accessor user_ids: ::Array[String]?
|
|
33
|
+
|
|
34
|
+
attr_accessor experience_id: String
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
company_id: String,
|
|
38
|
+
content: String,
|
|
39
|
+
title: String,
|
|
40
|
+
experience_id: String,
|
|
41
|
+
?icon_user_id: String?,
|
|
42
|
+
?rest_path: String?,
|
|
43
|
+
?subtitle: String?,
|
|
44
|
+
?user_ids: ::Array[String]?,
|
|
45
|
+
?request_options: WhopSDK::request_opts
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
company_id: String,
|
|
50
|
+
content: String,
|
|
51
|
+
title: String,
|
|
52
|
+
icon_user_id: String?,
|
|
53
|
+
rest_path: String?,
|
|
54
|
+
subtitle: String?,
|
|
55
|
+
user_ids: ::Array[String]?,
|
|
56
|
+
experience_id: String,
|
|
57
|
+
request_options: WhopSDK::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type notification_create_response = { success: bool }
|
|
4
|
+
|
|
5
|
+
class NotificationCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor success: bool
|
|
7
|
+
|
|
8
|
+
def initialize: (success: bool) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { success: bool }
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
@@ -15,6 +15,8 @@ module WhopSDK
|
|
|
15
15
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
16
16
|
| WhopSDK::PaymentFailedWebhookEvent
|
|
17
17
|
| WhopSDK::PaymentPendingWebhookEvent
|
|
18
|
+
| WhopSDK::DisputeCreatedWebhookEvent
|
|
19
|
+
| WhopSDK::DisputeUpdatedWebhookEvent
|
|
18
20
|
|
|
19
21
|
module UnwrapWebhookEvent
|
|
20
22
|
extend WhopSDK::Internal::Type::Union
|
data/sig/whop_sdk/models.rbs
CHANGED
|
@@ -129,6 +129,22 @@ module WhopSDK
|
|
|
129
129
|
|
|
130
130
|
module Direction = WhopSDK::Models::Direction
|
|
131
131
|
|
|
132
|
+
class Dispute = WhopSDK::Models::Dispute
|
|
133
|
+
|
|
134
|
+
class DisputeCreatedWebhookEvent = WhopSDK::Models::DisputeCreatedWebhookEvent
|
|
135
|
+
|
|
136
|
+
class DisputeListParams = WhopSDK::Models::DisputeListParams
|
|
137
|
+
|
|
138
|
+
class DisputeRetrieveParams = WhopSDK::Models::DisputeRetrieveParams
|
|
139
|
+
|
|
140
|
+
module DisputeStatuses = WhopSDK::Models::DisputeStatuses
|
|
141
|
+
|
|
142
|
+
class DisputeSubmitEvidenceParams = WhopSDK::Models::DisputeSubmitEvidenceParams
|
|
143
|
+
|
|
144
|
+
class DisputeUpdatedWebhookEvent = WhopSDK::Models::DisputeUpdatedWebhookEvent
|
|
145
|
+
|
|
146
|
+
class DisputeUpdateEvidenceParams = WhopSDK::Models::DisputeUpdateEvidenceParams
|
|
147
|
+
|
|
132
148
|
module DmsPostTypes = WhopSDK::Models::DmsPostTypes
|
|
133
149
|
|
|
134
150
|
module EmailNotificationPreferences = WhopSDK::Models::EmailNotificationPreferences
|
|
@@ -267,6 +283,8 @@ module WhopSDK
|
|
|
267
283
|
|
|
268
284
|
class MessageUpdateParams = WhopSDK::Models::MessageUpdateParams
|
|
269
285
|
|
|
286
|
+
class NotificationCreateParams = WhopSDK::Models::NotificationCreateParams
|
|
287
|
+
|
|
270
288
|
class PageInfo = WhopSDK::Models::PageInfo
|
|
271
289
|
|
|
272
290
|
class Payment = WhopSDK::Models::Payment
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class Disputes
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String id,
|
|
6
|
+
?request_options: WhopSDK::request_opts
|
|
7
|
+
) -> WhopSDK::Dispute
|
|
8
|
+
|
|
9
|
+
def list: (
|
|
10
|
+
company_id: String,
|
|
11
|
+
?after: String?,
|
|
12
|
+
?before: String?,
|
|
13
|
+
?direction: WhopSDK::Models::direction?,
|
|
14
|
+
?first: Integer?,
|
|
15
|
+
?last: Integer?,
|
|
16
|
+
?request_options: WhopSDK::request_opts
|
|
17
|
+
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::DisputeListResponse]
|
|
18
|
+
|
|
19
|
+
def submit_evidence: (
|
|
20
|
+
String id,
|
|
21
|
+
?request_options: WhopSDK::request_opts
|
|
22
|
+
) -> WhopSDK::Dispute
|
|
23
|
+
|
|
24
|
+
def update_evidence: (
|
|
25
|
+
String id,
|
|
26
|
+
?access_activity_log: String?,
|
|
27
|
+
?billing_address: String?,
|
|
28
|
+
?cancellation_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::cancellation_policy_attachment?,
|
|
29
|
+
?cancellation_policy_disclosure: String?,
|
|
30
|
+
?customer_communication_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::customer_communication_attachment?,
|
|
31
|
+
?customer_email_address: String?,
|
|
32
|
+
?customer_name: String?,
|
|
33
|
+
?notes: String?,
|
|
34
|
+
?product_description: String?,
|
|
35
|
+
?refund_policy_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::refund_policy_attachment?,
|
|
36
|
+
?refund_policy_disclosure: String?,
|
|
37
|
+
?refund_refusal_explanation: String?,
|
|
38
|
+
?service_date: String?,
|
|
39
|
+
?uncategorized_attachment: WhopSDK::Models::DisputeUpdateEvidenceParams::uncategorized_attachment?,
|
|
40
|
+
?request_options: WhopSDK::request_opts
|
|
41
|
+
) -> WhopSDK::Dispute
|
|
42
|
+
|
|
43
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class Notifications
|
|
4
|
+
def create: (
|
|
5
|
+
company_id: String,
|
|
6
|
+
content: String,
|
|
7
|
+
title: String,
|
|
8
|
+
experience_id: String,
|
|
9
|
+
?icon_user_id: String?,
|
|
10
|
+
?rest_path: String?,
|
|
11
|
+
?subtitle: String?,
|
|
12
|
+
?user_ids: ::Array[String]?,
|
|
13
|
+
?request_options: WhopSDK::request_opts
|
|
14
|
+
) -> WhopSDK::Models::NotificationCreateResponse
|
|
15
|
+
|
|
16
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -16,7 +16,9 @@ module WhopSDK
|
|
|
16
16
|
| WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
17
17
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
18
18
|
| WhopSDK::PaymentFailedWebhookEvent
|
|
19
|
-
| WhopSDK::PaymentPendingWebhookEvent
|
|
19
|
+
| WhopSDK::PaymentPendingWebhookEvent
|
|
20
|
+
| WhopSDK::DisputeCreatedWebhookEvent
|
|
21
|
+
| WhopSDK::DisputeUpdatedWebhookEvent)
|
|
20
22
|
|
|
21
23
|
def initialize: (client: WhopSDK::Client) -> void
|
|
22
24
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -166,6 +166,15 @@ files:
|
|
|
166
166
|
- lib/whop_sdk/models/currency.rb
|
|
167
167
|
- lib/whop_sdk/models/custom_cta.rb
|
|
168
168
|
- lib/whop_sdk/models/direction.rb
|
|
169
|
+
- lib/whop_sdk/models/dispute.rb
|
|
170
|
+
- lib/whop_sdk/models/dispute_created_webhook_event.rb
|
|
171
|
+
- lib/whop_sdk/models/dispute_list_params.rb
|
|
172
|
+
- lib/whop_sdk/models/dispute_list_response.rb
|
|
173
|
+
- lib/whop_sdk/models/dispute_retrieve_params.rb
|
|
174
|
+
- lib/whop_sdk/models/dispute_statuses.rb
|
|
175
|
+
- lib/whop_sdk/models/dispute_submit_evidence_params.rb
|
|
176
|
+
- lib/whop_sdk/models/dispute_update_evidence_params.rb
|
|
177
|
+
- lib/whop_sdk/models/dispute_updated_webhook_event.rb
|
|
169
178
|
- lib/whop_sdk/models/dms_post_types.rb
|
|
170
179
|
- lib/whop_sdk/models/email_notification_preferences.rb
|
|
171
180
|
- lib/whop_sdk/models/embed_type.rb
|
|
@@ -247,6 +256,8 @@ files:
|
|
|
247
256
|
- lib/whop_sdk/models/message_list_response.rb
|
|
248
257
|
- lib/whop_sdk/models/message_retrieve_params.rb
|
|
249
258
|
- lib/whop_sdk/models/message_update_params.rb
|
|
259
|
+
- lib/whop_sdk/models/notification_create_params.rb
|
|
260
|
+
- lib/whop_sdk/models/notification_create_response.rb
|
|
250
261
|
- lib/whop_sdk/models/page_info.rb
|
|
251
262
|
- lib/whop_sdk/models/payment.rb
|
|
252
263
|
- lib/whop_sdk/models/payment_failed_webhook_event.rb
|
|
@@ -342,6 +353,7 @@ files:
|
|
|
342
353
|
- lib/whop_sdk/resources/course_lessons.rb
|
|
343
354
|
- lib/whop_sdk/resources/course_students.rb
|
|
344
355
|
- lib/whop_sdk/resources/courses.rb
|
|
356
|
+
- lib/whop_sdk/resources/disputes.rb
|
|
345
357
|
- lib/whop_sdk/resources/entries.rb
|
|
346
358
|
- lib/whop_sdk/resources/experiences.rb
|
|
347
359
|
- lib/whop_sdk/resources/forum_posts.rb
|
|
@@ -351,6 +363,7 @@ files:
|
|
|
351
363
|
- lib/whop_sdk/resources/members.rb
|
|
352
364
|
- lib/whop_sdk/resources/memberships.rb
|
|
353
365
|
- lib/whop_sdk/resources/messages.rb
|
|
366
|
+
- lib/whop_sdk/resources/notifications.rb
|
|
354
367
|
- lib/whop_sdk/resources/payments.rb
|
|
355
368
|
- lib/whop_sdk/resources/plans.rb
|
|
356
369
|
- lib/whop_sdk/resources/products.rb
|
|
@@ -465,6 +478,15 @@ files:
|
|
|
465
478
|
- rbi/whop_sdk/models/currency.rbi
|
|
466
479
|
- rbi/whop_sdk/models/custom_cta.rbi
|
|
467
480
|
- rbi/whop_sdk/models/direction.rbi
|
|
481
|
+
- rbi/whop_sdk/models/dispute.rbi
|
|
482
|
+
- rbi/whop_sdk/models/dispute_created_webhook_event.rbi
|
|
483
|
+
- rbi/whop_sdk/models/dispute_list_params.rbi
|
|
484
|
+
- rbi/whop_sdk/models/dispute_list_response.rbi
|
|
485
|
+
- rbi/whop_sdk/models/dispute_retrieve_params.rbi
|
|
486
|
+
- rbi/whop_sdk/models/dispute_statuses.rbi
|
|
487
|
+
- rbi/whop_sdk/models/dispute_submit_evidence_params.rbi
|
|
488
|
+
- rbi/whop_sdk/models/dispute_update_evidence_params.rbi
|
|
489
|
+
- rbi/whop_sdk/models/dispute_updated_webhook_event.rbi
|
|
468
490
|
- rbi/whop_sdk/models/dms_post_types.rbi
|
|
469
491
|
- rbi/whop_sdk/models/email_notification_preferences.rbi
|
|
470
492
|
- rbi/whop_sdk/models/embed_type.rbi
|
|
@@ -546,6 +568,8 @@ files:
|
|
|
546
568
|
- rbi/whop_sdk/models/message_list_response.rbi
|
|
547
569
|
- rbi/whop_sdk/models/message_retrieve_params.rbi
|
|
548
570
|
- rbi/whop_sdk/models/message_update_params.rbi
|
|
571
|
+
- rbi/whop_sdk/models/notification_create_params.rbi
|
|
572
|
+
- rbi/whop_sdk/models/notification_create_response.rbi
|
|
549
573
|
- rbi/whop_sdk/models/page_info.rbi
|
|
550
574
|
- rbi/whop_sdk/models/payment.rbi
|
|
551
575
|
- rbi/whop_sdk/models/payment_failed_webhook_event.rbi
|
|
@@ -641,6 +665,7 @@ files:
|
|
|
641
665
|
- rbi/whop_sdk/resources/course_lessons.rbi
|
|
642
666
|
- rbi/whop_sdk/resources/course_students.rbi
|
|
643
667
|
- rbi/whop_sdk/resources/courses.rbi
|
|
668
|
+
- rbi/whop_sdk/resources/disputes.rbi
|
|
644
669
|
- rbi/whop_sdk/resources/entries.rbi
|
|
645
670
|
- rbi/whop_sdk/resources/experiences.rbi
|
|
646
671
|
- rbi/whop_sdk/resources/forum_posts.rbi
|
|
@@ -650,6 +675,7 @@ files:
|
|
|
650
675
|
- rbi/whop_sdk/resources/members.rbi
|
|
651
676
|
- rbi/whop_sdk/resources/memberships.rbi
|
|
652
677
|
- rbi/whop_sdk/resources/messages.rbi
|
|
678
|
+
- rbi/whop_sdk/resources/notifications.rbi
|
|
653
679
|
- rbi/whop_sdk/resources/payments.rbi
|
|
654
680
|
- rbi/whop_sdk/resources/plans.rbi
|
|
655
681
|
- rbi/whop_sdk/resources/products.rbi
|
|
@@ -763,6 +789,15 @@ files:
|
|
|
763
789
|
- sig/whop_sdk/models/currency.rbs
|
|
764
790
|
- sig/whop_sdk/models/custom_cta.rbs
|
|
765
791
|
- sig/whop_sdk/models/direction.rbs
|
|
792
|
+
- sig/whop_sdk/models/dispute.rbs
|
|
793
|
+
- sig/whop_sdk/models/dispute_created_webhook_event.rbs
|
|
794
|
+
- sig/whop_sdk/models/dispute_list_params.rbs
|
|
795
|
+
- sig/whop_sdk/models/dispute_list_response.rbs
|
|
796
|
+
- sig/whop_sdk/models/dispute_retrieve_params.rbs
|
|
797
|
+
- sig/whop_sdk/models/dispute_statuses.rbs
|
|
798
|
+
- sig/whop_sdk/models/dispute_submit_evidence_params.rbs
|
|
799
|
+
- sig/whop_sdk/models/dispute_update_evidence_params.rbs
|
|
800
|
+
- sig/whop_sdk/models/dispute_updated_webhook_event.rbs
|
|
766
801
|
- sig/whop_sdk/models/dms_post_types.rbs
|
|
767
802
|
- sig/whop_sdk/models/email_notification_preferences.rbs
|
|
768
803
|
- sig/whop_sdk/models/embed_type.rbs
|
|
@@ -844,6 +879,8 @@ files:
|
|
|
844
879
|
- sig/whop_sdk/models/message_list_response.rbs
|
|
845
880
|
- sig/whop_sdk/models/message_retrieve_params.rbs
|
|
846
881
|
- sig/whop_sdk/models/message_update_params.rbs
|
|
882
|
+
- sig/whop_sdk/models/notification_create_params.rbs
|
|
883
|
+
- sig/whop_sdk/models/notification_create_response.rbs
|
|
847
884
|
- sig/whop_sdk/models/page_info.rbs
|
|
848
885
|
- sig/whop_sdk/models/payment.rbs
|
|
849
886
|
- sig/whop_sdk/models/payment_failed_webhook_event.rbs
|
|
@@ -939,6 +976,7 @@ files:
|
|
|
939
976
|
- sig/whop_sdk/resources/course_lessons.rbs
|
|
940
977
|
- sig/whop_sdk/resources/course_students.rbs
|
|
941
978
|
- sig/whop_sdk/resources/courses.rbs
|
|
979
|
+
- sig/whop_sdk/resources/disputes.rbs
|
|
942
980
|
- sig/whop_sdk/resources/entries.rbs
|
|
943
981
|
- sig/whop_sdk/resources/experiences.rbs
|
|
944
982
|
- sig/whop_sdk/resources/forum_posts.rbs
|
|
@@ -948,6 +986,7 @@ files:
|
|
|
948
986
|
- sig/whop_sdk/resources/members.rbs
|
|
949
987
|
- sig/whop_sdk/resources/memberships.rbs
|
|
950
988
|
- sig/whop_sdk/resources/messages.rbs
|
|
989
|
+
- sig/whop_sdk/resources/notifications.rbs
|
|
951
990
|
- sig/whop_sdk/resources/payments.rbs
|
|
952
991
|
- sig/whop_sdk/resources/plans.rbs
|
|
953
992
|
- sig/whop_sdk/resources/products.rbs
|