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
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payment_create_params =
|
|
4
|
+
{
|
|
5
|
+
company_id: String,
|
|
6
|
+
member_id: String,
|
|
7
|
+
payment_token_id: String,
|
|
8
|
+
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
9
|
+
plan_id: String
|
|
10
|
+
}
|
|
11
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class PaymentCreateParams < WhopSDK::Internal::Type::BaseModel
|
|
14
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_accessor company_id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor member_id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor payment_token_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor plan: WhopSDK::PaymentCreateParams::Plan
|
|
24
|
+
|
|
25
|
+
attr_accessor plan_id: String
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
company_id: String,
|
|
29
|
+
member_id: String,
|
|
30
|
+
payment_token_id: String,
|
|
31
|
+
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
32
|
+
plan_id: String,
|
|
33
|
+
?request_options: WhopSDK::request_opts
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
company_id: String,
|
|
38
|
+
member_id: String,
|
|
39
|
+
payment_token_id: String,
|
|
40
|
+
plan: WhopSDK::PaymentCreateParams::Plan,
|
|
41
|
+
plan_id: String,
|
|
42
|
+
request_options: WhopSDK::RequestOptions
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type plan =
|
|
46
|
+
{
|
|
47
|
+
currency: WhopSDK::Models::currency,
|
|
48
|
+
billing_period: Integer?,
|
|
49
|
+
description: String?,
|
|
50
|
+
expiration_days: Integer?,
|
|
51
|
+
force_create_new_plan: bool?,
|
|
52
|
+
initial_price: Float?,
|
|
53
|
+
internal_notes: String?,
|
|
54
|
+
plan_type: WhopSDK::Models::plan_type?,
|
|
55
|
+
product: WhopSDK::PaymentCreateParams::Plan::Product?,
|
|
56
|
+
product_id: String?,
|
|
57
|
+
renewal_price: Float?,
|
|
58
|
+
title: String?,
|
|
59
|
+
trial_period_days: Integer?,
|
|
60
|
+
visibility: WhopSDK::Models::visibility?
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
64
|
+
attr_accessor currency: WhopSDK::Models::currency
|
|
65
|
+
|
|
66
|
+
attr_accessor billing_period: Integer?
|
|
67
|
+
|
|
68
|
+
attr_accessor description: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor expiration_days: Integer?
|
|
71
|
+
|
|
72
|
+
attr_accessor force_create_new_plan: bool?
|
|
73
|
+
|
|
74
|
+
attr_accessor initial_price: Float?
|
|
75
|
+
|
|
76
|
+
attr_accessor internal_notes: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor plan_type: WhopSDK::Models::plan_type?
|
|
79
|
+
|
|
80
|
+
attr_accessor product: WhopSDK::PaymentCreateParams::Plan::Product?
|
|
81
|
+
|
|
82
|
+
attr_accessor product_id: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor renewal_price: Float?
|
|
85
|
+
|
|
86
|
+
attr_accessor title: String?
|
|
87
|
+
|
|
88
|
+
attr_accessor trial_period_days: Integer?
|
|
89
|
+
|
|
90
|
+
attr_accessor visibility: WhopSDK::Models::visibility?
|
|
91
|
+
|
|
92
|
+
def initialize: (
|
|
93
|
+
currency: WhopSDK::Models::currency,
|
|
94
|
+
?billing_period: Integer?,
|
|
95
|
+
?description: String?,
|
|
96
|
+
?expiration_days: Integer?,
|
|
97
|
+
?force_create_new_plan: bool?,
|
|
98
|
+
?initial_price: Float?,
|
|
99
|
+
?internal_notes: String?,
|
|
100
|
+
?plan_type: WhopSDK::Models::plan_type?,
|
|
101
|
+
?product: WhopSDK::PaymentCreateParams::Plan::Product?,
|
|
102
|
+
?product_id: String?,
|
|
103
|
+
?renewal_price: Float?,
|
|
104
|
+
?title: String?,
|
|
105
|
+
?trial_period_days: Integer?,
|
|
106
|
+
?visibility: WhopSDK::Models::visibility?
|
|
107
|
+
) -> void
|
|
108
|
+
|
|
109
|
+
def to_hash: -> {
|
|
110
|
+
currency: WhopSDK::Models::currency,
|
|
111
|
+
billing_period: Integer?,
|
|
112
|
+
description: String?,
|
|
113
|
+
expiration_days: Integer?,
|
|
114
|
+
force_create_new_plan: bool?,
|
|
115
|
+
initial_price: Float?,
|
|
116
|
+
internal_notes: String?,
|
|
117
|
+
plan_type: WhopSDK::Models::plan_type?,
|
|
118
|
+
product: WhopSDK::PaymentCreateParams::Plan::Product?,
|
|
119
|
+
product_id: String?,
|
|
120
|
+
renewal_price: Float?,
|
|
121
|
+
title: String?,
|
|
122
|
+
trial_period_days: Integer?,
|
|
123
|
+
visibility: WhopSDK::Models::visibility?
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
type product =
|
|
127
|
+
{
|
|
128
|
+
external_identifier: String,
|
|
129
|
+
title: String,
|
|
130
|
+
business_type: WhopSDK::Models::business_types?,
|
|
131
|
+
collect_shipping_address: bool?,
|
|
132
|
+
custom_statement_descriptor: String?,
|
|
133
|
+
description: String?,
|
|
134
|
+
global_affiliate_percentage: Float?,
|
|
135
|
+
global_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
136
|
+
headline: String?,
|
|
137
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
138
|
+
product_tax_code_id: String?,
|
|
139
|
+
redirect_purchase_url: String?,
|
|
140
|
+
route: String?,
|
|
141
|
+
visibility: WhopSDK::Models::visibility?
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
class Product < WhopSDK::Internal::Type::BaseModel
|
|
145
|
+
attr_accessor external_identifier: String
|
|
146
|
+
|
|
147
|
+
attr_accessor title: String
|
|
148
|
+
|
|
149
|
+
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
150
|
+
|
|
151
|
+
attr_accessor collect_shipping_address: bool?
|
|
152
|
+
|
|
153
|
+
attr_accessor custom_statement_descriptor: String?
|
|
154
|
+
|
|
155
|
+
attr_accessor description: String?
|
|
156
|
+
|
|
157
|
+
attr_accessor global_affiliate_percentage: Float?
|
|
158
|
+
|
|
159
|
+
attr_accessor global_affiliate_status: WhopSDK::Models::global_affiliate_status?
|
|
160
|
+
|
|
161
|
+
attr_accessor headline: String?
|
|
162
|
+
|
|
163
|
+
attr_accessor industry_type: WhopSDK::Models::industry_types?
|
|
164
|
+
|
|
165
|
+
attr_accessor product_tax_code_id: String?
|
|
166
|
+
|
|
167
|
+
attr_accessor redirect_purchase_url: String?
|
|
168
|
+
|
|
169
|
+
attr_accessor route: String?
|
|
170
|
+
|
|
171
|
+
attr_accessor visibility: WhopSDK::Models::visibility?
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
external_identifier: String,
|
|
175
|
+
title: String,
|
|
176
|
+
?business_type: WhopSDK::Models::business_types?,
|
|
177
|
+
?collect_shipping_address: bool?,
|
|
178
|
+
?custom_statement_descriptor: String?,
|
|
179
|
+
?description: String?,
|
|
180
|
+
?global_affiliate_percentage: Float?,
|
|
181
|
+
?global_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
182
|
+
?headline: String?,
|
|
183
|
+
?industry_type: WhopSDK::Models::industry_types?,
|
|
184
|
+
?product_tax_code_id: String?,
|
|
185
|
+
?redirect_purchase_url: String?,
|
|
186
|
+
?route: String?,
|
|
187
|
+
?visibility: WhopSDK::Models::visibility?
|
|
188
|
+
) -> void
|
|
189
|
+
|
|
190
|
+
def to_hash: -> {
|
|
191
|
+
external_identifier: String,
|
|
192
|
+
title: String,
|
|
193
|
+
business_type: WhopSDK::Models::business_types?,
|
|
194
|
+
collect_shipping_address: bool?,
|
|
195
|
+
custom_statement_descriptor: String?,
|
|
196
|
+
description: String?,
|
|
197
|
+
global_affiliate_percentage: Float?,
|
|
198
|
+
global_affiliate_status: WhopSDK::Models::global_affiliate_status?,
|
|
199
|
+
headline: String?,
|
|
200
|
+
industry_type: WhopSDK::Models::industry_types?,
|
|
201
|
+
product_tax_code_id: String?,
|
|
202
|
+
redirect_purchase_url: String?,
|
|
203
|
+
route: String?,
|
|
204
|
+
visibility: WhopSDK::Models::visibility?
|
|
205
|
+
}
|
|
206
|
+
end
|
|
207
|
+
end
|
|
208
|
+
end
|
|
209
|
+
end
|
|
210
|
+
end
|
|
@@ -20,6 +20,7 @@ module WhopSDK
|
|
|
20
20
|
metadata: ::Hash[Symbol, top]?,
|
|
21
21
|
paid_at: Time?,
|
|
22
22
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
23
|
+
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
23
24
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
24
25
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
25
26
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -73,6 +74,8 @@ module WhopSDK
|
|
|
73
74
|
|
|
74
75
|
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types?
|
|
75
76
|
|
|
77
|
+
attr_accessor payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?
|
|
78
|
+
|
|
76
79
|
attr_accessor plan: WhopSDK::Models::PaymentListResponse::Plan?
|
|
77
80
|
|
|
78
81
|
attr_accessor product: WhopSDK::Models::PaymentListResponse::Product?
|
|
@@ -120,6 +123,7 @@ module WhopSDK
|
|
|
120
123
|
metadata: ::Hash[Symbol, top]?,
|
|
121
124
|
paid_at: Time?,
|
|
122
125
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
126
|
+
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
123
127
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
124
128
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
125
129
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -155,6 +159,7 @@ module WhopSDK
|
|
|
155
159
|
metadata: ::Hash[Symbol, top]?,
|
|
156
160
|
paid_at: Time?,
|
|
157
161
|
payment_method_type: WhopSDK::Models::payment_method_types?,
|
|
162
|
+
payment_token: WhopSDK::Models::PaymentListResponse::PaymentToken?,
|
|
158
163
|
plan: WhopSDK::Models::PaymentListResponse::Plan?,
|
|
159
164
|
product: WhopSDK::Models::PaymentListResponse::Product?,
|
|
160
165
|
promo_code: WhopSDK::Models::PaymentListResponse::PromoCode?,
|
|
@@ -263,6 +268,70 @@ module WhopSDK
|
|
|
263
268
|
}
|
|
264
269
|
end
|
|
265
270
|
|
|
271
|
+
type payment_token =
|
|
272
|
+
{
|
|
273
|
+
id: String,
|
|
274
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentToken::Card?,
|
|
275
|
+
created_at: Time,
|
|
276
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
class PaymentToken < WhopSDK::Internal::Type::BaseModel
|
|
280
|
+
attr_accessor id: String
|
|
281
|
+
|
|
282
|
+
attr_accessor card: WhopSDK::Models::PaymentListResponse::PaymentToken::Card?
|
|
283
|
+
|
|
284
|
+
attr_accessor created_at: Time
|
|
285
|
+
|
|
286
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
287
|
+
|
|
288
|
+
def initialize: (
|
|
289
|
+
id: String,
|
|
290
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentToken::Card?,
|
|
291
|
+
created_at: Time,
|
|
292
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
293
|
+
) -> void
|
|
294
|
+
|
|
295
|
+
def to_hash: -> {
|
|
296
|
+
id: String,
|
|
297
|
+
card: WhopSDK::Models::PaymentListResponse::PaymentToken::Card?,
|
|
298
|
+
created_at: Time,
|
|
299
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
type card =
|
|
303
|
+
{
|
|
304
|
+
brand: WhopSDK::Models::card_brands?,
|
|
305
|
+
exp_month: Integer?,
|
|
306
|
+
exp_year: Integer?,
|
|
307
|
+
:last4 => String?
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
311
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
312
|
+
|
|
313
|
+
attr_accessor exp_month: Integer?
|
|
314
|
+
|
|
315
|
+
attr_accessor exp_year: Integer?
|
|
316
|
+
|
|
317
|
+
attr_accessor last4: String?
|
|
318
|
+
|
|
319
|
+
def initialize: (
|
|
320
|
+
brand: WhopSDK::Models::card_brands?,
|
|
321
|
+
exp_month: Integer?,
|
|
322
|
+
exp_year: Integer?,
|
|
323
|
+
last4: String?
|
|
324
|
+
) -> void
|
|
325
|
+
|
|
326
|
+
def to_hash: -> {
|
|
327
|
+
brand: WhopSDK::Models::card_brands?,
|
|
328
|
+
exp_month: Integer?,
|
|
329
|
+
exp_year: Integer?,
|
|
330
|
+
:last4 => String?
|
|
331
|
+
}
|
|
332
|
+
end
|
|
333
|
+
end
|
|
334
|
+
|
|
266
335
|
type plan = { id: String }
|
|
267
336
|
|
|
268
337
|
class Plan < WhopSDK::Internal::Type::BaseModel
|
|
@@ -85,6 +85,7 @@ module WhopSDK
|
|
|
85
85
|
| :splitit
|
|
86
86
|
| :platform_balance
|
|
87
87
|
| :apple
|
|
88
|
+
| :venmo
|
|
88
89
|
| :unknown
|
|
89
90
|
|
|
90
91
|
module PaymentMethodTypes
|
|
@@ -174,6 +175,7 @@ module WhopSDK
|
|
|
174
175
|
SPLITIT: :splitit
|
|
175
176
|
PLATFORM_BALANCE: :platform_balance
|
|
176
177
|
APPLE: :apple
|
|
178
|
+
VENMO: :venmo
|
|
177
179
|
UNKNOWN: :unknown
|
|
178
180
|
|
|
179
181
|
def self?.values: -> ::Array[WhopSDK::Models::payment_method_types]
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payment_token_list_params =
|
|
4
|
+
{
|
|
5
|
+
member_id: String,
|
|
6
|
+
after: String?,
|
|
7
|
+
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
10
|
+
direction: WhopSDK::Models::direction?,
|
|
11
|
+
first: Integer?,
|
|
12
|
+
last: Integer?
|
|
13
|
+
}
|
|
14
|
+
& WhopSDK::Internal::Type::request_parameters
|
|
15
|
+
|
|
16
|
+
class PaymentTokenListParams < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor member_id: String
|
|
21
|
+
|
|
22
|
+
attr_accessor after: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor before: String?
|
|
25
|
+
|
|
26
|
+
attr_accessor created_after: Time?
|
|
27
|
+
|
|
28
|
+
attr_accessor created_before: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor direction: WhopSDK::Models::direction?
|
|
31
|
+
|
|
32
|
+
attr_accessor first: Integer?
|
|
33
|
+
|
|
34
|
+
attr_accessor last: Integer?
|
|
35
|
+
|
|
36
|
+
def initialize: (
|
|
37
|
+
member_id: String,
|
|
38
|
+
?after: String?,
|
|
39
|
+
?before: String?,
|
|
40
|
+
?created_after: Time?,
|
|
41
|
+
?created_before: Time?,
|
|
42
|
+
?direction: WhopSDK::Models::direction?,
|
|
43
|
+
?first: Integer?,
|
|
44
|
+
?last: Integer?,
|
|
45
|
+
?request_options: WhopSDK::request_opts
|
|
46
|
+
) -> void
|
|
47
|
+
|
|
48
|
+
def to_hash: -> {
|
|
49
|
+
member_id: String,
|
|
50
|
+
after: String?,
|
|
51
|
+
before: String?,
|
|
52
|
+
created_after: Time?,
|
|
53
|
+
created_before: Time?,
|
|
54
|
+
direction: WhopSDK::Models::direction?,
|
|
55
|
+
first: Integer?,
|
|
56
|
+
last: Integer?,
|
|
57
|
+
request_options: WhopSDK::RequestOptions
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payment_token_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
card: WhopSDK::Models::PaymentTokenListResponse::Card?,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class PaymentTokenListResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor card: WhopSDK::Models::PaymentTokenListResponse::Card?
|
|
15
|
+
|
|
16
|
+
attr_accessor created_at: Time
|
|
17
|
+
|
|
18
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
card: WhopSDK::Models::PaymentTokenListResponse::Card?,
|
|
23
|
+
created_at: Time,
|
|
24
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
id: String,
|
|
29
|
+
card: WhopSDK::Models::PaymentTokenListResponse::Card?,
|
|
30
|
+
created_at: Time,
|
|
31
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type card =
|
|
35
|
+
{
|
|
36
|
+
brand: WhopSDK::Models::card_brands?,
|
|
37
|
+
exp_month: Integer?,
|
|
38
|
+
exp_year: Integer?,
|
|
39
|
+
:last4 => String?
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
44
|
+
|
|
45
|
+
attr_accessor exp_month: Integer?
|
|
46
|
+
|
|
47
|
+
attr_accessor exp_year: Integer?
|
|
48
|
+
|
|
49
|
+
attr_accessor last4: String?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
brand: WhopSDK::Models::card_brands?,
|
|
53
|
+
exp_month: Integer?,
|
|
54
|
+
exp_year: Integer?,
|
|
55
|
+
last4: String?
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
brand: WhopSDK::Models::card_brands?,
|
|
60
|
+
exp_month: Integer?,
|
|
61
|
+
exp_year: Integer?,
|
|
62
|
+
:last4 => String?
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payment_token_retrieve_params =
|
|
4
|
+
{ member_id: String } & WhopSDK::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class PaymentTokenRetrieveParams < WhopSDK::Internal::Type::BaseModel
|
|
7
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
attr_accessor member_id: String
|
|
11
|
+
|
|
12
|
+
def initialize: (
|
|
13
|
+
member_id: String,
|
|
14
|
+
?request_options: WhopSDK::request_opts
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
member_id: String,
|
|
19
|
+
request_options: WhopSDK::RequestOptions
|
|
20
|
+
}
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type payment_token_retrieve_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
card: WhopSDK::Models::PaymentTokenRetrieveResponse::Card?,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class PaymentTokenRetrieveResponse < WhopSDK::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor id: String
|
|
13
|
+
|
|
14
|
+
attr_accessor card: WhopSDK::Models::PaymentTokenRetrieveResponse::Card?
|
|
15
|
+
|
|
16
|
+
attr_accessor created_at: Time
|
|
17
|
+
|
|
18
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
id: String,
|
|
22
|
+
card: WhopSDK::Models::PaymentTokenRetrieveResponse::Card?,
|
|
23
|
+
created_at: Time,
|
|
24
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
id: String,
|
|
29
|
+
card: WhopSDK::Models::PaymentTokenRetrieveResponse::Card?,
|
|
30
|
+
created_at: Time,
|
|
31
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
type card =
|
|
35
|
+
{
|
|
36
|
+
brand: WhopSDK::Models::card_brands?,
|
|
37
|
+
exp_month: Integer?,
|
|
38
|
+
exp_year: Integer?,
|
|
39
|
+
:last4 => String?
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
43
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
44
|
+
|
|
45
|
+
attr_accessor exp_month: Integer?
|
|
46
|
+
|
|
47
|
+
attr_accessor exp_year: Integer?
|
|
48
|
+
|
|
49
|
+
attr_accessor last4: String?
|
|
50
|
+
|
|
51
|
+
def initialize: (
|
|
52
|
+
brand: WhopSDK::Models::card_brands?,
|
|
53
|
+
exp_month: Integer?,
|
|
54
|
+
exp_year: Integer?,
|
|
55
|
+
last4: String?
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
brand: WhopSDK::Models::card_brands?,
|
|
60
|
+
exp_month: Integer?,
|
|
61
|
+
exp_year: Integer?,
|
|
62
|
+
:last4 => String?
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -18,8 +18,6 @@ module WhopSDK
|
|
|
18
18
|
release_method: WhopSDK::Models::release_method?,
|
|
19
19
|
renewal_price: Float?,
|
|
20
20
|
stock: Integer?,
|
|
21
|
-
strike_through_initial_price: Float?,
|
|
22
|
-
strike_through_renewal_price: Float?,
|
|
23
21
|
title: String?,
|
|
24
22
|
trial_period_days: Integer?,
|
|
25
23
|
unlimited_stock: bool?,
|
|
@@ -63,10 +61,6 @@ module WhopSDK
|
|
|
63
61
|
|
|
64
62
|
attr_accessor stock: Integer?
|
|
65
63
|
|
|
66
|
-
attr_accessor strike_through_initial_price: Float?
|
|
67
|
-
|
|
68
|
-
attr_accessor strike_through_renewal_price: Float?
|
|
69
|
-
|
|
70
64
|
attr_accessor title: String?
|
|
71
65
|
|
|
72
66
|
attr_accessor trial_period_days: Integer?
|
|
@@ -92,8 +86,6 @@ module WhopSDK
|
|
|
92
86
|
?release_method: WhopSDK::Models::release_method?,
|
|
93
87
|
?renewal_price: Float?,
|
|
94
88
|
?stock: Integer?,
|
|
95
|
-
?strike_through_initial_price: Float?,
|
|
96
|
-
?strike_through_renewal_price: Float?,
|
|
97
89
|
?title: String?,
|
|
98
90
|
?trial_period_days: Integer?,
|
|
99
91
|
?unlimited_stock: bool?,
|
|
@@ -118,8 +110,6 @@ module WhopSDK
|
|
|
118
110
|
release_method: WhopSDK::Models::release_method?,
|
|
119
111
|
renewal_price: Float?,
|
|
120
112
|
stock: Integer?,
|
|
121
|
-
strike_through_initial_price: Float?,
|
|
122
|
-
strike_through_renewal_price: Float?,
|
|
123
113
|
title: String?,
|
|
124
114
|
trial_period_days: Integer?,
|
|
125
115
|
unlimited_stock: bool?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
company_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?,
|
|
@@ -26,6 +28,10 @@ module WhopSDK
|
|
|
26
28
|
|
|
27
29
|
attr_accessor before: String?
|
|
28
30
|
|
|
31
|
+
attr_accessor created_after: Time?
|
|
32
|
+
|
|
33
|
+
attr_accessor created_before: Time?
|
|
34
|
+
|
|
29
35
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
30
36
|
|
|
31
37
|
attr_accessor first: Integer?
|
|
@@ -46,6 +52,8 @@ module WhopSDK
|
|
|
46
52
|
company_id: String,
|
|
47
53
|
?after: String?,
|
|
48
54
|
?before: String?,
|
|
55
|
+
?created_after: Time?,
|
|
56
|
+
?created_before: Time?,
|
|
49
57
|
?direction: WhopSDK::Models::direction?,
|
|
50
58
|
?first: Integer?,
|
|
51
59
|
?last: Integer?,
|
|
@@ -61,6 +69,8 @@ module WhopSDK
|
|
|
61
69
|
company_id: String,
|
|
62
70
|
after: String?,
|
|
63
71
|
before: String?,
|
|
72
|
+
created_after: Time?,
|
|
73
|
+
created_before: Time?,
|
|
64
74
|
direction: WhopSDK::Models::direction?,
|
|
65
75
|
first: Integer?,
|
|
66
76
|
last: Integer?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
company_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
direction: WhopSDK::Models::direction?,
|
|
9
11
|
first: Integer?,
|
|
10
12
|
last: Integer?,
|
|
@@ -24,6 +26,10 @@ module WhopSDK
|
|
|
24
26
|
|
|
25
27
|
attr_accessor before: String?
|
|
26
28
|
|
|
29
|
+
attr_accessor created_after: Time?
|
|
30
|
+
|
|
31
|
+
attr_accessor created_before: Time?
|
|
32
|
+
|
|
27
33
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
28
34
|
|
|
29
35
|
attr_accessor first: Integer?
|
|
@@ -40,6 +46,8 @@ module WhopSDK
|
|
|
40
46
|
company_id: String,
|
|
41
47
|
?after: String?,
|
|
42
48
|
?before: String?,
|
|
49
|
+
?created_after: Time?,
|
|
50
|
+
?created_before: Time?,
|
|
43
51
|
?direction: WhopSDK::Models::direction?,
|
|
44
52
|
?first: Integer?,
|
|
45
53
|
?last: Integer?,
|
|
@@ -53,6 +61,8 @@ module WhopSDK
|
|
|
53
61
|
company_id: String,
|
|
54
62
|
after: String?,
|
|
55
63
|
before: String?,
|
|
64
|
+
created_after: Time?,
|
|
65
|
+
created_before: Time?,
|
|
56
66
|
direction: WhopSDK::Models::direction?,
|
|
57
67
|
first: Integer?,
|
|
58
68
|
last: Integer?,
|