stripe 5.55.0 → 18.2.0.pre.beta.1

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 (1336) hide show
  1. checksums.yaml +4 -4
  2. data/{bin → exe}/stripe-console +1 -1
  3. data/lib/data/ca-certificates.crt +1805 -2337
  4. data/lib/stripe/api_operations/create.rb +6 -2
  5. data/lib/stripe/api_operations/delete.rb +12 -7
  6. data/lib/stripe/api_operations/list.rb +6 -9
  7. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  8. data/lib/stripe/api_operations/request.rb +30 -65
  9. data/lib/stripe/api_operations/save.rb +20 -10
  10. data/lib/stripe/api_operations/search.rb +11 -9
  11. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  12. data/lib/stripe/api_requestor.rb +1173 -0
  13. data/lib/stripe/api_resource.rb +51 -18
  14. data/lib/stripe/api_resource_test_helpers.rb +9 -3
  15. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  16. data/lib/stripe/connection_manager.rb +6 -10
  17. data/lib/stripe/errors.rb +74 -20
  18. data/lib/stripe/event_types.rb +242 -0
  19. data/lib/stripe/events/unknown_event_notification.rb +19 -0
  20. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +123 -0
  21. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +100 -0
  22. data/lib/stripe/events/v2_core_account_closed_event.rb +44 -0
  23. data/lib/stripe/events/v2_core_account_created_event.rb +44 -0
  24. data/lib/stripe/events/v2_core_account_including_configuration_customer_capability_status_updated_event.rb +63 -0
  25. data/lib/stripe/events/v2_core_account_including_configuration_customer_updated_event.rb +44 -0
  26. data/lib/stripe/events/v2_core_account_including_configuration_merchant_capability_status_updated_event.rb +63 -0
  27. data/lib/stripe/events/v2_core_account_including_configuration_merchant_updated_event.rb +44 -0
  28. data/lib/stripe/events/v2_core_account_including_configuration_recipient_capability_status_updated_event.rb +63 -0
  29. data/lib/stripe/events/v2_core_account_including_configuration_recipient_updated_event.rb +44 -0
  30. data/lib/stripe/events/v2_core_account_including_configuration_storer_capability_status_updated_event.rb +63 -0
  31. data/lib/stripe/events/v2_core_account_including_configuration_storer_updated_event.rb +44 -0
  32. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +44 -0
  33. data/lib/stripe/events/v2_core_account_including_identity_updated_event.rb +44 -0
  34. data/lib/stripe/events/v2_core_account_including_requirements_updated_event.rb +44 -0
  35. data/lib/stripe/events/v2_core_account_link_returned_event.rb +42 -0
  36. data/lib/stripe/events/v2_core_account_person_created_event.rb +61 -0
  37. data/lib/stripe/events/v2_core_account_person_deleted_event.rb +61 -0
  38. data/lib/stripe/events/v2_core_account_person_updated_event.rb +61 -0
  39. data/lib/stripe/events/v2_core_account_updated_event.rb +44 -0
  40. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +44 -0
  41. data/lib/stripe/events/v2_core_health_event_generation_failure_resolved_event.rb +78 -0
  42. data/lib/stripe/events/v2_money_management_adjustment_created_event.rb +44 -0
  43. data/lib/stripe/events/v2_money_management_financial_account_created_event.rb +44 -0
  44. data/lib/stripe/events/v2_money_management_financial_account_updated_event.rb +44 -0
  45. data/lib/stripe/events/v2_money_management_financial_address_activated_event.rb +44 -0
  46. data/lib/stripe/events/v2_money_management_financial_address_failed_event.rb +44 -0
  47. data/lib/stripe/events/v2_money_management_inbound_transfer_available_event.rb +61 -0
  48. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +44 -0
  49. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +44 -0
  50. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +44 -0
  51. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +44 -0
  52. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +44 -0
  53. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +44 -0
  54. data/lib/stripe/events/v2_money_management_outbound_payment_created_event.rb +44 -0
  55. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +44 -0
  56. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +44 -0
  57. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +44 -0
  58. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +44 -0
  59. data/lib/stripe/events/v2_money_management_outbound_transfer_canceled_event.rb +44 -0
  60. data/lib/stripe/events/v2_money_management_outbound_transfer_created_event.rb +44 -0
  61. data/lib/stripe/events/v2_money_management_outbound_transfer_failed_event.rb +44 -0
  62. data/lib/stripe/events/v2_money_management_outbound_transfer_posted_event.rb +44 -0
  63. data/lib/stripe/events/v2_money_management_outbound_transfer_returned_event.rb +44 -0
  64. data/lib/stripe/events/v2_money_management_outbound_transfer_updated_event.rb +44 -0
  65. data/lib/stripe/events/v2_money_management_payout_method_created_event.rb +44 -0
  66. data/lib/stripe/events/v2_money_management_payout_method_updated_event.rb +44 -0
  67. data/lib/stripe/events/v2_money_management_received_credit_available_event.rb +61 -0
  68. data/lib/stripe/events/v2_money_management_received_credit_failed_event.rb +44 -0
  69. data/lib/stripe/events/v2_money_management_received_credit_returned_event.rb +44 -0
  70. data/lib/stripe/events/v2_money_management_received_credit_succeeded_event.rb +44 -0
  71. data/lib/stripe/events/v2_money_management_received_debit_canceled_event.rb +44 -0
  72. data/lib/stripe/events/v2_money_management_received_debit_failed_event.rb +44 -0
  73. data/lib/stripe/events/v2_money_management_received_debit_pending_event.rb +44 -0
  74. data/lib/stripe/events/v2_money_management_received_debit_succeeded_event.rb +44 -0
  75. data/lib/stripe/events/v2_money_management_received_debit_updated_event.rb +44 -0
  76. data/lib/stripe/events/v2_money_management_transaction_created_event.rb +61 -0
  77. data/lib/stripe/events/v2_money_management_transaction_updated_event.rb +44 -0
  78. data/lib/stripe/instrumentation.rb +37 -15
  79. data/lib/stripe/list_object.rb +5 -3
  80. data/lib/stripe/multipart_encoder.rb +7 -7
  81. data/lib/stripe/oauth.rb +14 -21
  82. data/lib/stripe/object_types.rb +220 -103
  83. data/lib/stripe/params/account_capability_list_params.rb +13 -0
  84. data/lib/stripe/params/account_capability_retrieve_params.rb +13 -0
  85. data/lib/stripe/params/account_capability_update_params.rb +18 -0
  86. data/lib/stripe/params/account_create_params.rb +2440 -0
  87. data/lib/stripe/params/account_delete_params.rb +6 -0
  88. data/lib/stripe/params/account_external_account_create_params.rb +134 -0
  89. data/lib/stripe/params/account_external_account_delete_params.rb +6 -0
  90. data/lib/stripe/params/account_external_account_list_params.rb +25 -0
  91. data/lib/stripe/params/account_external_account_retrieve_params.rb +13 -0
  92. data/lib/stripe/params/account_external_account_update_params.rb +91 -0
  93. data/lib/stripe/params/account_link_create_params.rb +52 -0
  94. data/lib/stripe/params/account_list_params.rb +42 -0
  95. data/lib/stripe/params/account_login_link_create_params.rb +13 -0
  96. data/lib/stripe/params/account_notice_list_params.rb +25 -0
  97. data/lib/stripe/params/account_notice_retrieve_params.rb +13 -0
  98. data/lib/stripe/params/account_notice_update_params.rb +36 -0
  99. data/lib/stripe/params/account_person_create_params.rb +435 -0
  100. data/lib/stripe/params/account_person_delete_params.rb +6 -0
  101. data/lib/stripe/params/account_person_list_params.rb +61 -0
  102. data/lib/stripe/params/account_person_retrieve_params.rb +13 -0
  103. data/lib/stripe/params/account_person_update_params.rb +435 -0
  104. data/lib/stripe/params/account_persons_params.rb +61 -0
  105. data/lib/stripe/params/account_reject_params.rb +16 -0
  106. data/lib/stripe/params/account_retrieve_current_params.rb +13 -0
  107. data/lib/stripe/params/account_retrieve_params.rb +13 -0
  108. data/lib/stripe/params/account_session_create_params.rb +823 -0
  109. data/lib/stripe/params/account_update_params.rb +2350 -0
  110. data/lib/stripe/params/apple_pay_domain_create_params.rb +16 -0
  111. data/lib/stripe/params/apple_pay_domain_delete_params.rb +6 -0
  112. data/lib/stripe/params/apple_pay_domain_list_params.rb +31 -0
  113. data/lib/stripe/params/apple_pay_domain_retrieve_params.rb +13 -0
  114. data/lib/stripe/params/application_fee_list_params.rb +52 -0
  115. data/lib/stripe/params/application_fee_refund_create_params.rb +19 -0
  116. data/lib/stripe/params/application_fee_refund_list_params.rb +22 -0
  117. data/lib/stripe/params/application_fee_refund_retrieve_params.rb +13 -0
  118. data/lib/stripe/params/application_fee_refund_update_params.rb +16 -0
  119. data/lib/stripe/params/application_fee_retrieve_params.rb +13 -0
  120. data/lib/stripe/params/apps/secret_create_params.rb +38 -0
  121. data/lib/stripe/params/apps/secret_delete_where_params.rb +32 -0
  122. data/lib/stripe/params/apps/secret_find_params.rb +32 -0
  123. data/lib/stripe/params/apps/secret_list_params.rb +38 -0
  124. data/lib/stripe/params/balance_retrieve_params.rb +13 -0
  125. data/lib/stripe/params/balance_settings_retrieve_params.rb +13 -0
  126. data/lib/stripe/params/balance_settings_update_params.rb +67 -0
  127. data/lib/stripe/params/balance_transaction_list_params.rb +64 -0
  128. data/lib/stripe/params/balance_transaction_retrieve_params.rb +13 -0
  129. data/lib/stripe/params/billing/alert_activate_params.rb +15 -0
  130. data/lib/stripe/params/billing/alert_archive_params.rb +15 -0
  131. data/lib/stripe/params/billing/alert_create_params.rb +52 -0
  132. data/lib/stripe/params/billing/alert_deactivate_params.rb +15 -0
  133. data/lib/stripe/params/billing/alert_list_params.rb +37 -0
  134. data/lib/stripe/params/billing/alert_retrieve_params.rb +15 -0
  135. data/lib/stripe/params/billing/analytics/meter_usage_retrieve_params.rb +65 -0
  136. data/lib/stripe/params/billing/credit_balance_summary_retrieve_params.rb +57 -0
  137. data/lib/stripe/params/billing/credit_balance_transaction_list_params.rb +41 -0
  138. data/lib/stripe/params/billing/credit_balance_transaction_retrieve_params.rb +15 -0
  139. data/lib/stripe/params/billing/credit_grant_create_params.rb +107 -0
  140. data/lib/stripe/params/billing/credit_grant_expire_params.rb +15 -0
  141. data/lib/stripe/params/billing/credit_grant_list_params.rb +37 -0
  142. data/lib/stripe/params/billing/credit_grant_retrieve_params.rb +15 -0
  143. data/lib/stripe/params/billing/credit_grant_update_params.rb +21 -0
  144. data/lib/stripe/params/billing/credit_grant_void_grant_params.rb +15 -0
  145. data/lib/stripe/params/billing/meter_create_params.rb +70 -0
  146. data/lib/stripe/params/billing/meter_deactivate_params.rb +15 -0
  147. data/lib/stripe/params/billing/meter_event_adjustment_create_params.rb +32 -0
  148. data/lib/stripe/params/billing/meter_event_create_params.rb +27 -0
  149. data/lib/stripe/params/billing/meter_event_summary_list_params.rb +45 -0
  150. data/lib/stripe/params/billing/meter_list_params.rb +27 -0
  151. data/lib/stripe/params/billing/meter_reactivate_params.rb +15 -0
  152. data/lib/stripe/params/billing/meter_retrieve_params.rb +15 -0
  153. data/lib/stripe/params/billing/meter_update_params.rb +18 -0
  154. data/lib/stripe/params/billing_portal/configuration_create_params.rb +232 -0
  155. data/lib/stripe/params/billing_portal/configuration_list_params.rb +37 -0
  156. data/lib/stripe/params/billing_portal/configuration_retrieve_params.rb +15 -0
  157. data/lib/stripe/params/billing_portal/configuration_update_params.rb +238 -0
  158. data/lib/stripe/params/billing_portal/session_create_params.rb +183 -0
  159. data/lib/stripe/params/capital/financing_offer_list_params.rb +58 -0
  160. data/lib/stripe/params/capital/financing_offer_mark_delivered_params.rb +15 -0
  161. data/lib/stripe/params/capital/financing_offer_retrieve_params.rb +15 -0
  162. data/lib/stripe/params/capital/financing_summary_retrieve_params.rb +15 -0
  163. data/lib/stripe/params/capital/financing_transaction_list_params.rb +45 -0
  164. data/lib/stripe/params/capital/financing_transaction_retrieve_params.rb +15 -0
  165. data/lib/stripe/params/charge_capture_params.rb +1705 -0
  166. data/lib/stripe/params/charge_create_params.rb +172 -0
  167. data/lib/stripe/params/charge_list_params.rb +60 -0
  168. data/lib/stripe/params/charge_retrieve_params.rb +13 -0
  169. data/lib/stripe/params/charge_search_params.rb +22 -0
  170. data/lib/stripe/params/charge_update_params.rb +1750 -0
  171. data/lib/stripe/params/checkout/session_create_params.rb +2654 -0
  172. data/lib/stripe/params/checkout/session_expire_params.rb +15 -0
  173. data/lib/stripe/params/checkout/session_line_item_list_params.rb +24 -0
  174. data/lib/stripe/params/checkout/session_list_line_items_params.rb +24 -0
  175. data/lib/stripe/params/checkout/session_list_params.rb +87 -0
  176. data/lib/stripe/params/checkout/session_retrieve_params.rb +15 -0
  177. data/lib/stripe/params/checkout/session_update_params.rb +466 -0
  178. data/lib/stripe/params/climate/order_cancel_params.rb +15 -0
  179. data/lib/stripe/params/climate/order_create_params.rb +49 -0
  180. data/lib/stripe/params/climate/order_list_params.rb +24 -0
  181. data/lib/stripe/params/climate/order_retrieve_params.rb +15 -0
  182. data/lib/stripe/params/climate/order_update_params.rb +29 -0
  183. data/lib/stripe/params/climate/product_list_params.rb +24 -0
  184. data/lib/stripe/params/climate/product_retrieve_params.rb +15 -0
  185. data/lib/stripe/params/climate/supplier_list_params.rb +24 -0
  186. data/lib/stripe/params/climate/supplier_retrieve_params.rb +15 -0
  187. data/lib/stripe/params/confirmation_token_create_params.rb +747 -0
  188. data/lib/stripe/params/confirmation_token_retrieve_params.rb +13 -0
  189. data/lib/stripe/params/country_spec_list_params.rb +22 -0
  190. data/lib/stripe/params/country_spec_retrieve_params.rb +13 -0
  191. data/lib/stripe/params/coupon_create_params.rb +96 -0
  192. data/lib/stripe/params/coupon_delete_params.rb +6 -0
  193. data/lib/stripe/params/coupon_list_params.rb +42 -0
  194. data/lib/stripe/params/coupon_retrieve_params.rb +13 -0
  195. data/lib/stripe/params/coupon_update_params.rb +30 -0
  196. data/lib/stripe/params/credit_note_create_params.rb +161 -0
  197. data/lib/stripe/params/credit_note_line_item_list_params.rb +22 -0
  198. data/lib/stripe/params/credit_note_list_params.rb +60 -0
  199. data/lib/stripe/params/credit_note_list_preview_line_items_params.rb +173 -0
  200. data/lib/stripe/params/credit_note_preview_lines_list_params.rb +173 -0
  201. data/lib/stripe/params/credit_note_preview_params.rb +161 -0
  202. data/lib/stripe/params/credit_note_retrieve_params.rb +13 -0
  203. data/lib/stripe/params/credit_note_update_params.rb +19 -0
  204. data/lib/stripe/params/credit_note_void_credit_note_params.rb +13 -0
  205. data/lib/stripe/params/customer_balance_transaction_create_params.rb +25 -0
  206. data/lib/stripe/params/customer_balance_transaction_list_params.rb +52 -0
  207. data/lib/stripe/params/customer_balance_transaction_retrieve_params.rb +13 -0
  208. data/lib/stripe/params/customer_balance_transaction_update_params.rb +19 -0
  209. data/lib/stripe/params/customer_cash_balance_retrieve_params.rb +13 -0
  210. data/lib/stripe/params/customer_cash_balance_transaction_list_params.rb +22 -0
  211. data/lib/stripe/params/customer_cash_balance_transaction_retrieve_params.rb +13 -0
  212. data/lib/stripe/params/customer_cash_balance_update_params.rb +24 -0
  213. data/lib/stripe/params/customer_create_funding_instructions_params.rb +46 -0
  214. data/lib/stripe/params/customer_create_params.rb +259 -0
  215. data/lib/stripe/params/customer_delete_discount_params.rb +6 -0
  216. data/lib/stripe/params/customer_delete_params.rb +6 -0
  217. data/lib/stripe/params/customer_fund_cash_balance_params.rb +22 -0
  218. data/lib/stripe/params/customer_funding_instructions_create_params.rb +46 -0
  219. data/lib/stripe/params/customer_list_params.rb +56 -0
  220. data/lib/stripe/params/customer_list_payment_methods_params.rb +35 -0
  221. data/lib/stripe/params/customer_payment_method_list_params.rb +35 -0
  222. data/lib/stripe/params/customer_payment_method_retrieve_params.rb +13 -0
  223. data/lib/stripe/params/customer_payment_source_create_params.rb +22 -0
  224. data/lib/stripe/params/customer_payment_source_delete_params.rb +13 -0
  225. data/lib/stripe/params/customer_payment_source_list_params.rb +25 -0
  226. data/lib/stripe/params/customer_payment_source_retrieve_params.rb +13 -0
  227. data/lib/stripe/params/customer_payment_source_update_params.rb +114 -0
  228. data/lib/stripe/params/customer_payment_source_verify_params.rb +16 -0
  229. data/lib/stripe/params/customer_retrieve_params.rb +13 -0
  230. data/lib/stripe/params/customer_retrieve_payment_method_params.rb +13 -0
  231. data/lib/stripe/params/customer_search_params.rb +22 -0
  232. data/lib/stripe/params/customer_session_create_params.rb +219 -0
  233. data/lib/stripe/params/customer_tax_id_create_params.rb +19 -0
  234. data/lib/stripe/params/customer_tax_id_delete_params.rb +6 -0
  235. data/lib/stripe/params/customer_tax_id_list_params.rb +22 -0
  236. data/lib/stripe/params/customer_tax_id_retrieve_params.rb +13 -0
  237. data/lib/stripe/params/customer_update_params.rb +243 -0
  238. data/lib/stripe/params/dispute_close_params.rb +13 -0
  239. data/lib/stripe/params/dispute_list_params.rb +56 -0
  240. data/lib/stripe/params/dispute_retrieve_params.rb +13 -0
  241. data/lib/stripe/params/dispute_update_params.rb +317 -0
  242. data/lib/stripe/params/entitlements/active_entitlement_list_params.rb +33 -0
  243. data/lib/stripe/params/entitlements/active_entitlement_retrieve_params.rb +15 -0
  244. data/lib/stripe/params/entitlements/feature_create_params.rb +24 -0
  245. data/lib/stripe/params/entitlements/feature_list_params.rb +37 -0
  246. data/lib/stripe/params/entitlements/feature_retrieve_params.rb +15 -0
  247. data/lib/stripe/params/entitlements/feature_update_params.rb +24 -0
  248. data/lib/stripe/params/ephemeral_key_create_params.rb +31 -0
  249. data/lib/stripe/params/ephemeral_key_delete_params.rb +13 -0
  250. data/lib/stripe/params/event_list_params.rb +60 -0
  251. data/lib/stripe/params/event_retrieve_params.rb +13 -0
  252. data/lib/stripe/params/exchange_rate_list_params.rb +22 -0
  253. data/lib/stripe/params/exchange_rate_retrieve_params.rb +13 -0
  254. data/lib/stripe/params/external_account_create_params.rb +134 -0
  255. data/lib/stripe/params/external_account_delete_params.rb +6 -0
  256. data/lib/stripe/params/external_account_list_params.rb +25 -0
  257. data/lib/stripe/params/external_account_retrieve_params.rb +13 -0
  258. data/lib/stripe/params/external_account_update_params.rb +91 -0
  259. data/lib/stripe/params/file_create_params.rb +36 -0
  260. data/lib/stripe/params/file_link_create_params.rb +22 -0
  261. data/lib/stripe/params/file_link_list_params.rb +56 -0
  262. data/lib/stripe/params/file_link_retrieve_params.rb +13 -0
  263. data/lib/stripe/params/file_link_update_params.rb +19 -0
  264. data/lib/stripe/params/file_list_params.rb +52 -0
  265. data/lib/stripe/params/file_retrieve_params.rb +13 -0
  266. data/lib/stripe/params/financial_connections/account_disconnect_params.rb +15 -0
  267. data/lib/stripe/params/financial_connections/account_inferred_balance_list_params.rb +24 -0
  268. data/lib/stripe/params/financial_connections/account_list_owners_params.rb +33 -0
  269. data/lib/stripe/params/financial_connections/account_list_params.rb +51 -0
  270. data/lib/stripe/params/financial_connections/account_owner_list_params.rb +33 -0
  271. data/lib/stripe/params/financial_connections/account_refresh_account_params.rb +18 -0
  272. data/lib/stripe/params/financial_connections/account_refresh_params.rb +18 -0
  273. data/lib/stripe/params/financial_connections/account_retrieve_params.rb +15 -0
  274. data/lib/stripe/params/financial_connections/account_subscribe_params.rb +18 -0
  275. data/lib/stripe/params/financial_connections/account_unsubscribe_params.rb +18 -0
  276. data/lib/stripe/params/financial_connections/institution_list_params.rb +24 -0
  277. data/lib/stripe/params/financial_connections/institution_retrieve_params.rb +15 -0
  278. data/lib/stripe/params/financial_connections/session_create_params.rb +97 -0
  279. data/lib/stripe/params/financial_connections/session_retrieve_params.rb +15 -0
  280. data/lib/stripe/params/financial_connections/transaction_list_params.rb +67 -0
  281. data/lib/stripe/params/financial_connections/transaction_retrieve_params.rb +15 -0
  282. data/lib/stripe/params/forwarding/request_create_params.rb +59 -0
  283. data/lib/stripe/params/forwarding/request_list_params.rb +44 -0
  284. data/lib/stripe/params/forwarding/request_retrieve_params.rb +15 -0
  285. data/lib/stripe/params/fx_quote_create_params.rb +73 -0
  286. data/lib/stripe/params/fx_quote_list_params.rb +22 -0
  287. data/lib/stripe/params/fx_quote_retrieve_params.rb +13 -0
  288. data/lib/stripe/params/identity/verification_report_list_params.rb +62 -0
  289. data/lib/stripe/params/identity/verification_report_retrieve_params.rb +15 -0
  290. data/lib/stripe/params/identity/verification_session_cancel_params.rb +15 -0
  291. data/lib/stripe/params/identity/verification_session_create_params.rb +111 -0
  292. data/lib/stripe/params/identity/verification_session_list_params.rb +66 -0
  293. data/lib/stripe/params/identity/verification_session_redact_params.rb +15 -0
  294. data/lib/stripe/params/identity/verification_session_retrieve_params.rb +15 -0
  295. data/lib/stripe/params/identity/verification_session_update_params.rb +69 -0
  296. data/lib/stripe/params/invoice_add_lines_params.rb +263 -0
  297. data/lib/stripe/params/invoice_attach_payment_params.rb +61 -0
  298. data/lib/stripe/params/invoice_create_params.rb +723 -0
  299. data/lib/stripe/params/invoice_create_preview_params.rb +1810 -0
  300. data/lib/stripe/params/invoice_delete_params.rb +6 -0
  301. data/lib/stripe/params/invoice_finalize_invoice_params.rb +16 -0
  302. data/lib/stripe/params/invoice_item_create_params.rb +181 -0
  303. data/lib/stripe/params/invoice_item_delete_params.rb +6 -0
  304. data/lib/stripe/params/invoice_item_list_params.rb +64 -0
  305. data/lib/stripe/params/invoice_item_retrieve_params.rb +13 -0
  306. data/lib/stripe/params/invoice_item_update_params.rb +161 -0
  307. data/lib/stripe/params/invoice_line_item_list_params.rb +22 -0
  308. data/lib/stripe/params/invoice_line_item_update_params.rb +249 -0
  309. data/lib/stripe/params/invoice_list_params.rb +90 -0
  310. data/lib/stripe/params/invoice_mark_uncollectible_params.rb +13 -0
  311. data/lib/stripe/params/invoice_pay_params.rb +41 -0
  312. data/lib/stripe/params/invoice_payment_list_params.rb +75 -0
  313. data/lib/stripe/params/invoice_payment_retrieve_params.rb +13 -0
  314. data/lib/stripe/params/invoice_remove_lines_params.rb +30 -0
  315. data/lib/stripe/params/invoice_rendering_template_archive_params.rb +13 -0
  316. data/lib/stripe/params/invoice_rendering_template_list_params.rb +25 -0
  317. data/lib/stripe/params/invoice_rendering_template_retrieve_params.rb +16 -0
  318. data/lib/stripe/params/invoice_rendering_template_unarchive_params.rb +13 -0
  319. data/lib/stripe/params/invoice_retrieve_params.rb +13 -0
  320. data/lib/stripe/params/invoice_search_params.rb +22 -0
  321. data/lib/stripe/params/invoice_send_invoice_params.rb +13 -0
  322. data/lib/stripe/params/invoice_update_lines_params.rb +263 -0
  323. data/lib/stripe/params/invoice_update_params.rb +687 -0
  324. data/lib/stripe/params/invoice_void_invoice_params.rb +13 -0
  325. data/lib/stripe/params/issuing/authorization_approve_params.rb +21 -0
  326. data/lib/stripe/params/issuing/authorization_capture_params.rb +265 -0
  327. data/lib/stripe/params/issuing/authorization_create_params.rb +372 -0
  328. data/lib/stripe/params/issuing/authorization_decline_params.rb +18 -0
  329. data/lib/stripe/params/issuing/authorization_expire_params.rb +15 -0
  330. data/lib/stripe/params/issuing/authorization_finalize_amount_params.rb +143 -0
  331. data/lib/stripe/params/issuing/authorization_increment_params.rb +21 -0
  332. data/lib/stripe/params/issuing/authorization_list_params.rb +62 -0
  333. data/lib/stripe/params/issuing/authorization_respond_params.rb +18 -0
  334. data/lib/stripe/params/issuing/authorization_retrieve_params.rb +15 -0
  335. data/lib/stripe/params/issuing/authorization_reverse_params.rb +18 -0
  336. data/lib/stripe/params/issuing/authorization_update_params.rb +18 -0
  337. data/lib/stripe/params/issuing/card_create_params.rb +213 -0
  338. data/lib/stripe/params/issuing/card_deliver_card_params.rb +15 -0
  339. data/lib/stripe/params/issuing/card_fail_card_params.rb +15 -0
  340. data/lib/stripe/params/issuing/card_list_params.rb +78 -0
  341. data/lib/stripe/params/issuing/card_retrieve_params.rb +15 -0
  342. data/lib/stripe/params/issuing/card_return_card_params.rb +15 -0
  343. data/lib/stripe/params/issuing/card_ship_card_params.rb +15 -0
  344. data/lib/stripe/params/issuing/card_submit_card_params.rb +15 -0
  345. data/lib/stripe/params/issuing/card_update_params.rb +181 -0
  346. data/lib/stripe/params/issuing/cardholder_create_params.rb +239 -0
  347. data/lib/stripe/params/issuing/cardholder_list_params.rb +66 -0
  348. data/lib/stripe/params/issuing/cardholder_retrieve_params.rb +15 -0
  349. data/lib/stripe/params/issuing/cardholder_update_params.rb +230 -0
  350. data/lib/stripe/params/issuing/credit_underwriting_record_correct_params.rb +163 -0
  351. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_application_params.rb +50 -0
  352. data/lib/stripe/params/issuing/credit_underwriting_record_create_from_proactive_review_params.rb +128 -0
  353. data/lib/stripe/params/issuing/credit_underwriting_record_list_params.rb +24 -0
  354. data/lib/stripe/params/issuing/credit_underwriting_record_report_decision_params.rb +86 -0
  355. data/lib/stripe/params/issuing/credit_underwriting_record_retrieve_params.rb +15 -0
  356. data/lib/stripe/params/issuing/dispute_create_params.rb +297 -0
  357. data/lib/stripe/params/issuing/dispute_list_params.rb +58 -0
  358. data/lib/stripe/params/issuing/dispute_retrieve_params.rb +15 -0
  359. data/lib/stripe/params/issuing/dispute_settlement_detail_list_params.rb +33 -0
  360. data/lib/stripe/params/issuing/dispute_settlement_detail_retrieve_params.rb +15 -0
  361. data/lib/stripe/params/issuing/dispute_submit_params.rb +18 -0
  362. data/lib/stripe/params/issuing/dispute_update_params.rb +275 -0
  363. data/lib/stripe/params/issuing/fraud_liability_debit_list_params.rb +44 -0
  364. data/lib/stripe/params/issuing/fraud_liability_debit_retrieve_params.rb +15 -0
  365. data/lib/stripe/params/issuing/personalization_design_activate_params.rb +15 -0
  366. data/lib/stripe/params/issuing/personalization_design_create_params.rb +75 -0
  367. data/lib/stripe/params/issuing/personalization_design_deactivate_params.rb +15 -0
  368. data/lib/stripe/params/issuing/personalization_design_list_params.rb +52 -0
  369. data/lib/stripe/params/issuing/personalization_design_reject_params.rb +29 -0
  370. data/lib/stripe/params/issuing/personalization_design_retrieve_params.rb +15 -0
  371. data/lib/stripe/params/issuing/personalization_design_update_params.rb +75 -0
  372. data/lib/stripe/params/issuing/physical_bundle_list_params.rb +37 -0
  373. data/lib/stripe/params/issuing/physical_bundle_retrieve_params.rb +15 -0
  374. data/lib/stripe/params/issuing/token_list_params.rb +58 -0
  375. data/lib/stripe/params/issuing/token_retrieve_params.rb +15 -0
  376. data/lib/stripe/params/issuing/token_update_params.rb +18 -0
  377. data/lib/stripe/params/issuing/transaction_create_force_capture_params.rb +316 -0
  378. data/lib/stripe/params/issuing/transaction_create_unlinked_refund_params.rb +316 -0
  379. data/lib/stripe/params/issuing/transaction_list_params.rb +66 -0
  380. data/lib/stripe/params/issuing/transaction_refund_params.rb +18 -0
  381. data/lib/stripe/params/issuing/transaction_retrieve_params.rb +15 -0
  382. data/lib/stripe/params/issuing/transaction_update_params.rb +18 -0
  383. data/lib/stripe/params/mandate_list_params.rb +39 -0
  384. data/lib/stripe/params/mandate_retrieve_params.rb +13 -0
  385. data/lib/stripe/params/margin_create_params.rb +25 -0
  386. data/lib/stripe/params/margin_list_params.rb +25 -0
  387. data/lib/stripe/params/margin_retrieve_params.rb +13 -0
  388. data/lib/stripe/params/margin_update_params.rb +22 -0
  389. data/lib/stripe/params/order_cancel_params.rb +13 -0
  390. data/lib/stripe/params/order_create_params.rb +2061 -0
  391. data/lib/stripe/params/order_line_item_list_params.rb +22 -0
  392. data/lib/stripe/params/order_list_line_items_params.rb +22 -0
  393. data/lib/stripe/params/order_list_params.rb +25 -0
  394. data/lib/stripe/params/order_reopen_params.rb +13 -0
  395. data/lib/stripe/params/order_retrieve_params.rb +13 -0
  396. data/lib/stripe/params/order_submit_params.rb +16 -0
  397. data/lib/stripe/params/order_update_params.rb +2065 -0
  398. data/lib/stripe/params/payment_attempt_record_list_params.rb +22 -0
  399. data/lib/stripe/params/payment_attempt_record_retrieve_params.rb +13 -0
  400. data/lib/stripe/params/payment_intent_amount_details_line_item_list_params.rb +22 -0
  401. data/lib/stripe/params/payment_intent_apply_customer_balance_params.rb +23 -0
  402. data/lib/stripe/params/payment_intent_cancel_params.rb +16 -0
  403. data/lib/stripe/params/payment_intent_capture_params.rb +1906 -0
  404. data/lib/stripe/params/payment_intent_confirm_params.rb +5647 -0
  405. data/lib/stripe/params/payment_intent_create_params.rb +5756 -0
  406. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +73 -0
  407. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +295 -0
  408. data/lib/stripe/params/payment_intent_list_params.rb +56 -0
  409. data/lib/stripe/params/payment_intent_retrieve_params.rb +16 -0
  410. data/lib/stripe/params/payment_intent_search_params.rb +22 -0
  411. data/lib/stripe/params/payment_intent_trigger_action_params.rb +27 -0
  412. data/lib/stripe/params/payment_intent_update_params.rb +5660 -0
  413. data/lib/stripe/params/payment_intent_verify_microdeposits_params.rb +19 -0
  414. data/lib/stripe/params/payment_link_create_params.rb +815 -0
  415. data/lib/stripe/params/payment_link_line_item_list_params.rb +22 -0
  416. data/lib/stripe/params/payment_link_list_line_items_params.rb +22 -0
  417. data/lib/stripe/params/payment_link_list_params.rb +25 -0
  418. data/lib/stripe/params/payment_link_retrieve_params.rb +13 -0
  419. data/lib/stripe/params/payment_link_update_params.rb +603 -0
  420. data/lib/stripe/params/payment_method_attach_params.rb +19 -0
  421. data/lib/stripe/params/payment_method_configuration_create_params.rb +1303 -0
  422. data/lib/stripe/params/payment_method_configuration_list_params.rb +31 -0
  423. data/lib/stripe/params/payment_method_configuration_retrieve_params.rb +13 -0
  424. data/lib/stripe/params/payment_method_configuration_update_params.rb +1303 -0
  425. data/lib/stripe/params/payment_method_create_params.rb +694 -0
  426. data/lib/stripe/params/payment_method_detach_params.rb +13 -0
  427. data/lib/stripe/params/payment_method_domain_create_params.rb +19 -0
  428. data/lib/stripe/params/payment_method_domain_list_params.rb +35 -0
  429. data/lib/stripe/params/payment_method_domain_retrieve_params.rb +13 -0
  430. data/lib/stripe/params/payment_method_domain_update_params.rb +16 -0
  431. data/lib/stripe/params/payment_method_domain_validate_params.rb +13 -0
  432. data/lib/stripe/params/payment_method_list_params.rb +43 -0
  433. data/lib/stripe/params/payment_method_retrieve_params.rb +13 -0
  434. data/lib/stripe/params/payment_method_update_params.rb +139 -0
  435. data/lib/stripe/params/payment_record_report_payment_attempt_canceled_params.rb +19 -0
  436. data/lib/stripe/params/payment_record_report_payment_attempt_failed_params.rb +19 -0
  437. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +19 -0
  438. data/lib/stripe/params/payment_record_report_payment_attempt_informational_params.rb +93 -0
  439. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +186 -0
  440. data/lib/stripe/params/payment_record_report_payment_params.rb +252 -0
  441. data/lib/stripe/params/payment_record_report_refund_params.rb +79 -0
  442. data/lib/stripe/params/payment_record_retrieve_params.rb +13 -0
  443. data/lib/stripe/params/payout_cancel_params.rb +13 -0
  444. data/lib/stripe/params/payout_create_params.rb +51 -0
  445. data/lib/stripe/params/payout_list_params.rb +78 -0
  446. data/lib/stripe/params/payout_retrieve_params.rb +13 -0
  447. data/lib/stripe/params/payout_reverse_params.rb +16 -0
  448. data/lib/stripe/params/payout_update_params.rb +16 -0
  449. data/lib/stripe/params/plan_create_params.rb +158 -0
  450. data/lib/stripe/params/plan_delete_params.rb +6 -0
  451. data/lib/stripe/params/plan_list_params.rb +56 -0
  452. data/lib/stripe/params/plan_retrieve_params.rb +13 -0
  453. data/lib/stripe/params/plan_update_params.rb +35 -0
  454. data/lib/stripe/params/price_create_params.rb +278 -0
  455. data/lib/stripe/params/price_list_params.rb +87 -0
  456. data/lib/stripe/params/price_retrieve_params.rb +13 -0
  457. data/lib/stripe/params/price_search_params.rb +22 -0
  458. data/lib/stripe/params/price_update_params.rb +132 -0
  459. data/lib/stripe/params/privacy/redaction_job_cancel_params.rb +15 -0
  460. data/lib/stripe/params/privacy/redaction_job_create_params.rb +67 -0
  461. data/lib/stripe/params/privacy/redaction_job_list_params.rb +27 -0
  462. data/lib/stripe/params/privacy/redaction_job_retrieve_params.rb +15 -0
  463. data/lib/stripe/params/privacy/redaction_job_run_params.rb +15 -0
  464. data/lib/stripe/params/privacy/redaction_job_update_params.rb +18 -0
  465. data/lib/stripe/params/privacy/redaction_job_validate_params.rb +15 -0
  466. data/lib/stripe/params/privacy/redaction_job_validation_error_list_params.rb +24 -0
  467. data/lib/stripe/params/product_create_params.rb +243 -0
  468. data/lib/stripe/params/product_delete_params.rb +6 -0
  469. data/lib/stripe/params/product_feature_create_params.rb +16 -0
  470. data/lib/stripe/params/product_feature_delete_params.rb +6 -0
  471. data/lib/stripe/params/product_feature_list_params.rb +22 -0
  472. data/lib/stripe/params/product_feature_retrieve_params.rb +13 -0
  473. data/lib/stripe/params/product_list_params.rb +68 -0
  474. data/lib/stripe/params/product_retrieve_params.rb +13 -0
  475. data/lib/stripe/params/product_search_params.rb +22 -0
  476. data/lib/stripe/params/product_update_params.rb +96 -0
  477. data/lib/stripe/params/promotion_code_create_params.rb +95 -0
  478. data/lib/stripe/params/promotion_code_list_params.rb +68 -0
  479. data/lib/stripe/params/promotion_code_retrieve_params.rb +13 -0
  480. data/lib/stripe/params/promotion_code_update_params.rb +38 -0
  481. data/lib/stripe/params/quote_accept_params.rb +13 -0
  482. data/lib/stripe/params/quote_cancel_params.rb +13 -0
  483. data/lib/stripe/params/quote_computed_upfront_line_items_list_params.rb +22 -0
  484. data/lib/stripe/params/quote_create_params.rb +1103 -0
  485. data/lib/stripe/params/quote_finalize_quote_params.rb +16 -0
  486. data/lib/stripe/params/quote_line_item_list_params.rb +22 -0
  487. data/lib/stripe/params/quote_line_list_params.rb +22 -0
  488. data/lib/stripe/params/quote_list_computed_upfront_line_items_params.rb +22 -0
  489. data/lib/stripe/params/quote_list_line_items_params.rb +22 -0
  490. data/lib/stripe/params/quote_list_lines_params.rb +22 -0
  491. data/lib/stripe/params/quote_list_params.rb +47 -0
  492. data/lib/stripe/params/quote_list_preview_invoice_lines_params.rb +22 -0
  493. data/lib/stripe/params/quote_mark_draft_params.rb +13 -0
  494. data/lib/stripe/params/quote_mark_stale_params.rb +16 -0
  495. data/lib/stripe/params/quote_pdf_params.rb +13 -0
  496. data/lib/stripe/params/quote_preview_invoice_list_params.rb +22 -0
  497. data/lib/stripe/params/quote_preview_subscription_schedule_list_params.rb +22 -0
  498. data/lib/stripe/params/quote_reestimate_params.rb +13 -0
  499. data/lib/stripe/params/quote_retrieve_params.rb +13 -0
  500. data/lib/stripe/params/quote_update_params.rb +1072 -0
  501. data/lib/stripe/params/radar/early_fraud_warning_list_params.rb +58 -0
  502. data/lib/stripe/params/radar/early_fraud_warning_retrieve_params.rb +15 -0
  503. data/lib/stripe/params/radar/value_list_create_params.rb +27 -0
  504. data/lib/stripe/{resources/usage_record_summary.rb → params/radar/value_list_delete_params.rb} +2 -2
  505. data/lib/stripe/params/radar/value_list_item_create_params.rb +21 -0
  506. data/lib/stripe/params/radar/value_list_item_delete_params.rb +8 -0
  507. data/lib/stripe/params/radar/value_list_item_list_params.rb +58 -0
  508. data/lib/stripe/params/radar/value_list_item_retrieve_params.rb +15 -0
  509. data/lib/stripe/params/radar/value_list_list_params.rb +58 -0
  510. data/lib/stripe/params/radar/value_list_retrieve_params.rb +15 -0
  511. data/lib/stripe/params/radar/value_list_update_params.rb +24 -0
  512. data/lib/stripe/params/refund_cancel_params.rb +13 -0
  513. data/lib/stripe/params/refund_create_params.rb +59 -0
  514. data/lib/stripe/params/refund_expire_params.rb +13 -0
  515. data/lib/stripe/params/refund_list_params.rb +56 -0
  516. data/lib/stripe/params/refund_retrieve_params.rb +13 -0
  517. data/lib/stripe/params/refund_update_params.rb +16 -0
  518. data/lib/stripe/params/reporting/report_run_create_params.rb +59 -0
  519. data/lib/stripe/params/reporting/report_run_list_params.rb +44 -0
  520. data/lib/stripe/params/reporting/report_run_retrieve_params.rb +15 -0
  521. data/lib/stripe/params/reporting/report_type_list_params.rb +15 -0
  522. data/lib/stripe/params/reporting/report_type_retrieve_params.rb +15 -0
  523. data/lib/stripe/params/reserve/hold_list_params.rb +53 -0
  524. data/lib/stripe/params/reserve/hold_retrieve_params.rb +15 -0
  525. data/lib/stripe/params/reserve/plan_retrieve_params.rb +15 -0
  526. data/lib/stripe/params/reserve/release_list_params.rb +41 -0
  527. data/lib/stripe/params/reserve/release_retrieve_params.rb +15 -0
  528. data/lib/stripe/params/review_approve_params.rb +13 -0
  529. data/lib/stripe/params/review_list_params.rb +42 -0
  530. data/lib/stripe/params/review_retrieve_params.rb +13 -0
  531. data/lib/stripe/params/setup_attempt_list_params.rb +55 -0
  532. data/lib/stripe/params/setup_intent_cancel_params.rb +16 -0
  533. data/lib/stripe/params/setup_intent_confirm_params.rb +1272 -0
  534. data/lib/stripe/params/setup_intent_create_params.rb +1362 -0
  535. data/lib/stripe/params/setup_intent_list_params.rb +66 -0
  536. data/lib/stripe/params/setup_intent_retrieve_params.rb +16 -0
  537. data/lib/stripe/params/setup_intent_update_params.rb +1257 -0
  538. data/lib/stripe/params/setup_intent_verify_microdeposits_params.rb +19 -0
  539. data/lib/stripe/params/shipping_rate_create_params.rb +103 -0
  540. data/lib/stripe/params/shipping_rate_list_params.rb +56 -0
  541. data/lib/stripe/params/shipping_rate_retrieve_params.rb +13 -0
  542. data/lib/stripe/params/shipping_rate_update_params.rb +44 -0
  543. data/lib/stripe/params/sigma/scheduled_query_run_list_params.rb +24 -0
  544. data/lib/stripe/params/sigma/scheduled_query_run_retrieve_params.rb +15 -0
  545. data/lib/stripe/params/source_create_params.rb +317 -0
  546. data/lib/stripe/params/source_detach_params.rb +13 -0
  547. data/lib/stripe/params/source_retrieve_params.rb +16 -0
  548. data/lib/stripe/params/source_transaction_list_params.rb +22 -0
  549. data/lib/stripe/params/source_update_params.rb +259 -0
  550. data/lib/stripe/params/source_verify_params.rb +16 -0
  551. data/lib/stripe/params/subscription_attach_cadence_params.rb +16 -0
  552. data/lib/stripe/params/subscription_cancel_params.rb +33 -0
  553. data/lib/stripe/params/subscription_create_params.rb +982 -0
  554. data/lib/stripe/params/subscription_delete_discount_params.rb +6 -0
  555. data/lib/stripe/params/subscription_item_create_params.rb +178 -0
  556. data/lib/stripe/params/subscription_item_delete_params.rb +19 -0
  557. data/lib/stripe/params/subscription_item_list_params.rb +31 -0
  558. data/lib/stripe/params/subscription_item_retrieve_params.rb +13 -0
  559. data/lib/stripe/params/subscription_item_update_params.rb +162 -0
  560. data/lib/stripe/params/subscription_list_params.rb +133 -0
  561. data/lib/stripe/params/subscription_migrate_params.rb +35 -0
  562. data/lib/stripe/params/subscription_resume_params.rb +27 -0
  563. data/lib/stripe/params/subscription_retrieve_params.rb +13 -0
  564. data/lib/stripe/params/subscription_schedule_amend_params.rb +570 -0
  565. data/lib/stripe/params/subscription_schedule_cancel_params.rb +19 -0
  566. data/lib/stripe/params/subscription_schedule_create_params.rb +752 -0
  567. data/lib/stripe/params/subscription_schedule_list_params.rb +126 -0
  568. data/lib/stripe/params/subscription_schedule_release_params.rb +16 -0
  569. data/lib/stripe/params/subscription_schedule_retrieve_params.rb +13 -0
  570. data/lib/stripe/params/subscription_schedule_update_params.rb +720 -0
  571. data/lib/stripe/params/subscription_search_params.rb +22 -0
  572. data/lib/stripe/params/subscription_update_params.rb +941 -0
  573. data/lib/stripe/params/tax/association_find_params.rb +18 -0
  574. data/lib/stripe/params/tax/calculation_create_params.rb +206 -0
  575. data/lib/stripe/params/tax/calculation_line_item_list_params.rb +24 -0
  576. data/lib/stripe/params/tax/calculation_list_line_items_params.rb +24 -0
  577. data/lib/stripe/params/tax/calculation_retrieve_params.rb +15 -0
  578. data/lib/stripe/params/tax/form_list_params.rb +51 -0
  579. data/lib/stripe/params/tax/form_pdf_params.rb +15 -0
  580. data/lib/stripe/params/tax/form_retrieve_params.rb +15 -0
  581. data/lib/stripe/params/tax/registration_create_params.rb +2031 -0
  582. data/lib/stripe/params/tax/registration_list_params.rb +27 -0
  583. data/lib/stripe/params/tax/registration_retrieve_params.rb +15 -0
  584. data/lib/stripe/params/tax/registration_update_params.rb +21 -0
  585. data/lib/stripe/params/tax/settings_retrieve_params.rb +15 -0
  586. data/lib/stripe/params/tax/settings_update_params.rb +71 -0
  587. data/lib/stripe/params/tax/transaction_create_from_calculation_params.rb +27 -0
  588. data/lib/stripe/params/tax/transaction_create_reversal_params.rb +87 -0
  589. data/lib/stripe/params/tax/transaction_line_item_list_params.rb +24 -0
  590. data/lib/stripe/params/tax/transaction_list_line_items_params.rb +24 -0
  591. data/lib/stripe/params/tax/transaction_retrieve_params.rb +15 -0
  592. data/lib/stripe/params/tax_code_list_params.rb +22 -0
  593. data/lib/stripe/params/tax_code_retrieve_params.rb +13 -0
  594. data/lib/stripe/params/tax_id_create_params.rb +39 -0
  595. data/lib/stripe/params/tax_id_delete_params.rb +6 -0
  596. data/lib/stripe/params/tax_id_list_params.rb +42 -0
  597. data/lib/stripe/params/tax_id_retrieve_params.rb +13 -0
  598. data/lib/stripe/params/tax_rate_create_params.rb +55 -0
  599. data/lib/stripe/params/tax_rate_list_params.rb +56 -0
  600. data/lib/stripe/params/tax_rate_retrieve_params.rb +13 -0
  601. data/lib/stripe/params/tax_rate_update_params.rb +47 -0
  602. data/lib/stripe/params/terminal/configuration_create_params.rb +625 -0
  603. data/lib/stripe/params/terminal/configuration_delete_params.rb +8 -0
  604. data/lib/stripe/params/terminal/configuration_list_params.rb +33 -0
  605. data/lib/stripe/params/terminal/configuration_retrieve_params.rb +15 -0
  606. data/lib/stripe/params/terminal/configuration_update_params.rb +625 -0
  607. data/lib/stripe/params/terminal/connection_token_create_params.rb +18 -0
  608. data/lib/stripe/params/terminal/location_create_params.rb +153 -0
  609. data/lib/stripe/params/terminal/location_delete_params.rb +8 -0
  610. data/lib/stripe/params/terminal/location_list_params.rb +24 -0
  611. data/lib/stripe/params/terminal/location_retrieve_params.rb +15 -0
  612. data/lib/stripe/params/terminal/location_update_params.rb +153 -0
  613. data/lib/stripe/params/terminal/onboarding_link_create_params.rb +43 -0
  614. data/lib/stripe/params/terminal/reader_cancel_action_params.rb +15 -0
  615. data/lib/stripe/params/terminal/reader_collect_inputs_params.rb +96 -0
  616. data/lib/stripe/params/terminal/reader_collect_payment_method_params.rb +51 -0
  617. data/lib/stripe/params/terminal/reader_collected_data_retrieve_params.rb +15 -0
  618. data/lib/stripe/params/terminal/reader_confirm_payment_intent_params.rb +29 -0
  619. data/lib/stripe/params/terminal/reader_create_params.rb +27 -0
  620. data/lib/stripe/params/terminal/reader_delete_params.rb +8 -0
  621. data/lib/stripe/params/terminal/reader_list_params.rb +45 -0
  622. data/lib/stripe/params/terminal/reader_present_payment_method_params.rb +72 -0
  623. data/lib/stripe/params/terminal/reader_process_payment_intent_params.rb +55 -0
  624. data/lib/stripe/params/terminal/reader_process_setup_intent_params.rb +32 -0
  625. data/lib/stripe/params/terminal/reader_refund_payment_params.rb +53 -0
  626. data/lib/stripe/params/terminal/reader_retrieve_params.rb +15 -0
  627. data/lib/stripe/params/terminal/reader_set_reader_display_params.rb +52 -0
  628. data/lib/stripe/params/terminal/reader_succeed_input_collection_params.rb +18 -0
  629. data/lib/stripe/params/terminal/reader_timeout_input_collection_params.rb +15 -0
  630. data/lib/stripe/params/terminal/reader_update_params.rb +21 -0
  631. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +749 -0
  632. data/lib/stripe/params/test_helpers/customer_fund_cash_balance_params.rb +24 -0
  633. data/lib/stripe/params/test_helpers/issuing/authorization_capture_params.rb +267 -0
  634. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +374 -0
  635. data/lib/stripe/params/test_helpers/issuing/authorization_expire_params.rb +17 -0
  636. data/lib/stripe/params/test_helpers/issuing/authorization_finalize_amount_params.rb +145 -0
  637. data/lib/stripe/params/test_helpers/issuing/authorization_increment_params.rb +23 -0
  638. data/lib/stripe/params/test_helpers/issuing/authorization_respond_params.rb +20 -0
  639. data/lib/stripe/params/test_helpers/issuing/authorization_reverse_params.rb +20 -0
  640. data/lib/stripe/params/test_helpers/issuing/card_deliver_card_params.rb +17 -0
  641. data/lib/stripe/params/test_helpers/issuing/card_fail_card_params.rb +17 -0
  642. data/lib/stripe/params/test_helpers/issuing/card_return_card_params.rb +17 -0
  643. data/lib/stripe/params/test_helpers/issuing/card_ship_card_params.rb +17 -0
  644. data/lib/stripe/params/test_helpers/issuing/card_submit_card_params.rb +17 -0
  645. data/lib/stripe/params/test_helpers/issuing/personalization_design_activate_params.rb +17 -0
  646. data/lib/stripe/params/test_helpers/issuing/personalization_design_deactivate_params.rb +17 -0
  647. data/lib/stripe/params/test_helpers/issuing/personalization_design_reject_params.rb +31 -0
  648. data/lib/stripe/params/test_helpers/issuing/transaction_create_force_capture_params.rb +318 -0
  649. data/lib/stripe/params/test_helpers/issuing/transaction_create_unlinked_refund_params.rb +318 -0
  650. data/lib/stripe/params/test_helpers/issuing/transaction_refund_params.rb +20 -0
  651. data/lib/stripe/params/test_helpers/refund_expire_params.rb +15 -0
  652. data/lib/stripe/params/test_helpers/terminal/reader_present_payment_method_params.rb +74 -0
  653. data/lib/stripe/params/test_helpers/terminal/reader_succeed_input_collection_params.rb +20 -0
  654. data/lib/stripe/params/test_helpers/terminal/reader_timeout_input_collection_params.rb +17 -0
  655. data/lib/stripe/params/test_helpers/test_clock_advance_params.rb +18 -0
  656. data/lib/stripe/params/test_helpers/test_clock_create_params.rb +21 -0
  657. data/lib/stripe/params/test_helpers/test_clock_delete_params.rb +8 -0
  658. data/lib/stripe/params/test_helpers/test_clock_list_params.rb +24 -0
  659. data/lib/stripe/params/test_helpers/test_clock_retrieve_params.rb +15 -0
  660. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +28 -0
  661. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +17 -0
  662. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_succeed_params.rb +17 -0
  663. data/lib/stripe/params/test_helpers/treasury/outbound_payment_fail_params.rb +17 -0
  664. data/lib/stripe/params/test_helpers/treasury/outbound_payment_post_params.rb +17 -0
  665. data/lib/stripe/params/test_helpers/treasury/outbound_payment_return_outbound_payment_params.rb +28 -0
  666. data/lib/stripe/params/test_helpers/treasury/outbound_payment_update_params.rb +57 -0
  667. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_fail_params.rb +17 -0
  668. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_post_params.rb +17 -0
  669. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_return_outbound_transfer_params.rb +28 -0
  670. data/lib/stripe/params/test_helpers/treasury/outbound_transfer_update_params.rb +57 -0
  671. data/lib/stripe/params/test_helpers/treasury/received_credit_create_params.rb +92 -0
  672. data/lib/stripe/params/test_helpers/treasury/received_debit_create_params.rb +92 -0
  673. data/lib/stripe/params/token_create_params.rb +1210 -0
  674. data/lib/stripe/params/token_retrieve_params.rb +13 -0
  675. data/lib/stripe/params/topup_cancel_params.rb +13 -0
  676. data/lib/stripe/params/topup_create_params.rb +43 -0
  677. data/lib/stripe/params/topup_list_params.rb +74 -0
  678. data/lib/stripe/params/topup_retrieve_params.rb +13 -0
  679. data/lib/stripe/params/topup_update_params.rb +19 -0
  680. data/lib/stripe/params/transfer_create_params.rb +51 -0
  681. data/lib/stripe/params/transfer_list_params.rb +56 -0
  682. data/lib/stripe/params/transfer_retrieve_params.rb +13 -0
  683. data/lib/stripe/params/transfer_reversal_create_params.rb +31 -0
  684. data/lib/stripe/params/transfer_reversal_list_params.rb +22 -0
  685. data/lib/stripe/params/transfer_reversal_retrieve_params.rb +13 -0
  686. data/lib/stripe/params/transfer_reversal_update_params.rb +16 -0
  687. data/lib/stripe/params/transfer_update_params.rb +19 -0
  688. data/lib/stripe/params/treasury/credit_reversal_create_params.rb +21 -0
  689. data/lib/stripe/params/treasury/credit_reversal_list_params.rb +41 -0
  690. data/lib/stripe/params/treasury/credit_reversal_retrieve_params.rb +15 -0
  691. data/lib/stripe/params/treasury/debit_reversal_create_params.rb +21 -0
  692. data/lib/stripe/params/treasury/debit_reversal_list_params.rb +45 -0
  693. data/lib/stripe/params/treasury/debit_reversal_retrieve_params.rb +15 -0
  694. data/lib/stripe/params/treasury/financial_account_close_params.rb +32 -0
  695. data/lib/stripe/params/treasury/financial_account_create_params.rb +208 -0
  696. data/lib/stripe/params/treasury/financial_account_features_retrieve_params.rb +15 -0
  697. data/lib/stripe/params/treasury/financial_account_features_update_params.rb +166 -0
  698. data/lib/stripe/params/treasury/financial_account_list_params.rb +54 -0
  699. data/lib/stripe/params/treasury/financial_account_retrieve_features_params.rb +15 -0
  700. data/lib/stripe/params/treasury/financial_account_retrieve_params.rb +15 -0
  701. data/lib/stripe/params/treasury/financial_account_update_features_params.rb +166 -0
  702. data/lib/stripe/params/treasury/financial_account_update_params.rb +223 -0
  703. data/lib/stripe/params/treasury/inbound_transfer_cancel_params.rb +15 -0
  704. data/lib/stripe/params/treasury/inbound_transfer_create_params.rb +45 -0
  705. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +26 -0
  706. data/lib/stripe/params/treasury/inbound_transfer_list_params.rb +37 -0
  707. data/lib/stripe/params/treasury/inbound_transfer_retrieve_params.rb +15 -0
  708. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +15 -0
  709. data/lib/stripe/params/treasury/inbound_transfer_succeed_params.rb +15 -0
  710. data/lib/stripe/params/treasury/outbound_payment_cancel_params.rb +15 -0
  711. data/lib/stripe/params/treasury/outbound_payment_create_params.rb +190 -0
  712. data/lib/stripe/params/treasury/outbound_payment_fail_params.rb +15 -0
  713. data/lib/stripe/params/treasury/outbound_payment_list_params.rb +62 -0
  714. data/lib/stripe/params/treasury/outbound_payment_post_params.rb +15 -0
  715. data/lib/stripe/params/treasury/outbound_payment_retrieve_params.rb +15 -0
  716. data/lib/stripe/params/treasury/outbound_payment_return_outbound_payment_params.rb +26 -0
  717. data/lib/stripe/params/treasury/outbound_payment_update_params.rb +55 -0
  718. data/lib/stripe/params/treasury/outbound_transfer_cancel_params.rb +15 -0
  719. data/lib/stripe/params/treasury/outbound_transfer_create_params.rb +105 -0
  720. data/lib/stripe/params/treasury/outbound_transfer_fail_params.rb +15 -0
  721. data/lib/stripe/params/treasury/outbound_transfer_list_params.rb +37 -0
  722. data/lib/stripe/params/treasury/outbound_transfer_post_params.rb +15 -0
  723. data/lib/stripe/params/treasury/outbound_transfer_retrieve_params.rb +15 -0
  724. data/lib/stripe/params/treasury/outbound_transfer_return_outbound_transfer_params.rb +26 -0
  725. data/lib/stripe/params/treasury/outbound_transfer_update_params.rb +55 -0
  726. data/lib/stripe/params/treasury/received_credit_create_params.rb +90 -0
  727. data/lib/stripe/params/treasury/received_credit_list_params.rb +49 -0
  728. data/lib/stripe/params/treasury/received_credit_retrieve_params.rb +15 -0
  729. data/lib/stripe/params/treasury/received_debit_create_params.rb +90 -0
  730. data/lib/stripe/params/treasury/received_debit_list_params.rb +37 -0
  731. data/lib/stripe/params/treasury/received_debit_retrieve_params.rb +15 -0
  732. data/lib/stripe/params/treasury/transaction_entry_list_params.rb +84 -0
  733. data/lib/stripe/params/treasury/transaction_entry_retrieve_params.rb +15 -0
  734. data/lib/stripe/params/treasury/transaction_list_params.rb +92 -0
  735. data/lib/stripe/params/treasury/transaction_retrieve_params.rb +15 -0
  736. data/lib/stripe/params/v2/billing/bill_setting_create_params.rb +74 -0
  737. data/lib/stripe/params/v2/billing/bill_setting_list_params.rb +21 -0
  738. data/lib/stripe/params/v2/billing/bill_setting_retrieve_params.rb +10 -0
  739. data/lib/stripe/params/v2/billing/bill_setting_update_params.rb +80 -0
  740. data/lib/stripe/params/v2/billing/bill_settings/version_list_params.rb +19 -0
  741. data/lib/stripe/params/v2/billing/bill_settings/version_retrieve_params.rb +12 -0
  742. data/lib/stripe/{resources/issuing/card_details.rb → params/v2/billing/cadence_cancel_params.rb} +3 -3
  743. data/lib/stripe/params/v2/billing/cadence_create_params.rb +253 -0
  744. data/lib/stripe/params/v2/billing/cadence_list_params.rb +43 -0
  745. data/lib/stripe/params/v2/billing/cadence_retrieve_params.rb +17 -0
  746. data/lib/stripe/params/v2/billing/cadence_update_params.rb +75 -0
  747. data/lib/stripe/params/v2/billing/collection_setting_create_params.rb +223 -0
  748. data/lib/stripe/params/v2/billing/collection_setting_list_params.rb +21 -0
  749. data/lib/stripe/params/v2/billing/collection_setting_retrieve_params.rb +10 -0
  750. data/lib/stripe/params/v2/billing/collection_setting_update_params.rb +229 -0
  751. data/lib/stripe/params/v2/billing/collection_settings/version_list_params.rb +19 -0
  752. data/lib/stripe/params/v2/billing/collection_settings/version_retrieve_params.rb +12 -0
  753. data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +31 -0
  754. data/lib/stripe/params/v2/billing/meter_event_create_params.rb +33 -0
  755. data/lib/stripe/params/v2/billing/meter_event_session_create_params.rb +10 -0
  756. data/lib/stripe/params/v2/billing/meter_event_stream_create_params.rb +41 -0
  757. data/lib/stripe/params/v2/billing/profile_create_params.rb +37 -0
  758. data/lib/stripe/params/v2/billing/profile_list_params.rb +40 -0
  759. data/lib/stripe/params/v2/billing/profile_retrieve_params.rb +10 -0
  760. data/lib/stripe/params/v2/billing/profile_update_params.rb +35 -0
  761. data/lib/stripe/params/v2/core/account_close_params.rb +17 -0
  762. data/lib/stripe/params/v2/core/account_create_params.rb +2363 -0
  763. data/lib/stripe/params/v2/core/account_link_create_params.rb +101 -0
  764. data/lib/stripe/params/v2/core/account_list_params.rb +23 -0
  765. data/lib/stripe/params/v2/core/account_retrieve_params.rb +17 -0
  766. data/lib/stripe/params/v2/core/account_token_create_params.rb +1023 -0
  767. data/lib/stripe/params/v2/core/account_token_retrieve_params.rb +10 -0
  768. data/lib/stripe/params/v2/core/account_update_params.rb +2409 -0
  769. data/lib/stripe/params/v2/core/accounts/person_create_params.rb +497 -0
  770. data/lib/stripe/params/v2/core/accounts/person_delete_params.rb +12 -0
  771. data/lib/stripe/params/v2/core/accounts/person_list_params.rb +19 -0
  772. data/lib/stripe/params/v2/core/accounts/person_retrieve_params.rb +12 -0
  773. data/lib/stripe/params/v2/core/accounts/person_token_create_params.rb +487 -0
  774. data/lib/stripe/params/v2/core/accounts/person_token_retrieve_params.rb +12 -0
  775. data/lib/stripe/params/v2/core/accounts/person_update_params.rb +497 -0
  776. data/lib/stripe/params/v2/core/event_destination_create_params.rb +79 -0
  777. data/lib/stripe/params/v2/core/event_destination_delete_params.rb +10 -0
  778. data/lib/stripe/params/v2/core/event_destination_disable_params.rb +10 -0
  779. data/lib/stripe/params/v2/core/event_destination_enable_params.rb +10 -0
  780. data/lib/stripe/params/v2/core/event_destination_list_params.rb +20 -0
  781. data/lib/stripe/params/v2/core/event_destination_ping_params.rb +10 -0
  782. data/lib/stripe/params/v2/core/event_destination_retrieve_params.rb +17 -0
  783. data/lib/stripe/params/v2/core/event_destination_update_params.rb +47 -0
  784. data/lib/stripe/params/v2/core/event_list_params.rb +45 -0
  785. data/lib/stripe/params/v2/core/event_retrieve_params.rb +10 -0
  786. data/lib/stripe/params/v2/core/vault/gb_bank_account_acknowledge_confirmation_of_payee_params.rb +12 -0
  787. data/lib/stripe/params/v2/core/vault/gb_bank_account_archive_params.rb +12 -0
  788. data/lib/stripe/params/v2/core/vault/gb_bank_account_create_params.rb +50 -0
  789. data/lib/stripe/params/v2/core/vault/gb_bank_account_initiate_confirmation_of_payee_params.rb +22 -0
  790. data/lib/stripe/params/v2/core/vault/gb_bank_account_list_params.rb +19 -0
  791. data/lib/stripe/params/v2/core/vault/gb_bank_account_retrieve_params.rb +12 -0
  792. data/lib/stripe/params/v2/core/vault/us_bank_account_archive_params.rb +12 -0
  793. data/lib/stripe/params/v2/core/vault/us_bank_account_confirm_microdeposits_params.rb +22 -0
  794. data/lib/stripe/params/v2/core/vault/us_bank_account_create_params.rb +33 -0
  795. data/lib/stripe/params/v2/core/vault/us_bank_account_list_params.rb +22 -0
  796. data/lib/stripe/params/v2/core/vault/us_bank_account_retrieve_params.rb +12 -0
  797. data/lib/stripe/params/v2/core/vault/us_bank_account_send_microdeposits_params.rb +12 -0
  798. data/lib/stripe/params/v2/core/vault/us_bank_account_update_params.rb +22 -0
  799. data/lib/stripe/params/v2/money_management/adjustment_list_params.rb +48 -0
  800. data/lib/stripe/params/v2/money_management/adjustment_retrieve_params.rb +10 -0
  801. data/lib/stripe/params/v2/money_management/financial_account_close_params.rb +28 -0
  802. data/lib/stripe/params/v2/money_management/financial_account_create_params.rb +34 -0
  803. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +20 -0
  804. data/lib/stripe/params/v2/money_management/financial_account_retrieve_params.rb +10 -0
  805. data/lib/stripe/params/v2/money_management/financial_account_update_params.rb +20 -0
  806. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +20 -0
  807. data/lib/stripe/params/v2/money_management/financial_address_list_params.rb +23 -0
  808. data/lib/stripe/params/v2/money_management/financial_address_retrieve_params.rb +17 -0
  809. data/lib/stripe/params/v2/money_management/inbound_transfer_create_params.rb +62 -0
  810. data/lib/stripe/params/v2/money_management/inbound_transfer_list_params.rb +44 -0
  811. data/lib/stripe/params/v2/money_management/inbound_transfer_retrieve_params.rb +10 -0
  812. data/lib/stripe/params/v2/money_management/outbound_payment_cancel_params.rb +10 -0
  813. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +110 -0
  814. data/lib/stripe/params/v2/money_management/outbound_payment_list_params.rb +52 -0
  815. data/lib/stripe/params/v2/money_management/outbound_payment_quote_create_params.rb +79 -0
  816. data/lib/stripe/params/v2/money_management/outbound_payment_quote_retrieve_params.rb +10 -0
  817. data/lib/stripe/params/v2/money_management/outbound_payment_retrieve_params.rb +10 -0
  818. data/lib/stripe/params/v2/money_management/outbound_setup_intent_cancel_params.rb +10 -0
  819. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +85 -0
  820. data/lib/stripe/params/v2/money_management/outbound_setup_intent_list_params.rb +17 -0
  821. data/lib/stripe/params/v2/money_management/outbound_setup_intent_retrieve_params.rb +10 -0
  822. data/lib/stripe/params/v2/money_management/outbound_setup_intent_update_params.rb +80 -0
  823. data/lib/stripe/params/v2/money_management/outbound_transfer_cancel_params.rb +10 -0
  824. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +89 -0
  825. data/lib/stripe/params/v2/money_management/outbound_transfer_list_params.rb +48 -0
  826. data/lib/stripe/params/v2/money_management/outbound_transfer_retrieve_params.rb +10 -0
  827. data/lib/stripe/params/v2/money_management/payout_method_archive_params.rb +10 -0
  828. data/lib/stripe/params/v2/money_management/payout_method_list_params.rb +31 -0
  829. data/lib/stripe/params/v2/money_management/payout_method_retrieve_params.rb +10 -0
  830. data/lib/stripe/params/v2/money_management/payout_method_unarchive_params.rb +10 -0
  831. data/lib/stripe/params/v2/money_management/payout_methods_bank_account_spec_retrieve_params.rb +17 -0
  832. data/lib/stripe/params/v2/money_management/received_credit_list_params.rb +44 -0
  833. data/lib/stripe/params/v2/money_management/received_credit_retrieve_params.rb +10 -0
  834. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +17 -0
  835. data/lib/stripe/params/v2/money_management/received_debit_retrieve_params.rb +10 -0
  836. data/lib/stripe/params/v2/money_management/transaction_entry_list_params.rb +43 -0
  837. data/lib/stripe/params/v2/money_management/transaction_entry_retrieve_params.rb +10 -0
  838. data/lib/stripe/params/v2/money_management/transaction_list_params.rb +47 -0
  839. data/lib/stripe/params/v2/money_management/transaction_retrieve_params.rb +10 -0
  840. data/lib/stripe/params/v2/test_helpers/financial_address_credit_params.rb +34 -0
  841. data/lib/stripe/params/v2/test_helpers/financial_address_generate_microdeposits_params.rb +10 -0
  842. data/lib/stripe/params/webhook_endpoint_create_params.rb +39 -0
  843. data/lib/stripe/params/webhook_endpoint_delete_params.rb +6 -0
  844. data/lib/stripe/params/webhook_endpoint_list_params.rb +22 -0
  845. data/lib/stripe/params/webhook_endpoint_retrieve_params.rb +13 -0
  846. data/lib/stripe/params/webhook_endpoint_update_params.rb +35 -0
  847. data/lib/stripe/params.rb +767 -0
  848. data/lib/stripe/request_options.rb +138 -0
  849. data/lib/stripe/request_params.rb +24 -0
  850. data/lib/stripe/resources/account.rb +1320 -26
  851. data/lib/stripe/resources/account_link.rb +29 -0
  852. data/lib/stripe/resources/account_notice.rb +94 -0
  853. data/lib/stripe/resources/account_session.rb +764 -0
  854. data/lib/stripe/resources/alipay_account.rb +1 -1
  855. data/lib/stripe/resources/apple_pay_domain.rb +59 -0
  856. data/lib/stripe/resources/application.rb +28 -0
  857. data/lib/stripe/resources/application_fee.rb +64 -2
  858. data/lib/stripe/resources/application_fee_refund.rb +34 -2
  859. data/lib/stripe/resources/apps/secret.rb +96 -0
  860. data/lib/stripe/resources/balance.rb +332 -0
  861. data/lib/stripe/resources/balance_settings.rb +92 -0
  862. data/lib/stripe/resources/balance_transaction.rb +80 -0
  863. data/lib/stripe/resources/bank_account.rb +177 -6
  864. data/lib/stripe/resources/billing/alert.rb +142 -0
  865. data/lib/stripe/resources/billing/alert_triggered.rb +34 -0
  866. data/lib/stripe/resources/billing/analytics/meter_usage.rb +33 -0
  867. data/lib/stripe/resources/billing/analytics/meter_usage_row.rb +38 -0
  868. data/lib/stripe/resources/billing/credit_balance_summary.rb +104 -0
  869. data/lib/stripe/resources/billing/credit_balance_transaction.rb +177 -0
  870. data/lib/stripe/resources/billing/credit_grant.rb +200 -0
  871. data/lib/stripe/resources/billing/meter.rb +178 -0
  872. data/lib/stripe/resources/billing/meter_event.rb +49 -0
  873. data/lib/stripe/resources/billing/meter_event_adjustment.rb +59 -0
  874. data/lib/stripe/resources/billing/meter_event_summary.rb +40 -0
  875. data/lib/stripe/resources/billing_portal/configuration.rb +292 -0
  876. data/lib/stripe/resources/billing_portal/session.rb +228 -0
  877. data/lib/stripe/resources/capability.rb +147 -2
  878. data/lib/stripe/resources/capital/financing_offer.rb +142 -0
  879. data/lib/stripe/resources/capital/financing_summary.rb +82 -0
  880. data/lib/stripe/resources/capital/financing_transaction.rb +99 -0
  881. data/lib/stripe/resources/card.rb +129 -3
  882. data/lib/stripe/resources/cash_balance.rb +39 -0
  883. data/lib/stripe/resources/charge.rb +2516 -3
  884. data/lib/stripe/resources/checkout/session.rb +2454 -4
  885. data/lib/stripe/resources/climate/order.rb +173 -0
  886. data/lib/stripe/resources/climate/product.rb +72 -0
  887. data/lib/stripe/resources/climate/supplier.rb +69 -0
  888. data/lib/stripe/resources/confirmation_token.rb +1873 -0
  889. data/lib/stripe/resources/connect_collection_transfer.rb +32 -0
  890. data/lib/stripe/resources/country_spec.rb +82 -0
  891. data/lib/stripe/resources/coupon.rb +143 -0
  892. data/lib/stripe/resources/credit_note.rb +290 -8
  893. data/lib/stripe/resources/credit_note_line_item.rb +133 -0
  894. data/lib/stripe/resources/customer.rb +403 -27
  895. data/lib/stripe/resources/customer_balance_transaction.rb +48 -1
  896. data/lib/stripe/resources/customer_cash_balance_transaction.rb +234 -0
  897. data/lib/stripe/resources/customer_session.rb +264 -0
  898. data/lib/stripe/resources/discount.rb +58 -0
  899. data/lib/stripe/resources/dispute.rb +466 -2
  900. data/lib/stripe/resources/entitlements/active_entitlement.rb +45 -0
  901. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +31 -0
  902. data/lib/stripe/resources/entitlements/feature.rb +72 -0
  903. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  904. data/lib/stripe/resources/event.rb +149 -0
  905. data/lib/stripe/resources/exchange_rate.rb +59 -0
  906. data/lib/stripe/resources/file.rb +65 -12
  907. data/lib/stripe/resources/file_link.rb +53 -0
  908. data/lib/stripe/resources/financial_connections/account.rb +342 -5
  909. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +35 -0
  910. data/lib/stripe/resources/financial_connections/account_owner.rb +29 -0
  911. data/lib/stripe/resources/financial_connections/account_ownership.rb +21 -0
  912. data/lib/stripe/resources/financial_connections/institution.rb +127 -0
  913. data/lib/stripe/resources/financial_connections/session.rb +140 -0
  914. data/lib/stripe/resources/financial_connections/transaction.rb +73 -0
  915. data/lib/stripe/resources/forwarding/request.rb +163 -0
  916. data/lib/stripe/resources/funding_instructions.rb +510 -1
  917. data/lib/stripe/resources/fx_quote.rb +147 -0
  918. data/lib/stripe/resources/identity/verification_report.rb +396 -0
  919. data/lib/stripe/resources/identity/verification_session.rb +397 -4
  920. data/lib/stripe/resources/invoice.rb +1393 -20
  921. data/lib/stripe/resources/invoice_item.rb +214 -0
  922. data/lib/stripe/resources/invoice_line_item.rb +341 -1
  923. data/lib/stripe/resources/invoice_payment.rb +92 -0
  924. data/lib/stripe/resources/invoice_rendering_template.rb +90 -0
  925. data/lib/stripe/resources/issuing/authorization.rb +650 -4
  926. data/lib/stripe/resources/issuing/card.rb +410 -4
  927. data/lib/stripe/resources/issuing/cardholder.rb +278 -0
  928. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +263 -0
  929. data/lib/stripe/resources/issuing/dispute.rb +301 -2
  930. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +71 -0
  931. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +51 -0
  932. data/lib/stripe/resources/issuing/personalization_design.rb +206 -0
  933. data/lib/stripe/resources/issuing/physical_bundle.rb +65 -0
  934. data/lib/stripe/resources/issuing/settlement.rb +61 -0
  935. data/lib/stripe/resources/issuing/token.rb +195 -0
  936. data/lib/stripe/resources/issuing/transaction.rb +444 -0
  937. data/lib/stripe/resources/line_item.rb +142 -0
  938. data/lib/stripe/resources/login_link.rb +20 -0
  939. data/lib/stripe/resources/mandate.rb +433 -0
  940. data/lib/stripe/resources/margin.rb +64 -0
  941. data/lib/stripe/resources/order.rb +960 -6
  942. data/lib/stripe/resources/payment_attempt_record.rb +2165 -0
  943. data/lib/stripe/resources/payment_intent.rb +3886 -14
  944. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +138 -0
  945. data/lib/stripe/resources/payment_link.rb +772 -2
  946. data/lib/stripe/resources/payment_method.rb +1792 -4
  947. data/lib/stripe/resources/payment_method_configuration.rb +2090 -0
  948. data/lib/stripe/resources/payment_method_domain.rb +280 -0
  949. data/lib/stripe/resources/payment_record.rb +2295 -0
  950. data/lib/stripe/resources/payout.rb +139 -4
  951. data/lib/stripe/resources/person.rb +475 -1
  952. data/lib/stripe/resources/plan.rb +137 -0
  953. data/lib/stripe/resources/price.rb +240 -1
  954. data/lib/stripe/resources/privacy/redaction_job.rb +187 -0
  955. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +49 -0
  956. data/lib/stripe/resources/product.rb +138 -1
  957. data/lib/stripe/resources/product_feature.rb +33 -0
  958. data/lib/stripe/resources/promotion_code.rb +110 -0
  959. data/lib/stripe/resources/quote.rb +1173 -36
  960. data/lib/stripe/resources/quote_line.rb +521 -0
  961. data/lib/stripe/resources/quote_preview_invoice.rb +1182 -0
  962. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +732 -0
  963. data/lib/stripe/resources/radar/early_fraud_warning.rb +42 -0
  964. data/lib/stripe/resources/radar/value_list.rb +87 -0
  965. data/lib/stripe/resources/radar/value_list_item.rb +71 -0
  966. data/lib/stripe/resources/refund.rb +748 -4
  967. data/lib/stripe/resources/reporting/report_run.rb +91 -0
  968. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  969. data/lib/stripe/resources/reserve/hold.rb +74 -0
  970. data/lib/stripe/resources/reserve/plan.rb +78 -0
  971. data/lib/stripe/resources/reserve/release.rb +77 -0
  972. data/lib/stripe/resources/reserve_transaction.rb +30 -0
  973. data/lib/stripe/resources/reversal.rb +46 -2
  974. data/lib/stripe/resources/review.rb +99 -2
  975. data/lib/stripe/resources/setup_attempt.rb +664 -0
  976. data/lib/stripe/resources/setup_intent.rb +816 -6
  977. data/lib/stripe/resources/shipping_rate.rb +132 -0
  978. data/lib/stripe/resources/sigma/scheduled_query_run.rb +60 -0
  979. data/lib/stripe/resources/source.rb +973 -10
  980. data/lib/stripe/resources/source_mandate_notification.rb +98 -0
  981. data/lib/stripe/resources/source_transaction.rb +146 -0
  982. data/lib/stripe/resources/subscription.rb +979 -5
  983. data/lib/stripe/resources/subscription_item.rb +132 -10
  984. data/lib/stripe/resources/subscription_schedule.rb +780 -4
  985. data/lib/stripe/resources/tax/association.rb +86 -0
  986. data/lib/stripe/resources/tax/calculation.rb +321 -0
  987. data/lib/stripe/resources/tax/calculation_line_item.rb +103 -0
  988. data/lib/stripe/resources/tax/form.rb +264 -0
  989. data/lib/stripe/resources/tax/registration.rb +2259 -0
  990. data/lib/stripe/resources/tax/settings.rb +131 -0
  991. data/lib/stripe/resources/tax/transaction.rb +287 -0
  992. data/lib/stripe/resources/tax/transaction_line_item.rb +60 -0
  993. data/lib/stripe/resources/tax_code.rb +26 -0
  994. data/lib/stripe/resources/tax_deducted_at_source.rb +30 -0
  995. data/lib/stripe/resources/tax_id.rb +103 -11
  996. data/lib/stripe/resources/tax_rate.rb +87 -0
  997. data/lib/stripe/resources/terminal/configuration.rb +724 -0
  998. data/lib/stripe/resources/terminal/connection_token.rb +31 -0
  999. data/lib/stripe/resources/terminal/location.rb +168 -0
  1000. data/lib/stripe/resources/terminal/onboarding_link.rb +71 -0
  1001. data/lib/stripe/resources/terminal/reader.rb +752 -10
  1002. data/lib/stripe/resources/terminal/reader_collected_data.rb +47 -0
  1003. data/lib/stripe/resources/test_helpers/test_clock.rb +110 -2
  1004. data/lib/stripe/resources/token.rb +66 -0
  1005. data/lib/stripe/resources/topup.rb +80 -2
  1006. data/lib/stripe/resources/transfer.rb +74 -6
  1007. data/lib/stripe/resources/treasury/credit_reversal.rb +86 -0
  1008. data/lib/stripe/resources/treasury/debit_reversal.rb +101 -0
  1009. data/lib/stripe/resources/treasury/financial_account.rb +255 -0
  1010. data/lib/stripe/resources/treasury/financial_account_features.rb +398 -0
  1011. data/lib/stripe/resources/treasury/inbound_transfer.rb +308 -0
  1012. data/lib/stripe/resources/treasury/outbound_payment.rb +408 -0
  1013. data/lib/stripe/resources/treasury/outbound_transfer.rb +418 -0
  1014. data/lib/stripe/resources/treasury/received_credit.rb +291 -0
  1015. data/lib/stripe/resources/treasury/received_debit.rb +256 -0
  1016. data/lib/stripe/resources/treasury/transaction.rb +143 -0
  1017. data/lib/stripe/resources/treasury/transaction_entry.rb +124 -0
  1018. data/lib/stripe/resources/v2/amount.rb +9 -0
  1019. data/lib/stripe/resources/v2/billing/bill_setting.rb +102 -0
  1020. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +90 -0
  1021. data/lib/stripe/resources/v2/billing/cadence.rb +609 -0
  1022. data/lib/stripe/resources/v2/billing/collection_setting.rb +274 -0
  1023. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +262 -0
  1024. data/lib/stripe/resources/v2/billing/meter_event.rb +43 -0
  1025. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +52 -0
  1026. data/lib/stripe/resources/v2/billing/meter_event_session.rb +37 -0
  1027. data/lib/stripe/resources/v2/billing/profile.rb +46 -0
  1028. data/lib/stripe/resources/v2/core/account.rb +4115 -0
  1029. data/lib/stripe/resources/v2/core/account_link.rb +123 -0
  1030. data/lib/stripe/resources/v2/core/account_person.rb +477 -0
  1031. data/lib/stripe/resources/v2/core/account_person_token.rb +37 -0
  1032. data/lib/stripe/resources/v2/core/account_token.rb +37 -0
  1033. data/lib/stripe/resources/v2/core/event.rb +69 -0
  1034. data/lib/stripe/resources/v2/core/event_destination.rb +119 -0
  1035. data/lib/stripe/resources/v2/core/event_notification.rb +62 -0
  1036. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +114 -0
  1037. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +83 -0
  1038. data/lib/stripe/resources/v2/deleted_object.rb +21 -0
  1039. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +28 -0
  1040. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +44 -0
  1041. data/lib/stripe/resources/v2/money_management/adjustment.rb +82 -0
  1042. data/lib/stripe/resources/v2/money_management/financial_account.rb +188 -0
  1043. data/lib/stripe/resources/v2/money_management/financial_address.rb +132 -0
  1044. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +197 -0
  1045. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +261 -0
  1046. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +202 -0
  1047. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +69 -0
  1048. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +240 -0
  1049. data/lib/stripe/resources/v2/money_management/payout_method.rb +111 -0
  1050. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +81 -0
  1051. data/lib/stripe/resources/v2/money_management/received_credit.rb +246 -0
  1052. data/lib/stripe/resources/v2/money_management/received_debit.rb +152 -0
  1053. data/lib/stripe/resources/v2/money_management/transaction.rb +180 -0
  1054. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +153 -0
  1055. data/lib/stripe/resources/webhook_endpoint.rb +90 -0
  1056. data/lib/stripe/resources.rb +175 -11
  1057. data/lib/stripe/search_result_object.rb +5 -2
  1058. data/lib/stripe/services/account_capability_service.rb +39 -0
  1059. data/lib/stripe/services/account_external_account_service.rb +68 -0
  1060. data/lib/stripe/services/account_link_service.rb +17 -0
  1061. data/lib/stripe/services/account_login_link_service.rb +19 -0
  1062. data/lib/stripe/services/account_notice_service.rb +39 -0
  1063. data/lib/stripe/services/account_person_service.rb +61 -0
  1064. data/lib/stripe/services/account_service.rb +100 -0
  1065. data/lib/stripe/services/account_session_service.rb +17 -0
  1066. data/lib/stripe/services/apple_pay_domain_service.rb +50 -0
  1067. data/lib/stripe/services/application_fee_refund_service.rb +60 -0
  1068. data/lib/stripe/services/application_fee_service.rb +35 -0
  1069. data/lib/stripe/services/apps/secret_service.rb +52 -0
  1070. data/lib/stripe/services/apps_service.rb +13 -0
  1071. data/lib/stripe/services/balance_service.rb +12 -0
  1072. data/lib/stripe/services/balance_settings_service.rb +30 -0
  1073. data/lib/stripe/services/balance_transaction_service.rb +32 -0
  1074. data/lib/stripe/services/billing/alert_service.rb +74 -0
  1075. data/lib/stripe/services/billing/analytics/meter_usage_service.rb +21 -0
  1076. data/lib/stripe/services/billing/analytics_service.rb +15 -0
  1077. data/lib/stripe/services/billing/credit_balance_summary_service.rb +19 -0
  1078. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +30 -0
  1079. data/lib/stripe/services/billing/credit_grant_service.rb +74 -0
  1080. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +19 -0
  1081. data/lib/stripe/services/billing/meter_event_service.rb +19 -0
  1082. data/lib/stripe/services/billing/meter_event_summary_service.rb +19 -0
  1083. data/lib/stripe/services/billing/meter_service.rb +81 -0
  1084. data/lib/stripe/services/billing_portal/configuration_service.rb +52 -0
  1085. data/lib/stripe/services/billing_portal/session_service.rb +19 -0
  1086. data/lib/stripe/services/billing_portal_service.rb +14 -0
  1087. data/lib/stripe/services/billing_service.rb +21 -0
  1088. data/lib/stripe/services/capital/financing_offer_service.rb +42 -0
  1089. data/lib/stripe/services/capital/financing_summary_service.rb +19 -0
  1090. data/lib/stripe/services/capital/financing_transaction_service.rb +31 -0
  1091. data/lib/stripe/services/capital_service.rb +15 -0
  1092. data/lib/stripe/services/charge_service.rb +69 -0
  1093. data/lib/stripe/services/checkout/session_line_item_service.rb +19 -0
  1094. data/lib/stripe/services/checkout/session_service.rb +74 -0
  1095. data/lib/stripe/services/checkout_service.rb +13 -0
  1096. data/lib/stripe/services/climate/order_service.rb +68 -0
  1097. data/lib/stripe/services/climate/product_service.rb +30 -0
  1098. data/lib/stripe/services/climate/supplier_service.rb +30 -0
  1099. data/lib/stripe/services/climate_service.rb +15 -0
  1100. data/lib/stripe/services/confirmation_token_service.rb +17 -0
  1101. data/lib/stripe/services/country_spec_service.rb +28 -0
  1102. data/lib/stripe/services/coupon_service.rb +51 -0
  1103. data/lib/stripe/services/credit_note_line_item_service.rb +17 -0
  1104. data/lib/stripe/services/credit_note_preview_lines_service.rb +17 -0
  1105. data/lib/stripe/services/credit_note_service.rb +92 -0
  1106. data/lib/stripe/services/customer_balance_transaction_service.rb +50 -0
  1107. data/lib/stripe/services/customer_cash_balance_service.rb +28 -0
  1108. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +28 -0
  1109. data/lib/stripe/services/customer_funding_instructions_service.rb +19 -0
  1110. data/lib/stripe/services/customer_payment_method_service.rb +28 -0
  1111. data/lib/stripe/services/customer_payment_source_service.rb +76 -0
  1112. data/lib/stripe/services/customer_service.rb +89 -0
  1113. data/lib/stripe/services/customer_session_service.rb +17 -0
  1114. data/lib/stripe/services/customer_tax_id_service.rb +50 -0
  1115. data/lib/stripe/services/dispute_service.rb +48 -0
  1116. data/lib/stripe/services/entitlements/active_entitlement_service.rb +30 -0
  1117. data/lib/stripe/services/entitlements/feature_service.rb +52 -0
  1118. data/lib/stripe/services/entitlements_service.rb +14 -0
  1119. data/lib/stripe/services/ephemeral_key_service.rb +28 -0
  1120. data/lib/stripe/services/event_service.rb +22 -0
  1121. data/lib/stripe/services/exchange_rate_service.rb +32 -0
  1122. data/lib/stripe/services/external_account_service.rb +68 -0
  1123. data/lib/stripe/services/file_link_service.rb +38 -0
  1124. data/lib/stripe/services/file_service.rb +35 -0
  1125. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +19 -0
  1126. data/lib/stripe/services/financial_connections/account_owner_service.rb +19 -0
  1127. data/lib/stripe/services/financial_connections/account_service.rb +83 -0
  1128. data/lib/stripe/services/financial_connections/institution_service.rb +30 -0
  1129. data/lib/stripe/services/financial_connections/session_service.rb +30 -0
  1130. data/lib/stripe/services/financial_connections/transaction_service.rb +30 -0
  1131. data/lib/stripe/services/financial_connections_service.rb +16 -0
  1132. data/lib/stripe/services/forwarding/request_service.rb +41 -0
  1133. data/lib/stripe/services/forwarding_service.rb +13 -0
  1134. data/lib/stripe/services/fx_quote_service.rb +27 -0
  1135. data/lib/stripe/services/identity/verification_report_service.rb +30 -0
  1136. data/lib/stripe/services/identity/verification_session_service.rb +106 -0
  1137. data/lib/stripe/services/identity_service.rb +14 -0
  1138. data/lib/stripe/services/invoice_item_service.rb +61 -0
  1139. data/lib/stripe/services/invoice_line_item_service.rb +31 -0
  1140. data/lib/stripe/services/invoice_payment_service.rb +28 -0
  1141. data/lib/stripe/services/invoice_rendering_template_service.rb +50 -0
  1142. data/lib/stripe/services/invoice_service.rb +206 -0
  1143. data/lib/stripe/services/issuing/authorization_service.rb +65 -0
  1144. data/lib/stripe/services/issuing/card_service.rb +52 -0
  1145. data/lib/stripe/services/issuing/cardholder_service.rb +52 -0
  1146. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +74 -0
  1147. data/lib/stripe/services/issuing/dispute_service.rb +63 -0
  1148. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +30 -0
  1149. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +30 -0
  1150. data/lib/stripe/services/issuing/personalization_design_service.rb +52 -0
  1151. data/lib/stripe/services/issuing/physical_bundle_service.rb +30 -0
  1152. data/lib/stripe/services/issuing/token_service.rb +41 -0
  1153. data/lib/stripe/services/issuing/transaction_service.rb +41 -0
  1154. data/lib/stripe/services/issuing_service.rb +24 -0
  1155. data/lib/stripe/services/mandate_service.rb +22 -0
  1156. data/lib/stripe/services/margin_service.rb +50 -0
  1157. data/lib/stripe/services/oauth_service.rb +63 -0
  1158. data/lib/stripe/services/order_line_item_service.rb +17 -0
  1159. data/lib/stripe/services/order_service.rb +78 -0
  1160. data/lib/stripe/services/payment_attempt_record_service.rb +28 -0
  1161. data/lib/stripe/services/payment_intent_amount_details_line_item_service.rb +17 -0
  1162. data/lib/stripe/services/payment_intent_service.rb +253 -0
  1163. data/lib/stripe/services/payment_link_line_item_service.rb +17 -0
  1164. data/lib/stripe/services/payment_link_service.rb +57 -0
  1165. data/lib/stripe/services/payment_method_configuration_service.rb +50 -0
  1166. data/lib/stripe/services/payment_method_domain_service.rb +66 -0
  1167. data/lib/stripe/services/payment_method_service.rb +86 -0
  1168. data/lib/stripe/services/payment_record_service.rb +101 -0
  1169. data/lib/stripe/services/payout_service.rb +66 -0
  1170. data/lib/stripe/services/plan_service.rb +49 -0
  1171. data/lib/stripe/services/price_service.rb +52 -0
  1172. data/lib/stripe/services/privacy/redaction_job_service.rb +104 -0
  1173. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +19 -0
  1174. data/lib/stripe/services/privacy_service.rb +13 -0
  1175. data/lib/stripe/services/product_feature_service.rb +50 -0
  1176. data/lib/stripe/services/product_service.rb +70 -0
  1177. data/lib/stripe/services/promotion_code_service.rb +50 -0
  1178. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +17 -0
  1179. data/lib/stripe/services/quote_line_item_service.rb +17 -0
  1180. data/lib/stripe/services/quote_line_service.rb +17 -0
  1181. data/lib/stripe/services/quote_preview_invoice_service.rb +17 -0
  1182. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +17 -0
  1183. data/lib/stripe/services/quote_service.rb +140 -0
  1184. data/lib/stripe/services/radar/early_fraud_warning_service.rb +32 -0
  1185. data/lib/stripe/services/radar/value_list_item_service.rb +52 -0
  1186. data/lib/stripe/services/radar/value_list_service.rb +63 -0
  1187. data/lib/stripe/services/radar_service.rb +15 -0
  1188. data/lib/stripe/services/refund_service.rb +63 -0
  1189. data/lib/stripe/services/reporting/report_run_service.rb +41 -0
  1190. data/lib/stripe/services/reporting/report_type_service.rb +30 -0
  1191. data/lib/stripe/services/reporting_service.rb +14 -0
  1192. data/lib/stripe/services/reserve/hold_service.rb +30 -0
  1193. data/lib/stripe/services/reserve/plan_service.rb +19 -0
  1194. data/lib/stripe/services/reserve/release_service.rb +30 -0
  1195. data/lib/stripe/services/reserve_service.rb +15 -0
  1196. data/lib/stripe/services/review_service.rb +33 -0
  1197. data/lib/stripe/services/setup_attempt_service.rb +17 -0
  1198. data/lib/stripe/services/setup_intent_service.rb +105 -0
  1199. data/lib/stripe/services/shipping_rate_service.rb +50 -0
  1200. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +30 -0
  1201. data/lib/stripe/services/sigma_service.rb +13 -0
  1202. data/lib/stripe/services/source_service.rb +64 -0
  1203. data/lib/stripe/services/source_transaction_service.rb +17 -0
  1204. data/lib/stripe/services/subscription_item_service.rb +61 -0
  1205. data/lib/stripe/services/subscription_schedule_service.rb +83 -0
  1206. data/lib/stripe/services/subscription_service.rb +149 -0
  1207. data/lib/stripe/services/tax/association_service.rb +19 -0
  1208. data/lib/stripe/services/tax/calculation_line_item_service.rb +19 -0
  1209. data/lib/stripe/services/tax/calculation_service.rb +37 -0
  1210. data/lib/stripe/services/tax/form_service.rb +37 -0
  1211. data/lib/stripe/services/tax/registration_service.rb +54 -0
  1212. data/lib/stripe/services/tax/settings_service.rb +30 -0
  1213. data/lib/stripe/services/tax/transaction_line_item_service.rb +19 -0
  1214. data/lib/stripe/services/tax/transaction_service.rb +48 -0
  1215. data/lib/stripe/services/tax_code_service.rb +22 -0
  1216. data/lib/stripe/services/tax_id_service.rb +38 -0
  1217. data/lib/stripe/services/tax_rate_service.rb +38 -0
  1218. data/lib/stripe/services/tax_service.rb +18 -0
  1219. data/lib/stripe/services/terminal/configuration_service.rb +63 -0
  1220. data/lib/stripe/services/terminal/connection_token_service.rb +19 -0
  1221. data/lib/stripe/services/terminal/location_service.rb +64 -0
  1222. data/lib/stripe/services/terminal/onboarding_link_service.rb +19 -0
  1223. data/lib/stripe/services/terminal/reader_collected_data_service.rb +19 -0
  1224. data/lib/stripe/services/terminal/reader_service.rb +151 -0
  1225. data/lib/stripe/services/terminal_service.rb +18 -0
  1226. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +19 -0
  1227. data/lib/stripe/services/test_helpers/customer_service.rb +19 -0
  1228. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +87 -0
  1229. data/lib/stripe/services/test_helpers/issuing/card_service.rb +65 -0
  1230. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +43 -0
  1231. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +43 -0
  1232. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  1233. data/lib/stripe/services/test_helpers/refund_service.rb +19 -0
  1234. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
  1235. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  1236. data/lib/stripe/services/test_helpers/test_clock_service.rb +63 -0
  1237. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +43 -0
  1238. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +54 -0
  1239. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +54 -0
  1240. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +21 -0
  1241. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +21 -0
  1242. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  1243. data/lib/stripe/services/test_helpers_service.rb +19 -0
  1244. data/lib/stripe/services/token_service.rb +23 -0
  1245. data/lib/stripe/services/topup_service.rb +49 -0
  1246. data/lib/stripe/services/transfer_reversal_service.rb +56 -0
  1247. data/lib/stripe/services/transfer_service.rb +47 -0
  1248. data/lib/stripe/services/treasury/credit_reversal_service.rb +41 -0
  1249. data/lib/stripe/services/treasury/debit_reversal_service.rb +41 -0
  1250. data/lib/stripe/services/treasury/financial_account_features_service.rb +30 -0
  1251. data/lib/stripe/services/treasury/financial_account_service.rb +70 -0
  1252. data/lib/stripe/services/treasury/inbound_transfer_service.rb +52 -0
  1253. data/lib/stripe/services/treasury/outbound_payment_service.rb +52 -0
  1254. data/lib/stripe/services/treasury/outbound_transfer_service.rb +52 -0
  1255. data/lib/stripe/services/treasury/received_credit_service.rb +30 -0
  1256. data/lib/stripe/services/treasury/received_debit_service.rb +30 -0
  1257. data/lib/stripe/services/treasury/transaction_entry_service.rb +30 -0
  1258. data/lib/stripe/services/treasury/transaction_service.rb +30 -0
  1259. data/lib/stripe/services/treasury_service.rb +22 -0
  1260. data/lib/stripe/services/v1_services.rb +101 -0
  1261. data/lib/stripe/services/v2/billing/bill_setting_service.rb +61 -0
  1262. data/lib/stripe/services/v2/billing/bill_settings/version_service.rb +34 -0
  1263. data/lib/stripe/services/v2/billing/cadence_service.rb +65 -0
  1264. data/lib/stripe/services/v2/billing/collection_setting_service.rb +61 -0
  1265. data/lib/stripe/services/v2/billing/collection_settings/version_service.rb +34 -0
  1266. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +21 -0
  1267. data/lib/stripe/services/v2/billing/meter_event_service.rb +21 -0
  1268. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +21 -0
  1269. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +23 -0
  1270. data/lib/stripe/services/v2/billing/profile_service.rb +54 -0
  1271. data/lib/stripe/services/v2/billing_service.rb +22 -0
  1272. data/lib/stripe/services/v2/core/account_link_service.rb +21 -0
  1273. data/lib/stripe/services/v2/core/account_service.rb +73 -0
  1274. data/lib/stripe/services/v2/core/account_token_service.rb +32 -0
  1275. data/lib/stripe/services/v2/core/accounts/person_service.rb +67 -0
  1276. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +34 -0
  1277. data/lib/stripe/services/v2/core/event_destination_service.rb +98 -0
  1278. data/lib/stripe/services/v2/core/event_service.rb +32 -0
  1279. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +85 -0
  1280. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +101 -0
  1281. data/lib/stripe/services/v2/core/vault_service.rb +18 -0
  1282. data/lib/stripe/services/v2/core_service.rb +20 -0
  1283. data/lib/stripe/services/v2/money_management/adjustment_service.rb +32 -0
  1284. data/lib/stripe/services/v2/money_management/financial_account_service.rb +70 -0
  1285. data/lib/stripe/services/v2/money_management/financial_address_service.rb +46 -0
  1286. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +45 -0
  1287. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +34 -0
  1288. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +62 -0
  1289. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +75 -0
  1290. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +60 -0
  1291. data/lib/stripe/services/v2/money_management/payout_method_service.rb +65 -0
  1292. data/lib/stripe/services/v2/money_management/payout_methods_bank_account_spec_service.rb +23 -0
  1293. data/lib/stripe/services/v2/money_management/received_credit_service.rb +32 -0
  1294. data/lib/stripe/services/v2/money_management/received_debit_service.rb +32 -0
  1295. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +32 -0
  1296. data/lib/stripe/services/v2/money_management/transaction_service.rb +32 -0
  1297. data/lib/stripe/services/v2/money_management_service.rb +31 -0
  1298. data/lib/stripe/services/v2/test_helper_service.rb +15 -0
  1299. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +36 -0
  1300. data/lib/stripe/services/v2_services.rb +16 -0
  1301. data/lib/stripe/services/webhook_endpoint_service.rb +61 -0
  1302. data/lib/stripe/services.rb +246 -0
  1303. data/lib/stripe/singleton_api_resource.rb +3 -3
  1304. data/lib/stripe/stripe_client.rb +61 -1023
  1305. data/lib/stripe/stripe_configuration.rb +60 -42
  1306. data/lib/stripe/stripe_context.rb +68 -0
  1307. data/lib/stripe/stripe_event_notification_handler.rb +425 -0
  1308. data/lib/stripe/stripe_object.rb +142 -47
  1309. data/lib/stripe/stripe_response.rb +1 -3
  1310. data/lib/stripe/stripe_service.rb +34 -0
  1311. data/lib/stripe/util.rb +134 -45
  1312. data/lib/stripe/v2_list_object.rb +84 -0
  1313. data/lib/stripe/version.rb +1 -1
  1314. data/lib/stripe/webhook.rb +3 -2
  1315. data/lib/stripe.rb +98 -0
  1316. data/rbi/stripe/resources/v2/core/event_notification.rbi +43 -0
  1317. data/rbi/stripe/stripe_client.rbi +30 -0
  1318. data/rbi/stripe.rbi +219587 -0
  1319. metadata +1210 -28
  1320. data/CHANGELOG.md +0 -1036
  1321. data/CODE_OF_CONDUCT.md +0 -77
  1322. data/CONTRIBUTORS +0 -3
  1323. data/Gemfile +0 -33
  1324. data/History.txt +0 -1
  1325. data/LICENSE +0 -21
  1326. data/Makefile +0 -7
  1327. data/README.md +0 -350
  1328. data/Rakefile +0 -37
  1329. data/VERSION +0 -1
  1330. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  1331. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  1332. data/lib/stripe/resources/order_return.rb +0 -10
  1333. data/lib/stripe/resources/recipient.rb +0 -14
  1334. data/lib/stripe/resources/sku.rb +0 -13
  1335. data/lib/stripe/resources/three_d_secure.rb +0 -14
  1336. data/stripe.gemspec +0 -41
@@ -0,0 +1,2409 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module V2
6
+ module Core
7
+ class AccountUpdateParams < ::Stripe::RequestParams
8
+ class Configuration < ::Stripe::RequestParams
9
+ class Customer < ::Stripe::RequestParams
10
+ class AutomaticIndirectTax < ::Stripe::RequestParams
11
+ # The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge".
12
+ attr_accessor :exempt
13
+ # A recent IP address of the customer used for tax reporting and tax location inference.
14
+ attr_accessor :ip_address
15
+ # Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation.
16
+ attr_accessor :location_source
17
+ # A per-request flag that indicates when Stripe should validate the customer tax location - defaults to `auto`.
18
+ attr_accessor :validate_location
19
+
20
+ def initialize(
21
+ exempt: nil,
22
+ ip_address: nil,
23
+ location_source: nil,
24
+ validate_location: nil
25
+ )
26
+ @exempt = exempt
27
+ @ip_address = ip_address
28
+ @location_source = location_source
29
+ @validate_location = validate_location
30
+ end
31
+ end
32
+
33
+ class Billing < ::Stripe::RequestParams
34
+ class Invoice < ::Stripe::RequestParams
35
+ class CustomField < ::Stripe::RequestParams
36
+ # The name of the custom field. This may be up to 40 characters.
37
+ attr_accessor :name
38
+ # The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values.
39
+ attr_accessor :value
40
+
41
+ def initialize(name: nil, value: nil)
42
+ @name = name
43
+ @value = value
44
+ end
45
+ end
46
+
47
+ class Rendering < ::Stripe::RequestParams
48
+ # Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`.
49
+ attr_accessor :amount_tax_display
50
+ # ID of the invoice rendering template to use for future invoices.
51
+ attr_accessor :template
52
+
53
+ def initialize(amount_tax_display: nil, template: nil)
54
+ @amount_tax_display = amount_tax_display
55
+ @template = template
56
+ end
57
+ end
58
+ # The list of up to 4 default custom fields to be displayed on invoices for this customer.
59
+ attr_accessor :custom_fields
60
+ # Default invoice footer.
61
+ attr_accessor :footer
62
+ # Sequence number to use on the customer account's next invoice. Defaults to 1.
63
+ attr_accessor :next_sequence
64
+ # Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers.
65
+ attr_accessor :prefix
66
+ # Default invoice PDF rendering options.
67
+ attr_accessor :rendering
68
+
69
+ def initialize(
70
+ custom_fields: nil,
71
+ footer: nil,
72
+ next_sequence: nil,
73
+ prefix: nil,
74
+ rendering: nil
75
+ )
76
+ @custom_fields = custom_fields
77
+ @footer = footer
78
+ @next_sequence = next_sequence
79
+ @prefix = prefix
80
+ @rendering = rendering
81
+ end
82
+ end
83
+ # ID of a PaymentMethod attached to the customer account to use as the default for invoices and subscriptions.
84
+ attr_accessor :default_payment_method
85
+ # Default invoice settings for the customer account.
86
+ attr_accessor :invoice
87
+
88
+ def initialize(default_payment_method: nil, invoice: nil)
89
+ @default_payment_method = default_payment_method
90
+ @invoice = invoice
91
+ end
92
+ end
93
+
94
+ class Capabilities < ::Stripe::RequestParams
95
+ class AutomaticIndirectTax < ::Stripe::RequestParams
96
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
97
+ attr_accessor :requested
98
+
99
+ def initialize(requested: nil)
100
+ @requested = requested
101
+ end
102
+ end
103
+ # Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions.
104
+ attr_accessor :automatic_indirect_tax
105
+
106
+ def initialize(automatic_indirect_tax: nil)
107
+ @automatic_indirect_tax = automatic_indirect_tax
108
+ end
109
+ end
110
+
111
+ class Shipping < ::Stripe::RequestParams
112
+ class Address < ::Stripe::RequestParams
113
+ # City, district, suburb, town, or village.
114
+ attr_accessor :city
115
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
116
+ attr_accessor :country
117
+ # Address line 1 (e.g., street, PO Box, or company name).
118
+ attr_accessor :line1
119
+ # Address line 2 (e.g., apartment, suite, unit, or building).
120
+ attr_accessor :line2
121
+ # ZIP or postal code.
122
+ attr_accessor :postal_code
123
+ # State, county, province, or region.
124
+ attr_accessor :state
125
+
126
+ def initialize(
127
+ city: nil,
128
+ country: nil,
129
+ line1: nil,
130
+ line2: nil,
131
+ postal_code: nil,
132
+ state: nil
133
+ )
134
+ @city = city
135
+ @country = country
136
+ @line1 = line1
137
+ @line2 = line2
138
+ @postal_code = postal_code
139
+ @state = state
140
+ end
141
+ end
142
+ # Customer shipping address.
143
+ attr_accessor :address
144
+ # Customer name.
145
+ attr_accessor :name
146
+ # Customer phone (including extension).
147
+ attr_accessor :phone
148
+
149
+ def initialize(address: nil, name: nil, phone: nil)
150
+ @address = address
151
+ @name = name
152
+ @phone = phone
153
+ end
154
+ end
155
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
156
+ attr_accessor :applied
157
+ # Automatic indirect tax settings to be used when automatic tax calculation is enabled on the customer's invoices, subscriptions, checkout sessions, or payment links. Surfaces if automatic tax calculation is possible given the current customer location information.
158
+ attr_accessor :automatic_indirect_tax
159
+ # Billing settings - default settings used for this customer in Billing flows such as Invoices and Subscriptions.
160
+ attr_accessor :billing
161
+ # Capabilities that have been requested on the Customer Configuration.
162
+ attr_accessor :capabilities
163
+ # The customer's shipping information. Appears on invoices emailed to this customer.
164
+ attr_accessor :shipping
165
+ # ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account.
166
+ attr_accessor :test_clock
167
+
168
+ def initialize(
169
+ applied: nil,
170
+ automatic_indirect_tax: nil,
171
+ billing: nil,
172
+ capabilities: nil,
173
+ shipping: nil,
174
+ test_clock: nil
175
+ )
176
+ @applied = applied
177
+ @automatic_indirect_tax = automatic_indirect_tax
178
+ @billing = billing
179
+ @capabilities = capabilities
180
+ @shipping = shipping
181
+ @test_clock = test_clock
182
+ end
183
+ end
184
+
185
+ class Merchant < ::Stripe::RequestParams
186
+ class BacsDebitPayments < ::Stripe::RequestParams
187
+ # Display name for Bacs Direct Debit payments.
188
+ attr_accessor :display_name
189
+
190
+ def initialize(display_name: nil)
191
+ @display_name = display_name
192
+ end
193
+ end
194
+
195
+ class Branding < ::Stripe::RequestParams
196
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px.
197
+ attr_accessor :icon
198
+ # ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px.
199
+ attr_accessor :logo
200
+ # A CSS hex color value representing the primary branding color for the merchant.
201
+ attr_accessor :primary_color
202
+ # A CSS hex color value representing the secondary branding color for the merchant.
203
+ attr_accessor :secondary_color
204
+
205
+ def initialize(icon: nil, logo: nil, primary_color: nil, secondary_color: nil)
206
+ @icon = icon
207
+ @logo = logo
208
+ @primary_color = primary_color
209
+ @secondary_color = secondary_color
210
+ end
211
+ end
212
+
213
+ class Capabilities < ::Stripe::RequestParams
214
+ class AchDebitPayments < ::Stripe::RequestParams
215
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
216
+ attr_accessor :requested
217
+
218
+ def initialize(requested: nil)
219
+ @requested = requested
220
+ end
221
+ end
222
+
223
+ class AcssDebitPayments < ::Stripe::RequestParams
224
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
225
+ attr_accessor :requested
226
+
227
+ def initialize(requested: nil)
228
+ @requested = requested
229
+ end
230
+ end
231
+
232
+ class AffirmPayments < ::Stripe::RequestParams
233
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
234
+ attr_accessor :requested
235
+
236
+ def initialize(requested: nil)
237
+ @requested = requested
238
+ end
239
+ end
240
+
241
+ class AfterpayClearpayPayments < ::Stripe::RequestParams
242
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
243
+ attr_accessor :requested
244
+
245
+ def initialize(requested: nil)
246
+ @requested = requested
247
+ end
248
+ end
249
+
250
+ class AlmaPayments < ::Stripe::RequestParams
251
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
252
+ attr_accessor :requested
253
+
254
+ def initialize(requested: nil)
255
+ @requested = requested
256
+ end
257
+ end
258
+
259
+ class AmazonPayPayments < ::Stripe::RequestParams
260
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
261
+ attr_accessor :requested
262
+
263
+ def initialize(requested: nil)
264
+ @requested = requested
265
+ end
266
+ end
267
+
268
+ class AuBecsDebitPayments < ::Stripe::RequestParams
269
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
270
+ attr_accessor :requested
271
+
272
+ def initialize(requested: nil)
273
+ @requested = requested
274
+ end
275
+ end
276
+
277
+ class BacsDebitPayments < ::Stripe::RequestParams
278
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
279
+ attr_accessor :requested
280
+
281
+ def initialize(requested: nil)
282
+ @requested = requested
283
+ end
284
+ end
285
+
286
+ class BancontactPayments < ::Stripe::RequestParams
287
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
288
+ attr_accessor :requested
289
+
290
+ def initialize(requested: nil)
291
+ @requested = requested
292
+ end
293
+ end
294
+
295
+ class BlikPayments < ::Stripe::RequestParams
296
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
297
+ attr_accessor :requested
298
+
299
+ def initialize(requested: nil)
300
+ @requested = requested
301
+ end
302
+ end
303
+
304
+ class BoletoPayments < ::Stripe::RequestParams
305
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
306
+ attr_accessor :requested
307
+
308
+ def initialize(requested: nil)
309
+ @requested = requested
310
+ end
311
+ end
312
+
313
+ class CardPayments < ::Stripe::RequestParams
314
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
315
+ attr_accessor :requested
316
+
317
+ def initialize(requested: nil)
318
+ @requested = requested
319
+ end
320
+ end
321
+
322
+ class CartesBancairesPayments < ::Stripe::RequestParams
323
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
324
+ attr_accessor :requested
325
+
326
+ def initialize(requested: nil)
327
+ @requested = requested
328
+ end
329
+ end
330
+
331
+ class CashappPayments < ::Stripe::RequestParams
332
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
333
+ attr_accessor :requested
334
+
335
+ def initialize(requested: nil)
336
+ @requested = requested
337
+ end
338
+ end
339
+
340
+ class EpsPayments < ::Stripe::RequestParams
341
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
342
+ attr_accessor :requested
343
+
344
+ def initialize(requested: nil)
345
+ @requested = requested
346
+ end
347
+ end
348
+
349
+ class FpxPayments < ::Stripe::RequestParams
350
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
351
+ attr_accessor :requested
352
+
353
+ def initialize(requested: nil)
354
+ @requested = requested
355
+ end
356
+ end
357
+
358
+ class GbBankTransferPayments < ::Stripe::RequestParams
359
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
360
+ attr_accessor :requested
361
+
362
+ def initialize(requested: nil)
363
+ @requested = requested
364
+ end
365
+ end
366
+
367
+ class GrabpayPayments < ::Stripe::RequestParams
368
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
369
+ attr_accessor :requested
370
+
371
+ def initialize(requested: nil)
372
+ @requested = requested
373
+ end
374
+ end
375
+
376
+ class IdealPayments < ::Stripe::RequestParams
377
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
378
+ attr_accessor :requested
379
+
380
+ def initialize(requested: nil)
381
+ @requested = requested
382
+ end
383
+ end
384
+
385
+ class JcbPayments < ::Stripe::RequestParams
386
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
387
+ attr_accessor :requested
388
+
389
+ def initialize(requested: nil)
390
+ @requested = requested
391
+ end
392
+ end
393
+
394
+ class JpBankTransferPayments < ::Stripe::RequestParams
395
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
396
+ attr_accessor :requested
397
+
398
+ def initialize(requested: nil)
399
+ @requested = requested
400
+ end
401
+ end
402
+
403
+ class KakaoPayPayments < ::Stripe::RequestParams
404
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
405
+ attr_accessor :requested
406
+
407
+ def initialize(requested: nil)
408
+ @requested = requested
409
+ end
410
+ end
411
+
412
+ class KlarnaPayments < ::Stripe::RequestParams
413
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
414
+ attr_accessor :requested
415
+
416
+ def initialize(requested: nil)
417
+ @requested = requested
418
+ end
419
+ end
420
+
421
+ class KonbiniPayments < ::Stripe::RequestParams
422
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
423
+ attr_accessor :requested
424
+
425
+ def initialize(requested: nil)
426
+ @requested = requested
427
+ end
428
+ end
429
+
430
+ class KrCardPayments < ::Stripe::RequestParams
431
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
432
+ attr_accessor :requested
433
+
434
+ def initialize(requested: nil)
435
+ @requested = requested
436
+ end
437
+ end
438
+
439
+ class LinkPayments < ::Stripe::RequestParams
440
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
441
+ attr_accessor :requested
442
+
443
+ def initialize(requested: nil)
444
+ @requested = requested
445
+ end
446
+ end
447
+
448
+ class MobilepayPayments < ::Stripe::RequestParams
449
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
450
+ attr_accessor :requested
451
+
452
+ def initialize(requested: nil)
453
+ @requested = requested
454
+ end
455
+ end
456
+
457
+ class MultibancoPayments < ::Stripe::RequestParams
458
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
459
+ attr_accessor :requested
460
+
461
+ def initialize(requested: nil)
462
+ @requested = requested
463
+ end
464
+ end
465
+
466
+ class MxBankTransferPayments < ::Stripe::RequestParams
467
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
468
+ attr_accessor :requested
469
+
470
+ def initialize(requested: nil)
471
+ @requested = requested
472
+ end
473
+ end
474
+
475
+ class NaverPayPayments < ::Stripe::RequestParams
476
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
477
+ attr_accessor :requested
478
+
479
+ def initialize(requested: nil)
480
+ @requested = requested
481
+ end
482
+ end
483
+
484
+ class OxxoPayments < ::Stripe::RequestParams
485
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
486
+ attr_accessor :requested
487
+
488
+ def initialize(requested: nil)
489
+ @requested = requested
490
+ end
491
+ end
492
+
493
+ class P24Payments < ::Stripe::RequestParams
494
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
495
+ attr_accessor :requested
496
+
497
+ def initialize(requested: nil)
498
+ @requested = requested
499
+ end
500
+ end
501
+
502
+ class PayByBankPayments < ::Stripe::RequestParams
503
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
504
+ attr_accessor :requested
505
+
506
+ def initialize(requested: nil)
507
+ @requested = requested
508
+ end
509
+ end
510
+
511
+ class PaycoPayments < ::Stripe::RequestParams
512
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
513
+ attr_accessor :requested
514
+
515
+ def initialize(requested: nil)
516
+ @requested = requested
517
+ end
518
+ end
519
+
520
+ class PaynowPayments < ::Stripe::RequestParams
521
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
522
+ attr_accessor :requested
523
+
524
+ def initialize(requested: nil)
525
+ @requested = requested
526
+ end
527
+ end
528
+
529
+ class PromptpayPayments < ::Stripe::RequestParams
530
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
531
+ attr_accessor :requested
532
+
533
+ def initialize(requested: nil)
534
+ @requested = requested
535
+ end
536
+ end
537
+
538
+ class RevolutPayPayments < ::Stripe::RequestParams
539
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
540
+ attr_accessor :requested
541
+
542
+ def initialize(requested: nil)
543
+ @requested = requested
544
+ end
545
+ end
546
+
547
+ class SamsungPayPayments < ::Stripe::RequestParams
548
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
549
+ attr_accessor :requested
550
+
551
+ def initialize(requested: nil)
552
+ @requested = requested
553
+ end
554
+ end
555
+
556
+ class SepaBankTransferPayments < ::Stripe::RequestParams
557
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
558
+ attr_accessor :requested
559
+
560
+ def initialize(requested: nil)
561
+ @requested = requested
562
+ end
563
+ end
564
+
565
+ class SepaDebitPayments < ::Stripe::RequestParams
566
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
567
+ attr_accessor :requested
568
+
569
+ def initialize(requested: nil)
570
+ @requested = requested
571
+ end
572
+ end
573
+
574
+ class SwishPayments < ::Stripe::RequestParams
575
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
576
+ attr_accessor :requested
577
+
578
+ def initialize(requested: nil)
579
+ @requested = requested
580
+ end
581
+ end
582
+
583
+ class TwintPayments < ::Stripe::RequestParams
584
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
585
+ attr_accessor :requested
586
+
587
+ def initialize(requested: nil)
588
+ @requested = requested
589
+ end
590
+ end
591
+
592
+ class UsBankTransferPayments < ::Stripe::RequestParams
593
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
594
+ attr_accessor :requested
595
+
596
+ def initialize(requested: nil)
597
+ @requested = requested
598
+ end
599
+ end
600
+
601
+ class ZipPayments < ::Stripe::RequestParams
602
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
603
+ attr_accessor :requested
604
+
605
+ def initialize(requested: nil)
606
+ @requested = requested
607
+ end
608
+ end
609
+ # Allow the merchant to process ACH debit payments.
610
+ attr_accessor :ach_debit_payments
611
+ # Allow the merchant to process ACSS debit payments.
612
+ attr_accessor :acss_debit_payments
613
+ # Allow the merchant to process Affirm payments.
614
+ attr_accessor :affirm_payments
615
+ # Allow the merchant to process Afterpay/Clearpay payments.
616
+ attr_accessor :afterpay_clearpay_payments
617
+ # Allow the merchant to process Alma payments.
618
+ attr_accessor :alma_payments
619
+ # Allow the merchant to process Amazon Pay payments.
620
+ attr_accessor :amazon_pay_payments
621
+ # Allow the merchant to process Australian BECS Direct Debit payments.
622
+ attr_accessor :au_becs_debit_payments
623
+ # Allow the merchant to process BACS Direct Debit payments.
624
+ attr_accessor :bacs_debit_payments
625
+ # Allow the merchant to process Bancontact payments.
626
+ attr_accessor :bancontact_payments
627
+ # Allow the merchant to process BLIK payments.
628
+ attr_accessor :blik_payments
629
+ # Allow the merchant to process Boleto payments.
630
+ attr_accessor :boleto_payments
631
+ # Allow the merchant to collect card payments.
632
+ attr_accessor :card_payments
633
+ # Allow the merchant to process Cartes Bancaires payments.
634
+ attr_accessor :cartes_bancaires_payments
635
+ # Allow the merchant to process Cash App payments.
636
+ attr_accessor :cashapp_payments
637
+ # Allow the merchant to process EPS payments.
638
+ attr_accessor :eps_payments
639
+ # Allow the merchant to process FPX payments.
640
+ attr_accessor :fpx_payments
641
+ # Allow the merchant to process UK bank transfer payments.
642
+ attr_accessor :gb_bank_transfer_payments
643
+ # Allow the merchant to process GrabPay payments.
644
+ attr_accessor :grabpay_payments
645
+ # Allow the merchant to process iDEAL payments.
646
+ attr_accessor :ideal_payments
647
+ # Allow the merchant to process JCB card payments.
648
+ attr_accessor :jcb_payments
649
+ # Allow the merchant to process Japanese bank transfer payments.
650
+ attr_accessor :jp_bank_transfer_payments
651
+ # Allow the merchant to process Kakao Pay payments.
652
+ attr_accessor :kakao_pay_payments
653
+ # Allow the merchant to process Klarna payments.
654
+ attr_accessor :klarna_payments
655
+ # Allow the merchant to process Konbini convenience store payments.
656
+ attr_accessor :konbini_payments
657
+ # Allow the merchant to process Korean card payments.
658
+ attr_accessor :kr_card_payments
659
+ # Allow the merchant to process Link payments.
660
+ attr_accessor :link_payments
661
+ # Allow the merchant to process MobilePay payments.
662
+ attr_accessor :mobilepay_payments
663
+ # Allow the merchant to process Multibanco payments.
664
+ attr_accessor :multibanco_payments
665
+ # Allow the merchant to process Mexican bank transfer payments.
666
+ attr_accessor :mx_bank_transfer_payments
667
+ # Allow the merchant to process Naver Pay payments.
668
+ attr_accessor :naver_pay_payments
669
+ # Allow the merchant to process OXXO payments.
670
+ attr_accessor :oxxo_payments
671
+ # Allow the merchant to process Przelewy24 (P24) payments.
672
+ attr_accessor :p24_payments
673
+ # Allow the merchant to process Pay by Bank payments.
674
+ attr_accessor :pay_by_bank_payments
675
+ # Allow the merchant to process PAYCO payments.
676
+ attr_accessor :payco_payments
677
+ # Allow the merchant to process PayNow payments.
678
+ attr_accessor :paynow_payments
679
+ # Allow the merchant to process PromptPay payments.
680
+ attr_accessor :promptpay_payments
681
+ # Allow the merchant to process Revolut Pay payments.
682
+ attr_accessor :revolut_pay_payments
683
+ # Allow the merchant to process Samsung Pay payments.
684
+ attr_accessor :samsung_pay_payments
685
+ # Allow the merchant to process SEPA bank transfer payments.
686
+ attr_accessor :sepa_bank_transfer_payments
687
+ # Allow the merchant to process SEPA Direct Debit payments.
688
+ attr_accessor :sepa_debit_payments
689
+ # Allow the merchant to process Swish payments.
690
+ attr_accessor :swish_payments
691
+ # Allow the merchant to process TWINT payments.
692
+ attr_accessor :twint_payments
693
+ # Allow the merchant to process US bank transfer payments.
694
+ attr_accessor :us_bank_transfer_payments
695
+ # Allow the merchant to process Zip payments.
696
+ attr_accessor :zip_payments
697
+
698
+ def initialize(
699
+ ach_debit_payments: nil,
700
+ acss_debit_payments: nil,
701
+ affirm_payments: nil,
702
+ afterpay_clearpay_payments: nil,
703
+ alma_payments: nil,
704
+ amazon_pay_payments: nil,
705
+ au_becs_debit_payments: nil,
706
+ bacs_debit_payments: nil,
707
+ bancontact_payments: nil,
708
+ blik_payments: nil,
709
+ boleto_payments: nil,
710
+ card_payments: nil,
711
+ cartes_bancaires_payments: nil,
712
+ cashapp_payments: nil,
713
+ eps_payments: nil,
714
+ fpx_payments: nil,
715
+ gb_bank_transfer_payments: nil,
716
+ grabpay_payments: nil,
717
+ ideal_payments: nil,
718
+ jcb_payments: nil,
719
+ jp_bank_transfer_payments: nil,
720
+ kakao_pay_payments: nil,
721
+ klarna_payments: nil,
722
+ konbini_payments: nil,
723
+ kr_card_payments: nil,
724
+ link_payments: nil,
725
+ mobilepay_payments: nil,
726
+ multibanco_payments: nil,
727
+ mx_bank_transfer_payments: nil,
728
+ naver_pay_payments: nil,
729
+ oxxo_payments: nil,
730
+ p24_payments: nil,
731
+ pay_by_bank_payments: nil,
732
+ payco_payments: nil,
733
+ paynow_payments: nil,
734
+ promptpay_payments: nil,
735
+ revolut_pay_payments: nil,
736
+ samsung_pay_payments: nil,
737
+ sepa_bank_transfer_payments: nil,
738
+ sepa_debit_payments: nil,
739
+ swish_payments: nil,
740
+ twint_payments: nil,
741
+ us_bank_transfer_payments: nil,
742
+ zip_payments: nil
743
+ )
744
+ @ach_debit_payments = ach_debit_payments
745
+ @acss_debit_payments = acss_debit_payments
746
+ @affirm_payments = affirm_payments
747
+ @afterpay_clearpay_payments = afterpay_clearpay_payments
748
+ @alma_payments = alma_payments
749
+ @amazon_pay_payments = amazon_pay_payments
750
+ @au_becs_debit_payments = au_becs_debit_payments
751
+ @bacs_debit_payments = bacs_debit_payments
752
+ @bancontact_payments = bancontact_payments
753
+ @blik_payments = blik_payments
754
+ @boleto_payments = boleto_payments
755
+ @card_payments = card_payments
756
+ @cartes_bancaires_payments = cartes_bancaires_payments
757
+ @cashapp_payments = cashapp_payments
758
+ @eps_payments = eps_payments
759
+ @fpx_payments = fpx_payments
760
+ @gb_bank_transfer_payments = gb_bank_transfer_payments
761
+ @grabpay_payments = grabpay_payments
762
+ @ideal_payments = ideal_payments
763
+ @jcb_payments = jcb_payments
764
+ @jp_bank_transfer_payments = jp_bank_transfer_payments
765
+ @kakao_pay_payments = kakao_pay_payments
766
+ @klarna_payments = klarna_payments
767
+ @konbini_payments = konbini_payments
768
+ @kr_card_payments = kr_card_payments
769
+ @link_payments = link_payments
770
+ @mobilepay_payments = mobilepay_payments
771
+ @multibanco_payments = multibanco_payments
772
+ @mx_bank_transfer_payments = mx_bank_transfer_payments
773
+ @naver_pay_payments = naver_pay_payments
774
+ @oxxo_payments = oxxo_payments
775
+ @p24_payments = p24_payments
776
+ @pay_by_bank_payments = pay_by_bank_payments
777
+ @payco_payments = payco_payments
778
+ @paynow_payments = paynow_payments
779
+ @promptpay_payments = promptpay_payments
780
+ @revolut_pay_payments = revolut_pay_payments
781
+ @samsung_pay_payments = samsung_pay_payments
782
+ @sepa_bank_transfer_payments = sepa_bank_transfer_payments
783
+ @sepa_debit_payments = sepa_debit_payments
784
+ @swish_payments = swish_payments
785
+ @twint_payments = twint_payments
786
+ @us_bank_transfer_payments = us_bank_transfer_payments
787
+ @zip_payments = zip_payments
788
+ end
789
+ end
790
+
791
+ class CardPayments < ::Stripe::RequestParams
792
+ class DeclineOn < ::Stripe::RequestParams
793
+ # Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification.
794
+ attr_accessor :avs_failure
795
+ # Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification.
796
+ attr_accessor :cvc_failure
797
+
798
+ def initialize(avs_failure: nil, cvc_failure: nil)
799
+ @avs_failure = avs_failure
800
+ @cvc_failure = cvc_failure
801
+ end
802
+ end
803
+ # Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge.
804
+ attr_accessor :decline_on
805
+
806
+ def initialize(decline_on: nil)
807
+ @decline_on = decline_on
808
+ end
809
+ end
810
+
811
+ class KonbiniPayments < ::Stripe::RequestParams
812
+ class Support < ::Stripe::RequestParams
813
+ class Hours < ::Stripe::RequestParams
814
+ # Support hours end time (JST time of day) for in `HH:MM` format.
815
+ attr_accessor :end_time
816
+ # Support hours start time (JST time of day) for in `HH:MM` format.
817
+ attr_accessor :start_time
818
+
819
+ def initialize(end_time: nil, start_time: nil)
820
+ @end_time = end_time
821
+ @start_time = start_time
822
+ end
823
+ end
824
+ # Support email address for Konbini payments.
825
+ attr_accessor :email
826
+ # Support hours for Konbini payments.
827
+ attr_accessor :hours
828
+ # Support phone number for Konbini payments.
829
+ attr_accessor :phone
830
+
831
+ def initialize(email: nil, hours: nil, phone: nil)
832
+ @email = email
833
+ @hours = hours
834
+ @phone = phone
835
+ end
836
+ end
837
+ # Support for Konbini payments.
838
+ attr_accessor :support
839
+
840
+ def initialize(support: nil)
841
+ @support = support
842
+ end
843
+ end
844
+
845
+ class ScriptStatementDescriptor < ::Stripe::RequestParams
846
+ class Kana < ::Stripe::RequestParams
847
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
848
+ attr_accessor :descriptor
849
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
850
+ attr_accessor :prefix
851
+
852
+ def initialize(descriptor: nil, prefix: nil)
853
+ @descriptor = descriptor
854
+ @prefix = prefix
855
+ end
856
+ end
857
+
858
+ class Kanji < ::Stripe::RequestParams
859
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
860
+ attr_accessor :descriptor
861
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
862
+ attr_accessor :prefix
863
+
864
+ def initialize(descriptor: nil, prefix: nil)
865
+ @descriptor = descriptor
866
+ @prefix = prefix
867
+ end
868
+ end
869
+ # The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
870
+ attr_accessor :kana
871
+ # The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors).
872
+ attr_accessor :kanji
873
+
874
+ def initialize(kana: nil, kanji: nil)
875
+ @kana = kana
876
+ @kanji = kanji
877
+ end
878
+ end
879
+
880
+ class StatementDescriptor < ::Stripe::RequestParams
881
+ # The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
882
+ attr_accessor :descriptor
883
+ # Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don’t specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
884
+ attr_accessor :prefix
885
+
886
+ def initialize(descriptor: nil, prefix: nil)
887
+ @descriptor = descriptor
888
+ @prefix = prefix
889
+ end
890
+ end
891
+
892
+ class Support < ::Stripe::RequestParams
893
+ class Address < ::Stripe::RequestParams
894
+ # City, district, suburb, town, or village.
895
+ attr_accessor :city
896
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
897
+ attr_accessor :country
898
+ # Address line 1 (e.g., street, PO Box, or company name).
899
+ attr_accessor :line1
900
+ # Address line 2 (e.g., apartment, suite, unit, or building).
901
+ attr_accessor :line2
902
+ # ZIP or postal code.
903
+ attr_accessor :postal_code
904
+ # State, county, province, or region.
905
+ attr_accessor :state
906
+ # Town or district.
907
+ attr_accessor :town
908
+
909
+ def initialize(
910
+ city: nil,
911
+ country: nil,
912
+ line1: nil,
913
+ line2: nil,
914
+ postal_code: nil,
915
+ state: nil,
916
+ town: nil
917
+ )
918
+ @city = city
919
+ @country = country
920
+ @line1 = line1
921
+ @line2 = line2
922
+ @postal_code = postal_code
923
+ @state = state
924
+ @town = town
925
+ end
926
+ end
927
+ # A publicly available mailing address for sending support issues to.
928
+ attr_accessor :address
929
+ # A publicly available email address for sending support issues to.
930
+ attr_accessor :email
931
+ # A publicly available phone number to call with support issues.
932
+ attr_accessor :phone
933
+ # A publicly available website for handling support issues.
934
+ attr_accessor :url
935
+
936
+ def initialize(address: nil, email: nil, phone: nil, url: nil)
937
+ @address = address
938
+ @email = email
939
+ @phone = phone
940
+ @url = url
941
+ end
942
+ end
943
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
944
+ attr_accessor :applied
945
+ # Settings for Bacs Direct Debit payments.
946
+ attr_accessor :bacs_debit_payments
947
+ # Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products.
948
+ attr_accessor :branding
949
+ # Capabilities to request on the Merchant Configuration.
950
+ attr_accessor :capabilities
951
+ # Card payments settings.
952
+ attr_accessor :card_payments
953
+ # Settings specific to Konbini payments on the account.
954
+ attr_accessor :konbini_payments
955
+ # The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide.
956
+ attr_accessor :mcc
957
+ # Settings for the default text that appears on statements for language variations.
958
+ attr_accessor :script_statement_descriptor
959
+ # Settings for the default [statement descriptor](/connect/statement-descriptors) text.
960
+ attr_accessor :statement_descriptor
961
+ # Publicly available contact information for sending support issues to.
962
+ attr_accessor :support
963
+
964
+ def initialize(
965
+ applied: nil,
966
+ bacs_debit_payments: nil,
967
+ branding: nil,
968
+ capabilities: nil,
969
+ card_payments: nil,
970
+ konbini_payments: nil,
971
+ mcc: nil,
972
+ script_statement_descriptor: nil,
973
+ statement_descriptor: nil,
974
+ support: nil
975
+ )
976
+ @applied = applied
977
+ @bacs_debit_payments = bacs_debit_payments
978
+ @branding = branding
979
+ @capabilities = capabilities
980
+ @card_payments = card_payments
981
+ @konbini_payments = konbini_payments
982
+ @mcc = mcc
983
+ @script_statement_descriptor = script_statement_descriptor
984
+ @statement_descriptor = statement_descriptor
985
+ @support = support
986
+ end
987
+ end
988
+
989
+ class Recipient < ::Stripe::RequestParams
990
+ class Capabilities < ::Stripe::RequestParams
991
+ class BankAccounts < ::Stripe::RequestParams
992
+ class Local < ::Stripe::RequestParams
993
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
994
+ attr_accessor :requested
995
+
996
+ def initialize(requested: nil)
997
+ @requested = requested
998
+ end
999
+ end
1000
+
1001
+ class Wire < ::Stripe::RequestParams
1002
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1003
+ attr_accessor :requested
1004
+
1005
+ def initialize(requested: nil)
1006
+ @requested = requested
1007
+ end
1008
+ end
1009
+ # Enables this Account to receive OutboundPayments to linked bank accounts over local networks.
1010
+ attr_accessor :local
1011
+ # Enables this Account to receive OutboundPayments to linked bank accounts over wire.
1012
+ attr_accessor :wire
1013
+
1014
+ def initialize(local: nil, wire: nil)
1015
+ @local = local
1016
+ @wire = wire
1017
+ end
1018
+ end
1019
+
1020
+ class Cards < ::Stripe::RequestParams
1021
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1022
+ attr_accessor :requested
1023
+
1024
+ def initialize(requested: nil)
1025
+ @requested = requested
1026
+ end
1027
+ end
1028
+
1029
+ class StripeBalance < ::Stripe::RequestParams
1030
+ class StripeTransfers < ::Stripe::RequestParams
1031
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1032
+ attr_accessor :requested
1033
+
1034
+ def initialize(requested: nil)
1035
+ @requested = requested
1036
+ end
1037
+ end
1038
+ # Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance).
1039
+ attr_accessor :stripe_transfers
1040
+
1041
+ def initialize(stripe_transfers: nil)
1042
+ @stripe_transfers = stripe_transfers
1043
+ end
1044
+ end
1045
+ # Capabilities that enable OutboundPayments to a bank account linked to this Account.
1046
+ attr_accessor :bank_accounts
1047
+ # Capability that enable OutboundPayments to a debit card linked to this Account.
1048
+ attr_accessor :cards
1049
+ # Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance).
1050
+ attr_accessor :stripe_balance
1051
+
1052
+ def initialize(bank_accounts: nil, cards: nil, stripe_balance: nil)
1053
+ @bank_accounts = bank_accounts
1054
+ @cards = cards
1055
+ @stripe_balance = stripe_balance
1056
+ end
1057
+ end
1058
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1059
+ attr_accessor :applied
1060
+ # Capabilities to request on the Recipient Configuration.
1061
+ attr_accessor :capabilities
1062
+ # The payout method id to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through API or sending payouts via dashboard. Can also be explicitly set to `null` to clear the existing default outbound destination. For further details about creating an Outbound Destination, see [Collect recipient's payment details](https://docs.stripe.com/global-payouts-private-preview/quickstart?dashboard-or-api=api#collect-bank-account-details).
1063
+ attr_accessor :default_outbound_destination
1064
+
1065
+ def initialize(applied: nil, capabilities: nil, default_outbound_destination: nil)
1066
+ @applied = applied
1067
+ @capabilities = capabilities
1068
+ @default_outbound_destination = default_outbound_destination
1069
+ end
1070
+ end
1071
+
1072
+ class Storer < ::Stripe::RequestParams
1073
+ class Capabilities < ::Stripe::RequestParams
1074
+ class FinancialAddresses < ::Stripe::RequestParams
1075
+ class BankAccounts < ::Stripe::RequestParams
1076
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1077
+ attr_accessor :requested
1078
+
1079
+ def initialize(requested: nil)
1080
+ @requested = requested
1081
+ end
1082
+ end
1083
+ # Can provision a bank-account-like financial address (VBAN) to credit/debit a FinancialAccount.
1084
+ attr_accessor :bank_accounts
1085
+
1086
+ def initialize(bank_accounts: nil)
1087
+ @bank_accounts = bank_accounts
1088
+ end
1089
+ end
1090
+
1091
+ class HoldsCurrencies < ::Stripe::RequestParams
1092
+ class Eur < ::Stripe::RequestParams
1093
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1094
+ attr_accessor :requested
1095
+
1096
+ def initialize(requested: nil)
1097
+ @requested = requested
1098
+ end
1099
+ end
1100
+
1101
+ class Gbp < ::Stripe::RequestParams
1102
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1103
+ attr_accessor :requested
1104
+
1105
+ def initialize(requested: nil)
1106
+ @requested = requested
1107
+ end
1108
+ end
1109
+
1110
+ class Usd < ::Stripe::RequestParams
1111
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1112
+ attr_accessor :requested
1113
+
1114
+ def initialize(requested: nil)
1115
+ @requested = requested
1116
+ end
1117
+ end
1118
+ # Can hold storage-type funds on Stripe in EUR.
1119
+ attr_accessor :eur
1120
+ # Can hold storage-type funds on Stripe in GBP.
1121
+ attr_accessor :gbp
1122
+ # Can hold storage-type funds on Stripe in USD.
1123
+ attr_accessor :usd
1124
+
1125
+ def initialize(eur: nil, gbp: nil, usd: nil)
1126
+ @eur = eur
1127
+ @gbp = gbp
1128
+ @usd = usd
1129
+ end
1130
+ end
1131
+
1132
+ class InboundTransfers < ::Stripe::RequestParams
1133
+ class BankAccounts < ::Stripe::RequestParams
1134
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1135
+ attr_accessor :requested
1136
+
1137
+ def initialize(requested: nil)
1138
+ @requested = requested
1139
+ end
1140
+ end
1141
+ # Can pull funds from an external bank account owned by yourself to a FinancialAccount.
1142
+ attr_accessor :bank_accounts
1143
+
1144
+ def initialize(bank_accounts: nil)
1145
+ @bank_accounts = bank_accounts
1146
+ end
1147
+ end
1148
+
1149
+ class OutboundPayments < ::Stripe::RequestParams
1150
+ class BankAccounts < ::Stripe::RequestParams
1151
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1152
+ attr_accessor :requested
1153
+
1154
+ def initialize(requested: nil)
1155
+ @requested = requested
1156
+ end
1157
+ end
1158
+
1159
+ class Cards < ::Stripe::RequestParams
1160
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1161
+ attr_accessor :requested
1162
+
1163
+ def initialize(requested: nil)
1164
+ @requested = requested
1165
+ end
1166
+ end
1167
+
1168
+ class FinancialAccounts < ::Stripe::RequestParams
1169
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1170
+ attr_accessor :requested
1171
+
1172
+ def initialize(requested: nil)
1173
+ @requested = requested
1174
+ end
1175
+ end
1176
+ # Can send funds from a FinancialAccount to a bank account owned by someone else.
1177
+ attr_accessor :bank_accounts
1178
+ # Can send funds from a FinancialAccount to a debit card owned by someone else.
1179
+ attr_accessor :cards
1180
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by someone else.
1181
+ attr_accessor :financial_accounts
1182
+
1183
+ def initialize(bank_accounts: nil, cards: nil, financial_accounts: nil)
1184
+ @bank_accounts = bank_accounts
1185
+ @cards = cards
1186
+ @financial_accounts = financial_accounts
1187
+ end
1188
+ end
1189
+
1190
+ class OutboundTransfers < ::Stripe::RequestParams
1191
+ class BankAccounts < ::Stripe::RequestParams
1192
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1193
+ attr_accessor :requested
1194
+
1195
+ def initialize(requested: nil)
1196
+ @requested = requested
1197
+ end
1198
+ end
1199
+
1200
+ class FinancialAccounts < ::Stripe::RequestParams
1201
+ # To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
1202
+ attr_accessor :requested
1203
+
1204
+ def initialize(requested: nil)
1205
+ @requested = requested
1206
+ end
1207
+ end
1208
+ # Can send funds from a FinancialAccount to a bank account owned by yourself.
1209
+ attr_accessor :bank_accounts
1210
+ # Can send funds from a FinancialAccount to another FinancialAccount owned by yourself.
1211
+ attr_accessor :financial_accounts
1212
+
1213
+ def initialize(bank_accounts: nil, financial_accounts: nil)
1214
+ @bank_accounts = bank_accounts
1215
+ @financial_accounts = financial_accounts
1216
+ end
1217
+ end
1218
+ # Can provision a financial address to credit/debit a FinancialAccount.
1219
+ attr_accessor :financial_addresses
1220
+ # Can hold storage-type funds on Stripe.
1221
+ attr_accessor :holds_currencies
1222
+ # Can pull funds from an external source, owned by yourself, to a FinancialAccount.
1223
+ attr_accessor :inbound_transfers
1224
+ # Can send funds from a FinancialAccount to a destination owned by someone else.
1225
+ attr_accessor :outbound_payments
1226
+ # Can send funds from a FinancialAccount to a destination owned by yourself.
1227
+ attr_accessor :outbound_transfers
1228
+
1229
+ def initialize(
1230
+ financial_addresses: nil,
1231
+ holds_currencies: nil,
1232
+ inbound_transfers: nil,
1233
+ outbound_payments: nil,
1234
+ outbound_transfers: nil
1235
+ )
1236
+ @financial_addresses = financial_addresses
1237
+ @holds_currencies = holds_currencies
1238
+ @inbound_transfers = inbound_transfers
1239
+ @outbound_payments = outbound_payments
1240
+ @outbound_transfers = outbound_transfers
1241
+ end
1242
+ end
1243
+ # Represents the state of the configuration, and can be updated to deactivate or re-apply a configuration.
1244
+ attr_accessor :applied
1245
+ # Capabilities to request on the Storer Configuration.
1246
+ attr_accessor :capabilities
1247
+
1248
+ def initialize(applied: nil, capabilities: nil)
1249
+ @applied = applied
1250
+ @capabilities = capabilities
1251
+ end
1252
+ end
1253
+ # The Customer Configuration allows the Account to be charged.
1254
+ attr_accessor :customer
1255
+ # Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set.
1256
+ attr_accessor :merchant
1257
+ # The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set.
1258
+ attr_accessor :recipient
1259
+ # The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts.
1260
+ attr_accessor :storer
1261
+
1262
+ def initialize(customer: nil, merchant: nil, recipient: nil, storer: nil)
1263
+ @customer = customer
1264
+ @merchant = merchant
1265
+ @recipient = recipient
1266
+ @storer = storer
1267
+ end
1268
+ end
1269
+
1270
+ class Defaults < ::Stripe::RequestParams
1271
+ class Profile < ::Stripe::RequestParams
1272
+ # The business's publicly-available website.
1273
+ attr_accessor :business_url
1274
+ # The name which is used by the business.
1275
+ attr_accessor :doing_business_as
1276
+ # Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes.
1277
+ attr_accessor :product_description
1278
+
1279
+ def initialize(business_url: nil, doing_business_as: nil, product_description: nil)
1280
+ @business_url = business_url
1281
+ @doing_business_as = doing_business_as
1282
+ @product_description = product_description
1283
+ end
1284
+ end
1285
+
1286
+ class Responsibilities < ::Stripe::RequestParams
1287
+ # A value indicating the party responsible for collecting fees from this account.
1288
+ attr_accessor :fees_collector
1289
+ # A value indicating who is responsible for losses when this Account can’t pay back negative balances from payments.
1290
+ attr_accessor :losses_collector
1291
+
1292
+ def initialize(fees_collector: nil, losses_collector: nil)
1293
+ @fees_collector = fees_collector
1294
+ @losses_collector = losses_collector
1295
+ end
1296
+ end
1297
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1298
+ attr_accessor :currency
1299
+ # The Account's preferred locales (languages), ordered by preference.
1300
+ attr_accessor :locales
1301
+ # Account profile information.
1302
+ attr_accessor :profile
1303
+ # Default responsibilities held by either Stripe or the platform.
1304
+ attr_accessor :responsibilities
1305
+
1306
+ def initialize(currency: nil, locales: nil, profile: nil, responsibilities: nil)
1307
+ @currency = currency
1308
+ @locales = locales
1309
+ @profile = profile
1310
+ @responsibilities = responsibilities
1311
+ end
1312
+ end
1313
+
1314
+ class Identity < ::Stripe::RequestParams
1315
+ class Attestations < ::Stripe::RequestParams
1316
+ class DirectorshipDeclaration < ::Stripe::RequestParams
1317
+ # The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1318
+ attr_accessor :date
1319
+ # The IP address from which the director attestation was made.
1320
+ attr_accessor :ip
1321
+ # The user agent of the browser from which the director attestation was made.
1322
+ attr_accessor :user_agent
1323
+
1324
+ def initialize(date: nil, ip: nil, user_agent: nil)
1325
+ @date = date
1326
+ @ip = ip
1327
+ @user_agent = user_agent
1328
+ end
1329
+ end
1330
+
1331
+ class OwnershipDeclaration < ::Stripe::RequestParams
1332
+ # The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1333
+ attr_accessor :date
1334
+ # The IP address from which the beneficial owner attestation was made.
1335
+ attr_accessor :ip
1336
+ # The user agent of the browser from which the beneficial owner attestation was made.
1337
+ attr_accessor :user_agent
1338
+
1339
+ def initialize(date: nil, ip: nil, user_agent: nil)
1340
+ @date = date
1341
+ @ip = ip
1342
+ @user_agent = user_agent
1343
+ end
1344
+ end
1345
+
1346
+ class PersonsProvided < ::Stripe::RequestParams
1347
+ # Whether the company’s directors have been provided. Set this Boolean to true after creating all the company’s directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1348
+ attr_accessor :directors
1349
+ # Whether the company’s executives have been provided. Set this Boolean to true after creating all the company’s executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1350
+ attr_accessor :executives
1351
+ # Whether the company’s owners have been provided. Set this Boolean to true after creating all the company’s owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson).
1352
+ attr_accessor :owners
1353
+ # Reason for why the company is exempt from providing ownership information.
1354
+ attr_accessor :ownership_exemption_reason
1355
+
1356
+ def initialize(
1357
+ directors: nil,
1358
+ executives: nil,
1359
+ owners: nil,
1360
+ ownership_exemption_reason: nil
1361
+ )
1362
+ @directors = directors
1363
+ @executives = executives
1364
+ @owners = owners
1365
+ @ownership_exemption_reason = ownership_exemption_reason
1366
+ end
1367
+ end
1368
+
1369
+ class RepresentativeDeclaration < ::Stripe::RequestParams
1370
+ # The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1371
+ attr_accessor :date
1372
+ # The IP address from which the representative attestation was made.
1373
+ attr_accessor :ip
1374
+ # The user agent of the browser from which the representative attestation was made.
1375
+ attr_accessor :user_agent
1376
+
1377
+ def initialize(date: nil, ip: nil, user_agent: nil)
1378
+ @date = date
1379
+ @ip = ip
1380
+ @user_agent = user_agent
1381
+ end
1382
+ end
1383
+
1384
+ class TermsOfService < ::Stripe::RequestParams
1385
+ class Account < ::Stripe::RequestParams
1386
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1387
+ attr_accessor :date
1388
+ # The IP address from which the Account's representative accepted the terms of service.
1389
+ attr_accessor :ip
1390
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1391
+ attr_accessor :user_agent
1392
+
1393
+ def initialize(date: nil, ip: nil, user_agent: nil)
1394
+ @date = date
1395
+ @ip = ip
1396
+ @user_agent = user_agent
1397
+ end
1398
+ end
1399
+
1400
+ class CryptoStorer < ::Stripe::RequestParams
1401
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1402
+ attr_accessor :date
1403
+ # The IP address from which the Account's representative accepted the terms of service.
1404
+ attr_accessor :ip
1405
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1406
+ attr_accessor :user_agent
1407
+
1408
+ def initialize(date: nil, ip: nil, user_agent: nil)
1409
+ @date = date
1410
+ @ip = ip
1411
+ @user_agent = user_agent
1412
+ end
1413
+ end
1414
+
1415
+ class Storer < ::Stripe::RequestParams
1416
+ # The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z.
1417
+ attr_accessor :date
1418
+ # The IP address from which the Account's representative accepted the terms of service.
1419
+ attr_accessor :ip
1420
+ # The user agent of the browser from which the Account's representative accepted the terms of service.
1421
+ attr_accessor :user_agent
1422
+
1423
+ def initialize(date: nil, ip: nil, user_agent: nil)
1424
+ @date = date
1425
+ @ip = ip
1426
+ @user_agent = user_agent
1427
+ end
1428
+ end
1429
+ # Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance).
1430
+ attr_accessor :account
1431
+ # Details on the Account's acceptance of Crypto-storer-specific terms of service.
1432
+ attr_accessor :crypto_storer
1433
+ # Details on the Account's acceptance of Treasury-specific terms of service.
1434
+ attr_accessor :storer
1435
+
1436
+ def initialize(account: nil, crypto_storer: nil, storer: nil)
1437
+ @account = account
1438
+ @crypto_storer = crypto_storer
1439
+ @storer = storer
1440
+ end
1441
+ end
1442
+ # This hash is used to attest that the directors information provided to Stripe is both current and correct.
1443
+ attr_accessor :directorship_declaration
1444
+ # This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct.
1445
+ attr_accessor :ownership_declaration
1446
+ # Attestation that all Persons with a specific Relationship value have been provided.
1447
+ attr_accessor :persons_provided
1448
+ # This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1449
+ attr_accessor :representative_declaration
1450
+ # Attestations of accepted terms of service agreements.
1451
+ attr_accessor :terms_of_service
1452
+
1453
+ def initialize(
1454
+ directorship_declaration: nil,
1455
+ ownership_declaration: nil,
1456
+ persons_provided: nil,
1457
+ representative_declaration: nil,
1458
+ terms_of_service: nil
1459
+ )
1460
+ @directorship_declaration = directorship_declaration
1461
+ @ownership_declaration = ownership_declaration
1462
+ @persons_provided = persons_provided
1463
+ @representative_declaration = representative_declaration
1464
+ @terms_of_service = terms_of_service
1465
+ end
1466
+ end
1467
+
1468
+ class BusinessDetails < ::Stripe::RequestParams
1469
+ class Address < ::Stripe::RequestParams
1470
+ # City, district, suburb, town, or village.
1471
+ attr_accessor :city
1472
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1473
+ attr_accessor :country
1474
+ # Address line 1 (e.g., street, PO Box, or company name).
1475
+ attr_accessor :line1
1476
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1477
+ attr_accessor :line2
1478
+ # ZIP or postal code.
1479
+ attr_accessor :postal_code
1480
+ # State, county, province, or region.
1481
+ attr_accessor :state
1482
+ # Town or district.
1483
+ attr_accessor :town
1484
+
1485
+ def initialize(
1486
+ city: nil,
1487
+ country: nil,
1488
+ line1: nil,
1489
+ line2: nil,
1490
+ postal_code: nil,
1491
+ state: nil,
1492
+ town: nil
1493
+ )
1494
+ @city = city
1495
+ @country = country
1496
+ @line1 = line1
1497
+ @line2 = line2
1498
+ @postal_code = postal_code
1499
+ @state = state
1500
+ @town = town
1501
+ end
1502
+ end
1503
+
1504
+ class AnnualRevenue < ::Stripe::RequestParams
1505
+ class Amount < ::Stripe::RequestParams
1506
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
1507
+ attr_accessor :value
1508
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1509
+ attr_accessor :currency
1510
+
1511
+ def initialize(value: nil, currency: nil)
1512
+ @value = value
1513
+ @currency = currency
1514
+ end
1515
+ end
1516
+ # A non-negative integer representing the amount in the smallest currency unit.
1517
+ attr_accessor :amount
1518
+ # The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
1519
+ attr_accessor :fiscal_year_end
1520
+
1521
+ def initialize(amount: nil, fiscal_year_end: nil)
1522
+ @amount = amount
1523
+ @fiscal_year_end = fiscal_year_end
1524
+ end
1525
+ end
1526
+
1527
+ class Documents < ::Stripe::RequestParams
1528
+ class BankAccountOwnershipVerification < ::Stripe::RequestParams
1529
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1530
+ attr_accessor :files
1531
+ # The format of the document. Currently supports `files` only.
1532
+ attr_accessor :type
1533
+
1534
+ def initialize(files: nil, type: nil)
1535
+ @files = files
1536
+ @type = type
1537
+ end
1538
+ end
1539
+
1540
+ class CompanyLicense < ::Stripe::RequestParams
1541
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1542
+ attr_accessor :files
1543
+ # The format of the document. Currently supports `files` only.
1544
+ attr_accessor :type
1545
+
1546
+ def initialize(files: nil, type: nil)
1547
+ @files = files
1548
+ @type = type
1549
+ end
1550
+ end
1551
+
1552
+ class CompanyMemorandumOfAssociation < ::Stripe::RequestParams
1553
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1554
+ attr_accessor :files
1555
+ # The format of the document. Currently supports `files` only.
1556
+ attr_accessor :type
1557
+
1558
+ def initialize(files: nil, type: nil)
1559
+ @files = files
1560
+ @type = type
1561
+ end
1562
+ end
1563
+
1564
+ class CompanyMinisterialDecree < ::Stripe::RequestParams
1565
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1566
+ attr_accessor :files
1567
+ # The format of the document. Currently supports `files` only.
1568
+ attr_accessor :type
1569
+
1570
+ def initialize(files: nil, type: nil)
1571
+ @files = files
1572
+ @type = type
1573
+ end
1574
+ end
1575
+
1576
+ class CompanyRegistrationVerification < ::Stripe::RequestParams
1577
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1578
+ attr_accessor :files
1579
+ # The format of the document. Currently supports `files` only.
1580
+ attr_accessor :type
1581
+
1582
+ def initialize(files: nil, type: nil)
1583
+ @files = files
1584
+ @type = type
1585
+ end
1586
+ end
1587
+
1588
+ class CompanyTaxIdVerification < ::Stripe::RequestParams
1589
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1590
+ attr_accessor :files
1591
+ # The format of the document. Currently supports `files` only.
1592
+ attr_accessor :type
1593
+
1594
+ def initialize(files: nil, type: nil)
1595
+ @files = files
1596
+ @type = type
1597
+ end
1598
+ end
1599
+
1600
+ class PrimaryVerification < ::Stripe::RequestParams
1601
+ class FrontBack < ::Stripe::RequestParams
1602
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1603
+ attr_accessor :back
1604
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
1605
+ attr_accessor :front
1606
+
1607
+ def initialize(back: nil, front: nil)
1608
+ @back = back
1609
+ @front = front
1610
+ end
1611
+ end
1612
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
1613
+ attr_accessor :front_back
1614
+ # The format of the verification document. Currently supports `front_back` only.
1615
+ attr_accessor :type
1616
+
1617
+ def initialize(front_back: nil, type: nil)
1618
+ @front_back = front_back
1619
+ @type = type
1620
+ end
1621
+ end
1622
+
1623
+ class ProofOfAddress < ::Stripe::RequestParams
1624
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1625
+ attr_accessor :files
1626
+ # The format of the document. Currently supports `files` only.
1627
+ attr_accessor :type
1628
+
1629
+ def initialize(files: nil, type: nil)
1630
+ @files = files
1631
+ @type = type
1632
+ end
1633
+ end
1634
+
1635
+ class ProofOfRegistration < ::Stripe::RequestParams
1636
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1637
+ attr_accessor :files
1638
+ # The format of the document. Currently supports `files` only.
1639
+ attr_accessor :type
1640
+
1641
+ def initialize(files: nil, type: nil)
1642
+ @files = files
1643
+ @type = type
1644
+ end
1645
+ end
1646
+
1647
+ class ProofOfUltimateBeneficialOwnership < ::Stripe::RequestParams
1648
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
1649
+ attr_accessor :files
1650
+ # The format of the document. Currently supports `files` only.
1651
+ attr_accessor :type
1652
+
1653
+ def initialize(files: nil, type: nil)
1654
+ @files = files
1655
+ @type = type
1656
+ end
1657
+ end
1658
+ # One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account’s primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
1659
+ attr_accessor :bank_account_ownership_verification
1660
+ # One or more documents that demonstrate proof of a company’s license to operate.
1661
+ attr_accessor :company_license
1662
+ # One or more documents showing the company’s Memorandum of Association.
1663
+ attr_accessor :company_memorandum_of_association
1664
+ # Certain countries only: One or more documents showing the ministerial decree legalizing the company’s establishment.
1665
+ attr_accessor :company_ministerial_decree
1666
+ # One or more documents that demonstrate proof of a company’s registration with the appropriate local authorities.
1667
+ attr_accessor :company_registration_verification
1668
+ # One or more documents that demonstrate proof of a company’s tax ID.
1669
+ attr_accessor :company_tax_id_verification
1670
+ # A document verifying the business.
1671
+ attr_accessor :primary_verification
1672
+ # One or more documents that demonstrate proof of address.
1673
+ attr_accessor :proof_of_address
1674
+ # One or more documents showing the company’s proof of registration with the national business registry.
1675
+ attr_accessor :proof_of_registration
1676
+ # One or more documents that demonstrate proof of ultimate beneficial ownership.
1677
+ attr_accessor :proof_of_ultimate_beneficial_ownership
1678
+
1679
+ def initialize(
1680
+ bank_account_ownership_verification: nil,
1681
+ company_license: nil,
1682
+ company_memorandum_of_association: nil,
1683
+ company_ministerial_decree: nil,
1684
+ company_registration_verification: nil,
1685
+ company_tax_id_verification: nil,
1686
+ primary_verification: nil,
1687
+ proof_of_address: nil,
1688
+ proof_of_registration: nil,
1689
+ proof_of_ultimate_beneficial_ownership: nil
1690
+ )
1691
+ @bank_account_ownership_verification = bank_account_ownership_verification
1692
+ @company_license = company_license
1693
+ @company_memorandum_of_association = company_memorandum_of_association
1694
+ @company_ministerial_decree = company_ministerial_decree
1695
+ @company_registration_verification = company_registration_verification
1696
+ @company_tax_id_verification = company_tax_id_verification
1697
+ @primary_verification = primary_verification
1698
+ @proof_of_address = proof_of_address
1699
+ @proof_of_registration = proof_of_registration
1700
+ @proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
1701
+ end
1702
+ end
1703
+
1704
+ class IdNumber < ::Stripe::RequestParams
1705
+ # The registrar of the ID number (Only valid for DE ID number types).
1706
+ attr_accessor :registrar
1707
+ # Open Enum. The ID number type of a business entity.
1708
+ attr_accessor :type
1709
+ # The value of the ID number.
1710
+ attr_accessor :value
1711
+
1712
+ def initialize(registrar: nil, type: nil, value: nil)
1713
+ @registrar = registrar
1714
+ @type = type
1715
+ @value = value
1716
+ end
1717
+ end
1718
+
1719
+ class MonthlyEstimatedRevenue < ::Stripe::RequestParams
1720
+ class Amount < ::Stripe::RequestParams
1721
+ # A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
1722
+ attr_accessor :value
1723
+ # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
1724
+ attr_accessor :currency
1725
+
1726
+ def initialize(value: nil, currency: nil)
1727
+ @value = value
1728
+ @currency = currency
1729
+ end
1730
+ end
1731
+ # A non-negative integer representing the amount in the smallest currency unit.
1732
+ attr_accessor :amount
1733
+
1734
+ def initialize(amount: nil)
1735
+ @amount = amount
1736
+ end
1737
+ end
1738
+
1739
+ class ScriptAddresses < ::Stripe::RequestParams
1740
+ class Kana < ::Stripe::RequestParams
1741
+ # City, district, suburb, town, or village.
1742
+ attr_accessor :city
1743
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1744
+ attr_accessor :country
1745
+ # Address line 1 (e.g., street, PO Box, or company name).
1746
+ attr_accessor :line1
1747
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1748
+ attr_accessor :line2
1749
+ # ZIP or postal code.
1750
+ attr_accessor :postal_code
1751
+ # State, county, province, or region.
1752
+ attr_accessor :state
1753
+ # Town or district.
1754
+ attr_accessor :town
1755
+
1756
+ def initialize(
1757
+ city: nil,
1758
+ country: nil,
1759
+ line1: nil,
1760
+ line2: nil,
1761
+ postal_code: nil,
1762
+ state: nil,
1763
+ town: nil
1764
+ )
1765
+ @city = city
1766
+ @country = country
1767
+ @line1 = line1
1768
+ @line2 = line2
1769
+ @postal_code = postal_code
1770
+ @state = state
1771
+ @town = town
1772
+ end
1773
+ end
1774
+
1775
+ class Kanji < ::Stripe::RequestParams
1776
+ # City, district, suburb, town, or village.
1777
+ attr_accessor :city
1778
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1779
+ attr_accessor :country
1780
+ # Address line 1 (e.g., street, PO Box, or company name).
1781
+ attr_accessor :line1
1782
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1783
+ attr_accessor :line2
1784
+ # ZIP or postal code.
1785
+ attr_accessor :postal_code
1786
+ # State, county, province, or region.
1787
+ attr_accessor :state
1788
+ # Town or district.
1789
+ attr_accessor :town
1790
+
1791
+ def initialize(
1792
+ city: nil,
1793
+ country: nil,
1794
+ line1: nil,
1795
+ line2: nil,
1796
+ postal_code: nil,
1797
+ state: nil,
1798
+ town: nil
1799
+ )
1800
+ @city = city
1801
+ @country = country
1802
+ @line1 = line1
1803
+ @line2 = line2
1804
+ @postal_code = postal_code
1805
+ @state = state
1806
+ @town = town
1807
+ end
1808
+ end
1809
+ # Kana Address.
1810
+ attr_accessor :kana
1811
+ # Kanji Address.
1812
+ attr_accessor :kanji
1813
+
1814
+ def initialize(kana: nil, kanji: nil)
1815
+ @kana = kana
1816
+ @kanji = kanji
1817
+ end
1818
+ end
1819
+
1820
+ class ScriptNames < ::Stripe::RequestParams
1821
+ class Kana < ::Stripe::RequestParams
1822
+ # Registered name of the business.
1823
+ attr_accessor :registered_name
1824
+
1825
+ def initialize(registered_name: nil)
1826
+ @registered_name = registered_name
1827
+ end
1828
+ end
1829
+
1830
+ class Kanji < ::Stripe::RequestParams
1831
+ # Registered name of the business.
1832
+ attr_accessor :registered_name
1833
+
1834
+ def initialize(registered_name: nil)
1835
+ @registered_name = registered_name
1836
+ end
1837
+ end
1838
+ # Kana name.
1839
+ attr_accessor :kana
1840
+ # Kanji name.
1841
+ attr_accessor :kanji
1842
+
1843
+ def initialize(kana: nil, kanji: nil)
1844
+ @kana = kana
1845
+ @kanji = kanji
1846
+ end
1847
+ end
1848
+ # The business registration address of the business entity.
1849
+ attr_accessor :address
1850
+ # The business gross annual revenue for its preceding fiscal year.
1851
+ attr_accessor :annual_revenue
1852
+ # A document verifying the business.
1853
+ attr_accessor :documents
1854
+ # Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors).
1855
+ attr_accessor :estimated_worker_count
1856
+ # The ID numbers of a business entity.
1857
+ attr_accessor :id_numbers
1858
+ # An estimate of the monthly revenue of the business.
1859
+ attr_accessor :monthly_estimated_revenue
1860
+ # The phone number of the Business Entity.
1861
+ attr_accessor :phone
1862
+ # The business legal name.
1863
+ attr_accessor :registered_name
1864
+ # The business registration address of the business entity in non latin script.
1865
+ attr_accessor :script_addresses
1866
+ # The business legal name in non latin script.
1867
+ attr_accessor :script_names
1868
+ # The category identifying the legal structure of the business.
1869
+ attr_accessor :structure
1870
+
1871
+ def initialize(
1872
+ address: nil,
1873
+ annual_revenue: nil,
1874
+ documents: nil,
1875
+ estimated_worker_count: nil,
1876
+ id_numbers: nil,
1877
+ monthly_estimated_revenue: nil,
1878
+ phone: nil,
1879
+ registered_name: nil,
1880
+ script_addresses: nil,
1881
+ script_names: nil,
1882
+ structure: nil
1883
+ )
1884
+ @address = address
1885
+ @annual_revenue = annual_revenue
1886
+ @documents = documents
1887
+ @estimated_worker_count = estimated_worker_count
1888
+ @id_numbers = id_numbers
1889
+ @monthly_estimated_revenue = monthly_estimated_revenue
1890
+ @phone = phone
1891
+ @registered_name = registered_name
1892
+ @script_addresses = script_addresses
1893
+ @script_names = script_names
1894
+ @structure = structure
1895
+ end
1896
+ end
1897
+
1898
+ class Individual < ::Stripe::RequestParams
1899
+ class AdditionalAddress < ::Stripe::RequestParams
1900
+ # City, district, suburb, town, or village.
1901
+ attr_accessor :city
1902
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1903
+ attr_accessor :country
1904
+ # Address line 1 (e.g., street, PO Box, or company name).
1905
+ attr_accessor :line1
1906
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1907
+ attr_accessor :line2
1908
+ # ZIP or postal code.
1909
+ attr_accessor :postal_code
1910
+ # Purpose of additional address.
1911
+ attr_accessor :purpose
1912
+ # State, county, province, or region.
1913
+ attr_accessor :state
1914
+ # Town or district.
1915
+ attr_accessor :town
1916
+
1917
+ def initialize(
1918
+ city: nil,
1919
+ country: nil,
1920
+ line1: nil,
1921
+ line2: nil,
1922
+ postal_code: nil,
1923
+ purpose: nil,
1924
+ state: nil,
1925
+ town: nil
1926
+ )
1927
+ @city = city
1928
+ @country = country
1929
+ @line1 = line1
1930
+ @line2 = line2
1931
+ @postal_code = postal_code
1932
+ @purpose = purpose
1933
+ @state = state
1934
+ @town = town
1935
+ end
1936
+ end
1937
+
1938
+ class AdditionalName < ::Stripe::RequestParams
1939
+ # The person's full name.
1940
+ attr_accessor :full_name
1941
+ # The person's first or given name.
1942
+ attr_accessor :given_name
1943
+ # The purpose or type of the additional name.
1944
+ attr_accessor :purpose
1945
+ # The person's last or family name.
1946
+ attr_accessor :surname
1947
+
1948
+ def initialize(full_name: nil, given_name: nil, purpose: nil, surname: nil)
1949
+ @full_name = full_name
1950
+ @given_name = given_name
1951
+ @purpose = purpose
1952
+ @surname = surname
1953
+ end
1954
+ end
1955
+
1956
+ class Address < ::Stripe::RequestParams
1957
+ # City, district, suburb, town, or village.
1958
+ attr_accessor :city
1959
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1960
+ attr_accessor :country
1961
+ # Address line 1 (e.g., street, PO Box, or company name).
1962
+ attr_accessor :line1
1963
+ # Address line 2 (e.g., apartment, suite, unit, or building).
1964
+ attr_accessor :line2
1965
+ # ZIP or postal code.
1966
+ attr_accessor :postal_code
1967
+ # State, county, province, or region.
1968
+ attr_accessor :state
1969
+ # Town or district.
1970
+ attr_accessor :town
1971
+
1972
+ def initialize(
1973
+ city: nil,
1974
+ country: nil,
1975
+ line1: nil,
1976
+ line2: nil,
1977
+ postal_code: nil,
1978
+ state: nil,
1979
+ town: nil
1980
+ )
1981
+ @city = city
1982
+ @country = country
1983
+ @line1 = line1
1984
+ @line2 = line2
1985
+ @postal_code = postal_code
1986
+ @state = state
1987
+ @town = town
1988
+ end
1989
+ end
1990
+
1991
+ class DateOfBirth < ::Stripe::RequestParams
1992
+ # The day of the birth.
1993
+ attr_accessor :day
1994
+ # The month of birth.
1995
+ attr_accessor :month
1996
+ # The year of birth.
1997
+ attr_accessor :year
1998
+
1999
+ def initialize(day: nil, month: nil, year: nil)
2000
+ @day = day
2001
+ @month = month
2002
+ @year = year
2003
+ end
2004
+ end
2005
+
2006
+ class Documents < ::Stripe::RequestParams
2007
+ class CompanyAuthorization < ::Stripe::RequestParams
2008
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2009
+ attr_accessor :files
2010
+ # The format of the document. Currently supports `files` only.
2011
+ attr_accessor :type
2012
+
2013
+ def initialize(files: nil, type: nil)
2014
+ @files = files
2015
+ @type = type
2016
+ end
2017
+ end
2018
+
2019
+ class Passport < ::Stripe::RequestParams
2020
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2021
+ attr_accessor :files
2022
+ # The format of the document. Currently supports `files` only.
2023
+ attr_accessor :type
2024
+
2025
+ def initialize(files: nil, type: nil)
2026
+ @files = files
2027
+ @type = type
2028
+ end
2029
+ end
2030
+
2031
+ class PrimaryVerification < ::Stripe::RequestParams
2032
+ class FrontBack < ::Stripe::RequestParams
2033
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2034
+ attr_accessor :back
2035
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2036
+ attr_accessor :front
2037
+
2038
+ def initialize(back: nil, front: nil)
2039
+ @back = back
2040
+ @front = front
2041
+ end
2042
+ end
2043
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2044
+ attr_accessor :front_back
2045
+ # The format of the verification document. Currently supports `front_back` only.
2046
+ attr_accessor :type
2047
+
2048
+ def initialize(front_back: nil, type: nil)
2049
+ @front_back = front_back
2050
+ @type = type
2051
+ end
2052
+ end
2053
+
2054
+ class SecondaryVerification < ::Stripe::RequestParams
2055
+ class FrontBack < ::Stripe::RequestParams
2056
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2057
+ attr_accessor :back
2058
+ # A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
2059
+ attr_accessor :front
2060
+
2061
+ def initialize(back: nil, front: nil)
2062
+ @back = back
2063
+ @front = front
2064
+ end
2065
+ end
2066
+ # The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens referring to each side of the document.
2067
+ attr_accessor :front_back
2068
+ # The format of the verification document. Currently supports `front_back` only.
2069
+ attr_accessor :type
2070
+
2071
+ def initialize(front_back: nil, type: nil)
2072
+ @front_back = front_back
2073
+ @type = type
2074
+ end
2075
+ end
2076
+
2077
+ class Visa < ::Stripe::RequestParams
2078
+ # One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
2079
+ attr_accessor :files
2080
+ # The format of the document. Currently supports `files` only.
2081
+ attr_accessor :type
2082
+
2083
+ def initialize(files: nil, type: nil)
2084
+ @files = files
2085
+ @type = type
2086
+ end
2087
+ end
2088
+ # One or more documents that demonstrate proof that this person is authorized to represent the company.
2089
+ attr_accessor :company_authorization
2090
+ # One or more documents showing the person’s passport page with photo and personal data.
2091
+ attr_accessor :passport
2092
+ # An identifying document showing the person's name, either a passport or local ID card.
2093
+ attr_accessor :primary_verification
2094
+ # A document showing address, either a passport, local ID card, or utility bill from a well-known utility company.
2095
+ attr_accessor :secondary_verification
2096
+ # One or more documents showing the person’s visa required for living in the country where they are residing.
2097
+ attr_accessor :visa
2098
+
2099
+ def initialize(
2100
+ company_authorization: nil,
2101
+ passport: nil,
2102
+ primary_verification: nil,
2103
+ secondary_verification: nil,
2104
+ visa: nil
2105
+ )
2106
+ @company_authorization = company_authorization
2107
+ @passport = passport
2108
+ @primary_verification = primary_verification
2109
+ @secondary_verification = secondary_verification
2110
+ @visa = visa
2111
+ end
2112
+ end
2113
+
2114
+ class IdNumber < ::Stripe::RequestParams
2115
+ # The ID number type of an individual.
2116
+ attr_accessor :type
2117
+ # The value of the ID number.
2118
+ attr_accessor :value
2119
+
2120
+ def initialize(type: nil, value: nil)
2121
+ @type = type
2122
+ @value = value
2123
+ end
2124
+ end
2125
+
2126
+ class Relationship < ::Stripe::RequestParams
2127
+ # Whether the person is a director of the account's identity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations.
2128
+ attr_accessor :director
2129
+ # Whether the person has significant responsibility to control, manage, or direct the organization.
2130
+ attr_accessor :executive
2131
+ # Whether the person is an owner of the account’s identity.
2132
+ attr_accessor :owner
2133
+ # The percent owned by the person of the account's legal entity.
2134
+ attr_accessor :percent_ownership
2135
+ # The person's title (e.g., CEO, Support Engineer).
2136
+ attr_accessor :title
2137
+
2138
+ def initialize(
2139
+ director: nil,
2140
+ executive: nil,
2141
+ owner: nil,
2142
+ percent_ownership: nil,
2143
+ title: nil
2144
+ )
2145
+ @director = director
2146
+ @executive = executive
2147
+ @owner = owner
2148
+ @percent_ownership = percent_ownership
2149
+ @title = title
2150
+ end
2151
+ end
2152
+
2153
+ class ScriptAddresses < ::Stripe::RequestParams
2154
+ class Kana < ::Stripe::RequestParams
2155
+ # City, district, suburb, town, or village.
2156
+ attr_accessor :city
2157
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2158
+ attr_accessor :country
2159
+ # Address line 1 (e.g., street, PO Box, or company name).
2160
+ attr_accessor :line1
2161
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2162
+ attr_accessor :line2
2163
+ # ZIP or postal code.
2164
+ attr_accessor :postal_code
2165
+ # State, county, province, or region.
2166
+ attr_accessor :state
2167
+ # Town or district.
2168
+ attr_accessor :town
2169
+
2170
+ def initialize(
2171
+ city: nil,
2172
+ country: nil,
2173
+ line1: nil,
2174
+ line2: nil,
2175
+ postal_code: nil,
2176
+ state: nil,
2177
+ town: nil
2178
+ )
2179
+ @city = city
2180
+ @country = country
2181
+ @line1 = line1
2182
+ @line2 = line2
2183
+ @postal_code = postal_code
2184
+ @state = state
2185
+ @town = town
2186
+ end
2187
+ end
2188
+
2189
+ class Kanji < ::Stripe::RequestParams
2190
+ # City, district, suburb, town, or village.
2191
+ attr_accessor :city
2192
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2193
+ attr_accessor :country
2194
+ # Address line 1 (e.g., street, PO Box, or company name).
2195
+ attr_accessor :line1
2196
+ # Address line 2 (e.g., apartment, suite, unit, or building).
2197
+ attr_accessor :line2
2198
+ # ZIP or postal code.
2199
+ attr_accessor :postal_code
2200
+ # State, county, province, or region.
2201
+ attr_accessor :state
2202
+ # Town or district.
2203
+ attr_accessor :town
2204
+
2205
+ def initialize(
2206
+ city: nil,
2207
+ country: nil,
2208
+ line1: nil,
2209
+ line2: nil,
2210
+ postal_code: nil,
2211
+ state: nil,
2212
+ town: nil
2213
+ )
2214
+ @city = city
2215
+ @country = country
2216
+ @line1 = line1
2217
+ @line2 = line2
2218
+ @postal_code = postal_code
2219
+ @state = state
2220
+ @town = town
2221
+ end
2222
+ end
2223
+ # Kana Address.
2224
+ attr_accessor :kana
2225
+ # Kanji Address.
2226
+ attr_accessor :kanji
2227
+
2228
+ def initialize(kana: nil, kanji: nil)
2229
+ @kana = kana
2230
+ @kanji = kanji
2231
+ end
2232
+ end
2233
+
2234
+ class ScriptNames < ::Stripe::RequestParams
2235
+ class Kana < ::Stripe::RequestParams
2236
+ # The person's first or given name.
2237
+ attr_accessor :given_name
2238
+ # The person's last or family name.
2239
+ attr_accessor :surname
2240
+
2241
+ def initialize(given_name: nil, surname: nil)
2242
+ @given_name = given_name
2243
+ @surname = surname
2244
+ end
2245
+ end
2246
+
2247
+ class Kanji < ::Stripe::RequestParams
2248
+ # The person's first or given name.
2249
+ attr_accessor :given_name
2250
+ # The person's last or family name.
2251
+ attr_accessor :surname
2252
+
2253
+ def initialize(given_name: nil, surname: nil)
2254
+ @given_name = given_name
2255
+ @surname = surname
2256
+ end
2257
+ end
2258
+ # Persons name in kana script.
2259
+ attr_accessor :kana
2260
+ # Persons name in kanji script.
2261
+ attr_accessor :kanji
2262
+
2263
+ def initialize(kana: nil, kanji: nil)
2264
+ @kana = kana
2265
+ @kanji = kanji
2266
+ end
2267
+ end
2268
+ # Additional addresses associated with the individual.
2269
+ attr_accessor :additional_addresses
2270
+ # Additional names (e.g. aliases) associated with the individual.
2271
+ attr_accessor :additional_names
2272
+ # The individual's residential address.
2273
+ attr_accessor :address
2274
+ # The individual's date of birth.
2275
+ attr_accessor :date_of_birth
2276
+ # Documents that may be submitted to satisfy various informational requests.
2277
+ attr_accessor :documents
2278
+ # The individual's email address.
2279
+ attr_accessor :email
2280
+ # The individual's first name.
2281
+ attr_accessor :given_name
2282
+ # The identification numbers (e.g., SSN) associated with the individual.
2283
+ attr_accessor :id_numbers
2284
+ # The individual's gender (International regulations require either "male" or "female").
2285
+ attr_accessor :legal_gender
2286
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
2287
+ attr_accessor :metadata
2288
+ # The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2289
+ attr_accessor :nationalities
2290
+ # The individual's phone number.
2291
+ attr_accessor :phone
2292
+ # The individual's political exposure.
2293
+ attr_accessor :political_exposure
2294
+ # The relationship that this individual has with the account's identity.
2295
+ attr_accessor :relationship
2296
+ # The script addresses (e.g., non-Latin characters) associated with the individual.
2297
+ attr_accessor :script_addresses
2298
+ # The individuals primary name in non latin script.
2299
+ attr_accessor :script_names
2300
+ # The individual's last name.
2301
+ attr_accessor :surname
2302
+
2303
+ def initialize(
2304
+ additional_addresses: nil,
2305
+ additional_names: nil,
2306
+ address: nil,
2307
+ date_of_birth: nil,
2308
+ documents: nil,
2309
+ email: nil,
2310
+ given_name: nil,
2311
+ id_numbers: nil,
2312
+ legal_gender: nil,
2313
+ metadata: nil,
2314
+ nationalities: nil,
2315
+ phone: nil,
2316
+ political_exposure: nil,
2317
+ relationship: nil,
2318
+ script_addresses: nil,
2319
+ script_names: nil,
2320
+ surname: nil
2321
+ )
2322
+ @additional_addresses = additional_addresses
2323
+ @additional_names = additional_names
2324
+ @address = address
2325
+ @date_of_birth = date_of_birth
2326
+ @documents = documents
2327
+ @email = email
2328
+ @given_name = given_name
2329
+ @id_numbers = id_numbers
2330
+ @legal_gender = legal_gender
2331
+ @metadata = metadata
2332
+ @nationalities = nationalities
2333
+ @phone = phone
2334
+ @political_exposure = political_exposure
2335
+ @relationship = relationship
2336
+ @script_addresses = script_addresses
2337
+ @script_names = script_names
2338
+ @surname = surname
2339
+ end
2340
+ end
2341
+ # Attestations from the identity's key people, e.g. owners, executives, directors, representatives.
2342
+ attr_accessor :attestations
2343
+ # Information about the company or business.
2344
+ attr_accessor :business_details
2345
+ # The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
2346
+ attr_accessor :country
2347
+ # The entity type.
2348
+ attr_accessor :entity_type
2349
+ # Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`.
2350
+ attr_accessor :individual
2351
+
2352
+ def initialize(
2353
+ attestations: nil,
2354
+ business_details: nil,
2355
+ country: nil,
2356
+ entity_type: nil,
2357
+ individual: nil
2358
+ )
2359
+ @attestations = attestations
2360
+ @business_details = business_details
2361
+ @country = country
2362
+ @entity_type = entity_type
2363
+ @individual = individual
2364
+ end
2365
+ end
2366
+ # The account token generated by the account token api.
2367
+ attr_accessor :account_token
2368
+ # An Account Configuration which allows the Account to take on a key persona across Stripe products.
2369
+ attr_accessor :configuration
2370
+ # The default contact email address for the Account. Required when configuring the account as a merchant or recipient.
2371
+ attr_accessor :contact_email
2372
+ # A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account.
2373
+ attr_accessor :dashboard
2374
+ # Default values to be used on Account Configurations.
2375
+ attr_accessor :defaults
2376
+ # A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account.
2377
+ attr_accessor :display_name
2378
+ # Information about the company, individual, and business represented by the Account.
2379
+ attr_accessor :identity
2380
+ # Additional fields to include in the response.
2381
+ attr_accessor :include
2382
+ # Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
2383
+ attr_accessor :metadata
2384
+
2385
+ def initialize(
2386
+ account_token: nil,
2387
+ configuration: nil,
2388
+ contact_email: nil,
2389
+ dashboard: nil,
2390
+ defaults: nil,
2391
+ display_name: nil,
2392
+ identity: nil,
2393
+ include: nil,
2394
+ metadata: nil
2395
+ )
2396
+ @account_token = account_token
2397
+ @configuration = configuration
2398
+ @contact_email = contact_email
2399
+ @dashboard = dashboard
2400
+ @defaults = defaults
2401
+ @display_name = display_name
2402
+ @identity = identity
2403
+ @include = include
2404
+ @metadata = metadata
2405
+ end
2406
+ end
2407
+ end
2408
+ end
2409
+ end