whop_sdk 0.0.7 → 0.0.9
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 +7 -7
- data/lib/whop_sdk/client.rb +12 -0
- data/lib/whop_sdk/internal/type/base_model.rb +1 -1
- data/lib/whop_sdk/models/account_link_create_params.rb +62 -0
- data/lib/whop_sdk/models/account_link_create_response.rb +28 -0
- data/lib/whop_sdk/models/app.rb +9 -1
- data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
- data/lib/whop_sdk/models/app_list_params.rb +10 -1
- data/lib/whop_sdk/models/app_list_response.rb +9 -1
- data/lib/whop_sdk/models/app_type.rb +18 -0
- data/lib/whop_sdk/models/app_update_params.rb +9 -1
- data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration.rb +69 -7
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +73 -1
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration_list_response.rb +69 -7
- data/lib/whop_sdk/models/checkout_modes.rb +16 -0
- data/lib/whop_sdk/models/company_list_params.rb +17 -1
- data/lib/whop_sdk/models/course.rb +9 -1
- data/lib/whop_sdk/models/course_lesson_list_response.rb +9 -1
- data/lib/whop_sdk/models/course_lesson_mark_as_completed_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_mark_as_completed_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_start_params.rb +14 -0
- data/lib/whop_sdk/models/course_lesson_start_response.rb +8 -0
- data/lib/whop_sdk/models/course_lesson_submit_assessment_params.rb +52 -0
- data/lib/whop_sdk/models/course_lesson_submit_assessment_response.rb +151 -0
- data/lib/whop_sdk/models/course_list_response.rb +9 -1
- data/lib/whop_sdk/models/dispute_list_params.rb +17 -1
- data/lib/whop_sdk/models/entry_list_params.rb +17 -1
- data/lib/whop_sdk/models/experience_list_params.rb +17 -1
- data/lib/whop_sdk/models/forum_post_create_params.rb +3 -14
- data/lib/whop_sdk/models/forum_post_update_params.rb +3 -14
- data/lib/whop_sdk/models/forum_post_visibility_type.rb +16 -0
- data/lib/whop_sdk/models/invoice_list_params.rb +17 -1
- data/lib/whop_sdk/models/lesson.rb +104 -2
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payment_provider.rb +22 -0
- data/lib/whop_sdk/models/plan_create_params.rb +3 -21
- data/lib/whop_sdk/models/plan_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_update_params.rb +1 -61
- data/lib/whop_sdk/models/promo_code_list_params.rb +17 -1
- data/lib/whop_sdk/models/refund_created_webhook_event.rb +354 -0
- data/lib/whop_sdk/models/refund_list_params.rb +78 -0
- data/lib/whop_sdk/models/refund_list_response.rb +113 -0
- data/lib/whop_sdk/models/refund_reference_status.rb +17 -0
- data/lib/whop_sdk/models/refund_reference_type.rb +17 -0
- data/lib/whop_sdk/models/refund_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/refund_retrieve_response.rb +307 -0
- data/lib/whop_sdk/models/refund_status.rb +19 -0
- data/lib/whop_sdk/models/refund_updated_webhook_event.rb +354 -0
- data/lib/whop_sdk/models/review_list_params.rb +17 -1
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +5 -1
- data/lib/whop_sdk/models/withdrawal_fee_types.rb +16 -0
- data/lib/whop_sdk/models/withdrawal_list_params.rb +78 -0
- data/lib/whop_sdk/models/withdrawal_list_response.rb +87 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +320 -0
- data/lib/whop_sdk/models/withdrawal_speeds.rb +16 -0
- data/lib/whop_sdk/models/withdrawal_status.rb +21 -0
- data/lib/whop_sdk/models/withdrawal_types.rb +16 -0
- data/lib/whop_sdk/models.rb +42 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +5 -1
- data/lib/whop_sdk/resources/apps.rb +6 -2
- data/lib/whop_sdk/resources/authorized_users.rb +5 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +16 -2
- data/lib/whop_sdk/resources/companies.rb +5 -1
- data/lib/whop_sdk/resources/course_lessons.rb +64 -0
- data/lib/whop_sdk/resources/disputes.rb +5 -1
- data/lib/whop_sdk/resources/entries.rb +5 -1
- data/lib/whop_sdk/resources/experiences.rb +5 -1
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/invoices.rb +5 -1
- data/lib/whop_sdk/resources/plans.rb +7 -7
- data/lib/whop_sdk/resources/products.rb +6 -4
- data/lib/whop_sdk/resources/promo_codes.rb +5 -1
- data/lib/whop_sdk/resources/refunds.rb +82 -0
- data/lib/whop_sdk/resources/reviews.rb +5 -1
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/resources/withdrawals.rb +79 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +33 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +9 -0
- data/rbi/whop_sdk/models/account_link_create_params.rbi +101 -0
- data/rbi/whop_sdk/models/account_link_create_response.rbi +38 -0
- data/rbi/whop_sdk/models/app.rbi +8 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +13 -0
- data/rbi/whop_sdk/models/app_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/app_type.rbi +22 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +8 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration.rbi +117 -7
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +116 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_response.rbi +127 -7
- data/rbi/whop_sdk/models/checkout_modes.rbi +20 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/course.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_mark_as_completed_params.rbi +30 -0
- data/rbi/whop_sdk/models/course_lesson_mark_as_completed_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_start_params.rbi +27 -0
- data/rbi/whop_sdk/models/course_lesson_start_response.rbi +8 -0
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_params.rbi +104 -0
- data/rbi/whop_sdk/models/course_lesson_submit_assessment_response.rbi +222 -0
- data/rbi/whop_sdk/models/course_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/entry_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/experience_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +3 -37
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +3 -37
- data/rbi/whop_sdk/models/forum_post_visibility_type.rbi +27 -0
- data/rbi/whop_sdk/models/invoice_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/lesson.rbi +115 -3
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payment_provider.rbi +27 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +2 -22
- data/rbi/whop_sdk/models/plan_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +0 -110
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/refund_created_webhook_event.rbi +561 -0
- data/rbi/whop_sdk/models/refund_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/refund_list_response.rbi +155 -0
- data/rbi/whop_sdk/models/refund_reference_status.rbi +26 -0
- data/rbi/whop_sdk/models/refund_reference_type.rbi +36 -0
- data/rbi/whop_sdk/models/refund_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/refund_retrieve_response.rbi +484 -0
- data/rbi/whop_sdk/models/refund_status.rbi +24 -0
- data/rbi/whop_sdk/models/refund_updated_webhook_event.rbi +561 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -1
- data/rbi/whop_sdk/models/withdrawal_fee_types.rbi +22 -0
- data/rbi/whop_sdk/models/withdrawal_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +107 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +713 -0
- data/rbi/whop_sdk/models/withdrawal_speeds.rbi +22 -0
- data/rbi/whop_sdk/models/withdrawal_status.rbi +28 -0
- data/rbi/whop_sdk/models/withdrawal_types.rbi +20 -0
- data/rbi/whop_sdk/models.rbi +44 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +6 -0
- data/rbi/whop_sdk/resources/apps.rbi +6 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +21 -0
- data/rbi/whop_sdk/resources/companies.rbi +6 -0
- data/rbi/whop_sdk/resources/course_lessons.rbi +48 -0
- data/rbi/whop_sdk/resources/disputes.rbi +6 -0
- data/rbi/whop_sdk/resources/entries.rbi +6 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -4
- data/rbi/whop_sdk/resources/invoices.rbi +6 -0
- data/rbi/whop_sdk/resources/plans.rbi +7 -9
- data/rbi/whop_sdk/resources/products.rbi +6 -9
- data/rbi/whop_sdk/resources/promo_codes.rbi +6 -0
- data/rbi/whop_sdk/resources/refunds.rbi +74 -0
- data/rbi/whop_sdk/resources/reviews.rbi +6 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -1
- data/rbi/whop_sdk/resources/withdrawals.rbi +71 -0
- data/sig/whop_sdk/client.rbs +6 -0
- data/sig/whop_sdk/models/account_link_create_params.rbs +52 -0
- data/sig/whop_sdk/models/account_link_create_response.rbs +15 -0
- data/sig/whop_sdk/models/app.rbs +5 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_list_params.rbs +7 -0
- data/sig/whop_sdk/models/app_list_response.rbs +5 -0
- data/sig/whop_sdk/models/app_type.rbs +16 -0
- data/sig/whop_sdk/models/app_update_params.rbs +5 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration.rbs +45 -8
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +43 -1
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_list_response.rbs +45 -8
- data/sig/whop_sdk/models/checkout_modes.rbs +14 -0
- data/sig/whop_sdk/models/company_list_params.rbs +10 -0
- data/sig/whop_sdk/models/course.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_list_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_mark_as_completed_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_mark_as_completed_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_start_params.rbs +15 -0
- data/sig/whop_sdk/models/course_lesson_start_response.rbs +5 -0
- data/sig/whop_sdk/models/course_lesson_submit_assessment_params.rbs +51 -0
- data/sig/whop_sdk/models/course_lesson_submit_assessment_response.rbs +96 -0
- data/sig/whop_sdk/models/course_list_response.rbs +5 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +10 -0
- data/sig/whop_sdk/models/entry_list_params.rbs +10 -0
- data/sig/whop_sdk/models/experience_list_params.rbs +10 -0
- data/sig/whop_sdk/models/forum_post_create_params.rbs +4 -15
- data/sig/whop_sdk/models/forum_post_update_params.rbs +4 -15
- data/sig/whop_sdk/models/forum_post_visibility_type.rbs +14 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +10 -0
- data/sig/whop_sdk/models/lesson.rbs +79 -3
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payment_provider.rbs +28 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +0 -10
- data/sig/whop_sdk/models/plan_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_update_params.rbs +0 -36
- data/sig/whop_sdk/models/promo_code_list_params.rbs +10 -0
- data/sig/whop_sdk/models/refund_created_webhook_event.rbs +252 -0
- data/sig/whop_sdk/models/refund_list_params.rbs +61 -0
- data/sig/whop_sdk/models/refund_list_response.rbs +80 -0
- data/sig/whop_sdk/models/refund_reference_status.rbs +15 -0
- data/sig/whop_sdk/models/refund_reference_type.rbs +18 -0
- data/sig/whop_sdk/models/refund_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/refund_retrieve_response.rbs +215 -0
- data/sig/whop_sdk/models/refund_status.rbs +18 -0
- data/sig/whop_sdk/models/refund_updated_webhook_event.rbs +252 -0
- data/sig/whop_sdk/models/review_list_params.rbs +10 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models/withdrawal_fee_types.rbs +14 -0
- data/sig/whop_sdk/models/withdrawal_list_params.rbs +61 -0
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +60 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +297 -0
- data/sig/whop_sdk/models/withdrawal_speeds.rbs +14 -0
- data/sig/whop_sdk/models/withdrawal_status.rbs +26 -0
- data/sig/whop_sdk/models/withdrawal_types.rbs +14 -0
- data/sig/whop_sdk/models.rbs +42 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +2 -0
- data/sig/whop_sdk/resources/apps.rbs +2 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +5 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -0
- data/sig/whop_sdk/resources/course_lessons.rbs +16 -0
- data/sig/whop_sdk/resources/disputes.rbs +2 -0
- data/sig/whop_sdk/resources/entries.rbs +2 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/products.rbs +2 -1
- data/sig/whop_sdk/resources/promo_codes.rbs +2 -0
- data/sig/whop_sdk/resources/refunds.rbs +24 -0
- data/sig/whop_sdk/resources/reviews.rbs +2 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -1
- data/sig/whop_sdk/resources/withdrawals.rbs +24 -0
- metadata +98 -2
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class Refunds
|
|
6
|
+
# Retrieves a Refund by ID
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `payment:basic:read`
|
|
11
|
+
# - `member:email:read`
|
|
12
|
+
# - `member:basic:read`
|
|
13
|
+
# - `member:phone:read`
|
|
14
|
+
sig do
|
|
15
|
+
params(
|
|
16
|
+
id: String,
|
|
17
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
18
|
+
).returns(WhopSDK::Models::RefundRetrieveResponse)
|
|
19
|
+
end
|
|
20
|
+
def retrieve(
|
|
21
|
+
# The ID of the refund
|
|
22
|
+
id,
|
|
23
|
+
request_options: {}
|
|
24
|
+
)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Lists Refunds for a payment.
|
|
28
|
+
#
|
|
29
|
+
# Required permissions:
|
|
30
|
+
#
|
|
31
|
+
# - `payment:basic:read`
|
|
32
|
+
sig do
|
|
33
|
+
params(
|
|
34
|
+
payment_id: String,
|
|
35
|
+
after: T.nilable(String),
|
|
36
|
+
before: T.nilable(String),
|
|
37
|
+
created_after: T.nilable(Time),
|
|
38
|
+
created_before: T.nilable(Time),
|
|
39
|
+
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
40
|
+
first: T.nilable(Integer),
|
|
41
|
+
last: T.nilable(Integer),
|
|
42
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
43
|
+
).returns(
|
|
44
|
+
WhopSDK::Internal::CursorPage[WhopSDK::Models::RefundListResponse]
|
|
45
|
+
)
|
|
46
|
+
end
|
|
47
|
+
def list(
|
|
48
|
+
# The ID of the payment to list refunds for
|
|
49
|
+
payment_id:,
|
|
50
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
51
|
+
after: nil,
|
|
52
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
53
|
+
before: nil,
|
|
54
|
+
# The minimum creation date to filter by
|
|
55
|
+
created_after: nil,
|
|
56
|
+
# The maximum creation date to filter by
|
|
57
|
+
created_before: nil,
|
|
58
|
+
# The direction of the sort.
|
|
59
|
+
direction: nil,
|
|
60
|
+
# Returns the first _n_ elements from the list.
|
|
61
|
+
first: nil,
|
|
62
|
+
# Returns the last _n_ elements from the list.
|
|
63
|
+
last: nil,
|
|
64
|
+
request_options: {}
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @api private
|
|
69
|
+
sig { params(client: WhopSDK::Client).returns(T.attached_class) }
|
|
70
|
+
def self.new(client:)
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -23,6 +23,8 @@ module WhopSDK
|
|
|
23
23
|
product_id: String,
|
|
24
24
|
after: T.nilable(String),
|
|
25
25
|
before: T.nilable(String),
|
|
26
|
+
created_after: T.nilable(Time),
|
|
27
|
+
created_before: T.nilable(Time),
|
|
26
28
|
first: T.nilable(Integer),
|
|
27
29
|
last: T.nilable(Integer),
|
|
28
30
|
max_stars: T.nilable(Integer),
|
|
@@ -39,6 +41,10 @@ module WhopSDK
|
|
|
39
41
|
after: nil,
|
|
40
42
|
# Returns the elements in the list that come before the specified cursor.
|
|
41
43
|
before: nil,
|
|
44
|
+
# The minimum creation date to filter by
|
|
45
|
+
created_after: nil,
|
|
46
|
+
# The maximum creation date to filter by
|
|
47
|
+
created_before: nil,
|
|
42
48
|
# Returns the first _n_ elements from the list.
|
|
43
49
|
first: nil,
|
|
44
50
|
# Returns the last _n_ elements from the list.
|
|
@@ -68,6 +68,8 @@ module WhopSDK
|
|
|
68
68
|
params(
|
|
69
69
|
after: T.nilable(String),
|
|
70
70
|
before: T.nilable(String),
|
|
71
|
+
created_after: T.nilable(Time),
|
|
72
|
+
created_before: T.nilable(Time),
|
|
71
73
|
destination_id: T.nilable(String),
|
|
72
74
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
73
75
|
first: T.nilable(Integer),
|
|
@@ -84,6 +86,10 @@ module WhopSDK
|
|
|
84
86
|
after: nil,
|
|
85
87
|
# Returns the elements in the list that come before the specified cursor.
|
|
86
88
|
before: nil,
|
|
89
|
+
# The minimum creation date to filter by
|
|
90
|
+
created_after: nil,
|
|
91
|
+
# The maximum creation date to filter by
|
|
92
|
+
created_before: nil,
|
|
87
93
|
# Filter transfers to only those that were sent to this destination account.
|
|
88
94
|
# (user_xxx, biz_xxx, ldgr_xxx)
|
|
89
95
|
destination_id: nil,
|
|
@@ -21,7 +21,9 @@ module WhopSDK
|
|
|
21
21
|
WhopSDK::PaymentFailedWebhookEvent,
|
|
22
22
|
WhopSDK::PaymentPendingWebhookEvent,
|
|
23
23
|
WhopSDK::DisputeCreatedWebhookEvent,
|
|
24
|
-
WhopSDK::DisputeUpdatedWebhookEvent
|
|
24
|
+
WhopSDK::DisputeUpdatedWebhookEvent,
|
|
25
|
+
WhopSDK::RefundCreatedWebhookEvent,
|
|
26
|
+
WhopSDK::RefundUpdatedWebhookEvent
|
|
25
27
|
)
|
|
26
28
|
)
|
|
27
29
|
end
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class Withdrawals
|
|
6
|
+
# Retrieves a withdrawal by ID
|
|
7
|
+
#
|
|
8
|
+
# Required permissions:
|
|
9
|
+
#
|
|
10
|
+
# - `payout:withdrawal:read`
|
|
11
|
+
sig do
|
|
12
|
+
params(
|
|
13
|
+
id: String,
|
|
14
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
15
|
+
).returns(WhopSDK::Models::WithdrawalRetrieveResponse)
|
|
16
|
+
end
|
|
17
|
+
def retrieve(
|
|
18
|
+
# The ID of the Withdrawal
|
|
19
|
+
id,
|
|
20
|
+
request_options: {}
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# Lists withdrawals
|
|
25
|
+
#
|
|
26
|
+
# Required permissions:
|
|
27
|
+
#
|
|
28
|
+
# - `payout:withdrawal:read`
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
company_id: String,
|
|
32
|
+
after: T.nilable(String),
|
|
33
|
+
before: T.nilable(String),
|
|
34
|
+
created_after: T.nilable(Time),
|
|
35
|
+
created_before: T.nilable(Time),
|
|
36
|
+
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
37
|
+
first: T.nilable(Integer),
|
|
38
|
+
last: T.nilable(Integer),
|
|
39
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
40
|
+
).returns(
|
|
41
|
+
WhopSDK::Internal::CursorPage[WhopSDK::Models::WithdrawalListResponse]
|
|
42
|
+
)
|
|
43
|
+
end
|
|
44
|
+
def list(
|
|
45
|
+
# The ID of the company to list withdrawals for
|
|
46
|
+
company_id:,
|
|
47
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
48
|
+
after: nil,
|
|
49
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
50
|
+
before: nil,
|
|
51
|
+
# The minimum creation date to filter by
|
|
52
|
+
created_after: nil,
|
|
53
|
+
# The maximum creation date to filter by
|
|
54
|
+
created_before: nil,
|
|
55
|
+
# The direction of the sort.
|
|
56
|
+
direction: nil,
|
|
57
|
+
# Returns the first _n_ elements from the list.
|
|
58
|
+
first: nil,
|
|
59
|
+
# Returns the last _n_ elements from the list.
|
|
60
|
+
last: nil,
|
|
61
|
+
request_options: {}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# @api private
|
|
66
|
+
sig { params(client: WhopSDK::Client).returns(T.attached_class) }
|
|
67
|
+
def self.new(client:)
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -80,6 +80,12 @@ module WhopSDK
|
|
|
80
80
|
|
|
81
81
|
attr_reader disputes: WhopSDK::Resources::Disputes
|
|
82
82
|
|
|
83
|
+
attr_reader refunds: WhopSDK::Resources::Refunds
|
|
84
|
+
|
|
85
|
+
attr_reader withdrawals: WhopSDK::Resources::Withdrawals
|
|
86
|
+
|
|
87
|
+
attr_reader account_links: WhopSDK::Resources::AccountLinks
|
|
88
|
+
|
|
83
89
|
private def auth_headers: -> ::Hash[String, String]
|
|
84
90
|
|
|
85
91
|
def initialize: (
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_link_create_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
refresh_url: String,
|
|
7
|
+
return_url: String,
|
|
8
|
+
use_case: WhopSDK::Models::AccountLinkCreateParams::use_case
|
|
9
|
+
}
|
|
10
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
11
|
+
|
|
12
|
+
class AccountLinkCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
14
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
15
|
+
|
|
16
|
+
attr_accessor company_id: String
|
|
17
|
+
|
|
18
|
+
attr_accessor refresh_url: String
|
|
19
|
+
|
|
20
|
+
attr_accessor return_url: String
|
|
21
|
+
|
|
22
|
+
attr_accessor use_case: WhopSDK::Models::AccountLinkCreateParams::use_case
|
|
23
|
+
|
|
24
|
+
def initialize: (
|
|
25
|
+
company_id: String,
|
|
26
|
+
refresh_url: String,
|
|
27
|
+
return_url: String,
|
|
28
|
+
use_case: WhopSDK::Models::AccountLinkCreateParams::use_case,
|
|
29
|
+
?request_options: WhopSDK::request_opts
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
company_id: String,
|
|
34
|
+
refresh_url: String,
|
|
35
|
+
return_url: String,
|
|
36
|
+
use_case: WhopSDK::Models::AccountLinkCreateParams::use_case,
|
|
37
|
+
request_options: WhopSDK::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
type use_case = :account_onboarding | :payouts_portal
|
|
41
|
+
|
|
42
|
+
module UseCase
|
|
43
|
+
extend WhopSDK::Internal::Type::Enum
|
|
44
|
+
|
|
45
|
+
ACCOUNT_ONBOARDING: :account_onboarding
|
|
46
|
+
PAYOUTS_PORTAL: :payouts_portal
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[WhopSDK::Models::AccountLinkCreateParams::use_case]
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type account_link_create_response = { expires_at: Time, url: String }
|
|
4
|
+
|
|
5
|
+
class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor expires_at: Time
|
|
7
|
+
|
|
8
|
+
attr_accessor url: String
|
|
9
|
+
|
|
10
|
+
def initialize: (expires_at: Time, url: String) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { expires_at: Time, url: String }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
data/sig/whop_sdk/models/app.rbs
CHANGED
|
@@ -4,6 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
6
|
api_key: WhopSDK::App::APIKey?,
|
|
7
|
+
app_type: WhopSDK::Models::app_type,
|
|
7
8
|
base_url: String?,
|
|
8
9
|
company: WhopSDK::App::Company,
|
|
9
10
|
creator: WhopSDK::App::Creator,
|
|
@@ -25,6 +26,8 @@ module WhopSDK
|
|
|
25
26
|
|
|
26
27
|
attr_accessor api_key: WhopSDK::App::APIKey?
|
|
27
28
|
|
|
29
|
+
attr_accessor app_type: WhopSDK::Models::app_type
|
|
30
|
+
|
|
28
31
|
attr_accessor base_url: String?
|
|
29
32
|
|
|
30
33
|
attr_accessor company: WhopSDK::App::Company
|
|
@@ -56,6 +59,7 @@ module WhopSDK
|
|
|
56
59
|
def initialize: (
|
|
57
60
|
id: String,
|
|
58
61
|
api_key: WhopSDK::App::APIKey?,
|
|
62
|
+
app_type: WhopSDK::Models::app_type,
|
|
59
63
|
base_url: String?,
|
|
60
64
|
company: WhopSDK::App::Company,
|
|
61
65
|
creator: WhopSDK::App::Creator,
|
|
@@ -75,6 +79,7 @@ module WhopSDK
|
|
|
75
79
|
def to_hash: -> {
|
|
76
80
|
id: String,
|
|
77
81
|
api_key: WhopSDK::App::APIKey?,
|
|
82
|
+
app_type: WhopSDK::Models::app_type,
|
|
78
83
|
base_url: String?,
|
|
79
84
|
company: WhopSDK::App::Company,
|
|
80
85
|
creator: WhopSDK::App::Creator,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
app_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
first: Integer?,
|
|
9
11
|
last: Integer?,
|
|
10
12
|
platform: WhopSDK::Models::app_build_platforms?,
|
|
@@ -22,6 +24,10 @@ module WhopSDK
|
|
|
22
24
|
|
|
23
25
|
attr_accessor before: String?
|
|
24
26
|
|
|
27
|
+
attr_accessor created_after: Time?
|
|
28
|
+
|
|
29
|
+
attr_accessor created_before: Time?
|
|
30
|
+
|
|
25
31
|
attr_accessor first: Integer?
|
|
26
32
|
|
|
27
33
|
attr_accessor last: Integer?
|
|
@@ -34,6 +40,8 @@ module WhopSDK
|
|
|
34
40
|
app_id: String,
|
|
35
41
|
?after: String?,
|
|
36
42
|
?before: String?,
|
|
43
|
+
?created_after: Time?,
|
|
44
|
+
?created_before: Time?,
|
|
37
45
|
?first: Integer?,
|
|
38
46
|
?last: Integer?,
|
|
39
47
|
?platform: WhopSDK::Models::app_build_platforms?,
|
|
@@ -45,6 +53,8 @@ module WhopSDK
|
|
|
45
53
|
app_id: String,
|
|
46
54
|
after: String?,
|
|
47
55
|
before: String?,
|
|
56
|
+
created_after: Time?,
|
|
57
|
+
created_before: Time?,
|
|
48
58
|
first: Integer?,
|
|
49
59
|
last: Integer?,
|
|
50
60
|
platform: WhopSDK::Models::app_build_platforms?,
|
|
@@ -3,6 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type app_list_params =
|
|
4
4
|
{
|
|
5
5
|
after: String?,
|
|
6
|
+
app_type: WhopSDK::Models::app_type?,
|
|
6
7
|
before: String?,
|
|
7
8
|
company_id: String?,
|
|
8
9
|
direction: WhopSDK::Models::direction?,
|
|
@@ -21,6 +22,8 @@ module WhopSDK
|
|
|
21
22
|
|
|
22
23
|
attr_accessor after: String?
|
|
23
24
|
|
|
25
|
+
attr_accessor app_type: WhopSDK::Models::app_type?
|
|
26
|
+
|
|
24
27
|
attr_accessor before: String?
|
|
25
28
|
|
|
26
29
|
attr_accessor company_id: String?
|
|
@@ -41,6 +44,7 @@ module WhopSDK
|
|
|
41
44
|
|
|
42
45
|
def initialize: (
|
|
43
46
|
?after: String?,
|
|
47
|
+
?app_type: WhopSDK::Models::app_type?,
|
|
44
48
|
?before: String?,
|
|
45
49
|
?company_id: String?,
|
|
46
50
|
?direction: WhopSDK::Models::direction?,
|
|
@@ -55,6 +59,7 @@ module WhopSDK
|
|
|
55
59
|
|
|
56
60
|
def to_hash: -> {
|
|
57
61
|
after: String?,
|
|
62
|
+
app_type: WhopSDK::Models::app_type?,
|
|
58
63
|
before: String?,
|
|
59
64
|
company_id: String?,
|
|
60
65
|
direction: WhopSDK::Models::direction?,
|
|
@@ -70,6 +75,7 @@ module WhopSDK
|
|
|
70
75
|
type order =
|
|
71
76
|
:discoverable_at
|
|
72
77
|
| :total_installs_last_30_days
|
|
78
|
+
| :total_installs_last_7_days
|
|
73
79
|
| :time_spent
|
|
74
80
|
| :time_spent_last_24_hours
|
|
75
81
|
| :daily_active_users
|
|
@@ -79,6 +85,7 @@ module WhopSDK
|
|
|
79
85
|
|
|
80
86
|
DISCOVERABLE_AT: :discoverable_at
|
|
81
87
|
TOTAL_INSTALLS_LAST_30_DAYS: :total_installs_last_30_days
|
|
88
|
+
TOTAL_INSTALLS_LAST_7_DAYS: :total_installs_last_7_days
|
|
82
89
|
TIME_SPENT: :time_spent
|
|
83
90
|
TIME_SPENT_LAST_24_HOURS: :time_spent_last_24_hours
|
|
84
91
|
DAILY_ACTIVE_USERS: :daily_active_users
|
|
@@ -3,6 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type app_list_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
app_type: WhopSDK::Models::app_type,
|
|
6
7
|
base_url: String?,
|
|
7
8
|
company: WhopSDK::Models::AppListResponse::Company,
|
|
8
9
|
creator: WhopSDK::Models::AppListResponse::Creator,
|
|
@@ -20,6 +21,8 @@ module WhopSDK
|
|
|
20
21
|
class AppListResponse < WhopSDK::Internal::Type::BaseModel
|
|
21
22
|
attr_accessor id: String
|
|
22
23
|
|
|
24
|
+
attr_accessor app_type: WhopSDK::Models::app_type
|
|
25
|
+
|
|
23
26
|
attr_accessor base_url: String?
|
|
24
27
|
|
|
25
28
|
attr_accessor company: WhopSDK::Models::AppListResponse::Company
|
|
@@ -46,6 +49,7 @@ module WhopSDK
|
|
|
46
49
|
|
|
47
50
|
def initialize: (
|
|
48
51
|
id: String,
|
|
52
|
+
app_type: WhopSDK::Models::app_type,
|
|
49
53
|
base_url: String?,
|
|
50
54
|
company: WhopSDK::Models::AppListResponse::Company,
|
|
51
55
|
creator: WhopSDK::Models::AppListResponse::Creator,
|
|
@@ -62,6 +66,7 @@ module WhopSDK
|
|
|
62
66
|
|
|
63
67
|
def to_hash: -> {
|
|
64
68
|
id: String,
|
|
69
|
+
app_type: WhopSDK::Models::app_type,
|
|
65
70
|
base_url: String?,
|
|
66
71
|
company: WhopSDK::Models::AppListResponse::Company,
|
|
67
72
|
creator: WhopSDK::Models::AppListResponse::Creator,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type app_type = :b2b_app | :b2c_app | :company_app | :component
|
|
4
|
+
|
|
5
|
+
module AppType
|
|
6
|
+
extend WhopSDK::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
B2B_APP: :b2b_app
|
|
9
|
+
B2C_APP: :b2c_app
|
|
10
|
+
COMPANY_APP: :company_app
|
|
11
|
+
COMPONENT: :component
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[WhopSDK::Models::app_type]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -3,6 +3,7 @@ module WhopSDK
|
|
|
3
3
|
type app_update_params =
|
|
4
4
|
{
|
|
5
5
|
app_store_description: String?,
|
|
6
|
+
app_type: WhopSDK::Models::app_type?,
|
|
6
7
|
base_url: String?,
|
|
7
8
|
dashboard_path: String?,
|
|
8
9
|
description: String?,
|
|
@@ -21,6 +22,8 @@ module WhopSDK
|
|
|
21
22
|
|
|
22
23
|
attr_accessor app_store_description: String?
|
|
23
24
|
|
|
25
|
+
attr_accessor app_type: WhopSDK::Models::app_type?
|
|
26
|
+
|
|
24
27
|
attr_accessor base_url: String?
|
|
25
28
|
|
|
26
29
|
attr_accessor dashboard_path: String?
|
|
@@ -41,6 +44,7 @@ module WhopSDK
|
|
|
41
44
|
|
|
42
45
|
def initialize: (
|
|
43
46
|
?app_store_description: String?,
|
|
47
|
+
?app_type: WhopSDK::Models::app_type?,
|
|
44
48
|
?base_url: String?,
|
|
45
49
|
?dashboard_path: String?,
|
|
46
50
|
?description: String?,
|
|
@@ -55,6 +59,7 @@ module WhopSDK
|
|
|
55
59
|
|
|
56
60
|
def to_hash: -> {
|
|
57
61
|
app_store_description: String?,
|
|
62
|
+
app_type: WhopSDK::Models::app_type?,
|
|
58
63
|
base_url: String?,
|
|
59
64
|
dashboard_path: String?,
|
|
60
65
|
description: String?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
company_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
first: Integer?,
|
|
9
11
|
last: Integer?,
|
|
10
12
|
role: WhopSDK::Models::authorized_user_roles?,
|
|
@@ -22,6 +24,10 @@ module WhopSDK
|
|
|
22
24
|
|
|
23
25
|
attr_accessor before: String?
|
|
24
26
|
|
|
27
|
+
attr_accessor created_after: Time?
|
|
28
|
+
|
|
29
|
+
attr_accessor created_before: Time?
|
|
30
|
+
|
|
25
31
|
attr_accessor first: Integer?
|
|
26
32
|
|
|
27
33
|
attr_accessor last: Integer?
|
|
@@ -34,6 +40,8 @@ module WhopSDK
|
|
|
34
40
|
company_id: String,
|
|
35
41
|
?after: String?,
|
|
36
42
|
?before: String?,
|
|
43
|
+
?created_after: Time?,
|
|
44
|
+
?created_before: Time?,
|
|
37
45
|
?first: Integer?,
|
|
38
46
|
?last: Integer?,
|
|
39
47
|
?role: WhopSDK::Models::authorized_user_roles?,
|
|
@@ -45,6 +53,8 @@ module WhopSDK
|
|
|
45
53
|
company_id: String,
|
|
46
54
|
after: String?,
|
|
47
55
|
before: String?,
|
|
56
|
+
created_after: Time?,
|
|
57
|
+
created_before: Time?,
|
|
48
58
|
first: Integer?,
|
|
49
59
|
last: Integer?,
|
|
50
60
|
role: WhopSDK::Models::authorized_user_roles?,
|
|
@@ -5,8 +5,10 @@ module WhopSDK
|
|
|
5
5
|
id: String,
|
|
6
6
|
affiliate_code: String?,
|
|
7
7
|
company_id: String,
|
|
8
|
-
metadata: ::Hash[Symbol, top]
|
|
9
|
-
|
|
8
|
+
metadata: ::Hash[Symbol, top]?,
|
|
9
|
+
mode: WhopSDK::Models::checkout_modes,
|
|
10
|
+
payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
|
|
11
|
+
plan: WhopSDK::CheckoutConfiguration::Plan?,
|
|
10
12
|
purchase_url: String,
|
|
11
13
|
redirect_url: String?
|
|
12
14
|
}
|
|
@@ -18,9 +20,13 @@ module WhopSDK
|
|
|
18
20
|
|
|
19
21
|
attr_accessor company_id: String
|
|
20
22
|
|
|
21
|
-
attr_accessor metadata: ::Hash[Symbol, top]
|
|
23
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
22
24
|
|
|
23
|
-
attr_accessor
|
|
25
|
+
attr_accessor mode: WhopSDK::Models::checkout_modes
|
|
26
|
+
|
|
27
|
+
attr_accessor payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?
|
|
28
|
+
|
|
29
|
+
attr_accessor plan: WhopSDK::CheckoutConfiguration::Plan?
|
|
24
30
|
|
|
25
31
|
attr_accessor purchase_url: String
|
|
26
32
|
|
|
@@ -30,8 +36,10 @@ module WhopSDK
|
|
|
30
36
|
id: String,
|
|
31
37
|
affiliate_code: String?,
|
|
32
38
|
company_id: String,
|
|
33
|
-
metadata: ::Hash[Symbol, top]
|
|
34
|
-
|
|
39
|
+
metadata: ::Hash[Symbol, top]?,
|
|
40
|
+
mode: WhopSDK::Models::checkout_modes,
|
|
41
|
+
payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
|
|
42
|
+
plan: WhopSDK::CheckoutConfiguration::Plan?,
|
|
35
43
|
purchase_url: String,
|
|
36
44
|
redirect_url: String?
|
|
37
45
|
) -> void
|
|
@@ -40,12 +48,41 @@ module WhopSDK
|
|
|
40
48
|
id: String,
|
|
41
49
|
affiliate_code: String?,
|
|
42
50
|
company_id: String,
|
|
43
|
-
metadata: ::Hash[Symbol, top]
|
|
44
|
-
|
|
51
|
+
metadata: ::Hash[Symbol, top]?,
|
|
52
|
+
mode: WhopSDK::Models::checkout_modes,
|
|
53
|
+
payment_method_configuration: WhopSDK::CheckoutConfiguration::PaymentMethodConfiguration?,
|
|
54
|
+
plan: WhopSDK::CheckoutConfiguration::Plan?,
|
|
45
55
|
purchase_url: String,
|
|
46
56
|
redirect_url: String?
|
|
47
57
|
}
|
|
48
58
|
|
|
59
|
+
type payment_method_configuration =
|
|
60
|
+
{
|
|
61
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
62
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
63
|
+
include_platform_defaults: bool
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
67
|
+
attr_accessor disabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
68
|
+
|
|
69
|
+
attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
70
|
+
|
|
71
|
+
attr_accessor include_platform_defaults: bool
|
|
72
|
+
|
|
73
|
+
def initialize: (
|
|
74
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
75
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
76
|
+
include_platform_defaults: bool
|
|
77
|
+
) -> void
|
|
78
|
+
|
|
79
|
+
def to_hash: -> {
|
|
80
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
81
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
82
|
+
include_platform_defaults: bool
|
|
83
|
+
}
|
|
84
|
+
end
|
|
85
|
+
|
|
49
86
|
type plan =
|
|
50
87
|
{
|
|
51
88
|
id: String,
|
|
@@ -5,8 +5,11 @@ module WhopSDK
|
|
|
5
5
|
plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
|
|
6
6
|
affiliate_code: String?,
|
|
7
7
|
metadata: ::Hash[Symbol, top]?,
|
|
8
|
+
mode: :setup,
|
|
9
|
+
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
8
10
|
redirect_url: String?,
|
|
9
|
-
plan_id: String
|
|
11
|
+
plan_id: String,
|
|
12
|
+
company_id: String
|
|
10
13
|
}
|
|
11
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
12
15
|
|
|
@@ -20,16 +23,25 @@ module WhopSDK
|
|
|
20
23
|
|
|
21
24
|
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
22
25
|
|
|
26
|
+
attr_accessor mode: :setup
|
|
27
|
+
|
|
28
|
+
attr_accessor payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?
|
|
29
|
+
|
|
23
30
|
attr_accessor redirect_url: String?
|
|
24
31
|
|
|
25
32
|
attr_accessor plan_id: String
|
|
26
33
|
|
|
34
|
+
attr_accessor company_id: String
|
|
35
|
+
|
|
27
36
|
def initialize: (
|
|
28
37
|
plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
|
|
29
38
|
plan_id: String,
|
|
39
|
+
company_id: String,
|
|
30
40
|
?affiliate_code: String?,
|
|
31
41
|
?metadata: ::Hash[Symbol, top]?,
|
|
42
|
+
?payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
32
43
|
?redirect_url: String?,
|
|
44
|
+
?mode: :setup,
|
|
33
45
|
?request_options: WhopSDK::request_opts
|
|
34
46
|
) -> void
|
|
35
47
|
|
|
@@ -37,8 +49,11 @@ module WhopSDK
|
|
|
37
49
|
plan: WhopSDK::CheckoutConfigurationCreateParams::Plan,
|
|
38
50
|
affiliate_code: String?,
|
|
39
51
|
metadata: ::Hash[Symbol, top]?,
|
|
52
|
+
mode: :setup,
|
|
53
|
+
payment_method_configuration: WhopSDK::CheckoutConfigurationCreateParams::PaymentMethodConfiguration?,
|
|
40
54
|
redirect_url: String?,
|
|
41
55
|
plan_id: String,
|
|
56
|
+
company_id: String,
|
|
42
57
|
request_options: WhopSDK::RequestOptions
|
|
43
58
|
}
|
|
44
59
|
|
|
@@ -335,6 +350,33 @@ module WhopSDK
|
|
|
335
350
|
}
|
|
336
351
|
end
|
|
337
352
|
end
|
|
353
|
+
|
|
354
|
+
type payment_method_configuration =
|
|
355
|
+
{
|
|
356
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
357
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
358
|
+
include_platform_defaults: bool
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
class PaymentMethodConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
362
|
+
attr_accessor disabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
363
|
+
|
|
364
|
+
attr_accessor enabled: ::Array[WhopSDK::Models::payment_method_types]
|
|
365
|
+
|
|
366
|
+
attr_accessor include_platform_defaults: bool
|
|
367
|
+
|
|
368
|
+
def initialize: (
|
|
369
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
370
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
371
|
+
include_platform_defaults: bool
|
|
372
|
+
) -> void
|
|
373
|
+
|
|
374
|
+
def to_hash: -> {
|
|
375
|
+
disabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
376
|
+
enabled: ::Array[WhopSDK::Models::payment_method_types],
|
|
377
|
+
include_platform_defaults: bool
|
|
378
|
+
}
|
|
379
|
+
end
|
|
338
380
|
end
|
|
339
381
|
end
|
|
340
382
|
end
|