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
|
@@ -25,6 +25,18 @@ module WhopSDK
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :before, String, nil?: true
|
|
27
27
|
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
28
40
|
# @!attribute first
|
|
29
41
|
# Returns the first _n_ elements from the list.
|
|
30
42
|
#
|
|
@@ -49,13 +61,17 @@ module WhopSDK
|
|
|
49
61
|
# @return [Integer, nil]
|
|
50
62
|
optional :min_stars, Integer, nil?: true
|
|
51
63
|
|
|
52
|
-
# @!method initialize(product_id:, after: nil, before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
|
|
64
|
+
# @!method initialize(product_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
|
|
53
65
|
# @param product_id [String] The ID of the product
|
|
54
66
|
#
|
|
55
67
|
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
56
68
|
#
|
|
57
69
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
58
70
|
#
|
|
71
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
72
|
+
#
|
|
73
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
74
|
+
#
|
|
59
75
|
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
60
76
|
#
|
|
61
77
|
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
@@ -19,6 +19,18 @@ module WhopSDK
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :before, String, nil?: true
|
|
21
21
|
|
|
22
|
+
# @!attribute created_after
|
|
23
|
+
# The minimum creation date to filter by
|
|
24
|
+
#
|
|
25
|
+
# @return [Time, nil]
|
|
26
|
+
optional :created_after, Time, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute created_before
|
|
29
|
+
# The maximum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_before, Time, nil?: true
|
|
33
|
+
|
|
22
34
|
# @!attribute destination_id
|
|
23
35
|
# Filter transfers to only those that were sent to this destination account.
|
|
24
36
|
# (user_xxx, biz_xxx, ldgr_xxx)
|
|
@@ -57,7 +69,7 @@ module WhopSDK
|
|
|
57
69
|
# @return [String, nil]
|
|
58
70
|
optional :origin_id, String, nil?: true
|
|
59
71
|
|
|
60
|
-
# @!method initialize(after: nil, before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
|
|
72
|
+
# @!method initialize(after: nil, before: nil, created_after: nil, created_before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
|
|
61
73
|
# Some parameter documentations has been truncated, see
|
|
62
74
|
# {WhopSDK::Models::TransferListParams} for more details.
|
|
63
75
|
#
|
|
@@ -65,6 +77,10 @@ module WhopSDK
|
|
|
65
77
|
#
|
|
66
78
|
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
67
79
|
#
|
|
80
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
81
|
+
#
|
|
82
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
83
|
+
#
|
|
68
84
|
# @param destination_id [String, nil] Filter transfers to only those that were sent to this destination account. (user
|
|
69
85
|
#
|
|
70
86
|
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
@@ -37,8 +37,12 @@ module WhopSDK
|
|
|
37
37
|
|
|
38
38
|
variant -> { WhopSDK::DisputeUpdatedWebhookEvent }
|
|
39
39
|
|
|
40
|
+
variant -> { WhopSDK::RefundCreatedWebhookEvent }
|
|
41
|
+
|
|
42
|
+
variant -> { WhopSDK::RefundUpdatedWebhookEvent }
|
|
43
|
+
|
|
40
44
|
# @!method self.variants
|
|
41
|
-
# @return [Array(WhopSDK::Models::InvoiceCreatedWebhookEvent, WhopSDK::Models::InvoicePaidWebhookEvent, WhopSDK::Models::InvoicePastDueWebhookEvent, WhopSDK::Models::InvoiceVoidedWebhookEvent, WhopSDK::Models::MembershipActivatedWebhookEvent, WhopSDK::Models::MembershipDeactivatedWebhookEvent, WhopSDK::Models::EntryCreatedWebhookEvent, WhopSDK::Models::EntryApprovedWebhookEvent, WhopSDK::Models::EntryDeniedWebhookEvent, WhopSDK::Models::EntryDeletedWebhookEvent, WhopSDK::Models::CourseLessonInteractionCompletedWebhookEvent, WhopSDK::Models::PaymentSucceededWebhookEvent, WhopSDK::Models::PaymentFailedWebhookEvent, WhopSDK::Models::PaymentPendingWebhookEvent, WhopSDK::Models::DisputeCreatedWebhookEvent, WhopSDK::Models::DisputeUpdatedWebhookEvent)]
|
|
45
|
+
# @return [Array(WhopSDK::Models::InvoiceCreatedWebhookEvent, WhopSDK::Models::InvoicePaidWebhookEvent, WhopSDK::Models::InvoicePastDueWebhookEvent, WhopSDK::Models::InvoiceVoidedWebhookEvent, WhopSDK::Models::MembershipActivatedWebhookEvent, WhopSDK::Models::MembershipDeactivatedWebhookEvent, WhopSDK::Models::EntryCreatedWebhookEvent, WhopSDK::Models::EntryApprovedWebhookEvent, WhopSDK::Models::EntryDeniedWebhookEvent, WhopSDK::Models::EntryDeletedWebhookEvent, WhopSDK::Models::CourseLessonInteractionCompletedWebhookEvent, WhopSDK::Models::PaymentSucceededWebhookEvent, WhopSDK::Models::PaymentFailedWebhookEvent, WhopSDK::Models::PaymentPendingWebhookEvent, WhopSDK::Models::DisputeCreatedWebhookEvent, WhopSDK::Models::DisputeUpdatedWebhookEvent, WhopSDK::Models::RefundCreatedWebhookEvent, WhopSDK::Models::RefundUpdatedWebhookEvent)]
|
|
42
46
|
end
|
|
43
47
|
end
|
|
44
48
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The different fee types for a withdrawal.
|
|
6
|
+
module WithdrawalFeeTypes
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
EXCLUSIVE = :exclusive
|
|
10
|
+
INCLUSIVE = :inclusive
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Withdrawals#list
|
|
6
|
+
class WithdrawalListParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute company_id
|
|
11
|
+
# The ID of the company to list withdrawals for
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :company_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute after
|
|
17
|
+
# Returns the elements in the list that come after the specified cursor.
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :after, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!attribute before
|
|
23
|
+
# Returns the elements in the list that come before the specified cursor.
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :before, String, nil?: true
|
|
27
|
+
|
|
28
|
+
# @!attribute created_after
|
|
29
|
+
# The minimum creation date to filter by
|
|
30
|
+
#
|
|
31
|
+
# @return [Time, nil]
|
|
32
|
+
optional :created_after, Time, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!attribute created_before
|
|
35
|
+
# The maximum creation date to filter by
|
|
36
|
+
#
|
|
37
|
+
# @return [Time, nil]
|
|
38
|
+
optional :created_before, Time, nil?: true
|
|
39
|
+
|
|
40
|
+
# @!attribute direction
|
|
41
|
+
# The direction of the sort.
|
|
42
|
+
#
|
|
43
|
+
# @return [Symbol, WhopSDK::Models::Direction, nil]
|
|
44
|
+
optional :direction, enum: -> { WhopSDK::Direction }, nil?: true
|
|
45
|
+
|
|
46
|
+
# @!attribute first
|
|
47
|
+
# Returns the first _n_ elements from the list.
|
|
48
|
+
#
|
|
49
|
+
# @return [Integer, nil]
|
|
50
|
+
optional :first, Integer, nil?: true
|
|
51
|
+
|
|
52
|
+
# @!attribute last
|
|
53
|
+
# Returns the last _n_ elements from the list.
|
|
54
|
+
#
|
|
55
|
+
# @return [Integer, nil]
|
|
56
|
+
optional :last, Integer, nil?: true
|
|
57
|
+
|
|
58
|
+
# @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
|
|
59
|
+
# @param company_id [String] The ID of the company to list withdrawals for
|
|
60
|
+
#
|
|
61
|
+
# @param after [String, nil] Returns the elements in the list that come after the specified cursor.
|
|
62
|
+
#
|
|
63
|
+
# @param before [String, nil] Returns the elements in the list that come before the specified cursor.
|
|
64
|
+
#
|
|
65
|
+
# @param created_after [Time, nil] The minimum creation date to filter by
|
|
66
|
+
#
|
|
67
|
+
# @param created_before [Time, nil] The maximum creation date to filter by
|
|
68
|
+
#
|
|
69
|
+
# @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
|
|
70
|
+
#
|
|
71
|
+
# @param first [Integer, nil] Returns the first _n_ elements from the list.
|
|
72
|
+
#
|
|
73
|
+
# @param last [Integer, nil] Returns the last _n_ elements from the list.
|
|
74
|
+
#
|
|
75
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Withdrawals#list
|
|
6
|
+
class WithdrawalListResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Internal ID of the withdrawal request.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute amount
|
|
14
|
+
# How much money was attempted to be withdrawn, in a float type.
|
|
15
|
+
#
|
|
16
|
+
# @return [Float]
|
|
17
|
+
required :amount, Float
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# When the withdrawal request was created.
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute currency
|
|
26
|
+
# The currency of the withdrawal request.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
29
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
30
|
+
|
|
31
|
+
# @!attribute fee_amount
|
|
32
|
+
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
33
|
+
# as the withdrawal amount.
|
|
34
|
+
#
|
|
35
|
+
# @return [Float]
|
|
36
|
+
required :fee_amount, Float
|
|
37
|
+
|
|
38
|
+
# @!attribute fee_type
|
|
39
|
+
# The different fee types for a withdrawal.
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil]
|
|
42
|
+
required :fee_type, enum: -> { WhopSDK::WithdrawalFeeTypes }, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute speed
|
|
45
|
+
# The speed of the withdrawal.
|
|
46
|
+
#
|
|
47
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalSpeeds]
|
|
48
|
+
required :speed, enum: -> { WhopSDK::WithdrawalSpeeds }
|
|
49
|
+
|
|
50
|
+
# @!attribute status
|
|
51
|
+
# Status of the withdrawal.
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalStatus]
|
|
54
|
+
required :status, enum: -> { WhopSDK::WithdrawalStatus }
|
|
55
|
+
|
|
56
|
+
# @!attribute withdrawal_type
|
|
57
|
+
# The type of withdrawal.
|
|
58
|
+
#
|
|
59
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
60
|
+
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
61
|
+
|
|
62
|
+
# @!method initialize(id:, amount:, created_at:, currency:, fee_amount:, fee_type:, speed:, status:, withdrawal_type:)
|
|
63
|
+
# Some parameter documentations has been truncated, see
|
|
64
|
+
# {WhopSDK::Models::WithdrawalListResponse} for more details.
|
|
65
|
+
#
|
|
66
|
+
# A withdrawal request.
|
|
67
|
+
#
|
|
68
|
+
# @param id [String] Internal ID of the withdrawal request.
|
|
69
|
+
#
|
|
70
|
+
# @param amount [Float] How much money was attempted to be withdrawn, in a float type.
|
|
71
|
+
#
|
|
72
|
+
# @param created_at [Time] When the withdrawal request was created.
|
|
73
|
+
#
|
|
74
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the withdrawal request.
|
|
75
|
+
#
|
|
76
|
+
# @param fee_amount [Float] The fee amount that was charged for the withdrawal. This is in the same currency
|
|
77
|
+
#
|
|
78
|
+
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
79
|
+
#
|
|
80
|
+
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
81
|
+
#
|
|
82
|
+
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
83
|
+
#
|
|
84
|
+
# @param withdrawal_type [Symbol, WhopSDK::Models::WithdrawalTypes] The type of withdrawal.
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Withdrawals#retrieve
|
|
6
|
+
class WithdrawalRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see WhopSDK::Resources::Withdrawals#retrieve
|
|
6
|
+
class WithdrawalRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Internal ID of the withdrawal request.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute amount
|
|
14
|
+
# How much money was attempted to be withdrawn, in a float type.
|
|
15
|
+
#
|
|
16
|
+
# @return [Float]
|
|
17
|
+
required :amount, Float
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# When the withdrawal request was created.
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute currency
|
|
26
|
+
# The currency of the withdrawal request.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, WhopSDK::Models::Currency]
|
|
29
|
+
required :currency, enum: -> { WhopSDK::Currency }
|
|
30
|
+
|
|
31
|
+
# @!attribute fee_amount
|
|
32
|
+
# The fee amount that was charged for the withdrawal. This is in the same currency
|
|
33
|
+
# as the withdrawal amount.
|
|
34
|
+
#
|
|
35
|
+
# @return [Float]
|
|
36
|
+
required :fee_amount, Float
|
|
37
|
+
|
|
38
|
+
# @!attribute fee_type
|
|
39
|
+
# The different fee types for a withdrawal.
|
|
40
|
+
#
|
|
41
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil]
|
|
42
|
+
required :fee_type, enum: -> { WhopSDK::WithdrawalFeeTypes }, nil?: true
|
|
43
|
+
|
|
44
|
+
# @!attribute latest_payout
|
|
45
|
+
# The latest payout associated with this withdrawal, if any.
|
|
46
|
+
#
|
|
47
|
+
# @return [WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout, nil]
|
|
48
|
+
required :latest_payout, -> { WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout }, nil?: true
|
|
49
|
+
|
|
50
|
+
# @!attribute payout_token
|
|
51
|
+
# The payout token used for the withdrawal, if applicable.
|
|
52
|
+
#
|
|
53
|
+
# @return [WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken, nil]
|
|
54
|
+
required :payout_token, -> { WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken }, nil?: true
|
|
55
|
+
|
|
56
|
+
# @!attribute speed
|
|
57
|
+
# The speed of the withdrawal.
|
|
58
|
+
#
|
|
59
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalSpeeds]
|
|
60
|
+
required :speed, enum: -> { WhopSDK::WithdrawalSpeeds }
|
|
61
|
+
|
|
62
|
+
# @!attribute status
|
|
63
|
+
# Status of the withdrawal.
|
|
64
|
+
#
|
|
65
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalStatus]
|
|
66
|
+
required :status, enum: -> { WhopSDK::WithdrawalStatus }
|
|
67
|
+
|
|
68
|
+
# @!attribute withdrawal_type
|
|
69
|
+
# The type of withdrawal.
|
|
70
|
+
#
|
|
71
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalTypes]
|
|
72
|
+
required :withdrawal_type, enum: -> { WhopSDK::WithdrawalTypes }
|
|
73
|
+
|
|
74
|
+
# @!method initialize(id:, amount:, created_at:, currency:, fee_amount:, fee_type:, latest_payout:, payout_token:, speed:, status:, withdrawal_type:)
|
|
75
|
+
# Some parameter documentations has been truncated, see
|
|
76
|
+
# {WhopSDK::Models::WithdrawalRetrieveResponse} for more details.
|
|
77
|
+
#
|
|
78
|
+
# A withdrawal request.
|
|
79
|
+
#
|
|
80
|
+
# @param id [String] Internal ID of the withdrawal request.
|
|
81
|
+
#
|
|
82
|
+
# @param amount [Float] How much money was attempted to be withdrawn, in a float type.
|
|
83
|
+
#
|
|
84
|
+
# @param created_at [Time] When the withdrawal request was created.
|
|
85
|
+
#
|
|
86
|
+
# @param currency [Symbol, WhopSDK::Models::Currency] The currency of the withdrawal request.
|
|
87
|
+
#
|
|
88
|
+
# @param fee_amount [Float] The fee amount that was charged for the withdrawal. This is in the same currency
|
|
89
|
+
#
|
|
90
|
+
# @param fee_type [Symbol, WhopSDK::Models::WithdrawalFeeTypes, nil] The different fee types for a withdrawal.
|
|
91
|
+
#
|
|
92
|
+
# @param latest_payout [WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout, nil] The latest payout associated with this withdrawal, if any.
|
|
93
|
+
#
|
|
94
|
+
# @param payout_token [WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken, nil] The payout token used for the withdrawal, if applicable.
|
|
95
|
+
#
|
|
96
|
+
# @param speed [Symbol, WhopSDK::Models::WithdrawalSpeeds] The speed of the withdrawal.
|
|
97
|
+
#
|
|
98
|
+
# @param status [Symbol, WhopSDK::Models::WithdrawalStatus] Status of the withdrawal.
|
|
99
|
+
#
|
|
100
|
+
# @param withdrawal_type [Symbol, WhopSDK::Models::WithdrawalTypes] The type of withdrawal.
|
|
101
|
+
|
|
102
|
+
# @see WhopSDK::Models::WithdrawalRetrieveResponse#latest_payout
|
|
103
|
+
class LatestPayout < WhopSDK::Internal::Type::BaseModel
|
|
104
|
+
# @!attribute id
|
|
105
|
+
# The internal ID of the payout.
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
required :id, String
|
|
109
|
+
|
|
110
|
+
# @!attribute created_at
|
|
111
|
+
# The date and time the payout was created.
|
|
112
|
+
#
|
|
113
|
+
# @return [Time]
|
|
114
|
+
required :created_at, Time
|
|
115
|
+
|
|
116
|
+
# @!attribute error_code
|
|
117
|
+
# The different error codes a payout can be in.
|
|
118
|
+
#
|
|
119
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::ErrorCode, nil]
|
|
120
|
+
required :error_code,
|
|
121
|
+
enum: -> { WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::ErrorCode },
|
|
122
|
+
nil?: true
|
|
123
|
+
|
|
124
|
+
# @!attribute error_message
|
|
125
|
+
# The error message for the payout.
|
|
126
|
+
#
|
|
127
|
+
# @return [String, nil]
|
|
128
|
+
required :error_message, String, nil?: true
|
|
129
|
+
|
|
130
|
+
# @!attribute estimated_availability
|
|
131
|
+
# The estimated availability date of the payout.
|
|
132
|
+
#
|
|
133
|
+
# @return [Time, nil]
|
|
134
|
+
required :estimated_availability, Time, nil?: true
|
|
135
|
+
|
|
136
|
+
# @!attribute payer_name
|
|
137
|
+
# The name of the payer for the payout.
|
|
138
|
+
#
|
|
139
|
+
# @return [String, nil]
|
|
140
|
+
required :payer_name, String, nil?: true
|
|
141
|
+
|
|
142
|
+
# @!attribute status
|
|
143
|
+
# The status of the payout.
|
|
144
|
+
#
|
|
145
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::Status]
|
|
146
|
+
required :status, enum: -> { WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::Status }
|
|
147
|
+
|
|
148
|
+
# @!attribute trace_code
|
|
149
|
+
# The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
150
|
+
# available.
|
|
151
|
+
#
|
|
152
|
+
# @return [String, nil]
|
|
153
|
+
required :trace_code, String, nil?: true
|
|
154
|
+
|
|
155
|
+
# @!method initialize(id:, created_at:, error_code:, error_message:, estimated_availability:, payer_name:, status:, trace_code:)
|
|
156
|
+
# Some parameter documentations has been truncated, see
|
|
157
|
+
# {WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout} for more details.
|
|
158
|
+
#
|
|
159
|
+
# The latest payout associated with this withdrawal, if any.
|
|
160
|
+
#
|
|
161
|
+
# @param id [String] The internal ID of the payout.
|
|
162
|
+
#
|
|
163
|
+
# @param created_at [Time] The date and time the payout was created.
|
|
164
|
+
#
|
|
165
|
+
# @param error_code [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::ErrorCode, nil] The different error codes a payout can be in.
|
|
166
|
+
#
|
|
167
|
+
# @param error_message [String, nil] The error message for the payout.
|
|
168
|
+
#
|
|
169
|
+
# @param estimated_availability [Time, nil] The estimated availability date of the payout.
|
|
170
|
+
#
|
|
171
|
+
# @param payer_name [String, nil] The name of the payer for the payout.
|
|
172
|
+
#
|
|
173
|
+
# @param status [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout::Status] The status of the payout.
|
|
174
|
+
#
|
|
175
|
+
# @param trace_code [String, nil] The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
176
|
+
|
|
177
|
+
# The different error codes a payout can be in.
|
|
178
|
+
#
|
|
179
|
+
# @see WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout#error_code
|
|
180
|
+
module ErrorCode
|
|
181
|
+
extend WhopSDK::Internal::Type::Enum
|
|
182
|
+
|
|
183
|
+
ACCOUNT_CLOSED = :account_closed
|
|
184
|
+
ACCOUNT_DOES_NOT_EXIST = :account_does_not_exist
|
|
185
|
+
ACCOUNT_INFORMATION_INVALID = :account_information_invalid
|
|
186
|
+
ACCOUNT_NUMBER_INVALID_REGION = :account_number_invalid_region
|
|
187
|
+
ACCOUNT_FROZEN = :account_frozen
|
|
188
|
+
ACCOUNT_LOOKUP_FAILED = :account_lookup_failed
|
|
189
|
+
ACCOUNT_NOT_FOUND = :account_not_found
|
|
190
|
+
AMOUNT_OUT_OF_BOUNDS = :amount_out_of_bounds
|
|
191
|
+
ATTRIBUTES_NOT_VALIDATED = :attributes_not_validated
|
|
192
|
+
B2B_PAYMENTS_PROHIBITED = :b2b_payments_prohibited
|
|
193
|
+
BANK_STATEMENT_REQUIRED = :bank_statement_required
|
|
194
|
+
COMPLIANCE_REVIEW = :compliance_review
|
|
195
|
+
CURRENCY_NOT_SUPPORTED = :currency_not_supported
|
|
196
|
+
DEPOSIT_CANCELED = :deposit_canceled
|
|
197
|
+
DEPOSIT_FAILED = :deposit_failed
|
|
198
|
+
DEPOSIT_REJECTED = :deposit_rejected
|
|
199
|
+
DESTINATION_UNAVAILABLE = :destination_unavailable
|
|
200
|
+
EXCEEDED_ACCOUNT_LIMIT = :exceeded_account_limit
|
|
201
|
+
EXPIRED_QUOTE = :expired_quote
|
|
202
|
+
GENERIC_PAYOUT_ERROR = :generic_payout_error
|
|
203
|
+
TECHNICAL_PROBLEM = :technical_problem
|
|
204
|
+
IDENTIFICATION_NUMBER_INVALID = :identification_number_invalid
|
|
205
|
+
INVALID_ACCOUNT_NUMBER = :invalid_account_number
|
|
206
|
+
INVALID_BANK_CODE = :invalid_bank_code
|
|
207
|
+
INVALID_BENEFICIARY = :invalid_beneficiary
|
|
208
|
+
INVALID_BRANCH_NUMBER = :invalid_branch_number
|
|
209
|
+
INVALID_BRANCH_CODE = :invalid_branch_code
|
|
210
|
+
INVALID_PHONE_NUMBER = :invalid_phone_number
|
|
211
|
+
INVALID_ROUTING_NUMBER = :invalid_routing_number
|
|
212
|
+
INVALID_SWIFT_CODE = :invalid_swift_code
|
|
213
|
+
INVALID_COMPANY_DETAILS = :invalid_company_details
|
|
214
|
+
MANUAL_CANCELATION = :manual_cancelation
|
|
215
|
+
MISC_ERROR = :misc_error
|
|
216
|
+
MISSING_CITY_AND_COUNTRY = :missing_city_and_country
|
|
217
|
+
MISSING_PHONE_NUMBER = :missing_phone_number
|
|
218
|
+
MISSING_REMITTANCE_INFO = :missing_remittance_info
|
|
219
|
+
PAYEE_NAME_INVALID = :payee_name_invalid
|
|
220
|
+
RECEIVING_ACCOUNT_LOCKED = :receiving_account_locked
|
|
221
|
+
REJECTED_BY_COMPLIANCE = :rejected_by_compliance
|
|
222
|
+
RTP_NOT_SUPPORTED = :rtp_not_supported
|
|
223
|
+
NON_TRANSACTION_ACCOUNT = :non_transaction_account
|
|
224
|
+
SOURCE_TOKEN_INSUFFICIENT_FUNDS = :source_token_insufficient_funds
|
|
225
|
+
SSN_INVALID = :ssn_invalid
|
|
226
|
+
WALLET_SCREENSHOT_REQUIRED = :wallet_screenshot_required
|
|
227
|
+
UNSUPPORTED_REGION = :unsupported_region
|
|
228
|
+
|
|
229
|
+
# @!method self.values
|
|
230
|
+
# @return [Array<Symbol>]
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# The status of the payout.
|
|
234
|
+
#
|
|
235
|
+
# @see WhopSDK::Models::WithdrawalRetrieveResponse::LatestPayout#status
|
|
236
|
+
module Status
|
|
237
|
+
extend WhopSDK::Internal::Type::Enum
|
|
238
|
+
|
|
239
|
+
SCHEDULED = :scheduled
|
|
240
|
+
PENDING = :pending
|
|
241
|
+
PROCESSING = :processing
|
|
242
|
+
COMPLETED = :completed
|
|
243
|
+
CANCELED = :canceled
|
|
244
|
+
READY_FOR_PICKUP = :ready_for_pickup
|
|
245
|
+
HOLD = :hold
|
|
246
|
+
ERROR = :error
|
|
247
|
+
EXPIRED = :expired
|
|
248
|
+
|
|
249
|
+
# @!method self.values
|
|
250
|
+
# @return [Array<Symbol>]
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# @see WhopSDK::Models::WithdrawalRetrieveResponse#payout_token
|
|
255
|
+
class PayoutToken < WhopSDK::Internal::Type::BaseModel
|
|
256
|
+
# @!attribute id
|
|
257
|
+
# The ID of the payout token
|
|
258
|
+
#
|
|
259
|
+
# @return [String]
|
|
260
|
+
required :id, String
|
|
261
|
+
|
|
262
|
+
# @!attribute created_at
|
|
263
|
+
# The date and time the payout token was created
|
|
264
|
+
#
|
|
265
|
+
# @return [Time]
|
|
266
|
+
required :created_at, Time
|
|
267
|
+
|
|
268
|
+
# @!attribute destination_currency_code
|
|
269
|
+
# The currency code of the payout destination. This is the currency that payouts
|
|
270
|
+
# will be made in for this token.
|
|
271
|
+
#
|
|
272
|
+
# @return [String]
|
|
273
|
+
required :destination_currency_code, String
|
|
274
|
+
|
|
275
|
+
# @!attribute nickname
|
|
276
|
+
# An optional nickname for the payout token to help the user identify it. This is
|
|
277
|
+
# not used by the provider and is only for the user's reference.
|
|
278
|
+
#
|
|
279
|
+
# @return [String, nil]
|
|
280
|
+
required :nickname, String, nil?: true
|
|
281
|
+
|
|
282
|
+
# @!attribute status
|
|
283
|
+
# The status of the payout token.
|
|
284
|
+
#
|
|
285
|
+
# @return [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::Status]
|
|
286
|
+
required :status, enum: -> { WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::Status }
|
|
287
|
+
|
|
288
|
+
# @!method initialize(id:, created_at:, destination_currency_code:, nickname:, status:)
|
|
289
|
+
# Some parameter documentations has been truncated, see
|
|
290
|
+
# {WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken} for more details.
|
|
291
|
+
#
|
|
292
|
+
# The payout token used for the withdrawal, if applicable.
|
|
293
|
+
#
|
|
294
|
+
# @param id [String] The ID of the payout token
|
|
295
|
+
#
|
|
296
|
+
# @param created_at [Time] The date and time the payout token was created
|
|
297
|
+
#
|
|
298
|
+
# @param destination_currency_code [String] The currency code of the payout destination. This is the currency that payouts w
|
|
299
|
+
#
|
|
300
|
+
# @param nickname [String, nil] An optional nickname for the payout token to help the user identify it. This is
|
|
301
|
+
#
|
|
302
|
+
# @param status [Symbol, WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken::Status] The status of the payout token.
|
|
303
|
+
|
|
304
|
+
# The status of the payout token.
|
|
305
|
+
#
|
|
306
|
+
# @see WhopSDK::Models::WithdrawalRetrieveResponse::PayoutToken#status
|
|
307
|
+
module Status
|
|
308
|
+
extend WhopSDK::Internal::Type::Enum
|
|
309
|
+
|
|
310
|
+
CREATED = :created
|
|
311
|
+
ACTIVE = :active
|
|
312
|
+
BROKEN = :broken
|
|
313
|
+
|
|
314
|
+
# @!method self.values
|
|
315
|
+
# @return [Array<Symbol>]
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
end
|
|
319
|
+
end
|
|
320
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The different speeds of withdrawals
|
|
6
|
+
module WithdrawalSpeeds
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
STANDARD = :standard
|
|
10
|
+
INSTANT = :instant
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The status of a withdrawal request
|
|
6
|
+
module WithdrawalStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
REQUESTED = :requested
|
|
10
|
+
AWAITING_PAYMENT = :awaiting_payment
|
|
11
|
+
IN_TRANSIT = :in_transit
|
|
12
|
+
COMPLETED = :completed
|
|
13
|
+
FAILED = :failed
|
|
14
|
+
CANCELED = :canceled
|
|
15
|
+
DENIED = :denied
|
|
16
|
+
|
|
17
|
+
# @!method self.values
|
|
18
|
+
# @return [Array<Symbol>]
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Models
|
|
5
|
+
# The types of withdrawals
|
|
6
|
+
module WithdrawalTypes
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
REGULAR = :regular
|
|
10
|
+
CLAWBACK = :clawback
|
|
11
|
+
|
|
12
|
+
# @!method self.values
|
|
13
|
+
# @return [Array<Symbol>]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|