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
|
@@ -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
|
|
@@ -52,6 +60,8 @@ module WhopSDK
|
|
|
52
60
|
company_id: String,
|
|
53
61
|
after: T.nilable(String),
|
|
54
62
|
before: T.nilable(String),
|
|
63
|
+
created_after: T.nilable(Time),
|
|
64
|
+
created_before: T.nilable(Time),
|
|
55
65
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
56
66
|
first: T.nilable(Integer),
|
|
57
67
|
last: T.nilable(Integer),
|
|
@@ -69,6 +79,10 @@ module WhopSDK
|
|
|
69
79
|
after: nil,
|
|
70
80
|
# Returns the elements in the list that come before the specified cursor.
|
|
71
81
|
before: nil,
|
|
82
|
+
# The minimum creation date to filter by
|
|
83
|
+
created_after: nil,
|
|
84
|
+
# The maximum creation date to filter by
|
|
85
|
+
created_before: nil,
|
|
72
86
|
# The direction of the sort.
|
|
73
87
|
direction: nil,
|
|
74
88
|
# Returns the first _n_ elements from the list.
|
|
@@ -91,6 +105,8 @@ module WhopSDK
|
|
|
91
105
|
company_id: String,
|
|
92
106
|
after: T.nilable(String),
|
|
93
107
|
before: T.nilable(String),
|
|
108
|
+
created_after: T.nilable(Time),
|
|
109
|
+
created_before: T.nilable(Time),
|
|
94
110
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
95
111
|
first: T.nilable(Integer),
|
|
96
112
|
last: T.nilable(Integer),
|
|
@@ -11,19 +11,6 @@ module WhopSDK
|
|
|
11
11
|
T.any(WhopSDK::ProductUpdateParams, WhopSDK::Internal::AnyHash)
|
|
12
12
|
end
|
|
13
13
|
|
|
14
|
-
# A banner image for the product in png, jpeg format
|
|
15
|
-
sig do
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
T.any(
|
|
19
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
20
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
21
|
-
)
|
|
22
|
-
)
|
|
23
|
-
)
|
|
24
|
-
end
|
|
25
|
-
attr_accessor :banner_image
|
|
26
|
-
|
|
27
14
|
# The different business types a company can be.
|
|
28
15
|
sig { returns(T.nilable(WhopSDK::BusinessTypes::OrSymbol)) }
|
|
29
16
|
attr_accessor :business_type
|
|
@@ -108,13 +95,6 @@ module WhopSDK
|
|
|
108
95
|
|
|
109
96
|
sig do
|
|
110
97
|
params(
|
|
111
|
-
banner_image:
|
|
112
|
-
T.nilable(
|
|
113
|
-
T.any(
|
|
114
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
|
|
115
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
116
|
-
)
|
|
117
|
-
),
|
|
118
98
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
119
99
|
collect_shipping_address: T.nilable(T::Boolean),
|
|
120
100
|
custom_cta: T.nilable(WhopSDK::CustomCta::OrSymbol),
|
|
@@ -140,8 +120,6 @@ module WhopSDK
|
|
|
140
120
|
).returns(T.attached_class)
|
|
141
121
|
end
|
|
142
122
|
def self.new(
|
|
143
|
-
# A banner image for the product in png, jpeg format
|
|
144
|
-
banner_image: nil,
|
|
145
123
|
# The different business types a company can be.
|
|
146
124
|
business_type: nil,
|
|
147
125
|
# Whether or not to collect shipping information at checkout from the customer.
|
|
@@ -187,13 +165,6 @@ module WhopSDK
|
|
|
187
165
|
sig do
|
|
188
166
|
override.returns(
|
|
189
167
|
{
|
|
190
|
-
banner_image:
|
|
191
|
-
T.nilable(
|
|
192
|
-
T.any(
|
|
193
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
194
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
195
|
-
)
|
|
196
|
-
),
|
|
197
168
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
198
169
|
collect_shipping_address: T.nilable(T::Boolean),
|
|
199
170
|
custom_cta: T.nilable(WhopSDK::CustomCta::OrSymbol),
|
|
@@ -222,87 +193,6 @@ module WhopSDK
|
|
|
222
193
|
def to_hash
|
|
223
194
|
end
|
|
224
195
|
|
|
225
|
-
# A banner image for the product in png, jpeg format
|
|
226
|
-
module BannerImage
|
|
227
|
-
extend WhopSDK::Internal::Type::Union
|
|
228
|
-
|
|
229
|
-
Variants =
|
|
230
|
-
T.type_alias do
|
|
231
|
-
T.any(
|
|
232
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
233
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
234
|
-
)
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
238
|
-
OrHash =
|
|
239
|
-
T.type_alias do
|
|
240
|
-
T.any(
|
|
241
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID,
|
|
242
|
-
WhopSDK::Internal::AnyHash
|
|
243
|
-
)
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
247
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
248
|
-
# mediaDirectUpload mutation.
|
|
249
|
-
sig { returns(String) }
|
|
250
|
-
attr_accessor :direct_upload_id
|
|
251
|
-
|
|
252
|
-
# Input for an attachment
|
|
253
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
254
|
-
def self.new(
|
|
255
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
256
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
257
|
-
# mediaDirectUpload mutation.
|
|
258
|
-
direct_upload_id:
|
|
259
|
-
)
|
|
260
|
-
end
|
|
261
|
-
|
|
262
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
263
|
-
def to_hash
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
268
|
-
OrHash =
|
|
269
|
-
T.type_alias do
|
|
270
|
-
T.any(
|
|
271
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID,
|
|
272
|
-
WhopSDK::Internal::AnyHash
|
|
273
|
-
)
|
|
274
|
-
end
|
|
275
|
-
|
|
276
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
277
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
278
|
-
# doing.
|
|
279
|
-
sig { returns(String) }
|
|
280
|
-
attr_accessor :id
|
|
281
|
-
|
|
282
|
-
# Input for an attachment
|
|
283
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
284
|
-
def self.new(
|
|
285
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
286
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
287
|
-
# doing.
|
|
288
|
-
id:
|
|
289
|
-
)
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
sig { override.returns({ id: String }) }
|
|
293
|
-
def to_hash
|
|
294
|
-
end
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
sig do
|
|
298
|
-
override.returns(
|
|
299
|
-
T::Array[WhopSDK::ProductUpdateParams::BannerImage::Variants]
|
|
300
|
-
)
|
|
301
|
-
end
|
|
302
|
-
def self.variants
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
|
|
306
196
|
class StorePageConfig < WhopSDK::Internal::Type::BaseModel
|
|
307
197
|
OrHash =
|
|
308
198
|
T.type_alias do
|
|
@@ -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
|
|
@@ -48,6 +56,8 @@ module WhopSDK
|
|
|
48
56
|
company_id: String,
|
|
49
57
|
after: T.nilable(String),
|
|
50
58
|
before: T.nilable(String),
|
|
59
|
+
created_after: T.nilable(Time),
|
|
60
|
+
created_before: T.nilable(Time),
|
|
51
61
|
first: T.nilable(Integer),
|
|
52
62
|
last: T.nilable(Integer),
|
|
53
63
|
plan_ids: T.nilable(T::Array[String]),
|
|
@@ -63,6 +73,10 @@ module WhopSDK
|
|
|
63
73
|
after: nil,
|
|
64
74
|
# Returns the elements in the list that come before the specified cursor.
|
|
65
75
|
before: nil,
|
|
76
|
+
# The minimum creation date to filter by
|
|
77
|
+
created_after: nil,
|
|
78
|
+
# The maximum creation date to filter by
|
|
79
|
+
created_before: nil,
|
|
66
80
|
# Returns the first _n_ elements from the list.
|
|
67
81
|
first: nil,
|
|
68
82
|
# Returns the last _n_ elements from the list.
|
|
@@ -83,6 +97,8 @@ module WhopSDK
|
|
|
83
97
|
company_id: String,
|
|
84
98
|
after: T.nilable(String),
|
|
85
99
|
before: T.nilable(String),
|
|
100
|
+
created_after: T.nilable(Time),
|
|
101
|
+
created_before: T.nilable(Time),
|
|
86
102
|
first: T.nilable(Integer),
|
|
87
103
|
last: T.nilable(Integer),
|
|
88
104
|
plan_ids: T.nilable(T::Array[String]),
|
|
@@ -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
|
payment_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
|
payment_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
|
# 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
|
product_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
|
max_stars: T.nilable(Integer),
|
|
@@ -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
|
product_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
|
max_stars: T.nilable(Integer),
|
|
@@ -19,6 +19,14 @@ module WhopSDK
|
|
|
19
19
|
sig { returns(T.nilable(String)) }
|
|
20
20
|
attr_accessor :before
|
|
21
21
|
|
|
22
|
+
# The minimum creation date to filter by
|
|
23
|
+
sig { returns(T.nilable(Time)) }
|
|
24
|
+
attr_accessor :created_after
|
|
25
|
+
|
|
26
|
+
# The maximum creation date to filter by
|
|
27
|
+
sig { returns(T.nilable(Time)) }
|
|
28
|
+
attr_accessor :created_before
|
|
29
|
+
|
|
22
30
|
# Filter transfers to only those that were sent to this destination account.
|
|
23
31
|
# (user_xxx, biz_xxx, ldgr_xxx)
|
|
24
32
|
sig { returns(T.nilable(String)) }
|
|
@@ -49,6 +57,8 @@ module WhopSDK
|
|
|
49
57
|
params(
|
|
50
58
|
after: T.nilable(String),
|
|
51
59
|
before: T.nilable(String),
|
|
60
|
+
created_after: T.nilable(Time),
|
|
61
|
+
created_before: T.nilable(Time),
|
|
52
62
|
destination_id: T.nilable(String),
|
|
53
63
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
54
64
|
first: T.nilable(Integer),
|
|
@@ -63,6 +73,10 @@ module WhopSDK
|
|
|
63
73
|
after: nil,
|
|
64
74
|
# Returns the elements in the list that come before the specified cursor.
|
|
65
75
|
before: nil,
|
|
76
|
+
# The minimum creation date to filter by
|
|
77
|
+
created_after: nil,
|
|
78
|
+
# The maximum creation date to filter by
|
|
79
|
+
created_before: nil,
|
|
66
80
|
# Filter transfers to only those that were sent to this destination account.
|
|
67
81
|
# (user_xxx, biz_xxx, ldgr_xxx)
|
|
68
82
|
destination_id: nil,
|
|
@@ -86,6 +100,8 @@ module WhopSDK
|
|
|
86
100
|
{
|
|
87
101
|
after: T.nilable(String),
|
|
88
102
|
before: T.nilable(String),
|
|
103
|
+
created_after: T.nilable(Time),
|
|
104
|
+
created_before: T.nilable(Time),
|
|
89
105
|
destination_id: T.nilable(String),
|
|
90
106
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
91
107
|
first: T.nilable(Integer),
|
data/rbi/whop_sdk/models.rbi
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module WhopSDK
|
|
4
|
+
module Resources
|
|
5
|
+
class AccountLinks
|
|
6
|
+
# Generates a url that a user can be directed to in order to access their
|
|
7
|
+
# sub-merchant account. For example, they can visit the hosted payouts portal or
|
|
8
|
+
# the hosted KYC onboarding flow.
|
|
9
|
+
sig do
|
|
10
|
+
params(
|
|
11
|
+
company_id: String,
|
|
12
|
+
refresh_url: String,
|
|
13
|
+
return_url: String,
|
|
14
|
+
use_case: WhopSDK::AccountLinkCreateParams::UseCase::OrSymbol,
|
|
15
|
+
request_options: WhopSDK::RequestOptions::OrHash
|
|
16
|
+
).returns(WhopSDK::Models::AccountLinkCreateResponse)
|
|
17
|
+
end
|
|
18
|
+
def create(
|
|
19
|
+
# The ID of the Company to generate the url for. The company must be a
|
|
20
|
+
# sub-merchant of the API key's company.
|
|
21
|
+
company_id:,
|
|
22
|
+
# The URL to redirect to if the session expires and needs to be re-authenticated
|
|
23
|
+
# due to the token expiring.
|
|
24
|
+
refresh_url:,
|
|
25
|
+
# The URL to redirect to when the customer wants to return to your site.
|
|
26
|
+
return_url:,
|
|
27
|
+
# The use case for which the link will be used.
|
|
28
|
+
use_case:,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# @api private
|
|
34
|
+
sig { params(client: WhopSDK::Client).returns(T.attached_class) }
|
|
35
|
+
def self.new(client:)
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -72,6 +72,8 @@ module WhopSDK
|
|
|
72
72
|
app_id: String,
|
|
73
73
|
after: T.nilable(String),
|
|
74
74
|
before: T.nilable(String),
|
|
75
|
+
created_after: T.nilable(Time),
|
|
76
|
+
created_before: T.nilable(Time),
|
|
75
77
|
first: T.nilable(Integer),
|
|
76
78
|
last: T.nilable(Integer),
|
|
77
79
|
platform: T.nilable(WhopSDK::AppBuildPlatforms::OrSymbol),
|
|
@@ -88,6 +90,10 @@ module WhopSDK
|
|
|
88
90
|
after: nil,
|
|
89
91
|
# Returns the elements in the list that come before the specified cursor.
|
|
90
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,
|
|
91
97
|
# Returns the first _n_ elements from the list.
|
|
92
98
|
first: nil,
|
|
93
99
|
# Returns the last _n_ elements from the list.
|
|
@@ -33,6 +33,8 @@ module WhopSDK
|
|
|
33
33
|
company_id: String,
|
|
34
34
|
after: T.nilable(String),
|
|
35
35
|
before: T.nilable(String),
|
|
36
|
+
created_after: T.nilable(Time),
|
|
37
|
+
created_before: T.nilable(Time),
|
|
36
38
|
first: T.nilable(Integer),
|
|
37
39
|
last: T.nilable(Integer),
|
|
38
40
|
role: T.nilable(WhopSDK::AuthorizedUserRoles::OrSymbol),
|
|
@@ -51,6 +53,10 @@ module WhopSDK
|
|
|
51
53
|
after: nil,
|
|
52
54
|
# Returns the elements in the list that come before the specified cursor.
|
|
53
55
|
before: nil,
|
|
56
|
+
# The minimum creation date to filter by
|
|
57
|
+
created_after: nil,
|
|
58
|
+
# The maximum creation date to filter by
|
|
59
|
+
created_before: nil,
|
|
54
60
|
# Returns the first _n_ elements from the list.
|
|
55
61
|
first: nil,
|
|
56
62
|
# Returns the last _n_ elements from the list.
|
|
@@ -79,6 +79,8 @@ module WhopSDK
|
|
|
79
79
|
company_id: String,
|
|
80
80
|
after: T.nilable(String),
|
|
81
81
|
before: T.nilable(String),
|
|
82
|
+
created_after: T.nilable(Time),
|
|
83
|
+
created_before: T.nilable(Time),
|
|
82
84
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
83
85
|
first: T.nilable(Integer),
|
|
84
86
|
last: T.nilable(Integer),
|
|
@@ -97,6 +99,10 @@ module WhopSDK
|
|
|
97
99
|
after: nil,
|
|
98
100
|
# Returns the elements in the list that come before the specified cursor.
|
|
99
101
|
before: nil,
|
|
102
|
+
# The minimum creation date to filter by
|
|
103
|
+
created_after: nil,
|
|
104
|
+
# The maximum creation date to filter by
|
|
105
|
+
created_before: nil,
|
|
100
106
|
# The direction of the sort.
|
|
101
107
|
direction: nil,
|
|
102
108
|
# Returns the first _n_ elements from the list.
|
|
@@ -59,6 +59,8 @@ module WhopSDK
|
|
|
59
59
|
parent_company_id: String,
|
|
60
60
|
after: T.nilable(String),
|
|
61
61
|
before: T.nilable(String),
|
|
62
|
+
created_after: T.nilable(Time),
|
|
63
|
+
created_before: T.nilable(Time),
|
|
62
64
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
63
65
|
first: T.nilable(Integer),
|
|
64
66
|
last: T.nilable(Integer),
|
|
@@ -74,6 +76,10 @@ module WhopSDK
|
|
|
74
76
|
after: nil,
|
|
75
77
|
# Returns the elements in the list that come before the specified cursor.
|
|
76
78
|
before: nil,
|
|
79
|
+
# The minimum creation date to filter by
|
|
80
|
+
created_after: nil,
|
|
81
|
+
# The maximum creation date to filter by
|
|
82
|
+
created_before: nil,
|
|
77
83
|
# The direction of the sort.
|
|
78
84
|
direction: nil,
|
|
79
85
|
# Returns the first _n_ elements from the list.
|
|
@@ -42,6 +42,8 @@ module WhopSDK
|
|
|
42
42
|
company_id: String,
|
|
43
43
|
after: T.nilable(String),
|
|
44
44
|
before: T.nilable(String),
|
|
45
|
+
created_after: T.nilable(Time),
|
|
46
|
+
created_before: T.nilable(Time),
|
|
45
47
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
46
48
|
first: T.nilable(Integer),
|
|
47
49
|
last: T.nilable(Integer),
|
|
@@ -57,6 +59,10 @@ module WhopSDK
|
|
|
57
59
|
after: nil,
|
|
58
60
|
# Returns the elements in the list that come before the specified cursor.
|
|
59
61
|
before: nil,
|
|
62
|
+
# The minimum creation date to filter by
|
|
63
|
+
created_after: nil,
|
|
64
|
+
# The maximum creation date to filter by
|
|
65
|
+
created_before: nil,
|
|
60
66
|
# The direction of the sort.
|
|
61
67
|
direction: nil,
|
|
62
68
|
# Returns the first _n_ elements from the list.
|
|
@@ -33,6 +33,8 @@ module WhopSDK
|
|
|
33
33
|
company_id: String,
|
|
34
34
|
after: T.nilable(String),
|
|
35
35
|
before: T.nilable(String),
|
|
36
|
+
created_after: T.nilable(Time),
|
|
37
|
+
created_before: T.nilable(Time),
|
|
36
38
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
37
39
|
first: T.nilable(Integer),
|
|
38
40
|
last: T.nilable(Integer),
|
|
@@ -52,6 +54,10 @@ module WhopSDK
|
|
|
52
54
|
after: nil,
|
|
53
55
|
# Returns the elements in the list that come before the specified cursor.
|
|
54
56
|
before: nil,
|
|
57
|
+
# The minimum creation date to filter by
|
|
58
|
+
created_after: nil,
|
|
59
|
+
# The maximum creation date to filter by
|
|
60
|
+
created_before: nil,
|
|
55
61
|
# The direction of the sort.
|
|
56
62
|
direction: nil,
|
|
57
63
|
# Returns the first _n_ elements from the list.
|
|
@@ -91,6 +91,8 @@ module WhopSDK
|
|
|
91
91
|
after: T.nilable(String),
|
|
92
92
|
app_id: T.nilable(String),
|
|
93
93
|
before: T.nilable(String),
|
|
94
|
+
created_after: T.nilable(Time),
|
|
95
|
+
created_before: T.nilable(Time),
|
|
94
96
|
first: T.nilable(Integer),
|
|
95
97
|
last: T.nilable(Integer),
|
|
96
98
|
product_id: T.nilable(String),
|
|
@@ -108,6 +110,10 @@ module WhopSDK
|
|
|
108
110
|
app_id: nil,
|
|
109
111
|
# Returns the elements in the list that come before the specified cursor.
|
|
110
112
|
before: nil,
|
|
113
|
+
# The minimum creation date to filter by
|
|
114
|
+
created_after: nil,
|
|
115
|
+
# The maximum creation date to filter by
|
|
116
|
+
created_before: nil,
|
|
111
117
|
# Returns the first _n_ elements from the list.
|
|
112
118
|
first: nil,
|
|
113
119
|
# Returns the last _n_ elements from the list.
|
|
@@ -93,6 +93,8 @@ module WhopSDK
|
|
|
93
93
|
before: T.nilable(String),
|
|
94
94
|
collection_methods:
|
|
95
95
|
T.nilable(T::Array[WhopSDK::CollectionMethod::OrSymbol]),
|
|
96
|
+
created_after: T.nilable(Time),
|
|
97
|
+
created_before: T.nilable(Time),
|
|
96
98
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
97
99
|
first: T.nilable(Integer),
|
|
98
100
|
last: T.nilable(Integer),
|
|
@@ -111,6 +113,10 @@ module WhopSDK
|
|
|
111
113
|
before: nil,
|
|
112
114
|
# Filter invoices by their collection method
|
|
113
115
|
collection_methods: nil,
|
|
116
|
+
# The minimum creation date to filter by
|
|
117
|
+
created_after: nil,
|
|
118
|
+
# The maximum creation date to filter by
|
|
119
|
+
created_before: nil,
|
|
114
120
|
# The direction of the sort.
|
|
115
121
|
direction: nil,
|
|
116
122
|
# Returns the first _n_ elements from the list.
|
|
@@ -38,8 +38,6 @@ module WhopSDK
|
|
|
38
38
|
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
39
39
|
renewal_price: T.nilable(Float),
|
|
40
40
|
stock: T.nilable(Integer),
|
|
41
|
-
strike_through_initial_price: T.nilable(Float),
|
|
42
|
-
strike_through_renewal_price: T.nilable(Float),
|
|
43
41
|
title: T.nilable(String),
|
|
44
42
|
trial_period_days: T.nilable(Integer),
|
|
45
43
|
unlimited_stock: T.nilable(T::Boolean),
|
|
@@ -60,7 +58,7 @@ module WhopSDK
|
|
|
60
58
|
custom_fields: nil,
|
|
61
59
|
# The description of the plan.
|
|
62
60
|
description: nil,
|
|
63
|
-
# The interval at which the plan
|
|
61
|
+
# The interval at which the plan expires and revokes access (expiration plans).
|
|
64
62
|
expiration_days: nil,
|
|
65
63
|
# An image for the plan. This will be visible on the product page to customers.
|
|
66
64
|
image: nil,
|
|
@@ -85,12 +83,6 @@ module WhopSDK
|
|
|
85
83
|
renewal_price: nil,
|
|
86
84
|
# The number of units available for purchase.
|
|
87
85
|
stock: nil,
|
|
88
|
-
# The price to display with a strikethrough for the initial price. Provided as a
|
|
89
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
90
|
-
strike_through_initial_price: nil,
|
|
91
|
-
# The price to display with a strikethrough for the renewal price. Provided as a
|
|
92
|
-
# number in dollars. Eg: 19.99 for $19.99
|
|
93
|
-
strike_through_renewal_price: nil,
|
|
94
86
|
# The title of the plan. This will be visible on the product page to customers.
|
|
95
87
|
title: nil,
|
|
96
88
|
# The number of free trial days added before a renewal plan.
|
|
@@ -222,6 +214,8 @@ module WhopSDK
|
|
|
222
214
|
company_id: String,
|
|
223
215
|
after: T.nilable(String),
|
|
224
216
|
before: T.nilable(String),
|
|
217
|
+
created_after: T.nilable(Time),
|
|
218
|
+
created_before: T.nilable(Time),
|
|
225
219
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
226
220
|
first: T.nilable(Integer),
|
|
227
221
|
last: T.nilable(Integer),
|
|
@@ -244,6 +238,10 @@ module WhopSDK
|
|
|
244
238
|
after: nil,
|
|
245
239
|
# Returns the elements in the list that come before the specified cursor.
|
|
246
240
|
before: nil,
|
|
241
|
+
# The minimum creation date to filter by
|
|
242
|
+
created_after: nil,
|
|
243
|
+
# The maximum creation date to filter by
|
|
244
|
+
created_before: nil,
|
|
247
245
|
# The direction of the sort.
|
|
248
246
|
direction: nil,
|
|
249
247
|
# Returns the first _n_ elements from the list.
|
|
@@ -117,13 +117,6 @@ module WhopSDK
|
|
|
117
117
|
sig do
|
|
118
118
|
params(
|
|
119
119
|
id: String,
|
|
120
|
-
banner_image:
|
|
121
|
-
T.nilable(
|
|
122
|
-
T.any(
|
|
123
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID::OrHash,
|
|
124
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID::OrHash
|
|
125
|
-
)
|
|
126
|
-
),
|
|
127
120
|
business_type: T.nilable(WhopSDK::BusinessTypes::OrSymbol),
|
|
128
121
|
collect_shipping_address: T.nilable(T::Boolean),
|
|
129
122
|
custom_cta: T.nilable(WhopSDK::CustomCta::OrSymbol),
|
|
@@ -151,8 +144,6 @@ module WhopSDK
|
|
|
151
144
|
def update(
|
|
152
145
|
# The ID (tag) of the product
|
|
153
146
|
id,
|
|
154
|
-
# A banner image for the product in png, jpeg format
|
|
155
|
-
banner_image: nil,
|
|
156
147
|
# The different business types a company can be.
|
|
157
148
|
business_type: nil,
|
|
158
149
|
# Whether or not to collect shipping information at checkout from the customer.
|
|
@@ -205,6 +196,8 @@ module WhopSDK
|
|
|
205
196
|
company_id: String,
|
|
206
197
|
after: T.nilable(String),
|
|
207
198
|
before: T.nilable(String),
|
|
199
|
+
created_after: T.nilable(Time),
|
|
200
|
+
created_before: T.nilable(Time),
|
|
208
201
|
direction: T.nilable(WhopSDK::Direction::OrSymbol),
|
|
209
202
|
first: T.nilable(Integer),
|
|
210
203
|
last: T.nilable(Integer),
|
|
@@ -222,6 +215,10 @@ module WhopSDK
|
|
|
222
215
|
after: nil,
|
|
223
216
|
# Returns the elements in the list that come before the specified cursor.
|
|
224
217
|
before: nil,
|
|
218
|
+
# The minimum creation date to filter by
|
|
219
|
+
created_after: nil,
|
|
220
|
+
# The maximum creation date to filter by
|
|
221
|
+
created_before: nil,
|
|
225
222
|
# The direction of the sort.
|
|
226
223
|
direction: nil,
|
|
227
224
|
# Returns the first _n_ elements from the list.
|