whop_sdk 0.0.8 → 0.0.10
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 +25 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +12 -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_create_params.rb +9 -1
- 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.rb +90 -1
- data/lib/whop_sdk/models/payment_create_params.rb +307 -0
- data/lib/whop_sdk/models/payment_list_response.rb +90 -1
- data/lib/whop_sdk/models/payment_method_types.rb +1 -0
- data/lib/whop_sdk/models/payment_token_list_params.rb +78 -0
- data/lib/whop_sdk/models/payment_token_list_response.rb +86 -0
- data/lib/whop_sdk/models/payment_token_retrieve_params.rb +22 -0
- data/lib/whop_sdk/models/payment_token_retrieve_response.rb +86 -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/setup_intent.rb +253 -0
- data/lib/whop_sdk/models/setup_intent_canceled_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_list_params.rb +78 -0
- data/lib/whop_sdk/models/setup_intent_list_response.rb +255 -0
- data/lib/whop_sdk/models/setup_intent_requires_action_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/setup_intent_retrieve_params.rb +14 -0
- data/lib/whop_sdk/models/setup_intent_status.rb +18 -0
- data/lib/whop_sdk/models/setup_intent_succeeded_webhook_event.rb +52 -0
- data/lib/whop_sdk/models/transfer_list_params.rb +17 -1
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +7 -1
- data/lib/whop_sdk/models.rb +22 -0
- data/lib/whop_sdk/resources/account_links.rb +47 -0
- data/lib/whop_sdk/resources/app_builds.rb +8 -2
- 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/payment_tokens.rb +83 -0
- data/lib/whop_sdk/resources/payments.rb +48 -0
- 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/setup_intents.rb +83 -0
- data/lib/whop_sdk/resources/transfers.rb +5 -1
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +19 -0
- data/manifest.yaml +1 -0
- data/rbi/whop_sdk/client.rbi +9 -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_create_params.rbi +8 -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.rbi +142 -0
- data/rbi/whop_sdk/models/payment_create_params.rbi +384 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +167 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +1 -0
- data/rbi/whop_sdk/models/payment_token_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/payment_token_list_response.rbi +139 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_params.rbi +40 -0
- data/rbi/whop_sdk/models/payment_token_retrieve_response.rbi +144 -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/setup_intent.rbi +412 -0
- data/rbi/whop_sdk/models/setup_intent_canceled_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_list_params.rbi +99 -0
- data/rbi/whop_sdk/models/setup_intent_list_response.rbi +492 -0
- data/rbi/whop_sdk/models/setup_intent_requires_action_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/setup_intent_retrieve_params.rbi +27 -0
- data/rbi/whop_sdk/models/setup_intent_status.rbi +25 -0
- data/rbi/whop_sdk/models/setup_intent_succeeded_webhook_event.rbi +77 -0
- data/rbi/whop_sdk/models/transfer_list_params.rbi +16 -0
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +3 -0
- data/rbi/whop_sdk/models.rbi +25 -0
- data/rbi/whop_sdk/resources/account_links.rbi +39 -0
- data/rbi/whop_sdk/resources/app_builds.rbi +9 -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/payment_tokens.rbi +76 -0
- data/rbi/whop_sdk/resources/payments.rbi +42 -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/setup_intents.rbi +77 -0
- data/rbi/whop_sdk/resources/transfers.rbi +6 -0
- data/rbi/whop_sdk/resources/webhooks.rbi +3 -0
- data/sig/whop_sdk/client.rbs +6 -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_create_params.rbs +5 -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.rbs +69 -0
- data/sig/whop_sdk/models/payment_create_params.rbs +210 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +69 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +2 -0
- data/sig/whop_sdk/models/payment_token_list_params.rbs +61 -0
- data/sig/whop_sdk/models/payment_token_list_response.rbs +67 -0
- data/sig/whop_sdk/models/payment_token_retrieve_params.rbs +23 -0
- data/sig/whop_sdk/models/payment_token_retrieve_response.rbs +67 -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/setup_intent.rbs +189 -0
- data/sig/whop_sdk/models/setup_intent_canceled_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_list_params.rbs +61 -0
- data/sig/whop_sdk/models/setup_intent_list_response.rbs +193 -0
- data/sig/whop_sdk/models/setup_intent_requires_action_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/setup_intent_retrieve_params.rbs +15 -0
- data/sig/whop_sdk/models/setup_intent_status.rbs +17 -0
- data/sig/whop_sdk/models/setup_intent_succeeded_webhook_event.rbs +40 -0
- data/sig/whop_sdk/models/transfer_list_params.rbs +10 -0
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +3 -0
- data/sig/whop_sdk/models.rbs +22 -0
- data/sig/whop_sdk/resources/account_links.rbs +15 -0
- data/sig/whop_sdk/resources/app_builds.rbs +3 -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/payment_tokens.rbs +25 -0
- data/sig/whop_sdk/resources/payments.rbs +9 -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/setup_intents.rbs +24 -0
- data/sig/whop_sdk/resources/transfers.rbs +2 -0
- data/sig/whop_sdk/resources/webhooks.rbs +3 -0
- metadata +56 -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
|
|
@@ -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),
|
|
@@ -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),
|