whop_sdk 0.0.10 → 0.0.12
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 +24 -0
- data/README.md +1 -1
- data/lib/whop_sdk/client.rb +3 -3
- data/lib/whop_sdk/internal/type/union.rb +12 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +9 -1
- data/lib/whop_sdk/models/invoice_create_params.rb +10 -1
- data/lib/whop_sdk/models/payment.rb +25 -27
- data/lib/whop_sdk/models/payment_create_params.rb +5 -5
- data/lib/whop_sdk/models/payment_list_response.rb +25 -27
- data/lib/whop_sdk/models/{payment_token_list_params.rb → payment_method_list_params.rb} +4 -4
- data/lib/whop_sdk/models/{payment_token_list_response.rb → payment_method_list_response.rb} +17 -18
- data/lib/whop_sdk/models/{payment_token_retrieve_params.rb → payment_method_retrieve_params.rb} +4 -4
- data/lib/whop_sdk/models/{payment_token_retrieve_response.rb → payment_method_retrieve_response.rb} +17 -18
- data/lib/whop_sdk/models/plan.rb +9 -1
- data/lib/whop_sdk/models/plan_create_params.rb +9 -1
- data/lib/whop_sdk/models/plan_list_response.rb +9 -1
- data/lib/whop_sdk/models/product_create_params.rb +2 -2
- data/lib/whop_sdk/models/setup_intent.rb +22 -24
- data/lib/whop_sdk/models/setup_intent_list_response.rb +22 -24
- data/lib/whop_sdk/models/unwrap_webhook_event.rb +29 -22
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +309 -0
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +111 -166
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +309 -0
- data/lib/whop_sdk/models.rb +8 -4
- data/lib/whop_sdk/resources/invoices.rb +3 -1
- data/lib/whop_sdk/resources/{payment_tokens.rb → payment_methods.rb} +24 -16
- data/lib/whop_sdk/resources/payments.rb +7 -5
- data/lib/whop_sdk/resources/plans.rb +3 -1
- data/lib/whop_sdk/resources/products.rb +1 -1
- data/lib/whop_sdk/resources/setup_intents.rb +10 -2
- data/lib/whop_sdk/resources/webhooks.rb +1 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +7 -5
- data/rbi/whop_sdk/client.rbi +2 -2
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/invoice_create_params.rbi +10 -0
- data/rbi/whop_sdk/models/payment.rbi +30 -33
- data/rbi/whop_sdk/models/payment_create_params.rbi +6 -6
- data/rbi/whop_sdk/models/payment_list_response.rbi +34 -37
- data/rbi/whop_sdk/models/{payment_token_list_params.rbi → payment_method_list_params.rbi} +4 -4
- data/rbi/whop_sdk/models/{payment_token_list_response.rbi → payment_method_list_response.rbi} +18 -20
- data/rbi/whop_sdk/models/{payment_token_retrieve_params.rbi → payment_method_retrieve_params.rbi} +7 -4
- data/rbi/whop_sdk/models/{payment_token_retrieve_response.rbi → payment_method_retrieve_response.rbi} +18 -20
- data/rbi/whop_sdk/models/plan.rbi +8 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +8 -0
- data/rbi/whop_sdk/models/plan_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/product_create_params.rbi +2 -2
- data/rbi/whop_sdk/models/setup_intent.rbi +27 -29
- data/rbi/whop_sdk/models/setup_intent_list_response.rbi +31 -32
- data/rbi/whop_sdk/models/unwrap_webhook_event.rbi +2 -0
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +633 -0
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +326 -480
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +633 -0
- data/rbi/whop_sdk/models.rbi +8 -4
- data/rbi/whop_sdk/resources/invoices.rbi +4 -0
- data/rbi/whop_sdk/resources/{payment_tokens.rbi → payment_methods.rbi} +16 -8
- data/rbi/whop_sdk/resources/payments.rbi +8 -6
- data/rbi/whop_sdk/resources/plans.rbi +3 -0
- data/rbi/whop_sdk/resources/products.rbi +1 -1
- data/rbi/whop_sdk/resources/setup_intents.rbi +10 -2
- data/rbi/whop_sdk/resources/webhooks.rbi +2 -0
- data/sig/whop_sdk/client.rbs +1 -1
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +5 -0
- data/sig/whop_sdk/models/invoice_create_params.rbs +5 -0
- data/sig/whop_sdk/models/payment.rbs +11 -11
- data/sig/whop_sdk/models/payment_create_params.rbs +4 -4
- data/sig/whop_sdk/models/payment_list_response.rbs +11 -11
- data/sig/whop_sdk/models/{payment_token_list_params.rbs → payment_method_list_params.rbs} +2 -2
- data/sig/whop_sdk/models/{payment_token_list_response.rbs → payment_method_list_response.rbs} +6 -6
- data/sig/whop_sdk/models/{payment_token_retrieve_params.rbs → payment_method_retrieve_params.rbs} +2 -2
- data/sig/whop_sdk/models/{payment_token_retrieve_response.rbs → payment_method_retrieve_response.rbs} +6 -6
- data/sig/whop_sdk/models/plan.rbs +5 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +5 -0
- data/sig/whop_sdk/models/plan_list_response.rbs +5 -0
- data/sig/whop_sdk/models/setup_intent.rbs +10 -10
- data/sig/whop_sdk/models/setup_intent_list_response.rbs +10 -10
- data/sig/whop_sdk/models/unwrap_webhook_event.rbs +2 -0
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +275 -0
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +132 -191
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +275 -0
- data/sig/whop_sdk/models.rbs +8 -4
- data/sig/whop_sdk/resources/invoices.rbs +1 -0
- data/sig/whop_sdk/resources/{payment_tokens.rbs → payment_methods.rbs} +3 -3
- data/sig/whop_sdk/resources/payments.rbs +1 -1
- data/sig/whop_sdk/resources/plans.rbs +1 -0
- data/sig/whop_sdk/resources/webhooks.rbs +2 -0
- metadata +23 -17
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
|
-
class
|
|
6
|
-
#
|
|
5
|
+
class PaymentMethods
|
|
6
|
+
# A payment method is a stored representation of how a customer intends to pay,
|
|
7
|
+
# such as a card, bank account, or digital wallet. It holds the necessary billing
|
|
8
|
+
# details and can be attached to a member for future one-time or recurring
|
|
9
|
+
# charges. This lets you reuse the same payment credentials across multiple
|
|
10
|
+
# payments.
|
|
7
11
|
#
|
|
8
12
|
# Required permissions:
|
|
9
13
|
#
|
|
@@ -13,18 +17,22 @@ module WhopSDK
|
|
|
13
17
|
id: String,
|
|
14
18
|
member_id: String,
|
|
15
19
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
16
|
-
).returns(WhopSDK::Models::
|
|
20
|
+
).returns(WhopSDK::Models::PaymentMethodRetrieveResponse)
|
|
17
21
|
end
|
|
18
22
|
def retrieve(
|
|
19
|
-
# The ID of the
|
|
23
|
+
# The ID of the PaymentMethod
|
|
20
24
|
id,
|
|
21
|
-
# The ID of the Member associated with the
|
|
25
|
+
# The ID of the Member associated with the PaymentMethod
|
|
22
26
|
member_id:,
|
|
23
27
|
request_options: {}
|
|
24
28
|
)
|
|
25
29
|
end
|
|
26
30
|
|
|
27
|
-
#
|
|
31
|
+
# A payment method is a stored representation of how a customer intends to pay,
|
|
32
|
+
# such as a card, bank account, or digital wallet. It holds the necessary billing
|
|
33
|
+
# details and can be attached to a member for future one-time or recurring
|
|
34
|
+
# charges. This lets you reuse the same payment credentials across multiple
|
|
35
|
+
# payments.
|
|
28
36
|
#
|
|
29
37
|
# Required permissions:
|
|
30
38
|
#
|
|
@@ -42,12 +50,12 @@ module WhopSDK
|
|
|
42
50
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
43
51
|
).returns(
|
|
44
52
|
WhopSDK::Internal::CursorPage[
|
|
45
|
-
WhopSDK::Models::
|
|
53
|
+
WhopSDK::Models::PaymentMethodListResponse
|
|
46
54
|
]
|
|
47
55
|
)
|
|
48
56
|
end
|
|
49
57
|
def list(
|
|
50
|
-
# The ID of the Member to list payment
|
|
58
|
+
# The ID of the Member to list payment methods for
|
|
51
59
|
member_id:,
|
|
52
60
|
# Returns the elements in the list that come after the specified cursor.
|
|
53
61
|
after: nil,
|
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class Payments
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
6
|
+
# Charge an existing member off-session using one of their stored payment methods.
|
|
7
|
+
# You can provide an existing plan, or create a new one in-line. This endpoint
|
|
8
|
+
# will respond with a payment object immediately, but the payment is processed
|
|
9
|
+
# asynchronously in the background. Use webhooks to be notified when the payment
|
|
10
|
+
# succeeds or fails.
|
|
9
11
|
#
|
|
10
12
|
# Required permissions:
|
|
11
13
|
#
|
|
@@ -23,7 +25,7 @@ module WhopSDK
|
|
|
23
25
|
params(
|
|
24
26
|
company_id: String,
|
|
25
27
|
member_id: String,
|
|
26
|
-
|
|
28
|
+
payment_method_id: String,
|
|
27
29
|
plan: WhopSDK::PaymentCreateParams::Plan::OrHash,
|
|
28
30
|
plan_id: String,
|
|
29
31
|
request_options: WhopSDK::RequestOptions::OrHash
|
|
@@ -34,9 +36,9 @@ module WhopSDK
|
|
|
34
36
|
company_id:,
|
|
35
37
|
# The ID of the member to create the payment for.
|
|
36
38
|
member_id:,
|
|
37
|
-
# The ID of the payment
|
|
39
|
+
# The ID of the payment method to use for the payment. It must be connected to the
|
|
38
40
|
# Member being charged.
|
|
39
|
-
|
|
41
|
+
payment_method_id:,
|
|
40
42
|
# Pass this object to create a new plan for this payment
|
|
41
43
|
plan:,
|
|
42
44
|
# An ID of an existing plan to use for the payment.
|
|
@@ -37,6 +37,7 @@ module WhopSDK
|
|
|
37
37
|
plan_type: T.nilable(WhopSDK::PlanType::OrSymbol),
|
|
38
38
|
release_method: T.nilable(WhopSDK::ReleaseMethod::OrSymbol),
|
|
39
39
|
renewal_price: T.nilable(Float),
|
|
40
|
+
split_pay_required_payments: T.nilable(Integer),
|
|
40
41
|
stock: T.nilable(Integer),
|
|
41
42
|
title: T.nilable(String),
|
|
42
43
|
trial_period_days: T.nilable(Integer),
|
|
@@ -81,6 +82,8 @@ module WhopSDK
|
|
|
81
82
|
# The amount the customer is charged every billing period. Use only if a recurring
|
|
82
83
|
# payment. Provided as a number in dollars. Eg: 10.43 for $10.43
|
|
83
84
|
renewal_price: nil,
|
|
85
|
+
# The number of payments required before pausing the subscription.
|
|
86
|
+
split_pay_required_payments: nil,
|
|
84
87
|
# The number of units available for purchase.
|
|
85
88
|
stock: nil,
|
|
86
89
|
# The title of the plan. This will be visible on the product page to customers.
|
|
@@ -44,7 +44,7 @@ module WhopSDK
|
|
|
44
44
|
def create(
|
|
45
45
|
# The ID of the company to create the product for.
|
|
46
46
|
company_id:,
|
|
47
|
-
# The title of the product.
|
|
47
|
+
# The title of the product. It must be max 40 characters.
|
|
48
48
|
title:,
|
|
49
49
|
# The different business types a company can be.
|
|
50
50
|
business_type: nil,
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
module WhopSDK
|
|
4
4
|
module Resources
|
|
5
5
|
class SetupIntents
|
|
6
|
-
#
|
|
6
|
+
# A setup intent is an object used to securely collect and store a member’s
|
|
7
|
+
# payment method for future use without charging them immediately. It handles
|
|
8
|
+
# authentication steps up front so future off-session payments can be completed
|
|
9
|
+
# smoothly. This ensures the payment method is verified and ready for later
|
|
10
|
+
# billing.
|
|
7
11
|
#
|
|
8
12
|
# Required permissions:
|
|
9
13
|
#
|
|
@@ -23,7 +27,11 @@ module WhopSDK
|
|
|
23
27
|
)
|
|
24
28
|
end
|
|
25
29
|
|
|
26
|
-
#
|
|
30
|
+
# A setup intent is an object used to securely collect and store a member’s
|
|
31
|
+
# payment method for future use without charging them immediately. It handles
|
|
32
|
+
# authentication steps up front so future off-session payments can be completed
|
|
33
|
+
# smoothly. This ensures the payment method is verified and ready for later
|
|
34
|
+
# billing.
|
|
27
35
|
#
|
|
28
36
|
# Required permissions:
|
|
29
37
|
#
|
|
@@ -19,6 +19,8 @@ module WhopSDK
|
|
|
19
19
|
WhopSDK::SetupIntentRequiresActionWebhookEvent,
|
|
20
20
|
WhopSDK::SetupIntentSucceededWebhookEvent,
|
|
21
21
|
WhopSDK::SetupIntentCanceledWebhookEvent,
|
|
22
|
+
WhopSDK::WithdrawalCreatedWebhookEvent,
|
|
23
|
+
WhopSDK::WithdrawalUpdatedWebhookEvent,
|
|
22
24
|
WhopSDK::CourseLessonInteractionCompletedWebhookEvent,
|
|
23
25
|
WhopSDK::PaymentSucceededWebhookEvent,
|
|
24
26
|
WhopSDK::PaymentFailedWebhookEvent,
|
data/sig/whop_sdk/client.rbs
CHANGED
|
@@ -88,7 +88,7 @@ module WhopSDK
|
|
|
88
88
|
|
|
89
89
|
attr_reader setup_intents: WhopSDK::Resources::SetupIntents
|
|
90
90
|
|
|
91
|
-
attr_reader
|
|
91
|
+
attr_reader payment_methods: WhopSDK::Resources::PaymentMethods
|
|
92
92
|
|
|
93
93
|
private def auth_headers: -> ::Hash[String, String]
|
|
94
94
|
|
|
@@ -76,6 +76,7 @@ module WhopSDK
|
|
|
76
76
|
product_id: String?,
|
|
77
77
|
release_method: WhopSDK::Models::release_method?,
|
|
78
78
|
renewal_price: Float?,
|
|
79
|
+
split_pay_required_payments: Integer?,
|
|
79
80
|
title: String?,
|
|
80
81
|
trial_period_days: Integer?,
|
|
81
82
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -116,6 +117,8 @@ module WhopSDK
|
|
|
116
117
|
|
|
117
118
|
attr_accessor renewal_price: Float?
|
|
118
119
|
|
|
120
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
121
|
+
|
|
119
122
|
attr_accessor title: String?
|
|
120
123
|
|
|
121
124
|
attr_accessor trial_period_days: Integer?
|
|
@@ -140,6 +143,7 @@ module WhopSDK
|
|
|
140
143
|
?product_id: String?,
|
|
141
144
|
?release_method: WhopSDK::Models::release_method?,
|
|
142
145
|
?renewal_price: Float?,
|
|
146
|
+
?split_pay_required_payments: Integer?,
|
|
143
147
|
?title: String?,
|
|
144
148
|
?trial_period_days: Integer?,
|
|
145
149
|
?visibility: WhopSDK::Models::visibility?
|
|
@@ -163,6 +167,7 @@ module WhopSDK
|
|
|
163
167
|
product_id: String?,
|
|
164
168
|
release_method: WhopSDK::Models::release_method?,
|
|
165
169
|
renewal_price: Float?,
|
|
170
|
+
split_pay_required_payments: Integer?,
|
|
166
171
|
title: String?,
|
|
167
172
|
trial_period_days: Integer?,
|
|
168
173
|
visibility: WhopSDK::Models::visibility?
|
|
@@ -10,6 +10,7 @@ module WhopSDK
|
|
|
10
10
|
product: WhopSDK::InvoiceCreateParams::Product,
|
|
11
11
|
charge_buyer_fee: bool?,
|
|
12
12
|
customer_name: String?,
|
|
13
|
+
payment_method_id: String?,
|
|
13
14
|
payment_token_id: String?,
|
|
14
15
|
email_address: String,
|
|
15
16
|
product_id: String
|
|
@@ -36,6 +37,8 @@ module WhopSDK
|
|
|
36
37
|
|
|
37
38
|
attr_accessor customer_name: String?
|
|
38
39
|
|
|
40
|
+
attr_accessor payment_method_id: String?
|
|
41
|
+
|
|
39
42
|
attr_accessor payment_token_id: String?
|
|
40
43
|
|
|
41
44
|
attr_accessor email_address: String
|
|
@@ -53,6 +56,7 @@ module WhopSDK
|
|
|
53
56
|
product_id: String,
|
|
54
57
|
?charge_buyer_fee: bool?,
|
|
55
58
|
?customer_name: String?,
|
|
59
|
+
?payment_method_id: String?,
|
|
56
60
|
?payment_token_id: String?,
|
|
57
61
|
?request_options: WhopSDK::request_opts
|
|
58
62
|
) -> void
|
|
@@ -66,6 +70,7 @@ module WhopSDK
|
|
|
66
70
|
product: WhopSDK::InvoiceCreateParams::Product,
|
|
67
71
|
charge_buyer_fee: bool?,
|
|
68
72
|
customer_name: String?,
|
|
73
|
+
payment_method_id: String?,
|
|
69
74
|
payment_token_id: String?,
|
|
70
75
|
email_address: String,
|
|
71
76
|
product_id: String,
|
|
@@ -19,8 +19,8 @@ module WhopSDK
|
|
|
19
19
|
membership: WhopSDK::Payment::Membership?,
|
|
20
20
|
metadata: ::Hash[Symbol, top]?,
|
|
21
21
|
paid_at: Time?,
|
|
22
|
+
payment_method: WhopSDK::Payment::PaymentMethod?,
|
|
22
23
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
23
|
-
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
24
24
|
plan: WhopSDK::Payment::Plan?,
|
|
25
25
|
product: WhopSDK::Payment::Product?,
|
|
26
26
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -72,9 +72,9 @@ module WhopSDK
|
|
|
72
72
|
|
|
73
73
|
attr_accessor paid_at: Time?
|
|
74
74
|
|
|
75
|
-
attr_accessor
|
|
75
|
+
attr_accessor payment_method: WhopSDK::Payment::PaymentMethod?
|
|
76
76
|
|
|
77
|
-
attr_accessor
|
|
77
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
78
78
|
|
|
79
79
|
attr_accessor plan: WhopSDK::Payment::Plan?
|
|
80
80
|
|
|
@@ -122,8 +122,8 @@ module WhopSDK
|
|
|
122
122
|
membership: WhopSDK::Payment::Membership?,
|
|
123
123
|
metadata: ::Hash[Symbol, top]?,
|
|
124
124
|
paid_at: Time?,
|
|
125
|
+
payment_method: WhopSDK::Payment::PaymentMethod?,
|
|
125
126
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
126
|
-
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
127
127
|
plan: WhopSDK::Payment::Plan?,
|
|
128
128
|
product: WhopSDK::Payment::Product?,
|
|
129
129
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -158,8 +158,8 @@ module WhopSDK
|
|
|
158
158
|
membership: WhopSDK::Payment::Membership?,
|
|
159
159
|
metadata: ::Hash[Symbol, top]?,
|
|
160
160
|
paid_at: Time?,
|
|
161
|
+
payment_method: WhopSDK::Payment::PaymentMethod?,
|
|
161
162
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
162
|
-
payment_token: WhopSDK::Payment::PaymentToken?,
|
|
163
163
|
plan: WhopSDK::Payment::Plan?,
|
|
164
164
|
product: WhopSDK::Payment::Product?,
|
|
165
165
|
promo_code: WhopSDK::Payment::PromoCode?,
|
|
@@ -268,18 +268,18 @@ module WhopSDK
|
|
|
268
268
|
}
|
|
269
269
|
end
|
|
270
270
|
|
|
271
|
-
type
|
|
271
|
+
type payment_method =
|
|
272
272
|
{
|
|
273
273
|
id: String,
|
|
274
|
-
card: WhopSDK::Payment::
|
|
274
|
+
card: WhopSDK::Payment::PaymentMethod::Card?,
|
|
275
275
|
created_at: Time,
|
|
276
276
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
class
|
|
279
|
+
class PaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
280
280
|
attr_accessor id: String
|
|
281
281
|
|
|
282
|
-
attr_accessor card: WhopSDK::Payment::
|
|
282
|
+
attr_accessor card: WhopSDK::Payment::PaymentMethod::Card?
|
|
283
283
|
|
|
284
284
|
attr_accessor created_at: Time
|
|
285
285
|
|
|
@@ -287,14 +287,14 @@ module WhopSDK
|
|
|
287
287
|
|
|
288
288
|
def initialize: (
|
|
289
289
|
id: String,
|
|
290
|
-
card: WhopSDK::Payment::
|
|
290
|
+
card: WhopSDK::Payment::PaymentMethod::Card?,
|
|
291
291
|
created_at: Time,
|
|
292
292
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
293
293
|
) -> void
|
|
294
294
|
|
|
295
295
|
def to_hash: -> {
|
|
296
296
|
id: String,
|
|
297
|
-
card: WhopSDK::Payment::
|
|
297
|
+
card: WhopSDK::Payment::PaymentMethod::Card?,
|
|
298
298
|
created_at: Time,
|
|
299
299
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
300
300
|
}
|
|
@@ -4,7 +4,7 @@ module WhopSDK
|
|
|
4
4
|
{
|
|
5
5
|
company_id: String,
|
|
6
6
|
member_id: String,
|
|
7
|
-
|
|
7
|
+
payment_method_id: String,
|
|
8
8
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
9
9
|
plan_id: String
|
|
10
10
|
}
|
|
@@ -18,7 +18,7 @@ module WhopSDK
|
|
|
18
18
|
|
|
19
19
|
attr_accessor member_id: String
|
|
20
20
|
|
|
21
|
-
attr_accessor
|
|
21
|
+
attr_accessor payment_method_id: String
|
|
22
22
|
|
|
23
23
|
attr_accessor plan: WhopSDK::PaymentCreateParams::Plan
|
|
24
24
|
|
|
@@ -27,7 +27,7 @@ module WhopSDK
|
|
|
27
27
|
def initialize: (
|
|
28
28
|
company_id: String,
|
|
29
29
|
member_id: String,
|
|
30
|
-
|
|
30
|
+
payment_method_id: String,
|
|
31
31
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
32
32
|
plan_id: String,
|
|
33
33
|
?request_options: WhopSDK::request_opts
|
|
@@ -36,7 +36,7 @@ module WhopSDK
|
|
|
36
36
|
def to_hash: -> {
|
|
37
37
|
company_id: String,
|
|
38
38
|
member_id: String,
|
|
39
|
-
|
|
39
|
+
payment_method_id: String,
|
|
40
40
|
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
41
41
|
plan_id: String,
|
|
42
42
|
request_options: WhopSDK::RequestOptions
|
|
@@ -19,8 +19,8 @@ module WhopSDK
|
|
|
19
19
|
membership: WhopSDK::Models::PaymentListResponse::Membership?,
|
|
20
20
|
metadata: ::Hash[Symbol, top]?,
|
|
21
21
|
paid_at: Time?,
|
|
22
|
+
payment_method: WhopSDK::Models::PaymentListResponse::PaymentMethod?,
|
|
22
23
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
23
|
-
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
24
24
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
25
25
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
26
26
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -72,9 +72,9 @@ module WhopSDK
|
|
|
72
72
|
|
|
73
73
|
attr_accessor paid_at: Time?
|
|
74
74
|
|
|
75
|
-
attr_accessor
|
|
75
|
+
attr_accessor payment_method: WhopSDK::Models::PaymentListResponse::PaymentMethod?
|
|
76
76
|
|
|
77
|
-
attr_accessor
|
|
77
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
78
78
|
|
|
79
79
|
attr_accessor plan: WhopSDK::Models::PaymentListResponse::Plan?
|
|
80
80
|
|
|
@@ -122,8 +122,8 @@ module WhopSDK
|
|
|
122
122
|
membership: WhopSDK::Models::PaymentListResponse::Membership?,
|
|
123
123
|
metadata: ::Hash[Symbol, top]?,
|
|
124
124
|
paid_at: Time?,
|
|
125
|
+
payment_method: WhopSDK::Models::PaymentListResponse::PaymentMethod?,
|
|
125
126
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
126
|
-
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
127
127
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
128
128
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
129
129
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -158,8 +158,8 @@ module WhopSDK
|
|
|
158
158
|
membership: WhopSDK::Models::PaymentListResponse::Membership?,
|
|
159
159
|
metadata: ::Hash[Symbol, top]?,
|
|
160
160
|
paid_at: Time?,
|
|
161
|
+
payment_method: WhopSDK::Models::PaymentListResponse::PaymentMethod?,
|
|
161
162
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
162
|
-
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
163
163
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
164
164
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
165
165
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -268,18 +268,18 @@ module WhopSDK
|
|
|
268
268
|
}
|
|
269
269
|
end
|
|
270
270
|
|
|
271
|
-
type
|
|
271
|
+
type payment_method =
|
|
272
272
|
{
|
|
273
273
|
id: String,
|
|
274
|
-
card: WhopSDK::Models::PaymentListResponse::
|
|
274
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentMethod::Card?,
|
|
275
275
|
created_at: Time,
|
|
276
276
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
277
277
|
}
|
|
278
278
|
|
|
279
|
-
class
|
|
279
|
+
class PaymentMethod < WhopSDK::Internal::Type::BaseModel
|
|
280
280
|
attr_accessor id: String
|
|
281
281
|
|
|
282
|
-
attr_accessor card: WhopSDK::Models::PaymentListResponse::
|
|
282
|
+
attr_accessor card: WhopSDK::Models::PaymentListResponse::PaymentMethod::Card?
|
|
283
283
|
|
|
284
284
|
attr_accessor created_at: Time
|
|
285
285
|
|
|
@@ -287,14 +287,14 @@ module WhopSDK
|
|
|
287
287
|
|
|
288
288
|
def initialize: (
|
|
289
289
|
id: String,
|
|
290
|
-
card: WhopSDK::Models::PaymentListResponse::
|
|
290
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentMethod::Card?,
|
|
291
291
|
created_at: Time,
|
|
292
292
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
293
293
|
) -> void
|
|
294
294
|
|
|
295
295
|
def to_hash: -> {
|
|
296
296
|
id: String,
|
|
297
|
-
card: WhopSDK::Models::PaymentListResponse::
|
|
297
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentMethod::Card?,
|
|
298
298
|
created_at: Time,
|
|
299
299
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
300
300
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type payment_method_list_params =
|
|
4
4
|
{
|
|
5
5
|
member_id: String,
|
|
6
6
|
after: String?,
|
|
@@ -13,7 +13,7 @@ module WhopSDK
|
|
|
13
13
|
}
|
|
14
14
|
& WhopSDK::Internal::Type::request_parameters
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class PaymentMethodListParams < WhopSDK::Internal::Type::BaseModel
|
|
17
17
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
18
|
include WhopSDK::Internal::Type::RequestParameters
|
|
19
19
|
|
data/sig/whop_sdk/models/{payment_token_list_response.rbs → payment_method_list_response.rbs}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type payment_method_list_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
card: WhopSDK::Models::
|
|
6
|
+
card: WhopSDK::Models::PaymentMethodListResponse::Card?,
|
|
7
7
|
created_at: Time,
|
|
8
8
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class PaymentMethodListResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor id: String
|
|
13
13
|
|
|
14
|
-
attr_accessor card: WhopSDK::Models::
|
|
14
|
+
attr_accessor card: WhopSDK::Models::PaymentMethodListResponse::Card?
|
|
15
15
|
|
|
16
16
|
attr_accessor created_at: Time
|
|
17
17
|
|
|
@@ -19,14 +19,14 @@ module WhopSDK
|
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
id: String,
|
|
22
|
-
card: WhopSDK::Models::
|
|
22
|
+
card: WhopSDK::Models::PaymentMethodListResponse::Card?,
|
|
23
23
|
created_at: Time,
|
|
24
24
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
id: String,
|
|
29
|
-
card: WhopSDK::Models::
|
|
29
|
+
card: WhopSDK::Models::PaymentMethodListResponse::Card?,
|
|
30
30
|
created_at: Time,
|
|
31
31
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
32
32
|
}
|
data/sig/whop_sdk/models/{payment_token_retrieve_params.rbs → payment_method_retrieve_params.rbs}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type payment_method_retrieve_params =
|
|
4
4
|
{ member_id: String } & WhopSDK::Internal::Type::request_parameters
|
|
5
5
|
|
|
6
|
-
class
|
|
6
|
+
class PaymentMethodRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
7
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include WhopSDK::Internal::Type::RequestParameters
|
|
9
9
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
module WhopSDK
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type payment_method_retrieve_response =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
-
card: WhopSDK::Models::
|
|
6
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::Card?,
|
|
7
7
|
created_at: Time,
|
|
8
8
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class PaymentMethodRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
12
|
attr_accessor id: String
|
|
13
13
|
|
|
14
|
-
attr_accessor card: WhopSDK::Models::
|
|
14
|
+
attr_accessor card: WhopSDK::Models::PaymentMethodRetrieveResponse::Card?
|
|
15
15
|
|
|
16
16
|
attr_accessor created_at: Time
|
|
17
17
|
|
|
@@ -19,14 +19,14 @@ module WhopSDK
|
|
|
19
19
|
|
|
20
20
|
def initialize: (
|
|
21
21
|
id: String,
|
|
22
|
-
card: WhopSDK::Models::
|
|
22
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::Card?,
|
|
23
23
|
created_at: Time,
|
|
24
24
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
25
25
|
) -> void
|
|
26
26
|
|
|
27
27
|
def to_hash: -> {
|
|
28
28
|
id: String,
|
|
29
|
-
card: WhopSDK::Models::
|
|
29
|
+
card: WhopSDK::Models::PaymentMethodRetrieveResponse::Card?,
|
|
30
30
|
created_at: Time,
|
|
31
31
|
payment_method_type: WhopSDK::Models::payment_method_types
|
|
32
32
|
}
|
|
@@ -21,6 +21,7 @@ module WhopSDK
|
|
|
21
21
|
purchase_url: String,
|
|
22
22
|
release_method: WhopSDK::Models::release_method,
|
|
23
23
|
renewal_price: Float,
|
|
24
|
+
split_pay_required_payments: Integer?,
|
|
24
25
|
stock: Integer?,
|
|
25
26
|
tax_type: WhopSDK::Models::tax_type,
|
|
26
27
|
title: String?,
|
|
@@ -69,6 +70,8 @@ module WhopSDK
|
|
|
69
70
|
|
|
70
71
|
attr_accessor renewal_price: Float
|
|
71
72
|
|
|
73
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
74
|
+
|
|
72
75
|
attr_accessor stock: Integer?
|
|
73
76
|
|
|
74
77
|
attr_accessor tax_type: WhopSDK::Models::tax_type
|
|
@@ -103,6 +106,7 @@ module WhopSDK
|
|
|
103
106
|
purchase_url: String,
|
|
104
107
|
release_method: WhopSDK::Models::release_method,
|
|
105
108
|
renewal_price: Float,
|
|
109
|
+
split_pay_required_payments: Integer?,
|
|
106
110
|
stock: Integer?,
|
|
107
111
|
tax_type: WhopSDK::Models::tax_type,
|
|
108
112
|
title: String?,
|
|
@@ -132,6 +136,7 @@ module WhopSDK
|
|
|
132
136
|
purchase_url: String,
|
|
133
137
|
release_method: WhopSDK::Models::release_method,
|
|
134
138
|
renewal_price: Float,
|
|
139
|
+
split_pay_required_payments: Integer?,
|
|
135
140
|
stock: Integer?,
|
|
136
141
|
tax_type: WhopSDK::Models::tax_type,
|
|
137
142
|
title: String?,
|
|
@@ -17,6 +17,7 @@ module WhopSDK
|
|
|
17
17
|
plan_type: WhopSDK::Models::plan_type?,
|
|
18
18
|
release_method: WhopSDK::Models::release_method?,
|
|
19
19
|
renewal_price: Float?,
|
|
20
|
+
split_pay_required_payments: Integer?,
|
|
20
21
|
stock: Integer?,
|
|
21
22
|
title: String?,
|
|
22
23
|
trial_period_days: Integer?,
|
|
@@ -59,6 +60,8 @@ module WhopSDK
|
|
|
59
60
|
|
|
60
61
|
attr_accessor renewal_price: Float?
|
|
61
62
|
|
|
63
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
64
|
+
|
|
62
65
|
attr_accessor stock: Integer?
|
|
63
66
|
|
|
64
67
|
attr_accessor title: String?
|
|
@@ -85,6 +88,7 @@ module WhopSDK
|
|
|
85
88
|
?plan_type: WhopSDK::Models::plan_type?,
|
|
86
89
|
?release_method: WhopSDK::Models::release_method?,
|
|
87
90
|
?renewal_price: Float?,
|
|
91
|
+
?split_pay_required_payments: Integer?,
|
|
88
92
|
?stock: Integer?,
|
|
89
93
|
?title: String?,
|
|
90
94
|
?trial_period_days: Integer?,
|
|
@@ -109,6 +113,7 @@ module WhopSDK
|
|
|
109
113
|
plan_type: WhopSDK::Models::plan_type?,
|
|
110
114
|
release_method: WhopSDK::Models::release_method?,
|
|
111
115
|
renewal_price: Float?,
|
|
116
|
+
split_pay_required_payments: Integer?,
|
|
112
117
|
stock: Integer?,
|
|
113
118
|
title: String?,
|
|
114
119
|
trial_period_days: Integer?,
|
|
@@ -19,6 +19,7 @@ module WhopSDK
|
|
|
19
19
|
purchase_url: String,
|
|
20
20
|
release_method: WhopSDK::Models::release_method,
|
|
21
21
|
renewal_price: Float,
|
|
22
|
+
split_pay_required_payments: Integer?,
|
|
22
23
|
stock: Integer?,
|
|
23
24
|
title: String?,
|
|
24
25
|
trial_period_days: Integer?,
|
|
@@ -62,6 +63,8 @@ module WhopSDK
|
|
|
62
63
|
|
|
63
64
|
attr_accessor renewal_price: Float
|
|
64
65
|
|
|
66
|
+
attr_accessor split_pay_required_payments: Integer?
|
|
67
|
+
|
|
65
68
|
attr_accessor stock: Integer?
|
|
66
69
|
|
|
67
70
|
attr_accessor title: String?
|
|
@@ -92,6 +95,7 @@ module WhopSDK
|
|
|
92
95
|
purchase_url: String,
|
|
93
96
|
release_method: WhopSDK::Models::release_method,
|
|
94
97
|
renewal_price: Float,
|
|
98
|
+
split_pay_required_payments: Integer?,
|
|
95
99
|
stock: Integer?,
|
|
96
100
|
title: String?,
|
|
97
101
|
trial_period_days: Integer?,
|
|
@@ -118,6 +122,7 @@ module WhopSDK
|
|
|
118
122
|
purchase_url: String,
|
|
119
123
|
release_method: WhopSDK::Models::release_method,
|
|
120
124
|
renewal_price: Float,
|
|
125
|
+
split_pay_required_payments: Integer?,
|
|
121
126
|
stock: Integer?,
|
|
122
127
|
title: String?,
|
|
123
128
|
trial_period_days: Integer?,
|