whop_sdk 0.0.5 → 0.0.7
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 +28 -0
- data/README.md +4 -7
- data/lib/whop_sdk/client.rb +17 -6
- data/lib/whop_sdk/models/access_token_create_params.rb +26 -36
- data/lib/whop_sdk/models/card_brands.rb +1 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -9
- data/lib/whop_sdk/models/company.rb +1 -0
- data/lib/whop_sdk/models/currency.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/forum_post_create_params.rb +20 -1
- data/lib/whop_sdk/models/forum_post_update_params.rb +20 -1
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -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/shipment.rb +3 -3
- data/lib/whop_sdk/models/shipment_list_response.rb +3 -3
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models.rb +18 -0
- data/lib/whop_sdk/resources/access_tokens.rb +9 -7
- data/lib/whop_sdk/resources/disputes.rb +182 -0
- data/lib/whop_sdk/resources/forum_posts.rb +6 -2
- 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/access_token_create_params.rbi +34 -77
- data/rbi/whop_sdk/models/card_brands.rbi +1 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -8
- data/rbi/whop_sdk/models/company.rbi +2 -0
- data/rbi/whop_sdk/models/currency.rbi +1 -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/forum_post_create_params.rbi +42 -0
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +42 -0
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +5 -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/shipment.rbi +6 -4
- data/rbi/whop_sdk/models/shipment_list_response.rbi +6 -4
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/whop_sdk/models.rbi +18 -0
- data/rbi/whop_sdk/resources/access_tokens.rbi +19 -14
- data/rbi/whop_sdk/resources/disputes.rbi +194 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +8 -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/access_token_create_params.rbs +14 -29
- data/sig/whop_sdk/models/card_brands.rbs +2 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -5
- data/sig/whop_sdk/models/company.rbs +2 -0
- data/sig/whop_sdk/models/currency.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/forum_post_create_params.rbs +17 -1
- data/sig/whop_sdk/models/forum_post_update_params.rbs +17 -1
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +2 -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/shipment.rbs +4 -4
- data/sig/whop_sdk/models/shipment_list_response.rbs +4 -4
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models.rbs +18 -0
- data/sig/whop_sdk/resources/access_tokens.rbs +3 -3
- data/sig/whop_sdk/resources/disputes.rbs +46 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -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,51 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_list_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
after: String?,
|
|
7
|
+
before: String?,
|
|
8
|
+
direction: WhopSDK::Models::direction?,
|
|
9
|
+
first: Integer?,
|
|
10
|
+
last: Integer?
|
|
11
|
+
}
|
|
12
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class DisputeListParams < WhopSDK::Internal::Type::BaseModel
|
|
15
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor company_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor after: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor before: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor direction: WhopSDK::Models::direction?
|
|
25
|
+
|
|
26
|
+
attr_accessor first: Integer?
|
|
27
|
+
|
|
28
|
+
attr_accessor last: Integer?
|
|
29
|
+
|
|
30
|
+
def initialize: (
|
|
31
|
+
company_id: String,
|
|
32
|
+
?after: String?,
|
|
33
|
+
?before: String?,
|
|
34
|
+
?direction: WhopSDK::Models::direction?,
|
|
35
|
+
?first: Integer?,
|
|
36
|
+
?last: Integer?,
|
|
37
|
+
?request_options: WhopSDK::request_opts
|
|
38
|
+
) -> void
|
|
39
|
+
|
|
40
|
+
def to_hash: -> {
|
|
41
|
+
company_id: String,
|
|
42
|
+
after: String?,
|
|
43
|
+
before: String?,
|
|
44
|
+
direction: WhopSDK::Models::direction?,
|
|
45
|
+
first: Integer?,
|
|
46
|
+
last: Integer?,
|
|
47
|
+
request_options: WhopSDK::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
amount: Float,
|
|
7
|
+
company: WhopSDK::Models::DisputeListResponse::Company?,
|
|
8
|
+
created_at: Time?,
|
|
9
|
+
currency: WhopSDK::Models::currency,
|
|
10
|
+
editable: bool?,
|
|
11
|
+
needs_response_by: Time?,
|
|
12
|
+
payment: WhopSDK::Models::DisputeListResponse::Payment?,
|
|
13
|
+
plan: WhopSDK::Models::DisputeListResponse::Plan?,
|
|
14
|
+
product: WhopSDK::Models::DisputeListResponse::Product?,
|
|
15
|
+
reason: String?,
|
|
16
|
+
status: WhopSDK::Models::dispute_statuses,
|
|
17
|
+
visa_rdr: bool
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class DisputeListResponse < WhopSDK::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor amount: Float
|
|
24
|
+
|
|
25
|
+
attr_accessor company: WhopSDK::Models::DisputeListResponse::Company?
|
|
26
|
+
|
|
27
|
+
attr_accessor created_at: Time?
|
|
28
|
+
|
|
29
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
30
|
+
|
|
31
|
+
attr_accessor editable: bool?
|
|
32
|
+
|
|
33
|
+
attr_accessor needs_response_by: Time?
|
|
34
|
+
|
|
35
|
+
attr_accessor payment: WhopSDK::Models::DisputeListResponse::Payment?
|
|
36
|
+
|
|
37
|
+
attr_accessor plan: WhopSDK::Models::DisputeListResponse::Plan?
|
|
38
|
+
|
|
39
|
+
attr_accessor product: WhopSDK::Models::DisputeListResponse::Product?
|
|
40
|
+
|
|
41
|
+
attr_accessor reason: String?
|
|
42
|
+
|
|
43
|
+
attr_accessor status: WhopSDK::Models::dispute_statuses
|
|
44
|
+
|
|
45
|
+
attr_accessor visa_rdr: bool
|
|
46
|
+
|
|
47
|
+
def initialize: (
|
|
48
|
+
id: String,
|
|
49
|
+
amount: Float,
|
|
50
|
+
company: WhopSDK::Models::DisputeListResponse::Company?,
|
|
51
|
+
created_at: Time?,
|
|
52
|
+
currency: WhopSDK::Models::currency,
|
|
53
|
+
editable: bool?,
|
|
54
|
+
needs_response_by: Time?,
|
|
55
|
+
payment: WhopSDK::Models::DisputeListResponse::Payment?,
|
|
56
|
+
plan: WhopSDK::Models::DisputeListResponse::Plan?,
|
|
57
|
+
product: WhopSDK::Models::DisputeListResponse::Product?,
|
|
58
|
+
reason: String?,
|
|
59
|
+
status: WhopSDK::Models::dispute_statuses,
|
|
60
|
+
visa_rdr: bool
|
|
61
|
+
) -> void
|
|
62
|
+
|
|
63
|
+
def to_hash: -> {
|
|
64
|
+
id: String,
|
|
65
|
+
amount: Float,
|
|
66
|
+
company: WhopSDK::Models::DisputeListResponse::Company?,
|
|
67
|
+
created_at: Time?,
|
|
68
|
+
currency: WhopSDK::Models::currency,
|
|
69
|
+
editable: bool?,
|
|
70
|
+
needs_response_by: Time?,
|
|
71
|
+
payment: WhopSDK::Models::DisputeListResponse::Payment?,
|
|
72
|
+
plan: WhopSDK::Models::DisputeListResponse::Plan?,
|
|
73
|
+
product: WhopSDK::Models::DisputeListResponse::Product?,
|
|
74
|
+
reason: String?,
|
|
75
|
+
status: WhopSDK::Models::dispute_statuses,
|
|
76
|
+
visa_rdr: bool
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
type company = { id: String, title: String }
|
|
80
|
+
|
|
81
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
82
|
+
attr_accessor id: String
|
|
83
|
+
|
|
84
|
+
attr_accessor title: String
|
|
85
|
+
|
|
86
|
+
def initialize: (id: String, title: String) -> void
|
|
87
|
+
|
|
88
|
+
def to_hash: -> { id: String, title: String }
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
type payment = { id: String }
|
|
92
|
+
|
|
93
|
+
class Payment < WhopSDK::Internal::Type::BaseModel
|
|
94
|
+
attr_accessor id: String
|
|
95
|
+
|
|
96
|
+
def initialize: (id: String) -> void
|
|
97
|
+
|
|
98
|
+
def to_hash: -> { id: String }
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
type plan = { id: String }
|
|
102
|
+
|
|
103
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor id: String
|
|
105
|
+
|
|
106
|
+
def initialize: (id: String) -> void
|
|
107
|
+
|
|
108
|
+
def to_hash: -> { id: String }
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
type product = { id: String, title: String }
|
|
112
|
+
|
|
113
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
114
|
+
attr_accessor id: String
|
|
115
|
+
|
|
116
|
+
attr_accessor title: String
|
|
117
|
+
|
|
118
|
+
def initialize: (id: String, title: String) -> void
|
|
119
|
+
|
|
120
|
+
def to_hash: -> { id: String, title: String }
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
end
|
|
124
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DisputeRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_statuses =
|
|
4
|
+
:warning_needs_response
|
|
5
|
+
| :warning_under_review
|
|
6
|
+
| :warning_closed
|
|
7
|
+
| :needs_response
|
|
8
|
+
| :under_review
|
|
9
|
+
| :won
|
|
10
|
+
| :lost
|
|
11
|
+
| :closed
|
|
12
|
+
| :other
|
|
13
|
+
|
|
14
|
+
module DisputeStatuses
|
|
15
|
+
extend WhopSDK::Internal::Type::Enum
|
|
16
|
+
|
|
17
|
+
WARNING_NEEDS_RESPONSE: :warning_needs_response
|
|
18
|
+
WARNING_UNDER_REVIEW: :warning_under_review
|
|
19
|
+
WARNING_CLOSED: :warning_closed
|
|
20
|
+
NEEDS_RESPONSE: :needs_response
|
|
21
|
+
UNDER_REVIEW: :under_review
|
|
22
|
+
WON: :won
|
|
23
|
+
LOST: :lost
|
|
24
|
+
CLOSED: :closed
|
|
25
|
+
OTHER: :other
|
|
26
|
+
|
|
27
|
+
def self?.values: -> ::Array[WhopSDK::Models::dispute_statuses]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type dispute_submit_evidence_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DisputeSubmitEvidenceParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -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
|
|
@@ -11,7 +11,8 @@ module WhopSDK
|
|
|
11
11
|
paywall_currency: WhopSDK::Models::currency?,
|
|
12
12
|
pinned: bool?,
|
|
13
13
|
poll: WhopSDK::ForumPostCreateParams::Poll?,
|
|
14
|
-
title: String
|
|
14
|
+
title: String?,
|
|
15
|
+
visibility: WhopSDK::Models::ForumPostCreateParams::visibility?
|
|
15
16
|
}
|
|
16
17
|
& WhopSDK::Internal::Type::request_parameters
|
|
17
18
|
|
|
@@ -39,6 +40,8 @@ module WhopSDK
|
|
|
39
40
|
|
|
40
41
|
attr_accessor title: String?
|
|
41
42
|
|
|
43
|
+
attr_accessor visibility: WhopSDK::Models::ForumPostCreateParams::visibility?
|
|
44
|
+
|
|
42
45
|
def initialize: (
|
|
43
46
|
experience_id: String,
|
|
44
47
|
?attachments: ::Array[WhopSDK::Models::ForumPostCreateParams::attachment]?,
|
|
@@ -50,6 +53,7 @@ module WhopSDK
|
|
|
50
53
|
?pinned: bool?,
|
|
51
54
|
?poll: WhopSDK::ForumPostCreateParams::Poll?,
|
|
52
55
|
?title: String?,
|
|
56
|
+
?visibility: WhopSDK::Models::ForumPostCreateParams::visibility?,
|
|
53
57
|
?request_options: WhopSDK::request_opts
|
|
54
58
|
) -> void
|
|
55
59
|
|
|
@@ -64,6 +68,7 @@ module WhopSDK
|
|
|
64
68
|
pinned: bool?,
|
|
65
69
|
poll: WhopSDK::ForumPostCreateParams::Poll?,
|
|
66
70
|
title: String?,
|
|
71
|
+
visibility: WhopSDK::Models::ForumPostCreateParams::visibility?,
|
|
67
72
|
request_options: WhopSDK::RequestOptions
|
|
68
73
|
}
|
|
69
74
|
|
|
@@ -124,6 +129,17 @@ module WhopSDK
|
|
|
124
129
|
def to_hash: -> { id: String, text: String }
|
|
125
130
|
end
|
|
126
131
|
end
|
|
132
|
+
|
|
133
|
+
type visibility = :members_only | :globally_visible
|
|
134
|
+
|
|
135
|
+
module Visibility
|
|
136
|
+
extend WhopSDK::Internal::Type::Enum
|
|
137
|
+
|
|
138
|
+
MEMBERS_ONLY: :members_only
|
|
139
|
+
GLOBALLY_VISIBLE: :globally_visible
|
|
140
|
+
|
|
141
|
+
def self?.values: -> ::Array[WhopSDK::Models::ForumPostCreateParams::visibility]
|
|
142
|
+
end
|
|
127
143
|
end
|
|
128
144
|
end
|
|
129
145
|
end
|
|
@@ -5,7 +5,8 @@ module WhopSDK
|
|
|
5
5
|
attachments: ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]?,
|
|
6
6
|
content: String?,
|
|
7
7
|
is_pinned: bool?,
|
|
8
|
-
title: String
|
|
8
|
+
title: String?,
|
|
9
|
+
visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?
|
|
9
10
|
}
|
|
10
11
|
& WhopSDK::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module WhopSDK
|
|
|
21
22
|
|
|
22
23
|
attr_accessor title: String?
|
|
23
24
|
|
|
25
|
+
attr_accessor visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
?attachments: ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]?,
|
|
26
29
|
?content: String?,
|
|
27
30
|
?is_pinned: bool?,
|
|
28
31
|
?title: String?,
|
|
32
|
+
?visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?,
|
|
29
33
|
?request_options: WhopSDK::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module WhopSDK
|
|
|
34
38
|
content: String?,
|
|
35
39
|
is_pinned: bool?,
|
|
36
40
|
title: String?,
|
|
41
|
+
visibility: WhopSDK::Models::ForumPostUpdateParams::visibility?,
|
|
37
42
|
request_options: WhopSDK::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -67,6 +72,17 @@ module WhopSDK
|
|
|
67
72
|
|
|
68
73
|
def self?.variants: -> ::Array[WhopSDK::Models::ForumPostUpdateParams::attachment]
|
|
69
74
|
end
|
|
75
|
+
|
|
76
|
+
type visibility = :members_only | :globally_visible
|
|
77
|
+
|
|
78
|
+
module Visibility
|
|
79
|
+
extend WhopSDK::Internal::Type::Enum
|
|
80
|
+
|
|
81
|
+
MEMBERS_ONLY: :members_only
|
|
82
|
+
GLOBALLY_VISIBLE: :globally_visible
|
|
83
|
+
|
|
84
|
+
def self?.values: -> ::Array[WhopSDK::Models::ForumPostUpdateParams::visibility]
|
|
85
|
+
end
|
|
70
86
|
end
|
|
71
87
|
end
|
|
72
88
|
end
|
|
@@ -80,6 +80,7 @@ module WhopSDK
|
|
|
80
80
|
|
|
81
81
|
type ledger_account_audit_status =
|
|
82
82
|
:pending
|
|
83
|
+
| :pending_ai_review
|
|
83
84
|
| :approved
|
|
84
85
|
| :reserves_imposed
|
|
85
86
|
| :suspended
|
|
@@ -95,6 +96,7 @@ module WhopSDK
|
|
|
95
96
|
extend WhopSDK::Internal::Type::Enum
|
|
96
97
|
|
|
97
98
|
PENDING: :pending
|
|
99
|
+
PENDING_AI_REVIEW: :pending_ai_review
|
|
98
100
|
APPROVED: :approved
|
|
99
101
|
RESERVES_IMPOSED: :reserves_imposed
|
|
100
102
|
SUSPENDED: :suspended
|
|
@@ -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
|