whop_sdk 0.0.8 → 0.0.10
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 +25 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +12 -0
- 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_build_create_params.rb +9 -1
- data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
- data/lib/whop_sdk/models/company_list_params.rb +17 -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/invoice_list_params.rb +17 -1
- data/lib/whop_sdk/models/payment.rb +90 -1
- data/lib/whop_sdk/models/payment_create_params.rb +307 -0
- data/lib/whop_sdk/models/payment_list_response.rb +90 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payment_token_list_params.rb +78 -0
- data/lib/whop_sdk/models/payment_token_list_response.rb +86 -0
- data/lib/whop_sdk/models/payment_token_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/payment_token_retrieve_response.rb +86 -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_list_params.rb +17 -1
- data/lib/whop_sdk/models/review_list_params.rb +17 -1
- data/lib/whop_sdk/models/setup_intent.rb +253 -0
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_list_params.rb +78 -0
- data/lib/whop_sdk/models/setup_intent_list_response.rb +255 -0
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/setup_intent_status.rb +18 -0
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +7 -1
- data/lib/whop_sdk/models.rb +22 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +8 -2
- data/lib/whop_sdk/resources/authorized_users.rb +5 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +5 -1
- data/lib/whop_sdk/resources/companies.rb +5 -1
- 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/invoices.rb +5 -1
- data/lib/whop_sdk/resources/payment_tokens.rb +83 -0
- data/lib/whop_sdk/resources/payments.rb +48 -0
- 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 +5 -1
- data/lib/whop_sdk/resources/reviews.rb +5 -1
- data/lib/whop_sdk/resources/setup_intents.rb +83 -0
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +19 -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_build_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +5 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -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/invoice_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/payment.rbi +142 -0
- data/rbi/whop_sdk/models/payment_create_params.rbi +384 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +167 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payment_token_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/payment_token_list_response.rbi +139 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_response.rbi +144 -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_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/setup_intent.rbi +412 -0
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/setup_intent_list_response.rbi +492 -0
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/setup_intent_status.rbi +25 -0
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -0
- data/rbi/whop_sdk/models.rbi +25 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +9 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +6 -0
- data/rbi/whop_sdk/resources/companies.rbi +6 -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/invoices.rbi +6 -0
- data/rbi/whop_sdk/resources/payment_tokens.rbi +76 -0
- data/rbi/whop_sdk/resources/payments.rbi +42 -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 +6 -0
- data/rbi/whop_sdk/resources/reviews.rbi +6 -0
- data/rbi/whop_sdk/resources/setup_intents.rbi +77 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -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_build_create_params.rbs +5 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_list_params.rbs +2 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
- data/sig/whop_sdk/models/company_list_params.rbs +10 -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/invoice_list_params.rbs +10 -0
- data/sig/whop_sdk/models/payment.rbs +69 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +210 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +69 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payment_token_list_params.rbs +61 -0
- data/sig/whop_sdk/models/payment_token_list_response.rbs +67 -0
- data/sig/whop_sdk/models/payment_token_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/payment_token_retrieve_response.rbs +67 -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_list_params.rbs +10 -0
- data/sig/whop_sdk/models/review_list_params.rbs +10 -0
- data/sig/whop_sdk/models/setup_intent.rbs +189 -0
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_list_params.rbs +61 -0
- data/sig/whop_sdk/models/setup_intent_list_response.rbs +193 -0
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/setup_intent_status.rbs +17 -0
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
- data/sig/whop_sdk/models.rbs +22 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +3 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -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/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/payment_tokens.rbs +25 -0
- data/sig/whop_sdk/resources/payments.rbs +9 -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 +2 -0
- data/sig/whop_sdk/resources/reviews.rbs +2 -0
- data/sig/whop_sdk/resources/setup_intents.rbs +24 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -0
- metadata +56 -2
|
@@ -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,
|
|
@@ -16,6 +16,9 @@ module WhopSDK
|
|
|
16
16
|
WhopSDK::EntryApprovedWebhookEvent,
|
|
17
17
|
WhopSDK::EntryDeniedWebhookEvent,
|
|
18
18
|
WhopSDK::EntryDeletedWebhookEvent,
|
|
19
|
+
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
20
|
+
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
21
|
+
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
19
22
|
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
20
23
|
WhopSDK::PaymentSucceededWebhookEvent,
|
|
21
24
|
WhopSDK::PaymentFailedWebhookEvent,
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -84,6 +84,12 @@ module WhopSDK
|
|
|
84
84
|
|
|
85
85
|
attr_reader withdrawals: WhopSDK::Resources::Withdrawals
|
|
86
86
|
|
|
87
|
+
attr_reader account_links: WhopSDK::Resources::AccountLinks
|
|
88
|
+
|
|
89
|
+
attr_reader setup_intents: WhopSDK::Resources::SetupIntents
|
|
90
|
+
|
|
91
|
+
attr_reader payment_tokens: WhopSDK::Resources::PaymentTokens
|
|
92
|
+
|
|
87
93
|
private def auth_headers: -> ::Hash[String, String]
|
|
88
94
|
|
|
89
95
|
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
|
|
@@ -5,6 +5,7 @@ module WhopSDK
|
|
|
5
5
|
attachment: WhopSDK::Models::AppBuildCreateParams::attachment,
|
|
6
6
|
checksum: String,
|
|
7
7
|
platform: WhopSDK::Models::app_build_platforms,
|
|
8
|
+
ai_prompt_id: String?,
|
|
8
9
|
app_id: String?,
|
|
9
10
|
supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?
|
|
10
11
|
}
|
|
@@ -20,6 +21,8 @@ module WhopSDK
|
|
|
20
21
|
|
|
21
22
|
attr_accessor platform: WhopSDK::Models::app_build_platforms
|
|
22
23
|
|
|
24
|
+
attr_accessor ai_prompt_id: String?
|
|
25
|
+
|
|
23
26
|
attr_accessor app_id: String?
|
|
24
27
|
|
|
25
28
|
attr_accessor supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?
|
|
@@ -28,6 +31,7 @@ module WhopSDK
|
|
|
28
31
|
attachment: WhopSDK::Models::AppBuildCreateParams::attachment,
|
|
29
32
|
checksum: String,
|
|
30
33
|
platform: WhopSDK::Models::app_build_platforms,
|
|
34
|
+
?ai_prompt_id: String?,
|
|
31
35
|
?app_id: String?,
|
|
32
36
|
?supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?,
|
|
33
37
|
?request_options: WhopSDK::request_opts
|
|
@@ -37,6 +41,7 @@ module WhopSDK
|
|
|
37
41
|
attachment: WhopSDK::Models::AppBuildCreateParams::attachment,
|
|
38
42
|
checksum: String,
|
|
39
43
|
platform: WhopSDK::Models::app_build_platforms,
|
|
44
|
+
ai_prompt_id: String?,
|
|
40
45
|
app_id: String?,
|
|
41
46
|
supported_app_view_types: ::Array[WhopSDK::Models::app_view_type]?,
|
|
42
47
|
request_options: WhopSDK::RequestOptions
|
|
@@ -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?,
|
|
@@ -75,6 +75,7 @@ module WhopSDK
|
|
|
75
75
|
type order =
|
|
76
76
|
:discoverable_at
|
|
77
77
|
| :total_installs_last_30_days
|
|
78
|
+
| :total_installs_last_7_days
|
|
78
79
|
| :time_spent
|
|
79
80
|
| :time_spent_last_24_hours
|
|
80
81
|
| :daily_active_users
|
|
@@ -84,6 +85,7 @@ module WhopSDK
|
|
|
84
85
|
|
|
85
86
|
DISCOVERABLE_AT: :discoverable_at
|
|
86
87
|
TOTAL_INSTALLS_LAST_30_DAYS: :total_installs_last_30_days
|
|
88
|
+
TOTAL_INSTALLS_LAST_7_DAYS: :total_installs_last_7_days
|
|
87
89
|
TIME_SPENT: :time_spent
|
|
88
90
|
TIME_SPENT_LAST_24_HOURS: :time_spent_last_24_hours
|
|
89
91
|
DAILY_ACTIVE_USERS: :daily_active_users
|
|
@@ -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,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
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?,
|
|
@@ -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 direction: WhopSDK::Models::direction?
|
|
26
32
|
|
|
27
33
|
attr_accessor first: 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
|
?direction: WhopSDK::Models::direction?,
|
|
38
46
|
?first: Integer?,
|
|
39
47
|
?last: Integer?,
|
|
@@ -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
|
direction: WhopSDK::Models::direction?,
|
|
49
59
|
first: Integer?,
|
|
50
60
|
last: Integer?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
parent_company_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?
|
|
@@ -21,6 +23,10 @@ module WhopSDK
|
|
|
21
23
|
|
|
22
24
|
attr_accessor before: String?
|
|
23
25
|
|
|
26
|
+
attr_accessor created_after: Time?
|
|
27
|
+
|
|
28
|
+
attr_accessor created_before: Time?
|
|
29
|
+
|
|
24
30
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
25
31
|
|
|
26
32
|
attr_accessor first: Integer?
|
|
@@ -31,6 +37,8 @@ module WhopSDK
|
|
|
31
37
|
parent_company_id: String,
|
|
32
38
|
?after: String?,
|
|
33
39
|
?before: String?,
|
|
40
|
+
?created_after: Time?,
|
|
41
|
+
?created_before: Time?,
|
|
34
42
|
?direction: WhopSDK::Models::direction?,
|
|
35
43
|
?first: Integer?,
|
|
36
44
|
?last: Integer?,
|
|
@@ -41,6 +49,8 @@ module WhopSDK
|
|
|
41
49
|
parent_company_id: String,
|
|
42
50
|
after: String?,
|
|
43
51
|
before: String?,
|
|
52
|
+
created_after: Time?,
|
|
53
|
+
created_before: Time?,
|
|
44
54
|
direction: WhopSDK::Models::direction?,
|
|
45
55
|
first: Integer?,
|
|
46
56
|
last: Integer?,
|
|
@@ -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
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?
|
|
@@ -21,6 +23,10 @@ module WhopSDK
|
|
|
21
23
|
|
|
22
24
|
attr_accessor before: String?
|
|
23
25
|
|
|
26
|
+
attr_accessor created_after: Time?
|
|
27
|
+
|
|
28
|
+
attr_accessor created_before: Time?
|
|
29
|
+
|
|
24
30
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
25
31
|
|
|
26
32
|
attr_accessor first: Integer?
|
|
@@ -31,6 +37,8 @@ module WhopSDK
|
|
|
31
37
|
company_id: String,
|
|
32
38
|
?after: String?,
|
|
33
39
|
?before: String?,
|
|
40
|
+
?created_after: Time?,
|
|
41
|
+
?created_before: Time?,
|
|
34
42
|
?direction: WhopSDK::Models::direction?,
|
|
35
43
|
?first: Integer?,
|
|
36
44
|
?last: Integer?,
|
|
@@ -41,6 +49,8 @@ module WhopSDK
|
|
|
41
49
|
company_id: String,
|
|
42
50
|
after: String?,
|
|
43
51
|
before: String?,
|
|
52
|
+
created_after: Time?,
|
|
53
|
+
created_before: Time?,
|
|
44
54
|
direction: WhopSDK::Models::direction?,
|
|
45
55
|
first: Integer?,
|
|
46
56
|
last: Integer?,
|
|
@@ -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
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?,
|
|
@@ -25,6 +27,10 @@ module WhopSDK
|
|
|
25
27
|
|
|
26
28
|
attr_accessor before: String?
|
|
27
29
|
|
|
30
|
+
attr_accessor created_after: Time?
|
|
31
|
+
|
|
32
|
+
attr_accessor created_before: Time?
|
|
33
|
+
|
|
28
34
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
29
35
|
|
|
30
36
|
attr_accessor first: Integer?
|
|
@@ -43,6 +49,8 @@ module WhopSDK
|
|
|
43
49
|
company_id: String,
|
|
44
50
|
?after: String?,
|
|
45
51
|
?before: String?,
|
|
52
|
+
?created_after: Time?,
|
|
53
|
+
?created_before: Time?,
|
|
46
54
|
?direction: WhopSDK::Models::direction?,
|
|
47
55
|
?first: Integer?,
|
|
48
56
|
?last: Integer?,
|
|
@@ -57,6 +65,8 @@ module WhopSDK
|
|
|
57
65
|
company_id: String,
|
|
58
66
|
after: String?,
|
|
59
67
|
before: String?,
|
|
68
|
+
created_after: Time?,
|
|
69
|
+
created_before: Time?,
|
|
60
70
|
direction: WhopSDK::Models::direction?,
|
|
61
71
|
first: Integer?,
|
|
62
72
|
last: Integer?,
|
|
@@ -6,6 +6,8 @@ module WhopSDK
|
|
|
6
6
|
after: String?,
|
|
7
7
|
app_id: String?,
|
|
8
8
|
before: String?,
|
|
9
|
+
created_after: Time?,
|
|
10
|
+
created_before: Time?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?,
|
|
11
13
|
product_id: String?
|
|
@@ -24,6 +26,10 @@ module WhopSDK
|
|
|
24
26
|
|
|
25
27
|
attr_accessor before: String?
|
|
26
28
|
|
|
29
|
+
attr_accessor created_after: Time?
|
|
30
|
+
|
|
31
|
+
attr_accessor created_before: Time?
|
|
32
|
+
|
|
27
33
|
attr_accessor first: Integer?
|
|
28
34
|
|
|
29
35
|
attr_accessor last: Integer?
|
|
@@ -35,6 +41,8 @@ module WhopSDK
|
|
|
35
41
|
?after: String?,
|
|
36
42
|
?app_id: String?,
|
|
37
43
|
?before: String?,
|
|
44
|
+
?created_after: Time?,
|
|
45
|
+
?created_before: Time?,
|
|
38
46
|
?first: Integer?,
|
|
39
47
|
?last: Integer?,
|
|
40
48
|
?product_id: String?,
|
|
@@ -46,6 +54,8 @@ module WhopSDK
|
|
|
46
54
|
after: String?,
|
|
47
55
|
app_id: String?,
|
|
48
56
|
before: String?,
|
|
57
|
+
created_after: Time?,
|
|
58
|
+
created_before: Time?,
|
|
49
59
|
first: Integer?,
|
|
50
60
|
last: Integer?,
|
|
51
61
|
product_id: String?,
|
|
@@ -6,6 +6,8 @@ module WhopSDK
|
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
8
|
collection_methods: ::Array[WhopSDK::Models::collection_method]?,
|
|
9
|
+
created_after: Time?,
|
|
10
|
+
created_before: Time?,
|
|
9
11
|
direction: WhopSDK::Models::direction?,
|
|
10
12
|
first: Integer?,
|
|
11
13
|
last: Integer?,
|
|
@@ -27,6 +29,10 @@ module WhopSDK
|
|
|
27
29
|
|
|
28
30
|
attr_accessor collection_methods: ::Array[WhopSDK::Models::collection_method]?
|
|
29
31
|
|
|
32
|
+
attr_accessor created_after: Time?
|
|
33
|
+
|
|
34
|
+
attr_accessor created_before: Time?
|
|
35
|
+
|
|
30
36
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
31
37
|
|
|
32
38
|
attr_accessor first: Integer?
|
|
@@ -44,6 +50,8 @@ module WhopSDK
|
|
|
44
50
|
?after: String?,
|
|
45
51
|
?before: String?,
|
|
46
52
|
?collection_methods: ::Array[WhopSDK::Models::collection_method]?,
|
|
53
|
+
?created_after: Time?,
|
|
54
|
+
?created_before: Time?,
|
|
47
55
|
?direction: WhopSDK::Models::direction?,
|
|
48
56
|
?first: Integer?,
|
|
49
57
|
?last: Integer?,
|
|
@@ -58,6 +66,8 @@ module WhopSDK
|
|
|
58
66
|
after: String?,
|
|
59
67
|
before: String?,
|
|
60
68
|
collection_methods: ::Array[WhopSDK::Models::collection_method]?,
|
|
69
|
+
created_after: Time?,
|
|
70
|
+
created_before: Time?,
|
|
61
71
|
direction: WhopSDK::Models::direction?,
|
|
62
72
|
first: Integer?,
|
|
63
73
|
last: Integer?,
|
|
@@ -20,6 +20,7 @@ module WhopSDK
|
|
|
20
20
|
metadata: ::Hash[Symbol, top]?,
|
|
21
21
|
paid_at: Time?,
|
|
22
22
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
23
|
+
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
23
24
|
plan: WhopSDK::Payment::Plan?,
|
|
24
25
|
product: WhopSDK::Payment::Product?,
|
|
25
26
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -73,6 +74,8 @@ module WhopSDK
|
|
|
73
74
|
|
|
74
75
|
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
75
76
|
|
|
77
|
+
attr_accessor payment_token: WhopSDK::Payment::PaymentToken?
|
|
78
|
+
|
|
76
79
|
attr_accessor plan: WhopSDK::Payment::Plan?
|
|
77
80
|
|
|
78
81
|
attr_accessor product: WhopSDK::Payment::Product?
|
|
@@ -120,6 +123,7 @@ module WhopSDK
|
|
|
120
123
|
metadata: ::Hash[Symbol, top]?,
|
|
121
124
|
paid_at: Time?,
|
|
122
125
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
126
|
+
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
123
127
|
plan: WhopSDK::Payment::Plan?,
|
|
124
128
|
product: WhopSDK::Payment::Product?,
|
|
125
129
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -155,6 +159,7 @@ module WhopSDK
|
|
|
155
159
|
metadata: ::Hash[Symbol, top]?,
|
|
156
160
|
paid_at: Time?,
|
|
157
161
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
162
|
+
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
158
163
|
plan: WhopSDK::Payment::Plan?,
|
|
159
164
|
product: WhopSDK::Payment::Product?,
|
|
160
165
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -263,6 +268,70 @@ module WhopSDK
|
|
|
263
268
|
}
|
|
264
269
|
end
|
|
265
270
|
|
|
271
|
+
type payment_token =
|
|
272
|
+
{
|
|
273
|
+
id: String,
|
|
274
|
+
card: WhopSDK::Payment::PaymentToken::Card?,
|
|
275
|
+
created_at: Time,
|
|
276
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
class PaymentToken < WhopSDK::Internal::Type::BaseModel
|
|
280
|
+
attr_accessor id: String
|
|
281
|
+
|
|
282
|
+
attr_accessor card: WhopSDK::Payment::PaymentToken::Card?
|
|
283
|
+
|
|
284
|
+
attr_accessor created_at: Time
|
|
285
|
+
|
|
286
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
287
|
+
|
|
288
|
+
def initialize: (
|
|
289
|
+
id: String,
|
|
290
|
+
card: WhopSDK::Payment::PaymentToken::Card?,
|
|
291
|
+
created_at: Time,
|
|
292
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
293
|
+
) -> void
|
|
294
|
+
|
|
295
|
+
def to_hash: -> {
|
|
296
|
+
id: String,
|
|
297
|
+
card: WhopSDK::Payment::PaymentToken::Card?,
|
|
298
|
+
created_at: Time,
|
|
299
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
type card =
|
|
303
|
+
{
|
|
304
|
+
brand: WhopSDK::Models::card_brands?,
|
|
305
|
+
exp_month: Integer?,
|
|
306
|
+
exp_year: Integer?,
|
|
307
|
+
:last4 => String?
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
311
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
312
|
+
|
|
313
|
+
attr_accessor exp_month: Integer?
|
|
314
|
+
|
|
315
|
+
attr_accessor exp_year: Integer?
|
|
316
|
+
|
|
317
|
+
attr_accessor last4: String?
|
|
318
|
+
|
|
319
|
+
def initialize: (
|
|
320
|
+
brand: WhopSDK::Models::card_brands?,
|
|
321
|
+
exp_month: Integer?,
|
|
322
|
+
exp_year: Integer?,
|
|
323
|
+
last4: String?
|
|
324
|
+
) -> void
|
|
325
|
+
|
|
326
|
+
def to_hash: -> {
|
|
327
|
+
brand: WhopSDK::Models::card_brands?,
|
|
328
|
+
exp_month: Integer?,
|
|
329
|
+
exp_year: Integer?,
|
|
330
|
+
:last4 => String?
|
|
331
|
+
}
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
266
335
|
type plan = { id: String }
|
|
267
336
|
|
|
268
337
|
class Plan < WhopSDK::Internal::Type::BaseModel
|