whop_sdk 0.0.23 → 0.0.24
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 +35 -0
- data/README.md +1 -1
- data/lib/whop_sdk/models/app_build_create_params.rb +16 -55
- data/lib/whop_sdk/models/app_create_params.rb +22 -1
- data/lib/whop_sdk/models/app_list_params.rb +5 -0
- data/lib/whop_sdk/models/app_update_params.rb +14 -53
- data/lib/whop_sdk/models/card_brands.rb +16 -0
- data/lib/whop_sdk/models/checkout_configuration_create_params.rb +32 -56
- data/lib/whop_sdk/models/company_create_params.rb +22 -1
- data/lib/whop_sdk/models/company_update_params.rb +28 -106
- data/lib/whop_sdk/models/course_create_params.rb +15 -62
- data/lib/whop_sdk/models/course_lesson_create_params.rb +14 -53
- data/lib/whop_sdk/models/course_lesson_update_params.rb +53 -214
- data/lib/whop_sdk/models/course_update_params.rb +14 -61
- data/lib/whop_sdk/models/dispute_update_evidence_params.rb +56 -212
- data/lib/whop_sdk/models/experience_create_params.rb +22 -1
- data/lib/whop_sdk/models/experience_update_params.rb +14 -53
- data/lib/whop_sdk/models/forum_post_create_params.rb +13 -52
- data/lib/whop_sdk/models/forum_post_update_params.rb +13 -52
- data/lib/whop_sdk/models/friendly_receipt_status.rb +23 -11
- data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +1 -34
- data/lib/whop_sdk/models/member_list_response.rb +9 -1
- data/lib/whop_sdk/models/member_retrieve_response.rb +9 -1
- data/lib/whop_sdk/models/membership.rb +76 -2
- data/lib/whop_sdk/models/membership_list_response.rb +38 -2
- data/lib/whop_sdk/models/membership_uncancel_params.rb +14 -0
- data/lib/whop_sdk/models/message_create_params.rb +13 -52
- data/lib/whop_sdk/models/message_update_params.rb +14 -53
- data/lib/whop_sdk/models/payment.rb +17 -1
- data/lib/whop_sdk/models/payment_list_response.rb +17 -1
- data/lib/whop_sdk/models/payment_method_types.rb +58 -57
- data/lib/whop_sdk/models/payment_provider.rb +1 -0
- data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +26 -1
- data/lib/whop_sdk/models/payout_method_list_response.rb +26 -1
- data/lib/whop_sdk/models/payout_method_retrieve_response.rb +26 -1
- data/lib/whop_sdk/models/plan_create_params.rb +14 -53
- data/lib/whop_sdk/models/plan_update_params.rb +14 -53
- data/lib/whop_sdk/models/withdrawal_create_params.rb +21 -1
- data/lib/whop_sdk/models/withdrawal_create_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_list_response.rb +1 -9
- data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +2 -9
- data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +2 -9
- data/lib/whop_sdk/models.rb +2 -2
- data/lib/whop_sdk/resources/app_builds.rb +1 -1
- data/lib/whop_sdk/resources/apps.rb +4 -2
- data/lib/whop_sdk/resources/checkout_configurations.rb +3 -1
- data/lib/whop_sdk/resources/companies.rb +5 -3
- data/lib/whop_sdk/resources/course_lessons.rb +4 -4
- data/lib/whop_sdk/resources/courses.rb +4 -8
- data/lib/whop_sdk/resources/disputes.rb +4 -4
- data/lib/whop_sdk/resources/experiences.rb +4 -2
- data/lib/whop_sdk/resources/forum_posts.rb +2 -2
- data/lib/whop_sdk/resources/memberships.rb +32 -0
- data/lib/whop_sdk/resources/messages.rb +2 -2
- data/lib/whop_sdk/resources/notifications.rb +4 -0
- data/lib/whop_sdk/resources/plans.rb +2 -2
- data/lib/whop_sdk/resources/withdrawals.rb +8 -1
- data/lib/whop_sdk/version.rb +1 -1
- data/lib/whop_sdk.rb +1 -1
- data/rbi/whop_sdk/models/app_build_create_params.rbi +26 -89
- data/rbi/whop_sdk/models/app_create_params.rbi +36 -0
- data/rbi/whop_sdk/models/app_list_params.rbi +10 -0
- data/rbi/whop_sdk/models/app_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/card_brands.rbi +17 -0
- data/rbi/whop_sdk/models/checkout_configuration_create_params.rbi +45 -87
- data/rbi/whop_sdk/models/company_create_params.rbi +39 -0
- data/rbi/whop_sdk/models/company_update_params.rbi +47 -185
- data/rbi/whop_sdk/models/course_create_params.rbi +24 -101
- data/rbi/whop_sdk/models/course_lesson_create_params.rbi +25 -92
- data/rbi/whop_sdk/models/course_lesson_update_params.rbi +97 -359
- data/rbi/whop_sdk/models/course_update_params.rbi +24 -101
- data/rbi/whop_sdk/models/dispute_update_evidence_params.rbi +116 -340
- data/rbi/whop_sdk/models/experience_create_params.rbi +41 -0
- data/rbi/whop_sdk/models/experience_update_params.rbi +24 -93
- data/rbi/whop_sdk/models/forum_post_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/forum_post_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/friendly_receipt_status.rbi +62 -17
- data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +0 -105
- data/rbi/whop_sdk/models/member_list_response.rbi +8 -0
- data/rbi/whop_sdk/models/member_retrieve_response.rbi +8 -0
- data/rbi/whop_sdk/models/membership.rbi +126 -4
- data/rbi/whop_sdk/models/membership_list_response.rbi +98 -4
- data/rbi/whop_sdk/models/membership_uncancel_params.rbi +27 -0
- data/rbi/whop_sdk/models/message_create_params.rbi +18 -94
- data/rbi/whop_sdk/models/message_update_params.rbi +18 -94
- data/rbi/whop_sdk/models/payment.rbi +16 -0
- data/rbi/whop_sdk/models/payment_list_response.rbi +16 -0
- data/rbi/whop_sdk/models/payment_method_types.rbi +66 -64
- data/rbi/whop_sdk/models/payment_provider.rbi +1 -0
- data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_list_response.rbi +26 -0
- data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +26 -0
- data/rbi/whop_sdk/models/plan_create_params.rbi +21 -93
- data/rbi/whop_sdk/models/plan_update_params.rbi +21 -93
- data/rbi/whop_sdk/models/withdrawal_create_params.rbi +18 -0
- data/rbi/whop_sdk/models/withdrawal_create_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_list_response.rbi +3 -11
- data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +8 -11
- data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +8 -11
- data/rbi/whop_sdk/models.rbi +2 -2
- data/rbi/whop_sdk/resources/app_builds.rbi +1 -5
- data/rbi/whop_sdk/resources/apps.rbi +4 -7
- data/rbi/whop_sdk/resources/checkout_configurations.rbi +3 -0
- data/rbi/whop_sdk/resources/companies.rbi +5 -13
- data/rbi/whop_sdk/resources/course_lessons.rbi +4 -24
- data/rbi/whop_sdk/resources/courses.rbi +2 -20
- data/rbi/whop_sdk/resources/disputes.rbi +4 -16
- data/rbi/whop_sdk/resources/experiences.rbi +4 -7
- data/rbi/whop_sdk/resources/forum_posts.rbi +2 -12
- data/rbi/whop_sdk/resources/memberships.rbi +26 -0
- data/rbi/whop_sdk/resources/messages.rbi +2 -12
- data/rbi/whop_sdk/resources/notifications.rbi +4 -0
- data/rbi/whop_sdk/resources/plans.rbi +2 -14
- data/rbi/whop_sdk/resources/withdrawals.rbi +7 -0
- data/sig/whop_sdk/models/app_build_create_params.rbs +9 -30
- data/sig/whop_sdk/models/app_create_params.rbs +20 -1
- data/sig/whop_sdk/models/app_list_params.rbs +10 -0
- data/sig/whop_sdk/models/app_update_params.rbs +9 -30
- data/sig/whop_sdk/models/card_brands.rbs +32 -0
- data/sig/whop_sdk/models/checkout_configuration_create_params.rbs +19 -30
- data/sig/whop_sdk/models/company_create_params.rbs +15 -0
- data/sig/whop_sdk/models/company_update_params.rbs +18 -60
- data/sig/whop_sdk/models/course_create_params.rbs +9 -35
- data/sig/whop_sdk/models/course_lesson_create_params.rbs +9 -30
- data/sig/whop_sdk/models/course_lesson_update_params.rbs +36 -120
- data/sig/whop_sdk/models/course_update_params.rbs +9 -35
- data/sig/whop_sdk/models/dispute_update_evidence_params.rbs +36 -120
- data/sig/whop_sdk/models/experience_create_params.rbs +15 -0
- data/sig/whop_sdk/models/experience_update_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_create_params.rbs +9 -30
- data/sig/whop_sdk/models/forum_post_update_params.rbs +9 -30
- data/sig/whop_sdk/models/friendly_receipt_status.rbs +46 -22
- data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +0 -38
- data/sig/whop_sdk/models/member_list_response.rbs +5 -0
- data/sig/whop_sdk/models/member_retrieve_response.rbs +5 -0
- data/sig/whop_sdk/models/membership.rbs +65 -4
- data/sig/whop_sdk/models/membership_list_response.rbs +45 -4
- data/sig/whop_sdk/models/membership_uncancel_params.rbs +15 -0
- data/sig/whop_sdk/models/message_create_params.rbs +9 -30
- data/sig/whop_sdk/models/message_update_params.rbs +9 -30
- data/sig/whop_sdk/models/payment.rbs +10 -0
- data/sig/whop_sdk/models/payment_list_response.rbs +10 -0
- data/sig/whop_sdk/models/payment_method_types.rbs +117 -115
- data/sig/whop_sdk/models/payment_provider.rbs +2 -0
- data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_list_response.rbs +15 -0
- data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +15 -0
- data/sig/whop_sdk/models/plan_create_params.rbs +9 -30
- data/sig/whop_sdk/models/plan_update_params.rbs +9 -30
- data/sig/whop_sdk/models/withdrawal_create_params.rbs +11 -1
- data/sig/whop_sdk/models/withdrawal_create_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_list_response.rbs +3 -8
- data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +5 -8
- data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +5 -8
- data/sig/whop_sdk/models.rbs +2 -2
- data/sig/whop_sdk/resources/app_builds.rbs +1 -1
- data/sig/whop_sdk/resources/apps.rbs +2 -1
- data/sig/whop_sdk/resources/checkout_configurations.rbs +1 -0
- data/sig/whop_sdk/resources/companies.rbs +3 -2
- data/sig/whop_sdk/resources/course_lessons.rbs +4 -4
- data/sig/whop_sdk/resources/courses.rbs +2 -4
- data/sig/whop_sdk/resources/disputes.rbs +4 -4
- data/sig/whop_sdk/resources/experiences.rbs +2 -1
- data/sig/whop_sdk/resources/forum_posts.rbs +2 -2
- data/sig/whop_sdk/resources/memberships.rbs +5 -0
- data/sig/whop_sdk/resources/messages.rbs +2 -2
- data/sig/whop_sdk/resources/plans.rbs +2 -2
- data/sig/whop_sdk/resources/withdrawals.rbs +2 -0
- metadata +19 -5
- data/lib/whop_sdk/models/withdrawal_types.rb +0 -16
- data/rbi/whop_sdk/models/withdrawal_types.rbi +0 -20
- data/sig/whop_sdk/models/withdrawal_types.rbs +0 -14
|
@@ -13,16 +13,7 @@ module WhopSDK
|
|
|
13
13
|
|
|
14
14
|
# The attachments for this message
|
|
15
15
|
sig do
|
|
16
|
-
returns(
|
|
17
|
-
T.nilable(
|
|
18
|
-
T::Array[
|
|
19
|
-
T.any(
|
|
20
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
21
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
|
|
22
|
-
)
|
|
23
|
-
]
|
|
24
|
-
)
|
|
25
|
-
)
|
|
16
|
+
returns(T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]))
|
|
26
17
|
end
|
|
27
18
|
attr_accessor :attachments
|
|
28
19
|
|
|
@@ -38,12 +29,7 @@ module WhopSDK
|
|
|
38
29
|
params(
|
|
39
30
|
attachments:
|
|
40
31
|
T.nilable(
|
|
41
|
-
T::Array[
|
|
42
|
-
T.any(
|
|
43
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID::OrHash,
|
|
44
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID::OrHash
|
|
45
|
-
)
|
|
46
|
-
]
|
|
32
|
+
T::Array[WhopSDK::MessageUpdateParams::Attachment::OrHash]
|
|
47
33
|
),
|
|
48
34
|
content: T.nilable(String),
|
|
49
35
|
is_pinned: T.nilable(T::Boolean),
|
|
@@ -65,14 +51,7 @@ module WhopSDK
|
|
|
65
51
|
override.returns(
|
|
66
52
|
{
|
|
67
53
|
attachments:
|
|
68
|
-
T.nilable(
|
|
69
|
-
T::Array[
|
|
70
|
-
T.any(
|
|
71
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
72
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithID
|
|
73
|
-
)
|
|
74
|
-
]
|
|
75
|
-
),
|
|
54
|
+
T.nilable(T::Array[WhopSDK::MessageUpdateParams::Attachment]),
|
|
76
55
|
content: T.nilable(String),
|
|
77
56
|
is_pinned: T.nilable(T::Boolean),
|
|
78
57
|
request_options: WhopSDK::RequestOptions
|
|
@@ -82,84 +61,29 @@ module WhopSDK
|
|
|
82
61
|
def to_hash
|
|
83
62
|
end
|
|
84
63
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
extend WhopSDK::Internal::Type::Union
|
|
88
|
-
|
|
89
|
-
Variants =
|
|
64
|
+
class Attachment < WhopSDK::Internal::Type::BaseModel
|
|
65
|
+
OrHash =
|
|
90
66
|
T.type_alias do
|
|
91
67
|
T.any(
|
|
92
|
-
WhopSDK::MessageUpdateParams::Attachment
|
|
93
|
-
WhopSDK::
|
|
68
|
+
WhopSDK::MessageUpdateParams::Attachment,
|
|
69
|
+
WhopSDK::Internal::AnyHash
|
|
94
70
|
)
|
|
95
71
|
end
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
T.any(
|
|
101
|
-
WhopSDK::MessageUpdateParams::Attachment::AttachmentInputWithDirectUploadID,
|
|
102
|
-
WhopSDK::Internal::AnyHash
|
|
103
|
-
)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
107
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
108
|
-
# mediaDirectUpload mutation.
|
|
109
|
-
sig { returns(String) }
|
|
110
|
-
attr_accessor :direct_upload_id
|
|
111
|
-
|
|
112
|
-
# Input for an attachment
|
|
113
|
-
sig { params(direct_upload_id: String).returns(T.attached_class) }
|
|
114
|
-
def self.new(
|
|
115
|
-
# This ID should be used the first time you upload an attachment. It is the ID of
|
|
116
|
-
# the direct upload that was created when uploading the file to S3 via the
|
|
117
|
-
# mediaDirectUpload mutation.
|
|
118
|
-
direct_upload_id:
|
|
119
|
-
)
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
sig { override.returns({ direct_upload_id: String }) }
|
|
123
|
-
def to_hash
|
|
124
|
-
end
|
|
125
|
-
end
|
|
73
|
+
# The ID of an existing file object.
|
|
74
|
+
sig { returns(String) }
|
|
75
|
+
attr_accessor :id
|
|
126
76
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
)
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
137
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
138
|
-
# doing.
|
|
139
|
-
sig { returns(String) }
|
|
140
|
-
attr_accessor :id
|
|
141
|
-
|
|
142
|
-
# Input for an attachment
|
|
143
|
-
sig { params(id: String).returns(T.attached_class) }
|
|
144
|
-
def self.new(
|
|
145
|
-
# The ID of an existing attachment object. Use this when updating a resource and
|
|
146
|
-
# keeping a subset of the attachments. Don't use this unless you know what you're
|
|
147
|
-
# doing.
|
|
148
|
-
id:
|
|
149
|
-
)
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
sig { override.returns({ id: String }) }
|
|
153
|
-
def to_hash
|
|
154
|
-
end
|
|
77
|
+
# Input for an attachment
|
|
78
|
+
sig { params(id: String).returns(T.attached_class) }
|
|
79
|
+
def self.new(
|
|
80
|
+
# The ID of an existing file object.
|
|
81
|
+
id:
|
|
82
|
+
)
|
|
155
83
|
end
|
|
156
84
|
|
|
157
|
-
sig
|
|
158
|
-
|
|
159
|
-
T::Array[WhopSDK::MessageUpdateParams::Attachment::Variants]
|
|
160
|
-
)
|
|
161
|
-
end
|
|
162
|
-
def self.variants
|
|
85
|
+
sig { override.returns({ id: String }) }
|
|
86
|
+
def to_hash
|
|
163
87
|
end
|
|
164
88
|
end
|
|
165
89
|
end
|
|
@@ -89,6 +89,10 @@ module WhopSDK
|
|
|
89
89
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
90
90
|
attr_accessor :metadata
|
|
91
91
|
|
|
92
|
+
# The time of the next schedule payment retry.
|
|
93
|
+
sig { returns(T.nilable(Time)) }
|
|
94
|
+
attr_accessor :next_payment_attempt
|
|
95
|
+
|
|
92
96
|
# The datetime the payment was paid
|
|
93
97
|
sig { returns(T.nilable(Time)) }
|
|
94
98
|
attr_accessor :paid_at
|
|
@@ -108,6 +112,10 @@ module WhopSDK
|
|
|
108
112
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
109
113
|
attr_accessor :payment_method_type
|
|
110
114
|
|
|
115
|
+
# The number of failed payment attempts for the payment.
|
|
116
|
+
sig { returns(T.nilable(Integer)) }
|
|
117
|
+
attr_accessor :payments_failed
|
|
118
|
+
|
|
111
119
|
# The plan attached to this payment.
|
|
112
120
|
sig { returns(T.nilable(WhopSDK::Payment::Plan)) }
|
|
113
121
|
attr_reader :plan
|
|
@@ -201,9 +209,11 @@ module WhopSDK
|
|
|
201
209
|
member: T.nilable(WhopSDK::Payment::Member::OrHash),
|
|
202
210
|
membership: T.nilable(WhopSDK::Payment::Membership::OrHash),
|
|
203
211
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
212
|
+
next_payment_attempt: T.nilable(Time),
|
|
204
213
|
paid_at: T.nilable(Time),
|
|
205
214
|
payment_method: T.nilable(WhopSDK::Payment::PaymentMethod::OrHash),
|
|
206
215
|
payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
216
|
+
payments_failed: T.nilable(Integer),
|
|
207
217
|
plan: T.nilable(WhopSDK::Payment::Plan::OrHash),
|
|
208
218
|
product: T.nilable(WhopSDK::Payment::Product::OrHash),
|
|
209
219
|
promo_code: T.nilable(WhopSDK::Payment::PromoCode::OrHash),
|
|
@@ -254,12 +264,16 @@ module WhopSDK
|
|
|
254
264
|
# The custom metadata stored on this payment. This will be copied over to the
|
|
255
265
|
# checkout configuration for which this payment was made
|
|
256
266
|
metadata:,
|
|
267
|
+
# The time of the next schedule payment retry.
|
|
268
|
+
next_payment_attempt:,
|
|
257
269
|
# The datetime the payment was paid
|
|
258
270
|
paid_at:,
|
|
259
271
|
# The payment method used for the payment, if available.
|
|
260
272
|
payment_method:,
|
|
261
273
|
# The different types of payment methods that can be used.
|
|
262
274
|
payment_method_type:,
|
|
275
|
+
# The number of failed payment attempts for the payment.
|
|
276
|
+
payments_failed:,
|
|
263
277
|
# The plan attached to this payment.
|
|
264
278
|
plan:,
|
|
265
279
|
# The product this payment was made for
|
|
@@ -314,10 +328,12 @@ module WhopSDK
|
|
|
314
328
|
member: T.nilable(WhopSDK::Payment::Member),
|
|
315
329
|
membership: T.nilable(WhopSDK::Payment::Membership),
|
|
316
330
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
331
|
+
next_payment_attempt: T.nilable(Time),
|
|
317
332
|
paid_at: T.nilable(Time),
|
|
318
333
|
payment_method: T.nilable(WhopSDK::Payment::PaymentMethod),
|
|
319
334
|
payment_method_type:
|
|
320
335
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
336
|
+
payments_failed: T.nilable(Integer),
|
|
321
337
|
plan: T.nilable(WhopSDK::Payment::Plan),
|
|
322
338
|
product: T.nilable(WhopSDK::Payment::Product),
|
|
323
339
|
promo_code: T.nilable(WhopSDK::Payment::PromoCode),
|
|
@@ -114,6 +114,10 @@ module WhopSDK
|
|
|
114
114
|
sig { returns(T.nilable(T::Hash[Symbol, T.anything])) }
|
|
115
115
|
attr_accessor :metadata
|
|
116
116
|
|
|
117
|
+
# The time of the next schedule payment retry.
|
|
118
|
+
sig { returns(T.nilable(Time)) }
|
|
119
|
+
attr_accessor :next_payment_attempt
|
|
120
|
+
|
|
117
121
|
# The datetime the payment was paid
|
|
118
122
|
sig { returns(T.nilable(Time)) }
|
|
119
123
|
attr_accessor :paid_at
|
|
@@ -138,6 +142,10 @@ module WhopSDK
|
|
|
138
142
|
sig { returns(T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol)) }
|
|
139
143
|
attr_accessor :payment_method_type
|
|
140
144
|
|
|
145
|
+
# The number of failed payment attempts for the payment.
|
|
146
|
+
sig { returns(T.nilable(Integer)) }
|
|
147
|
+
attr_accessor :payments_failed
|
|
148
|
+
|
|
141
149
|
# The plan attached to this payment.
|
|
142
150
|
sig { returns(T.nilable(WhopSDK::Models::PaymentListResponse::Plan)) }
|
|
143
151
|
attr_reader :plan
|
|
@@ -255,12 +263,14 @@ module WhopSDK
|
|
|
255
263
|
membership:
|
|
256
264
|
T.nilable(WhopSDK::Models::PaymentListResponse::Membership::OrHash),
|
|
257
265
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
266
|
+
next_payment_attempt: T.nilable(Time),
|
|
258
267
|
paid_at: T.nilable(Time),
|
|
259
268
|
payment_method:
|
|
260
269
|
T.nilable(
|
|
261
270
|
WhopSDK::Models::PaymentListResponse::PaymentMethod::OrHash
|
|
262
271
|
),
|
|
263
272
|
payment_method_type: T.nilable(WhopSDK::PaymentMethodTypes::OrSymbol),
|
|
273
|
+
payments_failed: T.nilable(Integer),
|
|
264
274
|
plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan::OrHash),
|
|
265
275
|
product:
|
|
266
276
|
T.nilable(WhopSDK::Models::PaymentListResponse::Product::OrHash),
|
|
@@ -313,12 +323,16 @@ module WhopSDK
|
|
|
313
323
|
# The custom metadata stored on this payment. This will be copied over to the
|
|
314
324
|
# checkout configuration for which this payment was made
|
|
315
325
|
metadata:,
|
|
326
|
+
# The time of the next schedule payment retry.
|
|
327
|
+
next_payment_attempt:,
|
|
316
328
|
# The datetime the payment was paid
|
|
317
329
|
paid_at:,
|
|
318
330
|
# The payment method used for the payment, if available.
|
|
319
331
|
payment_method:,
|
|
320
332
|
# The different types of payment methods that can be used.
|
|
321
333
|
payment_method_type:,
|
|
334
|
+
# The number of failed payment attempts for the payment.
|
|
335
|
+
payments_failed:,
|
|
322
336
|
# The plan attached to this payment.
|
|
323
337
|
plan:,
|
|
324
338
|
# The product this payment was made for
|
|
@@ -375,11 +389,13 @@ module WhopSDK
|
|
|
375
389
|
membership:
|
|
376
390
|
T.nilable(WhopSDK::Models::PaymentListResponse::Membership),
|
|
377
391
|
metadata: T.nilable(T::Hash[Symbol, T.anything]),
|
|
392
|
+
next_payment_attempt: T.nilable(Time),
|
|
378
393
|
paid_at: T.nilable(Time),
|
|
379
394
|
payment_method:
|
|
380
395
|
T.nilable(WhopSDK::Models::PaymentListResponse::PaymentMethod),
|
|
381
396
|
payment_method_type:
|
|
382
397
|
T.nilable(WhopSDK::PaymentMethodTypes::TaggedSymbol),
|
|
398
|
+
payments_failed: T.nilable(Integer),
|
|
383
399
|
plan: T.nilable(WhopSDK::Models::PaymentListResponse::Plan),
|
|
384
400
|
product: T.nilable(WhopSDK::Models::PaymentListResponse::Product),
|
|
385
401
|
promo_code:
|
|
@@ -9,38 +9,64 @@ module WhopSDK
|
|
|
9
9
|
TaggedSymbol = T.type_alias { T.all(Symbol, WhopSDK::PaymentMethodTypes) }
|
|
10
10
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
11
11
|
|
|
12
|
+
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
13
|
+
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
12
14
|
AFTERPAY_CLEARPAY =
|
|
13
15
|
T.let(:afterpay_clearpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
14
16
|
ALIPAY = T.let(:alipay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
|
+
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
15
18
|
AMAZON_PAY = T.let(:amazon_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
|
+
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
16
20
|
APPLE_PAY = T.let(:apple_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
21
|
+
AU_BECS_DEBIT =
|
|
22
|
+
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
|
+
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
17
24
|
BANCONTACT = T.let(:bancontact, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
+
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
26
|
+
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
|
+
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
|
+
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
29
|
+
CAPCHASE_PAY =
|
|
30
|
+
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
18
31
|
CARD = T.let(:card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
19
32
|
CASHAPP = T.let(:cashapp, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
+
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
20
34
|
CRYPTO = T.let(:crypto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
+
CUSTOM = T.let(:custom, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
+
CUSTOMER_BALANCE =
|
|
37
|
+
T.let(:customer_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
+
DEMO_PAY = T.let(:demo_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
+
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
+
EU_BANK_TRANSFER =
|
|
41
|
+
T.let(:eu_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
|
+
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
|
+
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
21
44
|
GOOGLE_PAY = T.let(:google_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
45
|
+
GOPAY = T.let(:gopay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
46
|
+
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
47
|
+
ID_BANK_TRANSFER =
|
|
48
|
+
T.let(:id_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
22
49
|
IDEAL = T.let(:ideal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
50
|
+
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
23
51
|
KLARNA = T.let(:klarna, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
52
|
+
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
53
|
+
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
|
+
KR_MARKET = T.let(:kr_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
55
|
+
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
56
|
+
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
57
|
+
MB_WAY = T.let(:mb_way, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
24
58
|
MOBILEPAY = T.let(:mobilepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
25
|
-
|
|
26
|
-
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
27
|
-
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
28
|
-
US_BANK_ACCOUNT =
|
|
29
|
-
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
30
|
-
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
31
|
-
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
32
|
-
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
33
|
-
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
34
|
-
COINBASE = T.let(:coinbase, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
35
|
-
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
36
|
-
PLATFORM_BALANCE =
|
|
37
|
-
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
38
|
-
APPLE = T.let(:apple, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
39
|
-
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
40
|
-
AFFIRM = T.let(:affirm, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
|
+
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
41
60
|
MULTIBANCO = T.let(:multibanco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
42
|
-
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
43
61
|
NAVER_PAY = T.let(:naver_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
|
+
NETBANKING = T.let(:netbanking, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
+
NG_BANK = T.let(:ng_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
+
NG_BANK_TRANSFER =
|
|
65
|
+
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
|
+
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
+
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
+
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
+
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
44
70
|
NZ_BANK_ACCOUNT =
|
|
45
71
|
T.let(:nz_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
46
72
|
OXXO = T.let(:oxxo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
@@ -49,64 +75,40 @@ module WhopSDK
|
|
|
49
75
|
T.let(:pay_by_bank, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
50
76
|
PAYCO = T.let(:payco, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
51
77
|
PAYNOW = T.let(:paynow, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
78
|
+
PAYPAL = T.let(:paypal, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
79
|
+
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
+
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
52
81
|
PIX = T.let(:pix, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
82
|
+
PLATFORM_BALANCE =
|
|
83
|
+
T.let(:platform_balance, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
53
84
|
PROMPTPAY = T.let(:promptpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
85
|
+
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
86
|
+
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
54
87
|
REVOLUT_PAY =
|
|
55
88
|
T.let(:revolut_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
56
89
|
SAMSUNG_PAY =
|
|
57
90
|
T.let(:samsung_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
58
91
|
SATISPAY = T.let(:satispay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
59
|
-
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
60
|
-
KONBINI = T.let(:konbini, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
61
|
-
KR_CARD = T.let(:kr_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
62
|
-
LINK = T.let(:link, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
63
|
-
GRABPAY = T.let(:grabpay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
64
|
-
KAKAO_PAY = T.let(:kakao_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
65
|
-
BILLIE = T.let(:billie, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
66
|
-
BLIK = T.let(:blik, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
67
|
-
BOLETO = T.let(:boleto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
68
|
-
EPS = T.let(:eps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
69
|
-
FPX = T.let(:fpx, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
70
|
-
GIROPAY = T.let(:giropay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
71
|
-
ACSS_DEBIT = T.let(:acss_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
72
|
-
ALMA = T.let(:alma, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
73
|
-
AU_BECS_DEBIT =
|
|
74
|
-
T.let(:au_becs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
75
|
-
BACS_DEBIT = T.let(:bacs_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
76
|
-
BIZUM = T.let(:bizum, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
77
|
-
CAPCHASE_PAY =
|
|
78
|
-
T.let(:capchase_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
79
|
-
KRIYA = T.let(:kriya, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
80
|
-
MONDU = T.let(:mondu, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
81
|
-
NG_WALLET = T.let(:ng_wallet, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
82
|
-
PAYPAY = T.let(:paypay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
83
|
-
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
84
92
|
SCALAPAY = T.let(:scalapay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
NG_BANK_TRANSFER =
|
|
92
|
-
T.let(:ng_bank_transfer, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
93
|
-
NG_CARD = T.let(:ng_card, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
-
NG_MARKET = T.let(:ng_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
-
NG_USSD = T.let(:ng_ussd, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
-
PAYTO = T.let(:payto, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
-
QRIS = T.let(:qris, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
98
|
-
RECHNUNG = T.let(:rechnung, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
93
|
+
SEPA_DEBIT = T.let(:sepa_debit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
94
|
+
SEQURA = T.let(:sequra, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
95
|
+
SEZZLE = T.let(:sezzle, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
96
|
+
SHOP_PAY = T.let(:shop_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
97
|
+
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
98
|
+
SOFORT = T.let(:sofort, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
99
99
|
SOUTH_KOREA_MARKET =
|
|
100
100
|
T.let(:south_korea_market, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
|
-
|
|
102
|
-
SHOPEEPAY = T.let(:shopeepay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
103
|
-
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
101
|
+
SPLITIT = T.let(:splitit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
104
102
|
SUNBIT = T.let(:sunbit, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
SWISH = T.let(:swish, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
104
|
+
TWINT = T.let(:twint, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
105
|
+
UPI = T.let(:upi, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
106
|
+
US_BANK_ACCOUNT =
|
|
107
|
+
T.let(:us_bank_account, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
108
|
+
VENMO = T.let(:venmo, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
109
|
+
VIPPS = T.let(:vipps, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
|
+
WECHAT_PAY = T.let(:wechat_pay, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
|
+
ZIP = T.let(:zip, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
110
112
|
UNKNOWN = T.let(:unknown, WhopSDK::PaymentMethodTypes::TaggedSymbol)
|
|
111
113
|
|
|
112
114
|
sig do
|
|
@@ -18,6 +18,7 @@ module WhopSDK
|
|
|
18
18
|
PLATFORM_BALANCE =
|
|
19
19
|
T.let(:platform_balance, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
20
20
|
MULTI_PSP = T.let(:multi_psp, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
|
+
ADYEN = T.let(:adyen, WhopSDK::PaymentProvider::TaggedSymbol)
|
|
21
22
|
|
|
22
23
|
sig { override.returns(T::Array[WhopSDK::PaymentProvider::TaggedSymbol]) }
|
|
23
24
|
def self.values
|
|
@@ -96,6 +96,11 @@ module WhopSDK
|
|
|
96
96
|
sig { returns(String) }
|
|
97
97
|
attr_accessor :id
|
|
98
98
|
|
|
99
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
100
|
+
# account number or an email address.
|
|
101
|
+
sig { returns(T.nilable(String)) }
|
|
102
|
+
attr_accessor :account_reference
|
|
103
|
+
|
|
99
104
|
# The company associated with the payout token
|
|
100
105
|
sig do
|
|
101
106
|
returns(
|
|
@@ -114,6 +119,10 @@ module WhopSDK
|
|
|
114
119
|
end
|
|
115
120
|
attr_writer :company
|
|
116
121
|
|
|
122
|
+
# The date and time the payout token was created
|
|
123
|
+
sig { returns(Time) }
|
|
124
|
+
attr_accessor :created_at
|
|
125
|
+
|
|
117
126
|
# The currency code of the payout destination. This is the currency that payouts
|
|
118
127
|
# will be made in for this token.
|
|
119
128
|
sig { returns(String) }
|
|
@@ -139,6 +148,10 @@ module WhopSDK
|
|
|
139
148
|
end
|
|
140
149
|
attr_writer :destination
|
|
141
150
|
|
|
151
|
+
# The name of the bank or financial institution.
|
|
152
|
+
sig { returns(T.nilable(String)) }
|
|
153
|
+
attr_accessor :institution_name
|
|
154
|
+
|
|
142
155
|
# Whether this payout token is the default for the payout account
|
|
143
156
|
sig { returns(T::Boolean) }
|
|
144
157
|
attr_accessor :is_default
|
|
@@ -152,15 +165,18 @@ module WhopSDK
|
|
|
152
165
|
sig do
|
|
153
166
|
params(
|
|
154
167
|
id: String,
|
|
168
|
+
account_reference: T.nilable(String),
|
|
155
169
|
company:
|
|
156
170
|
T.nilable(
|
|
157
171
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company::OrHash
|
|
158
172
|
),
|
|
173
|
+
created_at: Time,
|
|
159
174
|
currency: String,
|
|
160
175
|
destination:
|
|
161
176
|
T.nilable(
|
|
162
177
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination::OrHash
|
|
163
178
|
),
|
|
179
|
+
institution_name: T.nilable(String),
|
|
164
180
|
is_default: T::Boolean,
|
|
165
181
|
nickname: T.nilable(String)
|
|
166
182
|
).returns(T.attached_class)
|
|
@@ -168,13 +184,20 @@ module WhopSDK
|
|
|
168
184
|
def self.new(
|
|
169
185
|
# The ID of the payout token
|
|
170
186
|
id:,
|
|
187
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
188
|
+
# account number or an email address.
|
|
189
|
+
account_reference:,
|
|
171
190
|
# The company associated with the payout token
|
|
172
191
|
company:,
|
|
192
|
+
# The date and time the payout token was created
|
|
193
|
+
created_at:,
|
|
173
194
|
# The currency code of the payout destination. This is the currency that payouts
|
|
174
195
|
# will be made in for this token.
|
|
175
196
|
currency:,
|
|
176
197
|
# The payout destination associated with the payout token
|
|
177
198
|
destination:,
|
|
199
|
+
# The name of the bank or financial institution.
|
|
200
|
+
institution_name:,
|
|
178
201
|
# Whether this payout token is the default for the payout account
|
|
179
202
|
is_default:,
|
|
180
203
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -187,15 +210,18 @@ module WhopSDK
|
|
|
187
210
|
override.returns(
|
|
188
211
|
{
|
|
189
212
|
id: String,
|
|
213
|
+
account_reference: T.nilable(String),
|
|
190
214
|
company:
|
|
191
215
|
T.nilable(
|
|
192
216
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Company
|
|
193
217
|
),
|
|
218
|
+
created_at: Time,
|
|
194
219
|
currency: String,
|
|
195
220
|
destination:
|
|
196
221
|
T.nilable(
|
|
197
222
|
WhopSDK::PayoutMethodCreatedWebhookEvent::Data::Destination
|
|
198
223
|
),
|
|
224
|
+
institution_name: T.nilable(String),
|
|
199
225
|
is_default: T::Boolean,
|
|
200
226
|
nickname: T.nilable(String)
|
|
201
227
|
}
|
|
@@ -15,6 +15,11 @@ module WhopSDK
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :id
|
|
17
17
|
|
|
18
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
19
|
+
# account number or an email address.
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_accessor :account_reference
|
|
22
|
+
|
|
18
23
|
# The company associated with the payout token
|
|
19
24
|
sig do
|
|
20
25
|
returns(T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company))
|
|
@@ -31,6 +36,10 @@ module WhopSDK
|
|
|
31
36
|
end
|
|
32
37
|
attr_writer :company
|
|
33
38
|
|
|
39
|
+
# The date and time the payout token was created
|
|
40
|
+
sig { returns(Time) }
|
|
41
|
+
attr_accessor :created_at
|
|
42
|
+
|
|
34
43
|
# The currency code of the payout destination. This is the currency that payouts
|
|
35
44
|
# will be made in for this token.
|
|
36
45
|
sig { returns(String) }
|
|
@@ -54,6 +63,10 @@ module WhopSDK
|
|
|
54
63
|
end
|
|
55
64
|
attr_writer :destination
|
|
56
65
|
|
|
66
|
+
# The name of the bank or financial institution.
|
|
67
|
+
sig { returns(T.nilable(String)) }
|
|
68
|
+
attr_accessor :institution_name
|
|
69
|
+
|
|
57
70
|
# Whether this payout token is the default for the payout account
|
|
58
71
|
sig { returns(T::Boolean) }
|
|
59
72
|
attr_accessor :is_default
|
|
@@ -67,15 +80,18 @@ module WhopSDK
|
|
|
67
80
|
sig do
|
|
68
81
|
params(
|
|
69
82
|
id: String,
|
|
83
|
+
account_reference: T.nilable(String),
|
|
70
84
|
company:
|
|
71
85
|
T.nilable(
|
|
72
86
|
WhopSDK::Models::PayoutMethodListResponse::Company::OrHash
|
|
73
87
|
),
|
|
88
|
+
created_at: Time,
|
|
74
89
|
currency: String,
|
|
75
90
|
destination:
|
|
76
91
|
T.nilable(
|
|
77
92
|
WhopSDK::Models::PayoutMethodListResponse::Destination::OrHash
|
|
78
93
|
),
|
|
94
|
+
institution_name: T.nilable(String),
|
|
79
95
|
is_default: T::Boolean,
|
|
80
96
|
nickname: T.nilable(String)
|
|
81
97
|
).returns(T.attached_class)
|
|
@@ -83,13 +99,20 @@ module WhopSDK
|
|
|
83
99
|
def self.new(
|
|
84
100
|
# The ID of the payout token
|
|
85
101
|
id:,
|
|
102
|
+
# A reference to identify the payout destination, such as the last 4 digits of an
|
|
103
|
+
# account number or an email address.
|
|
104
|
+
account_reference:,
|
|
86
105
|
# The company associated with the payout token
|
|
87
106
|
company:,
|
|
107
|
+
# The date and time the payout token was created
|
|
108
|
+
created_at:,
|
|
88
109
|
# The currency code of the payout destination. This is the currency that payouts
|
|
89
110
|
# will be made in for this token.
|
|
90
111
|
currency:,
|
|
91
112
|
# The payout destination associated with the payout token
|
|
92
113
|
destination:,
|
|
114
|
+
# The name of the bank or financial institution.
|
|
115
|
+
institution_name:,
|
|
93
116
|
# Whether this payout token is the default for the payout account
|
|
94
117
|
is_default:,
|
|
95
118
|
# An optional nickname for the payout token to help the user identify it. This is
|
|
@@ -102,11 +125,14 @@ module WhopSDK
|
|
|
102
125
|
override.returns(
|
|
103
126
|
{
|
|
104
127
|
id: String,
|
|
128
|
+
account_reference: T.nilable(String),
|
|
105
129
|
company:
|
|
106
130
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Company),
|
|
131
|
+
created_at: Time,
|
|
107
132
|
currency: String,
|
|
108
133
|
destination:
|
|
109
134
|
T.nilable(WhopSDK::Models::PayoutMethodListResponse::Destination),
|
|
135
|
+
institution_name: T.nilable(String),
|
|
110
136
|
is_default: T::Boolean,
|
|
111
137
|
nickname: T.nilable(String)
|
|
112
138
|
}
|