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
|
@@ -2,7 +2,6 @@ module WhopSDK
|
|
|
2
2
|
module Models
|
|
3
3
|
type product_update_params =
|
|
4
4
|
{
|
|
5
|
-
banner_image: WhopSDK::Models::ProductUpdateParams::banner_image?,
|
|
6
5
|
business_type: WhopSDK::Models::business_types?,
|
|
7
6
|
collect_shipping_address: bool?,
|
|
8
7
|
custom_cta: WhopSDK::Models::custom_cta?,
|
|
@@ -28,8 +27,6 @@ module WhopSDK
|
|
|
28
27
|
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
29
28
|
include WhopSDK::Internal::Type::RequestParameters
|
|
30
29
|
|
|
31
|
-
attr_accessor banner_image: WhopSDK::Models::ProductUpdateParams::banner_image?
|
|
32
|
-
|
|
33
30
|
attr_accessor business_type: WhopSDK::Models::business_types?
|
|
34
31
|
|
|
35
32
|
attr_accessor collect_shipping_address: bool?
|
|
@@ -67,7 +64,6 @@ module WhopSDK
|
|
|
67
64
|
attr_accessor visibility: WhopSDK::Models::visibility?
|
|
68
65
|
|
|
69
66
|
def initialize: (
|
|
70
|
-
?banner_image: WhopSDK::Models::ProductUpdateParams::banner_image?,
|
|
71
67
|
?business_type: WhopSDK::Models::business_types?,
|
|
72
68
|
?collect_shipping_address: bool?,
|
|
73
69
|
?custom_cta: WhopSDK::Models::custom_cta?,
|
|
@@ -90,7 +86,6 @@ module WhopSDK
|
|
|
90
86
|
) -> void
|
|
91
87
|
|
|
92
88
|
def to_hash: -> {
|
|
93
|
-
banner_image: WhopSDK::Models::ProductUpdateParams::banner_image?,
|
|
94
89
|
business_type: WhopSDK::Models::business_types?,
|
|
95
90
|
collect_shipping_address: bool?,
|
|
96
91
|
custom_cta: WhopSDK::Models::custom_cta?,
|
|
@@ -112,37 +107,6 @@ module WhopSDK
|
|
|
112
107
|
request_options: WhopSDK::RequestOptions
|
|
113
108
|
}
|
|
114
109
|
|
|
115
|
-
type banner_image =
|
|
116
|
-
WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithDirectUploadID
|
|
117
|
-
| WhopSDK::ProductUpdateParams::BannerImage::AttachmentInputWithID
|
|
118
|
-
|
|
119
|
-
module BannerImage
|
|
120
|
-
extend WhopSDK::Internal::Type::Union
|
|
121
|
-
|
|
122
|
-
type attachment_input_with_direct_upload_id =
|
|
123
|
-
{ direct_upload_id: String }
|
|
124
|
-
|
|
125
|
-
class AttachmentInputWithDirectUploadID < WhopSDK::Internal::Type::BaseModel
|
|
126
|
-
attr_accessor direct_upload_id: String
|
|
127
|
-
|
|
128
|
-
def initialize: (direct_upload_id: String) -> void
|
|
129
|
-
|
|
130
|
-
def to_hash: -> { direct_upload_id: String }
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
type attachment_input_with_id = { id: String }
|
|
134
|
-
|
|
135
|
-
class AttachmentInputWithID < WhopSDK::Internal::Type::BaseModel
|
|
136
|
-
attr_accessor id: String
|
|
137
|
-
|
|
138
|
-
def initialize: (id: String) -> void
|
|
139
|
-
|
|
140
|
-
def to_hash: -> { id: String }
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def self?.variants: -> ::Array[WhopSDK::Models::ProductUpdateParams::banner_image]
|
|
144
|
-
end
|
|
145
|
-
|
|
146
110
|
type store_page_config = { custom_cta: String?, show_price: bool? }
|
|
147
111
|
|
|
148
112
|
class StorePageConfig < WhopSDK::Internal::Type::BaseModel
|
|
@@ -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
|
first: Integer?,
|
|
9
11
|
last: Integer?,
|
|
10
12
|
plan_ids: ::Array[String]?,
|
|
@@ -23,6 +25,10 @@ module WhopSDK
|
|
|
23
25
|
|
|
24
26
|
attr_accessor before: String?
|
|
25
27
|
|
|
28
|
+
attr_accessor created_after: Time?
|
|
29
|
+
|
|
30
|
+
attr_accessor created_before: Time?
|
|
31
|
+
|
|
26
32
|
attr_accessor first: Integer?
|
|
27
33
|
|
|
28
34
|
attr_accessor last: Integer?
|
|
@@ -37,6 +43,8 @@ module WhopSDK
|
|
|
37
43
|
company_id: String,
|
|
38
44
|
?after: String?,
|
|
39
45
|
?before: String?,
|
|
46
|
+
?created_after: Time?,
|
|
47
|
+
?created_before: Time?,
|
|
40
48
|
?first: Integer?,
|
|
41
49
|
?last: Integer?,
|
|
42
50
|
?plan_ids: ::Array[String]?,
|
|
@@ -49,6 +57,8 @@ module WhopSDK
|
|
|
49
57
|
company_id: String,
|
|
50
58
|
after: String?,
|
|
51
59
|
before: String?,
|
|
60
|
+
created_after: Time?,
|
|
61
|
+
created_before: Time?,
|
|
52
62
|
first: Integer?,
|
|
53
63
|
last: Integer?,
|
|
54
64
|
plan_ids: ::Array[String]?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
payment_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?
|
|
@@ -21,6 +23,10 @@ module WhopSDK
|
|
|
21
23
|
|
|
22
24
|
attr_accessor before: String?
|
|
23
25
|
|
|
26
|
+
attr_accessor created_after: Time?
|
|
27
|
+
|
|
28
|
+
attr_accessor created_before: Time?
|
|
29
|
+
|
|
24
30
|
attr_accessor direction: WhopSDK::Models::direction?
|
|
25
31
|
|
|
26
32
|
attr_accessor first: Integer?
|
|
@@ -31,6 +37,8 @@ module WhopSDK
|
|
|
31
37
|
payment_id: String,
|
|
32
38
|
?after: String?,
|
|
33
39
|
?before: String?,
|
|
40
|
+
?created_after: Time?,
|
|
41
|
+
?created_before: Time?,
|
|
34
42
|
?direction: WhopSDK::Models::direction?,
|
|
35
43
|
?first: Integer?,
|
|
36
44
|
?last: Integer?,
|
|
@@ -41,6 +49,8 @@ module WhopSDK
|
|
|
41
49
|
payment_id: String,
|
|
42
50
|
after: String?,
|
|
43
51
|
before: String?,
|
|
52
|
+
created_after: Time?,
|
|
53
|
+
created_before: Time?,
|
|
44
54
|
direction: WhopSDK::Models::direction?,
|
|
45
55
|
first: Integer?,
|
|
46
56
|
last: Integer?,
|
|
@@ -5,6 +5,8 @@ module WhopSDK
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
after: String?,
|
|
7
7
|
before: String?,
|
|
8
|
+
created_after: Time?,
|
|
9
|
+
created_before: Time?,
|
|
8
10
|
first: Integer?,
|
|
9
11
|
last: Integer?,
|
|
10
12
|
max_stars: Integer?,
|
|
@@ -22,6 +24,10 @@ module WhopSDK
|
|
|
22
24
|
|
|
23
25
|
attr_accessor before: String?
|
|
24
26
|
|
|
27
|
+
attr_accessor created_after: Time?
|
|
28
|
+
|
|
29
|
+
attr_accessor created_before: Time?
|
|
30
|
+
|
|
25
31
|
attr_accessor first: Integer?
|
|
26
32
|
|
|
27
33
|
attr_accessor last: Integer?
|
|
@@ -34,6 +40,8 @@ module WhopSDK
|
|
|
34
40
|
product_id: String,
|
|
35
41
|
?after: String?,
|
|
36
42
|
?before: String?,
|
|
43
|
+
?created_after: Time?,
|
|
44
|
+
?created_before: Time?,
|
|
37
45
|
?first: Integer?,
|
|
38
46
|
?last: Integer?,
|
|
39
47
|
?max_stars: Integer?,
|
|
@@ -45,6 +53,8 @@ module WhopSDK
|
|
|
45
53
|
product_id: String,
|
|
46
54
|
after: String?,
|
|
47
55
|
before: String?,
|
|
56
|
+
created_after: Time?,
|
|
57
|
+
created_before: Time?,
|
|
48
58
|
first: Integer?,
|
|
49
59
|
last: Integer?,
|
|
50
60
|
max_stars: Integer?,
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
checkout_configuration: WhopSDK::SetupIntent::CheckoutConfiguration?,
|
|
7
|
+
company: WhopSDK::SetupIntent::Company?,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
error_message: String?,
|
|
10
|
+
member: WhopSDK::SetupIntent::Member?,
|
|
11
|
+
metadata: ::Hash[Symbol, top]?,
|
|
12
|
+
payment_token: WhopSDK::SetupIntent::PaymentToken?,
|
|
13
|
+
status: WhopSDK::Models::setup_intent_status
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class SetupIntent < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor checkout_configuration: WhopSDK::SetupIntent::CheckoutConfiguration?
|
|
20
|
+
|
|
21
|
+
attr_accessor company: WhopSDK::SetupIntent::Company?
|
|
22
|
+
|
|
23
|
+
attr_accessor created_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor error_message: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor member: WhopSDK::SetupIntent::Member?
|
|
28
|
+
|
|
29
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
30
|
+
|
|
31
|
+
attr_accessor payment_token: WhopSDK::SetupIntent::PaymentToken?
|
|
32
|
+
|
|
33
|
+
attr_accessor status: WhopSDK::Models::setup_intent_status
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
id: String,
|
|
37
|
+
checkout_configuration: WhopSDK::SetupIntent::CheckoutConfiguration?,
|
|
38
|
+
company: WhopSDK::SetupIntent::Company?,
|
|
39
|
+
created_at: Time,
|
|
40
|
+
error_message: String?,
|
|
41
|
+
member: WhopSDK::SetupIntent::Member?,
|
|
42
|
+
metadata: ::Hash[Symbol, top]?,
|
|
43
|
+
payment_token: WhopSDK::SetupIntent::PaymentToken?,
|
|
44
|
+
status: WhopSDK::Models::setup_intent_status
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
checkout_configuration: WhopSDK::SetupIntent::CheckoutConfiguration?,
|
|
50
|
+
company: WhopSDK::SetupIntent::Company?,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
error_message: String?,
|
|
53
|
+
member: WhopSDK::SetupIntent::Member?,
|
|
54
|
+
metadata: ::Hash[Symbol, top]?,
|
|
55
|
+
payment_token: WhopSDK::SetupIntent::PaymentToken?,
|
|
56
|
+
status: WhopSDK::Models::setup_intent_status
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type checkout_configuration = { id: String }
|
|
60
|
+
|
|
61
|
+
class CheckoutConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
attr_accessor id: String
|
|
63
|
+
|
|
64
|
+
def initialize: (id: String) -> void
|
|
65
|
+
|
|
66
|
+
def to_hash: -> { id: String }
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
type company = { id: String }
|
|
70
|
+
|
|
71
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
72
|
+
attr_accessor id: String
|
|
73
|
+
|
|
74
|
+
def initialize: (id: String) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> { id: String }
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
type member = { id: String, user: WhopSDK::SetupIntent::Member::User? }
|
|
80
|
+
|
|
81
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
82
|
+
attr_accessor id: String
|
|
83
|
+
|
|
84
|
+
attr_accessor user: WhopSDK::SetupIntent::Member::User?
|
|
85
|
+
|
|
86
|
+
def initialize: (
|
|
87
|
+
id: String,
|
|
88
|
+
user: WhopSDK::SetupIntent::Member::User?
|
|
89
|
+
) -> void
|
|
90
|
+
|
|
91
|
+
def to_hash: -> {
|
|
92
|
+
id: String,
|
|
93
|
+
user: WhopSDK::SetupIntent::Member::User?
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
type user =
|
|
97
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
98
|
+
|
|
99
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
100
|
+
attr_accessor id: String
|
|
101
|
+
|
|
102
|
+
attr_accessor email: String?
|
|
103
|
+
|
|
104
|
+
attr_accessor name: String?
|
|
105
|
+
|
|
106
|
+
attr_accessor username: String
|
|
107
|
+
|
|
108
|
+
def initialize: (
|
|
109
|
+
id: String,
|
|
110
|
+
email: String?,
|
|
111
|
+
name: String?,
|
|
112
|
+
username: String
|
|
113
|
+
) -> void
|
|
114
|
+
|
|
115
|
+
def to_hash: -> {
|
|
116
|
+
id: String,
|
|
117
|
+
email: String?,
|
|
118
|
+
name: String?,
|
|
119
|
+
username: String
|
|
120
|
+
}
|
|
121
|
+
end
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
type payment_token =
|
|
125
|
+
{
|
|
126
|
+
id: String,
|
|
127
|
+
card: WhopSDK::SetupIntent::PaymentToken::Card?,
|
|
128
|
+
created_at: Time,
|
|
129
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
class PaymentToken < WhopSDK::Internal::Type::BaseModel
|
|
133
|
+
attr_accessor id: String
|
|
134
|
+
|
|
135
|
+
attr_accessor card: WhopSDK::SetupIntent::PaymentToken::Card?
|
|
136
|
+
|
|
137
|
+
attr_accessor created_at: Time
|
|
138
|
+
|
|
139
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
140
|
+
|
|
141
|
+
def initialize: (
|
|
142
|
+
id: String,
|
|
143
|
+
card: WhopSDK::SetupIntent::PaymentToken::Card?,
|
|
144
|
+
created_at: Time,
|
|
145
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
146
|
+
) -> void
|
|
147
|
+
|
|
148
|
+
def to_hash: -> {
|
|
149
|
+
id: String,
|
|
150
|
+
card: WhopSDK::SetupIntent::PaymentToken::Card?,
|
|
151
|
+
created_at: Time,
|
|
152
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
type card =
|
|
156
|
+
{
|
|
157
|
+
brand: WhopSDK::Models::card_brands?,
|
|
158
|
+
exp_month: Integer?,
|
|
159
|
+
exp_year: Integer?,
|
|
160
|
+
:last4 => String?
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
164
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
165
|
+
|
|
166
|
+
attr_accessor exp_month: Integer?
|
|
167
|
+
|
|
168
|
+
attr_accessor exp_year: Integer?
|
|
169
|
+
|
|
170
|
+
attr_accessor last4: String?
|
|
171
|
+
|
|
172
|
+
def initialize: (
|
|
173
|
+
brand: WhopSDK::Models::card_brands?,
|
|
174
|
+
exp_month: Integer?,
|
|
175
|
+
exp_year: Integer?,
|
|
176
|
+
last4: String?
|
|
177
|
+
) -> void
|
|
178
|
+
|
|
179
|
+
def to_hash: -> {
|
|
180
|
+
brand: WhopSDK::Models::card_brands?,
|
|
181
|
+
exp_month: Integer?,
|
|
182
|
+
exp_year: Integer?,
|
|
183
|
+
:last4 => String?
|
|
184
|
+
}
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_canceled_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::SetupIntent,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"setup_intent.canceled"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class SetupIntentCanceledWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::SetupIntent
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"setup_intent.canceled"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::SetupIntent,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"setup_intent.canceled"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::SetupIntent,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"setup_intent.canceled"
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_list_params =
|
|
4
|
+
{
|
|
5
|
+
company_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 SetupIntentListParams < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
extend WhopSDK::Internal::Type::RequestParameters::Converter
|
|
18
|
+
include WhopSDK::Internal::Type::RequestParameters
|
|
19
|
+
|
|
20
|
+
attr_accessor company_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
|
+
company_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
|
+
company_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,193 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_list_response =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
checkout_configuration: WhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration?,
|
|
7
|
+
company: WhopSDK::Models::SetupIntentListResponse::Company?,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
error_message: String?,
|
|
10
|
+
member: WhopSDK::Models::SetupIntentListResponse::Member?,
|
|
11
|
+
metadata: ::Hash[Symbol, top]?,
|
|
12
|
+
payment_token: WhopSDK::Models::SetupIntentListResponse::PaymentToken?,
|
|
13
|
+
status: WhopSDK::Models::setup_intent_status
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
class SetupIntentListResponse < WhopSDK::Internal::Type::BaseModel
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
19
|
+
attr_accessor checkout_configuration: WhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration?
|
|
20
|
+
|
|
21
|
+
attr_accessor company: WhopSDK::Models::SetupIntentListResponse::Company?
|
|
22
|
+
|
|
23
|
+
attr_accessor created_at: Time
|
|
24
|
+
|
|
25
|
+
attr_accessor error_message: String?
|
|
26
|
+
|
|
27
|
+
attr_accessor member: WhopSDK::Models::SetupIntentListResponse::Member?
|
|
28
|
+
|
|
29
|
+
attr_accessor metadata: ::Hash[Symbol, top]?
|
|
30
|
+
|
|
31
|
+
attr_accessor payment_token: WhopSDK::Models::SetupIntentListResponse::PaymentToken?
|
|
32
|
+
|
|
33
|
+
attr_accessor status: WhopSDK::Models::setup_intent_status
|
|
34
|
+
|
|
35
|
+
def initialize: (
|
|
36
|
+
id: String,
|
|
37
|
+
checkout_configuration: WhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration?,
|
|
38
|
+
company: WhopSDK::Models::SetupIntentListResponse::Company?,
|
|
39
|
+
created_at: Time,
|
|
40
|
+
error_message: String?,
|
|
41
|
+
member: WhopSDK::Models::SetupIntentListResponse::Member?,
|
|
42
|
+
metadata: ::Hash[Symbol, top]?,
|
|
43
|
+
payment_token: WhopSDK::Models::SetupIntentListResponse::PaymentToken?,
|
|
44
|
+
status: WhopSDK::Models::setup_intent_status
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
id: String,
|
|
49
|
+
checkout_configuration: WhopSDK::Models::SetupIntentListResponse::CheckoutConfiguration?,
|
|
50
|
+
company: WhopSDK::Models::SetupIntentListResponse::Company?,
|
|
51
|
+
created_at: Time,
|
|
52
|
+
error_message: String?,
|
|
53
|
+
member: WhopSDK::Models::SetupIntentListResponse::Member?,
|
|
54
|
+
metadata: ::Hash[Symbol, top]?,
|
|
55
|
+
payment_token: WhopSDK::Models::SetupIntentListResponse::PaymentToken?,
|
|
56
|
+
status: WhopSDK::Models::setup_intent_status
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
type checkout_configuration = { id: String }
|
|
60
|
+
|
|
61
|
+
class CheckoutConfiguration < WhopSDK::Internal::Type::BaseModel
|
|
62
|
+
attr_accessor id: String
|
|
63
|
+
|
|
64
|
+
def initialize: (id: String) -> void
|
|
65
|
+
|
|
66
|
+
def to_hash: -> { id: String }
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
type company = { id: String }
|
|
70
|
+
|
|
71
|
+
class Company < WhopSDK::Internal::Type::BaseModel
|
|
72
|
+
attr_accessor id: String
|
|
73
|
+
|
|
74
|
+
def initialize: (id: String) -> void
|
|
75
|
+
|
|
76
|
+
def to_hash: -> { id: String }
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
type member =
|
|
80
|
+
{
|
|
81
|
+
id: String,
|
|
82
|
+
user: WhopSDK::Models::SetupIntentListResponse::Member::User?
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class Member < WhopSDK::Internal::Type::BaseModel
|
|
86
|
+
attr_accessor id: String
|
|
87
|
+
|
|
88
|
+
attr_accessor user: WhopSDK::Models::SetupIntentListResponse::Member::User?
|
|
89
|
+
|
|
90
|
+
def initialize: (
|
|
91
|
+
id: String,
|
|
92
|
+
user: WhopSDK::Models::SetupIntentListResponse::Member::User?
|
|
93
|
+
) -> void
|
|
94
|
+
|
|
95
|
+
def to_hash: -> {
|
|
96
|
+
id: String,
|
|
97
|
+
user: WhopSDK::Models::SetupIntentListResponse::Member::User?
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type user =
|
|
101
|
+
{ id: String, email: String?, name: String?, username: String }
|
|
102
|
+
|
|
103
|
+
class User < WhopSDK::Internal::Type::BaseModel
|
|
104
|
+
attr_accessor id: String
|
|
105
|
+
|
|
106
|
+
attr_accessor email: String?
|
|
107
|
+
|
|
108
|
+
attr_accessor name: String?
|
|
109
|
+
|
|
110
|
+
attr_accessor username: String
|
|
111
|
+
|
|
112
|
+
def initialize: (
|
|
113
|
+
id: String,
|
|
114
|
+
email: String?,
|
|
115
|
+
name: String?,
|
|
116
|
+
username: String
|
|
117
|
+
) -> void
|
|
118
|
+
|
|
119
|
+
def to_hash: -> {
|
|
120
|
+
id: String,
|
|
121
|
+
email: String?,
|
|
122
|
+
name: String?,
|
|
123
|
+
username: String
|
|
124
|
+
}
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
type payment_token =
|
|
129
|
+
{
|
|
130
|
+
id: String,
|
|
131
|
+
card: WhopSDK::Models::SetupIntentListResponse::PaymentToken::Card?,
|
|
132
|
+
created_at: Time,
|
|
133
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
class PaymentToken < WhopSDK::Internal::Type::BaseModel
|
|
137
|
+
attr_accessor id: String
|
|
138
|
+
|
|
139
|
+
attr_accessor card: WhopSDK::Models::SetupIntentListResponse::PaymentToken::Card?
|
|
140
|
+
|
|
141
|
+
attr_accessor created_at: Time
|
|
142
|
+
|
|
143
|
+
attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
|
|
144
|
+
|
|
145
|
+
def initialize: (
|
|
146
|
+
id: String,
|
|
147
|
+
card: WhopSDK::Models::SetupIntentListResponse::PaymentToken::Card?,
|
|
148
|
+
created_at: Time,
|
|
149
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
150
|
+
) -> void
|
|
151
|
+
|
|
152
|
+
def to_hash: -> {
|
|
153
|
+
id: String,
|
|
154
|
+
card: WhopSDK::Models::SetupIntentListResponse::PaymentToken::Card?,
|
|
155
|
+
created_at: Time,
|
|
156
|
+
payment_method_type: WhopSDK::Models::payment_method_types
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
type card =
|
|
160
|
+
{
|
|
161
|
+
brand: WhopSDK::Models::card_brands?,
|
|
162
|
+
exp_month: Integer?,
|
|
163
|
+
exp_year: Integer?,
|
|
164
|
+
:last4 => String?
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
class Card < WhopSDK::Internal::Type::BaseModel
|
|
168
|
+
attr_accessor brand: WhopSDK::Models::card_brands?
|
|
169
|
+
|
|
170
|
+
attr_accessor exp_month: Integer?
|
|
171
|
+
|
|
172
|
+
attr_accessor exp_year: Integer?
|
|
173
|
+
|
|
174
|
+
attr_accessor last4: String?
|
|
175
|
+
|
|
176
|
+
def initialize: (
|
|
177
|
+
brand: WhopSDK::Models::card_brands?,
|
|
178
|
+
exp_month: Integer?,
|
|
179
|
+
exp_year: Integer?,
|
|
180
|
+
last4: String?
|
|
181
|
+
) -> void
|
|
182
|
+
|
|
183
|
+
def to_hash: -> {
|
|
184
|
+
brand: WhopSDK::Models::card_brands?,
|
|
185
|
+
exp_month: Integer?,
|
|
186
|
+
exp_year: Integer?,
|
|
187
|
+
:last4 => String?
|
|
188
|
+
}
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module WhopSDK
|
|
2
|
+
module Models
|
|
3
|
+
type setup_intent_requires_action_webhook_event =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
api_version: :v1,
|
|
7
|
+
data: WhopSDK::SetupIntent,
|
|
8
|
+
timestamp: Time,
|
|
9
|
+
type: :"setup_intent.requires_action"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
class SetupIntentRequiresActionWebhookEvent < WhopSDK::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor id: String
|
|
14
|
+
|
|
15
|
+
attr_accessor api_version: :v1
|
|
16
|
+
|
|
17
|
+
attr_accessor data: WhopSDK::SetupIntent
|
|
18
|
+
|
|
19
|
+
attr_accessor timestamp: Time
|
|
20
|
+
|
|
21
|
+
attr_accessor type: :"setup_intent.requires_action"
|
|
22
|
+
|
|
23
|
+
def initialize: (
|
|
24
|
+
id: String,
|
|
25
|
+
data: WhopSDK::SetupIntent,
|
|
26
|
+
timestamp: Time,
|
|
27
|
+
?api_version: :v1,
|
|
28
|
+
?type: :"setup_intent.requires_action"
|
|
29
|
+
) -> void
|
|
30
|
+
|
|
31
|
+
def to_hash: -> {
|
|
32
|
+
id: String,
|
|
33
|
+
api_version: :v1,
|
|
34
|
+
data: WhopSDK::SetupIntent,
|
|
35
|
+
timestamp: Time,
|
|
36
|
+
type: :"setup_intent.requires_action"
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|