whop_sdk 0.0.23 → 0.0.24

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.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
  5. data/lib/whop_sdk/models/app_create_params.rb +22 -1
  6. data/lib/whop_sdk/models/app_list_params.rb +5 -0
  7. data/lib/whop_sdk/models/app_update_params.rb +14 -53
  8. data/lib/whop_sdk/models/card_brands.rb +16 -0
  9. data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
  10. data/lib/whop_sdk/models/company_create_params.rb +22 -1
  11. data/lib/whop_sdk/models/company_update_params.rb +28 -106
  12. data/lib/whop_sdk/models/course_create_params.rb +15 -62
  13. data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
  14. data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
  15. data/lib/whop_sdk/models/course_update_params.rb +14 -61
  16. data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
  17. data/lib/whop_sdk/models/experience_create_params.rb +22 -1
  18. data/lib/whop_sdk/models/experience_update_params.rb +14 -53
  19. data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
  20. data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
  21. data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
  22. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
  23. data/lib/whop_sdk/models/member_list_response.rb +9 -1
  24. data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
  25. data/lib/whop_sdk/models/membership.rb +76 -2
  26. data/lib/whop_sdk/models/membership_list_response.rb +38 -2
  27. data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
  28. data/lib/whop_sdk/models/message_create_params.rb +13 -52
  29. data/lib/whop_sdk/models/message_update_params.rb +14 -53
  30. data/lib/whop_sdk/models/payment.rb +17 -1
  31. data/lib/whop_sdk/models/payment_list_response.rb +17 -1
  32. data/lib/whop_sdk/models/payment_method_types.rb +58 -57
  33. data/lib/whop_sdk/models/payment_provider.rb +1 -0
  34. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
  35. data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
  36. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
  37. data/lib/whop_sdk/models/plan_create_params.rb +14 -53
  38. data/lib/whop_sdk/models/plan_update_params.rb +14 -53
  39. data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
  40. data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
  41. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
  42. data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
  43. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
  44. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
  45. data/lib/whop_sdk/models.rb +2 -2
  46. data/lib/whop_sdk/resources/app_builds.rb +1 -1
  47. data/lib/whop_sdk/resources/apps.rb +4 -2
  48. data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
  49. data/lib/whop_sdk/resources/companies.rb +5 -3
  50. data/lib/whop_sdk/resources/course_lessons.rb +4 -4
  51. data/lib/whop_sdk/resources/courses.rb +4 -8
  52. data/lib/whop_sdk/resources/disputes.rb +4 -4
  53. data/lib/whop_sdk/resources/experiences.rb +4 -2
  54. data/lib/whop_sdk/resources/forum_posts.rb +2 -2
  55. data/lib/whop_sdk/resources/memberships.rb +32 -0
  56. data/lib/whop_sdk/resources/messages.rb +2 -2
  57. data/lib/whop_sdk/resources/notifications.rb +4 -0
  58. data/lib/whop_sdk/resources/plans.rb +2 -2
  59. data/lib/whop_sdk/resources/withdrawals.rb +8 -1
  60. data/lib/whop_sdk/version.rb +1 -1
  61. data/lib/whop_sdk.rb +1 -1
  62. data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
  63. data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
  64. data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
  65. data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
  66. data/rbi/whop_sdk/models/card_brands.rbi +17 -0
  67. data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
  68. data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
  69. data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
  70. data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
  71. data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
  72. data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
  73. data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
  74. data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
  75. data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
  76. data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
  77. data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
  78. data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
  79. data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
  80. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
  81. data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
  82. data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
  83. data/rbi/whop_sdk/models/membership.rbi +126 -4
  84. data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
  85. data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
  86. data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
  87. data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
  88. data/rbi/whop_sdk/models/payment.rbi +16 -0
  89. data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
  90. data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
  91. data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
  92. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
  93. data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
  94. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
  95. data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
  96. data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
  97. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
  98. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
  99. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
  100. data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
  101. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
  102. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
  103. data/rbi/whop_sdk/models.rbi +2 -2
  104. data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
  105. data/rbi/whop_sdk/resources/apps.rbi +4 -7
  106. data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
  107. data/rbi/whop_sdk/resources/companies.rbi +5 -13
  108. data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
  109. data/rbi/whop_sdk/resources/courses.rbi +2 -20
  110. data/rbi/whop_sdk/resources/disputes.rbi +4 -16
  111. data/rbi/whop_sdk/resources/experiences.rbi +4 -7
  112. data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
  113. data/rbi/whop_sdk/resources/memberships.rbi +26 -0
  114. data/rbi/whop_sdk/resources/messages.rbi +2 -12
  115. data/rbi/whop_sdk/resources/notifications.rbi +4 -0
  116. data/rbi/whop_sdk/resources/plans.rbi +2 -14
  117. data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
  118. data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
  119. data/sig/whop_sdk/models/app_create_params.rbs +20 -1
  120. data/sig/whop_sdk/models/app_list_params.rbs +10 -0
  121. data/sig/whop_sdk/models/app_update_params.rbs +9 -30
  122. data/sig/whop_sdk/models/card_brands.rbs +32 -0
  123. data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
  124. data/sig/whop_sdk/models/company_create_params.rbs +15 -0
  125. data/sig/whop_sdk/models/company_update_params.rbs +18 -60
  126. data/sig/whop_sdk/models/course_create_params.rbs +9 -35
  127. data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
  128. data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
  129. data/sig/whop_sdk/models/course_update_params.rbs +9 -35
  130. data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
  131. data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
  132. data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
  133. data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
  134. data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
  135. data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
  136. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
  137. data/sig/whop_sdk/models/member_list_response.rbs +5 -0
  138. data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
  139. data/sig/whop_sdk/models/membership.rbs +65 -4
  140. data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
  141. data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
  142. data/sig/whop_sdk/models/message_create_params.rbs +9 -30
  143. data/sig/whop_sdk/models/message_update_params.rbs +9 -30
  144. data/sig/whop_sdk/models/payment.rbs +10 -0
  145. data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
  146. data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
  147. data/sig/whop_sdk/models/payment_provider.rbs +2 -0
  148. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
  149. data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
  150. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
  151. data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
  152. data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
  153. data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
  154. data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
  155. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
  156. data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
  157. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
  158. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
  159. data/sig/whop_sdk/models.rbs +2 -2
  160. data/sig/whop_sdk/resources/app_builds.rbs +1 -1
  161. data/sig/whop_sdk/resources/apps.rbs +2 -1
  162. data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
  163. data/sig/whop_sdk/resources/companies.rbs +3 -2
  164. data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
  165. data/sig/whop_sdk/resources/courses.rbs +2 -4
  166. data/sig/whop_sdk/resources/disputes.rbs +4 -4
  167. data/sig/whop_sdk/resources/experiences.rbs +2 -1
  168. data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
  169. data/sig/whop_sdk/resources/memberships.rbs +5 -0
  170. data/sig/whop_sdk/resources/messages.rbs +2 -2
  171. data/sig/whop_sdk/resources/plans.rbs +2 -2
  172. data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
  173. metadata +19 -5
  174. data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
  175. data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
  176. data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c724e98153a9b2da18320ec44a1a8c6210873521c6eb4525c5f93207913190e
4
- data.tar.gz: 418b37092a6facdd88dfc74ff4e273767fcb62efa4dfed034cd783cf3ee8790c
3
+ metadata.gz: 70eecb4bdfda145393289d3aae4565f2da950068f23c0419bc88f542b8850b60
4
+ data.tar.gz: 01ad88064c3a33de5996d30f640dfc34d30fff3b1b298955355cc3476c894868
5
5
  SHA512:
6
- metadata.gz: 121e768b3fd4815b3e63d0a40e519468bca26dd2768ebaaf9ee885c653a876e295abdac34f0e584c952054a019ce22bda4785fac3f14c8d54819833b40589026
7
- data.tar.gz: 2e92c54e7a0c90b4c5df4357b1ba0744cb2bf0f2cd4e40e35d4f53f8f029073fd35d7dfb4f1b330bb5abb3f64c463868944458f753e8517a9f44ae31ecbaaa56
6
+ metadata.gz: b261c018f26b048b7966ed679e5811a8680cfe001e10f832abcc1121cf6b98dc39e966b9e304a7d64e537cf6e5c649184b1196cfd655b94d357f1c36ff120091
7
+ data.tar.gz: 2c7605007defe75103f8e2c97aa5c0c74b7ae8d19464ca185df760e2180e692842ea0b074bebd209cce9b47d50d3752b27c6ae275be3bcf02ce1cb106910cec2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.24 (2026-01-25)
4
+
5
+ Full Changelog: [v0.0.23...v0.0.24](https://github.com/whopio/whopsdk-ruby/compare/v0.0.23...v0.0.24)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([3f8895d](https://github.com/whopio/whopsdk-ruby/commit/3f8895d21e7f848239d7d5237dfe03c1c9bb40a5))
10
+ * **api:** api update ([8c45d4d](https://github.com/whopio/whopsdk-ruby/commit/8c45d4dac11f2e932e5eb0f5c1332539256f6f64))
11
+ * **api:** api update ([56c5958](https://github.com/whopio/whopsdk-ruby/commit/56c59586b405691fbb2c2673df015a6c4c6bac77))
12
+ * **api:** api update ([575a5ca](https://github.com/whopio/whopsdk-ruby/commit/575a5ca14f1a3e9feb9203f2a51bc39bc8cfe149))
13
+ * **api:** api update ([903a063](https://github.com/whopio/whopsdk-ruby/commit/903a0634fd7f585eee51454982dc27a08a0f0948))
14
+ * **api:** api update ([72ec1cb](https://github.com/whopio/whopsdk-ruby/commit/72ec1cbe453d7cc8342d2996216780493833e4da))
15
+ * **api:** api update ([2cf1fad](https://github.com/whopio/whopsdk-ruby/commit/2cf1fadbece71a34040e07c4323de0b4884cedc5))
16
+ * **api:** api update ([c26ce69](https://github.com/whopio/whopsdk-ruby/commit/c26ce69644916463ef0a386090ef1e592f2ac07f))
17
+ * **api:** api update ([d249eca](https://github.com/whopio/whopsdk-ruby/commit/d249eca80ddf15dee5653c08e3beef0835d41738))
18
+ * **api:** api update ([dc41323](https://github.com/whopio/whopsdk-ruby/commit/dc4132327cf3e40421bf9f3caeb62323ec0d1ab2))
19
+ * **api:** api update ([89df280](https://github.com/whopio/whopsdk-ruby/commit/89df280a85ad325ba5dd06ffffe7f5810590e92f))
20
+ * **api:** api update ([4cafc17](https://github.com/whopio/whopsdk-ruby/commit/4cafc1725f1047d564d1560ce959b20bf5493aa2))
21
+ * **api:** api update ([c9daa39](https://github.com/whopio/whopsdk-ruby/commit/c9daa39be528817b477fca8a6b460a31a39504e8))
22
+ * **api:** api update ([71ef795](https://github.com/whopio/whopsdk-ruby/commit/71ef7957231d741348eeb7f10e42304a6f4e9ffb))
23
+ * **api:** api update ([652a0be](https://github.com/whopio/whopsdk-ruby/commit/652a0bedb7dd68fd8e765228bbe9d251bf7c9f19))
24
+ * **api:** api update ([cb282a1](https://github.com/whopio/whopsdk-ruby/commit/cb282a111add351df6dfa3fec0fb8a428344f9bf))
25
+ * **api:** api update ([555ee4d](https://github.com/whopio/whopsdk-ruby/commit/555ee4d29583437178d523cead08eefb6690e178))
26
+ * **api:** api update ([7aab597](https://github.com/whopio/whopsdk-ruby/commit/7aab597e000981c1cb8a3048b429fd68b075cc21))
27
+ * **api:** api update ([49ad3d2](https://github.com/whopio/whopsdk-ruby/commit/49ad3d22688f431ccc5b327dd84b583591905300))
28
+ * **api:** api update ([54634cf](https://github.com/whopio/whopsdk-ruby/commit/54634cf5c996c93e3c39ce69dcc646fedbceb473))
29
+ * **api:** api update ([8a9cfc7](https://github.com/whopio/whopsdk-ruby/commit/8a9cfc7e1dc415b22d57e509b9227b0d60c88f9d))
30
+ * **api:** manual updates ([fb65c56](https://github.com/whopio/whopsdk-ruby/commit/fb65c56b9fb542b2aec52bcf1b508ce49f5da572))
31
+
32
+
33
+ ### Chores
34
+
35
+ * **internal:** update `actions/checkout` version ([c27b1b0](https://github.com/whopio/whopsdk-ruby/commit/c27b1b08d527e42f390dd61d00716f12095b8026))
36
+ * move `cgi` into dependencies for ruby 4 ([ea9feac](https://github.com/whopio/whopsdk-ruby/commit/ea9feac06b6b5b7e217cc62207993c5132348add))
37
+
3
38
  ## 0.0.23 (2026-01-09)
4
39
 
5
40
  Full Changelog: [v0.0.22...v0.0.23](https://github.com/whopio/whopsdk-ruby/compare/v0.0.22...v0.0.23)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "whop_sdk", "~> 0.0.23"
29
+ gem "whop_sdk", "~> 0.0.24"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -12,8 +12,8 @@ module WhopSDK
12
12
  # format. The zip should contain at least one main_js_bundle.hbc file and
13
13
  # optionally an assets folder next to it.
14
14
  #
15
- # @return [WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID]
16
- required :attachment, union: -> { WhopSDK::AppBuildCreateParams::Attachment }
15
+ # @return [WhopSDK::Models::AppBuildCreateParams::Attachment]
16
+ required :attachment, -> { WhopSDK::AppBuildCreateParams::Attachment }
17
17
 
18
18
  # @!attribute checksum
19
19
  # Checksum of the app build file. This is generated by the client and used to
@@ -55,7 +55,7 @@ module WhopSDK
55
55
  # Some parameter documentations has been truncated, see
56
56
  # {WhopSDK::Models::AppBuildCreateParams} for more details.
57
57
  #
58
- # @param attachment [WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID] Attachment input for the app build file. This should be an upload in .zip format
58
+ # @param attachment [WhopSDK::Models::AppBuildCreateParams::Attachment] Attachment input for the app build file. This should be an upload in .zip format
59
59
  #
60
60
  # @param checksum [String] Checksum of the app build file. This is generated by the client and used to veri
61
61
  #
@@ -69,58 +69,19 @@ module WhopSDK
69
69
  #
70
70
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
71
71
 
72
- # Attachment input for the app build file. This should be an upload in .zip
73
- # format. The zip should contain at least one main_js_bundle.hbc file and
74
- # optionally an assets folder next to it.
75
- module Attachment
76
- extend WhopSDK::Internal::Type::Union
77
-
78
- # Input for an attachment
79
- variant -> { WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID }
80
-
81
- # Input for an attachment
82
- variant -> { WhopSDK::AppBuildCreateParams::Attachment::AttachmentInputWithID }
83
-
84
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
85
- # @!attribute direct_upload_id
86
- # This ID should be used the first time you upload an attachment. It is the ID of
87
- # the direct upload that was created when uploading the file to S3 via the
88
- # mediaDirectUpload mutation.
89
- #
90
- # @return [String]
91
- required :direct_upload_id, String
92
-
93
- # @!method initialize(direct_upload_id:)
94
- # Some parameter documentations has been truncated, see
95
- # {WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID}
96
- # for more details.
97
- #
98
- # Input for an attachment
99
- #
100
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
101
- end
102
-
103
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
104
- # @!attribute id
105
- # The ID of an existing attachment object. Use this when updating a resource and
106
- # keeping a subset of the attachments. Don't use this unless you know what you're
107
- # doing.
108
- #
109
- # @return [String]
110
- required :id, String
111
-
112
- # @!method initialize(id:)
113
- # Some parameter documentations has been truncated, see
114
- # {WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID} for
115
- # more details.
116
- #
117
- # Input for an attachment
118
- #
119
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
120
- end
121
-
122
- # @!method self.variants
123
- # @return [Array(WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppBuildCreateParams::Attachment::AttachmentInputWithID)]
72
+ class Attachment < WhopSDK::Internal::Type::BaseModel
73
+ # @!attribute id
74
+ # The ID of an existing file object.
75
+ #
76
+ # @return [String]
77
+ required :id, String
78
+
79
+ # @!method initialize(id:)
80
+ # Attachment input for the app build file. This should be an upload in .zip
81
+ # format. The zip should contain at least one main_js_bundle.hbc file and
82
+ # optionally an assets folder next to it.
83
+ #
84
+ # @param id [String] The ID of an existing file object.
124
85
  end
125
86
  end
126
87
  end
@@ -25,14 +25,35 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :base_url, String, nil?: true
27
27
 
28
- # @!method initialize(company_id:, name:, base_url: nil, request_options: {})
28
+ # @!attribute icon
29
+ # The icon for the app in png, jpeg, or gif format
30
+ #
31
+ # @return [WhopSDK::Models::AppCreateParams::Icon, nil]
32
+ optional :icon, -> { WhopSDK::AppCreateParams::Icon }, nil?: true
33
+
34
+ # @!method initialize(company_id:, name:, base_url: nil, icon: nil, request_options: {})
29
35
  # @param company_id [String] The ID of the company to create the app for
30
36
  #
31
37
  # @param name [String] The name of the app to be created
32
38
  #
33
39
  # @param base_url [String, nil] The base URL of the app to be created
34
40
  #
41
+ # @param icon [WhopSDK::Models::AppCreateParams::Icon, nil] The icon for the app in png, jpeg, or gif format
42
+ #
35
43
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
44
+
45
+ class Icon < WhopSDK::Internal::Type::BaseModel
46
+ # @!attribute id
47
+ # The ID of an existing file object.
48
+ #
49
+ # @return [String]
50
+ required :id, String
51
+
52
+ # @!method initialize(id:)
53
+ # The icon for the app in png, jpeg, or gif format
54
+ #
55
+ # @param id [String] The ID of an existing file object.
56
+ end
36
57
  end
37
58
  end
38
59
  end
@@ -112,6 +112,11 @@ module WhopSDK
112
112
  TIME_SPENT = :time_spent
113
113
  TIME_SPENT_LAST_24_HOURS = :time_spent_last_24_hours
114
114
  DAILY_ACTIVE_USERS = :daily_active_users
115
+ AI_PROMPT_COUNT = :ai_prompt_count
116
+ TOTAL_AI_COST_USD = :total_ai_cost_usd
117
+ TOTAL_AI_TOKENS = :total_ai_tokens
118
+ LAST_AI_PROMPT_AT = :last_ai_prompt_at
119
+ AI_AVERAGE_RATING = :ai_average_rating
115
120
 
116
121
  # @!method self.values
117
122
  # @return [Array<Symbol>]
@@ -52,8 +52,8 @@ module WhopSDK
52
52
  # @!attribute icon
53
53
  # The icon for the app
54
54
  #
55
- # @return [WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID, nil]
56
- optional :icon, union: -> { WhopSDK::AppUpdateParams::Icon }, nil?: true
55
+ # @return [WhopSDK::Models::AppUpdateParams::Icon, nil]
56
+ optional :icon, -> { WhopSDK::AppUpdateParams::Icon }, nil?: true
57
57
 
58
58
  # @!attribute name
59
59
  # The name of the app
@@ -90,7 +90,7 @@ module WhopSDK
90
90
  #
91
91
  # @param experience_path [String, nil] The path for the hub view of the app
92
92
  #
93
- # @param icon [WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID, nil] The icon for the app
93
+ # @param icon [WhopSDK::Models::AppUpdateParams::Icon, nil] The icon for the app
94
94
  #
95
95
  # @param name [String, nil] The name of the app
96
96
  #
@@ -100,56 +100,17 @@ module WhopSDK
100
100
  #
101
101
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
102
102
 
103
- # The icon for the app
104
- module Icon
105
- extend WhopSDK::Internal::Type::Union
106
-
107
- # Input for an attachment
108
- variant -> { WhopSDK::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID }
109
-
110
- # Input for an attachment
111
- variant -> { WhopSDK::AppUpdateParams::Icon::AttachmentInputWithID }
112
-
113
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
114
- # @!attribute direct_upload_id
115
- # This ID should be used the first time you upload an attachment. It is the ID of
116
- # the direct upload that was created when uploading the file to S3 via the
117
- # mediaDirectUpload mutation.
118
- #
119
- # @return [String]
120
- required :direct_upload_id, String
121
-
122
- # @!method initialize(direct_upload_id:)
123
- # Some parameter documentations has been truncated, see
124
- # {WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID} for
125
- # more details.
126
- #
127
- # Input for an attachment
128
- #
129
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
130
- end
131
-
132
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
133
- # @!attribute id
134
- # The ID of an existing attachment object. Use this when updating a resource and
135
- # keeping a subset of the attachments. Don't use this unless you know what you're
136
- # doing.
137
- #
138
- # @return [String]
139
- required :id, String
140
-
141
- # @!method initialize(id:)
142
- # Some parameter documentations has been truncated, see
143
- # {WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID} for more
144
- # details.
145
- #
146
- # Input for an attachment
147
- #
148
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
149
- end
150
-
151
- # @!method self.variants
152
- # @return [Array(WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithDirectUploadID, WhopSDK::Models::AppUpdateParams::Icon::AttachmentInputWithID)]
103
+ class Icon < WhopSDK::Internal::Type::BaseModel
104
+ # @!attribute id
105
+ # The ID of an existing file object.
106
+ #
107
+ # @return [String]
108
+ required :id, String
109
+
110
+ # @!method initialize(id:)
111
+ # The icon for the app
112
+ #
113
+ # @param id [String] The ID of an existing file object.
153
114
  end
154
115
 
155
116
  # These are the scopes an app can request on behalf of a user
@@ -22,6 +22,22 @@ module WhopSDK
22
22
  JCBRUPAY = :jcbrupay
23
23
  ELO = :elo
24
24
  MAESTRO = :maestro
25
+ TARJETA_NARANJA = :tarjeta_naranja
26
+ CIRRUS = :cirrus
27
+ NSPK_MIR = :nspk_mir
28
+ VERVE = :verve
29
+ EBT = :ebt
30
+ PRIVATE_LABEL = :private_label
31
+ LOCAL_BRAND = :local_brand
32
+ UATP = :uatp
33
+ WEXCARD = :wexcard
34
+ UZCARD = :uzcard
35
+ MEEZA = :meeza
36
+ HRG_STORE_CARD = :hrg_store_card
37
+ GIROCARD = :girocard
38
+ FUEL_CARD = :fuel_card
39
+ DANKORT = :dankort
40
+ CARNET = :carnet
25
41
  UNKNOWN = :unknown
26
42
 
27
43
  # @!method self.values
@@ -52,6 +52,12 @@ module WhopSDK
52
52
  # @return [String, nil]
53
53
  optional :redirect_url, String, nil?: true
54
54
 
55
+ # @!attribute source_url
56
+ # The URL of the page where the checkout is being initiated from.
57
+ #
58
+ # @return [String, nil]
59
+ optional :source_url, String, nil?: true
60
+
55
61
  # @!attribute plan_id
56
62
  # The ID of the plan to use for the checkout configuration
57
63
  #
@@ -65,7 +71,7 @@ module WhopSDK
65
71
  # @return [String]
66
72
  required :company_id, String
67
73
 
68
- # @!method initialize(plan:, plan_id:, company_id:, affiliate_code: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, mode: :setup, request_options: {})
74
+ # @!method initialize(plan:, plan_id:, company_id:, affiliate_code: nil, currency: nil, metadata: nil, payment_method_configuration: nil, redirect_url: nil, source_url: nil, mode: :setup, request_options: {})
69
75
  # Some parameter documentations has been truncated, see
70
76
  # {WhopSDK::Models::CheckoutConfigurationCreateParams} for more details.
71
77
  #
@@ -85,6 +91,8 @@ module WhopSDK
85
91
  #
86
92
  # @param redirect_url [String, nil] The URL to redirect the user to after the checkout configuration is created
87
93
  #
94
+ # @param source_url [String, nil] The URL of the page where the checkout is being initiated from.
95
+ #
88
96
  # @param mode [Symbol, :setup]
89
97
  #
90
98
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
@@ -148,8 +156,8 @@ module WhopSDK
148
156
  # @!attribute image
149
157
  # An image for the plan. This will be visible on the product page to customers.
150
158
  #
151
- # @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID, nil]
152
- optional :image, union: -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image }, nil?: true
159
+ # @return [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil]
160
+ optional :image, -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image }, nil?: true
153
161
 
154
162
  # @!attribute initial_price
155
163
  # An additional amount charged upon first purchase.
@@ -216,6 +224,12 @@ module WhopSDK
216
224
  # @return [Integer, nil]
217
225
  optional :split_pay_required_payments, Integer, nil?: true
218
226
 
227
+ # @!attribute stock
228
+ # The number of units available for purchase. If not provided, stock is unlimited.
229
+ #
230
+ # @return [Integer, nil]
231
+ optional :stock, Integer, nil?: true
232
+
219
233
  # @!attribute title
220
234
  # The title of the plan. This will be visible on the product page to customers.
221
235
  #
@@ -234,7 +248,7 @@ module WhopSDK
234
248
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
235
249
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
236
250
 
237
- # @!method initialize(company_id:, currency:, application_fee_amount: nil, billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, title: nil, trial_period_days: nil, visibility: nil)
251
+ # @!method initialize(company_id:, currency:, application_fee_amount: nil, billing_period: nil, custom_fields: nil, description: nil, expiration_days: nil, force_create_new_plan: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, product: nil, product_id: nil, release_method: nil, renewal_price: nil, split_pay_required_payments: nil, stock: nil, title: nil, trial_period_days: nil, visibility: nil)
238
252
  # Some parameter documentations has been truncated, see
239
253
  # {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan} for more details.
240
254
  #
@@ -256,7 +270,7 @@ module WhopSDK
256
270
  #
257
271
  # @param force_create_new_plan [Boolean, nil] Whether to force the creation of a new plan even if one with the same attributes
258
272
  #
259
- # @param image [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
273
+ # @param image [WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image, nil] An image for the plan. This will be visible on the product page to customers.
260
274
  #
261
275
  # @param initial_price [Float, nil] An additional amount charged upon first purchase.
262
276
  #
@@ -278,6 +292,8 @@ module WhopSDK
278
292
  #
279
293
  # @param split_pay_required_payments [Integer, nil] The number of payments required before pausing the subscription.
280
294
  #
295
+ # @param stock [Integer, nil] The number of units available for purchase. If not provided, stock is unlimited.
296
+ #
281
297
  # @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
282
298
  #
283
299
  # @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
@@ -335,58 +351,18 @@ module WhopSDK
335
351
  # @param field_type [Symbol, :text] The type of the custom field.
336
352
  end
337
353
 
338
- # An image for the plan. This will be visible on the product page to customers.
339
- #
340
354
  # @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#image
341
- module Image
342
- extend WhopSDK::Internal::Type::Union
343
-
344
- # Input for an attachment
345
- variant -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID }
346
-
347
- # Input for an attachment
348
- variant -> { WhopSDK::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID }
349
-
350
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
351
- # @!attribute direct_upload_id
352
- # This ID should be used the first time you upload an attachment. It is the ID of
353
- # the direct upload that was created when uploading the file to S3 via the
354
- # mediaDirectUpload mutation.
355
- #
356
- # @return [String]
357
- required :direct_upload_id, String
358
-
359
- # @!method initialize(direct_upload_id:)
360
- # Some parameter documentations has been truncated, see
361
- # {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID}
362
- # for more details.
363
- #
364
- # Input for an attachment
365
- #
366
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
367
- end
368
-
369
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
370
- # @!attribute id
371
- # The ID of an existing attachment object. Use this when updating a resource and
372
- # keeping a subset of the attachments. Don't use this unless you know what you're
373
- # doing.
374
- #
375
- # @return [String]
376
- required :id, String
377
-
378
- # @!method initialize(id:)
379
- # Some parameter documentations has been truncated, see
380
- # {WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID}
381
- # for more details.
382
- #
383
- # Input for an attachment
384
- #
385
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
386
- end
387
-
388
- # @!method self.variants
389
- # @return [Array(WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::CheckoutConfigurationCreateParams::Plan::Image::AttachmentInputWithID)]
355
+ class Image < WhopSDK::Internal::Type::BaseModel
356
+ # @!attribute id
357
+ # The ID of an existing file object.
358
+ #
359
+ # @return [String]
360
+ required :id, String
361
+
362
+ # @!method initialize(id:)
363
+ # An image for the plan. This will be visible on the product page to customers.
364
+ #
365
+ # @param id [String] The ID of an existing file object.
390
366
  end
391
367
 
392
368
  # @see WhopSDK::Models::CheckoutConfigurationCreateParams::Plan#payment_method_configuration
@@ -37,6 +37,12 @@ module WhopSDK
37
37
  # @return [Symbol, WhopSDK::Models::IndustryTypes, nil]
38
38
  optional :industry_type, enum: -> { WhopSDK::IndustryTypes }, nil?: true
39
39
 
40
+ # @!attribute logo
41
+ # The logo for the company in png, jpeg, or gif format
42
+ #
43
+ # @return [WhopSDK::Models::CompanyCreateParams::Logo, nil]
44
+ optional :logo, -> { WhopSDK::CompanyCreateParams::Logo }, nil?: true
45
+
40
46
  # @!attribute metadata
41
47
  # Additional metadata for the account
42
48
  #
@@ -52,7 +58,7 @@ module WhopSDK
52
58
  # @return [Boolean, nil]
53
59
  optional :send_customer_emails, WhopSDK::Internal::Type::Boolean, nil?: true
54
60
 
55
- # @!method initialize(email:, parent_company_id:, title:, business_type: nil, industry_type: nil, metadata: nil, send_customer_emails: nil, request_options: {})
61
+ # @!method initialize(email:, parent_company_id:, title:, business_type: nil, industry_type: nil, logo: nil, metadata: nil, send_customer_emails: nil, request_options: {})
56
62
  # Some parameter documentations has been truncated, see
57
63
  # {WhopSDK::Models::CompanyCreateParams} for more details.
58
64
  #
@@ -66,11 +72,26 @@ module WhopSDK
66
72
  #
67
73
  # @param industry_type [Symbol, WhopSDK::Models::IndustryTypes, nil] The different industry types a company can be in.
68
74
  #
75
+ # @param logo [WhopSDK::Models::CompanyCreateParams::Logo, nil] The logo for the company in png, jpeg, or gif format
76
+ #
69
77
  # @param metadata [Hash{Symbol=>Object}, nil] Additional metadata for the account
70
78
  #
71
79
  # @param send_customer_emails [Boolean, nil] Whether Whop sends transactional emails to customers on behalf of this company.
72
80
  #
73
81
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
82
+
83
+ class Logo < WhopSDK::Internal::Type::BaseModel
84
+ # @!attribute id
85
+ # The ID of an existing file object.
86
+ #
87
+ # @return [String]
88
+ required :id, String
89
+
90
+ # @!method initialize(id:)
91
+ # The logo for the company in png, jpeg, or gif format
92
+ #
93
+ # @param id [String] The ID of an existing file object.
94
+ end
74
95
  end
75
96
  end
76
97
  end