whop_sdk 0.0.8 → 0.0.9

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 (118) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/account_link_create_params.rb +62 -0
  6. data/lib/whop_sdk/models/account_link_create_response.rb +28 -0
  7. data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
  8. data/lib/whop_sdk/models/app_list_params.rb +1 -0
  9. data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
  10. data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
  11. data/lib/whop_sdk/models/company_list_params.rb +17 -1
  12. data/lib/whop_sdk/models/dispute_list_params.rb +17 -1
  13. data/lib/whop_sdk/models/entry_list_params.rb +17 -1
  14. data/lib/whop_sdk/models/experience_list_params.rb +17 -1
  15. data/lib/whop_sdk/models/invoice_list_params.rb +17 -1
  16. data/lib/whop_sdk/models/payment_method_types.rb +1 -0
  17. data/lib/whop_sdk/models/plan_create_params.rb +3 -21
  18. data/lib/whop_sdk/models/plan_list_params.rb +17 -1
  19. data/lib/whop_sdk/models/product_list_params.rb +17 -1
  20. data/lib/whop_sdk/models/product_update_params.rb +1 -61
  21. data/lib/whop_sdk/models/promo_code_list_params.rb +17 -1
  22. data/lib/whop_sdk/models/refund_list_params.rb +17 -1
  23. data/lib/whop_sdk/models/review_list_params.rb +17 -1
  24. data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
  25. data/lib/whop_sdk/models.rb +2 -0
  26. data/lib/whop_sdk/resources/account_links.rb +47 -0
  27. data/lib/whop_sdk/resources/app_builds.rb +5 -1
  28. data/lib/whop_sdk/resources/authorized_users.rb +5 -1
  29. data/lib/whop_sdk/resources/checkout_configurations.rb +5 -1
  30. data/lib/whop_sdk/resources/companies.rb +5 -1
  31. data/lib/whop_sdk/resources/disputes.rb +5 -1
  32. data/lib/whop_sdk/resources/entries.rb +5 -1
  33. data/lib/whop_sdk/resources/experiences.rb +5 -1
  34. data/lib/whop_sdk/resources/invoices.rb +5 -1
  35. data/lib/whop_sdk/resources/plans.rb +7 -7
  36. data/lib/whop_sdk/resources/products.rb +6 -4
  37. data/lib/whop_sdk/resources/promo_codes.rb +5 -1
  38. data/lib/whop_sdk/resources/refunds.rb +5 -1
  39. data/lib/whop_sdk/resources/reviews.rb +5 -1
  40. data/lib/whop_sdk/resources/transfers.rb +5 -1
  41. data/lib/whop_sdk/version.rb +1 -1
  42. data/lib/whop_sdk.rb +4 -0
  43. data/manifest.yaml +1 -0
  44. data/rbi/whop_sdk/client.rbi +3 -0
  45. data/rbi/whop_sdk/models/account_link_create_params.rbi +101 -0
  46. data/rbi/whop_sdk/models/account_link_create_response.rbi +38 -0
  47. data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
  48. data/rbi/whop_sdk/models/app_list_params.rbi +5 -0
  49. data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
  50. data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
  51. data/rbi/whop_sdk/models/company_list_params.rbi +16 -0
  52. data/rbi/whop_sdk/models/dispute_list_params.rbi +16 -0
  53. data/rbi/whop_sdk/models/entry_list_params.rbi +16 -0
  54. data/rbi/whop_sdk/models/experience_list_params.rbi +16 -0
  55. data/rbi/whop_sdk/models/invoice_list_params.rbi +16 -0
  56. data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
  57. data/rbi/whop_sdk/models/plan_create_params.rbi +2 -22
  58. data/rbi/whop_sdk/models/plan_list_params.rbi +16 -0
  59. data/rbi/whop_sdk/models/product_list_params.rbi +16 -0
  60. data/rbi/whop_sdk/models/product_update_params.rbi +0 -110
  61. data/rbi/whop_sdk/models/promo_code_list_params.rbi +16 -0
  62. data/rbi/whop_sdk/models/refund_list_params.rbi +16 -0
  63. data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
  64. data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
  65. data/rbi/whop_sdk/models.rbi +2 -0
  66. data/rbi/whop_sdk/resources/account_links.rbi +39 -0
  67. data/rbi/whop_sdk/resources/app_builds.rbi +6 -0
  68. data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
  69. data/rbi/whop_sdk/resources/checkout_configurations.rbi +6 -0
  70. data/rbi/whop_sdk/resources/companies.rbi +6 -0
  71. data/rbi/whop_sdk/resources/disputes.rbi +6 -0
  72. data/rbi/whop_sdk/resources/entries.rbi +6 -0
  73. data/rbi/whop_sdk/resources/experiences.rbi +6 -0
  74. data/rbi/whop_sdk/resources/invoices.rbi +6 -0
  75. data/rbi/whop_sdk/resources/plans.rbi +7 -9
  76. data/rbi/whop_sdk/resources/products.rbi +6 -9
  77. data/rbi/whop_sdk/resources/promo_codes.rbi +6 -0
  78. data/rbi/whop_sdk/resources/refunds.rbi +6 -0
  79. data/rbi/whop_sdk/resources/reviews.rbi +6 -0
  80. data/rbi/whop_sdk/resources/transfers.rbi +6 -0
  81. data/sig/whop_sdk/client.rbs +2 -0
  82. data/sig/whop_sdk/models/account_link_create_params.rbs +52 -0
  83. data/sig/whop_sdk/models/account_link_create_response.rbs +15 -0
  84. data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
  85. data/sig/whop_sdk/models/app_list_params.rbs +2 -0
  86. data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
  87. data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
  88. data/sig/whop_sdk/models/company_list_params.rbs +10 -0
  89. data/sig/whop_sdk/models/dispute_list_params.rbs +10 -0
  90. data/sig/whop_sdk/models/entry_list_params.rbs +10 -0
  91. data/sig/whop_sdk/models/experience_list_params.rbs +10 -0
  92. data/sig/whop_sdk/models/invoice_list_params.rbs +10 -0
  93. data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
  94. data/sig/whop_sdk/models/plan_create_params.rbs +0 -10
  95. data/sig/whop_sdk/models/plan_list_params.rbs +10 -0
  96. data/sig/whop_sdk/models/product_list_params.rbs +10 -0
  97. data/sig/whop_sdk/models/product_update_params.rbs +0 -36
  98. data/sig/whop_sdk/models/promo_code_list_params.rbs +10 -0
  99. data/sig/whop_sdk/models/refund_list_params.rbs +10 -0
  100. data/sig/whop_sdk/models/review_list_params.rbs +10 -0
  101. data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
  102. data/sig/whop_sdk/models.rbs +2 -0
  103. data/sig/whop_sdk/resources/account_links.rbs +15 -0
  104. data/sig/whop_sdk/resources/app_builds.rbs +2 -0
  105. data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
  106. data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -0
  107. data/sig/whop_sdk/resources/companies.rbs +2 -0
  108. data/sig/whop_sdk/resources/disputes.rbs +2 -0
  109. data/sig/whop_sdk/resources/entries.rbs +2 -0
  110. data/sig/whop_sdk/resources/experiences.rbs +2 -0
  111. data/sig/whop_sdk/resources/invoices.rbs +2 -0
  112. data/sig/whop_sdk/resources/plans.rbs +2 -2
  113. data/sig/whop_sdk/resources/products.rbs +2 -1
  114. data/sig/whop_sdk/resources/promo_codes.rbs +2 -0
  115. data/sig/whop_sdk/resources/refunds.rbs +2 -0
  116. data/sig/whop_sdk/resources/reviews.rbs +2 -0
  117. data/sig/whop_sdk/resources/transfers.rbs +2 -0
  118. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14ebf7da15710195e3504625ed6981872a5617073900afea6e87a69649fb2168
4
- data.tar.gz: 8be39b26a644d7dde4c56f91d70966d562289b751f9ff161878240bd42a894d7
3
+ metadata.gz: c10840499139acda05743f2fc27c566c608b2d5361559820d43db0be286fe9a5
4
+ data.tar.gz: 3e285be5b55549d35de9fc885cc6ea3301edce23388f544ece842cd64354a9ce
5
5
  SHA512:
6
- metadata.gz: 691a259a1b5dfd6b2b9550a357dbac5111122439578e526550dde1c9c227614a0a83f3521ae4035b9d07a33d913e0ff85cafc6f86d4e74b08e4c97bf81d99475
7
- data.tar.gz: ba2977755e24b9a195f1205b629daab0aab47576a770ee0a45a4807f71cb7276fe36cd06f4d3624dddd2bf03c8e0adcc322ec0c214c8ad15ab6b29605dd9886d
6
+ metadata.gz: ecfe3f22c5202c573a52632778059a81ad80f61080b90a8afb762a1d39d6f3759937207b66dc06325cdfdab1f5e56acdacb4472b41a69f3047b56fc00eb49fba
7
+ data.tar.gz: bb88d51770763c2a9e5d384b16e40e2228cf5731e26dbd935e572157bda9b34ad021eb411f2f037969fef4e4c148603054367ba1fd539eb3669214cd23c85bbf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.0.9 (2025-12-01)
4
+
5
+ Full Changelog: [v0.0.8...v0.0.9](https://github.com/whopio/whopsdk-ruby/compare/v0.0.8...v0.0.9)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b9f7830](https://github.com/whopio/whopsdk-ruby/commit/b9f7830e02fce7ea744123f9391bd63477777791))
10
+ * **api:** api update ([0d6de41](https://github.com/whopio/whopsdk-ruby/commit/0d6de416cc96a1dff8176a8c986c1e5170439708))
11
+ * **api:** api update ([cb2a10b](https://github.com/whopio/whopsdk-ruby/commit/cb2a10bf8cf75a57e4714c1af3d8687e9fd0a45f))
12
+ * **api:** manual updates ([b5db9c0](https://github.com/whopio/whopsdk-ruby/commit/b5db9c035ee748775db6be426484057806f1fcd8))
13
+
14
+
15
+ ### Chores
16
+
17
+ * explicitly require "base64" gem ([07c9cd7](https://github.com/whopio/whopsdk-ruby/commit/07c9cd76d730e34b7170f5ebdb0596dc0c978155))
18
+
3
19
  ## 0.0.8 (2025-11-21)
4
20
 
5
21
  Full Changelog: [v0.0.7...v0.0.8](https://github.com/whopio/whopsdk-ruby/compare/v0.0.7...v0.0.8)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "whop_sdk", "~> 0.0.8"
20
+ gem "whop_sdk", "~> 0.0.9"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -132,6 +132,9 @@ module WhopSDK
132
132
  # @return [WhopSDK::Resources::Withdrawals]
133
133
  attr_reader :withdrawals
134
134
 
135
+ # @return [WhopSDK::Resources::AccountLinks]
136
+ attr_reader :account_links
137
+
135
138
  # @api private
136
139
  #
137
140
  # @return [Hash{String=>String}]
@@ -225,6 +228,7 @@ module WhopSDK
225
228
  @disputes = WhopSDK::Resources::Disputes.new(client: self)
226
229
  @refunds = WhopSDK::Resources::Refunds.new(client: self)
227
230
  @withdrawals = WhopSDK::Resources::Withdrawals.new(client: self)
231
+ @account_links = WhopSDK::Resources::AccountLinks.new(client: self)
228
232
  end
229
233
 
230
234
  # Verifies a Whop user token
@@ -0,0 +1,62 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AccountLinks#create
6
+ class AccountLinkCreateParams < WhopSDK::Internal::Type::BaseModel
7
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
8
+ include WhopSDK::Internal::Type::RequestParameters
9
+
10
+ # @!attribute company_id
11
+ # The ID of the Company to generate the url for. The company must be a
12
+ # sub-merchant of the API key's company.
13
+ #
14
+ # @return [String]
15
+ required :company_id, String
16
+
17
+ # @!attribute refresh_url
18
+ # The URL to redirect to if the session expires and needs to be re-authenticated
19
+ # due to the token expiring.
20
+ #
21
+ # @return [String]
22
+ required :refresh_url, String
23
+
24
+ # @!attribute return_url
25
+ # The URL to redirect to when the customer wants to return to your site.
26
+ #
27
+ # @return [String]
28
+ required :return_url, String
29
+
30
+ # @!attribute use_case
31
+ # The use case for which the link will be used.
32
+ #
33
+ # @return [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase]
34
+ required :use_case, enum: -> { WhopSDK::AccountLinkCreateParams::UseCase }
35
+
36
+ # @!method initialize(company_id:, refresh_url:, return_url:, use_case:, request_options: {})
37
+ # Some parameter documentations has been truncated, see
38
+ # {WhopSDK::Models::AccountLinkCreateParams} for more details.
39
+ #
40
+ # @param company_id [String] The ID of the Company to generate the url for. The company must be a sub-merchan
41
+ #
42
+ # @param refresh_url [String] The URL to redirect to if the session expires and needs to be re-authenticated d
43
+ #
44
+ # @param return_url [String] The URL to redirect to when the customer wants to return to your site.
45
+ #
46
+ # @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The use case for which the link will be used.
47
+ #
48
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
49
+
50
+ # The use case for which the link will be used.
51
+ module UseCase
52
+ extend WhopSDK::Internal::Type::Enum
53
+
54
+ ACCOUNT_ONBOARDING = :account_onboarding
55
+ PAYOUTS_PORTAL = :payouts_portal
56
+
57
+ # @!method self.values
58
+ # @return [Array<Symbol>]
59
+ end
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Models
5
+ # @see WhopSDK::Resources::AccountLinks#create
6
+ class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
7
+ # @!attribute expires_at
8
+ # The expiration timestamp of the url.
9
+ #
10
+ # @return [Time]
11
+ required :expires_at, Time
12
+
13
+ # @!attribute url
14
+ # The URL to navigate the user to.
15
+ #
16
+ # @return [String]
17
+ required :url, String
18
+
19
+ # @!method initialize(expires_at:, url:)
20
+ # An object representing a url that a user can be directed to to access their
21
+ # account.
22
+ #
23
+ # @param expires_at [Time] The expiration timestamp of the url.
24
+ #
25
+ # @param url [String] The URL to navigate the user to.
26
+ end
27
+ end
28
+ end
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute first
29
41
  # Returns the first _n_ elements from the list.
30
42
  #
@@ -49,13 +61,17 @@ module WhopSDK
49
61
  # @return [Symbol, WhopSDK::Models::AppBuildStatuses, nil]
50
62
  optional :status, enum: -> { WhopSDK::AppBuildStatuses }, nil?: true
51
63
 
52
- # @!method initialize(app_id:, after: nil, before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
64
+ # @!method initialize(app_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
53
65
  # @param app_id [String] The ID of the app to filter app builds by
54
66
  #
55
67
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
56
68
  #
57
69
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
58
70
  #
71
+ # @param created_after [Time, nil] The minimum creation date to filter by
72
+ #
73
+ # @param created_before [Time, nil] The maximum creation date to filter by
74
+ #
59
75
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
60
76
  #
61
77
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -108,6 +108,7 @@ module WhopSDK
108
108
 
109
109
  DISCOVERABLE_AT = :discoverable_at
110
110
  TOTAL_INSTALLS_LAST_30_DAYS = :total_installs_last_30_days
111
+ TOTAL_INSTALLS_LAST_7_DAYS = :total_installs_last_7_days
111
112
  TIME_SPENT = :time_spent
112
113
  TIME_SPENT_LAST_24_HOURS = :time_spent_last_24_hours
113
114
  DAILY_ACTIVE_USERS = :daily_active_users
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute first
29
41
  # Returns the first _n_ elements from the list.
30
42
  #
@@ -49,13 +61,17 @@ module WhopSDK
49
61
  # @return [String, nil]
50
62
  optional :user_id, String, nil?: true
51
63
 
52
- # @!method initialize(company_id:, after: nil, before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
64
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
53
65
  # @param company_id [String] The ID of the company to list authorized users for
54
66
  #
55
67
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
56
68
  #
57
69
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
58
70
  #
71
+ # @param created_after [Time, nil] The minimum creation date to filter by
72
+ #
73
+ # @param created_before [Time, nil] The maximum creation date to filter by
74
+ #
59
75
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
60
76
  #
61
77
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -49,13 +61,17 @@ module WhopSDK
49
61
  # @return [String, nil]
50
62
  optional :plan_id, String, nil?: true
51
63
 
52
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
64
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
53
65
  # @param company_id [String] The ID of the company to list checkout configurations for
54
66
  #
55
67
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
56
68
  #
57
69
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
58
70
  #
71
+ # @param created_after [Time, nil] The minimum creation date to filter by
72
+ #
73
+ # @param created_before [Time, nil] The maximum creation date to filter by
74
+ #
59
75
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
60
76
  #
61
77
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -43,13 +55,17 @@ module WhopSDK
43
55
  # @return [Integer, nil]
44
56
  optional :last, Integer, nil?: true
45
57
 
46
- # @!method initialize(parent_company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
58
+ # @!method initialize(parent_company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
47
59
  # @param parent_company_id [String] The ID of the parent company to list sub companies for
48
60
  #
49
61
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
50
62
  #
51
63
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
52
64
  #
65
+ # @param created_after [Time, nil] The minimum creation date to filter by
66
+ #
67
+ # @param created_before [Time, nil] The maximum creation date to filter by
68
+ #
53
69
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
54
70
  #
55
71
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -43,13 +55,17 @@ module WhopSDK
43
55
  # @return [Integer, nil]
44
56
  optional :last, Integer, nil?: true
45
57
 
46
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
58
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
47
59
  # @param company_id [String] The ID of the company to list disputes for
48
60
  #
49
61
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
50
62
  #
51
63
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
52
64
  #
65
+ # @param created_after [Time, nil] The minimum creation date to filter by
66
+ #
67
+ # @param created_before [Time, nil] The maximum creation date to filter by
68
+ #
53
69
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
54
70
  #
55
71
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -67,13 +79,17 @@ module WhopSDK
67
79
  # @return [Array<Symbol, WhopSDK::Models::EntryStatus>, nil]
68
80
  optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::EntryStatus] }, nil?: true
69
81
 
70
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, statuses: nil, request_options: {})
82
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, statuses: nil, request_options: {})
71
83
  # @param company_id [String] The ID of the company
72
84
  #
73
85
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
74
86
  #
75
87
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
76
88
  #
89
+ # @param created_after [Time, nil] The minimum creation date to filter by
90
+ #
91
+ # @param created_before [Time, nil] The maximum creation date to filter by
92
+ #
77
93
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
78
94
  #
79
95
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -31,6 +31,18 @@ module WhopSDK
31
31
  # @return [String, nil]
32
32
  optional :before, String, nil?: true
33
33
 
34
+ # @!attribute created_after
35
+ # The minimum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_after, Time, nil?: true
39
+
40
+ # @!attribute created_before
41
+ # The maximum creation date to filter by
42
+ #
43
+ # @return [Time, nil]
44
+ optional :created_before, Time, nil?: true
45
+
34
46
  # @!attribute first
35
47
  # Returns the first _n_ elements from the list.
36
48
  #
@@ -49,7 +61,7 @@ module WhopSDK
49
61
  # @return [String, nil]
50
62
  optional :product_id, String, nil?: true
51
63
 
52
- # @!method initialize(company_id:, after: nil, app_id: nil, before: nil, first: nil, last: nil, product_id: nil, request_options: {})
64
+ # @!method initialize(company_id:, after: nil, app_id: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, product_id: nil, request_options: {})
53
65
  # @param company_id [String] The ID of the company to filter experiences by
54
66
  #
55
67
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
@@ -58,6 +70,10 @@ module WhopSDK
58
70
  #
59
71
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
60
72
  #
73
+ # @param created_after [Time, nil] The minimum creation date to filter by
74
+ #
75
+ # @param created_before [Time, nil] The maximum creation date to filter by
76
+ #
61
77
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
62
78
  #
63
79
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -33,6 +33,18 @@ module WhopSDK
33
33
  -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::CollectionMethod] },
34
34
  nil?: true
35
35
 
36
+ # @!attribute created_after
37
+ # The minimum creation date to filter by
38
+ #
39
+ # @return [Time, nil]
40
+ optional :created_after, Time, nil?: true
41
+
42
+ # @!attribute created_before
43
+ # The maximum creation date to filter by
44
+ #
45
+ # @return [Time, nil]
46
+ optional :created_before, Time, nil?: true
47
+
36
48
  # @!attribute direction
37
49
  # The direction of the sort.
38
50
  #
@@ -69,7 +81,7 @@ module WhopSDK
69
81
  # @return [Array<Symbol, WhopSDK::Models::InvoiceStatus>, nil]
70
82
  optional :statuses, -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::InvoiceStatus] }, nil?: true
71
83
 
72
- # @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
84
+ # @!method initialize(company_id:, after: nil, before: nil, collection_methods: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
73
85
  # @param company_id [String] The ID of the company to list invoices for
74
86
  #
75
87
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
@@ -78,6 +90,10 @@ module WhopSDK
78
90
  #
79
91
  # @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
80
92
  #
93
+ # @param created_after [Time, nil] The minimum creation date to filter by
94
+ #
95
+ # @param created_before [Time, nil] The maximum creation date to filter by
96
+ #
81
97
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
82
98
  #
83
99
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -90,6 +90,7 @@ module WhopSDK
90
90
  SPLITIT = :splitit
91
91
  PLATFORM_BALANCE = :platform_balance
92
92
  APPLE = :apple
93
+ VENMO = :venmo
93
94
  UNKNOWN = :unknown
94
95
 
95
96
  # @!method self.values
@@ -46,7 +46,7 @@ module WhopSDK
46
46
  optional :description, String, nil?: true
47
47
 
48
48
  # @!attribute expiration_days
49
- # The interval at which the plan charges (expiration plans).
49
+ # The interval at which the plan expires and revokes access (expiration plans).
50
50
  #
51
51
  # @return [Integer, nil]
52
52
  optional :expiration_days, Integer, nil?: true
@@ -112,20 +112,6 @@ module WhopSDK
112
112
  # @return [Integer, nil]
113
113
  optional :stock, Integer, nil?: true
114
114
 
115
- # @!attribute strike_through_initial_price
116
- # The price to display with a strikethrough for the initial price. Provided as a
117
- # number in dollars. Eg: 19.99 for $19.99
118
- #
119
- # @return [Float, nil]
120
- optional :strike_through_initial_price, Float, nil?: true
121
-
122
- # @!attribute strike_through_renewal_price
123
- # The price to display with a strikethrough for the renewal price. Provided as a
124
- # number in dollars. Eg: 19.99 for $19.99
125
- #
126
- # @return [Float, nil]
127
- optional :strike_through_renewal_price, Float, nil?: true
128
-
129
115
  # @!attribute title
130
116
  # The title of the plan. This will be visible on the product page to customers.
131
117
  #
@@ -150,7 +136,7 @@ module WhopSDK
150
136
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
151
137
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
152
138
 
153
- # @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil, strike_through_initial_price: nil, strike_through_renewal_price: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
139
+ # @!method initialize(company_id:, product_id:, billing_period: nil, currency: nil, custom_fields: nil, description: nil, expiration_days: nil, image: nil, initial_price: nil, internal_notes: nil, override_tax_type: nil, payment_method_configuration: nil, plan_type: nil, release_method: nil, renewal_price: nil, stock: nil, title: nil, trial_period_days: nil, unlimited_stock: nil, visibility: nil, request_options: {})
154
140
  # Some parameter documentations has been truncated, see
155
141
  # {WhopSDK::Models::PlanCreateParams} for more details.
156
142
  #
@@ -166,7 +152,7 @@ module WhopSDK
166
152
  #
167
153
  # @param description [String, nil] The description of the plan.
168
154
  #
169
- # @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
155
+ # @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
170
156
  #
171
157
  # @param image [WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithDirectUploadID, WhopSDK::Models::PlanCreateParams::Image::AttachmentInputWithID, nil] An image for the plan. This will be visible on the product page to customers.
172
158
  #
@@ -186,10 +172,6 @@ module WhopSDK
186
172
  #
187
173
  # @param stock [Integer, nil] The number of units available for purchase.
188
174
  #
189
- # @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
190
- #
191
- # @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
192
- #
193
175
  # @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
194
176
  #
195
177
  # @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -77,13 +89,17 @@ module WhopSDK
77
89
  -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::VisibilityFilter] },
78
90
  nil?: true
79
91
 
80
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, plan_types: nil, product_ids: nil, release_methods: nil, visibilities: nil, request_options: {})
92
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, plan_types: nil, product_ids: nil, release_methods: nil, visibilities: nil, request_options: {})
81
93
  # @param company_id [String] The ID of the company
82
94
  #
83
95
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
84
96
  #
85
97
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
86
98
  #
99
+ # @param created_after [Time, nil] The minimum creation date to filter by
100
+ #
101
+ # @param created_before [Time, nil] The maximum creation date to filter by
102
+ #
87
103
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
88
104
  #
89
105
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -25,6 +25,18 @@ module WhopSDK
25
25
  # @return [String, nil]
26
26
  optional :before, String, nil?: true
27
27
 
28
+ # @!attribute created_after
29
+ # The minimum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_after, Time, nil?: true
33
+
34
+ # @!attribute created_before
35
+ # The maximum creation date to filter by
36
+ #
37
+ # @return [Time, nil]
38
+ optional :created_before, Time, nil?: true
39
+
28
40
  # @!attribute direction
29
41
  # The direction of the sort.
30
42
  #
@@ -65,13 +77,17 @@ module WhopSDK
65
77
  -> { WhopSDK::Internal::Type::ArrayOf[enum: WhopSDK::VisibilityFilter] },
66
78
  nil?: true
67
79
 
68
- # @!method initialize(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, product_types: nil, visibilities: nil, request_options: {})
80
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, order: nil, product_types: nil, visibilities: nil, request_options: {})
69
81
  # @param company_id [String] The ID of the company to filter products by
70
82
  #
71
83
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
72
84
  #
73
85
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
74
86
  #
87
+ # @param created_after [Time, nil] The minimum creation date to filter by
88
+ #
89
+ # @param created_before [Time, nil] The maximum creation date to filter by
90
+ #
75
91
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
76
92
  #
77
93
  # @param first [Integer, nil] Returns the first _n_ elements from the list.