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
@@ -1,67 +1,175 @@
1
1
  module WhopSDK
2
2
  module Models
3
3
  type payment_method_retrieve_response =
4
- {
5
- id: String,
6
- card: WhopSDK::Models::PaymentMethodRetrieveResponse::Card?,
7
- created_at: Time,
8
- payment_method_type: WhopSDK::Models::payment_method_types
9
- }
4
+ WhopSDK::Models::PaymentMethodRetrieveResponse::BasePaymentMethod
5
+ | WhopSDK::Models::PaymentMethodRetrieveResponse::CardPaymentMethod
6
+ | WhopSDK::Models::PaymentMethodRetrieveResponse::UsBankAccountPaymentMethod
10
7
 
11
- class PaymentMethodRetrieveResponse < WhopSDK::Internal::Type::BaseModel
12
- attr_accessor id: String
8
+ module PaymentMethodRetrieveResponse
9
+ extend WhopSDK::Internal::Type::Union
13
10
 
14
- attr_accessor card: WhopSDK::Models::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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::PaymentMethodRetrieveResponse::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_retrieve_response]
65
173
  end
66
174
  end
67
175
  end
@@ -0,0 +1,46 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payout_method_list_params =
4
+ {
5
+ company_id: String,
6
+ after: String?,
7
+ before: String?,
8
+ first: Integer?,
9
+ last: Integer?
10
+ }
11
+ & WhopSDK::Internal::Type::request_parameters
12
+
13
+ class PayoutMethodListParams < WhopSDK::Internal::Type::BaseModel
14
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
15
+ include WhopSDK::Internal::Type::RequestParameters
16
+
17
+ attr_accessor company_id: String
18
+
19
+ attr_accessor after: String?
20
+
21
+ attr_accessor before: String?
22
+
23
+ attr_accessor first: Integer?
24
+
25
+ attr_accessor last: Integer?
26
+
27
+ def initialize: (
28
+ company_id: String,
29
+ ?after: String?,
30
+ ?before: String?,
31
+ ?first: Integer?,
32
+ ?last: Integer?,
33
+ ?request_options: WhopSDK::request_opts
34
+ ) -> void
35
+
36
+ def to_hash: -> {
37
+ company_id: String,
38
+ after: String?,
39
+ before: String?,
40
+ first: Integer?,
41
+ last: Integer?,
42
+ request_options: WhopSDK::RequestOptions
43
+ }
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,83 @@
1
+ module WhopSDK
2
+ module Models
3
+ type payout_method_list_response =
4
+ {
5
+ id: String,
6
+ currency: String,
7
+ destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
8
+ nickname: String?
9
+ }
10
+
11
+ class PayoutMethodListResponse < WhopSDK::Internal::Type::BaseModel
12
+ attr_accessor id: String
13
+
14
+ attr_accessor currency: String
15
+
16
+ attr_accessor destination: WhopSDK::Models::PayoutMethodListResponse::Destination?
17
+
18
+ attr_accessor nickname: String?
19
+
20
+ def initialize: (
21
+ id: String,
22
+ currency: String,
23
+ destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
24
+ nickname: String?
25
+ ) -> void
26
+
27
+ def to_hash: -> {
28
+ id: String,
29
+ currency: String,
30
+ destination: WhopSDK::Models::PayoutMethodListResponse::Destination?,
31
+ nickname: String?
32
+ }
33
+
34
+ type destination =
35
+ {
36
+ category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
37
+ country_code: String,
38
+ name: String
39
+ }
40
+
41
+ class Destination < WhopSDK::Internal::Type::BaseModel
42
+ attr_accessor category: WhopSDK::Models::PayoutMethodListResponse::Destination::category
43
+
44
+ attr_accessor country_code: String
45
+
46
+ attr_accessor name: String
47
+
48
+ def initialize: (
49
+ category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
50
+ country_code: String,
51
+ name: String
52
+ ) -> void
53
+
54
+ def to_hash: -> {
55
+ category: WhopSDK::Models::PayoutMethodListResponse::Destination::category,
56
+ country_code: String,
57
+ name: String
58
+ }
59
+
60
+ type category =
61
+ :crypto
62
+ | :rtp
63
+ | :next_day_bank
64
+ | :bank_wire
65
+ | :digital_wallet
66
+ | :unknown
67
+
68
+ module Category
69
+ extend WhopSDK::Internal::Type::Enum
70
+
71
+ CRYPTO: :crypto
72
+ RTP: :rtp
73
+ NEXT_DAY_BANK: :next_day_bank
74
+ BANK_WIRE: :bank_wire
75
+ DIGITAL_WALLET: :digital_wallet
76
+ UNKNOWN: :unknown
77
+
78
+ def self?.values: -> ::Array[WhopSDK::Models::PayoutMethodListResponse::Destination::category]
79
+ end
80
+ end
81
+ end
82
+ end
83
+ end
@@ -0,0 +1,41 @@
1
+ module WhopSDK
2
+ module Models
3
+ type withdrawal_create_params =
4
+ {
5
+ amount: Float,
6
+ company_id: String,
7
+ currency: WhopSDK::Models::currency,
8
+ payout_method_id: String?
9
+ }
10
+ & WhopSDK::Internal::Type::request_parameters
11
+
12
+ class WithdrawalCreateParams < WhopSDK::Internal::Type::BaseModel
13
+ extend WhopSDK::Internal::Type::RequestParameters::Converter
14
+ include WhopSDK::Internal::Type::RequestParameters
15
+
16
+ attr_accessor amount: Float
17
+
18
+ attr_accessor company_id: String
19
+
20
+ attr_accessor currency: WhopSDK::Models::currency
21
+
22
+ attr_accessor payout_method_id: String?
23
+
24
+ def initialize: (
25
+ amount: Float,
26
+ company_id: String,
27
+ currency: WhopSDK::Models::currency,
28
+ ?payout_method_id: String?,
29
+ ?request_options: WhopSDK::request_opts
30
+ ) -> void
31
+
32
+ def to_hash: -> {
33
+ amount: Float,
34
+ company_id: String,
35
+ currency: WhopSDK::Models::currency,
36
+ payout_method_id: String?,
37
+ request_options: WhopSDK::RequestOptions
38
+ }
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,243 @@
1
+ module WhopSDK
2
+ module Models
3
+ type withdrawal_create_response =
4
+ {
5
+ id: String,
6
+ amount: Float,
7
+ created_at: Time,
8
+ currency: WhopSDK::Models::currency,
9
+ error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
10
+ error_message: String?,
11
+ estimated_availability: Time?,
12
+ fee_amount: Float,
13
+ fee_type: WhopSDK::Models::withdrawal_fee_types?,
14
+ ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
15
+ markup_fee: Float,
16
+ payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
17
+ speed: WhopSDK::Models::withdrawal_speeds,
18
+ status: WhopSDK::Models::withdrawal_status,
19
+ trace_code: String?,
20
+ withdrawal_type: WhopSDK::Models::withdrawal_types
21
+ }
22
+
23
+ class WithdrawalCreateResponse < WhopSDK::Internal::Type::BaseModel
24
+ attr_accessor id: String
25
+
26
+ attr_accessor amount: Float
27
+
28
+ attr_accessor created_at: Time
29
+
30
+ attr_accessor currency: WhopSDK::Models::currency
31
+
32
+ attr_accessor error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?
33
+
34
+ attr_accessor error_message: String?
35
+
36
+ attr_accessor estimated_availability: Time?
37
+
38
+ attr_accessor fee_amount: Float
39
+
40
+ attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
41
+
42
+ attr_accessor ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount
43
+
44
+ attr_accessor markup_fee: Float
45
+
46
+ attr_accessor payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?
47
+
48
+ attr_accessor speed: WhopSDK::Models::withdrawal_speeds
49
+
50
+ attr_accessor status: WhopSDK::Models::withdrawal_status
51
+
52
+ attr_accessor trace_code: String?
53
+
54
+ attr_accessor withdrawal_type: WhopSDK::Models::withdrawal_types
55
+
56
+ def initialize: (
57
+ id: String,
58
+ amount: Float,
59
+ created_at: Time,
60
+ currency: WhopSDK::Models::currency,
61
+ error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
62
+ error_message: String?,
63
+ estimated_availability: Time?,
64
+ fee_amount: Float,
65
+ fee_type: WhopSDK::Models::withdrawal_fee_types?,
66
+ ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
67
+ markup_fee: Float,
68
+ payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
69
+ speed: WhopSDK::Models::withdrawal_speeds,
70
+ status: WhopSDK::Models::withdrawal_status,
71
+ trace_code: String?,
72
+ withdrawal_type: WhopSDK::Models::withdrawal_types
73
+ ) -> void
74
+
75
+ def to_hash: -> {
76
+ id: String,
77
+ amount: Float,
78
+ created_at: Time,
79
+ currency: WhopSDK::Models::currency,
80
+ error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
81
+ error_message: String?,
82
+ estimated_availability: Time?,
83
+ fee_amount: Float,
84
+ fee_type: WhopSDK::Models::withdrawal_fee_types?,
85
+ ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
86
+ markup_fee: Float,
87
+ payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
88
+ speed: WhopSDK::Models::withdrawal_speeds,
89
+ status: WhopSDK::Models::withdrawal_status,
90
+ trace_code: String?,
91
+ withdrawal_type: WhopSDK::Models::withdrawal_types
92
+ }
93
+
94
+ type error_code =
95
+ :account_closed
96
+ | :account_does_not_exist
97
+ | :account_information_invalid
98
+ | :account_number_invalid_region
99
+ | :account_frozen
100
+ | :account_lookup_failed
101
+ | :account_not_found
102
+ | :amount_out_of_bounds
103
+ | :attributes_not_validated
104
+ | :b2b_payments_prohibited
105
+ | :bank_statement_required
106
+ | :compliance_review
107
+ | :currency_not_supported
108
+ | :deposit_canceled
109
+ | :deposit_failed
110
+ | :deposit_rejected
111
+ | :destination_unavailable
112
+ | :exceeded_account_limit
113
+ | :expired_quote
114
+ | :generic_payout_error
115
+ | :technical_problem
116
+ | :identification_number_invalid
117
+ | :invalid_account_number
118
+ | :invalid_bank_code
119
+ | :invalid_beneficiary
120
+ | :invalid_branch_number
121
+ | :invalid_branch_code
122
+ | :invalid_phone_number
123
+ | :invalid_routing_number
124
+ | :invalid_swift_code
125
+ | :invalid_company_details
126
+ | :manual_cancelation
127
+ | :misc_error
128
+ | :missing_city_and_country
129
+ | :missing_phone_number
130
+ | :missing_remittance_info
131
+ | :payee_name_invalid
132
+ | :receiving_account_locked
133
+ | :rejected_by_compliance
134
+ | :rtp_not_supported
135
+ | :non_transaction_account
136
+ | :source_token_insufficient_funds
137
+ | :ssn_invalid
138
+ | :wallet_screenshot_required
139
+ | :unsupported_region
140
+
141
+ module ErrorCode
142
+ extend WhopSDK::Internal::Type::Enum
143
+
144
+ ACCOUNT_CLOSED: :account_closed
145
+ ACCOUNT_DOES_NOT_EXIST: :account_does_not_exist
146
+ ACCOUNT_INFORMATION_INVALID: :account_information_invalid
147
+ ACCOUNT_NUMBER_INVALID_REGION: :account_number_invalid_region
148
+ ACCOUNT_FROZEN: :account_frozen
149
+ ACCOUNT_LOOKUP_FAILED: :account_lookup_failed
150
+ ACCOUNT_NOT_FOUND: :account_not_found
151
+ AMOUNT_OUT_OF_BOUNDS: :amount_out_of_bounds
152
+ ATTRIBUTES_NOT_VALIDATED: :attributes_not_validated
153
+ B2B_PAYMENTS_PROHIBITED: :b2b_payments_prohibited
154
+ BANK_STATEMENT_REQUIRED: :bank_statement_required
155
+ COMPLIANCE_REVIEW: :compliance_review
156
+ CURRENCY_NOT_SUPPORTED: :currency_not_supported
157
+ DEPOSIT_CANCELED: :deposit_canceled
158
+ DEPOSIT_FAILED: :deposit_failed
159
+ DEPOSIT_REJECTED: :deposit_rejected
160
+ DESTINATION_UNAVAILABLE: :destination_unavailable
161
+ EXCEEDED_ACCOUNT_LIMIT: :exceeded_account_limit
162
+ EXPIRED_QUOTE: :expired_quote
163
+ GENERIC_PAYOUT_ERROR: :generic_payout_error
164
+ TECHNICAL_PROBLEM: :technical_problem
165
+ IDENTIFICATION_NUMBER_INVALID: :identification_number_invalid
166
+ INVALID_ACCOUNT_NUMBER: :invalid_account_number
167
+ INVALID_BANK_CODE: :invalid_bank_code
168
+ INVALID_BENEFICIARY: :invalid_beneficiary
169
+ INVALID_BRANCH_NUMBER: :invalid_branch_number
170
+ INVALID_BRANCH_CODE: :invalid_branch_code
171
+ INVALID_PHONE_NUMBER: :invalid_phone_number
172
+ INVALID_ROUTING_NUMBER: :invalid_routing_number
173
+ INVALID_SWIFT_CODE: :invalid_swift_code
174
+ INVALID_COMPANY_DETAILS: :invalid_company_details
175
+ MANUAL_CANCELATION: :manual_cancelation
176
+ MISC_ERROR: :misc_error
177
+ MISSING_CITY_AND_COUNTRY: :missing_city_and_country
178
+ MISSING_PHONE_NUMBER: :missing_phone_number
179
+ MISSING_REMITTANCE_INFO: :missing_remittance_info
180
+ PAYEE_NAME_INVALID: :payee_name_invalid
181
+ RECEIVING_ACCOUNT_LOCKED: :receiving_account_locked
182
+ REJECTED_BY_COMPLIANCE: :rejected_by_compliance
183
+ RTP_NOT_SUPPORTED: :rtp_not_supported
184
+ NON_TRANSACTION_ACCOUNT: :non_transaction_account
185
+ SOURCE_TOKEN_INSUFFICIENT_FUNDS: :source_token_insufficient_funds
186
+ SSN_INVALID: :ssn_invalid
187
+ WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
188
+ UNSUPPORTED_REGION: :unsupported_region
189
+
190
+ def self?.values: -> ::Array[WhopSDK::Models::WithdrawalCreateResponse::error_code]
191
+ end
192
+
193
+ type ledger_account = { id: String, company_id: String? }
194
+
195
+ class LedgerAccount < WhopSDK::Internal::Type::BaseModel
196
+ attr_accessor id: String
197
+
198
+ attr_accessor company_id: String?
199
+
200
+ def initialize: (id: String, company_id: String?) -> void
201
+
202
+ def to_hash: -> { id: String, company_id: String? }
203
+ end
204
+
205
+ type payout_token =
206
+ {
207
+ id: String,
208
+ created_at: Time,
209
+ destination_currency_code: String,
210
+ nickname: String?,
211
+ payer_name: String?
212
+ }
213
+
214
+ class PayoutToken < WhopSDK::Internal::Type::BaseModel
215
+ attr_accessor id: String
216
+
217
+ attr_accessor created_at: Time
218
+
219
+ attr_accessor destination_currency_code: String
220
+
221
+ attr_accessor nickname: String?
222
+
223
+ attr_accessor payer_name: String?
224
+
225
+ def initialize: (
226
+ id: String,
227
+ created_at: Time,
228
+ destination_currency_code: String,
229
+ nickname: String?,
230
+ payer_name: String?
231
+ ) -> void
232
+
233
+ def to_hash: -> {
234
+ id: String,
235
+ created_at: Time,
236
+ destination_currency_code: String,
237
+ nickname: String?,
238
+ payer_name: String?
239
+ }
240
+ end
241
+ end
242
+ end
243
+ end
@@ -317,6 +317,8 @@ module WhopSDK
317
317
 
318
318
  class PaymentFailedWebhookEvent = WhopSDK::Models::PaymentFailedWebhookEvent
319
319
 
320
+ class PaymentListFeesParams = WhopSDK::Models::PaymentListFeesParams
321
+
320
322
  class PaymentListParams = WhopSDK::Models::PaymentListParams
321
323
 
322
324
  class PaymentMethodListParams = WhopSDK::Models::PaymentMethodListParams
@@ -339,6 +341,8 @@ module WhopSDK
339
341
 
340
342
  class PaymentVoidParams = WhopSDK::Models::PaymentVoidParams
341
343
 
344
+ class PayoutMethodListParams = WhopSDK::Models::PayoutMethodListParams
345
+
342
346
  class Plan = WhopSDK::Models::Plan
343
347
 
344
348
  class PlanCreateParams = WhopSDK::Models::PlanCreateParams
@@ -483,6 +487,8 @@ module WhopSDK
483
487
 
484
488
  class WithdrawalCreatedWebhookEvent = WhopSDK::Models::WithdrawalCreatedWebhookEvent
485
489
 
490
+ class WithdrawalCreateParams = WhopSDK::Models::WithdrawalCreateParams
491
+
486
492
  module WithdrawalFeeTypes = WhopSDK::Models::WithdrawalFeeTypes
487
493
 
488
494
  class WithdrawalListParams = WhopSDK::Models::WithdrawalListParams
@@ -5,7 +5,7 @@ module WhopSDK
5
5
  String id,
6
6
  member_id: String,
7
7
  ?request_options: WhopSDK::request_opts
8
- ) -> WhopSDK::Models::PaymentMethodRetrieveResponse
8
+ ) -> WhopSDK::Models::payment_method_retrieve_response
9
9
 
10
10
  def list: (
11
11
  member_id: String,
@@ -17,7 +17,7 @@ module WhopSDK
17
17
  ?first: Integer?,
18
18
  ?last: Integer?,
19
19
  ?request_options: WhopSDK::request_opts
20
- ) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::PaymentMethodListResponse]
20
+ ) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::payment_method_list_response]
21
21
 
22
22
  def initialize: (client: WhopSDK::Client) -> void
23
23
  end
@@ -35,6 +35,15 @@ module WhopSDK
35
35
  ?request_options: WhopSDK::request_opts
36
36
  ) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::PaymentListResponse]
37
37
 
38
+ def list_fees: (
39
+ String id,
40
+ ?after: String?,
41
+ ?before: String?,
42
+ ?first: Integer?,
43
+ ?last: Integer?,
44
+ ?request_options: WhopSDK::request_opts
45
+ ) -> WhopSDK::Internal::CursorPage[WhopSDK::Models::PaymentListFeesResponse]
46
+
38
47
  def refund: (
39
48
  String id,
40
49
  ?partial_amount: Float?,