whop_sdk 1.0.13 → 1.0.14
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/.fern/metadata.json +7 -5
- data/.fern/replay.lock +28 -0
- data/.fernignore +11 -0
- data/lib/whop_sdk/ad_groups/client.rb +2 -0
- data/lib/whop_sdk/ad_groups/types/search_targeting_options_ad_groups_request.rb +2 -0
- data/lib/whop_sdk/ad_groups/types/search_targeting_options_ad_groups_request_special_ad_categories_item.rb +16 -0
- data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +1 -0
- data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +1 -0
- data/lib/whop_sdk/apps/client.rb +2 -0
- data/lib/whop_sdk/apps/types/list_apps_request.rb +2 -0
- data/lib/whop_sdk/checkout_sessions/client.rb +52 -0
- data/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request.rb +37 -0
- data/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_items_item.rb +13 -0
- data/lib/whop_sdk/checkout_sessions/types/create_checkout_sessions_request_mode.rb +14 -0
- data/lib/whop_sdk/client.rb +6 -1
- data/lib/whop_sdk/disputes/client.rb +3 -3
- data/lib/whop_sdk/exports/types/create_exports_request_resource.rb +2 -2
- data/lib/whop_sdk/exports/types/list_exports_request_resource.rb +2 -2
- data/lib/whop_sdk/files/client.rb +60 -6
- data/lib/whop_sdk/files/types/complete_files_request.rb +15 -0
- data/lib/whop_sdk/files/types/complete_files_request_multipart_parts_item.rb +13 -0
- data/lib/whop_sdk/files/types/create_files_request.rb +5 -1
- data/lib/whop_sdk/files/types/create_files_request_visibility.rb +14 -0
- data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +2 -0
- data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
- data/lib/whop_sdk/ledgers/types/get_financial_report_response_rows_item_line_category.rb +2 -0
- data/lib/whop_sdk/payouts/methods/types/create_methods_response_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/methods/types/list_methods_response_data_item_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/methods/types/update_methods_response_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/supported_methods/types/list_supported_methods_response_data_item_delivery_type.rb +2 -3
- data/lib/whop_sdk/payouts/types/create_payouts_response_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/list_payouts_response_data_item_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/post_payout_method_created_payload_data_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/post_withdrawal_created_payload_data_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/post_withdrawal_reversed_payload_data_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/post_withdrawal_updated_payload_data_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/payouts/types/retrieve_payouts_response_payout_method_supported_payout_method_delivery_type.rb +2 -2
- data/lib/whop_sdk/plans/client.rb +3 -4
- data/lib/whop_sdk/plans/types/list_plans_request.rb +1 -1
- data/lib/whop_sdk/products/client.rb +17 -4
- data/lib/whop_sdk/products/types/list_products_request.rb +15 -1
- data/lib/whop_sdk/products/types/list_products_request_plan_types_item.rb +14 -0
- data/lib/whop_sdk/types/account.rb +8 -0
- data/lib/whop_sdk/types/api_key_api_version_date.rb +1 -0
- data/lib/whop_sdk/types/app.rb +2 -0
- data/lib/whop_sdk/types/app_elements_used_item.rb +45 -0
- data/lib/whop_sdk/types/bounty.rb +6 -0
- data/lib/whop_sdk/types/{transfer_origin_company.rb → bounty_active_livestream_feed.rb} +3 -4
- data/lib/whop_sdk/types/checkout_session.rb +95 -0
- data/lib/whop_sdk/types/checkout_session_authenticate_action.rb +9 -0
- data/lib/whop_sdk/types/checkout_session_await_claim_action.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_await_claim_action_state.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_branding.rb +29 -0
- data/lib/whop_sdk/types/checkout_session_branding_border_style.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_branding_font_family.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_breakdown.rb +21 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_adjustment.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_adjustment_applied.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_adjustment_kind.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_adjustment_status.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_currency.rb +100 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_headline.rb +21 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_headline_kind.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_row.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail.rb +35 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_row_detail_applied.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_row_kind.rb +33 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_row_status.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_display_sections.rb +15 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_line.rb +17 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_line_kind.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_upcoming.rb +20 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_upcoming_installments.rb +21 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_upcoming_one_time.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_breakdown_upcoming_recurring.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_buyer_identity.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_buyer_identity_method.rb +15 -0
- data/lib/whop_sdk/types/checkout_session_complete_action.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_complete_action_kind.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_confirm_error.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_confirm_error_code.rb +40 -0
- data/lib/whop_sdk/types/checkout_session_cta_label.rb +16 -0
- data/lib/whop_sdk/types/checkout_session_custom_field.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_custom_field_field_type.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_custom_field_response.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_entry.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_entry_status.rb +14 -0
- data/lib/whop_sdk/types/checkout_session_item.rb +21 -0
- data/lib/whop_sdk/types/checkout_session_mode.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_next_action.rb +28 -0
- data/lib/whop_sdk/types/checkout_session_payment.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_payment_status.rb +14 -0
- data/lib/whop_sdk/types/checkout_session_promo.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_promo_currency.rb +100 -0
- data/lib/whop_sdk/types/checkout_session_promo_duration.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_promo_promo_type.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_quote.rb +23 -0
- data/lib/whop_sdk/types/checkout_session_redirect_action.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_requirement.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_requirement_type.rb +16 -0
- data/lib/whop_sdk/types/checkout_session_seller.rb +19 -0
- data/lib/whop_sdk/types/checkout_session_seller_terms.rb +17 -0
- data/lib/whop_sdk/types/checkout_session_shipping_address.rb +21 -0
- data/lib/whop_sdk/types/checkout_session_status.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_tax_behavior.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_tax_id.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_tax_id_type.rb +123 -0
- data/lib/whop_sdk/types/checkout_session_three_ds_level.rb +12 -0
- data/lib/whop_sdk/types/checkout_session_transfer.rb +13 -0
- data/lib/whop_sdk/types/checkout_session_upgrade_authentication_action.rb +15 -0
- data/lib/whop_sdk/types/checkout_session_upgrade_authentication_action_sign_in_intent.rb +11 -0
- data/lib/whop_sdk/types/checkout_session_verify_phone_action.rb +9 -0
- data/lib/whop_sdk/types/checkout_session_wait_for_payment_action.rb +11 -0
- data/lib/whop_sdk/types/dispute_evidence_document.rb +20 -0
- data/lib/whop_sdk/types/dispute_evidence_document_upload_status.rb +14 -0
- data/lib/whop_sdk/types/dispute_evidence_document_visibility.rb +12 -0
- data/lib/whop_sdk/types/export_resource.rb +2 -2
- data/lib/whop_sdk/types/file.rb +16 -3
- data/lib/whop_sdk/types/file_multipart_url.rb +11 -0
- data/lib/whop_sdk/types/file_upload_status.rb +14 -0
- data/lib/whop_sdk/types/forum_experience.rb +2 -0
- data/lib/whop_sdk/types/forum_list_item_experience.rb +2 -0
- data/lib/whop_sdk/types/ledger_activity.rb +2 -0
- data/lib/whop_sdk/types/ledger_activity_line_type.rb +2 -0
- data/lib/whop_sdk/types/ledger_activity_payment.rb +23 -0
- data/lib/whop_sdk/types/ledger_activity_payment_object.rb +11 -0
- data/lib/whop_sdk/types/ledger_activity_source.rb +8 -0
- data/lib/whop_sdk/types/product.rb +2 -0
- data/lib/whop_sdk/types/product_list_item.rb +6 -0
- data/lib/whop_sdk/types/product_public_plan.rb +25 -0
- data/lib/whop_sdk/types/product_public_plan_plan_type.rb +12 -0
- data/lib/whop_sdk/types/product_public_plan_visibility.rb +14 -0
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +90 -12
- data/reference.md +359 -21
- metadata +89 -10
- data/lib/whop_sdk/files/types/create_files_response.rb +0 -28
- data/lib/whop_sdk/types/transfer.rb +0 -11
- data/lib/whop_sdk/types/transfer_destination.rb +0 -15
- data/lib/whop_sdk/types/transfer_destination_company.rb +0 -14
- data/lib/whop_sdk/types/transfer_destination_user.rb +0 -14
- data/lib/whop_sdk/types/transfer_origin.rb +0 -15
- data/lib/whop_sdk/types/transfer_origin_user.rb +0 -14
data/reference.md
CHANGED
|
@@ -2743,6 +2743,14 @@ client.ad_groups.search_targeting_options(platform: "meta")
|
|
|
2743
2743
|
<dl>
|
|
2744
2744
|
<dd>
|
|
2745
2745
|
|
|
2746
|
+
**special_ad_categories:** `Whop_sdk::AdGroups::Types::SearchTargetingOptionsAdGroupsRequestSpecialAdCategoriesItem` — The campaign's declared special ad categories. Under `housing`, `employment`, or `financial_products` the ad platform allows interests only, drawn from a short approved list, so results are narrowed to what such a campaign can launch with and other kinds return nothing. Blank `query` browses that approved list instead of the usual fixed lists.
|
|
2747
|
+
|
|
2748
|
+
</dd>
|
|
2749
|
+
</dl>
|
|
2750
|
+
|
|
2751
|
+
<dl>
|
|
2752
|
+
<dd>
|
|
2753
|
+
|
|
2746
2754
|
**request_options:** `Whop_sdk::AdGroups::RequestOptions`
|
|
2747
2755
|
|
|
2748
2756
|
</dd>
|
|
@@ -6303,6 +6311,14 @@ client.apps.list
|
|
|
6303
6311
|
<dl>
|
|
6304
6312
|
<dd>
|
|
6305
6313
|
|
|
6314
|
+
**recommended:** `Internal::Types::Boolean` — Only return apps Whop recommends (or, with `false`, only those it does not). The community blueprints gallery is the recommended slice of the public website list.
|
|
6315
|
+
|
|
6316
|
+
</dd>
|
|
6317
|
+
</dl>
|
|
6318
|
+
|
|
6319
|
+
<dl>
|
|
6320
|
+
<dd>
|
|
6321
|
+
|
|
6306
6322
|
**query:** `String` — A search string matched against app names.
|
|
6307
6323
|
|
|
6308
6324
|
</dd>
|
|
@@ -10353,6 +10369,173 @@ client.checkout_configurations.delete(id: "id")
|
|
|
10353
10369
|
</dl>
|
|
10354
10370
|
|
|
10355
10371
|
|
|
10372
|
+
</dd>
|
|
10373
|
+
</dl>
|
|
10374
|
+
</details>
|
|
10375
|
+
|
|
10376
|
+
## Checkout Sessions
|
|
10377
|
+
<details><summary><code>client.checkout_sessions.<a href="/lib/whop_sdk/checkout_sessions/client.rb">create</a>(request) -> Whop_sdk::Types::CheckoutSession</code></summary>
|
|
10378
|
+
<dl>
|
|
10379
|
+
<dd>
|
|
10380
|
+
|
|
10381
|
+
#### 📝 Description
|
|
10382
|
+
|
|
10383
|
+
<dl>
|
|
10384
|
+
<dd>
|
|
10385
|
+
|
|
10386
|
+
<dl>
|
|
10387
|
+
<dd>
|
|
10388
|
+
|
|
10389
|
+
Opens a checkout session. No credentials required. Pass exactly one of `items`, `checkout_configuration`, or `link`. The response includes `client_secret` once; later calls authenticate with it.
|
|
10390
|
+
</dd>
|
|
10391
|
+
</dl>
|
|
10392
|
+
</dd>
|
|
10393
|
+
</dl>
|
|
10394
|
+
|
|
10395
|
+
#### 🔌 Usage
|
|
10396
|
+
|
|
10397
|
+
<dl>
|
|
10398
|
+
<dd>
|
|
10399
|
+
|
|
10400
|
+
<dl>
|
|
10401
|
+
<dd>
|
|
10402
|
+
|
|
10403
|
+
```ruby
|
|
10404
|
+
client.checkout_sessions.create
|
|
10405
|
+
```
|
|
10406
|
+
</dd>
|
|
10407
|
+
</dl>
|
|
10408
|
+
</dd>
|
|
10409
|
+
</dl>
|
|
10410
|
+
|
|
10411
|
+
#### ⚙️ Parameters
|
|
10412
|
+
|
|
10413
|
+
<dl>
|
|
10414
|
+
<dd>
|
|
10415
|
+
|
|
10416
|
+
<dl>
|
|
10417
|
+
<dd>
|
|
10418
|
+
|
|
10419
|
+
**affiliate_code:** `String` — The affiliate this checkout is attributed to. Write-once — set it here or never.
|
|
10420
|
+
|
|
10421
|
+
</dd>
|
|
10422
|
+
</dl>
|
|
10423
|
+
|
|
10424
|
+
<dl>
|
|
10425
|
+
<dd>
|
|
10426
|
+
|
|
10427
|
+
**attribution:** `Internal::Types::Hash[String, Object]` — String-to-string acquisition context. Recognized keys: `utm_source`, `utm_medium`, `utm_campaign`, `utm_term`, `utm_content`, `tracking_link_id`, `funnel_id`, `source`, `country`; anything else is dropped.
|
|
10428
|
+
|
|
10429
|
+
</dd>
|
|
10430
|
+
</dl>
|
|
10431
|
+
|
|
10432
|
+
<dl>
|
|
10433
|
+
<dd>
|
|
10434
|
+
|
|
10435
|
+
**checkout_configuration:** `String` — A seller's checkout configuration (`ch_…`) to open this checkout from. Its plan, mode, affiliate code, metadata, redirect URL, 3DS level and payment method configuration seed the session; anything you also send explicitly wins.
|
|
10436
|
+
|
|
10437
|
+
</dd>
|
|
10438
|
+
</dl>
|
|
10439
|
+
|
|
10440
|
+
<dl>
|
|
10441
|
+
<dd>
|
|
10442
|
+
|
|
10443
|
+
**items:** `Internal::Types::Array[Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestItemsItem]` — What the buyer is purchasing. Exactly one entry today — more are refused until multi-item checkout ships; the array shape is the forward contract. Alongside a `checkout_configuration` or `link` it may only name that mount's own plan, where it sets quantity.
|
|
10444
|
+
|
|
10445
|
+
</dd>
|
|
10446
|
+
</dl>
|
|
10447
|
+
|
|
10448
|
+
<dl>
|
|
10449
|
+
<dd>
|
|
10450
|
+
|
|
10451
|
+
**link:** `String` — Any checkout link the seller has shared, resolved for you: a plan ID, a checkout configuration ID, a vanity short link (send `page_route` with it), a membership transfer code, or a checkout link the seller handed out earlier. A link that is not a checkout link is refused with a coded message rather than a bare not-found.
|
|
10452
|
+
|
|
10453
|
+
</dd>
|
|
10454
|
+
</dl>
|
|
10455
|
+
|
|
10456
|
+
<dl>
|
|
10457
|
+
<dd>
|
|
10458
|
+
|
|
10459
|
+
**metadata:** `Internal::Types::Hash[String, String]` — Free-form string-to-string map, at most 40 keys. Whop never interprets it.
|
|
10460
|
+
|
|
10461
|
+
</dd>
|
|
10462
|
+
</dl>
|
|
10463
|
+
|
|
10464
|
+
<dl>
|
|
10465
|
+
<dd>
|
|
10466
|
+
|
|
10467
|
+
**mode:** `Whop_sdk::CheckoutSessions::Types::CreateCheckoutSessionsRequestMode` — Defaults to the checkout configuration's mode, then `payment`. `setup` sessions are not yet available and are refused.
|
|
10468
|
+
|
|
10469
|
+
</dd>
|
|
10470
|
+
</dl>
|
|
10471
|
+
|
|
10472
|
+
<dl>
|
|
10473
|
+
<dd>
|
|
10474
|
+
|
|
10475
|
+
**origin:** `String` — Where this checkout is being opened from — the scheme and host of your page, with no path (`https://shop.example.com`). Ignored when the request carries a browser `Origin` header, which is used instead. Recorded against the session as acquisition context.
|
|
10476
|
+
|
|
10477
|
+
</dd>
|
|
10478
|
+
</dl>
|
|
10479
|
+
|
|
10480
|
+
<dl>
|
|
10481
|
+
<dd>
|
|
10482
|
+
|
|
10483
|
+
**page_route:** `String` — The product route a vanity `link` belongs to — the `pageRoute` in the seller's shared URL.
|
|
10484
|
+
|
|
10485
|
+
</dd>
|
|
10486
|
+
</dl>
|
|
10487
|
+
|
|
10488
|
+
<dl>
|
|
10489
|
+
<dd>
|
|
10490
|
+
|
|
10491
|
+
**password:** `String` — The password for a password-protected plan. Right, and the gate is cleared for the session's whole life; wrong or omitted, and the session still opens — it publishes a `custom_password` requirement, the answer arrives through update, and confirm refuses until it is right.
|
|
10492
|
+
|
|
10493
|
+
</dd>
|
|
10494
|
+
</dl>
|
|
10495
|
+
|
|
10496
|
+
<dl>
|
|
10497
|
+
<dd>
|
|
10498
|
+
|
|
10499
|
+
**promo_code:** `String` — A promo code to apply to the quote.
|
|
10500
|
+
|
|
10501
|
+
</dd>
|
|
10502
|
+
</dl>
|
|
10503
|
+
|
|
10504
|
+
<dl>
|
|
10505
|
+
<dd>
|
|
10506
|
+
|
|
10507
|
+
**return_url:** `String` — Where the buyer lands after an off-site payment step. Absolute https URL without credentials.
|
|
10508
|
+
|
|
10509
|
+
</dd>
|
|
10510
|
+
</dl>
|
|
10511
|
+
|
|
10512
|
+
<dl>
|
|
10513
|
+
<dd>
|
|
10514
|
+
|
|
10515
|
+
**top_up_membership:** `String` — An existing membership (`mem_…`) this checkout pays against instead of creating a new one — the buyer pays the plan's price again onto something they already own. Ownership is checked at confirm, against the buyer who confirms: a membership they do not own is refused as not found. Cannot accompany a membership transfer link.
|
|
10516
|
+
|
|
10517
|
+
</dd>
|
|
10518
|
+
</dl>
|
|
10519
|
+
|
|
10520
|
+
<dl>
|
|
10521
|
+
<dd>
|
|
10522
|
+
|
|
10523
|
+
**tracking_link_ids_by_account:** `Internal::Types::Hash[String, String]` — First-party tracking-link candidates keyed by account ID. Ignored outside Whop's hosted checkout; an explicit `attribution.tracking_link_id` wins.
|
|
10524
|
+
|
|
10525
|
+
</dd>
|
|
10526
|
+
</dl>
|
|
10527
|
+
|
|
10528
|
+
<dl>
|
|
10529
|
+
<dd>
|
|
10530
|
+
|
|
10531
|
+
**request_options:** `Whop_sdk::CheckoutSessions::RequestOptions`
|
|
10532
|
+
|
|
10533
|
+
</dd>
|
|
10534
|
+
</dl>
|
|
10535
|
+
</dd>
|
|
10536
|
+
</dl>
|
|
10537
|
+
|
|
10538
|
+
|
|
10356
10539
|
</dd>
|
|
10357
10540
|
</dl>
|
|
10358
10541
|
</details>
|
|
@@ -14180,7 +14363,7 @@ client.disputes.update_evidence_dispute(id: "dspt_xxxxxxxxxxxxx")
|
|
|
14180
14363
|
<dl>
|
|
14181
14364
|
<dd>
|
|
14182
14365
|
|
|
14183
|
-
Replaces the full set of uploaded evidence documents on a dispute, beyond the four fixed evidence slots.
|
|
14366
|
+
Replaces the full set of uploaded evidence documents on a dispute, beyond the four fixed evidence slots. Upload files through `POST /files` and reference them by `id`, or send the files as multipart file parts to upload and attach in one call. Send every document the packet should carry — up to 10, 10MB each and 25MB in total; an empty list removes them all. Accepted content types: application/pdf, application/json, image/jpeg, image/png, image/webp — any other type is rejected.
|
|
14184
14367
|
</dd>
|
|
14185
14368
|
</dl>
|
|
14186
14369
|
</dd>
|
|
@@ -16851,7 +17034,7 @@ client.exports.create(resource: "ad_campaigns")
|
|
|
16851
17034
|
<dl>
|
|
16852
17035
|
<dd>
|
|
16853
17036
|
|
|
16854
|
-
**filters:** `Internal::Types::Hash[String, Object]` — Resource-specific filters. For native REST resources (`payouts`, `transfers`, `
|
|
17037
|
+
**filters:** `Internal::Types::Hash[String, Object]` — Resource-specific filters. For native REST resources (`payouts`, `transfers`, `products`) these are the resource's own list query params; for dashboard tables they mirror the dashboard table filters.
|
|
16855
17038
|
|
|
16856
17039
|
</dd>
|
|
16857
17040
|
</dl>
|
|
@@ -17225,7 +17408,7 @@ client.fee_markups.delete(id: "id")
|
|
|
17225
17408
|
</details>
|
|
17226
17409
|
|
|
17227
17410
|
## Files
|
|
17228
|
-
<details><summary><code>client.files.<a href="/lib/whop_sdk/files/client.rb">create</a>(request) -> Whop_sdk::
|
|
17411
|
+
<details><summary><code>client.files.<a href="/lib/whop_sdk/files/client.rb">create</a>(request) -> Whop_sdk::Types::File</code></summary>
|
|
17229
17412
|
<dl>
|
|
17230
17413
|
<dd>
|
|
17231
17414
|
|
|
@@ -17237,7 +17420,7 @@ client.fee_markups.delete(id: "id")
|
|
|
17237
17420
|
<dl>
|
|
17238
17421
|
<dd>
|
|
17239
17422
|
|
|
17240
|
-
|
|
17423
|
+
Creates a file and returns a presigned destination to upload its bytes to. PUT the bytes to `upload_url` (single-part), or to each of `multipart_upload_urls` and then call Complete File Multipart Upload. Once the bytes land the file becomes `ready`, and its ID can be attached wherever a file is accepted — account legal documents, dispute evidence documents.
|
|
17241
17424
|
</dd>
|
|
17242
17425
|
</dl>
|
|
17243
17426
|
</dd>
|
|
@@ -17252,7 +17435,7 @@ Create a new file record and receive a presigned URL for uploading content to S3
|
|
|
17252
17435
|
<dd>
|
|
17253
17436
|
|
|
17254
17437
|
```ruby
|
|
17255
|
-
client.files.create(filename: "
|
|
17438
|
+
client.files.create(filename: "terms.pdf")
|
|
17256
17439
|
```
|
|
17257
17440
|
</dd>
|
|
17258
17441
|
</dl>
|
|
@@ -17267,7 +17450,23 @@ client.files.create(filename: "filename")
|
|
|
17267
17450
|
<dl>
|
|
17268
17451
|
<dd>
|
|
17269
17452
|
|
|
17270
|
-
**
|
|
17453
|
+
**byte_size:** `Integer` — The file's size in bytes. Required when `multipart` is `true`. Multipart uploads support at most 10,000 parts of 5MB each (about 50 GB).
|
|
17454
|
+
|
|
17455
|
+
</dd>
|
|
17456
|
+
</dl>
|
|
17457
|
+
|
|
17458
|
+
<dl>
|
|
17459
|
+
<dd>
|
|
17460
|
+
|
|
17461
|
+
**filename:** `String` — The name of the file including its extension, e.g. `terms.pdf`.
|
|
17462
|
+
|
|
17463
|
+
</dd>
|
|
17464
|
+
</dl>
|
|
17465
|
+
|
|
17466
|
+
<dl>
|
|
17467
|
+
<dd>
|
|
17468
|
+
|
|
17469
|
+
**multipart:** `Internal::Types::Boolean` — Upload the file in 5MB parts. Required for files larger than 5GB; useful above ~100MB. The file must be larger than 5MB.
|
|
17271
17470
|
|
|
17272
17471
|
</dd>
|
|
17273
17472
|
</dl>
|
|
@@ -17275,7 +17474,7 @@ client.files.create(filename: "filename")
|
|
|
17275
17474
|
<dl>
|
|
17276
17475
|
<dd>
|
|
17277
17476
|
|
|
17278
|
-
**visibility:** `Whop_sdk::Types::
|
|
17477
|
+
**visibility:** `Whop_sdk::Files::Types::CreateFilesRequestVisibility` — `public` files are served via an unsigned CDN URL — use for assets anyone may see. `private` files are served via a signed, expiring URL — use for sensitive documents. Defaults to `private`.
|
|
17279
17478
|
|
|
17280
17479
|
</dd>
|
|
17281
17480
|
</dl>
|
|
@@ -17307,7 +17506,7 @@ client.files.create(filename: "filename")
|
|
|
17307
17506
|
<dl>
|
|
17308
17507
|
<dd>
|
|
17309
17508
|
|
|
17310
|
-
Retrieves the
|
|
17509
|
+
Retrieves a file you uploaded — poll it after uploading the bytes to see `upload_status` become `ready`. Only the creator can retrieve a file this way; a file attached to another resource is read through that resource.
|
|
17311
17510
|
</dd>
|
|
17312
17511
|
</dl>
|
|
17313
17512
|
</dd>
|
|
@@ -17322,7 +17521,7 @@ Retrieves the details of an existing file.
|
|
|
17322
17521
|
<dd>
|
|
17323
17522
|
|
|
17324
17523
|
```ruby
|
|
17325
|
-
client.files.retrieve(id: "
|
|
17524
|
+
client.files.retrieve(id: "id")
|
|
17326
17525
|
```
|
|
17327
17526
|
</dd>
|
|
17328
17527
|
</dl>
|
|
@@ -17337,7 +17536,92 @@ client.files.retrieve(id: "file_xxxxxxxxxxxxx")
|
|
|
17337
17536
|
<dl>
|
|
17338
17537
|
<dd>
|
|
17339
17538
|
|
|
17340
|
-
**id:** `String` — The unique identifier of the file
|
|
17539
|
+
**id:** `String` — The unique identifier of the file, prefixed `file_`.
|
|
17540
|
+
|
|
17541
|
+
</dd>
|
|
17542
|
+
</dl>
|
|
17543
|
+
|
|
17544
|
+
<dl>
|
|
17545
|
+
<dd>
|
|
17546
|
+
|
|
17547
|
+
**request_options:** `Whop_sdk::Files::RequestOptions`
|
|
17548
|
+
|
|
17549
|
+
</dd>
|
|
17550
|
+
</dl>
|
|
17551
|
+
</dd>
|
|
17552
|
+
</dl>
|
|
17553
|
+
|
|
17554
|
+
|
|
17555
|
+
</dd>
|
|
17556
|
+
</dl>
|
|
17557
|
+
</details>
|
|
17558
|
+
|
|
17559
|
+
<details><summary><code>client.files.<a href="/lib/whop_sdk/files/client.rb">complete</a>(id:, request) -> Whop_sdk::Types::File</code></summary>
|
|
17560
|
+
<dl>
|
|
17561
|
+
<dd>
|
|
17562
|
+
|
|
17563
|
+
#### 📝 Description
|
|
17564
|
+
|
|
17565
|
+
<dl>
|
|
17566
|
+
<dd>
|
|
17567
|
+
|
|
17568
|
+
<dl>
|
|
17569
|
+
<dd>
|
|
17570
|
+
|
|
17571
|
+
Assembles the parts of a multipart upload after every part has been PUT to its presigned URL. Pass the `multipart_upload_id` from Create File and each part's `ETag` response header.
|
|
17572
|
+
</dd>
|
|
17573
|
+
</dl>
|
|
17574
|
+
</dd>
|
|
17575
|
+
</dl>
|
|
17576
|
+
|
|
17577
|
+
#### 🔌 Usage
|
|
17578
|
+
|
|
17579
|
+
<dl>
|
|
17580
|
+
<dd>
|
|
17581
|
+
|
|
17582
|
+
<dl>
|
|
17583
|
+
<dd>
|
|
17584
|
+
|
|
17585
|
+
```ruby
|
|
17586
|
+
client.files.complete(
|
|
17587
|
+
id: "id",
|
|
17588
|
+
multipart_parts: [{
|
|
17589
|
+
etag: "etag-1",
|
|
17590
|
+
part_number: 1
|
|
17591
|
+
}],
|
|
17592
|
+
multipart_upload_id: "upload-id"
|
|
17593
|
+
)
|
|
17594
|
+
```
|
|
17595
|
+
</dd>
|
|
17596
|
+
</dl>
|
|
17597
|
+
</dd>
|
|
17598
|
+
</dl>
|
|
17599
|
+
|
|
17600
|
+
#### ⚙️ Parameters
|
|
17601
|
+
|
|
17602
|
+
<dl>
|
|
17603
|
+
<dd>
|
|
17604
|
+
|
|
17605
|
+
<dl>
|
|
17606
|
+
<dd>
|
|
17607
|
+
|
|
17608
|
+
**id:** `String` — The unique identifier of the file, prefixed `file_`.
|
|
17609
|
+
|
|
17610
|
+
</dd>
|
|
17611
|
+
</dl>
|
|
17612
|
+
|
|
17613
|
+
<dl>
|
|
17614
|
+
<dd>
|
|
17615
|
+
|
|
17616
|
+
**multipart_parts:** `Internal::Types::Array[Whop_sdk::Files::Types::CompleteFilesRequestMultipartPartsItem]` — Every uploaded part, in order.
|
|
17617
|
+
|
|
17618
|
+
</dd>
|
|
17619
|
+
</dl>
|
|
17620
|
+
|
|
17621
|
+
<dl>
|
|
17622
|
+
<dd>
|
|
17623
|
+
|
|
17624
|
+
**multipart_upload_id:** `String` — The ID of the multipart upload, returned by Create File.
|
|
17341
17625
|
|
|
17342
17626
|
</dd>
|
|
17343
17627
|
</dl>
|
|
@@ -19218,7 +19502,7 @@ client.invoices.update(id: "inv_xxxxxxxxxxxxxx")
|
|
|
19218
19502
|
<dl>
|
|
19219
19503
|
<dd>
|
|
19220
19504
|
|
|
19221
|
-
**line_items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::UpdateInvoicesRequestLineItemsItem]` — Line items that break down the invoice total.
|
|
19505
|
+
**line_items:** `Internal::Types::Array[Whop_sdk::Invoices::Types::UpdateInvoicesRequestLineItemsItem]` — Line items that break down the invoice total. When provided, the sum of (quantity * unit_price) for all items must equal the plan price. Individual items may be negative to represent a credit, as long as the sum is not negative and clears the currency's minimum charge. Pass an empty list to remove the breakdown.
|
|
19222
19506
|
|
|
19223
19507
|
</dd>
|
|
19224
19508
|
</dl>
|
|
@@ -24966,7 +25250,7 @@ client.permissions.list(resource_id: "resource_id")
|
|
|
24966
25250
|
<dl>
|
|
24967
25251
|
<dd>
|
|
24968
25252
|
|
|
24969
|
-
Returns a paginated list of plans
|
|
25253
|
+
Returns a paginated list of plans. Omit `account_id` and pass `product_ids` to list a product's public buyable plans.
|
|
24970
25254
|
</dd>
|
|
24971
25255
|
</dl>
|
|
24972
25256
|
</dd>
|
|
@@ -24982,7 +25266,6 @@ Returns a paginated list of plans belonging to an account, with optional filteri
|
|
|
24982
25266
|
|
|
24983
25267
|
```ruby
|
|
24984
25268
|
client.plans.list(
|
|
24985
|
-
account_id: "account_id",
|
|
24986
25269
|
release_methods: ["buy_now"],
|
|
24987
25270
|
visibilities: ["visible"],
|
|
24988
25271
|
plan_types: ["renewal"],
|
|
@@ -25002,7 +25285,7 @@ client.plans.list(
|
|
|
25002
25285
|
<dl>
|
|
25003
25286
|
<dd>
|
|
25004
25287
|
|
|
25005
|
-
**account_id:** `String` — The unique identifier of the account to list plans for.
|
|
25288
|
+
**account_id:** `String` — The unique identifier of the account to list plans for. Required unless `product_ids` is provided for a public product-plan read.
|
|
25006
25289
|
|
|
25007
25290
|
</dd>
|
|
25008
25291
|
</dl>
|
|
@@ -25050,7 +25333,7 @@ client.plans.list(
|
|
|
25050
25333
|
<dl>
|
|
25051
25334
|
<dd>
|
|
25052
25335
|
|
|
25053
|
-
**product_ids:** `String` — Filter to only plans belonging to these product identifiers.
|
|
25336
|
+
**product_ids:** `String` — Filter to only plans belonging to these product identifiers. When `account_id` is omitted, this is required and the response is publicly readable: only visible, non-invoice plans are returned.
|
|
25054
25337
|
|
|
25055
25338
|
</dd>
|
|
25056
25339
|
</dl>
|
|
@@ -25871,7 +26154,7 @@ client.plans.calculate_tax(
|
|
|
25871
26154
|
<dl>
|
|
25872
26155
|
<dd>
|
|
25873
26156
|
|
|
25874
|
-
Returns a paginated list of products
|
|
26157
|
+
Returns a paginated list of products. Omit `account_id` to search the public marketplace.
|
|
25875
26158
|
</dd>
|
|
25876
26159
|
</dl>
|
|
25877
26160
|
</dd>
|
|
@@ -25887,7 +26170,6 @@ Returns a paginated list of products belonging to an account.
|
|
|
25887
26170
|
|
|
25888
26171
|
```ruby
|
|
25889
26172
|
client.products.list(
|
|
25890
|
-
account_id: "account_id",
|
|
25891
26173
|
visibilities: ["visible"],
|
|
25892
26174
|
access_pass_types: ["regular"]
|
|
25893
26175
|
)
|
|
@@ -25905,7 +26187,7 @@ client.products.list(
|
|
|
25905
26187
|
<dl>
|
|
25906
26188
|
<dd>
|
|
25907
26189
|
|
|
25908
|
-
**account_id:** `String` — The unique identifier of the account to list products for.
|
|
26190
|
+
**account_id:** `String` — The unique identifier of the account to list products for. Omit to search the public marketplace.
|
|
25909
26191
|
|
|
25910
26192
|
</dd>
|
|
25911
26193
|
</dl>
|
|
@@ -25913,7 +26195,47 @@ client.products.list(
|
|
|
25913
26195
|
<dl>
|
|
25914
26196
|
<dd>
|
|
25915
26197
|
|
|
25916
|
-
**
|
|
26198
|
+
**query:** `String` — Ranked search against product title and headline. Omit to browse by recency.
|
|
26199
|
+
|
|
26200
|
+
</dd>
|
|
26201
|
+
</dl>
|
|
26202
|
+
|
|
26203
|
+
<dl>
|
|
26204
|
+
<dd>
|
|
26205
|
+
|
|
26206
|
+
**marketplace_category_route:** `String` — Only return marketplace products assigned to this category route, such as `trading`.
|
|
26207
|
+
|
|
26208
|
+
</dd>
|
|
26209
|
+
</dl>
|
|
26210
|
+
|
|
26211
|
+
<dl>
|
|
26212
|
+
<dd>
|
|
26213
|
+
|
|
26214
|
+
**plan_types:** `Whop_sdk::Products::Types::ListProductsRequestPlanTypesItem` — Filter to products with a buyable plan of these billing models, such as `one_time` or `renewal`.
|
|
26215
|
+
|
|
26216
|
+
</dd>
|
|
26217
|
+
</dl>
|
|
26218
|
+
|
|
26219
|
+
<dl>
|
|
26220
|
+
<dd>
|
|
26221
|
+
|
|
26222
|
+
**price_minimum:** `Integer` — Only return products whose advertised buyable plan has a displayed price of at least this amount. Recurring plans use renewal price.
|
|
26223
|
+
|
|
26224
|
+
</dd>
|
|
26225
|
+
</dl>
|
|
26226
|
+
|
|
26227
|
+
<dl>
|
|
26228
|
+
<dd>
|
|
26229
|
+
|
|
26230
|
+
**price_maximum:** `Integer` — Only return products whose advertised buyable plan has a displayed price of at most this amount. Recurring plans use renewal price.
|
|
26231
|
+
|
|
26232
|
+
</dd>
|
|
26233
|
+
</dl>
|
|
26234
|
+
|
|
26235
|
+
<dl>
|
|
26236
|
+
<dd>
|
|
26237
|
+
|
|
26238
|
+
**visibilities:** `String` — Filter to only products matching these visibility states. Ignored on the public marketplace list, which only returns visible products.
|
|
25917
26239
|
|
|
25918
26240
|
</dd>
|
|
25919
26241
|
</dl>
|
|
@@ -25945,7 +26267,7 @@ client.products.list(
|
|
|
25945
26267
|
<dl>
|
|
25946
26268
|
<dd>
|
|
25947
26269
|
|
|
25948
|
-
**order:** `String` — The field to sort results by.
|
|
26270
|
+
**order:** `String` — The field to sort results by. Account lists default to `created_at`. Marketplace lists default to `discoverable_at` and accept `created_at` or `discoverable_at`. Cannot be combined with `query`.
|
|
25949
26271
|
|
|
25950
26272
|
</dd>
|
|
25951
26273
|
</dl>
|
|
@@ -25985,6 +26307,22 @@ client.products.list(
|
|
|
25985
26307
|
<dl>
|
|
25986
26308
|
<dd>
|
|
25987
26309
|
|
|
26310
|
+
**created_after:** `String` — Only return products created after this ISO 8601 timestamp.
|
|
26311
|
+
|
|
26312
|
+
</dd>
|
|
26313
|
+
</dl>
|
|
26314
|
+
|
|
26315
|
+
<dl>
|
|
26316
|
+
<dd>
|
|
26317
|
+
|
|
26318
|
+
**created_before:** `String` — Only return products created before this ISO 8601 timestamp.
|
|
26319
|
+
|
|
26320
|
+
</dd>
|
|
26321
|
+
</dl>
|
|
26322
|
+
|
|
26323
|
+
<dl>
|
|
26324
|
+
<dd>
|
|
26325
|
+
|
|
25988
26326
|
**request_options:** `Whop_sdk::Products::RequestOptions`
|
|
25989
26327
|
|
|
25990
26328
|
</dd>
|
|
@@ -26215,7 +26553,7 @@ client.products.create(title: "Interior Deep Clean")
|
|
|
26215
26553
|
<dl>
|
|
26216
26554
|
<dd>
|
|
26217
26555
|
|
|
26218
|
-
Retrieves
|
|
26556
|
+
Retrieves a product. Public — no credentials.
|
|
26219
26557
|
</dd>
|
|
26220
26558
|
</dl>
|
|
26221
26559
|
</dd>
|