whop_sdk 2.6.0 → 2.7.0

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 (568) hide show
  1. checksums.yaml +4 -4
  2. data/.fern/metadata.json +3 -3
  3. data/.fern/replay.lock +943 -1
  4. data/lib/whop_sdk/accounts/client.rb +8 -3
  5. data/lib/whop_sdk/accounts/customer_tracking/client.rb +59 -0
  6. data/lib/whop_sdk/accounts/{financing_applications/types/create_financing_applications_request.rb → customer_tracking/types/retrieve_customer_tracking_request.rb} +2 -2
  7. data/lib/whop_sdk/accounts/fees/types/update_fees_request.rb +8 -0
  8. data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_dispute.rb +18 -0
  9. data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_dispute_regions_value.rb +15 -0
  10. data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_return.rb +18 -0
  11. data/lib/whop_sdk/accounts/fees/types/update_fees_request_ach_return_regions_value.rb +15 -0
  12. data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_dispute.rb +18 -0
  13. data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_dispute_regions_value.rb +15 -0
  14. data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_return.rb +18 -0
  15. data/lib/whop_sdk/accounts/fees/types/update_fees_request_sepa_return_regions_value.rb +15 -0
  16. data/lib/whop_sdk/accounts/financing_providers/client.rb +79 -0
  17. data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_request.rb +23 -0
  18. data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_request_status.rb +19 -0
  19. data/lib/whop_sdk/accounts/financing_providers/types/list_financing_providers_response.rb +15 -0
  20. data/lib/whop_sdk/accounts/{financing_applications/types/list_financing_applications_response_page_info.rb → financing_providers/types/list_financing_providers_response_page_info.rb} +2 -2
  21. data/lib/whop_sdk/accounts/preferences/client.rb +3 -2
  22. data/lib/whop_sdk/accounts/preferences/types/retrieve_preferences_response.rb +4 -0
  23. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request.rb +4 -0
  24. data/lib/whop_sdk/accounts/preferences/types/update_preferences_request_customer_tracking.rb +26 -0
  25. data/lib/whop_sdk/accounts/preferences/types/update_preferences_response.rb +4 -0
  26. data/lib/whop_sdk/accounts/types/transfer_ownership_accounts_request.rb +2 -0
  27. data/lib/whop_sdk/ad_campaigns/client.rb +2 -2
  28. data/lib/whop_sdk/ad_campaigns/types/create_ad_campaigns_request_platform.rb +1 -1
  29. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_payment_failed_payload_data_delivery_status.rb +1 -0
  30. data/lib/whop_sdk/ad_campaigns/types/post_ad_campaign_updated_payload_data_delivery_status.rb +1 -0
  31. data/lib/whop_sdk/ad_campaigns/types/update_ad_campaigns_request.rb +2 -0
  32. data/lib/whop_sdk/ad_pixels/client.rb +3 -1
  33. data/lib/whop_sdk/ad_pixels/types/create_ad_pixels_request_platform.rb +2 -0
  34. data/lib/whop_sdk/ads/client.rb +48 -0
  35. data/lib/whop_sdk/ads/types/report_stats_ads_request.rb +19 -0
  36. data/lib/whop_sdk/ads/types/report_stats_ads_request_clicks.rb +16 -0
  37. data/lib/whop_sdk/ads/types/report_stats_ads_request_impressions.rb +16 -0
  38. data/lib/whop_sdk/ads/types/report_stats_ads_request_spend.rb +16 -0
  39. data/lib/whop_sdk/api_keys/types/create_api_keys_request_api_version_date.rb +6 -0
  40. data/lib/whop_sdk/api_keys/types/update_api_keys_request_api_version_date.rb +6 -0
  41. data/lib/whop_sdk/app_installations/client.rb +172 -0
  42. data/lib/whop_sdk/app_installations/types/list_app_installations_request.rb +33 -0
  43. data/lib/whop_sdk/app_installations/types/list_app_installations_request_direction.rb +14 -0
  44. data/lib/whop_sdk/app_installations/types/list_app_installations_request_order.rb +14 -0
  45. data/lib/whop_sdk/app_installations/types/list_app_installations_request_view_type.rb +19 -0
  46. data/lib/whop_sdk/app_installations/types/list_app_installations_response.rb +13 -0
  47. data/lib/whop_sdk/app_installations/types/list_app_installations_response_page_info.rb +17 -0
  48. data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload.rb +25 -0
  49. data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload_api_version.rb +13 -0
  50. data/lib/whop_sdk/app_installations/types/post_app_installation_created_payload_type.rb +13 -0
  51. data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload.rb +25 -0
  52. data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload_api_version.rb +13 -0
  53. data/lib/whop_sdk/app_installations/types/post_app_installation_deleted_payload_type.rb +13 -0
  54. data/lib/whop_sdk/app_installations/types/retrieve_app_installations_request.rb +11 -0
  55. data/lib/whop_sdk/app_installations/types/update_app_installations_request.rb +15 -0
  56. data/lib/whop_sdk/apps/types/update_apps_request.rb +4 -0
  57. data/lib/whop_sdk/cards/client.rb +2 -1
  58. data/lib/whop_sdk/cards/types/create_cards_request.rb +6 -0
  59. data/lib/whop_sdk/cards/types/create_cards_request_billing.rb +23 -0
  60. data/lib/whop_sdk/cards/types/create_cards_request_cardholder.rb +21 -0
  61. data/lib/whop_sdk/cards/types/create_cards_request_kind.rb +14 -0
  62. data/lib/whop_sdk/checkout_configurations/client.rb +3 -3
  63. data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_request.rb +4 -4
  64. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan.rb → create_checkout_configurations_request_variant.rb} +8 -8
  65. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_plan_type.rb → create_checkout_configurations_request_variant_billing_type.rb} +1 -1
  66. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_payment_method_configuration.rb → create_checkout_configurations_request_variant_payment_method_configuration.rb} +1 -1
  67. data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_release_method.rb → create_checkout_configurations_request_variant_release_method.rb} +1 -1
  68. data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_three_ds_level.rb → create_checkout_configurations_request_variant_three_ds_level.rb} +1 -1
  69. data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_visibility.rb → create_checkout_configurations_request_variant_visibility.rb} +1 -1
  70. data/lib/whop_sdk/checkout_configurations/types/create_checkout_configurations_response.rb +2 -2
  71. data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan.rb → create_checkout_configurations_response_variant.rb} +6 -6
  72. data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_plan_type.rb → create_checkout_configurations_response_variant_billing_type.rb} +1 -1
  73. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_release_method.rb → create_checkout_configurations_response_variant_release_method.rb} +1 -1
  74. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_three_ds_level.rb → create_checkout_configurations_response_variant_three_ds_level.rb} +1 -1
  75. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_visibility.rb → create_checkout_configurations_response_variant_visibility.rb} +1 -1
  76. data/lib/whop_sdk/checkout_configurations/types/list_checkout_configurations_request.rb +1 -1
  77. data/lib/whop_sdk/checkout_configurations/types/list_checkout_configurations_response_data_item.rb +2 -2
  78. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan.rb → list_checkout_configurations_response_data_item_variant.rb} +6 -6
  79. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_plan_type.rb → list_checkout_configurations_response_data_item_variant_billing_type.rb} +1 -1
  80. data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_release_method.rb → list_checkout_configurations_response_data_item_variant_release_method.rb} +1 -1
  81. data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_three_ds_level.rb → list_checkout_configurations_response_data_item_variant_three_ds_level.rb} +1 -1
  82. data/lib/whop_sdk/checkout_configurations/types/{list_checkout_configurations_response_data_item_plan_visibility.rb → list_checkout_configurations_response_data_item_variant_visibility.rb} +1 -1
  83. data/lib/whop_sdk/checkout_configurations/types/retrieve_checkout_configurations_response.rb +2 -2
  84. data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan.rb → retrieve_checkout_configurations_response_variant.rb} +6 -6
  85. data/lib/whop_sdk/checkout_configurations/types/{retrieve_checkout_configurations_response_plan_plan_type.rb → retrieve_checkout_configurations_response_variant_billing_type.rb} +1 -1
  86. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_response_plan_release_method.rb → retrieve_checkout_configurations_response_variant_release_method.rb} +1 -1
  87. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_three_ds_level.rb → retrieve_checkout_configurations_response_variant_three_ds_level.rb} +1 -1
  88. data/lib/whop_sdk/checkout_configurations/types/{create_checkout_configurations_request_plan_visibility.rb → retrieve_checkout_configurations_response_variant_visibility.rb} +1 -1
  89. data/lib/whop_sdk/client.rb +21 -1
  90. data/lib/whop_sdk/deposits/client.rb +46 -0
  91. data/lib/whop_sdk/deposits/types/create_deposits_request.rb +4 -0
  92. data/lib/whop_sdk/deposits/types/create_deposits_request_metadata_value.rb +17 -0
  93. data/lib/whop_sdk/deposits/types/create_deposits_response_methods_card.rb +2 -0
  94. data/lib/whop_sdk/deposits/types/reverse_deposits_request.rb +17 -0
  95. data/lib/whop_sdk/deposits/types/reverse_deposits_request_metadata_value.rb +17 -0
  96. data/lib/whop_sdk/disputes/client.rb +8 -0
  97. data/lib/whop_sdk/disputes/types/list_disputes_request.rb +4 -0
  98. data/lib/whop_sdk/disputes/types/summary_disputes_request.rb +4 -0
  99. data/lib/whop_sdk/domains/client.rb +11 -2
  100. data/lib/whop_sdk/domains/types/create_domains_request.rb +4 -0
  101. data/lib/whop_sdk/domains/types/create_domains_request_email.rb +12 -0
  102. data/lib/whop_sdk/domains/types/create_domains_request_registration.rb +5 -2
  103. data/lib/whop_sdk/domains/types/create_domains_request_transfer.rb +16 -0
  104. data/lib/whop_sdk/domains/types/create_domains_request_transfer_destination.rb +13 -0
  105. data/lib/whop_sdk/domains/types/list_domains_request.rb +4 -0
  106. data/lib/whop_sdk/domains/types/list_domains_request_email.rb +17 -0
  107. data/lib/whop_sdk/domains/types/list_domains_request_transfer.rb +17 -0
  108. data/lib/whop_sdk/domains/types/post_domain_created_payload.rb +25 -0
  109. data/lib/whop_sdk/domains/types/post_domain_created_payload_api_version.rb +13 -0
  110. data/lib/whop_sdk/domains/types/post_domain_created_payload_type.rb +13 -0
  111. data/lib/whop_sdk/domains/types/post_domain_deleted_payload.rb +25 -0
  112. data/lib/whop_sdk/domains/types/post_domain_deleted_payload_api_version.rb +13 -0
  113. data/lib/whop_sdk/domains/types/post_domain_deleted_payload_type.rb +13 -0
  114. data/lib/whop_sdk/domains/types/post_domain_updated_payload.rb +25 -0
  115. data/lib/whop_sdk/domains/types/post_domain_updated_payload_api_version.rb +13 -0
  116. data/lib/whop_sdk/domains/types/post_domain_updated_payload_type.rb +13 -0
  117. data/lib/whop_sdk/domains/types/update_domains_request.rb +4 -0
  118. data/lib/whop_sdk/domains/types/update_domains_request_email.rb +12 -0
  119. data/lib/whop_sdk/domains/types/update_domains_request_registration.rb +5 -2
  120. data/lib/whop_sdk/domains/types/update_domains_request_transfer.rb +16 -0
  121. data/lib/whop_sdk/domains/types/update_domains_request_transfer_destination.rb +13 -0
  122. data/lib/whop_sdk/email_addresses/client.rb +314 -0
  123. data/lib/whop_sdk/email_addresses/types/create_email_addresses_request.rb +15 -0
  124. data/lib/whop_sdk/email_addresses/types/delete_email_addresses_request.rb +11 -0
  125. data/lib/whop_sdk/email_addresses/types/list_email_addresses_request.rb +23 -0
  126. data/lib/whop_sdk/email_addresses/types/list_email_addresses_request_direction.rb +14 -0
  127. data/lib/whop_sdk/email_addresses/types/list_email_addresses_request_order.rb +14 -0
  128. data/lib/whop_sdk/email_addresses/types/list_email_addresses_response.rb +13 -0
  129. data/lib/whop_sdk/email_addresses/types/list_email_addresses_response_page_info.rb +17 -0
  130. data/lib/whop_sdk/email_addresses/types/mobileconfig_email_addresses_request.rb +11 -0
  131. data/lib/whop_sdk/email_addresses/types/reset_password_email_addresses_request.rb +11 -0
  132. data/lib/whop_sdk/email_addresses/types/retrieve_email_addresses_request.rb +11 -0
  133. data/lib/whop_sdk/email_addresses/types/update_email_addresses_request.rb +13 -0
  134. data/lib/whop_sdk/events/types/list_events_response_data_item_related.rb +2 -2
  135. data/lib/whop_sdk/events/types/{list_events_response_data_item_related_plan.rb → list_events_response_data_item_related_variant.rb} +1 -1
  136. data/lib/whop_sdk/exports/types/create_exports_request_resource.rb +1 -0
  137. data/lib/whop_sdk/exports/types/list_exports_request_resource.rb +1 -0
  138. data/lib/whop_sdk/external_accounts/client.rb +3 -2
  139. data/lib/whop_sdk/external_accounts/types/connect_external_accounts_request_platform.rb +1 -0
  140. data/lib/whop_sdk/external_accounts/types/create_external_accounts_request.rb +2 -0
  141. data/lib/whop_sdk/external_accounts/types/create_external_accounts_request_platform.rb +1 -0
  142. data/lib/whop_sdk/external_accounts/types/list_external_accounts_request_platform.rb +2 -0
  143. data/lib/whop_sdk/external_accounts/types/list_external_accounts_request_trust_level.rb +1 -0
  144. data/lib/whop_sdk/financial_activity/types/list_financial_activity_request_line_types_item.rb +3 -0
  145. data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_request_line_types_item.rb +3 -0
  146. data/lib/whop_sdk/financial_reports/types/retrieve_financial_reports_response_rows_item_line_category.rb +3 -0
  147. data/lib/whop_sdk/financing_applications/client.rb +268 -0
  148. data/lib/whop_sdk/financing_applications/types/create_financing_applications_request.rb +11 -0
  149. data/lib/whop_sdk/financing_applications/types/list_financing_applications_request.rb +29 -0
  150. data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_direction.rb +14 -0
  151. data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_order.rb +14 -0
  152. data/lib/whop_sdk/financing_applications/types/list_financing_applications_request_status.rb +17 -0
  153. data/lib/whop_sdk/financing_applications/types/list_financing_applications_response.rb +13 -0
  154. data/lib/whop_sdk/financing_applications/types/list_financing_applications_response_page_info.rb +17 -0
  155. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload.rb +3 -3
  156. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload_api_version.rb +1 -1
  157. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_approved_payload_type.rb +1 -1
  158. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload.rb +3 -3
  159. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload_api_version.rb +1 -1
  160. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_denied_payload_type.rb +1 -1
  161. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload.rb +3 -3
  162. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload_api_version.rb +1 -1
  163. data/lib/whop_sdk/{accounts → financing_applications}/types/post_account_financing_disabled_payload_type.rb +1 -1
  164. data/lib/whop_sdk/financing_applications/types/retrieve_financing_applications_request.rb +11 -0
  165. data/lib/whop_sdk/financing_applications/types/submit_financing_applications_request.rb +13 -0
  166. data/lib/whop_sdk/financing_applications/types/submit_financing_applications_request_merchant_acceptance.rb +13 -0
  167. data/lib/whop_sdk/financing_applications/types/update_financing_applications_request.rb +13 -0
  168. data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item.rb +17 -0
  169. data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item_money.rb +14 -0
  170. data/lib/whop_sdk/financing_applications/types/update_financing_applications_request_answers_item_money_currency.rb +96 -0
  171. data/lib/whop_sdk/internal/http/raw_client.rb +1 -1
  172. data/lib/whop_sdk/invoices/client.rb +129 -110
  173. data/lib/whop_sdk/invoices/types/create_invoices_request.rb +21 -4
  174. data/lib/whop_sdk/invoices/types/create_invoices_request_billing_address.rb +26 -0
  175. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item.rb +13 -0
  176. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant.rb +44 -0
  177. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_billing_type.rb +14 -0
  178. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_currency.rb +102 -0
  179. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_override_tax_type.rb +15 -0
  180. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product.rb +34 -0
  181. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product_global_affiliate_status.rb +14 -0
  182. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_product_visibility.rb +16 -0
  183. data/lib/whop_sdk/invoices/types/create_invoices_request_items_item_variant_visibility.rb +16 -0
  184. data/lib/whop_sdk/invoices/types/{delete_invoices_request.rb → generate_pdf_invoices_request.rb} +1 -1
  185. data/lib/whop_sdk/invoices/types/issue_invoices_request.rb +13 -0
  186. data/lib/whop_sdk/invoices/types/list_invoices_request.rb +14 -12
  187. data/lib/whop_sdk/invoices/types/list_invoices_request_direction.rb +14 -0
  188. data/lib/whop_sdk/invoices/types/list_invoices_request_order.rb +14 -0
  189. data/lib/whop_sdk/invoices/types/list_invoices_request_status.rb +20 -0
  190. data/lib/whop_sdk/invoices/types/list_invoices_response.rb +2 -3
  191. data/lib/whop_sdk/invoices/types/list_invoices_response_page_info.rb +17 -0
  192. data/lib/whop_sdk/invoices/types/post_invoice_created_payload.rb +1 -1
  193. data/lib/whop_sdk/invoices/types/post_invoice_marked_uncollectible_payload.rb +1 -1
  194. data/lib/whop_sdk/invoices/types/post_invoice_paid_payload.rb +1 -1
  195. data/lib/whop_sdk/invoices/types/post_invoice_past_due_payload.rb +1 -1
  196. data/lib/whop_sdk/invoices/types/post_invoice_voided_payload.rb +1 -1
  197. data/lib/whop_sdk/invoices/types/send_invoices_request.rb +15 -0
  198. data/lib/whop_sdk/invoices/types/{mark_paid_invoices_request.rb → unschedule_invoices_request.rb} +1 -1
  199. data/lib/whop_sdk/invoices/types/update_invoices_request.rb +6 -16
  200. data/lib/whop_sdk/invoices/types/update_invoices_request_billing_address.rb +5 -9
  201. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item.rb +13 -0
  202. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant.rb +44 -0
  203. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_billing_type.rb +14 -0
  204. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_currency.rb +102 -0
  205. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_override_tax_type.rb +15 -0
  206. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product.rb +34 -0
  207. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product_global_affiliate_status.rb +14 -0
  208. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_product_visibility.rb +16 -0
  209. data/lib/whop_sdk/invoices/types/update_invoices_request_items_item_variant_visibility.rb +16 -0
  210. data/lib/whop_sdk/livestreams/client.rb +191 -0
  211. data/lib/whop_sdk/livestreams/types/list_livestreams_request.rb +23 -0
  212. data/lib/whop_sdk/livestreams/types/list_livestreams_response.rb +13 -0
  213. data/lib/whop_sdk/livestreams/types/list_livestreams_response_page_info.rb +17 -0
  214. data/lib/whop_sdk/{invoices/types/resend_invoices_request.rb → livestreams/types/pin_livestreams_request.rb} +2 -2
  215. data/lib/whop_sdk/livestreams/types/retrieve_livestreams_request.rb +11 -0
  216. data/lib/whop_sdk/livestreams/types/unpin_livestreams_request.rb +11 -0
  217. data/lib/whop_sdk/members/client.rb +3 -3
  218. data/lib/whop_sdk/members/types/list_members_request.rb +1 -1
  219. data/lib/whop_sdk/memberships/client.rb +10 -7
  220. data/lib/whop_sdk/memberships/types/invite_memberships_request_body_email.rb +1 -1
  221. data/lib/whop_sdk/memberships/types/invite_memberships_request_body_user_id.rb +2 -2
  222. data/lib/whop_sdk/memberships/types/list_memberships_request.rb +4 -2
  223. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_id.rb +2 -0
  224. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_account_url.rb +2 -0
  225. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_code.rb +2 -0
  226. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_email.rb +2 -0
  227. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_user_id.rb +2 -0
  228. data/lib/whop_sdk/partner_referral_requests/types/create_partner_referral_requests_request_body_target_username.rb +2 -0
  229. data/lib/whop_sdk/partners/businesses/client.rb +4 -0
  230. data/lib/whop_sdk/partners/businesses/types/list_businesses_request.rb +4 -0
  231. data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item.rb +6 -0
  232. data/lib/whop_sdk/partners/businesses/types/list_businesses_response_data_item_referring_business.rb +21 -0
  233. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response.rb +6 -0
  234. data/lib/whop_sdk/partners/businesses/types/resend_invite_businesses_response_referring_business.rb +21 -0
  235. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response.rb +8 -0
  236. data/lib/whop_sdk/partners/businesses/types/retrieve_businesses_response_referring_business.rb +21 -0
  237. data/lib/whop_sdk/partners/businesses/types/update_businesses_request.rb +2 -0
  238. data/lib/whop_sdk/payment_quotes/client.rb +1 -1
  239. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request.rb +4 -4
  240. data/lib/whop_sdk/payment_quotes/types/create_payment_quotes_request_line_items_item.rb +2 -2
  241. data/lib/whop_sdk/payment_rules/types/create_payment_rules_request_conditions_all_item_field.rb +7 -0
  242. data/lib/whop_sdk/payment_rules/types/replace_payment_rules_request_conditions_all_item_field.rb +7 -0
  243. data/lib/whop_sdk/payments/client.rb +133 -7
  244. data/lib/whop_sdk/payments/direct/types/create_direct_request.rb +8 -4
  245. data/lib/whop_sdk/payments/direct/types/create_direct_request_line_items_item.rb +2 -2
  246. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan.rb +47 -0
  247. data/lib/whop_sdk/{accounts/financing_applications/types/update_financing_applications_request_answers_item_money_currency.rb → payments/direct/types/create_direct_request_plan_currency.rb} +9 -3
  248. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_override_tax_type.rb +17 -0
  249. data/lib/whop_sdk/{accounts/financing_applications/types/list_financing_applications_request_direction.rb → payments/direct/types/create_direct_request_plan_plan_type.rb} +5 -5
  250. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product.rb +36 -0
  251. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_global_affiliate_status.rb +16 -0
  252. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_product_visibility.rb +18 -0
  253. data/lib/whop_sdk/payments/direct/types/create_direct_request_plan_visibility.rb +18 -0
  254. data/lib/whop_sdk/payments/types/create_payments_request.rb +8 -4
  255. data/lib/whop_sdk/{invoices/types/create_invoices_request_product_billing_address.rb → payments/types/create_payments_request_billing_address.rb} +4 -10
  256. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan.rb → create_payments_request_line_items_item_variant.rb} +9 -10
  257. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_plan_type.rb → create_payments_request_line_items_item_variant_billing_type.rb} +1 -1
  258. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_currency.rb → create_payments_request_line_items_item_variant_currency.rb} +1 -1
  259. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_override_tax_type.rb → create_payments_request_line_items_item_variant_override_tax_type.rb} +1 -1
  260. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product.rb → create_payments_request_line_items_item_variant_product.rb} +3 -3
  261. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product_global_affiliate_status.rb → create_payments_request_line_items_item_variant_product_global_affiliate_status.rb} +1 -1
  262. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_product_visibility.rb → create_payments_request_line_items_item_variant_product_visibility.rb} +1 -1
  263. data/lib/whop_sdk/payments/types/{create_payments_request_line_items_item_plan_visibility.rb → create_payments_request_line_items_item_variant_visibility.rb} +1 -1
  264. data/lib/whop_sdk/payments/types/create_payments_request_payment_method.rb +8 -6
  265. data/lib/whop_sdk/payments/types/create_payments_request_payment_method_card_present.rb +1 -1
  266. data/lib/whop_sdk/payments/types/create_payments_request_payment_method_type.rb +1 -0
  267. data/lib/whop_sdk/payments/types/create_payments_request_setup_future_usage.rb +13 -0
  268. data/lib/whop_sdk/payments/types/list_payments_request.rb +33 -1
  269. data/lib/whop_sdk/payments/types/list_payments_request_billing_reasons_item.rb +18 -0
  270. data/lib/whop_sdk/payments/types/list_payments_request_order.rb +1 -0
  271. data/lib/whop_sdk/payments/types/list_payments_request_payment_methods_item.rb +196 -0
  272. data/lib/whop_sdk/payments/types/list_payments_request_statuses_item.rb +19 -0
  273. data/lib/whop_sdk/payments/types/list_payments_request_substatuses_item.rb +40 -0
  274. data/lib/whop_sdk/payments/types/list_payments_request_tracking_states_item.rb +24 -0
  275. data/lib/whop_sdk/payments/types/list_payments_request_tracking_status.rb +24 -0
  276. data/lib/whop_sdk/payments/types/resume_payments_request.rb +2 -0
  277. data/lib/whop_sdk/payments/types/retrieve_status_payments_request.rb +2 -0
  278. data/lib/whop_sdk/payments/types/summary_payments_request.rb +49 -0
  279. data/lib/whop_sdk/payments/types/summary_payments_request_billing_reasons_item.rb +18 -0
  280. data/lib/whop_sdk/payments/types/summary_payments_request_groups_item.rb +14 -0
  281. data/lib/whop_sdk/payments/types/summary_payments_request_payment_methods_item.rb +196 -0
  282. data/lib/whop_sdk/payments/types/summary_payments_request_statuses_item.rb +19 -0
  283. data/lib/whop_sdk/payments/types/summary_payments_request_substatuses_item.rb +40 -0
  284. data/lib/whop_sdk/payments/types/summary_payments_request_tracking_states_item.rb +24 -0
  285. data/lib/whop_sdk/payments/types/summary_payments_response.rb +13 -0
  286. data/lib/whop_sdk/payments/types/summary_payments_response_groups.rb +14 -0
  287. data/lib/whop_sdk/payments/types/summary_payments_response_groups_substatus.rb +67 -0
  288. data/lib/whop_sdk/payments/types/update_return_url_payments_request.rb +2 -0
  289. data/lib/whop_sdk/payouts/client.rb +1 -4
  290. data/lib/whop_sdk/payouts/methods/client.rb +4 -1
  291. data/lib/whop_sdk/payouts/methods/types/create_methods_request_recipient.rb +2 -0
  292. data/lib/whop_sdk/payouts/methods/types/create_methods_request_recipient_address.rb +23 -0
  293. data/lib/whop_sdk/payouts/methods/types/update_methods_request.rb +2 -0
  294. data/lib/whop_sdk/payouts/methods/types/update_methods_request_address.rb +23 -0
  295. data/lib/whop_sdk/payouts/types/create_payouts_request.rb +2 -0
  296. data/lib/whop_sdk/payouts/types/create_quote_payouts_request.rb +5 -1
  297. data/lib/whop_sdk/plans/client.rb +2 -2
  298. data/lib/whop_sdk/plans/types/create_plans_request.rb +10 -2
  299. data/lib/whop_sdk/plans/types/list_plans_request.rb +1 -1
  300. data/lib/whop_sdk/plans/types/update_plans_request.rb +4 -0
  301. data/lib/whop_sdk/products/client.rb +5 -5
  302. data/lib/whop_sdk/products/types/list_products_request.rb +1 -1
  303. data/lib/whop_sdk/products/types/{list_products_request_plan_types_item.rb → list_products_request_billing_types_item.rb} +1 -1
  304. data/lib/whop_sdk/promo_codes/client.rb +3 -3
  305. data/lib/whop_sdk/promo_codes/types/create_promo_codes_request.rb +2 -2
  306. data/lib/whop_sdk/promo_codes/types/list_promo_codes_request.rb +1 -1
  307. data/lib/whop_sdk/resolution_center_cases/client.rb +1 -1
  308. data/lib/whop_sdk/setup_intents/client.rb +7 -2
  309. data/lib/whop_sdk/setup_intents/types/retrieve_status_setup_intents_request.rb +2 -0
  310. data/lib/whop_sdk/setup_intents/types/update_return_url_setup_intents_request.rb +2 -0
  311. data/lib/whop_sdk/shipments/client.rb +45 -0
  312. data/lib/whop_sdk/shipments/types/lookup_shipments_request.rb +17 -0
  313. data/lib/whop_sdk/social_accounts/client.rb +1 -1
  314. data/lib/whop_sdk/social_accounts/types/connect_social_accounts_request_platform.rb +1 -0
  315. data/lib/whop_sdk/social_accounts/types/create_social_accounts_request.rb +2 -0
  316. data/lib/whop_sdk/social_accounts/types/create_social_accounts_request_platform.rb +1 -0
  317. data/lib/whop_sdk/social_accounts/types/list_social_accounts_request_platform.rb +2 -0
  318. data/lib/whop_sdk/social_accounts/types/list_social_accounts_request_trust_level.rb +1 -0
  319. data/lib/whop_sdk/stats/client.rb +2 -0
  320. data/lib/whop_sdk/stats/reports/client.rb +2 -0
  321. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request.rb +2 -0
  322. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_request_order.rb +1 -0
  323. data/lib/whop_sdk/stats/reports/types/platform_trends_reports_response_data_reports_item_rows_item.rb +2 -0
  324. data/lib/whop_sdk/stats/time_series/client.rb +2 -0
  325. data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request.rb +2 -0
  326. data/lib/whop_sdk/stats/time_series/types/retrieve_time_series_request_snapshot_window.rb +2 -0
  327. data/lib/whop_sdk/stats/types/retrieve_stats_request.rb +2 -0
  328. data/lib/whop_sdk/stats/types/retrieve_stats_request_snapshot_window.rb +2 -0
  329. data/lib/whop_sdk/swaps/types/create_swaps_response.rb +2 -0
  330. data/lib/whop_sdk/swaps/types/list_swaps_response_data_item.rb +2 -0
  331. data/lib/whop_sdk/swaps/types/retrieve_swaps_response.rb +2 -0
  332. data/lib/whop_sdk/team_members/client.rb +6 -5
  333. data/lib/whop_sdk/trades/client.rb +5 -0
  334. data/lib/whop_sdk/trades/markets/client.rb +85 -0
  335. data/lib/whop_sdk/trades/markets/types/list_markets_request.rb +21 -0
  336. data/lib/whop_sdk/trades/markets/types/list_markets_request_instrument_type.rb +16 -0
  337. data/lib/whop_sdk/trades/markets/types/list_markets_response.rb +15 -0
  338. data/lib/whop_sdk/trades/markets/types/list_markets_response_page_info.rb +19 -0
  339. data/lib/whop_sdk/types/account.rb +2 -0
  340. data/lib/whop_sdk/types/account_balance_breakdown.rb +2 -0
  341. data/lib/whop_sdk/types/account_customer_tracking.rb +23 -0
  342. data/lib/whop_sdk/types/account_customer_tracking_button_text_color.rb +12 -0
  343. data/lib/whop_sdk/types/account_fees.rb +8 -0
  344. data/lib/whop_sdk/types/account_payment_controls_restricted_payment_methods_item.rb +1 -0
  345. data/lib/whop_sdk/types/account_preferences.rb +4 -0
  346. data/lib/whop_sdk/types/account_required_action_action.rb +0 -1
  347. data/lib/whop_sdk/types/ad_campaign_delivery_status.rb +1 -0
  348. data/lib/whop_sdk/types/ad_pixel_platform.rb +2 -0
  349. data/lib/whop_sdk/types/ad_stat.rb +21 -0
  350. data/lib/whop_sdk/types/api_key_api_version_date.rb +6 -0
  351. data/lib/whop_sdk/types/app.rb +4 -0
  352. data/lib/whop_sdk/types/app_installation.rb +23 -0
  353. data/lib/whop_sdk/types/app_summary.rb +15 -0
  354. data/lib/whop_sdk/types/card_brands.rb +4 -0
  355. data/lib/whop_sdk/types/checkout_configuration.rb +2 -2
  356. data/lib/whop_sdk/types/{checkout_configuration_plan.rb → checkout_configuration_variant.rb} +6 -6
  357. data/lib/whop_sdk/types/{checkout_configuration_plan_plan_type.rb → checkout_configuration_variant_billing_type.rb} +1 -1
  358. data/lib/whop_sdk/types/{checkout_configuration_plan_release_method.rb → checkout_configuration_variant_release_method.rb} +1 -1
  359. data/lib/whop_sdk/types/{checkout_configuration_plan_three_ds_level.rb → checkout_configuration_variant_three_ds_level.rb} +1 -1
  360. data/lib/whop_sdk/types/{checkout_configuration_plan_visibility.rb → checkout_configuration_variant_visibility.rb} +1 -1
  361. data/lib/whop_sdk/types/customer_tracking_preferences.rb +19 -0
  362. data/lib/whop_sdk/types/dispute.rb +2 -2
  363. data/lib/whop_sdk/types/dispute_alert.rb +2 -0
  364. data/lib/whop_sdk/types/dispute_alert_source.rb +16 -0
  365. data/lib/whop_sdk/types/domain.rb +4 -0
  366. data/lib/whop_sdk/types/domain_email.rb +9 -0
  367. data/lib/whop_sdk/types/domain_email_state.rb +14 -0
  368. data/lib/whop_sdk/types/domain_issue_capability.rb +2 -0
  369. data/lib/whop_sdk/types/domain_issue_code.rb +11 -0
  370. data/lib/whop_sdk/types/domain_list_item.rb +4 -0
  371. data/lib/whop_sdk/types/domain_registration.rb +4 -0
  372. data/lib/whop_sdk/types/domain_registration_method.rb +12 -0
  373. data/lib/whop_sdk/types/domain_registration_phase.rb +1 -0
  374. data/lib/whop_sdk/types/domain_transfer.rb +13 -0
  375. data/lib/whop_sdk/types/{variant_list_item_plan_type.rb → domain_transfer_destination.rb} +2 -3
  376. data/lib/whop_sdk/types/domain_transfer_state.rb +12 -0
  377. data/lib/whop_sdk/types/email_address.rb +23 -0
  378. data/lib/whop_sdk/types/export_resource.rb +1 -0
  379. data/lib/whop_sdk/types/external_account_parent_platform.rb +2 -0
  380. data/lib/whop_sdk/types/external_account_platform.rb +2 -0
  381. data/lib/whop_sdk/types/financing_provider.rb +21 -0
  382. data/lib/whop_sdk/types/financing_provider_action.rb +12 -0
  383. data/lib/whop_sdk/types/financing_provider_currency.rb +11 -0
  384. data/lib/whop_sdk/types/financing_provider_currency_currency.rb +100 -0
  385. data/lib/whop_sdk/types/financing_provider_details.rb +13 -0
  386. data/lib/whop_sdk/types/financing_provider_details_source_provider.rb +15 -0
  387. data/lib/whop_sdk/types/financing_provider_provider.rb +22 -0
  388. data/lib/whop_sdk/types/financing_provider_reason.rb +33 -0
  389. data/lib/whop_sdk/types/financing_provider_status.rb +15 -0
  390. data/lib/whop_sdk/types/invoice.rb +34 -22
  391. data/lib/whop_sdk/types/invoice_legacy.rb +55 -0
  392. data/lib/whop_sdk/types/invoice_legacy_company.rb +14 -0
  393. data/lib/whop_sdk/types/invoice_legacy_company_logo.rb +10 -0
  394. data/lib/whop_sdk/types/invoice_legacy_current_plan.rb +26 -0
  395. data/lib/whop_sdk/types/{invoice_line_items_item.rb → invoice_legacy_line_items_item.rb} +1 -1
  396. data/lib/whop_sdk/types/{invoice_mailing_address.rb → invoice_legacy_mailing_address.rb} +1 -1
  397. data/lib/whop_sdk/types/{invoice_member.rb → invoice_legacy_member.rb} +1 -1
  398. data/lib/whop_sdk/types/{invoice_payment.rb → invoice_legacy_payment.rb} +1 -1
  399. data/lib/whop_sdk/types/{invoice_product.rb → invoice_legacy_product.rb} +1 -1
  400. data/lib/whop_sdk/types/{invoice_user.rb → invoice_legacy_user.rb} +1 -1
  401. data/lib/whop_sdk/types/invoice_line_item.rb +25 -0
  402. data/lib/whop_sdk/types/invoice_object.rb +11 -0
  403. data/lib/whop_sdk/types/invoice_pdf.rb +11 -0
  404. data/lib/whop_sdk/types/invoice_status.rb +18 -0
  405. data/lib/whop_sdk/types/invoice_totals_status.rb +12 -0
  406. data/lib/whop_sdk/types/ledger_activity_line_type.rb +3 -0
  407. data/lib/whop_sdk/types/legacy_invoice.rb +55 -0
  408. data/lib/whop_sdk/types/legacy_invoice_company.rb +14 -0
  409. data/lib/whop_sdk/types/legacy_invoice_company_logo.rb +10 -0
  410. data/lib/whop_sdk/types/legacy_invoice_current_plan.rb +26 -0
  411. data/lib/whop_sdk/types/{invoice_list_item_line_items_item.rb → legacy_invoice_line_items_item.rb} +1 -1
  412. data/lib/whop_sdk/types/{invoice_list_item.rb → legacy_invoice_list_item.rb} +4 -4
  413. data/lib/whop_sdk/types/{invoice_list_item_current_plan.rb → legacy_invoice_list_item_current_plan.rb} +1 -1
  414. data/lib/whop_sdk/types/legacy_invoice_list_item_line_items_item.rb +18 -0
  415. data/lib/whop_sdk/types/{invoice_list_item_user.rb → legacy_invoice_list_item_user.rb} +1 -1
  416. data/lib/whop_sdk/types/legacy_invoice_mailing_address.rb +24 -0
  417. data/lib/whop_sdk/types/legacy_invoice_member.rb +11 -0
  418. data/lib/whop_sdk/types/legacy_invoice_payment.rb +11 -0
  419. data/lib/whop_sdk/types/legacy_invoice_product.rb +12 -0
  420. data/lib/whop_sdk/types/legacy_invoice_user.rb +16 -0
  421. data/lib/whop_sdk/types/livestream.rb +27 -0
  422. data/lib/whop_sdk/types/livestream_recording_status.rb +14 -0
  423. data/lib/whop_sdk/types/market.rb +17 -0
  424. data/lib/whop_sdk/types/market_instrument_type.rb +12 -0
  425. data/lib/whop_sdk/types/member.rb +2 -0
  426. data/lib/whop_sdk/types/membership.rb +2 -2
  427. data/lib/whop_sdk/types/membership_affiliate.rb +2 -0
  428. data/lib/whop_sdk/types/membership_affiliate_commission_source.rb +14 -0
  429. data/lib/whop_sdk/types/partner_referral_request.rb +2 -0
  430. data/lib/whop_sdk/types/passkey_authenticator_selection.rb +13 -0
  431. data/lib/whop_sdk/types/passkey_authenticator_selection_resident_key.rb +11 -0
  432. data/lib/whop_sdk/types/passkey_authenticator_selection_user_verification.rb +11 -0
  433. data/lib/whop_sdk/types/passkey_challenge.rb +13 -0
  434. data/lib/whop_sdk/types/passkey_creation_extensions.rb +9 -0
  435. data/lib/whop_sdk/types/passkey_creation_options.rb +25 -0
  436. data/lib/whop_sdk/types/passkey_creation_options_attestation.rb +11 -0
  437. data/lib/whop_sdk/types/passkey_credential_descriptor.rb +13 -0
  438. data/lib/whop_sdk/types/passkey_credential_descriptor_transports_item.rb +16 -0
  439. data/lib/whop_sdk/types/passkey_credential_descriptor_type.rb +11 -0
  440. data/lib/whop_sdk/types/passkey_credential_parameter.rb +11 -0
  441. data/lib/whop_sdk/types/passkey_credential_parameter_type.rb +11 -0
  442. data/lib/whop_sdk/types/{invoice_company.rb → passkey_relying_party.rb} +3 -2
  443. data/lib/whop_sdk/types/passkey_request_options.rb +17 -0
  444. data/lib/whop_sdk/types/passkey_request_options_user_verification.rb +11 -0
  445. data/lib/whop_sdk/types/passkey_user_entity.rb +13 -0
  446. data/lib/whop_sdk/types/payment.rb +13 -1
  447. data/lib/whop_sdk/types/payment_fee_origin.rb +1 -0
  448. data/lib/whop_sdk/types/payment_input.rb +4 -4
  449. data/lib/whop_sdk/types/{payment_input_plan.rb → payment_input_variant.rb} +9 -9
  450. data/lib/whop_sdk/types/{product_public_plan_plan_type.rb → payment_input_variant_billing_type.rb} +1 -1
  451. data/lib/whop_sdk/types/{payment_input_plan_currency.rb → payment_input_variant_currency.rb} +1 -1
  452. data/lib/whop_sdk/types/{payment_input_plan_override_tax_type.rb → payment_input_variant_override_tax_type.rb} +1 -1
  453. data/lib/whop_sdk/types/{payment_input_plan_product.rb → payment_input_variant_product.rb} +3 -3
  454. data/lib/whop_sdk/types/{payment_input_plan_product_global_affiliate_status.rb → payment_input_variant_product_global_affiliate_status.rb} +1 -1
  455. data/lib/whop_sdk/types/{payment_input_plan_product_visibility.rb → payment_input_variant_product_visibility.rb} +1 -1
  456. data/lib/whop_sdk/types/{payment_input_plan_visibility.rb → payment_input_variant_visibility.rb} +1 -1
  457. data/lib/whop_sdk/types/payment_quote_line_item.rb +2 -2
  458. data/lib/whop_sdk/types/payment_rule_condition_field.rb +7 -0
  459. data/lib/whop_sdk/types/payment_rule_field_field.rb +7 -0
  460. data/lib/whop_sdk/types/permission_action.rb +8 -0
  461. data/lib/whop_sdk/types/plan.rb +4 -2
  462. data/lib/whop_sdk/types/{plan_plan_type.rb → plan_billing_type.rb} +1 -1
  463. data/lib/whop_sdk/types/plan_list_item.rb +4 -2
  464. data/lib/whop_sdk/types/{plan_list_item_plan_type.rb → plan_list_item_billing_type.rb} +1 -1
  465. data/lib/whop_sdk/types/product.rb +1 -1
  466. data/lib/whop_sdk/types/product_list_item.rb +1 -1
  467. data/lib/whop_sdk/types/{product_public_plan.rb → product_public_variant.rb} +4 -4
  468. data/lib/whop_sdk/types/product_public_variant_billing_type.rb +12 -0
  469. data/lib/whop_sdk/types/{product_public_plan_visibility.rb → product_public_variant_visibility.rb} +1 -1
  470. data/lib/whop_sdk/types/promo_code.rb +2 -0
  471. data/lib/whop_sdk/types/promo_code_affiliate.rb +11 -0
  472. data/lib/whop_sdk/types/promo_code_affiliate_user.rb +15 -0
  473. data/lib/whop_sdk/types/promo_code_list_item.rb +2 -0
  474. data/lib/whop_sdk/types/receipt_line_item.rb +4 -4
  475. data/lib/whop_sdk/types/resolution_center_case.rb +2 -2
  476. data/lib/whop_sdk/types/shipment_lookup.rb +11 -0
  477. data/lib/whop_sdk/types/social_account_parent_platform.rb +2 -0
  478. data/lib/whop_sdk/types/social_account_platform.rb +2 -0
  479. data/lib/whop_sdk/types/specific_fee_origins.rb +1 -0
  480. data/lib/whop_sdk/types/variant.rb +4 -2
  481. data/lib/whop_sdk/types/{variant_plan_type.rb → variant_billing_type.rb} +1 -1
  482. data/lib/whop_sdk/types/variant_list_item.rb +4 -2
  483. data/lib/whop_sdk/types/{payment_input_plan_plan_type.rb → variant_list_item_billing_type.rb} +1 -1
  484. data/lib/whop_sdk/types/waitlist_entry.rb +9 -1
  485. data/lib/whop_sdk/types/waitlist_entry_product.rb +11 -0
  486. data/lib/whop_sdk/types/waitlist_entry_variant.rb +23 -0
  487. data/lib/whop_sdk/types/waitlist_entry_variant_billing_type.rb +12 -0
  488. data/lib/whop_sdk/types/webhook.rb +2 -0
  489. data/lib/whop_sdk/types/webhook_delivery.rb +2 -0
  490. data/lib/whop_sdk/types/webhook_delivery_status.rb +12 -0
  491. data/lib/whop_sdk/types/webhook_event.rb +5 -0
  492. data/lib/whop_sdk/types/webhook_events_item.rb +5 -0
  493. data/lib/whop_sdk/types/webhook_list_item.rb +2 -0
  494. data/lib/whop_sdk/types/webhook_list_item_events_item.rb +5 -0
  495. data/lib/whop_sdk/types/webhook_testable_events_item.rb +5 -0
  496. data/lib/whop_sdk/users/passkeys/client.rb +13 -9
  497. data/lib/whop_sdk/users/passkeys/types/create_passkeys_request.rb +4 -0
  498. data/lib/whop_sdk/variants/client.rb +5 -5
  499. data/lib/whop_sdk/variants/types/create_variants_request.rb +10 -2
  500. data/lib/whop_sdk/variants/types/list_variants_request.rb +1 -1
  501. data/lib/whop_sdk/variants/types/update_variants_request.rb +4 -0
  502. data/lib/whop_sdk/verifications/client.rb +39 -19
  503. data/lib/whop_sdk/verifications/types/create_verifications_response.rb +6 -0
  504. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item.rb +4 -0
  505. data/lib/whop_sdk/verifications/types/create_verifications_response_owners_item_rejected_checks_item.rb +15 -0
  506. data/lib/whop_sdk/verifications/types/create_verifications_response_requested_information_item.rb +2 -0
  507. data/lib/whop_sdk/verifications/types/list_verifications_request.rb +10 -0
  508. data/lib/whop_sdk/verifications/types/list_verifications_response.rb +3 -1
  509. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item.rb +6 -0
  510. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item.rb +4 -0
  511. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_owners_item_rejected_checks_item.rb +15 -0
  512. data/lib/whop_sdk/verifications/types/list_verifications_response_data_item_requested_information_item.rb +2 -0
  513. data/lib/whop_sdk/verifications/types/list_verifications_response_page_info.rb +17 -0
  514. data/lib/whop_sdk/verifications/types/retrieve_verifications_response.rb +6 -0
  515. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item.rb +4 -0
  516. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_owners_item_rejected_checks_item.rb +15 -0
  517. data/lib/whop_sdk/verifications/types/retrieve_verifications_response_requested_information_item.rb +2 -0
  518. data/lib/whop_sdk/verifications/types/update_verifications_request_body_business_address_owners_item.rb +4 -3
  519. data/lib/whop_sdk/verifications/types/update_verifications_response.rb +6 -0
  520. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item.rb +4 -0
  521. data/lib/whop_sdk/verifications/types/update_verifications_response_owners_item_rejected_checks_item.rb +15 -0
  522. data/lib/whop_sdk/verifications/types/update_verifications_response_requested_information_item.rb +2 -0
  523. data/lib/whop_sdk/version.rb +1 -1
  524. data/lib/whop_sdk/waitlist_entries/client.rb +20 -12
  525. data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_request.rb +1 -1
  526. data/lib/whop_sdk/waitlist_entries/types/approve_all_waitlist_entries_response.rb +2 -2
  527. data/lib/whop_sdk/waitlist_entries/types/create_waitlist_entries_request.rb +3 -1
  528. data/lib/whop_sdk/waitlist_entries/types/list_waitlist_entries_request.rb +5 -1
  529. data/lib/whop_sdk/webhooks/client.rb +17 -2
  530. data/lib/whop_sdk/webhooks/types/create_webhooks_request.rb +2 -0
  531. data/lib/whop_sdk/webhooks/types/create_webhooks_request_events_item.rb +5 -0
  532. data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request.rb +10 -0
  533. data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request_events_item.rb +127 -0
  534. data/lib/whop_sdk/webhooks/types/list_deliveries_webhooks_request_status.rb +14 -0
  535. data/lib/whop_sdk/webhooks/types/update_webhooks_request.rb +2 -0
  536. data/lib/whop_sdk/webhooks/types/update_webhooks_request_events_item.rb +5 -0
  537. data/lib/whop_sdk.rb +334 -139
  538. data/reference.md +3742 -1077
  539. metadata +305 -110
  540. data/lib/whop_sdk/accounts/financing_applications/client.rb +0 -281
  541. data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request.rb +0 -31
  542. data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request_order.rb +0 -16
  543. data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_request_status.rb +0 -19
  544. data/lib/whop_sdk/accounts/financing_applications/types/list_financing_applications_response.rb +0 -15
  545. data/lib/whop_sdk/accounts/financing_applications/types/retrieve_financing_applications_request.rb +0 -15
  546. data/lib/whop_sdk/accounts/financing_applications/types/submit_financing_applications_request.rb +0 -17
  547. data/lib/whop_sdk/accounts/financing_applications/types/submit_financing_applications_request_merchant_acceptance.rb +0 -15
  548. data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request.rb +0 -17
  549. data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item.rb +0 -19
  550. data/lib/whop_sdk/accounts/financing_applications/types/update_financing_applications_request_answers_item_money.rb +0 -16
  551. data/lib/whop_sdk/invoices/types/create_invoices_request_product.rb +0 -44
  552. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id.rb +0 -44
  553. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_billing_address.rb +0 -31
  554. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_line_items_item.rb +0 -16
  555. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan.rb +0 -44
  556. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan_custom_fields_item.rb +0 -21
  557. data/lib/whop_sdk/invoices/types/create_invoices_request_product_id_plan_payment_method_configuration.rb +0 -17
  558. data/lib/whop_sdk/invoices/types/create_invoices_request_product_line_items_item.rb +0 -16
  559. data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan.rb +0 -44
  560. data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan_custom_fields_item.rb +0 -21
  561. data/lib/whop_sdk/invoices/types/create_invoices_request_product_plan_payment_method_configuration.rb +0 -17
  562. data/lib/whop_sdk/invoices/types/create_invoices_request_product_product.rb +0 -14
  563. data/lib/whop_sdk/invoices/types/update_invoices_request_line_items_item.rb +0 -16
  564. data/lib/whop_sdk/invoices/types/update_invoices_request_plan.rb +0 -44
  565. data/lib/whop_sdk/invoices/types/update_invoices_request_plan_custom_fields_item.rb +0 -21
  566. data/lib/whop_sdk/invoices/types/update_invoices_request_plan_payment_method_configuration.rb +0 -17
  567. data/lib/whop_sdk/types/invoice_current_plan.rb +0 -16
  568. data/lib/whop_sdk/users/passkeys/types/challenge_passkeys_response.rb +0 -13
@@ -0,0 +1,268 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ class Client
6
+ # @param client [Whop_sdk::Internal::Http::RawClient]
7
+ # @param base_url [String, nil]
8
+ # @param environment [Hash[Symbol, String], nil]
9
+ #
10
+ # @return [void]
11
+ def initialize(client:, base_url: nil, environment: nil)
12
+ @client = client
13
+ @base_url = base_url
14
+ @environment = environment
15
+ end
16
+
17
+ # Lists payment-financing applications. Without `account_id`, an account credential lists its own account and its
18
+ # direct connected accounts, but not deeper descendants, and a user credential lists every account it can read
19
+ # applications for.
20
+ #
21
+ # @param request_options [Hash]
22
+ # @param params [Hash]
23
+ # @option request_options [String] :base_url
24
+ # @option request_options [Hash{String => Object}] :additional_headers
25
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
26
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
27
+ # @option request_options [Integer] :timeout_in_seconds
28
+ # @option params [String, nil] :account_id
29
+ # @option params [Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestStatus, nil] :status
30
+ # @option params [String, nil] :created_before
31
+ # @option params [String, nil] :created_after
32
+ # @option params [Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestOrder, nil] :order
33
+ # @option params [Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestDirection, nil] :direction
34
+ # @option params [Integer, nil] :first
35
+ # @option params [String, nil] :after
36
+ # @option params [Integer, nil] :last
37
+ # @option params [String, nil] :before
38
+ #
39
+ # @example
40
+ # client.financing_applications.list
41
+ #
42
+ # @return [Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsResponse]
43
+ def list(request_options: {}, **params)
44
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
45
+ query_params = {}
46
+ query_params["account_id"] = params[:account_id] if params.key?(:account_id)
47
+ query_params["status"] = params[:status] if params.key?(:status)
48
+ query_params["created_before"] = params[:created_before] if params.key?(:created_before)
49
+ query_params["created_after"] = params[:created_after] if params.key?(:created_after)
50
+ query_params["order"] = params[:order] if params.key?(:order)
51
+ query_params["direction"] = params[:direction] if params.key?(:direction)
52
+ query_params["first"] = params[:first] if params.key?(:first)
53
+ query_params["after"] = params[:after] if params.key?(:after)
54
+ query_params["last"] = params[:last] if params.key?(:last)
55
+ query_params["before"] = params[:before] if params.key?(:before)
56
+
57
+ Whop_sdk::Internal::CursorItemIterator.new(
58
+ cursor_field: :end_cursor,
59
+ item_field: :data,
60
+ initial_cursor: query_params["after"]
61
+ ) do |next_cursor|
62
+ query_params["after"] = next_cursor
63
+ request = Whop_sdk::Internal::JSON::Request.new(
64
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
65
+ method: "GET",
66
+ path: "financing_applications",
67
+ query: query_params,
68
+ request_options: request_options
69
+ )
70
+ begin
71
+ response = @client.send(request)
72
+ rescue Net::HTTPRequestTimeout
73
+ raise Whop_sdk::Errors::TimeoutError
74
+ end
75
+ code = response.code.to_i
76
+ if code.between?(200, 299)
77
+ parsed_response = (response.body.to_s.empty? ? nil : Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsResponse.load(response.body))
78
+ [parsed_response, response]
79
+ else
80
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
81
+ raise error_class.new(response.body, code: code)
82
+ end
83
+ end
84
+ end
85
+
86
+ # Starts an application for payment-financing approval, or returns the account's open one: an application in
87
+ # `awaiting_review` takes precedence over one in `requires_collection`, and the open application is reused across
88
+ # different `Idempotency-Key` values. Creating an application does not submit it for review. The account must have
89
+ # a Whop balance set up, and accounts in restricted industries cannot apply. Once an application closes, the
90
+ # account can apply again.
91
+ #
92
+ # @param request_options [Hash]
93
+ # @param params [Whop_sdk::FinancingApplications::Types::CreateFinancingApplicationsRequest]
94
+ # @option request_options [String] :base_url
95
+ # @option request_options [Hash{String => Object}] :additional_headers
96
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
97
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
98
+ # @option request_options [Integer] :timeout_in_seconds
99
+ #
100
+ # @example
101
+ # client.financing_applications.create
102
+ #
103
+ # @return [Whop_sdk::Types::FinancingApplication]
104
+ def create(request_options: {}, **params)
105
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
106
+ request = Whop_sdk::Internal::JSON::Request.new(
107
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
108
+ method: "POST",
109
+ path: "financing_applications",
110
+ body: Whop_sdk::FinancingApplications::Types::CreateFinancingApplicationsRequest.new(params).to_h,
111
+ request_options: request_options
112
+ )
113
+ begin
114
+ response = @client.send(request)
115
+ rescue Net::HTTPRequestTimeout
116
+ raise Whop_sdk::Errors::TimeoutError
117
+ end
118
+ code = response.code.to_i
119
+ if code.between?(200, 299)
120
+ (response.body.to_s.empty? ? nil : Whop_sdk::Types::FinancingApplication.load(response.body))
121
+ else
122
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
123
+ raise error_class.new(response.body, code: code)
124
+ end
125
+ end
126
+
127
+ # Retrieves a payment-financing application with its review state, requirements, saved answers, documents, current
128
+ # terms, and review feedback. Requires read access to the account that owns it.
129
+ #
130
+ # @param request_options [Hash]
131
+ # @param params [Hash]
132
+ # @option request_options [String] :base_url
133
+ # @option request_options [Hash{String => Object}] :additional_headers
134
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
135
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
136
+ # @option request_options [Integer] :timeout_in_seconds
137
+ # @option params [String] :id
138
+ #
139
+ # @example
140
+ # client.financing_applications.retrieve(id: "id")
141
+ #
142
+ # @return [Whop_sdk::Types::FinancingApplication]
143
+ def retrieve(request_options: {}, **params)
144
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
145
+ request = Whop_sdk::Internal::JSON::Request.new(
146
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
147
+ method: "GET",
148
+ path: "financing_applications/#{URI.encode_uri_component(params[:id].to_s)}",
149
+ request_options: request_options
150
+ )
151
+ begin
152
+ response = @client.send(request)
153
+ rescue Net::HTTPRequestTimeout
154
+ raise Whop_sdk::Errors::TimeoutError
155
+ end
156
+ code = response.code.to_i
157
+ if code.between?(200, 299)
158
+ (response.body.to_s.empty? ? nil : Whop_sdk::Types::FinancingApplication.load(response.body))
159
+ else
160
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
161
+ raise error_class.new(response.body, code: code)
162
+ end
163
+ end
164
+
165
+ # Saves merchant answers to an application in `requires_collection`. The batch is atomic: if any answer is
166
+ # rejected, none are saved. Omitted requirements and answer fields are left unchanged. Saving answers does not
167
+ # submit the application; call Submit Financing Application when it is complete.
168
+ #
169
+ # @param request_options [Hash]
170
+ # @param params [Whop_sdk::FinancingApplications::Types::UpdateFinancingApplicationsRequest]
171
+ # @option request_options [String] :base_url
172
+ # @option request_options [Hash{String => Object}] :additional_headers
173
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
174
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
175
+ # @option request_options [Integer] :timeout_in_seconds
176
+ # @option params [String] :id
177
+ #
178
+ # @example
179
+ # client.financing_applications.update(
180
+ # id: "id",
181
+ # answers: [{
182
+ # requirement_id: "inrqi_xxxxxxxxxxxxxx"
183
+ # }]
184
+ # )
185
+ #
186
+ # @return [Whop_sdk::Types::FinancingApplication]
187
+ def update(request_options: {}, **params)
188
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
189
+ request_data = Whop_sdk::FinancingApplications::Types::UpdateFinancingApplicationsRequest.new(params).to_h
190
+ non_body_param_names = %w[id]
191
+ body = request_data.except(*non_body_param_names)
192
+
193
+ request = Whop_sdk::Internal::JSON::Request.new(
194
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
195
+ method: "PATCH",
196
+ path: "financing_applications/#{URI.encode_uri_component(params[:id].to_s)}",
197
+ body: body,
198
+ request_options: request_options
199
+ )
200
+ begin
201
+ response = @client.send(request)
202
+ rescue Net::HTTPRequestTimeout
203
+ raise Whop_sdk::Errors::TimeoutError
204
+ end
205
+ code = response.code.to_i
206
+ if code.between?(200, 299)
207
+ (response.body.to_s.empty? ? nil : Whop_sdk::Types::FinancingApplication.load(response.body))
208
+ else
209
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
210
+ raise error_class.new(response.body, code: code)
211
+ end
212
+ end
213
+
214
+ # Submits a complete application for financing review, recording the merchant's acceptance, who submitted, and
215
+ # when, then moving it to `awaiting_review`. Before calling, present the application's `terms.content`, policies,
216
+ # and disclosure to the merchant and collect affirmative acceptance; every resubmission needs acceptance again.
217
+ # Only an application in `requires_collection` can be submitted, including after a reviewer requests more
218
+ # information. Retry with the same `Idempotency-Key`: submitting an application already in review without a replay
219
+ # returns an error. Approval does not by itself enable financing payment methods.
220
+ #
221
+ # @param request_options [Hash]
222
+ # @param params [Whop_sdk::FinancingApplications::Types::SubmitFinancingApplicationsRequest]
223
+ # @option request_options [String] :base_url
224
+ # @option request_options [Hash{String => Object}] :additional_headers
225
+ # @option request_options [Hash{String => Object}] :additional_query_parameters
226
+ # @option request_options [Hash{String => Object}] :additional_body_parameters
227
+ # @option request_options [Integer] :timeout_in_seconds
228
+ # @option params [String] :id
229
+ #
230
+ # @example
231
+ # client.financing_applications.submit(
232
+ # id: "id",
233
+ # merchant_acceptance: {
234
+ # accepted: true,
235
+ # terms_version: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
236
+ # }
237
+ # )
238
+ #
239
+ # @return [Whop_sdk::Types::FinancingApplication]
240
+ def submit(request_options: {}, **params)
241
+ params = Whop_sdk::Internal::Types::Utils.normalize_keys(params)
242
+ request_data = Whop_sdk::FinancingApplications::Types::SubmitFinancingApplicationsRequest.new(params).to_h
243
+ non_body_param_names = %w[id]
244
+ body = request_data.except(*non_body_param_names)
245
+
246
+ request = Whop_sdk::Internal::JSON::Request.new(
247
+ base_url: request_options[:base_url] || @base_url || @environment&.dig(:api),
248
+ method: "POST",
249
+ path: "financing_applications/#{URI.encode_uri_component(params[:id].to_s)}/submit",
250
+ body: body,
251
+ request_options: request_options
252
+ )
253
+ begin
254
+ response = @client.send(request)
255
+ rescue Net::HTTPRequestTimeout
256
+ raise Whop_sdk::Errors::TimeoutError
257
+ end
258
+ code = response.code.to_i
259
+ if code.between?(200, 299)
260
+ (response.body.to_s.empty? ? nil : Whop_sdk::Types::FinancingApplication.load(response.body))
261
+ else
262
+ error_class = Whop_sdk::Errors::ResponseError.subclass_for_code(code)
263
+ raise error_class.new(response.body, code: code)
264
+ end
265
+ end
266
+ end
267
+ end
268
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class CreateFinancingApplicationsRequest < Internal::Types::Model
7
+ field :account_id, -> { String }, optional: true, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class ListFinancingApplicationsRequest < Internal::Types::Model
7
+ field :account_id, -> { String }, optional: true, nullable: false
8
+
9
+ field :status, -> { Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestStatus }, optional: true, nullable: false
10
+
11
+ field :created_before, -> { String }, optional: true, nullable: false
12
+
13
+ field :created_after, -> { String }, optional: true, nullable: false
14
+
15
+ field :order, -> { Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestOrder }, optional: true, nullable: false
16
+
17
+ field :direction, -> { Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsRequestDirection }, optional: true, nullable: false
18
+
19
+ field :first, -> { Integer }, optional: true, nullable: false
20
+
21
+ field :after, -> { String }, optional: true, nullable: false
22
+
23
+ field :last, -> { Integer }, optional: true, nullable: false
24
+
25
+ field :before, -> { String }, optional: true, nullable: false
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ module ListFinancingApplicationsRequestDirection
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ ASC = "asc"
10
+ DESC = "desc"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ module ListFinancingApplicationsRequestOrder
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ CREATED_AT = "created_at"
10
+ UPDATED_AT = "updated_at"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ module ListFinancingApplicationsRequestStatus
7
+ extend Whop_sdk::Internal::Types::Enum
8
+
9
+ REQUIRES_COLLECTION = "requires_collection"
10
+ AWAITING_REVIEW = "awaiting_review"
11
+ COMPLETED = "completed"
12
+ APPROVED = "approved"
13
+ DENIED = "denied"
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class ListFinancingApplicationsResponse < Internal::Types::Model
7
+ field :data, -> { Internal::Types::Array[Whop_sdk::Types::FinancingApplication] }, optional: false, nullable: false
8
+
9
+ field :page_info, -> { Whop_sdk::FinancingApplications::Types::ListFinancingApplicationsResponsePageInfo }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class ListFinancingApplicationsResponsePageInfo < Internal::Types::Model
7
+ field :end_cursor, -> { String }, optional: false, nullable: true
8
+
9
+ field :has_next_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
10
+
11
+ field :has_previous_page, -> { Internal::Types::Boolean }, optional: false, nullable: false
12
+
13
+ field :start_cursor, -> { String }, optional: false, nullable: true
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  class PostAccountFinancingApprovedPayload < Internal::Types::Model
7
7
  field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
- field :api_version, -> { Whop_sdk::Accounts::Types::PostAccountFinancingApprovedPayloadAPIVersion }, optional: false, nullable: false
9
+ field :api_version, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingApprovedPayloadAPIVersion }, optional: false, nullable: false
10
10
 
11
11
  field :api_version_date, -> { String }, optional: false, nullable: true
12
12
 
@@ -18,7 +18,7 @@ module Whop_sdk
18
18
 
19
19
  field :timestamp, -> { String }, optional: false, nullable: false
20
20
 
21
- field :type, -> { Whop_sdk::Accounts::Types::PostAccountFinancingApprovedPayloadType }, optional: false, nullable: false
21
+ field :type, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingApprovedPayloadType }, optional: false, nullable: false
22
22
  end
23
23
  end
24
24
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingApprovedPayloadAPIVersion
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingApprovedPayloadType
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  class PostAccountFinancingDeniedPayload < Internal::Types::Model
7
7
  field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
- field :api_version, -> { Whop_sdk::Accounts::Types::PostAccountFinancingDeniedPayloadAPIVersion }, optional: false, nullable: false
9
+ field :api_version, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingDeniedPayloadAPIVersion }, optional: false, nullable: false
10
10
 
11
11
  field :api_version_date, -> { String }, optional: false, nullable: true
12
12
 
@@ -18,7 +18,7 @@ module Whop_sdk
18
18
 
19
19
  field :timestamp, -> { String }, optional: false, nullable: false
20
20
 
21
- field :type, -> { Whop_sdk::Accounts::Types::PostAccountFinancingDeniedPayloadType }, optional: false, nullable: false
21
+ field :type, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingDeniedPayloadType }, optional: false, nullable: false
22
22
  end
23
23
  end
24
24
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingDeniedPayloadAPIVersion
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingDeniedPayloadType
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  class PostAccountFinancingDisabledPayload < Internal::Types::Model
7
7
  field :account_id, -> { String }, optional: true, nullable: false
8
8
 
9
- field :api_version, -> { Whop_sdk::Accounts::Types::PostAccountFinancingDisabledPayloadAPIVersion }, optional: false, nullable: false
9
+ field :api_version, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingDisabledPayloadAPIVersion }, optional: false, nullable: false
10
10
 
11
11
  field :api_version_date, -> { String }, optional: false, nullable: true
12
12
 
@@ -18,7 +18,7 @@ module Whop_sdk
18
18
 
19
19
  field :timestamp, -> { String }, optional: false, nullable: false
20
20
 
21
- field :type, -> { Whop_sdk::Accounts::Types::PostAccountFinancingDisabledPayloadType }, optional: false, nullable: false
21
+ field :type, -> { Whop_sdk::FinancingApplications::Types::PostAccountFinancingDisabledPayloadType }, optional: false, nullable: false
22
22
  end
23
23
  end
24
24
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingDisabledPayloadAPIVersion
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Whop_sdk
4
- module Accounts
4
+ module FinancingApplications
5
5
  module Types
6
6
  module PostAccountFinancingDisabledPayloadType
7
7
  extend Whop_sdk::Internal::Types::Enum
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class RetrieveFinancingApplicationsRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class SubmitFinancingApplicationsRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :merchant_acceptance, -> { Whop_sdk::FinancingApplications::Types::SubmitFinancingApplicationsRequestMerchantAcceptance }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class SubmitFinancingApplicationsRequestMerchantAcceptance < Internal::Types::Model
7
+ field :accepted, -> { Internal::Types::Boolean }, optional: false, nullable: false
8
+
9
+ field :terms_version, -> { String }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class UpdateFinancingApplicationsRequest < Internal::Types::Model
7
+ field :id, -> { String }, optional: false, nullable: false
8
+
9
+ field :answers, -> { Internal::Types::Array[Whop_sdk::FinancingApplications::Types::UpdateFinancingApplicationsRequestAnswersItem] }, optional: false, nullable: false
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ class UpdateFinancingApplicationsRequestAnswersItem < Internal::Types::Model
7
+ field :file_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: false
8
+
9
+ field :money, -> { Whop_sdk::FinancingApplications::Types::UpdateFinancingApplicationsRequestAnswersItemMoney }, optional: true, nullable: false
10
+
11
+ field :requirement_id, -> { String }, optional: false, nullable: false
12
+
13
+ field :values, -> { Internal::Types::Array[String] }, optional: true, nullable: false
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Whop_sdk
4
+ module FinancingApplications
5
+ module Types
6
+ # Price answer, such as `max_product_price`. `null` clears the price.
7
+ class UpdateFinancingApplicationsRequestAnswersItemMoney < Internal::Types::Model
8
+ field :amount, -> { String }, optional: false, nullable: false
9
+
10
+ field :currency, -> { Whop_sdk::FinancingApplications::Types::UpdateFinancingApplicationsRequestAnswersItemMoneyCurrency }, optional: false, nullable: false
11
+ end
12
+ end
13
+ end
14
+ end