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
@@ -7,12 +7,6 @@ module WhopSDK
7
7
  extend WhopSDK::Internal::Type::RequestParameters::Converter
8
8
  include WhopSDK::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute banner_image
11
- # A banner image for the product in png, jpeg format
12
- #
13
- # @return [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil]
14
- optional :banner_image, union: -> { WhopSDK::ProductUpdateParams::BannerImage }, nil?: true
15
-
16
10
  # @!attribute business_type
17
11
  # The different business types a company can be.
18
12
  #
@@ -123,12 +117,10 @@ module WhopSDK
123
117
  # @return [Symbol, WhopSDK::Models::Visibility, nil]
124
118
  optional :visibility, enum: -> { WhopSDK::Visibility }, nil?: true
125
119
 
126
- # @!method initialize(banner_image: nil, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
120
+ # @!method initialize(business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
127
121
  # Some parameter documentations has been truncated, see
128
122
  # {WhopSDK::Models::ProductUpdateParams} for more details.
129
123
  #
130
- # @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil] A banner image for the product in png, jpeg format
131
- #
132
124
  # @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
133
125
  #
134
126
  # @param collect_shipping_address [Boolean, nil] Whether or not to collect shipping information at checkout from the customer.
@@ -168,58 +160,6 @@ module WhopSDK
168
160
  #
169
161
  # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}]
170
162
 
171
- # A banner image for the product in png, jpeg format
172
- module BannerImage
173
- extend WhopSDK::Internal::Type::Union
174
-
175
- # Input for an attachment
176
- variant -> { WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID }
177
-
178
- # Input for an attachment
179
- variant -> { WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID }
180
-
181
- class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
182
- # @!attribute direct_upload_id
183
- # This ID should be used the first time you upload an attachment. It is the ID of
184
- # the direct upload that was created when uploading the file to S3 via the
185
- # mediaDirectUpload mutation.
186
- #
187
- # @return [String]
188
- required :direct_upload_id, String
189
-
190
- # @!method initialize(direct_upload_id:)
191
- # Some parameter documentations has been truncated, see
192
- # {WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID}
193
- # for more details.
194
- #
195
- # Input for an attachment
196
- #
197
- # @param direct_upload_id [String] This ID should be used the first time you upload an attachment. It is the ID of
198
- end
199
-
200
- class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
201
- # @!attribute id
202
- # The ID of an existing attachment object. Use this when updating a resource and
203
- # keeping a subset of the attachments. Don't use this unless you know what you're
204
- # doing.
205
- #
206
- # @return [String]
207
- required :id, String
208
-
209
- # @!method initialize(id:)
210
- # Some parameter documentations has been truncated, see
211
- # {WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID} for
212
- # more details.
213
- #
214
- # Input for an attachment
215
- #
216
- # @param id [String] The ID of an existing attachment object. Use this when updating a resource and k
217
- end
218
-
219
- # @!method self.variants
220
- # @return [Array(WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID)]
221
- end
222
-
223
163
  class StorePageConfig < WhopSDK::Internal::Type::BaseModel
224
164
  # @!attribute custom_cta
225
165
  # Custom call-to-action text for the product's store page.
@@ -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
  #
@@ -55,13 +67,17 @@ module WhopSDK
55
67
  # @return [Symbol, WhopSDK::Models::PromoCodeStatus, nil]
56
68
  optional :status, enum: -> { WhopSDK::PromoCodeStatus }, nil?: true
57
69
 
58
- # @!method initialize(company_id:, after: nil, before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
70
+ # @!method initialize(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
59
71
  # @param company_id [String] The ID of the company to list promo codes for
60
72
  #
61
73
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
62
74
  #
63
75
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
64
76
  #
77
+ # @param created_after [Time, nil] The minimum creation date to filter by
78
+ #
79
+ # @param created_before [Time, nil] The maximum creation date to filter by
80
+ #
65
81
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
66
82
  #
67
83
  # @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
  #
@@ -43,13 +55,17 @@ module WhopSDK
43
55
  # @return [Integer, nil]
44
56
  optional :last, Integer, nil?: true
45
57
 
46
- # @!method initialize(payment_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
58
+ # @!method initialize(payment_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
47
59
  # @param payment_id [String] The ID of the payment to list refunds 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 first
29
41
  # Returns the first _n_ elements from the list.
30
42
  #
@@ -49,13 +61,17 @@ module WhopSDK
49
61
  # @return [Integer, nil]
50
62
  optional :min_stars, Integer, nil?: true
51
63
 
52
- # @!method initialize(product_id:, after: nil, before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
64
+ # @!method initialize(product_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
53
65
  # @param product_id [String] The ID of the product
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.
@@ -19,6 +19,18 @@ module WhopSDK
19
19
  # @return [String, nil]
20
20
  optional :before, String, nil?: true
21
21
 
22
+ # @!attribute created_after
23
+ # The minimum creation date to filter by
24
+ #
25
+ # @return [Time, nil]
26
+ optional :created_after, Time, nil?: true
27
+
28
+ # @!attribute created_before
29
+ # The maximum creation date to filter by
30
+ #
31
+ # @return [Time, nil]
32
+ optional :created_before, Time, nil?: true
33
+
22
34
  # @!attribute destination_id
23
35
  # Filter transfers to only those that were sent to this destination account.
24
36
  # (user_xxx, biz_xxx, ldgr_xxx)
@@ -57,7 +69,7 @@ module WhopSDK
57
69
  # @return [String, nil]
58
70
  optional :origin_id, String, nil?: true
59
71
 
60
- # @!method initialize(after: nil, before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
72
+ # @!method initialize(after: nil, before: nil, created_after: nil, created_before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
61
73
  # Some parameter documentations has been truncated, see
62
74
  # {WhopSDK::Models::TransferListParams} for more details.
63
75
  #
@@ -65,6 +77,10 @@ module WhopSDK
65
77
  #
66
78
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
67
79
  #
80
+ # @param created_after [Time, nil] The minimum creation date to filter by
81
+ #
82
+ # @param created_before [Time, nil] The maximum creation date to filter by
83
+ #
68
84
  # @param destination_id [String, nil] Filter transfers to only those that were sent to this destination account. (user
69
85
  #
70
86
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
@@ -45,6 +45,8 @@ module WhopSDK
45
45
 
46
46
  AccessTokenCreateParams = WhopSDK::Models::AccessTokenCreateParams
47
47
 
48
+ AccountLinkCreateParams = WhopSDK::Models::AccountLinkCreateParams
49
+
48
50
  App = WhopSDK::Models::App
49
51
 
50
52
  AppBuild = WhopSDK::Models::AppBuild
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ module WhopSDK
4
+ module Resources
5
+ class AccountLinks
6
+ # Some parameter documentations has been truncated, see
7
+ # {WhopSDK::Models::AccountLinkCreateParams} for more details.
8
+ #
9
+ # Generates a url that a user can be directed to in order to access their
10
+ # sub-merchant account. For example, they can visit the hosted payouts portal or
11
+ # the hosted KYC onboarding flow.
12
+ #
13
+ # @overload create(company_id:, refresh_url:, return_url:, use_case:, request_options: {})
14
+ #
15
+ # @param company_id [String] The ID of the Company to generate the url for. The company must be a sub-merchan
16
+ #
17
+ # @param refresh_url [String] The URL to redirect to if the session expires and needs to be re-authenticated d
18
+ #
19
+ # @param return_url [String] The URL to redirect to when the customer wants to return to your site.
20
+ #
21
+ # @param use_case [Symbol, WhopSDK::Models::AccountLinkCreateParams::UseCase] The use case for which the link will be used.
22
+ #
23
+ # @param request_options [WhopSDK::RequestOptions, Hash{Symbol=>Object}, nil]
24
+ #
25
+ # @return [WhopSDK::Models::AccountLinkCreateResponse]
26
+ #
27
+ # @see WhopSDK::Models::AccountLinkCreateParams
28
+ def create(params)
29
+ parsed, options = WhopSDK::AccountLinkCreateParams.dump_request(params)
30
+ @client.request(
31
+ method: :post,
32
+ path: "account_links",
33
+ body: parsed,
34
+ model: WhopSDK::Models::AccountLinkCreateResponse,
35
+ options: options
36
+ )
37
+ end
38
+
39
+ # @api private
40
+ #
41
+ # @param client [WhopSDK::Client]
42
+ def initialize(client:)
43
+ @client = client
44
+ end
45
+ end
46
+ end
47
+ end
@@ -70,7 +70,7 @@ module WhopSDK
70
70
  #
71
71
  # - `developer:manage_builds`
72
72
  #
73
- # @overload list(app_id:, after: nil, before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
73
+ # @overload list(app_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, platform: nil, status: nil, request_options: {})
74
74
  #
75
75
  # @param app_id [String] The ID of the app to filter app builds by
76
76
  #
@@ -78,6 +78,10 @@ module WhopSDK
78
78
  #
79
79
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
80
80
  #
81
+ # @param created_after [Time, nil] The minimum creation date to filter by
82
+ #
83
+ # @param created_before [Time, nil] The maximum creation date to filter by
84
+ #
81
85
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
82
86
  #
83
87
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -35,7 +35,7 @@ module WhopSDK
35
35
  # - `company:authorized_user:read`
36
36
  # - `member:email:read`
37
37
  #
38
- # @overload list(company_id:, after: nil, before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
38
+ # @overload list(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, role: nil, user_id: nil, request_options: {})
39
39
  #
40
40
  # @param company_id [String] The ID of the company to list authorized users for
41
41
  #
@@ -43,6 +43,10 @@ module WhopSDK
43
43
  #
44
44
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
45
45
  #
46
+ # @param created_after [Time, nil] The minimum creation date to filter by
47
+ #
48
+ # @param created_before [Time, nil] The maximum creation date to filter by
49
+ #
46
50
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
47
51
  #
48
52
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -80,7 +80,7 @@ module WhopSDK
80
80
  #
81
81
  # - `checkout_configuration:basic:read`
82
82
  #
83
- # @overload list(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
83
+ # @overload list(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, plan_id: nil, request_options: {})
84
84
  #
85
85
  # @param company_id [String] The ID of the company to list checkout configurations for
86
86
  #
@@ -88,6 +88,10 @@ module WhopSDK
88
88
  #
89
89
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
90
90
  #
91
+ # @param created_after [Time, nil] The minimum creation date to filter by
92
+ #
93
+ # @param created_before [Time, nil] The maximum creation date to filter by
94
+ #
91
95
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
92
96
  #
93
97
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -66,7 +66,7 @@ module WhopSDK
66
66
  #
67
67
  # - `company:basic:read`
68
68
  #
69
- # @overload list(parent_company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
69
+ # @overload list(parent_company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
70
70
  #
71
71
  # @param parent_company_id [String] The ID of the parent company to list sub companies for
72
72
  #
@@ -74,6 +74,10 @@ module WhopSDK
74
74
  #
75
75
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
76
76
  #
77
+ # @param created_after [Time, nil] The minimum creation date to filter by
78
+ #
79
+ # @param created_before [Time, nil] The maximum creation date to filter by
80
+ #
77
81
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
78
82
  #
79
83
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -44,7 +44,7 @@ module WhopSDK
44
44
  # - `company:basic:read`
45
45
  # - `payment:basic:read`
46
46
  #
47
- # @overload list(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
47
+ # @overload list(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
48
48
  #
49
49
  # @param company_id [String] The ID of the company to list disputes for
50
50
  #
@@ -52,6 +52,10 @@ module WhopSDK
52
52
  #
53
53
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
54
54
  #
55
+ # @param created_after [Time, nil] The minimum creation date to filter by
56
+ #
57
+ # @param created_before [Time, nil] The maximum creation date to filter by
58
+ #
55
59
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
56
60
  #
57
61
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -35,7 +35,7 @@ module WhopSDK
35
35
  # - `plan:waitlist:read`
36
36
  # - `member:email:read`
37
37
  #
38
- # @overload list(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, plan_ids: nil, product_ids: nil, statuses: nil, request_options: {})
38
+ # @overload list(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: {})
39
39
  #
40
40
  # @param company_id [String] The ID of the company
41
41
  #
@@ -43,6 +43,10 @@ module WhopSDK
43
43
  #
44
44
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
45
45
  #
46
+ # @param created_after [Time, nil] The minimum creation date to filter by
47
+ #
48
+ # @param created_before [Time, nil] The maximum creation date to filter by
49
+ #
46
50
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
47
51
  #
48
52
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -93,7 +93,7 @@ module WhopSDK
93
93
  #
94
94
  # - `experience:hidden_experience:read`
95
95
  #
96
- # @overload list(company_id:, after: nil, app_id: nil, before: nil, first: nil, last: nil, product_id: nil, request_options: {})
96
+ # @overload list(company_id:, after: nil, app_id: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, product_id: nil, request_options: {})
97
97
  #
98
98
  # @param company_id [String] The ID of the company to filter experiences by
99
99
  #
@@ -103,6 +103,10 @@ module WhopSDK
103
103
  #
104
104
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
105
105
  #
106
+ # @param created_after [Time, nil] The minimum creation date to filter by
107
+ #
108
+ # @param created_before [Time, nil] The maximum creation date to filter by
109
+ #
106
110
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
107
111
  #
108
112
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -85,7 +85,7 @@ module WhopSDK
85
85
  # - `invoice:basic:read`
86
86
  # - `plan:basic:read`
87
87
  #
88
- # @overload list(company_id:, after: nil, before: nil, collection_methods: nil, direction: nil, first: nil, last: nil, order: nil, product_ids: nil, statuses: nil, request_options: {})
88
+ # @overload list(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: {})
89
89
  #
90
90
  # @param company_id [String] The ID of the company to list invoices for
91
91
  #
@@ -95,6 +95,10 @@ module WhopSDK
95
95
  #
96
96
  # @param collection_methods [Array<Symbol, WhopSDK::Models::CollectionMethod>, nil] Filter invoices by their collection method
97
97
  #
98
+ # @param created_after [Time, nil] The minimum creation date to filter by
99
+ #
100
+ # @param created_before [Time, nil] The maximum creation date to filter by
101
+ #
98
102
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
99
103
  #
100
104
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -14,7 +14,7 @@ module WhopSDK
14
14
  # - `access_pass:basic:read`
15
15
  # - `plan:basic:read`
16
16
  #
17
- # @overload create(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: {})
17
+ # @overload create(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: {})
18
18
  #
19
19
  # @param company_id [String] The company the plan should be created for.
20
20
  #
@@ -28,7 +28,7 @@ module WhopSDK
28
28
  #
29
29
  # @param description [String, nil] The description of the plan.
30
30
  #
31
- # @param expiration_days [Integer, nil] The interval at which the plan charges (expiration plans).
31
+ # @param expiration_days [Integer, nil] The interval at which the plan expires and revokes access (expiration plans).
32
32
  #
33
33
  # @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.
34
34
  #
@@ -48,10 +48,6 @@ module WhopSDK
48
48
  #
49
49
  # @param stock [Integer, nil] The number of units available for purchase.
50
50
  #
51
- # @param strike_through_initial_price [Float, nil] The price to display with a strikethrough for the initial price. Provided as a n
52
- #
53
- # @param strike_through_renewal_price [Float, nil] The price to display with a strikethrough for the renewal price. Provided as a n
54
- #
55
51
  # @param title [String, nil] The title of the plan. This will be visible on the product page to customers.
56
52
  #
57
53
  # @param trial_period_days [Integer, nil] The number of free trial days added before a renewal plan.
@@ -169,7 +165,7 @@ module WhopSDK
169
165
  #
170
166
  # - `plan:basic:read`
171
167
  #
172
- # @overload list(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: {})
168
+ # @overload list(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: {})
173
169
  #
174
170
  # @param company_id [String] The ID of the company
175
171
  #
@@ -177,6 +173,10 @@ module WhopSDK
177
173
  #
178
174
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
179
175
  #
176
+ # @param created_after [Time, nil] The minimum creation date to filter by
177
+ #
178
+ # @param created_before [Time, nil] The maximum creation date to filter by
179
+ #
180
180
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
181
181
  #
182
182
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -108,12 +108,10 @@ module WhopSDK
108
108
  # - `access_pass:update`
109
109
  # - `access_pass:basic:read`
110
110
  #
111
- # @overload update(id, banner_image: nil, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
111
+ # @overload update(id, business_type: nil, collect_shipping_address: nil, custom_cta: nil, custom_cta_url: nil, custom_statement_descriptor: nil, description: nil, global_affiliate_percentage: nil, global_affiliate_status: nil, headline: nil, industry_type: nil, member_affiliate_percentage: nil, member_affiliate_status: nil, product_tax_code_id: nil, redirect_purchase_url: nil, route: nil, store_page_config: nil, title: nil, visibility: nil, request_options: {})
112
112
  #
113
113
  # @param id [String] The ID (tag) of the product
114
114
  #
115
- # @param banner_image [WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID, WhopSDK::Models::ProductUpdateParams::BannerImage::AttachmentInputWithID, nil] A banner image for the product in png, jpeg format
116
- #
117
115
  # @param business_type [Symbol, WhopSDK::Models::BusinessTypes, nil] The different business types a company can be.
118
116
  #
119
117
  # @param collect_shipping_address [Boolean, nil] Whether or not to collect shipping information at checkout from the customer.
@@ -173,7 +171,7 @@ module WhopSDK
173
171
  #
174
172
  # - `access_pass:basic:read`
175
173
  #
176
- # @overload list(company_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, order: nil, product_types: nil, visibilities: nil, request_options: {})
174
+ # @overload list(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: {})
177
175
  #
178
176
  # @param company_id [String] The ID of the company to filter products by
179
177
  #
@@ -181,6 +179,10 @@ module WhopSDK
181
179
  #
182
180
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
183
181
  #
182
+ # @param created_after [Time, nil] The minimum creation date to filter by
183
+ #
184
+ # @param created_before [Time, nil] The maximum creation date to filter by
185
+ #
184
186
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
185
187
  #
186
188
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -93,7 +93,7 @@ module WhopSDK
93
93
  # - `promo_code:basic:read`
94
94
  # - `access_pass:basic:read`
95
95
  #
96
- # @overload list(company_id:, after: nil, before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
96
+ # @overload list(company_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, plan_ids: nil, product_ids: nil, status: nil, request_options: {})
97
97
  #
98
98
  # @param company_id [String] The ID of the company to list promo codes for
99
99
  #
@@ -101,6 +101,10 @@ module WhopSDK
101
101
  #
102
102
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
103
103
  #
104
+ # @param created_after [Time, nil] The minimum creation date to filter by
105
+ #
106
+ # @param created_before [Time, nil] The maximum creation date to filter by
107
+ #
104
108
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
105
109
  #
106
110
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -36,7 +36,7 @@ module WhopSDK
36
36
  #
37
37
  # - `payment:basic:read`
38
38
  #
39
- # @overload list(payment_id:, after: nil, before: nil, direction: nil, first: nil, last: nil, request_options: {})
39
+ # @overload list(payment_id:, after: nil, before: nil, created_after: nil, created_before: nil, direction: nil, first: nil, last: nil, request_options: {})
40
40
  #
41
41
  # @param payment_id [String] The ID of the payment to list refunds for
42
42
  #
@@ -44,6 +44,10 @@ module WhopSDK
44
44
  #
45
45
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
46
46
  #
47
+ # @param created_after [Time, nil] The minimum creation date to filter by
48
+ #
49
+ # @param created_before [Time, nil] The maximum creation date to filter by
50
+ #
47
51
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
48
52
  #
49
53
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
@@ -25,7 +25,7 @@ module WhopSDK
25
25
 
26
26
  # List all reviews
27
27
  #
28
- # @overload list(product_id:, after: nil, before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
28
+ # @overload list(product_id:, after: nil, before: nil, created_after: nil, created_before: nil, first: nil, last: nil, max_stars: nil, min_stars: nil, request_options: {})
29
29
  #
30
30
  # @param product_id [String] The ID of the product
31
31
  #
@@ -33,6 +33,10 @@ module WhopSDK
33
33
  #
34
34
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
35
35
  #
36
+ # @param created_after [Time, nil] The minimum creation date to filter by
37
+ #
38
+ # @param created_before [Time, nil] The maximum creation date to filter by
39
+ #
36
40
  # @param first [Integer, nil] Returns the first _n_ elements from the list.
37
41
  #
38
42
  # @param last [Integer, nil] Returns the last _n_ elements from the list.
@@ -77,12 +77,16 @@ module WhopSDK
77
77
  #
78
78
  # - `payout:transfer:read`
79
79
  #
80
- # @overload list(after: nil, before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
80
+ # @overload list(after: nil, before: nil, created_after: nil, created_before: nil, destination_id: nil, direction: nil, first: nil, last: nil, order: nil, origin_id: nil, request_options: {})
81
81
  #
82
82
  # @param after [String, nil] Returns the elements in the list that come after the specified cursor.
83
83
  #
84
84
  # @param before [String, nil] Returns the elements in the list that come before the specified cursor.
85
85
  #
86
+ # @param created_after [Time, nil] The minimum creation date to filter by
87
+ #
88
+ # @param created_before [Time, nil] The maximum creation date to filter by
89
+ #
86
90
  # @param destination_id [String, nil] Filter transfers to only those that were sent to this destination account. (user
87
91
  #
88
92
  # @param direction [Symbol, WhopSDK::Models::Direction, nil] The direction of the sort.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WhopSDK
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end