whop_sdk 0.0.35 → 0.0.37
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 +56 -0
- data/README.md +1 -1
- data/lib/whop_sdk/internal/type/union.rb +4 -4
- data/lib/whop_sdk/internal/util.rb +22 -7
- data/lib/whop_sdk/models/affiliate.rb +18 -11
- data/lib/whop_sdk/models/affiliate_list_response.rb +18 -11
- data/lib/whop_sdk/models/affiliates/override_create_response.rb +5 -3
- data/lib/whop_sdk/models/affiliates/override_list_response.rb +5 -3
- data/lib/whop_sdk/models/affiliates/override_retrieve_response.rb +5 -3
- data/lib/whop_sdk/models/affiliates/override_update_response.rb +5 -3
- data/lib/whop_sdk/models/app.rb +30 -1
- data/lib/whop_sdk/models/app_list_response.rb +30 -1
- data/lib/whop_sdk/models/app_update_params.rb +18 -1
- data/lib/whop_sdk/models/app_view_type.rb +2 -0
- data/lib/whop_sdk/models/card_brands.rb +1 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +135 -3
- data/lib/whop_sdk/models/checkout_font.rb +17 -0
- data/lib/whop_sdk/models/checkout_shape.rb +17 -0
- data/lib/whop_sdk/models/company.rb +50 -1
- data/lib/whop_sdk/models/company_list_response.rb +9 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +403 -776
- data/lib/whop_sdk/models/invoice_delete_params.rb +20 -0
- data/lib/whop_sdk/models/invoice_delete_response.rb +8 -0
- data/lib/whop_sdk/models/invoice_mark_paid_params.rb +20 -0
- data/lib/whop_sdk/models/invoice_mark_paid_response.rb +8 -0
- data/lib/whop_sdk/models/invoice_mark_uncollectible_params.rb +20 -0
- data/lib/whop_sdk/models/invoice_mark_uncollectible_response.rb +8 -0
- data/lib/whop_sdk/models/invoice_marked_uncollectible_webhook_event.rb +61 -0
- data/lib/whop_sdk/models/invoice_status.rb +1 -0
- data/lib/whop_sdk/models/invoice_update_params.rb +468 -0
- data/lib/whop_sdk/models/membership.rb +3 -3
- data/lib/whop_sdk/models/membership_list_response.rb +3 -3
- data/lib/whop_sdk/models/payment.rb +11 -2
- data/lib/whop_sdk/models/payment_create_params.rb +12 -1
- data/lib/whop_sdk/models/payment_list_params.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +9 -1
- data/lib/whop_sdk/models/payment_method_types.rb +7 -1
- data/lib/whop_sdk/models/payment_provider.rb +2 -0
- data/lib/whop_sdk/models/plan_create_params.rb +40 -1
- data/lib/whop_sdk/models/plan_update_params.rb +40 -1
- data/lib/whop_sdk/models/product_create_params.rb +2 -2
- data/lib/whop_sdk/models/product_update_params.rb +2 -2
- data/lib/whop_sdk/models/resolution_center_case_created_webhook_event.rb +428 -0
- data/lib/whop_sdk/models/resolution_center_case_decided_webhook_event.rb +428 -0
- data/lib/whop_sdk/models/resolution_center_case_updated_webhook_event.rb +428 -0
- data/lib/whop_sdk/models/tax_identifier_type.rb +125 -0
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +9 -1
- data/lib/whop_sdk/models/webhook_event.rb +4 -0
- data/lib/whop_sdk/models.rb +22 -0
- data/lib/whop_sdk/resources/apps.rb +5 -1
- data/lib/whop_sdk/resources/companies.rb +7 -1
- data/lib/whop_sdk/resources/invoices.rb +123 -1
- data/lib/whop_sdk/resources/payments.rb +5 -1
- data/lib/whop_sdk/resources/plans.rb +6 -2
- data/lib/whop_sdk/resources/products.rb +2 -2
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +14 -0
- data/rbi/whop_sdk/internal/util.rbi +8 -0
- data/rbi/whop_sdk/models/affiliate.rbi +18 -11
- data/rbi/whop_sdk/models/affiliate_list_response.rbi +18 -11
- data/rbi/whop_sdk/models/affiliates/override_create_response.rbi +6 -3
- data/rbi/whop_sdk/models/affiliates/override_list_response.rbi +6 -3
- data/rbi/whop_sdk/models/affiliates/override_retrieve_response.rbi +6 -3
- data/rbi/whop_sdk/models/affiliates/override_update_response.rbi +6 -3
- data/rbi/whop_sdk/models/app.rbi +34 -0
- data/rbi/whop_sdk/models/app_list_response.rbi +34 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +18 -0
- data/rbi/whop_sdk/models/app_view_type.rbi +2 -0
- data/rbi/whop_sdk/models/card_brands.rbi +1 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +255 -0
- data/rbi/whop_sdk/models/checkout_font.rbi +21 -0
- data/rbi/whop_sdk/models/checkout_shape.rbi +21 -0
- data/rbi/whop_sdk/models/company.rbi +71 -0
- data/rbi/whop_sdk/models/company_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +30 -0
- data/rbi/whop_sdk/models/invoice_create_params.rbi +548 -1084
- data/rbi/whop_sdk/models/invoice_delete_params.rbi +35 -0
- data/rbi/whop_sdk/models/invoice_delete_response.rbi +8 -0
- data/rbi/whop_sdk/models/invoice_mark_paid_params.rbi +35 -0
- data/rbi/whop_sdk/models/invoice_mark_paid_response.rbi +8 -0
- data/rbi/whop_sdk/models/invoice_mark_uncollectible_params.rbi +38 -0
- data/rbi/whop_sdk/models/invoice_mark_uncollectible_response.rbi +8 -0
- data/rbi/whop_sdk/models/invoice_marked_uncollectible_webhook_event.rbi +87 -0
- data/rbi/whop_sdk/models/invoice_status.rbi +2 -0
- data/rbi/whop_sdk/models/invoice_update_params.rbi +649 -0
- data/rbi/whop_sdk/models/membership.rbi +3 -3
- data/rbi/whop_sdk/models/membership_list_response.rbi +3 -3
- data/rbi/whop_sdk/models/payment.rbi +15 -2
- data/rbi/whop_sdk/models/payment_create_params.rbi +14 -0
- data/rbi/whop_sdk/models/payment_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +9 -1
- data/rbi/whop_sdk/models/payment_provider.rbi +2 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +73 -0
- data/rbi/whop_sdk/models/plan_update_params.rbi +73 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/product_update_params.rbi +2 -2
- data/rbi/whop_sdk/models/resolution_center_case_created_webhook_event.rbi +767 -0
- data/rbi/whop_sdk/models/resolution_center_case_decided_webhook_event.rbi +767 -0
- data/rbi/whop_sdk/models/resolution_center_case_updated_webhook_event.rbi +767 -0
- data/rbi/whop_sdk/models/tax_identifier_type.rbi +131 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +4 -0
- data/rbi/whop_sdk/models/webhook_event.rbi +20 -0
- data/rbi/whop_sdk/models.rbi +27 -0
- data/rbi/whop_sdk/resources/apps.rbi +7 -0
- data/rbi/whop_sdk/resources/companies.rbi +12 -0
- data/rbi/whop_sdk/resources/invoices.rbi +112 -4
- data/rbi/whop_sdk/resources/payments.rbi +6 -0
- data/rbi/whop_sdk/resources/plans.rbi +10 -0
- data/rbi/whop_sdk/resources/products.rbi +2 -2
- data/rbi/whop_sdk/resources/webhooks.rbi +4 -0
- data/sig/whop_sdk/internal/util.rbs +4 -0
- data/sig/whop_sdk/models/app.rbs +15 -0
- data/sig/whop_sdk/models/app_list_response.rbs +15 -0
- data/sig/whop_sdk/models/app_update_params.rbs +10 -0
- data/sig/whop_sdk/models/app_view_type.rbs +4 -1
- data/sig/whop_sdk/models/card_brands.rbs +2 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +96 -0
- data/sig/whop_sdk/models/checkout_font.rbs +15 -0
- data/sig/whop_sdk/models/checkout_shape.rbs +15 -0
- data/sig/whop_sdk/models/company.rbs +27 -0
- data/sig/whop_sdk/models/company_list_response.rbs +5 -0
- data/sig/whop_sdk/models/company_update_params.rbs +15 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +226 -469
- data/sig/whop_sdk/models/invoice_delete_params.rbs +20 -0
- data/sig/whop_sdk/models/invoice_delete_response.rbs +5 -0
- data/sig/whop_sdk/models/invoice_mark_paid_params.rbs +20 -0
- data/sig/whop_sdk/models/invoice_mark_paid_response.rbs +5 -0
- data/sig/whop_sdk/models/invoice_mark_uncollectible_params.rbs +20 -0
- data/sig/whop_sdk/models/invoice_mark_uncollectible_response.rbs +5 -0
- data/sig/whop_sdk/models/invoice_marked_uncollectible_webhook_event.rbs +45 -0
- data/sig/whop_sdk/models/invoice_status.rbs +3 -1
- data/sig/whop_sdk/models/invoice_update_params.rbs +322 -0
- data/sig/whop_sdk/models/membership.rbs +4 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +4 -4
- data/sig/whop_sdk/models/payment.rbs +9 -2
- data/sig/whop_sdk/models/payment_create_params.rbs +5 -0
- data/sig/whop_sdk/models/payment_list_params.rbs +11 -1
- data/sig/whop_sdk/models/payment_list_response.rbs +5 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +14 -2
- data/sig/whop_sdk/models/payment_provider.rbs +4 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +32 -0
- data/sig/whop_sdk/models/plan_update_params.rbs +32 -0
- data/sig/whop_sdk/models/resolution_center_case_created_webhook_event.rbs +296 -0
- data/sig/whop_sdk/models/resolution_center_case_decided_webhook_event.rbs +296 -0
- data/sig/whop_sdk/models/resolution_center_case_updated_webhook_event.rbs +296 -0
- data/sig/whop_sdk/models/tax_identifier_type.rbs +234 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +4 -0
- data/sig/whop_sdk/models/webhook_event.rbs +8 -0
- data/sig/whop_sdk/models.rbs +22 -0
- data/sig/whop_sdk/resources/apps.rbs +2 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -0
- data/sig/whop_sdk/resources/invoices.rbs +29 -0
- data/sig/whop_sdk/resources/payments.rbs +2 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +4 -0
- metadata +44 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8465f5ce3b0ffbb280bc7f25f778a6500a7534d05aab113245b2778ecdacb995
|
|
4
|
+
data.tar.gz: badc992950cbd83b175a35381af4e2818d4717e868e85606347d31456392502c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 462b1ddf6796bed0127bceb52fb663fb80a192add71f329d0ec4af4a64a5560a97e595c27958030e338405c4e5ba286b2151d7b2c278cca168f3620f282731dc
|
|
7
|
+
data.tar.gz: 7f3e8318bd93c9ffd0d4ff36860b6ae80075a100936e55e01d48b3750dfbffed48f0f36d18599eae0bb9c0ace339cff2320e711f95d6e9d53ac04442534033a1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,61 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.0.37 (2026-04-10)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.36...v0.0.37](https://github.com/whopio/whopsdk-ruby/compare/v0.0.36...v0.0.37)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([4130e50](https://github.com/whopio/whopsdk-ruby/commit/4130e501162d6ba1a80de15a056950aca35508ad))
|
|
10
|
+
* **api:** api update ([1bac626](https://github.com/whopio/whopsdk-ruby/commit/1bac6269c3270ac68a86e36e9fedba945b43084c))
|
|
11
|
+
* **api:** api update ([cd88f35](https://github.com/whopio/whopsdk-ruby/commit/cd88f351641bdca8bb65efea98998f80590ccf8f))
|
|
12
|
+
* **api:** api update ([346d6ab](https://github.com/whopio/whopsdk-ruby/commit/346d6ab266c7382e3e17e5afcd6823558b155a81))
|
|
13
|
+
* **api:** api update ([25ceb03](https://github.com/whopio/whopsdk-ruby/commit/25ceb03fe003bcc96db811fd444989cd7266d37f))
|
|
14
|
+
* **api:** manual updates ([df60228](https://github.com/whopio/whopsdk-ruby/commit/df6022818f7e90ff309bf0c54d278f6244e981b9))
|
|
15
|
+
* **api:** manual updates ([a3ed550](https://github.com/whopio/whopsdk-ruby/commit/a3ed550169ba398cfc6581d9281eb81fce212802))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* multipart encoding for file arrays ([feee3d1](https://github.com/whopio/whopsdk-ruby/commit/feee3d1be0bb3f387d1c5cb7c61459442c762d94))
|
|
21
|
+
|
|
22
|
+
## 0.0.36 (2026-04-01)
|
|
23
|
+
|
|
24
|
+
Full Changelog: [v0.0.35...v0.0.36](https://github.com/whopio/whopsdk-ruby/compare/v0.0.35...v0.0.36)
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
|
|
28
|
+
* **api:** api update ([ff045f2](https://github.com/whopio/whopsdk-ruby/commit/ff045f241a4b159b3e2701a260666f968fc218a9))
|
|
29
|
+
* **api:** api update ([82f671a](https://github.com/whopio/whopsdk-ruby/commit/82f671a64f6290642af4ef888a696eeeb414cc39))
|
|
30
|
+
* **api:** api update ([0904666](https://github.com/whopio/whopsdk-ruby/commit/0904666825216c11a018402de7ea7b6fde55ebcd))
|
|
31
|
+
* **api:** api update ([bd6996b](https://github.com/whopio/whopsdk-ruby/commit/bd6996b215315a72bce3b457a84b2127990a9a48))
|
|
32
|
+
* **api:** api update ([77b3977](https://github.com/whopio/whopsdk-ruby/commit/77b397710fca468ccb60b0977fea756ffe72af8d))
|
|
33
|
+
* **api:** api update ([9d9d279](https://github.com/whopio/whopsdk-ruby/commit/9d9d279cd5461a69d40513a7140cd935655a3e7f))
|
|
34
|
+
* **api:** api update ([861ff42](https://github.com/whopio/whopsdk-ruby/commit/861ff42ed47f7e8e9f13ae9d93655dcc004cf1b2))
|
|
35
|
+
* **api:** api update ([041bebb](https://github.com/whopio/whopsdk-ruby/commit/041bebb9ad2dcb4dc09feec04f22c79e1e26b376))
|
|
36
|
+
* **api:** api update ([c6da015](https://github.com/whopio/whopsdk-ruby/commit/c6da0152cd1dde833a05724f76a0e80ecd999203))
|
|
37
|
+
* **api:** api update ([fd1f6e4](https://github.com/whopio/whopsdk-ruby/commit/fd1f6e45955543fd67d086ff7e6c946afde283ee))
|
|
38
|
+
* **api:** api update ([7e4abda](https://github.com/whopio/whopsdk-ruby/commit/7e4abdab5a1764be25995aa622b871754de6a985))
|
|
39
|
+
* **api:** api update ([070576e](https://github.com/whopio/whopsdk-ruby/commit/070576e3e8a321f85a1c8546bd0f3e5355a7e452))
|
|
40
|
+
* **api:** api update ([9be2f31](https://github.com/whopio/whopsdk-ruby/commit/9be2f31407db03106bea259ac4da78e8c1407962))
|
|
41
|
+
* **api:** api update ([eaacc3d](https://github.com/whopio/whopsdk-ruby/commit/eaacc3d5f6a85e8fa2a13d4b9cb57eb390801b90))
|
|
42
|
+
* **api:** api update ([c1ce4e0](https://github.com/whopio/whopsdk-ruby/commit/c1ce4e08b7a1c33b6e43da9c81d00a4cba547067))
|
|
43
|
+
* **api:** api update ([bc8226e](https://github.com/whopio/whopsdk-ruby/commit/bc8226e36a365d09cd1503725ca24106f45633a6))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* align path encoding with RFC 3986 section 3.3 ([c355b7f](https://github.com/whopio/whopsdk-ruby/commit/c355b7ff9dc90431096753bb761f0d705f9c43d4))
|
|
49
|
+
* **internal:** correct multipart form field name encoding ([ffcbbd3](https://github.com/whopio/whopsdk-ruby/commit/ffcbbd34b2068a3b2fed37a80422bb1023a9df5d))
|
|
50
|
+
* variable name typo ([2c4b26c](https://github.com/whopio/whopsdk-ruby/commit/2c4b26c0ffda6d22c4fcc450b9fb351ce91e9af1))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### Chores
|
|
54
|
+
|
|
55
|
+
* **ci:** skip lint on metadata-only changes ([772c7bb](https://github.com/whopio/whopsdk-ruby/commit/772c7bb1c831c69ddb68b779c053276189ddf287))
|
|
56
|
+
* **ci:** support opting out of skipping builds on metadata-only commits ([1910434](https://github.com/whopio/whopsdk-ruby/commit/1910434440c5a7d2841770cc2a1e7352dbfa545a))
|
|
57
|
+
* **internal:** update gitignore ([70a6981](https://github.com/whopio/whopsdk-ruby/commit/70a69813a7a9afdeebf401362aa020f851cc4ac8))
|
|
58
|
+
|
|
3
59
|
## 0.0.35 (2026-03-18)
|
|
4
60
|
|
|
5
61
|
Full Changelog: [v0.0.34...v0.0.35](https://github.com/whopio/whopsdk-ruby/compare/v0.0.34...v0.0.35)
|
data/README.md
CHANGED
|
@@ -10,9 +10,9 @@ module WhopSDK
|
|
|
10
10
|
# case unwrap_webhook_event
|
|
11
11
|
# when WhopSDK::InvoiceCreatedWebhookEvent
|
|
12
12
|
# puts(unwrap_webhook_event.id)
|
|
13
|
-
# when WhopSDK::
|
|
13
|
+
# when WhopSDK::InvoiceMarkedUncollectibleWebhookEvent
|
|
14
14
|
# puts(unwrap_webhook_event.api_version)
|
|
15
|
-
# when WhopSDK::
|
|
15
|
+
# when WhopSDK::InvoicePaidWebhookEvent
|
|
16
16
|
# puts(unwrap_webhook_event.data)
|
|
17
17
|
# else
|
|
18
18
|
# puts(unwrap_webhook_event)
|
|
@@ -22,9 +22,9 @@ module WhopSDK
|
|
|
22
22
|
# case unwrap_webhook_event
|
|
23
23
|
# in {type: :"invoice.created", id: id, api_version: api_version, data: data}
|
|
24
24
|
# puts(id)
|
|
25
|
-
# in {type: :"invoice.
|
|
25
|
+
# in {type: :"invoice.marked_uncollectible", id: id, api_version: api_version, data: data}
|
|
26
26
|
# puts(api_version)
|
|
27
|
-
# in {type: :"invoice.
|
|
27
|
+
# in {type: :"invoice.paid", id: id, api_version: api_version, data: data}
|
|
28
28
|
# puts(data)
|
|
29
29
|
# else
|
|
30
30
|
# puts(unwrap_webhook_event)
|
|
@@ -157,7 +157,7 @@ module WhopSDK
|
|
|
157
157
|
in Hash | nil => coerced
|
|
158
158
|
coerced
|
|
159
159
|
else
|
|
160
|
-
message = "Expected a #{Hash} or #{WhopSDK::Internal::Type::BaseModel}, got #{
|
|
160
|
+
message = "Expected a #{Hash} or #{WhopSDK::Internal::Type::BaseModel}, got #{input.inspect}"
|
|
161
161
|
raise ArgumentError.new(message)
|
|
162
162
|
end
|
|
163
163
|
end
|
|
@@ -237,6 +237,11 @@ module WhopSDK
|
|
|
237
237
|
end
|
|
238
238
|
end
|
|
239
239
|
|
|
240
|
+
# @type [Regexp]
|
|
241
|
+
#
|
|
242
|
+
# https://www.rfc-editor.org/rfc/rfc3986.html#section-3.3
|
|
243
|
+
RFC_3986_NOT_PCHARS = /[^A-Za-z0-9\-._~!$&'()*+,;=:@]+/
|
|
244
|
+
|
|
240
245
|
class << self
|
|
241
246
|
# @api private
|
|
242
247
|
#
|
|
@@ -247,6 +252,15 @@ module WhopSDK
|
|
|
247
252
|
"#{uri.scheme}://#{uri.host}#{":#{uri.port}" unless uri.port == uri.default_port}"
|
|
248
253
|
end
|
|
249
254
|
|
|
255
|
+
# @api private
|
|
256
|
+
#
|
|
257
|
+
# @param path [String, Integer]
|
|
258
|
+
#
|
|
259
|
+
# @return [String]
|
|
260
|
+
def encode_path(path)
|
|
261
|
+
path.to_s.gsub(WhopSDK::Internal::Util::RFC_3986_NOT_PCHARS) { ERB::Util.url_encode(_1) }
|
|
262
|
+
end
|
|
263
|
+
|
|
250
264
|
# @api private
|
|
251
265
|
#
|
|
252
266
|
# @param path [String, Array<String>]
|
|
@@ -259,7 +273,7 @@ module WhopSDK
|
|
|
259
273
|
in []
|
|
260
274
|
""
|
|
261
275
|
in [String => p, *interpolations]
|
|
262
|
-
encoded = interpolations.map {
|
|
276
|
+
encoded = interpolations.map { encode_path(_1) }
|
|
263
277
|
format(p, *encoded)
|
|
264
278
|
end
|
|
265
279
|
end
|
|
@@ -571,16 +585,15 @@ module WhopSDK
|
|
|
571
585
|
y << "Content-Disposition: form-data"
|
|
572
586
|
|
|
573
587
|
unless key.nil?
|
|
574
|
-
|
|
575
|
-
y << "; name=\"#{name}\""
|
|
588
|
+
y << "; name=\"#{key}\""
|
|
576
589
|
end
|
|
577
590
|
|
|
578
591
|
case val
|
|
579
592
|
in WhopSDK::FilePart unless val.filename.nil?
|
|
580
|
-
filename =
|
|
593
|
+
filename = encode_path(val.filename)
|
|
581
594
|
y << "; filename=\"#{filename}\""
|
|
582
595
|
in Pathname | IO
|
|
583
|
-
filename =
|
|
596
|
+
filename = encode_path(::File.basename(val.to_path))
|
|
584
597
|
y << "; filename=\"#{filename}\""
|
|
585
598
|
else
|
|
586
599
|
end
|
|
@@ -597,6 +610,7 @@ module WhopSDK
|
|
|
597
610
|
#
|
|
598
611
|
# @return [Array(String, Enumerable<String>)]
|
|
599
612
|
private def encode_multipart_streaming(body)
|
|
613
|
+
# rubocop:disable Style/CaseEquality
|
|
600
614
|
# RFC 1521 Section 7.2.1 says we should have 70 char maximum for boundary length
|
|
601
615
|
boundary = SecureRandom.urlsafe_base64(46)
|
|
602
616
|
|
|
@@ -606,7 +620,7 @@ module WhopSDK
|
|
|
606
620
|
in Hash
|
|
607
621
|
body.each do |key, val|
|
|
608
622
|
case val
|
|
609
|
-
in Array if val.all? { primitive?(_1) }
|
|
623
|
+
in Array if val.all? { primitive?(_1) || WhopSDK::Internal::Type::FileInput === _1 }
|
|
610
624
|
val.each do |v|
|
|
611
625
|
write_multipart_chunk(y, boundary: boundary, key: key, val: v, closing: closing)
|
|
612
626
|
end
|
|
@@ -622,6 +636,7 @@ module WhopSDK
|
|
|
622
636
|
|
|
623
637
|
fused_io = fused_enum(strio) { closing.each(&:call) }
|
|
624
638
|
[boundary, fused_io]
|
|
639
|
+
# rubocop:enable Style/CaseEquality
|
|
625
640
|
end
|
|
626
641
|
|
|
627
642
|
# @api private
|
|
@@ -29,19 +29,20 @@ module WhopSDK
|
|
|
29
29
|
required :created_at, Time
|
|
30
30
|
|
|
31
31
|
# @!attribute customer_retention_rate
|
|
32
|
-
#
|
|
32
|
+
# The percentage of referred customers who are still active members
|
|
33
33
|
#
|
|
34
34
|
# @return [String]
|
|
35
35
|
required :customer_retention_rate, String
|
|
36
36
|
|
|
37
37
|
# @!attribute customer_retention_rate_ninety_days
|
|
38
|
-
#
|
|
38
|
+
# The percentage of referred customers who remained active over the last 90 days
|
|
39
39
|
#
|
|
40
40
|
# @return [String]
|
|
41
41
|
required :customer_retention_rate_ninety_days, String
|
|
42
42
|
|
|
43
43
|
# @!attribute monthly_recurring_revenue_usd
|
|
44
|
-
# The
|
|
44
|
+
# The monthly recurring revenue generated by this affiliate's referrals, formatted
|
|
45
|
+
# as a USD currency string
|
|
45
46
|
#
|
|
46
47
|
# @return [String]
|
|
47
48
|
required :monthly_recurring_revenue_usd, String
|
|
@@ -59,7 +60,8 @@ module WhopSDK
|
|
|
59
60
|
required :total_overrides_count, Integer
|
|
60
61
|
|
|
61
62
|
# @!attribute total_referral_earnings_usd
|
|
62
|
-
# The total earnings
|
|
63
|
+
# The total commission earnings paid to this affiliate, formatted as a USD
|
|
64
|
+
# currency string
|
|
63
65
|
#
|
|
64
66
|
# @return [String]
|
|
65
67
|
required :total_referral_earnings_usd, String
|
|
@@ -71,7 +73,8 @@ module WhopSDK
|
|
|
71
73
|
required :total_referrals_count, Integer
|
|
72
74
|
|
|
73
75
|
# @!attribute total_revenue_usd
|
|
74
|
-
# The total revenue
|
|
76
|
+
# The total revenue generated from this affiliate's referrals, formatted as a USD
|
|
77
|
+
# currency string
|
|
75
78
|
#
|
|
76
79
|
# @return [String]
|
|
77
80
|
required :total_revenue_usd, String
|
|
@@ -89,7 +92,11 @@ module WhopSDK
|
|
|
89
92
|
required :user, -> { WhopSDK::Affiliate::User }
|
|
90
93
|
|
|
91
94
|
# @!method initialize(id:, active_members_count:, company:, created_at:, customer_retention_rate:, customer_retention_rate_ninety_days:, monthly_recurring_revenue_usd:, status:, total_overrides_count:, total_referral_earnings_usd:, total_referrals_count:, total_revenue_usd:, updated_at:, user:)
|
|
92
|
-
#
|
|
95
|
+
# Some parameter documentations has been truncated, see
|
|
96
|
+
# {WhopSDK::Models::Affiliate} for more details.
|
|
97
|
+
#
|
|
98
|
+
# An affiliate tracks a user's referral performance and commission earnings for a
|
|
99
|
+
# company, including retention rates, revenue metrics, and payout configurations.
|
|
93
100
|
#
|
|
94
101
|
# @param id [String] The unique identifier for the affiliate.
|
|
95
102
|
#
|
|
@@ -99,21 +106,21 @@ module WhopSDK
|
|
|
99
106
|
#
|
|
100
107
|
# @param created_at [Time] The datetime the affiliate was created.
|
|
101
108
|
#
|
|
102
|
-
# @param customer_retention_rate [String]
|
|
109
|
+
# @param customer_retention_rate [String] The percentage of referred customers who are still active members
|
|
103
110
|
#
|
|
104
|
-
# @param customer_retention_rate_ninety_days [String]
|
|
111
|
+
# @param customer_retention_rate_ninety_days [String] The percentage of referred customers who remained active over the last 90 days
|
|
105
112
|
#
|
|
106
|
-
# @param monthly_recurring_revenue_usd [String] The
|
|
113
|
+
# @param monthly_recurring_revenue_usd [String] The monthly recurring revenue generated by this affiliate's referrals, formatted
|
|
107
114
|
#
|
|
108
115
|
# @param status [Symbol, WhopSDK::Models::Status, nil] Statuses for resources
|
|
109
116
|
#
|
|
110
117
|
# @param total_overrides_count [Integer] The total count of all overrides for this affiliate
|
|
111
118
|
#
|
|
112
|
-
# @param total_referral_earnings_usd [String] The total earnings
|
|
119
|
+
# @param total_referral_earnings_usd [String] The total commission earnings paid to this affiliate, formatted as a USD currenc
|
|
113
120
|
#
|
|
114
121
|
# @param total_referrals_count [Integer] The total referrals of the affiliate
|
|
115
122
|
#
|
|
116
|
-
# @param total_revenue_usd [String] The total revenue
|
|
123
|
+
# @param total_revenue_usd [String] The total revenue generated from this affiliate's referrals, formatted as a USD
|
|
117
124
|
#
|
|
118
125
|
# @param updated_at [Time] The datetime the affiliate was last updated.
|
|
119
126
|
#
|
|
@@ -29,19 +29,20 @@ module WhopSDK
|
|
|
29
29
|
required :created_at, Time
|
|
30
30
|
|
|
31
31
|
# @!attribute customer_retention_rate
|
|
32
|
-
#
|
|
32
|
+
# The percentage of referred customers who are still active members
|
|
33
33
|
#
|
|
34
34
|
# @return [String]
|
|
35
35
|
required :customer_retention_rate, String
|
|
36
36
|
|
|
37
37
|
# @!attribute customer_retention_rate_ninety_days
|
|
38
|
-
#
|
|
38
|
+
# The percentage of referred customers who remained active over the last 90 days
|
|
39
39
|
#
|
|
40
40
|
# @return [String]
|
|
41
41
|
required :customer_retention_rate_ninety_days, String
|
|
42
42
|
|
|
43
43
|
# @!attribute monthly_recurring_revenue_usd
|
|
44
|
-
# The
|
|
44
|
+
# The monthly recurring revenue generated by this affiliate's referrals, formatted
|
|
45
|
+
# as a USD currency string
|
|
45
46
|
#
|
|
46
47
|
# @return [String]
|
|
47
48
|
required :monthly_recurring_revenue_usd, String
|
|
@@ -59,7 +60,8 @@ module WhopSDK
|
|
|
59
60
|
required :total_overrides_count, Integer
|
|
60
61
|
|
|
61
62
|
# @!attribute total_referral_earnings_usd
|
|
62
|
-
# The total earnings
|
|
63
|
+
# The total commission earnings paid to this affiliate, formatted as a USD
|
|
64
|
+
# currency string
|
|
63
65
|
#
|
|
64
66
|
# @return [String]
|
|
65
67
|
required :total_referral_earnings_usd, String
|
|
@@ -71,7 +73,8 @@ module WhopSDK
|
|
|
71
73
|
required :total_referrals_count, Integer
|
|
72
74
|
|
|
73
75
|
# @!attribute total_revenue_usd
|
|
74
|
-
# The total revenue
|
|
76
|
+
# The total revenue generated from this affiliate's referrals, formatted as a USD
|
|
77
|
+
# currency string
|
|
75
78
|
#
|
|
76
79
|
# @return [String]
|
|
77
80
|
required :total_revenue_usd, String
|
|
@@ -89,7 +92,11 @@ module WhopSDK
|
|
|
89
92
|
required :user, -> { WhopSDK::Models::AffiliateListResponse::User }
|
|
90
93
|
|
|
91
94
|
# @!method initialize(id:, active_members_count:, company:, created_at:, customer_retention_rate:, customer_retention_rate_ninety_days:, monthly_recurring_revenue_usd:, status:, total_overrides_count:, total_referral_earnings_usd:, total_referrals_count:, total_revenue_usd:, updated_at:, user:)
|
|
92
|
-
#
|
|
95
|
+
# Some parameter documentations has been truncated, see
|
|
96
|
+
# {WhopSDK::Models::AffiliateListResponse} for more details.
|
|
97
|
+
#
|
|
98
|
+
# An affiliate tracks a user's referral performance and commission earnings for a
|
|
99
|
+
# company, including retention rates, revenue metrics, and payout configurations.
|
|
93
100
|
#
|
|
94
101
|
# @param id [String] The unique identifier for the affiliate.
|
|
95
102
|
#
|
|
@@ -99,21 +106,21 @@ module WhopSDK
|
|
|
99
106
|
#
|
|
100
107
|
# @param created_at [Time] The datetime the affiliate was created.
|
|
101
108
|
#
|
|
102
|
-
# @param customer_retention_rate [String]
|
|
109
|
+
# @param customer_retention_rate [String] The percentage of referred customers who are still active members
|
|
103
110
|
#
|
|
104
|
-
# @param customer_retention_rate_ninety_days [String]
|
|
111
|
+
# @param customer_retention_rate_ninety_days [String] The percentage of referred customers who remained active over the last 90 days
|
|
105
112
|
#
|
|
106
|
-
# @param monthly_recurring_revenue_usd [String] The
|
|
113
|
+
# @param monthly_recurring_revenue_usd [String] The monthly recurring revenue generated by this affiliate's referrals, formatted
|
|
107
114
|
#
|
|
108
115
|
# @param status [Symbol, WhopSDK::Models::Status, nil] Statuses for resources
|
|
109
116
|
#
|
|
110
117
|
# @param total_overrides_count [Integer] The total count of all overrides for this affiliate
|
|
111
118
|
#
|
|
112
|
-
# @param total_referral_earnings_usd [String] The total earnings
|
|
119
|
+
# @param total_referral_earnings_usd [String] The total commission earnings paid to this affiliate, formatted as a USD currenc
|
|
113
120
|
#
|
|
114
121
|
# @param total_referrals_count [Integer] The total referrals of the affiliate
|
|
115
122
|
#
|
|
116
|
-
# @param total_revenue_usd [String] The total revenue
|
|
123
|
+
# @param total_revenue_usd [String] The total revenue generated from this affiliate's referrals, formatted as a USD
|
|
117
124
|
#
|
|
118
125
|
# @param updated_at [Time] The datetime the affiliate was last updated.
|
|
119
126
|
#
|
|
@@ -44,7 +44,8 @@ module WhopSDK
|
|
|
44
44
|
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }
|
|
45
45
|
|
|
46
46
|
# @!attribute commission_value
|
|
47
|
-
# The commission
|
|
47
|
+
# The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
48
|
+
# or a dollar amount when flat_fee.
|
|
48
49
|
#
|
|
49
50
|
# @return [Float]
|
|
50
51
|
required :commission_value, Float
|
|
@@ -90,7 +91,8 @@ module WhopSDK
|
|
|
90
91
|
# Some parameter documentations has been truncated, see
|
|
91
92
|
# {WhopSDK::Models::Affiliates::OverrideCreateResponse} for more details.
|
|
92
93
|
#
|
|
93
|
-
#
|
|
94
|
+
# A commission configuration for an affiliate, defining payout terms for a
|
|
95
|
+
# specific plan or revenue share
|
|
94
96
|
#
|
|
95
97
|
# @param id [String] The unique identifier for the affiliate override.
|
|
96
98
|
#
|
|
@@ -102,7 +104,7 @@ module WhopSDK
|
|
|
102
104
|
#
|
|
103
105
|
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
|
|
104
106
|
#
|
|
105
|
-
# @param commission_value [Float] The commission
|
|
107
|
+
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
106
108
|
#
|
|
107
109
|
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
|
|
108
110
|
#
|
|
@@ -44,7 +44,8 @@ module WhopSDK
|
|
|
44
44
|
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }
|
|
45
45
|
|
|
46
46
|
# @!attribute commission_value
|
|
47
|
-
# The commission
|
|
47
|
+
# The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
48
|
+
# or a dollar amount when flat_fee.
|
|
48
49
|
#
|
|
49
50
|
# @return [Float]
|
|
50
51
|
required :commission_value, Float
|
|
@@ -90,7 +91,8 @@ module WhopSDK
|
|
|
90
91
|
# Some parameter documentations has been truncated, see
|
|
91
92
|
# {WhopSDK::Models::Affiliates::OverrideListResponse} for more details.
|
|
92
93
|
#
|
|
93
|
-
#
|
|
94
|
+
# A commission configuration for an affiliate, defining payout terms for a
|
|
95
|
+
# specific plan or revenue share
|
|
94
96
|
#
|
|
95
97
|
# @param id [String] The unique identifier for the affiliate override.
|
|
96
98
|
#
|
|
@@ -102,7 +104,7 @@ module WhopSDK
|
|
|
102
104
|
#
|
|
103
105
|
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
|
|
104
106
|
#
|
|
105
|
-
# @param commission_value [Float] The commission
|
|
107
|
+
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
106
108
|
#
|
|
107
109
|
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
|
|
108
110
|
#
|
|
@@ -44,7 +44,8 @@ module WhopSDK
|
|
|
44
44
|
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }
|
|
45
45
|
|
|
46
46
|
# @!attribute commission_value
|
|
47
|
-
# The commission
|
|
47
|
+
# The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
48
|
+
# or a dollar amount when flat_fee.
|
|
48
49
|
#
|
|
49
50
|
# @return [Float]
|
|
50
51
|
required :commission_value, Float
|
|
@@ -90,7 +91,8 @@ module WhopSDK
|
|
|
90
91
|
# Some parameter documentations has been truncated, see
|
|
91
92
|
# {WhopSDK::Models::Affiliates::OverrideRetrieveResponse} for more details.
|
|
92
93
|
#
|
|
93
|
-
#
|
|
94
|
+
# A commission configuration for an affiliate, defining payout terms for a
|
|
95
|
+
# specific plan or revenue share
|
|
94
96
|
#
|
|
95
97
|
# @param id [String] The unique identifier for the affiliate override.
|
|
96
98
|
#
|
|
@@ -102,7 +104,7 @@ module WhopSDK
|
|
|
102
104
|
#
|
|
103
105
|
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
|
|
104
106
|
#
|
|
105
|
-
# @param commission_value [Float] The commission
|
|
107
|
+
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
106
108
|
#
|
|
107
109
|
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
|
|
108
110
|
#
|
|
@@ -44,7 +44,8 @@ module WhopSDK
|
|
|
44
44
|
required :commission_type, enum: -> { WhopSDK::Affiliates::AffiliatePayoutTypes }
|
|
45
45
|
|
|
46
46
|
# @!attribute commission_value
|
|
47
|
-
# The commission
|
|
47
|
+
# The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
48
|
+
# or a dollar amount when flat_fee.
|
|
48
49
|
#
|
|
49
50
|
# @return [Float]
|
|
50
51
|
required :commission_value, Float
|
|
@@ -90,7 +91,8 @@ module WhopSDK
|
|
|
90
91
|
# Some parameter documentations has been truncated, see
|
|
91
92
|
# {WhopSDK::Models::Affiliates::OverrideUpdateResponse} for more details.
|
|
92
93
|
#
|
|
93
|
-
#
|
|
94
|
+
# A commission configuration for an affiliate, defining payout terms for a
|
|
95
|
+
# specific plan or revenue share
|
|
94
96
|
#
|
|
95
97
|
# @param id [String] The unique identifier for the affiliate override.
|
|
96
98
|
#
|
|
@@ -102,7 +104,7 @@ module WhopSDK
|
|
|
102
104
|
#
|
|
103
105
|
# @param commission_type [Symbol, WhopSDK::Models::Affiliates::AffiliatePayoutTypes] The type of commission (percentage or flat_fee).
|
|
104
106
|
#
|
|
105
|
-
# @param commission_value [Float] The commission
|
|
107
|
+
# @param commission_value [Float] The commission amount. A percentage (1-100) when commission_type is percentage,
|
|
106
108
|
#
|
|
107
109
|
# @param override_type [Symbol, WhopSDK::Models::Affiliates::AffiliateOverrideRoles] The type of override (standard or rev_share).
|
|
108
110
|
#
|
data/lib/whop_sdk/models/app.rb
CHANGED
|
@@ -94,6 +94,21 @@ module WhopSDK
|
|
|
94
94
|
# @return [String]
|
|
95
95
|
required :name, String
|
|
96
96
|
|
|
97
|
+
# @!attribute openapi_path
|
|
98
|
+
# The URL path template for a specific view of this app, appended to the base
|
|
99
|
+
# domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is
|
|
100
|
+
# not configured.
|
|
101
|
+
#
|
|
102
|
+
# @return [String, nil]
|
|
103
|
+
required :openapi_path, String, nil?: true
|
|
104
|
+
|
|
105
|
+
# @!attribute origin
|
|
106
|
+
# The full origin URL for this app's proxied domain (e.g.,
|
|
107
|
+
# 'https://myapp.apps.whop.com'). Null if no proxy domain is configured.
|
|
108
|
+
#
|
|
109
|
+
# @return [String, nil]
|
|
110
|
+
required :origin, String, nil?: true
|
|
111
|
+
|
|
97
112
|
# @!attribute redirect_uris
|
|
98
113
|
# The whitelisted OAuth callback URLs that users are redirected to after
|
|
99
114
|
# authorizing the app.
|
|
@@ -109,6 +124,14 @@ module WhopSDK
|
|
|
109
124
|
required :requested_permissions,
|
|
110
125
|
-> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::App::RequestedPermission] }
|
|
111
126
|
|
|
127
|
+
# @!attribute skills_path
|
|
128
|
+
# The URL path template for a specific view of this app, appended to the base
|
|
129
|
+
# domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is
|
|
130
|
+
# not configured.
|
|
131
|
+
#
|
|
132
|
+
# @return [String, nil]
|
|
133
|
+
required :skills_path, String, nil?: true
|
|
134
|
+
|
|
112
135
|
# @!attribute stats
|
|
113
136
|
# Aggregate usage statistics for this app, including daily, weekly, and monthly
|
|
114
137
|
# active user counts.
|
|
@@ -131,7 +154,7 @@ module WhopSDK
|
|
|
131
154
|
# @return [Boolean]
|
|
132
155
|
required :verified, WhopSDK::Internal::Type::Boolean
|
|
133
156
|
|
|
134
|
-
# @!method initialize(id:, api_key:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, redirect_uris:, requested_permissions:, stats:, status:, verified:)
|
|
157
|
+
# @!method initialize(id:, api_key:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, openapi_path:, origin:, redirect_uris:, requested_permissions:, skills_path:, stats:, status:, verified:)
|
|
135
158
|
# Some parameter documentations has been truncated, see {WhopSDK::Models::App} for
|
|
136
159
|
# more details.
|
|
137
160
|
#
|
|
@@ -164,10 +187,16 @@ module WhopSDK
|
|
|
164
187
|
#
|
|
165
188
|
# @param name [String] The display name of this app shown on the app store and in experience navigation
|
|
166
189
|
#
|
|
190
|
+
# @param openapi_path [String, nil] The URL path template for a specific view of this app, appended to the base doma
|
|
191
|
+
#
|
|
192
|
+
# @param origin [String, nil] The full origin URL for this app's proxied domain (e.g., 'https://myapp.apps.who
|
|
193
|
+
#
|
|
167
194
|
# @param redirect_uris [Array<String>] The whitelisted OAuth callback URLs that users are redirected to after authorizi
|
|
168
195
|
#
|
|
169
196
|
# @param requested_permissions [Array<WhopSDK::Models::App::RequestedPermission>] The list of permissions this app requests when installed, including both require
|
|
170
197
|
#
|
|
198
|
+
# @param skills_path [String, nil] The URL path template for a specific view of this app, appended to the base doma
|
|
199
|
+
#
|
|
171
200
|
# @param stats [WhopSDK::Models::App::Stats, nil] Aggregate usage statistics for this app, including daily, weekly, and monthly ac
|
|
172
201
|
#
|
|
173
202
|
# @param status [Symbol, WhopSDK::Models::AppStatuses] The current visibility status of this app on the Whop app store. 'live' means pu
|
|
@@ -88,6 +88,29 @@ module WhopSDK
|
|
|
88
88
|
# @return [String]
|
|
89
89
|
required :name, String
|
|
90
90
|
|
|
91
|
+
# @!attribute openapi_path
|
|
92
|
+
# The URL path template for a specific view of this app, appended to the base
|
|
93
|
+
# domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is
|
|
94
|
+
# not configured.
|
|
95
|
+
#
|
|
96
|
+
# @return [String, nil]
|
|
97
|
+
required :openapi_path, String, nil?: true
|
|
98
|
+
|
|
99
|
+
# @!attribute origin
|
|
100
|
+
# The full origin URL for this app's proxied domain (e.g.,
|
|
101
|
+
# 'https://myapp.apps.whop.com'). Null if no proxy domain is configured.
|
|
102
|
+
#
|
|
103
|
+
# @return [String, nil]
|
|
104
|
+
required :origin, String, nil?: true
|
|
105
|
+
|
|
106
|
+
# @!attribute skills_path
|
|
107
|
+
# The URL path template for a specific view of this app, appended to the base
|
|
108
|
+
# domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is
|
|
109
|
+
# not configured.
|
|
110
|
+
#
|
|
111
|
+
# @return [String, nil]
|
|
112
|
+
required :skills_path, String, nil?: true
|
|
113
|
+
|
|
91
114
|
# @!attribute status
|
|
92
115
|
# The current visibility status of this app on the Whop app store. 'live' means
|
|
93
116
|
# publicly discoverable, 'unlisted' means accessible only via direct link, and
|
|
@@ -103,7 +126,7 @@ module WhopSDK
|
|
|
103
126
|
# @return [Boolean]
|
|
104
127
|
required :verified, WhopSDK::Internal::Type::Boolean
|
|
105
128
|
|
|
106
|
-
# @!method initialize(id:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, status:, verified:)
|
|
129
|
+
# @!method initialize(id:, app_type:, base_url:, company:, creator:, dashboard_path:, description:, discover_path:, domain_id:, experience_path:, icon:, name:, openapi_path:, origin:, skills_path:, status:, verified:)
|
|
107
130
|
# Some parameter documentations has been truncated, see
|
|
108
131
|
# {WhopSDK::Models::AppListResponse} for more details.
|
|
109
132
|
#
|
|
@@ -134,6 +157,12 @@ module WhopSDK
|
|
|
134
157
|
#
|
|
135
158
|
# @param name [String] The display name of this app shown on the app store and in experience navigation
|
|
136
159
|
#
|
|
160
|
+
# @param openapi_path [String, nil] The URL path template for a specific view of this app, appended to the base doma
|
|
161
|
+
#
|
|
162
|
+
# @param origin [String, nil] The full origin URL for this app's proxied domain (e.g., 'https://myapp.apps.who
|
|
163
|
+
#
|
|
164
|
+
# @param skills_path [String, nil] The URL path template for a specific view of this app, appended to the base doma
|
|
165
|
+
#
|
|
137
166
|
# @param status [Symbol, WhopSDK::Models::AppStatuses] The current visibility status of this app on the Whop app store. 'live' means pu
|
|
138
167
|
#
|
|
139
168
|
# @param verified [Boolean] Whether this app has been verified by Whop. Verified apps are endorsed by Whop a
|