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
data/lib/whop_sdk.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  # Standard libraries.
4
4
  # rubocop:disable Lint/RedundantRequireStatement
5
5
  require "English"
6
+ require "base64"
6
7
  require "cgi"
7
8
  require "date"
8
9
  require "erb"
@@ -56,6 +57,8 @@ require_relative "whop_sdk/models/access_level"
56
57
  require_relative "whop_sdk/models/access_pass_type"
57
58
  require_relative "whop_sdk/models/access_token_create_params"
58
59
  require_relative "whop_sdk/models/access_token_create_response"
60
+ require_relative "whop_sdk/models/account_link_create_params"
61
+ require_relative "whop_sdk/models/account_link_create_response"
59
62
  require_relative "whop_sdk/models/app"
60
63
  require_relative "whop_sdk/models/app_build"
61
64
  require_relative "whop_sdk/models/app_build_create_params"
@@ -336,6 +339,7 @@ require_relative "whop_sdk/models/withdrawal_status"
336
339
  require_relative "whop_sdk/models/withdrawal_types"
337
340
  require_relative "whop_sdk/models"
338
341
  require_relative "whop_sdk/resources/access_tokens"
342
+ require_relative "whop_sdk/resources/account_links"
339
343
  require_relative "whop_sdk/resources/app_builds"
340
344
  require_relative "whop_sdk/resources/apps"
341
345
  require_relative "whop_sdk/resources/authorized_users"
data/manifest.yaml CHANGED
@@ -1,5 +1,6 @@
1
1
  dependencies:
2
2
  - English
3
+ - base64
3
4
  - cgi
4
5
  - date
5
6
  - erb
@@ -127,6 +127,9 @@ module WhopSDK
127
127
  sig { returns(WhopSDK::Resources::Withdrawals) }
128
128
  attr_reader :withdrawals
129
129
 
130
+ sig { returns(WhopSDK::Resources::AccountLinks) }
131
+ attr_reader :account_links
132
+
130
133
  # @api private
131
134
  sig { override.returns(T::Hash[String, String]) }
132
135
  private def auth_headers
@@ -0,0 +1,101 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class AccountLinkCreateParams < WhopSDK::Internal::Type::BaseModel
6
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
7
+ include WhopSDK::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(WhopSDK::AccountLinkCreateParams, WhopSDK::Internal::AnyHash)
12
+ end
13
+
14
+ # The ID of the Company to generate the url for. The company must be a
15
+ # sub-merchant of the API key's company.
16
+ sig { returns(String) }
17
+ attr_accessor :company_id
18
+
19
+ # The URL to redirect to if the session expires and needs to be re-authenticated
20
+ # due to the token expiring.
21
+ sig { returns(String) }
22
+ attr_accessor :refresh_url
23
+
24
+ # The URL to redirect to when the customer wants to return to your site.
25
+ sig { returns(String) }
26
+ attr_accessor :return_url
27
+
28
+ # The use case for which the link will be used.
29
+ sig { returns(WhopSDK::AccountLinkCreateParams::UseCase::OrSymbol) }
30
+ attr_accessor :use_case
31
+
32
+ sig do
33
+ params(
34
+ company_id: String,
35
+ refresh_url: String,
36
+ return_url: String,
37
+ use_case: WhopSDK::AccountLinkCreateParams::UseCase::OrSymbol,
38
+ request_options: WhopSDK::RequestOptions::OrHash
39
+ ).returns(T.attached_class)
40
+ end
41
+ def self.new(
42
+ # The ID of the Company to generate the url for. The company must be a
43
+ # sub-merchant of the API key's company.
44
+ company_id:,
45
+ # The URL to redirect to if the session expires and needs to be re-authenticated
46
+ # due to the token expiring.
47
+ refresh_url:,
48
+ # The URL to redirect to when the customer wants to return to your site.
49
+ return_url:,
50
+ # The use case for which the link will be used.
51
+ use_case:,
52
+ request_options: {}
53
+ )
54
+ end
55
+
56
+ sig do
57
+ override.returns(
58
+ {
59
+ company_id: String,
60
+ refresh_url: String,
61
+ return_url: String,
62
+ use_case: WhopSDK::AccountLinkCreateParams::UseCase::OrSymbol,
63
+ request_options: WhopSDK::RequestOptions
64
+ }
65
+ )
66
+ end
67
+ def to_hash
68
+ end
69
+
70
+ # The use case for which the link will be used.
71
+ module UseCase
72
+ extend WhopSDK::Internal::Type::Enum
73
+
74
+ TaggedSymbol =
75
+ T.type_alias do
76
+ T.all(Symbol, WhopSDK::AccountLinkCreateParams::UseCase)
77
+ end
78
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
79
+
80
+ ACCOUNT_ONBOARDING =
81
+ T.let(
82
+ :account_onboarding,
83
+ WhopSDK::AccountLinkCreateParams::UseCase::TaggedSymbol
84
+ )
85
+ PAYOUTS_PORTAL =
86
+ T.let(
87
+ :payouts_portal,
88
+ WhopSDK::AccountLinkCreateParams::UseCase::TaggedSymbol
89
+ )
90
+
91
+ sig do
92
+ override.returns(
93
+ T::Array[WhopSDK::AccountLinkCreateParams::UseCase::TaggedSymbol]
94
+ )
95
+ end
96
+ def self.values
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,38 @@
1
+ # typed: strong
2
+
3
+ module WhopSDK
4
+ module Models
5
+ class AccountLinkCreateResponse < WhopSDK::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(
9
+ WhopSDK::Models::AccountLinkCreateResponse,
10
+ WhopSDK::Internal::AnyHash
11
+ )
12
+ end
13
+
14
+ # The expiration timestamp of the url.
15
+ sig { returns(Time) }
16
+ attr_accessor :expires_at
17
+
18
+ # The URL to navigate the user to.
19
+ sig { returns(String) }
20
+ attr_accessor :url
21
+
22
+ # An object representing a url that a user can be directed to to access their
23
+ # account.
24
+ sig { params(expires_at: Time, url: String).returns(T.attached_class) }
25
+ def self.new(
26
+ # The expiration timestamp of the url.
27
+ expires_at:,
28
+ # The URL to navigate the user to.
29
+ url:
30
+ )
31
+ end
32
+
33
+ sig { override.returns({ expires_at: Time, url: String }) }
34
+ def to_hash
35
+ end
36
+ end
37
+ end
38
+ end
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # Returns the first _n_ elements from the list.
27
35
  sig { returns(T.nilable(Integer)) }
28
36
  attr_accessor :first
@@ -44,6 +52,8 @@ module WhopSDK
44
52
  app_id: String,
45
53
  after: T.nilable(String),
46
54
  before: T.nilable(String),
55
+ created_after: T.nilable(Time),
56
+ created_before: T.nilable(Time),
47
57
  first: T.nilable(Integer),
48
58
  last: T.nilable(Integer),
49
59
  platform: T.nilable(WhopSDK::AppBuildPlatforms::OrSymbol),
@@ -58,6 +68,10 @@ module WhopSDK
58
68
  after: nil,
59
69
  # Returns the elements in the list that come before the specified cursor.
60
70
  before: nil,
71
+ # The minimum creation date to filter by
72
+ created_after: nil,
73
+ # The maximum creation date to filter by
74
+ created_before: nil,
61
75
  # Returns the first _n_ elements from the list.
62
76
  first: nil,
63
77
  # Returns the last _n_ elements from the list.
@@ -76,6 +90,8 @@ module WhopSDK
76
90
  app_id: String,
77
91
  after: T.nilable(String),
78
92
  before: T.nilable(String),
93
+ created_after: T.nilable(Time),
94
+ created_before: T.nilable(Time),
79
95
  first: T.nilable(Integer),
80
96
  last: T.nilable(Integer),
81
97
  platform: T.nilable(WhopSDK::AppBuildPlatforms::OrSymbol),
@@ -136,6 +136,11 @@ module WhopSDK
136
136
  :total_installs_last_30_days,
137
137
  WhopSDK::AppListParams::Order::TaggedSymbol
138
138
  )
139
+ TOTAL_INSTALLS_LAST_7_DAYS =
140
+ T.let(
141
+ :total_installs_last_7_days,
142
+ WhopSDK::AppListParams::Order::TaggedSymbol
143
+ )
139
144
  TIME_SPENT =
140
145
  T.let(:time_spent, WhopSDK::AppListParams::Order::TaggedSymbol)
141
146
  TIME_SPENT_LAST_24_HOURS =
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # Returns the first _n_ elements from the list.
27
35
  sig { returns(T.nilable(Integer)) }
28
36
  attr_accessor :first
@@ -44,6 +52,8 @@ module WhopSDK
44
52
  company_id: String,
45
53
  after: T.nilable(String),
46
54
  before: T.nilable(String),
55
+ created_after: T.nilable(Time),
56
+ created_before: T.nilable(Time),
47
57
  first: T.nilable(Integer),
48
58
  last: T.nilable(Integer),
49
59
  role: T.nilable(WhopSDK::AuthorizedUserRoles::OrSymbol),
@@ -58,6 +68,10 @@ module WhopSDK
58
68
  after: nil,
59
69
  # Returns the elements in the list that come before the specified cursor.
60
70
  before: nil,
71
+ # The minimum creation date to filter by
72
+ created_after: nil,
73
+ # The maximum creation date to filter by
74
+ created_before: nil,
61
75
  # Returns the first _n_ elements from the list.
62
76
  first: nil,
63
77
  # Returns the last _n_ elements from the list.
@@ -76,6 +90,8 @@ module WhopSDK
76
90
  company_id: String,
77
91
  after: T.nilable(String),
78
92
  before: T.nilable(String),
93
+ created_after: T.nilable(Time),
94
+ created_before: T.nilable(Time),
79
95
  first: T.nilable(Integer),
80
96
  last: T.nilable(Integer),
81
97
  role: T.nilable(WhopSDK::AuthorizedUserRoles::OrSymbol),
@@ -26,6 +26,14 @@ module WhopSDK
26
26
  sig { returns(T.nilable(String)) }
27
27
  attr_accessor :before
28
28
 
29
+ # The minimum creation date to filter by
30
+ sig { returns(T.nilable(Time)) }
31
+ attr_accessor :created_after
32
+
33
+ # The maximum creation date to filter by
34
+ sig { returns(T.nilable(Time)) }
35
+ attr_accessor :created_before
36
+
29
37
  # The direction of the sort.
30
38
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
31
39
  attr_accessor :direction
@@ -47,6 +55,8 @@ module WhopSDK
47
55
  company_id: String,
48
56
  after: T.nilable(String),
49
57
  before: T.nilable(String),
58
+ created_after: T.nilable(Time),
59
+ created_before: T.nilable(Time),
50
60
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
51
61
  first: T.nilable(Integer),
52
62
  last: T.nilable(Integer),
@@ -61,6 +71,10 @@ module WhopSDK
61
71
  after: nil,
62
72
  # Returns the elements in the list that come before the specified cursor.
63
73
  before: nil,
74
+ # The minimum creation date to filter by
75
+ created_after: nil,
76
+ # The maximum creation date to filter by
77
+ created_before: nil,
64
78
  # The direction of the sort.
65
79
  direction: nil,
66
80
  # Returns the first _n_ elements from the list.
@@ -79,6 +93,8 @@ module WhopSDK
79
93
  company_id: String,
80
94
  after: T.nilable(String),
81
95
  before: T.nilable(String),
96
+ created_after: T.nilable(Time),
97
+ created_before: T.nilable(Time),
82
98
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
83
99
  first: T.nilable(Integer),
84
100
  last: T.nilable(Integer),
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # The direction of the sort.
27
35
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
28
36
  attr_accessor :direction
@@ -40,6 +48,8 @@ module WhopSDK
40
48
  parent_company_id: String,
41
49
  after: T.nilable(String),
42
50
  before: T.nilable(String),
51
+ created_after: T.nilable(Time),
52
+ created_before: T.nilable(Time),
43
53
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
44
54
  first: T.nilable(Integer),
45
55
  last: T.nilable(Integer),
@@ -53,6 +63,10 @@ module WhopSDK
53
63
  after: nil,
54
64
  # Returns the elements in the list that come before the specified cursor.
55
65
  before: nil,
66
+ # The minimum creation date to filter by
67
+ created_after: nil,
68
+ # The maximum creation date to filter by
69
+ created_before: nil,
56
70
  # The direction of the sort.
57
71
  direction: nil,
58
72
  # Returns the first _n_ elements from the list.
@@ -69,6 +83,8 @@ module WhopSDK
69
83
  parent_company_id: String,
70
84
  after: T.nilable(String),
71
85
  before: T.nilable(String),
86
+ created_after: T.nilable(Time),
87
+ created_before: T.nilable(Time),
72
88
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
73
89
  first: T.nilable(Integer),
74
90
  last: T.nilable(Integer),
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # The direction of the sort.
27
35
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
28
36
  attr_accessor :direction
@@ -40,6 +48,8 @@ module WhopSDK
40
48
  company_id: String,
41
49
  after: T.nilable(String),
42
50
  before: T.nilable(String),
51
+ created_after: T.nilable(Time),
52
+ created_before: T.nilable(Time),
43
53
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
44
54
  first: T.nilable(Integer),
45
55
  last: T.nilable(Integer),
@@ -53,6 +63,10 @@ module WhopSDK
53
63
  after: nil,
54
64
  # Returns the elements in the list that come before the specified cursor.
55
65
  before: nil,
66
+ # The minimum creation date to filter by
67
+ created_after: nil,
68
+ # The maximum creation date to filter by
69
+ created_before: nil,
56
70
  # The direction of the sort.
57
71
  direction: nil,
58
72
  # Returns the first _n_ elements from the list.
@@ -69,6 +83,8 @@ module WhopSDK
69
83
  company_id: String,
70
84
  after: T.nilable(String),
71
85
  before: T.nilable(String),
86
+ created_after: T.nilable(Time),
87
+ created_before: T.nilable(Time),
72
88
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
73
89
  first: T.nilable(Integer),
74
90
  last: T.nilable(Integer),
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # The direction of the sort.
27
35
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
28
36
  attr_accessor :direction
@@ -56,6 +64,8 @@ module WhopSDK
56
64
  company_id: String,
57
65
  after: T.nilable(String),
58
66
  before: T.nilable(String),
67
+ created_after: T.nilable(Time),
68
+ created_before: T.nilable(Time),
59
69
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
60
70
  first: T.nilable(Integer),
61
71
  last: T.nilable(Integer),
@@ -73,6 +83,10 @@ module WhopSDK
73
83
  after: nil,
74
84
  # Returns the elements in the list that come before the specified cursor.
75
85
  before: nil,
86
+ # The minimum creation date to filter by
87
+ created_after: nil,
88
+ # The maximum creation date to filter by
89
+ created_before: nil,
76
90
  # The direction of the sort.
77
91
  direction: nil,
78
92
  # Returns the first _n_ elements from the list.
@@ -97,6 +111,8 @@ module WhopSDK
97
111
  company_id: String,
98
112
  after: T.nilable(String),
99
113
  before: T.nilable(String),
114
+ created_after: T.nilable(Time),
115
+ created_before: T.nilable(Time),
100
116
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
101
117
  first: T.nilable(Integer),
102
118
  last: T.nilable(Integer),
@@ -27,6 +27,14 @@ module WhopSDK
27
27
  sig { returns(T.nilable(String)) }
28
28
  attr_accessor :before
29
29
 
30
+ # The minimum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_after
33
+
34
+ # The maximum creation date to filter by
35
+ sig { returns(T.nilable(Time)) }
36
+ attr_accessor :created_before
37
+
30
38
  # Returns the first _n_ elements from the list.
31
39
  sig { returns(T.nilable(Integer)) }
32
40
  attr_accessor :first
@@ -45,6 +53,8 @@ module WhopSDK
45
53
  after: T.nilable(String),
46
54
  app_id: T.nilable(String),
47
55
  before: T.nilable(String),
56
+ created_after: T.nilable(Time),
57
+ created_before: T.nilable(Time),
48
58
  first: T.nilable(Integer),
49
59
  last: T.nilable(Integer),
50
60
  product_id: T.nilable(String),
@@ -60,6 +70,10 @@ module WhopSDK
60
70
  app_id: nil,
61
71
  # Returns the elements in the list that come before the specified cursor.
62
72
  before: nil,
73
+ # The minimum creation date to filter by
74
+ created_after: nil,
75
+ # The maximum creation date to filter by
76
+ created_before: nil,
63
77
  # Returns the first _n_ elements from the list.
64
78
  first: nil,
65
79
  # Returns the last _n_ elements from the list.
@@ -77,6 +91,8 @@ module WhopSDK
77
91
  after: T.nilable(String),
78
92
  app_id: T.nilable(String),
79
93
  before: T.nilable(String),
94
+ created_after: T.nilable(Time),
95
+ created_before: T.nilable(Time),
80
96
  first: T.nilable(Integer),
81
97
  last: T.nilable(Integer),
82
98
  product_id: T.nilable(String),
@@ -27,6 +27,14 @@ module WhopSDK
27
27
  sig { returns(T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol])) }
28
28
  attr_accessor :collection_methods
29
29
 
30
+ # The minimum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_after
33
+
34
+ # The maximum creation date to filter by
35
+ sig { returns(T.nilable(Time)) }
36
+ attr_accessor :created_before
37
+
30
38
  # The direction of the sort.
31
39
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
32
40
  attr_accessor :direction
@@ -58,6 +66,8 @@ module WhopSDK
58
66
  before: T.nilable(String),
59
67
  collection_methods:
60
68
  T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
69
+ created_after: T.nilable(Time),
70
+ created_before: T.nilable(Time),
61
71
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
62
72
  first: T.nilable(Integer),
63
73
  last: T.nilable(Integer),
@@ -76,6 +86,10 @@ module WhopSDK
76
86
  before: nil,
77
87
  # Filter invoices by their collection method
78
88
  collection_methods: nil,
89
+ # The minimum creation date to filter by
90
+ created_after: nil,
91
+ # The maximum creation date to filter by
92
+ created_before: nil,
79
93
  # The direction of the sort.
80
94
  direction: nil,
81
95
  # Returns the first _n_ elements from the list.
@@ -100,6 +114,8 @@ module WhopSDK
100
114
  before: T.nilable(String),
101
115
  collection_methods:
102
116
  T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
117
+ created_after: T.nilable(Time),
118
+ created_before: T.nilable(Time),
103
119
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
104
120
  first: T.nilable(Integer),
105
121
  last: T.nilable(Integer),
@@ -106,6 +106,7 @@ module WhopSDK
106
106
  PLATFORM_BALANCE =
107
107
  T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
108
108
  APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
109
+ VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
109
110
  UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
110
111
 
111
112
  sig do
@@ -37,7 +37,7 @@ module WhopSDK
37
37
  sig { returns(T.nilable(String)) }
38
38
  attr_accessor :description
39
39
 
40
- # The interval at which the plan charges (expiration plans).
40
+ # The interval at which the plan expires and revokes access (expiration plans).
41
41
  sig { returns(T.nilable(Integer)) }
42
42
  attr_accessor :expiration_days
43
43
 
@@ -105,16 +105,6 @@ module WhopSDK
105
105
  sig { returns(T.nilable(Integer)) }
106
106
  attr_accessor :stock
107
107
 
108
- # The price to display with a strikethrough for the initial price. Provided as a
109
- # number in dollars. Eg: 19.99 for $19.99
110
- sig { returns(T.nilable(Float)) }
111
- attr_accessor :strike_through_initial_price
112
-
113
- # The price to display with a strikethrough for the renewal price. Provided as a
114
- # number in dollars. Eg: 19.99 for $19.99
115
- sig { returns(T.nilable(Float)) }
116
- attr_accessor :strike_through_renewal_price
117
-
118
108
  # The title of the plan. This will be visible on the product page to customers.
119
109
  sig { returns(T.nilable(String)) }
120
110
  attr_accessor :title
@@ -159,8 +149,6 @@ module WhopSDK
159
149
  release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
160
150
  renewal_price: T.nilable(Float),
161
151
  stock: T.nilable(Integer),
162
- strike_through_initial_price: T.nilable(Float),
163
- strike_through_renewal_price: T.nilable(Float),
164
152
  title: T.nilable(String),
165
153
  trial_period_days: T.nilable(Integer),
166
154
  unlimited_stock: T.nilable(T::Boolean),
@@ -181,7 +169,7 @@ module WhopSDK
181
169
  custom_fields: nil,
182
170
  # The description of the plan.
183
171
  description: nil,
184
- # The interval at which the plan charges (expiration plans).
172
+ # The interval at which the plan expires and revokes access (expiration plans).
185
173
  expiration_days: nil,
186
174
  # An image for the plan. This will be visible on the product page to customers.
187
175
  image: nil,
@@ -206,12 +194,6 @@ module WhopSDK
206
194
  renewal_price: nil,
207
195
  # The number of units available for purchase.
208
196
  stock: nil,
209
- # The price to display with a strikethrough for the initial price. Provided as a
210
- # number in dollars. Eg: 19.99 for $19.99
211
- strike_through_initial_price: nil,
212
- # The price to display with a strikethrough for the renewal price. Provided as a
213
- # number in dollars. Eg: 19.99 for $19.99
214
- strike_through_renewal_price: nil,
215
197
  # The title of the plan. This will be visible on the product page to customers.
216
198
  title: nil,
217
199
  # The number of free trial days added before a renewal plan.
@@ -251,8 +233,6 @@ module WhopSDK
251
233
  release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
252
234
  renewal_price: T.nilable(Float),
253
235
  stock: T.nilable(Integer),
254
- strike_through_initial_price: T.nilable(Float),
255
- strike_through_renewal_price: T.nilable(Float),
256
236
  title: T.nilable(String),
257
237
  trial_period_days: T.nilable(Integer),
258
238
  unlimited_stock: T.nilable(T::Boolean),
@@ -23,6 +23,14 @@ module WhopSDK
23
23
  sig { returns(T.nilable(String)) }
24
24
  attr_accessor :before
25
25
 
26
+ # The minimum creation date to filter by
27
+ sig { returns(T.nilable(Time)) }
28
+ attr_accessor :created_after
29
+
30
+ # The maximum creation date to filter by
31
+ sig { returns(T.nilable(Time)) }
32
+ attr_accessor :created_before
33
+
26
34
  # The direction of the sort.
27
35
  sig { returns(T.nilable(WhopSDK::Direction::OrSymbol)) }
28
36
  attr_accessor :direction
@@ -60,6 +68,8 @@ module WhopSDK
60
68
  company_id: String,
61
69
  after: T.nilable(String),
62
70
  before: T.nilable(String),
71
+ created_after: T.nilable(Time),
72
+ created_before: T.nilable(Time),
63
73
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
64
74
  first: T.nilable(Integer),
65
75
  last: T.nilable(Integer),
@@ -80,6 +90,10 @@ module WhopSDK
80
90
  after: nil,
81
91
  # Returns the elements in the list that come before the specified cursor.
82
92
  before: nil,
93
+ # The minimum creation date to filter by
94
+ created_after: nil,
95
+ # The maximum creation date to filter by
96
+ created_before: nil,
83
97
  # The direction of the sort.
84
98
  direction: nil,
85
99
  # Returns the first _n_ elements from the list.
@@ -106,6 +120,8 @@ module WhopSDK
106
120
  company_id: String,
107
121
  after: T.nilable(String),
108
122
  before: T.nilable(String),
123
+ created_after: T.nilable(Time),
124
+ created_before: T.nilable(Time),
109
125
  direction: T.nilable(WhopSDK::Direction::OrSymbol),
110
126
  first: T.nilable(Integer),
111
127
  last: T.nilable(Integer),