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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +4 -0
- data/lib/whop_sdk/models/account_link_create_params.rb +62 -0
- data/lib/whop_sdk/models/account_link_create_response.rb +28 -0
- data/lib/whop_sdk/models/app_build_list_params.rb +17 -1
- data/lib/whop_sdk/models/app_list_params.rb +1 -0
- data/lib/whop_sdk/models/authorized_user_list_params.rb +17 -1
- data/lib/whop_sdk/models/checkout_configuration_list_params.rb +17 -1
- data/lib/whop_sdk/models/company_list_params.rb +17 -1
- data/lib/whop_sdk/models/dispute_list_params.rb +17 -1
- data/lib/whop_sdk/models/entry_list_params.rb +17 -1
- data/lib/whop_sdk/models/experience_list_params.rb +17 -1
- data/lib/whop_sdk/models/invoice_list_params.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/plan_create_params.rb +3 -21
- data/lib/whop_sdk/models/plan_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_list_params.rb +17 -1
- data/lib/whop_sdk/models/product_update_params.rb +1 -61
- data/lib/whop_sdk/models/promo_code_list_params.rb +17 -1
- data/lib/whop_sdk/models/refund_list_params.rb +17 -1
- data/lib/whop_sdk/models/review_list_params.rb +17 -1
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models.rb +2 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +5 -1
- data/lib/whop_sdk/resources/authorized_users.rb +5 -1
- data/lib/whop_sdk/resources/checkout_configurations.rb +5 -1
- data/lib/whop_sdk/resources/companies.rb +5 -1
- data/lib/whop_sdk/resources/disputes.rb +5 -1
- data/lib/whop_sdk/resources/entries.rb +5 -1
- data/lib/whop_sdk/resources/experiences.rb +5 -1
- data/lib/whop_sdk/resources/invoices.rb +5 -1
- data/lib/whop_sdk/resources/plans.rb +7 -7
- data/lib/whop_sdk/resources/products.rb +6 -4
- data/lib/whop_sdk/resources/promo_codes.rb +5 -1
- data/lib/whop_sdk/resources/refunds.rb +5 -1
- data/lib/whop_sdk/resources/reviews.rb +5 -1
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +4 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +3 -0
- data/rbi/whop_sdk/models/account_link_create_params.rbi +101 -0
- data/rbi/whop_sdk/models/account_link_create_response.rbi +38 -0
- data/rbi/whop_sdk/models/app_build_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +5 -0
- data/rbi/whop_sdk/models/authorized_user_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/checkout_configuration_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/company_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/dispute_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/entry_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/experience_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/invoice_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +2 -22
- data/rbi/whop_sdk/models/plan_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/product_update_params.rbi +0 -110
- data/rbi/whop_sdk/models/promo_code_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/refund_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/review_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models.rbi +2 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +6 -0
- data/rbi/whop_sdk/resources/authorized_users.rbi +6 -0
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +6 -0
- data/rbi/whop_sdk/resources/companies.rbi +6 -0
- data/rbi/whop_sdk/resources/disputes.rbi +6 -0
- data/rbi/whop_sdk/resources/entries.rbi +6 -0
- data/rbi/whop_sdk/resources/experiences.rbi +6 -0
- data/rbi/whop_sdk/resources/invoices.rbi +6 -0
- data/rbi/whop_sdk/resources/plans.rbi +7 -9
- data/rbi/whop_sdk/resources/products.rbi +6 -9
- data/rbi/whop_sdk/resources/promo_codes.rbi +6 -0
- data/rbi/whop_sdk/resources/refunds.rbi +6 -0
- data/rbi/whop_sdk/resources/reviews.rbi +6 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/sig/whop_sdk/client.rbs +2 -0
- data/sig/whop_sdk/models/account_link_create_params.rbs +52 -0
- data/sig/whop_sdk/models/account_link_create_response.rbs +15 -0
- data/sig/whop_sdk/models/app_build_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_list_params.rbs +2 -0
- data/sig/whop_sdk/models/authorized_user_list_params.rbs +10 -0
- data/sig/whop_sdk/models/checkout_configuration_list_params.rbs +10 -0
- data/sig/whop_sdk/models/company_list_params.rbs +10 -0
- data/sig/whop_sdk/models/dispute_list_params.rbs +10 -0
- data/sig/whop_sdk/models/entry_list_params.rbs +10 -0
- data/sig/whop_sdk/models/experience_list_params.rbs +10 -0
- data/sig/whop_sdk/models/invoice_list_params.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +0 -10
- data/sig/whop_sdk/models/plan_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_list_params.rbs +10 -0
- data/sig/whop_sdk/models/product_update_params.rbs +0 -36
- data/sig/whop_sdk/models/promo_code_list_params.rbs +10 -0
- data/sig/whop_sdk/models/refund_list_params.rbs +10 -0
- data/sig/whop_sdk/models/review_list_params.rbs +10 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models.rbs +2 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +2 -0
- data/sig/whop_sdk/resources/authorized_users.rbs +2 -0
- data/sig/whop_sdk/resources/checkout_configurations.rbs +2 -0
- data/sig/whop_sdk/resources/companies.rbs +2 -0
- data/sig/whop_sdk/resources/disputes.rbs +2 -0
- data/sig/whop_sdk/resources/entries.rbs +2 -0
- data/sig/whop_sdk/resources/experiences.rbs +2 -0
- data/sig/whop_sdk/resources/invoices.rbs +2 -0
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/products.rbs +2 -1
- data/sig/whop_sdk/resources/promo_codes.rbs +2 -0
- data/sig/whop_sdk/resources/refunds.rbs +2 -0
- data/sig/whop_sdk/resources/reviews.rbs +2 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c10840499139acda05743f2fc27c566c608b2d5361559820d43db0be286fe9a5
|
|
4
|
+
data.tar.gz: 3e285be5b55549d35de9fc885cc6ea3301edce23388f544ece842cd64354a9ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/whop_sdk/client.rb
CHANGED
|
@@ -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.
|
|
@@ -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
|
|
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,
|
|
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
|
|
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.
|