whop_sdk 0.0.15 → 0.0.16

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.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +14 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/models/course.rb +57 -1
  6. data/lib/whop_sdk/models/course_lesson_interaction.rb +23 -1
  7. data/lib/whop_sdk/models/course_lesson_interaction_list_item.rb +23 -1
  8. data/lib/whop_sdk/models/payment_list_fees_params.rb +46 -0
  9. data/lib/whop_sdk/models/payment_list_fees_response.rb +84 -0
  10. data/lib/whop_sdk/models/payment_method_list_response.rb +214 -76
  11. data/lib/whop_sdk/models/payment_method_retrieve_response.rb +214 -76
  12. data/lib/whop_sdk/models/payout_method_list_params.rb +54 -0
  13. data/lib/whop_sdk/models/payout_method_list_response.rb +95 -0
  14. data/lib/whop_sdk/models/withdrawal_create_params.rb +46 -0
  15. data/lib/whop_sdk/models/withdrawal_create_response.rb +275 -0
  16. data/lib/whop_sdk/models.rb +6 -0
  17. data/lib/whop_sdk/resources/payment_methods.rb +2 -2
  18. data/lib/whop_sdk/resources/payments.rb +35 -0
  19. data/lib/whop_sdk/resources/payout_methods.rb +49 -0
  20. data/lib/whop_sdk/resources/withdrawals.rb +34 -0
  21. data/lib/whop_sdk/version.rb +1 -1
  22. data/lib/whop_sdk.rb +7 -0
  23. data/rbi/whop_sdk/client.rbi +3 -0
  24. data/rbi/whop_sdk/models/course.rbi +115 -3
  25. data/rbi/whop_sdk/models/course_lesson_interaction.rbi +55 -2
  26. data/rbi/whop_sdk/models/course_lesson_interaction_list_item.rbi +60 -2
  27. data/rbi/whop_sdk/models/payment_list_fees_params.rbi +67 -0
  28. data/rbi/whop_sdk/models/payment_list_fees_response.rbi +239 -0
  29. data/rbi/whop_sdk/models/payment_method_list_response.rbi +305 -83
  30. data/rbi/whop_sdk/models/payment_method_retrieve_response.rbi +305 -88
  31. data/rbi/whop_sdk/models/payout_method_list_params.rbi +75 -0
  32. data/rbi/whop_sdk/models/payout_method_list_response.rbi +200 -0
  33. data/rbi/whop_sdk/models/withdrawal_create_params.rbi +67 -0
  34. data/rbi/whop_sdk/models/withdrawal_create_response.rbi +564 -0
  35. data/rbi/whop_sdk/models.rbi +6 -0
  36. data/rbi/whop_sdk/resources/payment_methods.rbi +2 -2
  37. data/rbi/whop_sdk/resources/payments.rbi +34 -0
  38. data/rbi/whop_sdk/resources/payout_methods.rbi +46 -0
  39. data/rbi/whop_sdk/resources/withdrawals.rbi +29 -0
  40. data/sig/whop_sdk/client.rbs +2 -0
  41. data/sig/whop_sdk/models/course.rbs +45 -3
  42. data/sig/whop_sdk/models/course_lesson_interaction.rbs +28 -3
  43. data/sig/whop_sdk/models/course_lesson_interaction_list_item.rbs +28 -3
  44. data/sig/whop_sdk/models/payment_list_fees_params.rbs +36 -0
  45. data/sig/whop_sdk/models/payment_list_fees_response.rbs +104 -0
  46. data/sig/whop_sdk/models/payment_method_list_response.rbs +149 -41
  47. data/sig/whop_sdk/models/payment_method_retrieve_response.rbs +149 -41
  48. data/sig/whop_sdk/models/payout_method_list_params.rbs +46 -0
  49. data/sig/whop_sdk/models/payout_method_list_response.rbs +83 -0
  50. data/sig/whop_sdk/models/withdrawal_create_params.rbs +41 -0
  51. data/sig/whop_sdk/models/withdrawal_create_response.rbs +243 -0
  52. data/sig/whop_sdk/models.rbs +6 -0
  53. data/sig/whop_sdk/resources/payment_methods.rbs +2 -2
  54. data/sig/whop_sdk/resources/payments.rbs +9 -0
  55. data/sig/whop_sdk/resources/payout_methods.rbs +16 -0
  56. data/sig/whop_sdk/resources/withdrawals.rbs +8 -0
  57. metadata +23 -2
@@ -3,11 +3,40 @@
3
3
  module WhopSDK
4
4
  module Resources
5
5
  class Withdrawals
6
+ # Creates a withdrawal request for a ledger account
7
+ #
8
+ # Required permissions:
9
+ #
10
+ # - `payout:withdraw_funds`
11
+ # - `payout:destination:read`
12
+ sig do
13
+ params(
14
+ amount: Float,
15
+ company_id: String,
16
+ currency: WhopSDK::Currency::OrSymbol,
17
+ payout_method_id: T.nilable(String),
18
+ request_options: WhopSDK::RequestOptions::OrHash
19
+ ).returns(WhopSDK::Models::WithdrawalCreateResponse)
20
+ end
21
+ def create(
22
+ # The amount to withdraw in the specified currency
23
+ amount:,
24
+ # The ID of the company to withdraw from.
25
+ company_id:,
26
+ # The currency that is being withdrawn.
27
+ currency:,
28
+ # The ID of the payout method to use for the withdrawal.
29
+ payout_method_id: nil,
30
+ request_options: {}
31
+ )
32
+ end
33
+
6
34
  # Retrieves a withdrawal by ID
7
35
  #
8
36
  # Required permissions:
9
37
  #
10
38
  # - `payout:withdrawal:read`
39
+ # - `payout:destination:read`
11
40
  sig do
12
41
  params(
13
42
  id: String,
@@ -92,6 +92,8 @@ module WhopSDK
92
92
 
93
93
  attr_reader fee_markups: WhopSDK::Resources::FeeMarkups
94
94
 
95
+ attr_reader payout_methods: WhopSDK::Resources::PayoutMethods
96
+
95
97
  private def auth_headers: -> ::Hash[String, String]
96
98
 
97
99
  def initialize: (
@@ -117,7 +117,9 @@ module WhopSDK
117
117
  id: String,
118
118
  lesson_type: WhopSDK::Models::lesson_types,
119
119
  order: Integer,
120
- title: String
120
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
121
+ title: String,
122
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
121
123
  }
122
124
 
123
125
  class Lesson < WhopSDK::Internal::Type::BaseModel
@@ -127,21 +129,61 @@ module WhopSDK
127
129
 
128
130
  attr_accessor order: Integer
129
131
 
132
+ attr_accessor thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?
133
+
130
134
  attr_accessor title: String
131
135
 
136
+ attr_accessor video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
137
+
132
138
  def initialize: (
133
139
  id: String,
134
140
  lesson_type: WhopSDK::Models::lesson_types,
135
141
  order: Integer,
136
- title: String
142
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
143
+ title: String,
144
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
137
145
  ) -> void
138
146
 
139
147
  def to_hash: -> {
140
148
  id: String,
141
149
  lesson_type: WhopSDK::Models::lesson_types,
142
150
  order: Integer,
143
- title: String
151
+ thumbnail: WhopSDK::Course::Chapter::Lesson::Thumbnail?,
152
+ title: String,
153
+ video_asset: WhopSDK::Course::Chapter::Lesson::VideoAsset?
144
154
  }
155
+
156
+ type thumbnail = { url: String? }
157
+
158
+ class Thumbnail < WhopSDK::Internal::Type::BaseModel
159
+ attr_accessor url: String?
160
+
161
+ def initialize: (url: String?) -> void
162
+
163
+ def to_hash: -> { url: String? }
164
+ end
165
+
166
+ type video_asset =
167
+ {
168
+ duration_seconds: Integer?,
169
+ signed_thumbnail_playback_token: String?
170
+ }
171
+
172
+ class VideoAsset < WhopSDK::Internal::Type::BaseModel
173
+ attr_accessor duration_seconds: Integer?
174
+
175
+ attr_accessor signed_thumbnail_playback_token: String?
176
+
177
+ def initialize: (
178
+ duration_seconds: Integer?,
179
+ signed_thumbnail_playback_token: String?
180
+ ) -> void
181
+
182
+ def to_hash: -> {
183
+ duration_seconds: Integer?,
184
+ signed_thumbnail_playback_token: String?
185
+ }
186
+ end
145
187
  end
146
188
  end
147
189
 
@@ -78,16 +78,41 @@ module WhopSDK
78
78
  end
79
79
  end
80
80
 
81
- type lesson = { id: String, title: String }
81
+ type lesson =
82
+ {
83
+ id: String,
84
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
85
+ title: String
86
+ }
82
87
 
83
88
  class Lesson < WhopSDK::Internal::Type::BaseModel
84
89
  attr_accessor id: String
85
90
 
91
+ attr_accessor chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter
92
+
86
93
  attr_accessor title: String
87
94
 
88
- def initialize: (id: String, title: String) -> void
95
+ def initialize: (
96
+ id: String,
97
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
98
+ title: String
99
+ ) -> void
100
+
101
+ def to_hash: -> {
102
+ id: String,
103
+ chapter: WhopSDK::CourseLessonInteraction::Lesson::Chapter,
104
+ title: String
105
+ }
106
+
107
+ type chapter = { id: String }
108
+
109
+ class Chapter < WhopSDK::Internal::Type::BaseModel
110
+ attr_accessor id: String
89
111
 
90
- def to_hash: -> { id: String, title: String }
112
+ def initialize: (id: String) -> void
113
+
114
+ def to_hash: -> { id: String }
115
+ end
91
116
  end
92
117
 
93
118
  type user = { id: String, name: String?, username: String }
@@ -36,16 +36,41 @@ module WhopSDK
36
36
  user: WhopSDK::CourseLessonInteractionListItem::User
37
37
  }
38
38
 
39
- type lesson = { id: String, title: String }
39
+ type lesson =
40
+ {
41
+ id: String,
42
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
43
+ title: String
44
+ }
40
45
 
41
46
  class Lesson < WhopSDK::Internal::Type::BaseModel
42
47
  attr_accessor id: String
43
48
 
49
+ attr_accessor chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter
50
+
44
51
  attr_accessor title: String
45
52
 
46
- def initialize: (id: String, title: String) -> void
53
+ def initialize: (
54
+ id: String,
55
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
56
+ title: String
57
+ ) -> void
58
+
59
+ def to_hash: -> {
60
+ id: String,
61
+ chapter: WhopSDK::CourseLessonInteractionListItem::Lesson::Chapter,
62
+ title: String
63
+ }
64
+
65
+ type chapter = { id: String }
66
+
67
+ class Chapter < WhopSDK::Internal::Type::BaseModel
68
+ attr_accessor id: String
69
+
70
+ def initialize: (id: String) -> void
47
71
 
48
- def to_hash: -> { id: String, title: String }
72
+ def to_hash: -> { id: String }
73
+ end
49
74
  end
50
75
 
51
76
  type user = { id: String, name: String?, username: String }
@@ -0,0 +1,36 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payment_list_fees_params =
4
+ { after: String?, before: String?, first: Integer?, last: Integer? }
5
+ & WhopSDK::Internal::Type::request_parameters
6
+
7
+ class PaymentListFeesParams < WhopSDK::Internal::Type::BaseModel
8
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
9
+ include WhopSDK::Internal::Type::RequestParameters
10
+
11
+ attr_accessor after: String?
12
+
13
+ attr_accessor before: String?
14
+
15
+ attr_accessor first: Integer?
16
+
17
+ attr_accessor last: Integer?
18
+
19
+ def initialize: (
20
+ ?after: String?,
21
+ ?before: String?,
22
+ ?first: Integer?,
23
+ ?last: Integer?,
24
+ ?request_options: WhopSDK::request_opts
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ after: String?,
29
+ before: String?,
30
+ first: Integer?,
31
+ last: Integer?,
32
+ request_options: WhopSDK::RequestOptions
33
+ }
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,104 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payment_list_fees_response =
4
+ {
5
+ amount: Float,
6
+ currency: WhopSDK::Models::currency,
7
+ name: String,
8
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
9
+ }
10
+
11
+ class PaymentListFeesResponse < WhopSDK::Internal::Type::BaseModel
12
+ attr_accessor amount: Float
13
+
14
+ attr_accessor currency: WhopSDK::Models::currency
15
+
16
+ attr_accessor name: String
17
+
18
+ attr_accessor type: WhopSDK::Models::PaymentListFeesResponse::type_
19
+
20
+ def initialize: (
21
+ amount: Float,
22
+ currency: WhopSDK::Models::currency,
23
+ name: String,
24
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ amount: Float,
29
+ currency: WhopSDK::Models::currency,
30
+ name: String,
31
+ type: WhopSDK::Models::PaymentListFeesResponse::type_
32
+ }
33
+
34
+ type type_ =
35
+ :stripe_domestic_processing_fee
36
+ | :stripe_international_processing_fee
37
+ | :stripe_fixed_processing_fee
38
+ | :stripe_billing_fee
39
+ | :stripe_radar_fee
40
+ | :sales_tax_remittance
41
+ | :sales_tax_remittance_reversal
42
+ | :stripe_sales_tax_fee
43
+ | :whop_processing_fee
44
+ | :marketplace_affiliate_fee
45
+ | :affiliate_fee
46
+ | :crypto_fee
47
+ | :stripe_standard_processing_fee
48
+ | :paypal_fee
49
+ | :stripe_payout_fee
50
+ | :dispute_fee
51
+ | :dispute_alert_fee
52
+ | :apple_processing_fee
53
+ | :buyer_fee
54
+ | :sezzle_processing_fee
55
+ | :splitit_processing_fee
56
+ | :platform_balance_processing_fee
57
+ | :payment_processing_percentage_fee
58
+ | :payment_processing_fixed_fee
59
+ | :cross_border_percentage_fee
60
+ | :fx_percentage_fee
61
+ | :orchestration_percentage_fee
62
+ | :three_ds_fixed_fee
63
+ | :billing_percentage_fee
64
+ | :revshare_percentage_fee
65
+
66
+ module Type
67
+ extend WhopSDK::Internal::Type::Enum
68
+
69
+ STRIPE_DOMESTIC_PROCESSING_FEE: :stripe_domestic_processing_fee
70
+ STRIPE_INTERNATIONAL_PROCESSING_FEE: :stripe_international_processing_fee
71
+ STRIPE_FIXED_PROCESSING_FEE: :stripe_fixed_processing_fee
72
+ STRIPE_BILLING_FEE: :stripe_billing_fee
73
+ STRIPE_RADAR_FEE: :stripe_radar_fee
74
+ SALES_TAX_REMITTANCE: :sales_tax_remittance
75
+ SALES_TAX_REMITTANCE_REVERSAL: :sales_tax_remittance_reversal
76
+ STRIPE_SALES_TAX_FEE: :stripe_sales_tax_fee
77
+ WHOP_PROCESSING_FEE: :whop_processing_fee
78
+ MARKETPLACE_AFFILIATE_FEE: :marketplace_affiliate_fee
79
+ AFFILIATE_FEE: :affiliate_fee
80
+ CRYPTO_FEE: :crypto_fee
81
+ STRIPE_STANDARD_PROCESSING_FEE: :stripe_standard_processing_fee
82
+ PAYPAL_FEE: :paypal_fee
83
+ STRIPE_PAYOUT_FEE: :stripe_payout_fee
84
+ DISPUTE_FEE: :dispute_fee
85
+ DISPUTE_ALERT_FEE: :dispute_alert_fee
86
+ APPLE_PROCESSING_FEE: :apple_processing_fee
87
+ BUYER_FEE: :buyer_fee
88
+ SEZZLE_PROCESSING_FEE: :sezzle_processing_fee
89
+ SPLITIT_PROCESSING_FEE: :splitit_processing_fee
90
+ PLATFORM_BALANCE_PROCESSING_FEE: :platform_balance_processing_fee
91
+ PAYMENT_PROCESSING_PERCENTAGE_FEE: :payment_processing_percentage_fee
92
+ PAYMENT_PROCESSING_FIXED_FEE: :payment_processing_fixed_fee
93
+ CROSS_BORDER_PERCENTAGE_FEE: :cross_border_percentage_fee
94
+ FX_PERCENTAGE_FEE: :fx_percentage_fee
95
+ ORCHESTRATION_PERCENTAGE_FEE: :orchestration_percentage_fee
96
+ THREE_DS_FIXED_FEE: :three_ds_fixed_fee
97
+ BILLING_PERCENTAGE_FEE: :billing_percentage_fee
98
+ REVSHARE_PERCENTAGE_FEE: :revshare_percentage_fee
99
+
100
+ def self?.values: -> ::Array[WhopSDK::Models::PaymentListFeesResponse::type_]
101
+ end
102
+ end
103
+ end
104
+ end
@@ -1,67 +1,175 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type payment_method_list_response =
4
- {
5
- id: String,
6
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
7
- created_at: Time,
8
- payment_method_type: WhopSDK::Models::payment_method_types
9
- }
4
+ WhopSDK::Models::PaymentMethodListResponse::BasePaymentMethod
5
+ | WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod
6
+ | WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod
10
7
 
11
- class PaymentMethodListResponse < WhopSDK::Internal::Type::BaseModel
12
- attr_accessor id: String
8
+ module PaymentMethodListResponse
9
+ extend WhopSDK::Internal::Type::Union
13
10
 
14
- attr_accessor card: WhopSDK::Models::PaymentMethodListResponse::Card?
11
+ type base_payment_method =
12
+ {
13
+ id: String,
14
+ created_at: Time,
15
+ payment_method_type: WhopSDK::Models::payment_method_types,
16
+ typename: :BasePaymentMethod
17
+ }
18
+
19
+ class BasePaymentMethod < WhopSDK::Internal::Type::BaseModel
20
+ attr_accessor id: String
15
21
 
16
- attr_accessor created_at: Time
22
+ attr_accessor created_at: Time
17
23
 
18
- attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
24
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
19
25
 
20
- def initialize: (
21
- id: String,
22
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
23
- created_at: Time,
24
- payment_method_type: WhopSDK::Models::payment_method_types
25
- ) -> void
26
+ attr_accessor typename: :BasePaymentMethod
27
+
28
+ def initialize: (
29
+ id: String,
30
+ created_at: Time,
31
+ payment_method_type: WhopSDK::Models::payment_method_types,
32
+ ?typename: :BasePaymentMethod
33
+ ) -> void
26
34
 
27
- def to_hash: -> {
28
- id: String,
29
- card: WhopSDK::Models::PaymentMethodListResponse::Card?,
30
- created_at: Time,
31
- payment_method_type: WhopSDK::Models::payment_method_types
32
- }
35
+ def to_hash: -> {
36
+ id: String,
37
+ created_at: Time,
38
+ payment_method_type: WhopSDK::Models::payment_method_types,
39
+ typename: :BasePaymentMethod
40
+ }
41
+ end
33
42
 
34
- type card =
43
+ type card_payment_method =
35
44
  {
36
- brand: WhopSDK::Models::card_brands?,
37
- exp_month: Integer?,
38
- exp_year: Integer?,
39
- :last4 => String?
45
+ id: String,
46
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
47
+ created_at: Time,
48
+ payment_method_type: WhopSDK::Models::payment_method_types,
49
+ typename: :CardPaymentMethod
40
50
  }
41
51
 
42
- class Card < WhopSDK::Internal::Type::BaseModel
43
- attr_accessor brand: WhopSDK::Models::card_brands?
52
+ class CardPaymentMethod < WhopSDK::Internal::Type::BaseModel
53
+ attr_accessor id: String
54
+
55
+ attr_accessor card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card
44
56
 
45
- attr_accessor exp_month: Integer?
57
+ attr_accessor created_at: Time
46
58
 
47
- attr_accessor exp_year: Integer?
59
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
48
60
 
49
- attr_accessor last4: String?
61
+ attr_accessor typename: :CardPaymentMethod
50
62
 
51
63
  def initialize: (
52
- brand: WhopSDK::Models::card_brands?,
53
- exp_month: Integer?,
54
- exp_year: Integer?,
55
- last4: String?
64
+ id: String,
65
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
66
+ created_at: Time,
67
+ payment_method_type: WhopSDK::Models::payment_method_types,
68
+ ?typename: :CardPaymentMethod
56
69
  ) -> void
57
70
 
58
71
  def to_hash: -> {
59
- brand: WhopSDK::Models::card_brands?,
60
- exp_month: Integer?,
61
- exp_year: Integer?,
62
- :last4 => String?
72
+ id: String,
73
+ card: WhopSDK::Models::PaymentMethodListResponse::CardPaymentMethod::Card,
74
+ created_at: Time,
75
+ payment_method_type: WhopSDK::Models::payment_method_types,
76
+ typename: :CardPaymentMethod
63
77
  }
78
+
79
+ type card =
80
+ {
81
+ brand: WhopSDK::Models::card_brands?,
82
+ exp_month: Integer?,
83
+ exp_year: Integer?,
84
+ :last4 => String?
85
+ }
86
+
87
+ class Card < WhopSDK::Internal::Type::BaseModel
88
+ attr_accessor brand: WhopSDK::Models::card_brands?
89
+
90
+ attr_accessor exp_month: Integer?
91
+
92
+ attr_accessor exp_year: Integer?
93
+
94
+ attr_accessor last4: String?
95
+
96
+ def initialize: (
97
+ brand: WhopSDK::Models::card_brands?,
98
+ exp_month: Integer?,
99
+ exp_year: Integer?,
100
+ last4: String?
101
+ ) -> void
102
+
103
+ def to_hash: -> {
104
+ brand: WhopSDK::Models::card_brands?,
105
+ exp_month: Integer?,
106
+ exp_year: Integer?,
107
+ :last4 => String?
108
+ }
109
+ end
64
110
  end
111
+
112
+ type us_bank_account_payment_method =
113
+ {
114
+ id: String,
115
+ created_at: Time,
116
+ payment_method_type: WhopSDK::Models::payment_method_types,
117
+ typename: :UsBankAccountPaymentMethod,
118
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
119
+ }
120
+
121
+ class UsBankAccountPaymentMethod < WhopSDK::Internal::Type::BaseModel
122
+ attr_accessor id: String
123
+
124
+ attr_accessor created_at: Time
125
+
126
+ attr_accessor payment_method_type: WhopSDK::Models::payment_method_types
127
+
128
+ attr_accessor typename: :UsBankAccountPaymentMethod
129
+
130
+ attr_accessor us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
131
+
132
+ def initialize: (
133
+ id: String,
134
+ created_at: Time,
135
+ payment_method_type: WhopSDK::Models::payment_method_types,
136
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount,
137
+ ?typename: :UsBankAccountPaymentMethod
138
+ ) -> void
139
+
140
+ def to_hash: -> {
141
+ id: String,
142
+ created_at: Time,
143
+ payment_method_type: WhopSDK::Models::payment_method_types,
144
+ typename: :UsBankAccountPaymentMethod,
145
+ us_bank_account: WhopSDK::Models::PaymentMethodListResponse::UsBankAccountPaymentMethod::UsBankAccount
146
+ }
147
+
148
+ type us_bank_account =
149
+ { account_type: String, bank_name: String, :last4 => String }
150
+
151
+ class UsBankAccount < WhopSDK::Internal::Type::BaseModel
152
+ attr_accessor account_type: String
153
+
154
+ attr_accessor bank_name: String
155
+
156
+ attr_accessor last4: String
157
+
158
+ def initialize: (
159
+ account_type: String,
160
+ bank_name: String,
161
+ last4: String
162
+ ) -> void
163
+
164
+ def to_hash: -> {
165
+ account_type: String,
166
+ bank_name: String,
167
+ :last4 => String
168
+ }
169
+ end
170
+ end
171
+
172
+ def self?.variants: -> ::Array[WhopSDK::Models::payment_method_list_response]
65
173
  end
66
174
  end
67
175
  end