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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_retrieve_params =
|
|
4
|
+
{ } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class SetupIntentRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
def initialize: (?request_options: WhopSDK::request_opts) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { request_options: WhopSDK::RequestOptions }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_status =
|
|
4
|
+
:processing | :succeeded | :canceled | :requires_action
|
|
5
|
+
|
|
6
|
+
module SetupIntentStatus
|
|
7
|
+
extend WhopSDK::Internal::Type::Enum
|
|
8
|
+
|
|
9
|
+
PROCESSING: :processing
|
|
10
|
+
SUCCEEDED: :succeeded
|
|
11
|
+
CANCELED: :canceled
|
|
12
|
+
REQUIRES_ACTION: :requires_action
|
|
13
|
+
|
|
14
|
+
def self?.values: -> ::Array[WhopSDK::Models::setup_intent_status]
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_succeeded_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::SetupIntent,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"setup_intent.succeeded"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class SetupIntentSucceededWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::SetupIntent
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"setup_intent.succeeded"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::SetupIntent,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"setup_intent.succeeded"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::SetupIntent,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"setup_intent.succeeded"
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -4,6 +4,8 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
after: String?,
|
|
6
6
|
before: String?,
|
|
7
|
+
created_after: Time?,
|
|
8
|
+
created_before: Time?,
|
|
7
9
|
destination_id: String?,
|
|
8
10
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: 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 destination_id: String?
|
|
25
31
|
|
|
26
32
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
@@ -36,6 +42,8 @@ module WhopSDK
|
|
|
36
42
|
def initialize: (
|
|
37
43
|
?after: String?,
|
|
38
44
|
?before: String?,
|
|
45
|
+
?created_after: Time?,
|
|
46
|
+
?created_before: Time?,
|
|
39
47
|
?destination_id: String?,
|
|
40
48
|
?direction: WhopSDK::Models::direction?,
|
|
41
49
|
?first: Integer?,
|
|
@@ -48,6 +56,8 @@ module WhopSDK
|
|
|
48
56
|
def to_hash: -> {
|
|
49
57
|
after: String?,
|
|
50
58
|
before: String?,
|
|
59
|
+
created_after: Time?,
|
|
60
|
+
created_before: Time?,
|
|
51
61
|
destination_id: String?,
|
|
52
62
|
direction: WhopSDK::Models::direction?,
|
|
53
63
|
first: Integer?,
|
|
@@ -11,6 +11,9 @@ module WhopSDK
|
|
|
11
11
|
| WhopSDK::EntryApprovedWebhookEvent
|
|
12
12
|
| WhopSDK::EntryDeniedWebhookEvent
|
|
13
13
|
| WhopSDK::EntryDeletedWebhookEvent
|
|
14
|
+
| WhopSDK::SetupIntentRequiresActionWebhookEvent
|
|
15
|
+
| WhopSDK::SetupIntentSucceededWebhookEvent
|
|
16
|
+
| WhopSDK::SetupIntentCanceledWebhookEvent
|
|
14
17
|
| WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
15
18
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
16
19
|
| WhopSDK::PaymentFailedWebhookEvent
|
data/sig/whop_sdk/models.rbs
CHANGED
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
|
|
6
6
|
class AccessTokenCreateParams = WhopSDK::Models::AccessTokenCreateParams
|
|
7
7
|
|
|
8
|
+
class AccountLinkCreateParams = WhopSDK::Models::AccountLinkCreateParams
|
|
9
|
+
|
|
8
10
|
class App = WhopSDK::Models::App
|
|
9
11
|
|
|
10
12
|
class AppBuild = WhopSDK::Models::AppBuild
|
|
@@ -301,6 +303,8 @@ module WhopSDK
|
|
|
301
303
|
|
|
302
304
|
class Payment = WhopSDK::Models::Payment
|
|
303
305
|
|
|
306
|
+
class PaymentCreateParams = WhopSDK::Models::PaymentCreateParams
|
|
307
|
+
|
|
304
308
|
class PaymentFailedWebhookEvent = WhopSDK::Models::PaymentFailedWebhookEvent
|
|
305
309
|
|
|
306
310
|
class PaymentListParams = WhopSDK::Models::PaymentListParams
|
|
@@ -319,6 +323,10 @@ module WhopSDK
|
|
|
319
323
|
|
|
320
324
|
class PaymentSucceededWebhookEvent = WhopSDK::Models::PaymentSucceededWebhookEvent
|
|
321
325
|
|
|
326
|
+
class PaymentTokenListParams = WhopSDK::Models::PaymentTokenListParams
|
|
327
|
+
|
|
328
|
+
class PaymentTokenRetrieveParams = WhopSDK::Models::PaymentTokenRetrieveParams
|
|
329
|
+
|
|
322
330
|
class PaymentVoidParams = WhopSDK::Models::PaymentVoidParams
|
|
323
331
|
|
|
324
332
|
class Plan = WhopSDK::Models::Plan
|
|
@@ -397,6 +405,20 @@ module WhopSDK
|
|
|
397
405
|
|
|
398
406
|
module ReviewStatus = WhopSDK::Models::ReviewStatus
|
|
399
407
|
|
|
408
|
+
class SetupIntent = WhopSDK::Models::SetupIntent
|
|
409
|
+
|
|
410
|
+
class SetupIntentCanceledWebhookEvent = WhopSDK::Models::SetupIntentCanceledWebhookEvent
|
|
411
|
+
|
|
412
|
+
class SetupIntentListParams = WhopSDK::Models::SetupIntentListParams
|
|
413
|
+
|
|
414
|
+
class SetupIntentRequiresActionWebhookEvent = WhopSDK::Models::SetupIntentRequiresActionWebhookEvent
|
|
415
|
+
|
|
416
|
+
class SetupIntentRetrieveParams = WhopSDK::Models::SetupIntentRetrieveParams
|
|
417
|
+
|
|
418
|
+
module SetupIntentStatus = WhopSDK::Models::SetupIntentStatus
|
|
419
|
+
|
|
420
|
+
class SetupIntentSucceededWebhookEvent = WhopSDK::Models::SetupIntentSucceededWebhookEvent
|
|
421
|
+
|
|
400
422
|
class Shipment = WhopSDK::Models::Shipment
|
|
401
423
|
|
|
402
424
|
module ShipmentCarrier = WhopSDK::Models::ShipmentCarrier
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class AccountLinks
|
|
4
|
+
def create: (
|
|
5
|
+
company_id: String,
|
|
6
|
+
refresh_url: String,
|
|
7
|
+
return_url: String,
|
|
8
|
+
use_case: WhopSDK::Models::AccountLinkCreateParams::use_case,
|
|
9
|
+
?request_options: WhopSDK::request_opts
|
|
10
|
+
) -> WhopSDK::Models::AccountLinkCreateResponse
|
|
11
|
+
|
|
12
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
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
|
?request_options: WhopSDK::request_opts
|
|
@@ -19,6 +20,8 @@ module WhopSDK
|
|
|
19
20
|
app_id: String,
|
|
20
21
|
?after: String?,
|
|
21
22
|
?before: String?,
|
|
23
|
+
?created_after: Time?,
|
|
24
|
+
?created_before: Time?,
|
|
22
25
|
?first: Integer?,
|
|
23
26
|
?last: Integer?,
|
|
24
27
|
?platform: WhopSDK::Models::app_build_platforms?,
|
|
@@ -26,6 +26,8 @@ module WhopSDK
|
|
|
26
26
|
?after: String?,
|
|
27
27
|
?before: String?,
|
|
28
28
|
?collection_methods: ::Array[WhopSDK::Models::collection_method]?,
|
|
29
|
+
?created_after: Time?,
|
|
30
|
+
?created_before: Time?,
|
|
29
31
|
?direction: WhopSDK::Models::direction?,
|
|
30
32
|
?first: Integer?,
|
|
31
33
|
?last: Integer?,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class PaymentTokens
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String id,
|
|
6
|
+
member_id: String,
|
|
7
|
+
?request_options: WhopSDK::request_opts
|
|
8
|
+
) -> WhopSDK::Models::PaymentTokenRetrieveResponse
|
|
9
|
+
|
|
10
|
+
def list: (
|
|
11
|
+
member_id: String,
|
|
12
|
+
?after: String?,
|
|
13
|
+
?before: String?,
|
|
14
|
+
?created_after: Time?,
|
|
15
|
+
?created_before: Time?,
|
|
16
|
+
?direction: WhopSDK::Models::direction?,
|
|
17
|
+
?first: Integer?,
|
|
18
|
+
?last: Integer?,
|
|
19
|
+
?request_options: WhopSDK::request_opts
|
|
20
|
+
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::PaymentTokenListResponse]
|
|
21
|
+
|
|
22
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Resources
|
|
3
3
|
class Payments
|
|
4
|
+
def create: (
|
|
5
|
+
company_id: String,
|
|
6
|
+
member_id: String,
|
|
7
|
+
payment_token_id: String,
|
|
8
|
+
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
9
|
+
plan_id: String,
|
|
10
|
+
?request_options: WhopSDK::request_opts
|
|
11
|
+
) -> WhopSDK::Payment
|
|
12
|
+
|
|
4
13
|
def retrieve: (
|
|
5
14
|
String id,
|
|
6
15
|
?request_options: WhopSDK::request_opts
|
|
@@ -18,8 +18,6 @@ module WhopSDK
|
|
|
18
18
|
?release_method: WhopSDK::Models::release_method?,
|
|
19
19
|
?renewal_price: Float?,
|
|
20
20
|
?stock: Integer?,
|
|
21
|
-
?strike_through_initial_price: Float?,
|
|
22
|
-
?strike_through_renewal_price: Float?,
|
|
23
21
|
?title: String?,
|
|
24
22
|
?trial_period_days: Integer?,
|
|
25
23
|
?unlimited_stock: bool?,
|
|
@@ -60,6 +58,8 @@ module WhopSDK
|
|
|
60
58
|
company_id: String,
|
|
61
59
|
?after: String?,
|
|
62
60
|
?before: String?,
|
|
61
|
+
?created_after: Time?,
|
|
62
|
+
?created_before: Time?,
|
|
63
63
|
?direction: WhopSDK::Models::direction?,
|
|
64
64
|
?first: Integer?,
|
|
65
65
|
?last: Integer?,
|
|
@@ -33,7 +33,6 @@ module WhopSDK
|
|
|
33
33
|
|
|
34
34
|
def update: (
|
|
35
35
|
String id,
|
|
36
|
-
?banner_image: WhopSDK::Models::ProductUpdateParams::banner_image?,
|
|
37
36
|
?business_type: WhopSDK::Models::business_types?,
|
|
38
37
|
?collect_shipping_address: bool?,
|
|
39
38
|
?custom_cta: WhopSDK::Models::custom_cta?,
|
|
@@ -59,6 +58,8 @@ module WhopSDK
|
|
|
59
58
|
company_id: String,
|
|
60
59
|
?after: String?,
|
|
61
60
|
?before: String?,
|
|
61
|
+
?created_after: Time?,
|
|
62
|
+
?created_before: Time?,
|
|
62
63
|
?direction: WhopSDK::Models::direction?,
|
|
63
64
|
?first: Integer?,
|
|
64
65
|
?last: Integer?,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Resources
|
|
3
|
+
class SetupIntents
|
|
4
|
+
def retrieve: (
|
|
5
|
+
String id,
|
|
6
|
+
?request_options: WhopSDK::request_opts
|
|
7
|
+
) -> WhopSDK::SetupIntent
|
|
8
|
+
|
|
9
|
+
def list: (
|
|
10
|
+
company_id: String,
|
|
11
|
+
?after: String?,
|
|
12
|
+
?before: String?,
|
|
13
|
+
?created_after: Time?,
|
|
14
|
+
?created_before: Time?,
|
|
15
|
+
?direction: WhopSDK::Models::direction?,
|
|
16
|
+
?first: Integer?,
|
|
17
|
+
?last: Integer?,
|
|
18
|
+
?request_options: WhopSDK::request_opts
|
|
19
|
+
) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::SetupIntentListResponse]
|
|
20
|
+
|
|
21
|
+
def initialize: (client: WhopSDK::Client) -> void
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
@@ -13,6 +13,9 @@ module WhopSDK
|
|
|
13
13
|
| WhopSDK::EntryApprovedWebhookEvent
|
|
14
14
|
| WhopSDK::EntryDeniedWebhookEvent
|
|
15
15
|
| WhopSDK::EntryDeletedWebhookEvent
|
|
16
|
+
| WhopSDK::SetupIntentRequiresActionWebhookEvent
|
|
17
|
+
| WhopSDK::SetupIntentSucceededWebhookEvent
|
|
18
|
+
| WhopSDK::SetupIntentCanceledWebhookEvent
|
|
16
19
|
| WhopSDK::CourseLessonInteractionCompletedWebhookEvent
|
|
17
20
|
| WhopSDK::PaymentSucceededWebhookEvent
|
|
18
21
|
| WhopSDK::PaymentFailedWebhookEvent
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whop_sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Whop
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: connection_pool
|
|
@@ -89,6 +89,8 @@ files:
|
|
|
89
89
|
- lib/whop_sdk/models/access_pass_type.rb
|
|
90
90
|
- lib/whop_sdk/models/access_token_create_params.rb
|
|
91
91
|
- lib/whop_sdk/models/access_token_create_response.rb
|
|
92
|
+
- lib/whop_sdk/models/account_link_create_params.rb
|
|
93
|
+
- lib/whop_sdk/models/account_link_create_response.rb
|
|
92
94
|
- lib/whop_sdk/models/app.rb
|
|
93
95
|
- lib/whop_sdk/models/app_build.rb
|
|
94
96
|
- lib/whop_sdk/models/app_build_create_params.rb
|
|
@@ -269,6 +271,7 @@ files:
|
|
|
269
271
|
- lib/whop_sdk/models/notification_create_response.rb
|
|
270
272
|
- lib/whop_sdk/models/page_info.rb
|
|
271
273
|
- lib/whop_sdk/models/payment.rb
|
|
274
|
+
- lib/whop_sdk/models/payment_create_params.rb
|
|
272
275
|
- lib/whop_sdk/models/payment_failed_webhook_event.rb
|
|
273
276
|
- lib/whop_sdk/models/payment_list_params.rb
|
|
274
277
|
- lib/whop_sdk/models/payment_list_response.rb
|
|
@@ -279,6 +282,10 @@ files:
|
|
|
279
282
|
- lib/whop_sdk/models/payment_retrieve_params.rb
|
|
280
283
|
- lib/whop_sdk/models/payment_retry_params.rb
|
|
281
284
|
- lib/whop_sdk/models/payment_succeeded_webhook_event.rb
|
|
285
|
+
- lib/whop_sdk/models/payment_token_list_params.rb
|
|
286
|
+
- lib/whop_sdk/models/payment_token_list_response.rb
|
|
287
|
+
- lib/whop_sdk/models/payment_token_retrieve_params.rb
|
|
288
|
+
- lib/whop_sdk/models/payment_token_retrieve_response.rb
|
|
282
289
|
- lib/whop_sdk/models/payment_void_params.rb
|
|
283
290
|
- lib/whop_sdk/models/plan.rb
|
|
284
291
|
- lib/whop_sdk/models/plan_create_params.rb
|
|
@@ -328,6 +335,14 @@ files:
|
|
|
328
335
|
- lib/whop_sdk/models/review_retrieve_params.rb
|
|
329
336
|
- lib/whop_sdk/models/review_retrieve_response.rb
|
|
330
337
|
- lib/whop_sdk/models/review_status.rb
|
|
338
|
+
- lib/whop_sdk/models/setup_intent.rb
|
|
339
|
+
- lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb
|
|
340
|
+
- lib/whop_sdk/models/setup_intent_list_params.rb
|
|
341
|
+
- lib/whop_sdk/models/setup_intent_list_response.rb
|
|
342
|
+
- lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb
|
|
343
|
+
- lib/whop_sdk/models/setup_intent_retrieve_params.rb
|
|
344
|
+
- lib/whop_sdk/models/setup_intent_status.rb
|
|
345
|
+
- lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb
|
|
331
346
|
- lib/whop_sdk/models/shipment.rb
|
|
332
347
|
- lib/whop_sdk/models/shipment_carrier.rb
|
|
333
348
|
- lib/whop_sdk/models/shipment_create_params.rb
|
|
@@ -369,6 +384,7 @@ files:
|
|
|
369
384
|
- lib/whop_sdk/models/withdrawal_types.rb
|
|
370
385
|
- lib/whop_sdk/request_options.rb
|
|
371
386
|
- lib/whop_sdk/resources/access_tokens.rb
|
|
387
|
+
- lib/whop_sdk/resources/account_links.rb
|
|
372
388
|
- lib/whop_sdk/resources/app_builds.rb
|
|
373
389
|
- lib/whop_sdk/resources/apps.rb
|
|
374
390
|
- lib/whop_sdk/resources/authorized_users.rb
|
|
@@ -391,6 +407,7 @@ files:
|
|
|
391
407
|
- lib/whop_sdk/resources/memberships.rb
|
|
392
408
|
- lib/whop_sdk/resources/messages.rb
|
|
393
409
|
- lib/whop_sdk/resources/notifications.rb
|
|
410
|
+
- lib/whop_sdk/resources/payment_tokens.rb
|
|
394
411
|
- lib/whop_sdk/resources/payments.rb
|
|
395
412
|
- lib/whop_sdk/resources/plans.rb
|
|
396
413
|
- lib/whop_sdk/resources/products.rb
|
|
@@ -398,6 +415,7 @@ files:
|
|
|
398
415
|
- lib/whop_sdk/resources/reactions.rb
|
|
399
416
|
- lib/whop_sdk/resources/refunds.rb
|
|
400
417
|
- lib/whop_sdk/resources/reviews.rb
|
|
418
|
+
- lib/whop_sdk/resources/setup_intents.rb
|
|
401
419
|
- lib/whop_sdk/resources/shipments.rb
|
|
402
420
|
- lib/whop_sdk/resources/support_channels.rb
|
|
403
421
|
- lib/whop_sdk/resources/transfers.rb
|
|
@@ -430,6 +448,8 @@ files:
|
|
|
430
448
|
- rbi/whop_sdk/models/access_pass_type.rbi
|
|
431
449
|
- rbi/whop_sdk/models/access_token_create_params.rbi
|
|
432
450
|
- rbi/whop_sdk/models/access_token_create_response.rbi
|
|
451
|
+
- rbi/whop_sdk/models/account_link_create_params.rbi
|
|
452
|
+
- rbi/whop_sdk/models/account_link_create_response.rbi
|
|
433
453
|
- rbi/whop_sdk/models/app.rbi
|
|
434
454
|
- rbi/whop_sdk/models/app_build.rbi
|
|
435
455
|
- rbi/whop_sdk/models/app_build_create_params.rbi
|
|
@@ -610,6 +630,7 @@ files:
|
|
|
610
630
|
- rbi/whop_sdk/models/notification_create_response.rbi
|
|
611
631
|
- rbi/whop_sdk/models/page_info.rbi
|
|
612
632
|
- rbi/whop_sdk/models/payment.rbi
|
|
633
|
+
- rbi/whop_sdk/models/payment_create_params.rbi
|
|
613
634
|
- rbi/whop_sdk/models/payment_failed_webhook_event.rbi
|
|
614
635
|
- rbi/whop_sdk/models/payment_list_params.rbi
|
|
615
636
|
- rbi/whop_sdk/models/payment_list_response.rbi
|
|
@@ -620,6 +641,10 @@ files:
|
|
|
620
641
|
- rbi/whop_sdk/models/payment_retrieve_params.rbi
|
|
621
642
|
- rbi/whop_sdk/models/payment_retry_params.rbi
|
|
622
643
|
- rbi/whop_sdk/models/payment_succeeded_webhook_event.rbi
|
|
644
|
+
- rbi/whop_sdk/models/payment_token_list_params.rbi
|
|
645
|
+
- rbi/whop_sdk/models/payment_token_list_response.rbi
|
|
646
|
+
- rbi/whop_sdk/models/payment_token_retrieve_params.rbi
|
|
647
|
+
- rbi/whop_sdk/models/payment_token_retrieve_response.rbi
|
|
623
648
|
- rbi/whop_sdk/models/payment_void_params.rbi
|
|
624
649
|
- rbi/whop_sdk/models/plan.rbi
|
|
625
650
|
- rbi/whop_sdk/models/plan_create_params.rbi
|
|
@@ -669,6 +694,14 @@ files:
|
|
|
669
694
|
- rbi/whop_sdk/models/review_retrieve_params.rbi
|
|
670
695
|
- rbi/whop_sdk/models/review_retrieve_response.rbi
|
|
671
696
|
- rbi/whop_sdk/models/review_status.rbi
|
|
697
|
+
- rbi/whop_sdk/models/setup_intent.rbi
|
|
698
|
+
- rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi
|
|
699
|
+
- rbi/whop_sdk/models/setup_intent_list_params.rbi
|
|
700
|
+
- rbi/whop_sdk/models/setup_intent_list_response.rbi
|
|
701
|
+
- rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi
|
|
702
|
+
- rbi/whop_sdk/models/setup_intent_retrieve_params.rbi
|
|
703
|
+
- rbi/whop_sdk/models/setup_intent_status.rbi
|
|
704
|
+
- rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi
|
|
672
705
|
- rbi/whop_sdk/models/shipment.rbi
|
|
673
706
|
- rbi/whop_sdk/models/shipment_carrier.rbi
|
|
674
707
|
- rbi/whop_sdk/models/shipment_create_params.rbi
|
|
@@ -710,6 +743,7 @@ files:
|
|
|
710
743
|
- rbi/whop_sdk/models/withdrawal_types.rbi
|
|
711
744
|
- rbi/whop_sdk/request_options.rbi
|
|
712
745
|
- rbi/whop_sdk/resources/access_tokens.rbi
|
|
746
|
+
- rbi/whop_sdk/resources/account_links.rbi
|
|
713
747
|
- rbi/whop_sdk/resources/app_builds.rbi
|
|
714
748
|
- rbi/whop_sdk/resources/apps.rbi
|
|
715
749
|
- rbi/whop_sdk/resources/authorized_users.rbi
|
|
@@ -732,6 +766,7 @@ files:
|
|
|
732
766
|
- rbi/whop_sdk/resources/memberships.rbi
|
|
733
767
|
- rbi/whop_sdk/resources/messages.rbi
|
|
734
768
|
- rbi/whop_sdk/resources/notifications.rbi
|
|
769
|
+
- rbi/whop_sdk/resources/payment_tokens.rbi
|
|
735
770
|
- rbi/whop_sdk/resources/payments.rbi
|
|
736
771
|
- rbi/whop_sdk/resources/plans.rbi
|
|
737
772
|
- rbi/whop_sdk/resources/products.rbi
|
|
@@ -739,6 +774,7 @@ files:
|
|
|
739
774
|
- rbi/whop_sdk/resources/reactions.rbi
|
|
740
775
|
- rbi/whop_sdk/resources/refunds.rbi
|
|
741
776
|
- rbi/whop_sdk/resources/reviews.rbi
|
|
777
|
+
- rbi/whop_sdk/resources/setup_intents.rbi
|
|
742
778
|
- rbi/whop_sdk/resources/shipments.rbi
|
|
743
779
|
- rbi/whop_sdk/resources/support_channels.rbi
|
|
744
780
|
- rbi/whop_sdk/resources/transfers.rbi
|
|
@@ -770,6 +806,8 @@ files:
|
|
|
770
806
|
- sig/whop_sdk/models/access_pass_type.rbs
|
|
771
807
|
- sig/whop_sdk/models/access_token_create_params.rbs
|
|
772
808
|
- sig/whop_sdk/models/access_token_create_response.rbs
|
|
809
|
+
- sig/whop_sdk/models/account_link_create_params.rbs
|
|
810
|
+
- sig/whop_sdk/models/account_link_create_response.rbs
|
|
773
811
|
- sig/whop_sdk/models/app.rbs
|
|
774
812
|
- sig/whop_sdk/models/app_build.rbs
|
|
775
813
|
- sig/whop_sdk/models/app_build_create_params.rbs
|
|
@@ -950,6 +988,7 @@ files:
|
|
|
950
988
|
- sig/whop_sdk/models/notification_create_response.rbs
|
|
951
989
|
- sig/whop_sdk/models/page_info.rbs
|
|
952
990
|
- sig/whop_sdk/models/payment.rbs
|
|
991
|
+
- sig/whop_sdk/models/payment_create_params.rbs
|
|
953
992
|
- sig/whop_sdk/models/payment_failed_webhook_event.rbs
|
|
954
993
|
- sig/whop_sdk/models/payment_list_params.rbs
|
|
955
994
|
- sig/whop_sdk/models/payment_list_response.rbs
|
|
@@ -960,6 +999,10 @@ files:
|
|
|
960
999
|
- sig/whop_sdk/models/payment_retrieve_params.rbs
|
|
961
1000
|
- sig/whop_sdk/models/payment_retry_params.rbs
|
|
962
1001
|
- sig/whop_sdk/models/payment_succeeded_webhook_event.rbs
|
|
1002
|
+
- sig/whop_sdk/models/payment_token_list_params.rbs
|
|
1003
|
+
- sig/whop_sdk/models/payment_token_list_response.rbs
|
|
1004
|
+
- sig/whop_sdk/models/payment_token_retrieve_params.rbs
|
|
1005
|
+
- sig/whop_sdk/models/payment_token_retrieve_response.rbs
|
|
963
1006
|
- sig/whop_sdk/models/payment_void_params.rbs
|
|
964
1007
|
- sig/whop_sdk/models/plan.rbs
|
|
965
1008
|
- sig/whop_sdk/models/plan_create_params.rbs
|
|
@@ -1009,6 +1052,14 @@ files:
|
|
|
1009
1052
|
- sig/whop_sdk/models/review_retrieve_params.rbs
|
|
1010
1053
|
- sig/whop_sdk/models/review_retrieve_response.rbs
|
|
1011
1054
|
- sig/whop_sdk/models/review_status.rbs
|
|
1055
|
+
- sig/whop_sdk/models/setup_intent.rbs
|
|
1056
|
+
- sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs
|
|
1057
|
+
- sig/whop_sdk/models/setup_intent_list_params.rbs
|
|
1058
|
+
- sig/whop_sdk/models/setup_intent_list_response.rbs
|
|
1059
|
+
- sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs
|
|
1060
|
+
- sig/whop_sdk/models/setup_intent_retrieve_params.rbs
|
|
1061
|
+
- sig/whop_sdk/models/setup_intent_status.rbs
|
|
1062
|
+
- sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs
|
|
1012
1063
|
- sig/whop_sdk/models/shipment.rbs
|
|
1013
1064
|
- sig/whop_sdk/models/shipment_carrier.rbs
|
|
1014
1065
|
- sig/whop_sdk/models/shipment_create_params.rbs
|
|
@@ -1050,6 +1101,7 @@ files:
|
|
|
1050
1101
|
- sig/whop_sdk/models/withdrawal_types.rbs
|
|
1051
1102
|
- sig/whop_sdk/request_options.rbs
|
|
1052
1103
|
- sig/whop_sdk/resources/access_tokens.rbs
|
|
1104
|
+
- sig/whop_sdk/resources/account_links.rbs
|
|
1053
1105
|
- sig/whop_sdk/resources/app_builds.rbs
|
|
1054
1106
|
- sig/whop_sdk/resources/apps.rbs
|
|
1055
1107
|
- sig/whop_sdk/resources/authorized_users.rbs
|
|
@@ -1072,6 +1124,7 @@ files:
|
|
|
1072
1124
|
- sig/whop_sdk/resources/memberships.rbs
|
|
1073
1125
|
- sig/whop_sdk/resources/messages.rbs
|
|
1074
1126
|
- sig/whop_sdk/resources/notifications.rbs
|
|
1127
|
+
- sig/whop_sdk/resources/payment_tokens.rbs
|
|
1075
1128
|
- sig/whop_sdk/resources/payments.rbs
|
|
1076
1129
|
- sig/whop_sdk/resources/plans.rbs
|
|
1077
1130
|
- sig/whop_sdk/resources/products.rbs
|
|
@@ -1079,6 +1132,7 @@ files:
|
|
|
1079
1132
|
- sig/whop_sdk/resources/reactions.rbs
|
|
1080
1133
|
- sig/whop_sdk/resources/refunds.rbs
|
|
1081
1134
|
- sig/whop_sdk/resources/reviews.rbs
|
|
1135
|
+
- sig/whop_sdk/resources/setup_intents.rbs
|
|
1082
1136
|
- sig/whop_sdk/resources/shipments.rbs
|
|
1083
1137
|
- sig/whop_sdk/resources/support_channels.rbs
|
|
1084
1138
|
- sig/whop_sdk/resources/transfers.rbs
|