whop_sdk 0.0.25 → 0.0.26

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 (228) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +15 -0
  3. data/README.md +1 -1
  4. data/lib/whop_sdk/client.rb +4 -0
  5. data/lib/whop_sdk/internal/transport/pooled_net_requester.rb +1 -1
  6. data/lib/whop_sdk/models/{ai_chat_create_response.rb → ai_chat.rb} +5 -5
  7. data/lib/whop_sdk/models/api_version.rb +17 -0
  8. data/lib/whop_sdk/models/authorized_user_list_params.rb +9 -9
  9. data/lib/whop_sdk/models/authorized_user_list_response.rb +31 -1
  10. data/lib/whop_sdk/models/authorized_user_retrieve_response.rb +31 -1
  11. data/lib/whop_sdk/models/bot_token_transaction_types.rb +17 -0
  12. data/lib/whop_sdk/models/cancel_options.rb +22 -0
  13. data/lib/whop_sdk/models/{company_token_transaction_create_response.rb → company_token_transaction.rb} +16 -31
  14. data/lib/whop_sdk/models/company_token_transaction_list_params.rb +3 -17
  15. data/lib/whop_sdk/models/company_token_transaction_list_response.rb +3 -18
  16. data/lib/whop_sdk/models/dm_channel.rb +43 -0
  17. data/lib/whop_sdk/models/dm_channel_create_params.rb +38 -0
  18. data/lib/whop_sdk/models/dm_channel_delete_params.rb +14 -0
  19. data/lib/whop_sdk/models/dm_channel_delete_response.rb +8 -0
  20. data/lib/whop_sdk/models/dm_channel_list_params.rb +54 -0
  21. data/lib/whop_sdk/models/dm_channel_list_response.rb +43 -0
  22. data/lib/whop_sdk/models/dm_channel_retrieve_params.rb +14 -0
  23. data/lib/whop_sdk/models/dm_channel_update_params.rb +22 -0
  24. data/lib/whop_sdk/models/dm_feed_member_notification_preferences.rb +17 -0
  25. data/lib/whop_sdk/models/dm_feed_member_statuses.rb +19 -0
  26. data/lib/whop_sdk/models/{dm_member_create_response.rb → dm_member.rb} +8 -39
  27. data/lib/whop_sdk/models/dm_member_list_response.rb +3 -19
  28. data/lib/whop_sdk/models/dm_member_update_params.rb +6 -34
  29. data/lib/whop_sdk/models/file_create_response.rb +3 -18
  30. data/lib/whop_sdk/models/file_retrieve_response.rb +3 -18
  31. data/lib/whop_sdk/models/{lead_create_response.rb → lead.rb} +13 -13
  32. data/lib/whop_sdk/models/ledger_account_retrieve_response.rb +6 -63
  33. data/lib/whop_sdk/models/member_list_params.rb +9 -9
  34. data/lib/whop_sdk/models/membership.rb +3 -22
  35. data/lib/whop_sdk/models/membership_list_params.rb +3 -20
  36. data/lib/whop_sdk/models/membership_list_response.rb +3 -22
  37. data/lib/whop_sdk/models/payment.rb +63 -1
  38. data/lib/whop_sdk/models/payment_list_response.rb +63 -1
  39. data/lib/whop_sdk/models/payout_destination_category.rb +20 -0
  40. data/lib/whop_sdk/models/payout_method_created_webhook_event.rb +3 -20
  41. data/lib/whop_sdk/models/payout_method_list_response.rb +3 -20
  42. data/lib/whop_sdk/models/payout_method_retrieve_response.rb +3 -20
  43. data/lib/whop_sdk/models/upload_status.rb +18 -0
  44. data/lib/whop_sdk/models/verification_error_code.rb +33 -0
  45. data/lib/whop_sdk/models/verification_retrieve_response.rb +6 -62
  46. data/lib/whop_sdk/models/verification_status.rb +27 -0
  47. data/lib/whop_sdk/models/verification_succeeded_webhook_event.rb +6 -62
  48. data/lib/whop_sdk/models/webhook.rb +88 -0
  49. data/lib/whop_sdk/models/webhook_create_params.rb +6 -56
  50. data/lib/whop_sdk/models/webhook_create_response.rb +9 -97
  51. data/lib/whop_sdk/models/webhook_event.rb +41 -0
  52. data/lib/whop_sdk/models/webhook_list_response.rb +6 -57
  53. data/lib/whop_sdk/models/webhook_update_params.rb +6 -56
  54. data/lib/whop_sdk/models/{withdrawal_create_response.rb → withdrawal.rb} +15 -15
  55. data/lib/whop_sdk/models/withdrawal_created_webhook_event.rb +3 -267
  56. data/lib/whop_sdk/models/withdrawal_updated_webhook_event.rb +3 -267
  57. data/lib/whop_sdk/models.rb +44 -0
  58. data/lib/whop_sdk/resources/ai_chats.rb +6 -6
  59. data/lib/whop_sdk/resources/authorized_users.rb +4 -4
  60. data/lib/whop_sdk/resources/company_token_transactions.rb +5 -5
  61. data/lib/whop_sdk/resources/dm_channels.rb +151 -0
  62. data/lib/whop_sdk/resources/dm_members.rb +8 -8
  63. data/lib/whop_sdk/resources/leads.rb +6 -12
  64. data/lib/whop_sdk/resources/members.rb +4 -4
  65. data/lib/whop_sdk/resources/memberships.rb +1 -1
  66. data/lib/whop_sdk/resources/webhooks.rb +8 -8
  67. data/lib/whop_sdk/resources/withdrawals.rb +4 -4
  68. data/lib/whop_sdk/version.rb +1 -1
  69. data/lib/whop_sdk.rb +25 -15
  70. data/rbi/whop_sdk/client.rbi +3 -0
  71. data/rbi/whop_sdk/models/{ai_chat_update_response.rbi → ai_chat.rbi} +7 -17
  72. data/rbi/whop_sdk/models/api_version.rbi +21 -0
  73. data/rbi/whop_sdk/models/authorized_user_list_params.rbi +8 -8
  74. data/rbi/whop_sdk/models/authorized_user_list_response.rbi +47 -0
  75. data/rbi/whop_sdk/models/authorized_user_retrieve_response.rbi +49 -0
  76. data/rbi/whop_sdk/models/bot_token_transaction_types.rbi +28 -0
  77. data/rbi/whop_sdk/models/cancel_options.rbi +30 -0
  78. data/rbi/whop_sdk/models/{company_token_transaction_create_response.rbi → company_token_transaction.rbi} +20 -91
  79. data/rbi/whop_sdk/models/company_token_transaction_list_params.rbi +3 -53
  80. data/rbi/whop_sdk/models/company_token_transaction_list_response.rbi +3 -49
  81. data/rbi/whop_sdk/models/dm_channel.rbi +60 -0
  82. data/rbi/whop_sdk/models/dm_channel_create_params.rbi +59 -0
  83. data/rbi/whop_sdk/models/dm_channel_delete_params.rbi +27 -0
  84. data/rbi/whop_sdk/models/dm_channel_delete_response.rbi +8 -0
  85. data/rbi/whop_sdk/models/dm_channel_list_params.rbi +75 -0
  86. data/rbi/whop_sdk/models/dm_channel_list_response.rbi +65 -0
  87. data/rbi/whop_sdk/models/dm_channel_retrieve_params.rbi +27 -0
  88. data/rbi/whop_sdk/models/dm_channel_update_params.rbi +43 -0
  89. data/rbi/whop_sdk/models/dm_feed_member_notification_preferences.rbi +34 -0
  90. data/rbi/whop_sdk/models/dm_feed_member_statuses.rbi +26 -0
  91. data/rbi/whop_sdk/models/dm_member.rbi +82 -0
  92. data/rbi/whop_sdk/models/dm_member_list_response.rbi +3 -52
  93. data/rbi/whop_sdk/models/dm_member_update_params.rbi +6 -79
  94. data/rbi/whop_sdk/models/file_create_response.rbi +3 -49
  95. data/rbi/whop_sdk/models/file_retrieve_response.rbi +3 -51
  96. data/rbi/whop_sdk/models/{lead_update_response.rbi → lead.rbi} +17 -42
  97. data/rbi/whop_sdk/models/ledger_account_retrieve_response.rbi +6 -230
  98. data/rbi/whop_sdk/models/member_list_params.rbi +8 -8
  99. data/rbi/whop_sdk/models/membership.rbi +3 -47
  100. data/rbi/whop_sdk/models/membership_list_params.rbi +3 -70
  101. data/rbi/whop_sdk/models/membership_list_response.rbi +3 -73
  102. data/rbi/whop_sdk/models/payment.rbi +88 -0
  103. data/rbi/whop_sdk/models/payment_list_response.rbi +100 -0
  104. data/rbi/whop_sdk/models/payout_destination_category.rbi +33 -0
  105. data/rbi/whop_sdk/models/payout_method_created_webhook_event.rbi +3 -64
  106. data/rbi/whop_sdk/models/payout_method_list_response.rbi +3 -64
  107. data/rbi/whop_sdk/models/payout_method_retrieve_response.rbi +3 -64
  108. data/rbi/whop_sdk/models/upload_status.rbi +22 -0
  109. data/rbi/whop_sdk/models/verification_error_code.rbi +101 -0
  110. data/rbi/whop_sdk/models/verification_retrieve_response.rbi +6 -230
  111. data/rbi/whop_sdk/models/verification_status.rbi +38 -0
  112. data/rbi/whop_sdk/models/verification_succeeded_webhook_event.rbi +6 -232
  113. data/rbi/whop_sdk/models/webhook.rbi +104 -0
  114. data/rbi/whop_sdk/models/webhook_create_params.rbi +6 -194
  115. data/rbi/whop_sdk/models/webhook_create_response.rbi +9 -386
  116. data/rbi/whop_sdk/models/webhook_event.rbi +79 -0
  117. data/rbi/whop_sdk/models/webhook_list_response.rbi +6 -210
  118. data/rbi/whop_sdk/models/webhook_update_params.rbi +6 -194
  119. data/rbi/whop_sdk/models/{withdrawal_create_response.rbi → withdrawal.rbi} +63 -127
  120. data/rbi/whop_sdk/models/withdrawal_created_webhook_event.rbi +4 -571
  121. data/rbi/whop_sdk/models/withdrawal_updated_webhook_event.rbi +4 -571
  122. data/rbi/whop_sdk/models.rbi +45 -0
  123. data/rbi/whop_sdk/resources/ai_chats.rbi +3 -3
  124. data/rbi/whop_sdk/resources/authorized_users.rbi +3 -3
  125. data/rbi/whop_sdk/resources/company_token_transactions.rbi +3 -5
  126. data/rbi/whop_sdk/resources/dm_channels.rbi +121 -0
  127. data/rbi/whop_sdk/resources/dm_members.rbi +5 -7
  128. data/rbi/whop_sdk/resources/leads.rbi +3 -3
  129. data/rbi/whop_sdk/resources/members.rbi +3 -3
  130. data/rbi/whop_sdk/resources/memberships.rbi +1 -4
  131. data/rbi/whop_sdk/resources/webhooks.rbi +6 -10
  132. data/rbi/whop_sdk/resources/withdrawals.rbi +2 -2
  133. data/sig/whop_sdk/client.rbs +2 -0
  134. data/sig/whop_sdk/models/{ai_chat_update_response.rbs → ai_chat.rbs} +6 -6
  135. data/sig/whop_sdk/models/api_version.rbs +15 -0
  136. data/sig/whop_sdk/models/authorized_user_list_params.rbs +5 -5
  137. data/sig/whop_sdk/models/authorized_user_list_response.rbs +17 -0
  138. data/sig/whop_sdk/models/authorized_user_retrieve_response.rbs +17 -0
  139. data/sig/whop_sdk/models/bot_token_transaction_types.rbs +15 -0
  140. data/sig/whop_sdk/models/cancel_options.rbs +26 -0
  141. data/sig/whop_sdk/models/{company_token_transaction_create_response.rbs → company_token_transaction.rbs} +18 -30
  142. data/sig/whop_sdk/models/company_token_transaction_list_params.rbs +4 -16
  143. data/sig/whop_sdk/models/company_token_transaction_list_response.rbs +4 -16
  144. data/sig/whop_sdk/models/dm_channel.rbs +30 -0
  145. data/sig/whop_sdk/models/dm_channel_create_params.rbs +36 -0
  146. data/sig/whop_sdk/models/dm_channel_delete_params.rbs +15 -0
  147. data/sig/whop_sdk/models/dm_channel_delete_response.rbs +5 -0
  148. data/sig/whop_sdk/models/dm_channel_list_params.rbs +46 -0
  149. data/sig/whop_sdk/models/dm_channel_list_response.rbs +30 -0
  150. data/sig/whop_sdk/models/dm_channel_retrieve_params.rbs +15 -0
  151. data/sig/whop_sdk/models/dm_channel_update_params.rbs +23 -0
  152. data/sig/whop_sdk/models/dm_feed_member_notification_preferences.rbs +15 -0
  153. data/sig/whop_sdk/models/dm_feed_member_statuses.rbs +18 -0
  154. data/sig/whop_sdk/models/dm_member.rbs +45 -0
  155. data/sig/whop_sdk/models/dm_member_list_response.rbs +4 -18
  156. data/sig/whop_sdk/models/dm_member_update_params.rbs +8 -34
  157. data/sig/whop_sdk/models/file_create_response.rbs +4 -17
  158. data/sig/whop_sdk/models/file_retrieve_response.rbs +4 -17
  159. data/sig/whop_sdk/models/{lead_update_response.rbs → lead.rbs} +14 -14
  160. data/sig/whop_sdk/models/ledger_account_retrieve_response.rbs +8 -90
  161. data/sig/whop_sdk/models/member_list_params.rbs +5 -5
  162. data/sig/whop_sdk/models/membership.rbs +4 -27
  163. data/sig/whop_sdk/models/membership_list_params.rbs +4 -27
  164. data/sig/whop_sdk/models/membership_list_response.rbs +4 -27
  165. data/sig/whop_sdk/models/payment.rbs +47 -0
  166. data/sig/whop_sdk/models/payment_list_response.rbs +47 -0
  167. data/sig/whop_sdk/models/payout_destination_category.rbs +19 -0
  168. data/sig/whop_sdk/models/payout_method_created_webhook_event.rbs +4 -25
  169. data/sig/whop_sdk/models/payout_method_list_response.rbs +4 -25
  170. data/sig/whop_sdk/models/payout_method_retrieve_response.rbs +4 -25
  171. data/sig/whop_sdk/models/upload_status.rbs +16 -0
  172. data/sig/whop_sdk/models/verification_error_code.rbs +50 -0
  173. data/sig/whop_sdk/models/verification_retrieve_response.rbs +8 -90
  174. data/sig/whop_sdk/models/verification_status.rbs +38 -0
  175. data/sig/whop_sdk/models/verification_succeeded_webhook_event.rbs +8 -90
  176. data/sig/whop_sdk/models/webhook.rbs +60 -0
  177. data/sig/whop_sdk/models/webhook_create_params.rbs +8 -83
  178. data/sig/whop_sdk/models/webhook_create_response.rbs +12 -150
  179. data/sig/whop_sdk/models/webhook_event.rbs +66 -0
  180. data/sig/whop_sdk/models/webhook_list_response.rbs +8 -83
  181. data/sig/whop_sdk/models/webhook_update_params.rbs +8 -83
  182. data/sig/whop_sdk/models/{withdrawal_create_response.rbs → withdrawal.rbs} +15 -15
  183. data/sig/whop_sdk/models/withdrawal_created_webhook_event.rbs +4 -241
  184. data/sig/whop_sdk/models/withdrawal_updated_webhook_event.rbs +4 -241
  185. data/sig/whop_sdk/models.rbs +44 -0
  186. data/sig/whop_sdk/resources/ai_chats.rbs +3 -3
  187. data/sig/whop_sdk/resources/authorized_users.rbs +1 -1
  188. data/sig/whop_sdk/resources/company_token_transactions.rbs +3 -3
  189. data/sig/whop_sdk/resources/dm_channels.rbs +36 -0
  190. data/sig/whop_sdk/resources/dm_members.rbs +5 -5
  191. data/sig/whop_sdk/resources/leads.rbs +3 -3
  192. data/sig/whop_sdk/resources/members.rbs +1 -1
  193. data/sig/whop_sdk/resources/memberships.rbs +1 -1
  194. data/sig/whop_sdk/resources/webhooks.rbs +6 -6
  195. data/sig/whop_sdk/resources/withdrawals.rbs +2 -2
  196. metadata +77 -47
  197. data/lib/whop_sdk/models/ai_chat_retrieve_response.rb +0 -89
  198. data/lib/whop_sdk/models/ai_chat_update_response.rb +0 -89
  199. data/lib/whop_sdk/models/company_token_transaction_retrieve_response.rb +0 -180
  200. data/lib/whop_sdk/models/dm_member_retrieve_response.rb +0 -94
  201. data/lib/whop_sdk/models/dm_member_update_response.rb +0 -94
  202. data/lib/whop_sdk/models/lead_retrieve_response.rb +0 -149
  203. data/lib/whop_sdk/models/lead_update_response.rb +0 -149
  204. data/lib/whop_sdk/models/webhook_retrieve_response.rb +0 -176
  205. data/lib/whop_sdk/models/webhook_update_response.rb +0 -176
  206. data/lib/whop_sdk/models/withdrawal_retrieve_response.rb +0 -268
  207. data/rbi/whop_sdk/models/ai_chat_create_response.rbi +0 -128
  208. data/rbi/whop_sdk/models/ai_chat_retrieve_response.rbi +0 -128
  209. data/rbi/whop_sdk/models/company_token_transaction_retrieve_response.rbi +0 -312
  210. data/rbi/whop_sdk/models/dm_member_create_response.rbi +0 -179
  211. data/rbi/whop_sdk/models/dm_member_retrieve_response.rbi +0 -179
  212. data/rbi/whop_sdk/models/dm_member_update_response.rbi +0 -179
  213. data/rbi/whop_sdk/models/lead_create_response.rbi +0 -234
  214. data/rbi/whop_sdk/models/lead_retrieve_response.rbi +0 -238
  215. data/rbi/whop_sdk/models/webhook_retrieve_response.rbi +0 -491
  216. data/rbi/whop_sdk/models/webhook_update_response.rbi +0 -486
  217. data/rbi/whop_sdk/models/withdrawal_retrieve_response.rbi +0 -568
  218. data/sig/whop_sdk/models/ai_chat_create_response.rbs +0 -65
  219. data/sig/whop_sdk/models/ai_chat_retrieve_response.rbs +0 -65
  220. data/sig/whop_sdk/models/company_token_transaction_retrieve_response.rbs +0 -115
  221. data/sig/whop_sdk/models/dm_member_create_response.rbs +0 -71
  222. data/sig/whop_sdk/models/dm_member_retrieve_response.rbs +0 -71
  223. data/sig/whop_sdk/models/dm_member_update_response.rbs +0 -71
  224. data/sig/whop_sdk/models/lead_create_response.rbs +0 -104
  225. data/sig/whop_sdk/models/lead_retrieve_response.rbs +0 -104
  226. data/sig/whop_sdk/models/webhook_retrieve_response.rbs +0 -198
  227. data/sig/whop_sdk/models/webhook_update_response.rbs +0 -198
  228. data/sig/whop_sdk/models/withdrawal_retrieve_response.rbs +0 -240
@@ -1,25 +1,25 @@
1
1
  module WhopSDK
2
2
  module Models
3
- type withdrawal_create_response =
3
+ type withdrawal =
4
4
  {
5
5
  id: String,
6
6
  amount: Float,
7
7
  created_at: Time,
8
8
  currency: WhopSDK::Models::currency,
9
- error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
9
+ error_code: WhopSDK::Models::Withdrawal::error_code?,
10
10
  error_message: String?,
11
11
  estimated_availability: Time?,
12
12
  fee_amount: Float,
13
13
  fee_type: WhopSDK::Models::withdrawal_fee_types?,
14
- ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
14
+ ledger_account: WhopSDK::Withdrawal::LedgerAccount,
15
15
  markup_fee: Float,
16
- payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
16
+ payout_token: WhopSDK::Withdrawal::PayoutToken?,
17
17
  speed: WhopSDK::Models::withdrawal_speeds,
18
18
  status: WhopSDK::Models::withdrawal_status,
19
19
  trace_code: String?
20
20
  }
21
21
 
22
- class WithdrawalCreateResponse < WhopSDK::Internal::Type::BaseModel
22
+ class Withdrawal < WhopSDK::Internal::Type::BaseModel
23
23
  attr_accessor id: String
24
24
 
25
25
  attr_accessor amount: Float
@@ -28,7 +28,7 @@ module WhopSDK
28
28
 
29
29
  attr_accessor currency: WhopSDK::Models::currency
30
30
 
31
- attr_accessor error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?
31
+ attr_accessor error_code: WhopSDK::Models::Withdrawal::error_code?
32
32
 
33
33
  attr_accessor error_message: String?
34
34
 
@@ -38,11 +38,11 @@ module WhopSDK
38
38
 
39
39
  attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
40
40
 
41
- attr_accessor ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount
41
+ attr_accessor ledger_account: WhopSDK::Withdrawal::LedgerAccount
42
42
 
43
43
  attr_accessor markup_fee: Float
44
44
 
45
- attr_accessor payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?
45
+ attr_accessor payout_token: WhopSDK::Withdrawal::PayoutToken?
46
46
 
47
47
  attr_accessor speed: WhopSDK::Models::withdrawal_speeds
48
48
 
@@ -55,14 +55,14 @@ module WhopSDK
55
55
  amount: Float,
56
56
  created_at: Time,
57
57
  currency: WhopSDK::Models::currency,
58
- error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
58
+ error_code: WhopSDK::Models::Withdrawal::error_code?,
59
59
  error_message: String?,
60
60
  estimated_availability: Time?,
61
61
  fee_amount: Float,
62
62
  fee_type: WhopSDK::Models::withdrawal_fee_types?,
63
- ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
63
+ ledger_account: WhopSDK::Withdrawal::LedgerAccount,
64
64
  markup_fee: Float,
65
- payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
65
+ payout_token: WhopSDK::Withdrawal::PayoutToken?,
66
66
  speed: WhopSDK::Models::withdrawal_speeds,
67
67
  status: WhopSDK::Models::withdrawal_status,
68
68
  trace_code: String?
@@ -73,14 +73,14 @@ module WhopSDK
73
73
  amount: Float,
74
74
  created_at: Time,
75
75
  currency: WhopSDK::Models::currency,
76
- error_code: WhopSDK::Models::WithdrawalCreateResponse::error_code?,
76
+ error_code: WhopSDK::Models::Withdrawal::error_code?,
77
77
  error_message: String?,
78
78
  estimated_availability: Time?,
79
79
  fee_amount: Float,
80
80
  fee_type: WhopSDK::Models::withdrawal_fee_types?,
81
- ledger_account: WhopSDK::Models::WithdrawalCreateResponse::LedgerAccount,
81
+ ledger_account: WhopSDK::Withdrawal::LedgerAccount,
82
82
  markup_fee: Float,
83
- payout_token: WhopSDK::Models::WithdrawalCreateResponse::PayoutToken?,
83
+ payout_token: WhopSDK::Withdrawal::PayoutToken?,
84
84
  speed: WhopSDK::Models::withdrawal_speeds,
85
85
  status: WhopSDK::Models::withdrawal_status,
86
86
  trace_code: String?
@@ -184,7 +184,7 @@ module WhopSDK
184
184
  WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
185
185
  UNSUPPORTED_REGION: :unsupported_region
186
186
 
187
- def self?.values: -> ::Array[WhopSDK::Models::WithdrawalCreateResponse::error_code]
187
+ def self?.values: -> ::Array[WhopSDK::Models::Withdrawal::error_code]
188
188
  end
189
189
 
190
190
  type ledger_account = { id: String, company_id: String? }
@@ -4,7 +4,7 @@ module WhopSDK
4
4
  {
5
5
  id: String,
6
6
  api_version: :v1,
7
- data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
7
+ data: WhopSDK::Withdrawal,
8
8
  timestamp: Time,
9
9
  type: :"withdrawal.created",
10
10
  company_id: String?
@@ -15,7 +15,7 @@ module WhopSDK
15
15
 
16
16
  attr_accessor api_version: :v1
17
17
 
18
- attr_accessor data: WhopSDK::WithdrawalCreatedWebhookEvent::Data
18
+ attr_accessor data: WhopSDK::Withdrawal
19
19
 
20
20
  attr_accessor timestamp: Time
21
21
 
@@ -25,7 +25,7 @@ module WhopSDK
25
25
 
26
26
  def initialize: (
27
27
  id: String,
28
- data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
28
+ data: WhopSDK::Withdrawal,
29
29
  timestamp: Time,
30
30
  ?company_id: String?,
31
31
  ?api_version: :v1,
@@ -35,248 +35,11 @@ module WhopSDK
35
35
  def to_hash: -> {
36
36
  id: String,
37
37
  api_version: :v1,
38
- data: WhopSDK::WithdrawalCreatedWebhookEvent::Data,
38
+ data: WhopSDK::Withdrawal,
39
39
  timestamp: Time,
40
40
  type: :"withdrawal.created",
41
41
  company_id: String?
42
42
  }
43
-
44
- type data =
45
- {
46
- id: String,
47
- amount: Float,
48
- created_at: Time,
49
- currency: WhopSDK::Models::currency,
50
- error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
51
- error_message: String?,
52
- estimated_availability: Time?,
53
- fee_amount: Float,
54
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
55
- ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
56
- markup_fee: Float,
57
- payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
58
- speed: WhopSDK::Models::withdrawal_speeds,
59
- status: WhopSDK::Models::withdrawal_status,
60
- trace_code: String?
61
- }
62
-
63
- class Data < WhopSDK::Internal::Type::BaseModel
64
- attr_accessor id: String
65
-
66
- attr_accessor amount: Float
67
-
68
- attr_accessor created_at: Time
69
-
70
- attr_accessor currency: WhopSDK::Models::currency
71
-
72
- attr_accessor error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?
73
-
74
- attr_accessor error_message: String?
75
-
76
- attr_accessor estimated_availability: Time?
77
-
78
- attr_accessor fee_amount: Float
79
-
80
- attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
81
-
82
- attr_accessor ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount
83
-
84
- attr_accessor markup_fee: Float
85
-
86
- attr_accessor payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?
87
-
88
- attr_accessor speed: WhopSDK::Models::withdrawal_speeds
89
-
90
- attr_accessor status: WhopSDK::Models::withdrawal_status
91
-
92
- attr_accessor trace_code: String?
93
-
94
- def initialize: (
95
- id: String,
96
- amount: Float,
97
- created_at: Time,
98
- currency: WhopSDK::Models::currency,
99
- error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
100
- error_message: String?,
101
- estimated_availability: Time?,
102
- fee_amount: Float,
103
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
104
- ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
105
- markup_fee: Float,
106
- payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
107
- speed: WhopSDK::Models::withdrawal_speeds,
108
- status: WhopSDK::Models::withdrawal_status,
109
- trace_code: String?
110
- ) -> void
111
-
112
- def to_hash: -> {
113
- id: String,
114
- amount: Float,
115
- created_at: Time,
116
- currency: WhopSDK::Models::currency,
117
- error_code: WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code?,
118
- error_message: String?,
119
- estimated_availability: Time?,
120
- fee_amount: Float,
121
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
122
- ledger_account: WhopSDK::WithdrawalCreatedWebhookEvent::Data::LedgerAccount,
123
- markup_fee: Float,
124
- payout_token: WhopSDK::WithdrawalCreatedWebhookEvent::Data::PayoutToken?,
125
- speed: WhopSDK::Models::withdrawal_speeds,
126
- status: WhopSDK::Models::withdrawal_status,
127
- trace_code: String?
128
- }
129
-
130
- type error_code =
131
- :account_closed
132
- | :account_does_not_exist
133
- | :account_information_invalid
134
- | :account_number_invalid_region
135
- | :account_frozen
136
- | :account_lookup_failed
137
- | :account_not_found
138
- | :amount_out_of_bounds
139
- | :attributes_not_validated
140
- | :b2b_payments_prohibited
141
- | :bank_statement_required
142
- | :compliance_review
143
- | :currency_not_supported
144
- | :deposit_canceled
145
- | :deposit_failed
146
- | :deposit_rejected
147
- | :destination_unavailable
148
- | :exceeded_account_limit
149
- | :expired_quote
150
- | :generic_payout_error
151
- | :technical_problem
152
- | :identification_number_invalid
153
- | :invalid_account_number
154
- | :invalid_bank_code
155
- | :invalid_beneficiary
156
- | :invalid_mailing_address
157
- | :invalid_branch_number
158
- | :invalid_branch_code
159
- | :invalid_phone_number
160
- | :invalid_routing_number
161
- | :invalid_swift_code
162
- | :invalid_company_details
163
- | :manual_cancelation
164
- | :misc_error
165
- | :missing_city_and_country
166
- | :missing_phone_number
167
- | :missing_remittance_info
168
- | :payee_name_invalid
169
- | :receiving_account_locked
170
- | :rejected_by_compliance
171
- | :rtp_not_supported
172
- | :non_transaction_account
173
- | :source_token_insufficient_funds
174
- | :ssn_invalid
175
- | :wallet_screenshot_required
176
- | :unsupported_region
177
-
178
- module ErrorCode
179
- extend WhopSDK::Internal::Type::Enum
180
-
181
- ACCOUNT_CLOSED: :account_closed
182
- ACCOUNT_DOES_NOT_EXIST: :account_does_not_exist
183
- ACCOUNT_INFORMATION_INVALID: :account_information_invalid
184
- ACCOUNT_NUMBER_INVALID_REGION: :account_number_invalid_region
185
- ACCOUNT_FROZEN: :account_frozen
186
- ACCOUNT_LOOKUP_FAILED: :account_lookup_failed
187
- ACCOUNT_NOT_FOUND: :account_not_found
188
- AMOUNT_OUT_OF_BOUNDS: :amount_out_of_bounds
189
- ATTRIBUTES_NOT_VALIDATED: :attributes_not_validated
190
- B2B_PAYMENTS_PROHIBITED: :b2b_payments_prohibited
191
- BANK_STATEMENT_REQUIRED: :bank_statement_required
192
- COMPLIANCE_REVIEW: :compliance_review
193
- CURRENCY_NOT_SUPPORTED: :currency_not_supported
194
- DEPOSIT_CANCELED: :deposit_canceled
195
- DEPOSIT_FAILED: :deposit_failed
196
- DEPOSIT_REJECTED: :deposit_rejected
197
- DESTINATION_UNAVAILABLE: :destination_unavailable
198
- EXCEEDED_ACCOUNT_LIMIT: :exceeded_account_limit
199
- EXPIRED_QUOTE: :expired_quote
200
- GENERIC_PAYOUT_ERROR: :generic_payout_error
201
- TECHNICAL_PROBLEM: :technical_problem
202
- IDENTIFICATION_NUMBER_INVALID: :identification_number_invalid
203
- INVALID_ACCOUNT_NUMBER: :invalid_account_number
204
- INVALID_BANK_CODE: :invalid_bank_code
205
- INVALID_BENEFICIARY: :invalid_beneficiary
206
- INVALID_MAILING_ADDRESS: :invalid_mailing_address
207
- INVALID_BRANCH_NUMBER: :invalid_branch_number
208
- INVALID_BRANCH_CODE: :invalid_branch_code
209
- INVALID_PHONE_NUMBER: :invalid_phone_number
210
- INVALID_ROUTING_NUMBER: :invalid_routing_number
211
- INVALID_SWIFT_CODE: :invalid_swift_code
212
- INVALID_COMPANY_DETAILS: :invalid_company_details
213
- MANUAL_CANCELATION: :manual_cancelation
214
- MISC_ERROR: :misc_error
215
- MISSING_CITY_AND_COUNTRY: :missing_city_and_country
216
- MISSING_PHONE_NUMBER: :missing_phone_number
217
- MISSING_REMITTANCE_INFO: :missing_remittance_info
218
- PAYEE_NAME_INVALID: :payee_name_invalid
219
- RECEIVING_ACCOUNT_LOCKED: :receiving_account_locked
220
- REJECTED_BY_COMPLIANCE: :rejected_by_compliance
221
- RTP_NOT_SUPPORTED: :rtp_not_supported
222
- NON_TRANSACTION_ACCOUNT: :non_transaction_account
223
- SOURCE_TOKEN_INSUFFICIENT_FUNDS: :source_token_insufficient_funds
224
- SSN_INVALID: :ssn_invalid
225
- WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
226
- UNSUPPORTED_REGION: :unsupported_region
227
-
228
- def self?.values: -> ::Array[WhopSDK::Models::WithdrawalCreatedWebhookEvent::Data::error_code]
229
- end
230
-
231
- type ledger_account = { id: String, company_id: String? }
232
-
233
- class LedgerAccount < WhopSDK::Internal::Type::BaseModel
234
- attr_accessor id: String
235
-
236
- attr_accessor company_id: String?
237
-
238
- def initialize: (id: String, company_id: String?) -> void
239
-
240
- def to_hash: -> { id: String, company_id: String? }
241
- end
242
-
243
- type payout_token =
244
- {
245
- id: String,
246
- created_at: Time,
247
- destination_currency_code: String,
248
- nickname: String?,
249
- payer_name: String?
250
- }
251
-
252
- class PayoutToken < WhopSDK::Internal::Type::BaseModel
253
- attr_accessor id: String
254
-
255
- attr_accessor created_at: Time
256
-
257
- attr_accessor destination_currency_code: String
258
-
259
- attr_accessor nickname: String?
260
-
261
- attr_accessor payer_name: String?
262
-
263
- def initialize: (
264
- id: String,
265
- created_at: Time,
266
- destination_currency_code: String,
267
- nickname: String?,
268
- payer_name: String?
269
- ) -> void
270
-
271
- def to_hash: -> {
272
- id: String,
273
- created_at: Time,
274
- destination_currency_code: String,
275
- nickname: String?,
276
- payer_name: String?
277
- }
278
- end
279
- end
280
43
  end
281
44
  end
282
45
  end
@@ -4,7 +4,7 @@ module WhopSDK
4
4
  {
5
5
  id: String,
6
6
  api_version: :v1,
7
- data: WhopSDK::WithdrawalUpdatedWebhookEvent::Data,
7
+ data: WhopSDK::Withdrawal,
8
8
  timestamp: Time,
9
9
  type: :"withdrawal.updated",
10
10
  company_id: String?
@@ -15,7 +15,7 @@ module WhopSDK
15
15
 
16
16
  attr_accessor api_version: :v1
17
17
 
18
- attr_accessor data: WhopSDK::WithdrawalUpdatedWebhookEvent::Data
18
+ attr_accessor data: WhopSDK::Withdrawal
19
19
 
20
20
  attr_accessor timestamp: Time
21
21
 
@@ -25,7 +25,7 @@ module WhopSDK
25
25
 
26
26
  def initialize: (
27
27
  id: String,
28
- data: WhopSDK::WithdrawalUpdatedWebhookEvent::Data,
28
+ data: WhopSDK::Withdrawal,
29
29
  timestamp: Time,
30
30
  ?company_id: String?,
31
31
  ?api_version: :v1,
@@ -35,248 +35,11 @@ module WhopSDK
35
35
  def to_hash: -> {
36
36
  id: String,
37
37
  api_version: :v1,
38
- data: WhopSDK::WithdrawalUpdatedWebhookEvent::Data,
38
+ data: WhopSDK::Withdrawal,
39
39
  timestamp: Time,
40
40
  type: :"withdrawal.updated",
41
41
  company_id: String?
42
42
  }
43
-
44
- type data =
45
- {
46
- id: String,
47
- amount: Float,
48
- created_at: Time,
49
- currency: WhopSDK::Models::currency,
50
- error_code: WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::error_code?,
51
- error_message: String?,
52
- estimated_availability: Time?,
53
- fee_amount: Float,
54
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
55
- ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
56
- markup_fee: Float,
57
- payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
58
- speed: WhopSDK::Models::withdrawal_speeds,
59
- status: WhopSDK::Models::withdrawal_status,
60
- trace_code: String?
61
- }
62
-
63
- class Data < WhopSDK::Internal::Type::BaseModel
64
- attr_accessor id: String
65
-
66
- attr_accessor amount: Float
67
-
68
- attr_accessor created_at: Time
69
-
70
- attr_accessor currency: WhopSDK::Models::currency
71
-
72
- attr_accessor error_code: WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::error_code?
73
-
74
- attr_accessor error_message: String?
75
-
76
- attr_accessor estimated_availability: Time?
77
-
78
- attr_accessor fee_amount: Float
79
-
80
- attr_accessor fee_type: WhopSDK::Models::withdrawal_fee_types?
81
-
82
- attr_accessor ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount
83
-
84
- attr_accessor markup_fee: Float
85
-
86
- attr_accessor payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?
87
-
88
- attr_accessor speed: WhopSDK::Models::withdrawal_speeds
89
-
90
- attr_accessor status: WhopSDK::Models::withdrawal_status
91
-
92
- attr_accessor trace_code: String?
93
-
94
- def initialize: (
95
- id: String,
96
- amount: Float,
97
- created_at: Time,
98
- currency: WhopSDK::Models::currency,
99
- error_code: WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::error_code?,
100
- error_message: String?,
101
- estimated_availability: Time?,
102
- fee_amount: Float,
103
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
104
- ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
105
- markup_fee: Float,
106
- payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
107
- speed: WhopSDK::Models::withdrawal_speeds,
108
- status: WhopSDK::Models::withdrawal_status,
109
- trace_code: String?
110
- ) -> void
111
-
112
- def to_hash: -> {
113
- id: String,
114
- amount: Float,
115
- created_at: Time,
116
- currency: WhopSDK::Models::currency,
117
- error_code: WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::error_code?,
118
- error_message: String?,
119
- estimated_availability: Time?,
120
- fee_amount: Float,
121
- fee_type: WhopSDK::Models::withdrawal_fee_types?,
122
- ledger_account: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::LedgerAccount,
123
- markup_fee: Float,
124
- payout_token: WhopSDK::WithdrawalUpdatedWebhookEvent::Data::PayoutToken?,
125
- speed: WhopSDK::Models::withdrawal_speeds,
126
- status: WhopSDK::Models::withdrawal_status,
127
- trace_code: String?
128
- }
129
-
130
- type error_code =
131
- :account_closed
132
- | :account_does_not_exist
133
- | :account_information_invalid
134
- | :account_number_invalid_region
135
- | :account_frozen
136
- | :account_lookup_failed
137
- | :account_not_found
138
- | :amount_out_of_bounds
139
- | :attributes_not_validated
140
- | :b2b_payments_prohibited
141
- | :bank_statement_required
142
- | :compliance_review
143
- | :currency_not_supported
144
- | :deposit_canceled
145
- | :deposit_failed
146
- | :deposit_rejected
147
- | :destination_unavailable
148
- | :exceeded_account_limit
149
- | :expired_quote
150
- | :generic_payout_error
151
- | :technical_problem
152
- | :identification_number_invalid
153
- | :invalid_account_number
154
- | :invalid_bank_code
155
- | :invalid_beneficiary
156
- | :invalid_mailing_address
157
- | :invalid_branch_number
158
- | :invalid_branch_code
159
- | :invalid_phone_number
160
- | :invalid_routing_number
161
- | :invalid_swift_code
162
- | :invalid_company_details
163
- | :manual_cancelation
164
- | :misc_error
165
- | :missing_city_and_country
166
- | :missing_phone_number
167
- | :missing_remittance_info
168
- | :payee_name_invalid
169
- | :receiving_account_locked
170
- | :rejected_by_compliance
171
- | :rtp_not_supported
172
- | :non_transaction_account
173
- | :source_token_insufficient_funds
174
- | :ssn_invalid
175
- | :wallet_screenshot_required
176
- | :unsupported_region
177
-
178
- module ErrorCode
179
- extend WhopSDK::Internal::Type::Enum
180
-
181
- ACCOUNT_CLOSED: :account_closed
182
- ACCOUNT_DOES_NOT_EXIST: :account_does_not_exist
183
- ACCOUNT_INFORMATION_INVALID: :account_information_invalid
184
- ACCOUNT_NUMBER_INVALID_REGION: :account_number_invalid_region
185
- ACCOUNT_FROZEN: :account_frozen
186
- ACCOUNT_LOOKUP_FAILED: :account_lookup_failed
187
- ACCOUNT_NOT_FOUND: :account_not_found
188
- AMOUNT_OUT_OF_BOUNDS: :amount_out_of_bounds
189
- ATTRIBUTES_NOT_VALIDATED: :attributes_not_validated
190
- B2B_PAYMENTS_PROHIBITED: :b2b_payments_prohibited
191
- BANK_STATEMENT_REQUIRED: :bank_statement_required
192
- COMPLIANCE_REVIEW: :compliance_review
193
- CURRENCY_NOT_SUPPORTED: :currency_not_supported
194
- DEPOSIT_CANCELED: :deposit_canceled
195
- DEPOSIT_FAILED: :deposit_failed
196
- DEPOSIT_REJECTED: :deposit_rejected
197
- DESTINATION_UNAVAILABLE: :destination_unavailable
198
- EXCEEDED_ACCOUNT_LIMIT: :exceeded_account_limit
199
- EXPIRED_QUOTE: :expired_quote
200
- GENERIC_PAYOUT_ERROR: :generic_payout_error
201
- TECHNICAL_PROBLEM: :technical_problem
202
- IDENTIFICATION_NUMBER_INVALID: :identification_number_invalid
203
- INVALID_ACCOUNT_NUMBER: :invalid_account_number
204
- INVALID_BANK_CODE: :invalid_bank_code
205
- INVALID_BENEFICIARY: :invalid_beneficiary
206
- INVALID_MAILING_ADDRESS: :invalid_mailing_address
207
- INVALID_BRANCH_NUMBER: :invalid_branch_number
208
- INVALID_BRANCH_CODE: :invalid_branch_code
209
- INVALID_PHONE_NUMBER: :invalid_phone_number
210
- INVALID_ROUTING_NUMBER: :invalid_routing_number
211
- INVALID_SWIFT_CODE: :invalid_swift_code
212
- INVALID_COMPANY_DETAILS: :invalid_company_details
213
- MANUAL_CANCELATION: :manual_cancelation
214
- MISC_ERROR: :misc_error
215
- MISSING_CITY_AND_COUNTRY: :missing_city_and_country
216
- MISSING_PHONE_NUMBER: :missing_phone_number
217
- MISSING_REMITTANCE_INFO: :missing_remittance_info
218
- PAYEE_NAME_INVALID: :payee_name_invalid
219
- RECEIVING_ACCOUNT_LOCKED: :receiving_account_locked
220
- REJECTED_BY_COMPLIANCE: :rejected_by_compliance
221
- RTP_NOT_SUPPORTED: :rtp_not_supported
222
- NON_TRANSACTION_ACCOUNT: :non_transaction_account
223
- SOURCE_TOKEN_INSUFFICIENT_FUNDS: :source_token_insufficient_funds
224
- SSN_INVALID: :ssn_invalid
225
- WALLET_SCREENSHOT_REQUIRED: :wallet_screenshot_required
226
- UNSUPPORTED_REGION: :unsupported_region
227
-
228
- def self?.values: -> ::Array[WhopSDK::Models::WithdrawalUpdatedWebhookEvent::Data::error_code]
229
- end
230
-
231
- type ledger_account = { id: String, company_id: String? }
232
-
233
- class LedgerAccount < WhopSDK::Internal::Type::BaseModel
234
- attr_accessor id: String
235
-
236
- attr_accessor company_id: String?
237
-
238
- def initialize: (id: String, company_id: String?) -> void
239
-
240
- def to_hash: -> { id: String, company_id: String? }
241
- end
242
-
243
- type payout_token =
244
- {
245
- id: String,
246
- created_at: Time,
247
- destination_currency_code: String,
248
- nickname: String?,
249
- payer_name: String?
250
- }
251
-
252
- class PayoutToken < WhopSDK::Internal::Type::BaseModel
253
- attr_accessor id: String
254
-
255
- attr_accessor created_at: Time
256
-
257
- attr_accessor destination_currency_code: String
258
-
259
- attr_accessor nickname: String?
260
-
261
- attr_accessor payer_name: String?
262
-
263
- def initialize: (
264
- id: String,
265
- created_at: Time,
266
- destination_currency_code: String,
267
- nickname: String?,
268
- payer_name: String?
269
- ) -> void
270
-
271
- def to_hash: -> {
272
- id: String,
273
- created_at: Time,
274
- destination_currency_code: String,
275
- nickname: String?,
276
- payer_name: String?
277
- }
278
- end
279
- end
280
43
  end
281
44
  end
282
45
  end